From 103ba6c679c256cc74f9bdca468b664f97639322 Mon Sep 17 00:00:00 2001 From: David Benson Date: Thu, 15 Feb 2024 17:59:05 +0000 Subject: [PATCH] 23.1.5 release --- ChangeLog | 9 + VERSION | 2 +- src/main/mxgraph/view/mxCellEditor.js | 76 +-- src/main/webapp/export3.html | 2 +- src/main/webapp/js/app.min.js | 120 ++-- src/main/webapp/js/grapheditor/Editor.js | 4 +- src/main/webapp/js/grapheditor/Graph.js | 11 +- src/main/webapp/js/integrate.min.js | 120 ++-- src/main/webapp/js/viewer-static.min.js | 828 +++++++++++------------ src/main/webapp/js/viewer.min.js | 828 +++++++++++------------ src/main/webapp/mxgraph/mxClient.js | 18 +- src/main/webapp/resources/dia_it.txt | 2 +- src/main/webapp/service-worker.js | 2 +- src/main/webapp/service-worker.js.map | 2 +- 14 files changed, 987 insertions(+), 1037 deletions(-) diff --git a/ChangeLog b/ChangeLog index e192a240c..5a2da91f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +15-FEB-2024: 23.1.5 + +- [conf cloud] Add charset to requests to protect from default charset changes +- [conf cloud] Added requests rate limiting retrials for long running services [DID-10681] +- Fixes incorrect font colors in PDF output [drawio-4176] +- Removes text editing code for IE8/9/10 +- Fixes possible XSS in Graph.updateLabelElements [CSP-2963] +- Fixes possible XSS in ErrorDialog [CSP-2964] + 13-FEB-2024: 23.1.4 - Fixes CSS scope in SVG sub-trees [drawio-4119] diff --git a/VERSION b/VERSION index 0fb207577..b3f730cf5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -23.1.4 \ No newline at end of file +23.1.5 \ No newline at end of file diff --git a/src/main/mxgraph/view/mxCellEditor.js b/src/main/mxgraph/view/mxCellEditor.js index 3e52eb5fa..d78a9e15e 100644 --- a/src/main/mxgraph/view/mxCellEditor.js +++ b/src/main/mxgraph/view/mxCellEditor.js @@ -333,11 +333,7 @@ mxCellEditor.prototype.getInitialValue = function(state, trigger) var result = mxUtils.htmlEntities(this.graph.getEditingValue(state.cell, trigger), false); // Workaround for trailing line breaks being ignored in the editor - if (document.documentMode != 8 && document.documentMode != 9 && - document.documentMode != 10) - { - result = mxUtils.replaceTrailingNewlines(result, '

'); - } + result = mxUtils.replaceTrailingNewlines(result, '

'); return result.replace(/\n/g, '
'); }; @@ -528,17 +524,8 @@ mxCellEditor.prototype.installListeners = function(elt) mxEvent.addListener(elt, evtName, resizeHandler); mxEvent.addListener(window, 'resize', resizeHandler); - - if (document.documentMode >= 9) - { - mxEvent.addListener(elt, 'DOMNodeRemoved', resizeHandler); - mxEvent.addListener(elt, 'DOMNodeInserted', resizeHandler); - } - else - { - mxEvent.addListener(elt, 'cut', resizeHandler); - mxEvent.addListener(elt, 'paste', resizeHandler); - } + mxEvent.addListener(elt, 'cut', resizeHandler); + mxEvent.addListener(elt, 'paste', resizeHandler); }; /** @@ -590,18 +577,8 @@ mxCellEditor.prototype.resize = function() this.bounds = this.getEditorBounds(state); this.textarea.style.width = Math.round(this.bounds.width / scale) + 'px'; this.textarea.style.height = Math.round(this.bounds.height / scale) + 'px'; - - // FIXME: Offset when scaled - if (document.documentMode == 8) - { - this.textarea.style.left = Math.round(this.bounds.x) + 'px'; - this.textarea.style.top = Math.round(this.bounds.y) + 'px'; - } - else - { - this.textarea.style.left = Math.max(0, Math.round(this.bounds.x + 1)) + 'px'; - this.textarea.style.top = Math.max(0, Math.round(this.bounds.y + 1)) + 'px'; - } + this.textarea.style.left = Math.max(0, Math.round(this.bounds.x + 1)) + 'px'; + this.textarea.style.top = Math.max(0, Math.round(this.bounds.y + 1)) + 'px'; // Installs native word wrapping and avoids word wrap for empty label placeholder if (this.graph.isWrapping(state.cell) && (this.bounds.width >= 2 || this.bounds.height >= 2) && @@ -709,7 +686,7 @@ mxCellEditor.prototype.resize = function() if (this.textarea.innerHTML != this.getEmptyLabelText()) { // Forces automatic reflow if text is removed from an oversize label and normal word wrap - var tmp = Math.round(this.bounds.width / ((document.documentMode == 8) ? scale : scale)) + this.wordWrapPadding; + var tmp = Math.round(this.bounds.width / scale) + this.wordWrapPadding; if (this.textarea.style.position != 'relative') { @@ -751,43 +728,10 @@ mxCellEditor.prototype.resize = function() this.textarea.style.width = ''; } - // LATER: Keep in visible area, add fine tuning for pixel precision - // Workaround for wrong measuring in IE8 standards - if (document.documentMode == 8) - { - this.textarea.style.zoom = '1'; - this.textarea.style.height = 'auto'; - } - - // TODO: Update CSS width and height if smaller than minResize or remove minResize - //if (this.minResize != null) - //{ - // ow = Math.max(ow, this.minResize.width); - // oh = Math.max(oh, this.minResize.height); - //} - - // LATER: Keep in visible area, add fine tuning for pixel precision - if (document.documentMode == 8) - { - var ow = this.textarea.scrollWidth; - var oh = this.textarea.scrollHeight; - - // LATER: Scaled wrapping and position is wrong in IE8 - this.textarea.style.left = Math.max(0, Math.ceil((this.bounds.x - m.x * (this.bounds.width - - (ow + 1) * scale) + ow * (scale - 1) * 0 + (m.x + 0.5) * 2) / scale)) + 'px'; - this.textarea.style.top = Math.max(0, Math.ceil((this.bounds.y - m.y * (this.bounds.height - - (oh + 0.5) * scale) + oh * (scale - 1) * 0 + Math.abs(m.y + 0.5) * 1) / scale)) + 'px'; - // Workaround for wrong event handling width and height - this.textarea.style.width = Math.round(ow * scale) + 'px'; - this.textarea.style.height = Math.round(oh * scale) + 'px'; - } - else - { - this.textarea.style.left = Math.max(0, Math.round(this.bounds.x - m.x * - (this.bounds.width - 2)) + 1) + 'px'; - this.textarea.style.top = Math.max(0, Math.round(this.bounds.y - m.y * - (this.bounds.height - 4) + ((m.y == -1) ? 3 : 0)) + 1) + 'px'; - } + this.textarea.style.left = Math.max(0, Math.round(this.bounds.x - m.x * + (this.bounds.width - 2)) + 1) + 'px'; + this.textarea.style.top = Math.max(0, Math.round(this.bounds.y - m.y * + (this.bounds.height - 4) + ((m.y == -1) ? 3 : 0)) + 1) + 'px'; } mxUtils.setPrefixedStyle(this.textarea.style, 'transformOrigin', '0px 0px'); diff --git a/src/main/webapp/export3.html b/src/main/webapp/export3.html index 816977b0d..92e4192f2 100644 --- a/src/main/webapp/export3.html +++ b/src/main/webapp/export3.html @@ -14,6 +14,6 @@ - + diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index c16bbedb4..3410eae7d 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -146,7 +146,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url "se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1"); "embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources"; window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang; -window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.4",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -1051,26 +1051,24 @@ function mxCellEditor(a){this.graph=a;this.zoomHandler=mxUtils.bind(this,functio this.updateTextAreaStyle(b))});this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler)}mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editingCell=null;mxCellEditor.prototype.trigger=null;mxCellEditor.prototype.modified=!1;mxCellEditor.prototype.autoSize=!0;mxCellEditor.prototype.selectText=!0;mxCellEditor.prototype.emptyLabelText=mxClient.IS_FF?"
":"";mxCellEditor.prototype.escapeCancelsEditing=!0;mxCellEditor.prototype.textNode=""; mxCellEditor.prototype.zIndex=1;mxCellEditor.prototype.minResize=new mxRectangle(0,20);mxCellEditor.prototype.wordWrapPadding=0;mxCellEditor.prototype.blurEnabled=!1;mxCellEditor.prototype.initialValue=null;mxCellEditor.prototype.align=null; mxCellEditor.prototype.init=function(){this.textarea=document.createElement("div");this.textarea.className="mxCellEditor mxPlainTextEditor";this.textarea.contentEditable=!0;mxClient.IS_GC&&(this.textarea.style.minHeight="1em");this.textarea.style.position=this.isLegacyEditor()?"absolute":"relative";this.installListeners(this.textarea)};mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)}; -mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);8!=document.documentMode&&9!=document.documentMode&&10!=document.documentMode&&(a=mxUtils.replaceTrailingNewlines(a,"

"));return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; +mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);a=mxUtils.replaceTrailingNewlines(a,"

");return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; mxCellEditor.prototype.isCancelEditingKeyEvent=function(a){return this.escapeCancelsEditing||mxEvent.isShiftDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)}; mxCellEditor.prototype.installListeners=function(a){mxEvent.addListener(a,"dragstart",mxUtils.bind(this,function(f){this.graph.stopEditing(!1);mxEvent.consume(f)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,function(f){this.blurEnabled&&this.focusLost(f)}));var b=this.graph.container.scrollTop,c=this.graph.container.scrollLeft;mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(f){b=this.graph.container.scrollTop;c=this.graph.container.scrollLeft;mxEvent.isConsumed(f)||(this.isStopEditingEvent(f)? (this.graph.stopEditing(!1),mxEvent.consume(f)):27==f.keyCode&&(this.graph.stopEditing(this.isCancelEditingKeyEvent(f)),mxEvent.consume(f)))}));var d=mxUtils.bind(this,function(f){null!=this.editingCell&&this.clearOnChange&&a.innerHTML==this.getEmptyLabelText()&&(!mxClient.IS_FF||8!=f.keyCode&&46!=f.keyCode)&&(this.clearOnChange=!1,a.innerText="")});mxEvent.addListener(a,"keypress",d);mxEvent.addListener(a,"paste",d);d=mxUtils.bind(this,function(f){null!=this.editingCell&&(this.graph.container.scrollTop= b,this.graph.container.scrollLeft=c,a.scrollIntoView({block:"nearest",inline:"nearest"}),0==this.textarea.innerHTML.length||"
"==this.textarea.innerHTML?(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0=g.length||l[m]!=g[m]){for(var n=l[m].firstChild;null!=n;){var p=n.nextSibling;l[m].parentNode.insertBefore(n,l[m]);n=p}l[m].parentNode.removeChild(l[m]);break}}),0)}));d=mxClient.IS_IE11||mxClient.IS_IE?"keydown":"input";var e=mxUtils.bind(this,function(f){null!=this.editingCell&&this.autoSize&&!mxEvent.isConsumed(f)&& -(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);9<=document.documentMode?(mxEvent.addListener(a,"DOMNodeRemoved",e),mxEvent.addListener(a,"DOMNodeInserted",e)):(mxEvent.addListener(a,"cut",e),mxEvent.addListener(a,"paste",e))}; -mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)};mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; +(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);mxEvent.addListener(a,"cut",e);mxEvent.addListener(a,"paste",e)};mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)}; +mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; mxCellEditor.prototype.resize=function(){var a=this.graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.textarea){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=null;if(this.autoSize&&"fill"!=a.style[mxConstants.STYLE_OVERFLOW]){var e=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_WIDTH,null);d=null!=a.text&&null==this.align?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(this.align||mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));if(b){if(this.bounds=new mxRectangle(a.absoluteOffset.x,a.absoluteOffset.y,0,0),null!=e){var f=(parseFloat(e)+2)*c;this.bounds.width=f;this.bounds.x+=d.x*f}}else{b=mxRectangle.fromRectangle(a);var g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=null!=a.shape&& g==mxConstants.ALIGN_CENTER&&k==mxConstants.ALIGN_MIDDLE?a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legacySpacing||"width"!=a.style[mxConstants.STYLE_OVERFLOW]&&"block"!=a.style[mxConstants.STYLE_OVERFLOW]){g=parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING,2))*c;var l=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_TOP,0))+mxText.prototype.baseSpacingTop)*c+g,m=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_RIGHT, 0))+mxText.prototype.baseSpacingRight)*c+g,n=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_BOTTOM,0))+mxText.prototype.baseSpacingBottom)*c+g,p=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_LEFT,0))+mxText.prototype.baseSpacingLeft)*c+g;g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=new mxRectangle(b.x+p,b.y+l,b.width-(g==mxConstants.ALIGN_CENTER&& null==e?p+m:0),b.height-(k==mxConstants.ALIGN_MIDDLE?l+n:0));this.graph.isHtmlLabel(a.cell)&&(b.x-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.y-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.width+=mxSvgCanvas2D.prototype.foreignObjectPadding)}this.bounds=new mxRectangle(b.x+a.absoluteOffset.x,b.y+a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height))if(e=this.textDirection=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION, mxConstants.DEFAULT_TEXT_DIRECTION),e=null!=e&&"vertical-"==e.substring(0,9),this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal",this.textarea.innerHTML!=this.getEmptyLabelText())if(f=Math.round(this.bounds.width/c)+this.wordWrapPadding,"relative"!=this.textarea.style.position)this.textarea.style.width=f+"px",this.textarea.scrollWidth>f&&(this.textarea.style.width=this.textarea.scrollWidth+"px");else if("block"==a.style[mxConstants.STYLE_OVERFLOW]||"width"== -a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";8==document.documentMode&&(this.textarea.style.zoom="1",this.textarea.style.height="auto");8==document.documentMode? -(a=this.textarea.scrollWidth,f=this.textarea.scrollHeight,this.textarea.style.left=Math.max(0,Math.ceil((this.bounds.x-d.x*(this.bounds.width-(a+1)*c)+a*(c-1)*0+2*(d.x+.5))/c))+"px",this.textarea.style.top=Math.max(0,Math.ceil((this.bounds.y-d.y*(this.bounds.height-(f+.5)*c)+f*(c-1)*0+1*Math.abs(d.y+.5))/c))+"px",this.textarea.style.width=Math.round(a*c)+"px",this.textarea.style.height=Math.round(f*c)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+ -"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px")}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",8==document.documentMode?(this.textarea.style.left=Math.round(this.bounds.x)+"px",this.textarea.style.top=Math.round(this.bounds.y)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top= -Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()?(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width= -""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null==d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null}; -mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; +a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+"px";this.textarea.style.top= +Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px"}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px",this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()? +(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null== +d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null};mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; mxCellEditor.prototype.updateTextAreaStyle=function(a){var b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTCOLOR,"black"),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style, mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,k=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&k.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&k.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(b*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.backgroundColor= this.getBackgroundColor(a);this.textarea.style.textDecoration=k.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontSize=Math.round(b)+"px";this.textarea.style.zIndex=this.zIndex;this.textarea.style.fontFamily=c;this.textarea.style.textAlign=e;this.textarea.style.outline="none";this.textarea.style.writingMode="";this.textarea.style.color=d;b=this.getBorderColor(a);this.textarea.style.border=null!=b?"1px solid "+b:"none";b= @@ -2092,8 +2090,8 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&& this.container.parentNode.removeChild(this.container)}; var ErrorDialog=function(a,b,e,f,g,d,h,n,r,l,p){r=null!=r?r:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b= -document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"
"));b.innerHTML=e;w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=l&&(l=mxUtils.button(l,function(){null!=p&&p()}),l.className="geBtn",e.appendChild(l));var C=mxUtils.button(f, -function(){r&&a.hideDialog();null!=g&&g()});C.className="geBtn";e.appendChild(C);null!=h&&(f=mxUtils.button(h,function(){r&&a.hideDialog();null!=n&&n()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b){this.create(a,b)}; +document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"
"));b.innerHTML=Graph.sanitizeHtml(e);w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=l&&(l=mxUtils.button(l,function(){null!=p&&p()}),l.className="geBtn",e.appendChild(l)); +var C=mxUtils.button(f,function(){r&&a.hideDialog();null!=g&&g()});C.className="geBtn";e.appendChild(C);null!=h&&(f=mxUtils.button(h,function(){r&&a.hideDialog();null!=n&&n()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b){this.create(a,b)}; PrintDialog.prototype.create=function(a){function b(C){var F=h.checked||l.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,I=1/e.pageScale;if(F){var K=h.checked?1:parseInt(p.value);isNaN(K)||(I=mxUtils.getScaleForPageCount(K,e,G))}var P=K=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);I*=D;!F&&e.pageVisible?(D=e.getPageLayout(),K-=D.x*G.width,P-=D.y*G.height): F=!0;F=PrintDialog.createPrintPreview(e,I,G,0,K,P,F);F.open();C&&PrintDialog.printPreview(F)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var g=document.createElement("tbody");var d=document.createElement("tr");var h=document.createElement("input");h.setAttribute("type","checkbox");var n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";n.appendChild(h);var r=document.createElement("span");mxUtils.write(r," "+mxResources.get("fitPage")); n.appendChild(r);mxEvent.addListener(r,"click",function(C){h.checked=!h.checked;l.checked=!h.checked;mxEvent.consume(C)});mxEvent.addListener(h,"change",function(){l.checked=!h.checked});d.appendChild(n);g.appendChild(d);d=d.cloneNode(!1);var l=document.createElement("input");l.setAttribute("type","checkbox");n=document.createElement("td");n.style.fontSize="10pt";n.appendChild(l);r=document.createElement("span");mxUtils.write(r," "+mxResources.get("posterPrint")+":");n.appendChild(r);mxEvent.addListener(r, @@ -2886,7 +2884,7 @@ this.isTableRow(M)||this.isTableCell(M)||this.isSwimlane(M))){ca=ca.clone();ca.x $a)+(A?-1:1),Ra.length)],[M])}E.push(M)}}}finally{B.endUpdate()}return E};Graph.prototype.stencilHasPlaceholders=function(u){if(null!=u&&null!=u.fgNode)for(u=u.fgNode.firstChild;null!=u;){if("text"==u.nodeName&&"1"==u.getAttribute("placeholders"))return!0;u=u.nextSibling}return!1};var F=Graph.prototype.processChange;Graph.prototype.processChange=function(u){if(u instanceof mxGeometryChange&&(this.isTableCell(u.cell)||this.isTableRow(u.cell))&&(null==u.previous&&null!=u.geometry||null!=u.previous&& !u.previous.equals(u.geometry))){var A=u.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}F.apply(this,arguments);u instanceof mxValueChange&&null!=u.cell&&null!=u.cell.value&&"object"==typeof u.cell.value&&this.invalidateDescendantsWithPlaceholders(u.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(u){u=this.model.getDescendants(u); if(0M||ja>M)&&this.clear());else{for(ca=ja.getSource();null!=ca&&"a"!=ca.nodeName.toLowerCase();)ca=ca.parentNode;null!=ca?this.clear():(null!=W.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&W.tooltipHandler.reset(ja,!0,this.currentState),(null==this.currentState||ja.getState()!=this.currentState&& -null!=ja.sourceState||!W.intersects(this.currentState,ja.getGraphX(),ja.getGraphY()))&&this.updateCurrentState(ja))}},mouseUp:function(ca,ja){var wa=ja.getSource();for(ca=ja.getEvent();null!=wa&&"a"!=wa.nodeName.toLowerCase();)wa=wa.parentNode;null==wa&&Math.abs(this.scrollLeft-W.container.scrollLeft)M||ja>M)&&this.clear());else{for(ca=ja.getSource();null!=ca&&"a"!=ca.nodeName.toLowerCase();)ca=ca.parentNode;null!=ca?this.clear():(null!=W.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&W.tooltipHandler.reset(ja,!0,this.currentState),(null==this.currentState||ja.getState()!= +this.currentState&&null!=ja.sourceState||!W.intersects(this.currentState,ja.getGraphX(),ja.getGraphY()))&&this.updateCurrentState(ja))}},mouseUp:function(ca,ja){var wa=ja.getSource();for(ca=ja.getEvent();null!=wa&&"a"!=wa.nodeName.toLowerCase();)wa=wa.parentNode;null==wa&&Math.abs(this.scrollLeft-W.container.scrollLeft)"));return B=Graph.sanitizeHtml(B,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue; -mxCellEditor.prototype.getCurrentValue=function(u){if("0"==mxUtils.getValue(u.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return A="1"==mxUtils.getValue(u.style,"nl2Br","1")?A.replace(/\r\n/g,"
").replace(/\n/g,"
"):A.replace(/\r\n/g,"").replace(/\n/g,"")};var Z=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(u){this.codeViewMode&&this.toggleViewMode();Z.apply(this,arguments); -this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(u){}};var S=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(u,A){this.graph.getModel().beginUpdate();try{S.apply(this,arguments),""==A&&this.graph.isCellDeletable(u.cell)&&0==this.graph.model.getChildCount(u.cell)&&this.graph.isTransparentState(u)&&this.graph.removeCells([u.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor= -function(u){var A=mxUtils.getValue(u.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=A&&A!=mxConstants.NONE||!(null!=u.cell.geometry&&0u;u++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR); -A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();u=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(u,A)};var ka=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var u=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&& -mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var E=0;E'); +mxCellEditor.prototype.getCurrentValue=function(u){if("0"==mxUtils.getValue(u.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(u.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"
").replace(/\n/g,"
"),0"==A.substring(A.length-5)||"
"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("
")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var Z= +mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(u){this.codeViewMode&&this.toggleViewMode();Z.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(u){}};var S=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(u,A){this.graph.getModel().beginUpdate();try{S.apply(this,arguments),""==A&&this.graph.isCellDeletable(u.cell)&&0==this.graph.model.getChildCount(u.cell)&& +this.graph.isTransparentState(u)&&this.graph.removeCells([u.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(u){var A=mxUtils.getValue(u.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=A&&A!=mxConstants.NONE||!(null!=u.cell.geometry&&0u;u++){var A=new mxRectangleShape(new mxRectangle(0, +0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();u=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(u,A)};var ka=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var u=new mxPoint(0,0),A=this.tolerance, +B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var E=0;E'); Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle= Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'
')))}catch(p){}Editor.prototype.useCanvasForExport= !1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})(); -(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.4";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= +(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.5";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&& null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" "); EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}}; diff --git a/src/main/webapp/js/grapheditor/Editor.js b/src/main/webapp/js/grapheditor/Editor.js index 25ba813b5..a2ba652e3 100644 --- a/src/main/webapp/js/grapheditor/Editor.js +++ b/src/main/webapp/js/grapheditor/Editor.js @@ -1352,8 +1352,8 @@ var ErrorDialog = function(editorUi, title, message, buttonText, fn, retry, butt { message = message.replace(/\n/g, '
'); } - - p2.innerHTML = message; + + p2.innerHTML = Graph.sanitizeHtml(message); div.appendChild(p2); var btns = document.createElement('div'); diff --git a/src/main/webapp/js/grapheditor/Graph.js b/src/main/webapp/js/grapheditor/Graph.js index 52e5f451e..5ecd26a65 100644 --- a/src/main/webapp/js/grapheditor/Graph.js +++ b/src/main/webapp/js/grapheditor/Graph.js @@ -10544,7 +10544,7 @@ if (typeof mxVertexHandler !== 'undefined') if (label != null && label.length > 0) { - div.innerHTML = label; + div.innerHTML = Graph.sanitizeHtml(label); var elts = div.getElementsByTagName((tagName != null) ? tagName : '*'); for (var j = 0; j < elts.length; j++) @@ -10982,7 +10982,7 @@ if (typeof mxVertexHandler !== 'undefined') if (fontSize != null) { - if (style.length > 0) + if (style.length > 0 && style.charAt(style.length - 1) != ';') { style += ';'; } @@ -13765,6 +13765,13 @@ if (typeof mxVertexHandler !== 'undefined') if (mxUtils.getValue(state.style, 'nl2Br', '1') == '1') { result = result.replace(/\r\n/g, '
').replace(/\n/g, '
'); + + // Workaround for trailing line breaks being ignored in the output + if (result.length > 0 && (result.substring(result.length - 5) == '
' || + result.substring(result.length - 4) == '
')) + { + result = result.substring(0, result.lastIndexOf('
'; + } } else { diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.js index cd9c218b8..771d972e4 100644 --- a/src/main/webapp/js/integrate.min.js +++ b/src/main/webapp/js/integrate.min.js @@ -146,7 +146,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url "se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1"); "embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources"; window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang; -window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.4",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -1051,26 +1051,24 @@ function mxCellEditor(a){this.graph=a;this.zoomHandler=mxUtils.bind(this,functio this.updateTextAreaStyle(b))});this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler)}mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editingCell=null;mxCellEditor.prototype.trigger=null;mxCellEditor.prototype.modified=!1;mxCellEditor.prototype.autoSize=!0;mxCellEditor.prototype.selectText=!0;mxCellEditor.prototype.emptyLabelText=mxClient.IS_FF?"
":"";mxCellEditor.prototype.escapeCancelsEditing=!0;mxCellEditor.prototype.textNode=""; mxCellEditor.prototype.zIndex=1;mxCellEditor.prototype.minResize=new mxRectangle(0,20);mxCellEditor.prototype.wordWrapPadding=0;mxCellEditor.prototype.blurEnabled=!1;mxCellEditor.prototype.initialValue=null;mxCellEditor.prototype.align=null; mxCellEditor.prototype.init=function(){this.textarea=document.createElement("div");this.textarea.className="mxCellEditor mxPlainTextEditor";this.textarea.contentEditable=!0;mxClient.IS_GC&&(this.textarea.style.minHeight="1em");this.textarea.style.position=this.isLegacyEditor()?"absolute":"relative";this.installListeners(this.textarea)};mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)}; -mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);8!=document.documentMode&&9!=document.documentMode&&10!=document.documentMode&&(a=mxUtils.replaceTrailingNewlines(a,"

"));return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; +mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);a=mxUtils.replaceTrailingNewlines(a,"

");return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; mxCellEditor.prototype.isCancelEditingKeyEvent=function(a){return this.escapeCancelsEditing||mxEvent.isShiftDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)}; mxCellEditor.prototype.installListeners=function(a){mxEvent.addListener(a,"dragstart",mxUtils.bind(this,function(f){this.graph.stopEditing(!1);mxEvent.consume(f)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,function(f){this.blurEnabled&&this.focusLost(f)}));var b=this.graph.container.scrollTop,c=this.graph.container.scrollLeft;mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(f){b=this.graph.container.scrollTop;c=this.graph.container.scrollLeft;mxEvent.isConsumed(f)||(this.isStopEditingEvent(f)? (this.graph.stopEditing(!1),mxEvent.consume(f)):27==f.keyCode&&(this.graph.stopEditing(this.isCancelEditingKeyEvent(f)),mxEvent.consume(f)))}));var d=mxUtils.bind(this,function(f){null!=this.editingCell&&this.clearOnChange&&a.innerHTML==this.getEmptyLabelText()&&(!mxClient.IS_FF||8!=f.keyCode&&46!=f.keyCode)&&(this.clearOnChange=!1,a.innerText="")});mxEvent.addListener(a,"keypress",d);mxEvent.addListener(a,"paste",d);d=mxUtils.bind(this,function(f){null!=this.editingCell&&(this.graph.container.scrollTop= b,this.graph.container.scrollLeft=c,a.scrollIntoView({block:"nearest",inline:"nearest"}),0==this.textarea.innerHTML.length||"
"==this.textarea.innerHTML?(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0=g.length||l[m]!=g[m]){for(var n=l[m].firstChild;null!=n;){var p=n.nextSibling;l[m].parentNode.insertBefore(n,l[m]);n=p}l[m].parentNode.removeChild(l[m]);break}}),0)}));d=mxClient.IS_IE11||mxClient.IS_IE?"keydown":"input";var e=mxUtils.bind(this,function(f){null!=this.editingCell&&this.autoSize&&!mxEvent.isConsumed(f)&& -(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);9<=document.documentMode?(mxEvent.addListener(a,"DOMNodeRemoved",e),mxEvent.addListener(a,"DOMNodeInserted",e)):(mxEvent.addListener(a,"cut",e),mxEvent.addListener(a,"paste",e))}; -mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)};mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; +(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);mxEvent.addListener(a,"cut",e);mxEvent.addListener(a,"paste",e)};mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)}; +mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; mxCellEditor.prototype.resize=function(){var a=this.graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.textarea){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=null;if(this.autoSize&&"fill"!=a.style[mxConstants.STYLE_OVERFLOW]){var e=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_WIDTH,null);d=null!=a.text&&null==this.align?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(this.align||mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));if(b){if(this.bounds=new mxRectangle(a.absoluteOffset.x,a.absoluteOffset.y,0,0),null!=e){var f=(parseFloat(e)+2)*c;this.bounds.width=f;this.bounds.x+=d.x*f}}else{b=mxRectangle.fromRectangle(a);var g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=null!=a.shape&& g==mxConstants.ALIGN_CENTER&&k==mxConstants.ALIGN_MIDDLE?a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legacySpacing||"width"!=a.style[mxConstants.STYLE_OVERFLOW]&&"block"!=a.style[mxConstants.STYLE_OVERFLOW]){g=parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING,2))*c;var l=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_TOP,0))+mxText.prototype.baseSpacingTop)*c+g,m=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_RIGHT, 0))+mxText.prototype.baseSpacingRight)*c+g,n=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_BOTTOM,0))+mxText.prototype.baseSpacingBottom)*c+g,p=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_LEFT,0))+mxText.prototype.baseSpacingLeft)*c+g;g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=new mxRectangle(b.x+p,b.y+l,b.width-(g==mxConstants.ALIGN_CENTER&& null==e?p+m:0),b.height-(k==mxConstants.ALIGN_MIDDLE?l+n:0));this.graph.isHtmlLabel(a.cell)&&(b.x-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.y-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.width+=mxSvgCanvas2D.prototype.foreignObjectPadding)}this.bounds=new mxRectangle(b.x+a.absoluteOffset.x,b.y+a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height))if(e=this.textDirection=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION, mxConstants.DEFAULT_TEXT_DIRECTION),e=null!=e&&"vertical-"==e.substring(0,9),this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal",this.textarea.innerHTML!=this.getEmptyLabelText())if(f=Math.round(this.bounds.width/c)+this.wordWrapPadding,"relative"!=this.textarea.style.position)this.textarea.style.width=f+"px",this.textarea.scrollWidth>f&&(this.textarea.style.width=this.textarea.scrollWidth+"px");else if("block"==a.style[mxConstants.STYLE_OVERFLOW]||"width"== -a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";8==document.documentMode&&(this.textarea.style.zoom="1",this.textarea.style.height="auto");8==document.documentMode? -(a=this.textarea.scrollWidth,f=this.textarea.scrollHeight,this.textarea.style.left=Math.max(0,Math.ceil((this.bounds.x-d.x*(this.bounds.width-(a+1)*c)+a*(c-1)*0+2*(d.x+.5))/c))+"px",this.textarea.style.top=Math.max(0,Math.ceil((this.bounds.y-d.y*(this.bounds.height-(f+.5)*c)+f*(c-1)*0+1*Math.abs(d.y+.5))/c))+"px",this.textarea.style.width=Math.round(a*c)+"px",this.textarea.style.height=Math.round(f*c)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+ -"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px")}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",8==document.documentMode?(this.textarea.style.left=Math.round(this.bounds.x)+"px",this.textarea.style.top=Math.round(this.bounds.y)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top= -Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()?(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width= -""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null==d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null}; -mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; +a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+"px";this.textarea.style.top= +Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px"}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px",this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()? +(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null== +d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null};mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; mxCellEditor.prototype.updateTextAreaStyle=function(a){var b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTCOLOR,"black"),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style, mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,k=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&k.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&k.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(b*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.backgroundColor= this.getBackgroundColor(a);this.textarea.style.textDecoration=k.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontSize=Math.round(b)+"px";this.textarea.style.zIndex=this.zIndex;this.textarea.style.fontFamily=c;this.textarea.style.textAlign=e;this.textarea.style.outline="none";this.textarea.style.writingMode="";this.textarea.style.color=d;b=this.getBorderColor(a);this.textarea.style.border=null!=b?"1px solid "+b:"none";b= @@ -2092,8 +2090,8 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&& this.container.parentNode.removeChild(this.container)}; var ErrorDialog=function(a,b,e,f,g,d,h,n,r,l,p){r=null!=r?r:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var z=document.createElement("div");z.style.padding="0px";z.style.margin="0px";z.style.fontSize="18px";z.style.paddingBottom="16px";z.style.marginBottom="10px";z.style.borderBottom="1px solid #c0c0c0";z.style.color="gray";z.style.whiteSpace="nowrap";z.style.textOverflow="ellipsis";z.style.overflow="hidden";mxUtils.write(z,b);z.setAttribute("title",b);w.appendChild(z)}b= -document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"
"));b.innerHTML=e;w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=l&&(l=mxUtils.button(l,function(){null!=p&&p()}),l.className="geBtn",e.appendChild(l));var C=mxUtils.button(f, -function(){r&&a.hideDialog();null!=g&&g()});C.className="geBtn";e.appendChild(C);null!=h&&(f=mxUtils.button(h,function(){r&&a.hideDialog();null!=n&&n()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b){this.create(a,b)}; +document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof e&&(e=e.replace(/\n/g,"
"));b.innerHTML=Graph.sanitizeHtml(e);w.appendChild(b);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",e.appendChild(b),e.style.textAlign="center");null!=l&&(l=mxUtils.button(l,function(){null!=p&&p()}),l.className="geBtn",e.appendChild(l)); +var C=mxUtils.button(f,function(){r&&a.hideDialog();null!=g&&g()});C.className="geBtn";e.appendChild(C);null!=h&&(f=mxUtils.button(h,function(){r&&a.hideDialog();null!=n&&n()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){C.focus()};w.appendChild(e);this.container=w},PrintDialog=function(a,b){this.create(a,b)}; PrintDialog.prototype.create=function(a){function b(C){var F=h.checked||l.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,I=1/e.pageScale;if(F){var K=h.checked?1:parseInt(p.value);isNaN(K)||(I=mxUtils.getScaleForPageCount(K,e,G))}var P=K=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);I*=D;!F&&e.pageVisible?(D=e.getPageLayout(),K-=D.x*G.width,P-=D.y*G.height): F=!0;F=PrintDialog.createPrintPreview(e,I,G,0,K,P,F);F.open();C&&PrintDialog.printPreview(F)}var e=a.editor.graph,f=document.createElement("table");f.style.width="100%";f.style.height="100%";var g=document.createElement("tbody");var d=document.createElement("tr");var h=document.createElement("input");h.setAttribute("type","checkbox");var n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";n.appendChild(h);var r=document.createElement("span");mxUtils.write(r," "+mxResources.get("fitPage")); n.appendChild(r);mxEvent.addListener(r,"click",function(C){h.checked=!h.checked;l.checked=!h.checked;mxEvent.consume(C)});mxEvent.addListener(h,"change",function(){l.checked=!h.checked});d.appendChild(n);g.appendChild(d);d=d.cloneNode(!1);var l=document.createElement("input");l.setAttribute("type","checkbox");n=document.createElement("td");n.style.fontSize="10pt";n.appendChild(l);r=document.createElement("span");mxUtils.write(r," "+mxResources.get("posterPrint")+":");n.appendChild(r);mxEvent.addListener(r, @@ -2886,7 +2884,7 @@ this.isTableRow(M)||this.isTableCell(M)||this.isSwimlane(M))){ca=ca.clone();ca.x $a)+(A?-1:1),Ra.length)],[M])}E.push(M)}}}finally{B.endUpdate()}return E};Graph.prototype.stencilHasPlaceholders=function(u){if(null!=u&&null!=u.fgNode)for(u=u.fgNode.firstChild;null!=u;){if("text"==u.nodeName&&"1"==u.getAttribute("placeholders"))return!0;u=u.nextSibling}return!1};var F=Graph.prototype.processChange;Graph.prototype.processChange=function(u){if(u instanceof mxGeometryChange&&(this.isTableCell(u.cell)||this.isTableRow(u.cell))&&(null==u.previous&&null!=u.geometry||null!=u.previous&& !u.previous.equals(u.geometry))){var A=u.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}F.apply(this,arguments);u instanceof mxValueChange&&null!=u.cell&&null!=u.cell.value&&"object"==typeof u.cell.value&&this.invalidateDescendantsWithPlaceholders(u.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(u){u=this.model.getDescendants(u); if(0M||ja>M)&&this.clear());else{for(ca=ja.getSource();null!=ca&&"a"!=ca.nodeName.toLowerCase();)ca=ca.parentNode;null!=ca?this.clear():(null!=W.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&W.tooltipHandler.reset(ja,!0,this.currentState),(null==this.currentState||ja.getState()!=this.currentState&& -null!=ja.sourceState||!W.intersects(this.currentState,ja.getGraphX(),ja.getGraphY()))&&this.updateCurrentState(ja))}},mouseUp:function(ca,ja){var wa=ja.getSource();for(ca=ja.getEvent();null!=wa&&"a"!=wa.nodeName.toLowerCase();)wa=wa.parentNode;null==wa&&Math.abs(this.scrollLeft-W.container.scrollLeft)M||ja>M)&&this.clear());else{for(ca=ja.getSource();null!=ca&&"a"!=ca.nodeName.toLowerCase();)ca=ca.parentNode;null!=ca?this.clear():(null!=W.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&W.tooltipHandler.reset(ja,!0,this.currentState),(null==this.currentState||ja.getState()!= +this.currentState&&null!=ja.sourceState||!W.intersects(this.currentState,ja.getGraphX(),ja.getGraphY()))&&this.updateCurrentState(ja))}},mouseUp:function(ca,ja){var wa=ja.getSource();for(ca=ja.getEvent();null!=wa&&"a"!=wa.nodeName.toLowerCase();)wa=wa.parentNode;null==wa&&Math.abs(this.scrollLeft-W.container.scrollLeft)"));return B=Graph.sanitizeHtml(B,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue; -mxCellEditor.prototype.getCurrentValue=function(u){if("0"==mxUtils.getValue(u.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return A="1"==mxUtils.getValue(u.style,"nl2Br","1")?A.replace(/\r\n/g,"
").replace(/\n/g,"
"):A.replace(/\r\n/g,"").replace(/\n/g,"")};var Z=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(u){this.codeViewMode&&this.toggleViewMode();Z.apply(this,arguments); -this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(u){}};var S=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(u,A){this.graph.getModel().beginUpdate();try{S.apply(this,arguments),""==A&&this.graph.isCellDeletable(u.cell)&&0==this.graph.model.getChildCount(u.cell)&&this.graph.isTransparentState(u)&&this.graph.removeCells([u.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor= -function(u){var A=mxUtils.getValue(u.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=A&&A!=mxConstants.NONE||!(null!=u.cell.geometry&&0u;u++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR); -A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();u=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(u,A)};var ka=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var u=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&& -mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var E=0;E'); +mxCellEditor.prototype.getCurrentValue=function(u){if("0"==mxUtils.getValue(u.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(u.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"
").replace(/\n/g,"
"),0"==A.substring(A.length-5)||"
"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("
")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var Z= +mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(u){this.codeViewMode&&this.toggleViewMode();Z.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(u){}};var S=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(u,A){this.graph.getModel().beginUpdate();try{S.apply(this,arguments),""==A&&this.graph.isCellDeletable(u.cell)&&0==this.graph.model.getChildCount(u.cell)&& +this.graph.isTransparentState(u)&&this.graph.removeCells([u.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(u){var A=mxUtils.getValue(u.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=A&&A!=mxConstants.NONE||!(null!=u.cell.geometry&&0u;u++){var A=new mxRectangleShape(new mxRectangle(0, +0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();u=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(u,A)};var ka=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var u=new mxPoint(0,0),A=this.tolerance, +B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var E=0;E'); Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle= Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'
')))}catch(k){}Editor.prototype.useCanvasForExport= !1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,d){d.previousColor=d.color;d.previousImage=d.image;d.previousFormat=d.format;null!=d.foldingEnabled&&(d.foldingEnabled=!d.foldingEnabled);null!=d.mathEnabled&&(d.mathEnabled=!d.mathEnabled);null!=d.shadowVisible&&(d.shadowVisible=!d.shadowVisible);return d};mxCodecRegistry.register(b)})(); -(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.4";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= +(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.5";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&& null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" "); EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}}; diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.js index cae9e7b4b..01c2174c0 100644 --- a/src/main/webapp/js/viewer-static.min.js +++ b/src/main/webapp/js/viewer-static.min.js @@ -112,7 +112,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url "se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1"); "embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources"; window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang; -window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.4",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -1017,26 +1017,24 @@ function mxCellEditor(a){this.graph=a;this.zoomHandler=mxUtils.bind(this,functio this.updateTextAreaStyle(b))});this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler)}mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editingCell=null;mxCellEditor.prototype.trigger=null;mxCellEditor.prototype.modified=!1;mxCellEditor.prototype.autoSize=!0;mxCellEditor.prototype.selectText=!0;mxCellEditor.prototype.emptyLabelText=mxClient.IS_FF?"
":"";mxCellEditor.prototype.escapeCancelsEditing=!0;mxCellEditor.prototype.textNode=""; mxCellEditor.prototype.zIndex=1;mxCellEditor.prototype.minResize=new mxRectangle(0,20);mxCellEditor.prototype.wordWrapPadding=0;mxCellEditor.prototype.blurEnabled=!1;mxCellEditor.prototype.initialValue=null;mxCellEditor.prototype.align=null; mxCellEditor.prototype.init=function(){this.textarea=document.createElement("div");this.textarea.className="mxCellEditor mxPlainTextEditor";this.textarea.contentEditable=!0;mxClient.IS_GC&&(this.textarea.style.minHeight="1em");this.textarea.style.position=this.isLegacyEditor()?"absolute":"relative";this.installListeners(this.textarea)};mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)}; -mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);8!=document.documentMode&&9!=document.documentMode&&10!=document.documentMode&&(a=mxUtils.replaceTrailingNewlines(a,"

"));return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; +mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);a=mxUtils.replaceTrailingNewlines(a,"

");return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; mxCellEditor.prototype.isCancelEditingKeyEvent=function(a){return this.escapeCancelsEditing||mxEvent.isShiftDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)}; mxCellEditor.prototype.installListeners=function(a){mxEvent.addListener(a,"dragstart",mxUtils.bind(this,function(f){this.graph.stopEditing(!1);mxEvent.consume(f)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,function(f){this.blurEnabled&&this.focusLost(f)}));var b=this.graph.container.scrollTop,c=this.graph.container.scrollLeft;mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(f){b=this.graph.container.scrollTop;c=this.graph.container.scrollLeft;mxEvent.isConsumed(f)||(this.isStopEditingEvent(f)? (this.graph.stopEditing(!1),mxEvent.consume(f)):27==f.keyCode&&(this.graph.stopEditing(this.isCancelEditingKeyEvent(f)),mxEvent.consume(f)))}));var d=mxUtils.bind(this,function(f){null!=this.editingCell&&this.clearOnChange&&a.innerHTML==this.getEmptyLabelText()&&(!mxClient.IS_FF||8!=f.keyCode&&46!=f.keyCode)&&(this.clearOnChange=!1,a.innerText="")});mxEvent.addListener(a,"keypress",d);mxEvent.addListener(a,"paste",d);d=mxUtils.bind(this,function(f){null!=this.editingCell&&(this.graph.container.scrollTop= b,this.graph.container.scrollLeft=c,a.scrollIntoView({block:"nearest",inline:"nearest"}),0==this.textarea.innerHTML.length||"
"==this.textarea.innerHTML?(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0=g.length||l[m]!=g[m]){for(var n=l[m].firstChild;null!=n;){var p=n.nextSibling;l[m].parentNode.insertBefore(n,l[m]);n=p}l[m].parentNode.removeChild(l[m]);break}}),0)}));d=mxClient.IS_IE11||mxClient.IS_IE?"keydown":"input";var e=mxUtils.bind(this,function(f){null!=this.editingCell&&this.autoSize&&!mxEvent.isConsumed(f)&& -(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);9<=document.documentMode?(mxEvent.addListener(a,"DOMNodeRemoved",e),mxEvent.addListener(a,"DOMNodeInserted",e)):(mxEvent.addListener(a,"cut",e),mxEvent.addListener(a,"paste",e))}; -mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)};mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; +(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);mxEvent.addListener(a,"cut",e);mxEvent.addListener(a,"paste",e)};mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)}; +mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; mxCellEditor.prototype.resize=function(){var a=this.graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.textarea){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=null;if(this.autoSize&&"fill"!=a.style[mxConstants.STYLE_OVERFLOW]){var e=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_WIDTH,null);d=null!=a.text&&null==this.align?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(this.align||mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));if(b){if(this.bounds=new mxRectangle(a.absoluteOffset.x,a.absoluteOffset.y,0,0),null!=e){var f=(parseFloat(e)+2)*c;this.bounds.width=f;this.bounds.x+=d.x*f}}else{b=mxRectangle.fromRectangle(a);var g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=null!=a.shape&& g==mxConstants.ALIGN_CENTER&&k==mxConstants.ALIGN_MIDDLE?a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legacySpacing||"width"!=a.style[mxConstants.STYLE_OVERFLOW]&&"block"!=a.style[mxConstants.STYLE_OVERFLOW]){g=parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING,2))*c;var l=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_TOP,0))+mxText.prototype.baseSpacingTop)*c+g,m=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_RIGHT, 0))+mxText.prototype.baseSpacingRight)*c+g,n=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_BOTTOM,0))+mxText.prototype.baseSpacingBottom)*c+g,p=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_LEFT,0))+mxText.prototype.baseSpacingLeft)*c+g;g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=new mxRectangle(b.x+p,b.y+l,b.width-(g==mxConstants.ALIGN_CENTER&& null==e?p+m:0),b.height-(k==mxConstants.ALIGN_MIDDLE?l+n:0));this.graph.isHtmlLabel(a.cell)&&(b.x-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.y-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.width+=mxSvgCanvas2D.prototype.foreignObjectPadding)}this.bounds=new mxRectangle(b.x+a.absoluteOffset.x,b.y+a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height))if(e=this.textDirection=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION, mxConstants.DEFAULT_TEXT_DIRECTION),e=null!=e&&"vertical-"==e.substring(0,9),this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal",this.textarea.innerHTML!=this.getEmptyLabelText())if(f=Math.round(this.bounds.width/c)+this.wordWrapPadding,"relative"!=this.textarea.style.position)this.textarea.style.width=f+"px",this.textarea.scrollWidth>f&&(this.textarea.style.width=this.textarea.scrollWidth+"px");else if("block"==a.style[mxConstants.STYLE_OVERFLOW]||"width"== -a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";8==document.documentMode&&(this.textarea.style.zoom="1",this.textarea.style.height="auto");8==document.documentMode? -(a=this.textarea.scrollWidth,f=this.textarea.scrollHeight,this.textarea.style.left=Math.max(0,Math.ceil((this.bounds.x-d.x*(this.bounds.width-(a+1)*c)+a*(c-1)*0+2*(d.x+.5))/c))+"px",this.textarea.style.top=Math.max(0,Math.ceil((this.bounds.y-d.y*(this.bounds.height-(f+.5)*c)+f*(c-1)*0+1*Math.abs(d.y+.5))/c))+"px",this.textarea.style.width=Math.round(a*c)+"px",this.textarea.style.height=Math.round(f*c)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+ -"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px")}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",8==document.documentMode?(this.textarea.style.left=Math.round(this.bounds.x)+"px",this.textarea.style.top=Math.round(this.bounds.y)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top= -Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()?(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width= -""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null==d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null}; -mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; +a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+"px";this.textarea.style.top= +Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px"}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px",this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()? +(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null== +d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null};mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; mxCellEditor.prototype.updateTextAreaStyle=function(a){var b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTCOLOR,"black"),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style, mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,k=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&k.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&k.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(b*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.backgroundColor= this.getBackgroundColor(a);this.textarea.style.textDecoration=k.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontSize=Math.round(b)+"px";this.textarea.style.zIndex=this.zIndex;this.textarea.style.fontFamily=c;this.textarea.style.textAlign=e;this.textarea.style.outline="none";this.textarea.style.writingMode="";this.textarea.style.color=d;b=this.getBorderColor(a);this.textarea.style.border=null!=b?"1px solid "+b:"none";b= @@ -2044,12 +2042,12 @@ Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFi Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(n,t){e.undoableEditHappened(t.getProperty("edit"))};var g=mxUtils.bind(this,function(n,t){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(n,t){n=b.getSelectionCellsForChanges(t.getProperty("edit").changes,function(C){return!(C instanceof mxChildChange)});if(0G.clientHeight-f&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")), +t&&document.body.appendChild(this.bg);var G=b.createDiv(Q?"geTransDialog":"geDialog");t=this.getPosition(k,y,g,n);k=t.x;y=t.y;G.style.width=g+"px";G.style.height=n+"px";G.style.left=k+"px";G.style.top=y+"px";G.style.zIndex=this.zIndex;G.appendChild(e);document.body.appendChild(G);!J&&e.clientHeight>G.clientHeight-f&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")), p.className="geDialogClose",p.style.top=y+14+"px",p.style.left=k+g+38-S+"px",p.style.zIndex=this.zIndex,mxEvent.addListener(p,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(p),this.dialogImg=p,!H)){var M=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(N){M=!0}),null,mxUtils.bind(this,function(N){M&&(b.hideDialog(!0),M=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=F){var N=F();null!=N&&(V=g=N.w,c=n=N.h)}N=Editor.inlineFullscreen|| null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);z=N.height;this.bg.style.height=z+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(V,document.body.scrollWidth-f):V;n=Math.min(c,z-f);N=Math.max(1,Math.round((N.width-g-f)/2));var K=Math.max(1,Math.round((z-n-b.footerHeight)/3));K=this.getPosition(N,K,g,n);N=K.x;K=K.y;var ja=mxUtils.getDocumentScrollOrigin(document);N+=ja.x;K+=ja.y; -Editor.inlineFullscreen||null==b.embedViewport||(K+=b.embedViewport.y,N+=b.embedViewport.x);G.style.left=N+"px";G.style.top=K+"px";G.style.width=g+"px";G.style.height=n+"px";!I&&e.clientHeight>G.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=K+14+"px",this.dialogImg.style.left=N+g+38-S+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=C;this.container= +Editor.inlineFullscreen||null==b.embedViewport||(K+=b.embedViewport.y,N+=b.embedViewport.x);G.style.left=N+"px";G.style.top=K+"px";G.style.width=g+"px";G.style.height=n+"px";!J&&e.clientHeight>G.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=K+14+"px",this.dialogImg.style.left=N+g+38-S+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=C;this.container= G;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2; Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+ "/nocolor.png";Dialog.prototype.defaultColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD///+l2Z/dAAAAKUlEQVQI1wXBMREAIAwEsHAMjJVQKZVW6U8CDpdH0QxLnLjxoqJjYvMBewMJ51TWcscAAAAASUVORK5CYII=":IMAGE_PATH+"/defaultcolor.png"; @@ -2058,67 +2056,67 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA "/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,e){return new mxPoint(b,e)}; Dialog.prototype.close=function(b,e){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,e))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&& this.container.parentNode.removeChild(this.container)}; -var ErrorDialog=function(b,e,g,n,t,p,C,I,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div");S.style.textAlign="center";if(null!=e){var V=document.createElement("div");V.style.padding="0px";V.style.margin="0px";V.style.fontSize="18px";V.style.paddingBottom="16px";V.style.marginBottom="10px";V.style.borderBottom="1px solid #c0c0c0";V.style.color="gray";V.style.whiteSpace="nowrap";V.style.textOverflow="ellipsis";V.style.overflow="hidden";mxUtils.write(V,e);V.setAttribute("title",e);S.appendChild(V)}e= -document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"
"));e.innerHTML=g;S.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=H&&H()}),F.className="geBtn",g.appendChild(F));var c=mxUtils.button(n, -function(){Q&&b.hideDialog();null!=t&&t()});c.className="geBtn";g.appendChild(c);null!=C&&(n=mxUtils.button(C,function(){Q&&b.hideDialog();null!=I&&I()}),n.className="geBtn gePrimaryBtn",g.appendChild(n));this.init=function(){c.focus()};S.appendChild(g);this.container=S},PrintDialog=function(b,e){this.create(b,e)}; +var ErrorDialog=function(b,e,g,n,t,p,C,J,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div");S.style.textAlign="center";if(null!=e){var V=document.createElement("div");V.style.padding="0px";V.style.margin="0px";V.style.fontSize="18px";V.style.paddingBottom="16px";V.style.marginBottom="10px";V.style.borderBottom="1px solid #c0c0c0";V.style.color="gray";V.style.whiteSpace="nowrap";V.style.textOverflow="ellipsis";V.style.overflow="hidden";mxUtils.write(V,e);V.setAttribute("title",e);S.appendChild(V)}e= +document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"
"));e.innerHTML=Graph.sanitizeHtml(g);S.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=H&&H()}),F.className="geBtn",g.appendChild(F)); +var c=mxUtils.button(n,function(){Q&&b.hideDialog();null!=t&&t()});c.className="geBtn";g.appendChild(c);null!=C&&(n=mxUtils.button(C,function(){Q&&b.hideDialog();null!=J&&J()}),n.className="geBtn gePrimaryBtn",g.appendChild(n));this.init=function(){c.focus()};S.appendChild(g);this.container=S},PrintDialog=function(b,e){this.create(b,e)}; PrintDialog.prototype.create=function(b){function e(c){var f=C.checked||F.checked,k=parseInt(S.value)/100;isNaN(k)&&(k=1,S.value="100%");mxClient.IS_SF&&(k*=.75);var z=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,y=1/g.pageScale;if(f){var A=C.checked?1:parseInt(H.value);isNaN(A)||(y=mxUtils.getScaleForPageCount(A,g,z))}var G=A=0;z=mxRectangle.fromRectangle(z);z.width=Math.ceil(z.width*k);z.height=Math.ceil(z.height*k);y*=k;!f&&g.pageVisible?(k=g.getPageLayout(),A-=k.x*z.width,G-=k.y*z.height): -f=!0;f=PrintDialog.createPrintPreview(g,y,z,0,A,G,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var t=document.createElement("tbody");var p=document.createElement("tr");var C=document.createElement("input");C.setAttribute("type","checkbox");var I=document.createElement("td");I.setAttribute("colspan","2");I.style.fontSize="10pt";I.appendChild(C);var Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("fitPage")); -I.appendChild(Q);mxEvent.addListener(Q,"click",function(c){C.checked=!C.checked;F.checked=!C.checked;mxEvent.consume(c)});mxEvent.addListener(C,"change",function(){F.checked=!C.checked});p.appendChild(I);t.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");I=document.createElement("td");I.style.fontSize="10pt";I.appendChild(F);Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("posterPrint")+":");I.appendChild(Q);mxEvent.addListener(Q, -"click",function(c){F.checked=!F.checked;C.checked=!F.checked;mxEvent.consume(c)});p.appendChild(I);var H=document.createElement("input");H.setAttribute("value","1");H.setAttribute("type","number");H.setAttribute("min","1");H.setAttribute("size","4");H.setAttribute("disabled","disabled");H.style.width="50px";I=document.createElement("td");I.style.fontSize="10pt";I.appendChild(H);mxUtils.write(I," "+mxResources.get("pages")+" (max)");p.appendChild(I);t.appendChild(p);mxEvent.addListener(F,"change", -function(){F.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled");C.checked=!F.checked});p=p.cloneNode(!1);I=document.createElement("td");mxUtils.write(I,mxResources.get("pageScale")+":");p.appendChild(I);I=document.createElement("td");var S=document.createElement("input");S.setAttribute("value","100 %");S.setAttribute("size","5");S.style.width="50px";I.appendChild(S);p.appendChild(I);t.appendChild(p);p=document.createElement("tr");I=document.createElement("td");I.colSpan=2; -I.style.paddingTop="20px";I.setAttribute("align","right");Q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});Q.className="geBtn";b.editor.cancelFirst&&I.appendChild(Q);if(PrintDialog.previewEnabled){var V=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});V.className="geBtn";I.appendChild(V)}V=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});V.className="geBtn gePrimaryBtn";I.appendChild(V);b.editor.cancelFirst|| -I.appendChild(Q);p.appendChild(I);t.appendChild(p);n.appendChild(t);this.container=n};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}}; -PrintDialog.createPrintPreview=function(b,e,g,n,t,p,C){e=new mxPrintPreview(b,e,g,n,t,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=C;C=b.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";e.backgroundColor=C;var I=e.isTextLabel;e.isTextLabel=function(H){return"geHint"==!H.className&&I.apply(this,arguments)};var Q=e.getLinkForCellState;e.getLinkForCellState=function(H){return b.getAbsoluteUrl(Q.apply(this,arguments))};var F=e.writeHead; +f=!0;f=PrintDialog.createPrintPreview(g,y,z,0,A,G,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var t=document.createElement("tbody");var p=document.createElement("tr");var C=document.createElement("input");C.setAttribute("type","checkbox");var J=document.createElement("td");J.setAttribute("colspan","2");J.style.fontSize="10pt";J.appendChild(C);var Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("fitPage")); +J.appendChild(Q);mxEvent.addListener(Q,"click",function(c){C.checked=!C.checked;F.checked=!C.checked;mxEvent.consume(c)});mxEvent.addListener(C,"change",function(){F.checked=!C.checked});p.appendChild(J);t.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");J=document.createElement("td");J.style.fontSize="10pt";J.appendChild(F);Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("posterPrint")+":");J.appendChild(Q);mxEvent.addListener(Q, +"click",function(c){F.checked=!F.checked;C.checked=!F.checked;mxEvent.consume(c)});p.appendChild(J);var H=document.createElement("input");H.setAttribute("value","1");H.setAttribute("type","number");H.setAttribute("min","1");H.setAttribute("size","4");H.setAttribute("disabled","disabled");H.style.width="50px";J=document.createElement("td");J.style.fontSize="10pt";J.appendChild(H);mxUtils.write(J," "+mxResources.get("pages")+" (max)");p.appendChild(J);t.appendChild(p);mxEvent.addListener(F,"change", +function(){F.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled");C.checked=!F.checked});p=p.cloneNode(!1);J=document.createElement("td");mxUtils.write(J,mxResources.get("pageScale")+":");p.appendChild(J);J=document.createElement("td");var S=document.createElement("input");S.setAttribute("value","100 %");S.setAttribute("size","5");S.style.width="50px";J.appendChild(S);p.appendChild(J);t.appendChild(p);p=document.createElement("tr");J=document.createElement("td");J.colSpan=2; +J.style.paddingTop="20px";J.setAttribute("align","right");Q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});Q.className="geBtn";b.editor.cancelFirst&&J.appendChild(Q);if(PrintDialog.previewEnabled){var V=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});V.className="geBtn";J.appendChild(V)}V=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});V.className="geBtn gePrimaryBtn";J.appendChild(V);b.editor.cancelFirst|| +J.appendChild(Q);p.appendChild(J);t.appendChild(p);n.appendChild(t);this.container=n};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}}; +PrintDialog.createPrintPreview=function(b,e,g,n,t,p,C){e=new mxPrintPreview(b,e,g,n,t,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=C;C=b.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";e.backgroundColor=C;var J=e.isTextLabel;e.isTextLabel=function(H){return"geHint"==!H.className&&J.apply(this,arguments)};var Q=e.getLinkForCellState;e.getLinkForCellState=function(H){return b.getAbsoluteUrl(Q.apply(this,arguments))};var F=e.writeHead; e.writeHead=function(H){F.apply(this,arguments);H.writeln('")};return e};PrintDialog.previewEnabled=!0; var PageSetupDialog=function(b){function e(){var k=S;null!=k&&null!=k.originalSrc&&(k=b.createImageForPageLink(k.originalSrc,null));null!=k&&null!=k.src?(H.style.backgroundImage="url("+k.src+")",H.style.display="inline-block"):(H.style.backgroundImage="",H.style.display="none");H.style.backgroundColor="";null!=V&&V!=mxConstants.NONE&&(H.style.backgroundColor=V,H.style.display="inline-block")}var g=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var t=document.createElement("tbody"); -var p=document.createElement("tr");var C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";mxUtils.write(C,mxResources.get("paperSize")+":");p.appendChild(C);C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";var I=PageSetupDialog.addPageFormatPanel(C,"pagesetupdialog",g.pageFormat);p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td");mxUtils.write(C,mxResources.get("gridSize")+":");p.appendChild(C); +var p=document.createElement("tr");var C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";mxUtils.write(C,mxResources.get("paperSize")+":");p.appendChild(C);C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";var J=PageSetupDialog.addPageFormatPanel(C,"pagesetupdialog",g.pageFormat);p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td");mxUtils.write(C,mxResources.get("gridSize")+":");p.appendChild(C); C=document.createElement("td");C.style.whiteSpace="nowrap";var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="6px";Q.value=g.getGridSize();C.appendChild(Q);mxEvent.addListener(Q,"change",function(){var k=parseInt(Q.value);Q.value=Math.max(1,isNaN(k)?g.getGridSize():k)});p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td");mxUtils.write(C,mxResources.get("background")+":"); p.appendChild(C);C=document.createElement("td");var F=document.createElement("button");F.className="geBtn";F.style.margin="0px";mxUtils.write(F,mxResources.get("change")+"...");var H=document.createElement("div");H.style.display="inline-block";H.style.verticalAlign="middle";H.style.backgroundPosition="center center";H.style.backgroundRepeat="no-repeat";H.style.backgroundSize="contain";H.style.border="1px solid lightGray";H.style.borderRadius="4px";H.style.marginRight="14px";H.style.height="32px"; H.style.width="64px";H.style.cursor="pointer";H.style.padding="4px";var S=g.backgroundImage,V=g.background,c=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(z,y,A,G){y||(null!=z&&null!=z.src&&Graph.isPageLink(z.src)&&(z={originalSrc:z.src}),S=z,c=G);V=A;e()},S,V,!0);mxEvent.consume(k)};mxEvent.addListener(F,"click",f);mxEvent.addListener(H,"click",f);e();C.appendChild(H);C.appendChild(F);p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td"); -C.colSpan=2;C.style.paddingTop="16px";C.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&C.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(Q.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,V,S,I.get());k.ignoreColor=g.background==V;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=S?S.src:null);null!=c&& +C.colSpan=2;C.style.paddingTop="16px";C.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&C.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(Q.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,V,S,J.get());k.ignoreColor=g.background==V;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=S?S.src:null);null!=c&& (k.shadowVisible=c);g.pageFormat.width==k.previousFormat.width&&g.pageFormat.height==k.previousFormat.height&&k.ignoreColor&&k.ignoreImage&&k.shadowVisible==g.shadowVisible||g.model.execute(k)});f.className="geBtn gePrimaryBtn";C.appendChild(f);b.editor.cancelFirst||C.appendChild(F);p.appendChild(C);t.appendChild(p);n.appendChild(t);this.container=n}; -PageSetupDialog.addPageFormatPanel=function(b,e,g,n){function t(N,K,ja){if(ja||S!=document.activeElement&&V!=document.activeElement){N=!1;for(K=0;K=N)S.value=g.width/100;N=parseFloat(V.value);if(isNaN(N)||0>=N)V.value=g.height/100;N=new mxRectangle(0,0,Math.floor(100* -parseFloat(S.value)),Math.floor(100*parseFloat(V.value)));"custom"!=I.value&&C.checked&&(N=new mxRectangle(0,0,N.height,N.width));K&&A||N.width==G.width&&N.height==G.height||(G=N,null!=n&&n(G))};mxEvent.addListener(e,"click",function(N){p.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(F,"click",function(N){C.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(S,"blur",M);mxEvent.addListener(S,"click",M);mxEvent.addListener(V,"blur",M);mxEvent.addListener(V,"click",M);mxEvent.addListener(C, -"change",M);mxEvent.addListener(p,"change",M);mxEvent.addListener(I,"change",function(N){A="custom"==I.value;M(N,!0)});M();return{set:function(N){g=N;t(null,null,!0)},get:function(){return G},widthInput:S,heightInput:V}}; +y.setAttribute("value",z.key);mxUtils.write(y,z.title);J.appendChild(y)}var A=!1;t();b.appendChild(J);mxUtils.br(b);b.appendChild(Q);b.appendChild(H);var G=g,M=function(N,K){N=c[J.value];null!=N.format?(S.value=N.format.width/100,V.value=N.format.height/100,H.style.display="none",Q.style.display=""):(Q.style.display="none",H.style.display="");N=parseFloat(S.value);if(isNaN(N)||0>=N)S.value=g.width/100;N=parseFloat(V.value);if(isNaN(N)||0>=N)V.value=g.height/100;N=new mxRectangle(0,0,Math.floor(100* +parseFloat(S.value)),Math.floor(100*parseFloat(V.value)));"custom"!=J.value&&C.checked&&(N=new mxRectangle(0,0,N.height,N.width));K&&A||N.width==G.width&&N.height==G.height||(G=N,null!=n&&n(G))};mxEvent.addListener(e,"click",function(N){p.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(F,"click",function(N){C.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(S,"blur",M);mxEvent.addListener(S,"click",M);mxEvent.addListener(V,"blur",M);mxEvent.addListener(V,"click",M);mxEvent.addListener(C, +"change",M);mxEvent.addListener(p,"change",M);mxEvent.addListener(J,"change",function(N){A="custom"==J.value;M(N,!0)});M();return{set:function(N){g=N;t(null,null,!0)},get:function(){return G},widthInput:S,heightInput:V}}; PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)", format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)}, {key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]}; -var FilenameDialog=function(b,e,g,n,t,p,C,I,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div"),V=document.createElement("div");V.style.width="100%";V.style.display="grid";V.style.gap="5px 8px";V.style.gridAutoColumns="auto 1fr";V.style.boxSizing="border-box";V.style.padding="3px";var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.justifyContent="flex-end";c.style.minWidth="0";var f=document.createElement("div");f.style.display="inline-block"; +var FilenameDialog=function(b,e,g,n,t,p,C,J,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div"),V=document.createElement("div");V.style.width="100%";V.style.display="grid";V.style.gap="5px 8px";V.style.gridAutoColumns="auto 1fr";V.style.boxSizing="border-box";V.style.padding="3px";var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.justifyContent="flex-end";c.style.minWidth="0";var f=document.createElement("div");f.style.display="inline-block"; f.style.textOverflow="ellipsis";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.fontSize="10pt";f.style.padding="2px 0";f.setAttribute("title",t||mxResources.get("filename"));mxUtils.write(f,(t||mxResources.get("filename"))+":");c.appendChild(f);V.appendChild(c);var k=document.createElement("input");k.setAttribute("value",e||"");k.style.flexGrow="1";var z=mxUtils.button(g,function(){if(null==p||p(k.value))Q&&b.hideDialog(),n(k.value)});z.className="geBtn gePrimaryBtn";this.init=function(){if(null!= t||null==C)if(null!=H?Editor.selectFilename(k):(k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var y=V.parentNode;if(null!=y){var A=null;mxEvent.addListener(y,"dragleave",function(G){null!=A&&(A.style.backgroundColor="",A=null);G.stopPropagation();G.preventDefault()});mxEvent.addListener(y,"dragover",mxUtils.bind(this,function(G){null==A&&(!mxClient.IS_IE||10'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(C,I){b.apply(this,arguments);if(null!=this.shiftPreview1){var Q=this.view.canvas; -null!=Q.ownerSVGElement&&(Q=Q.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+C,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+I,F))+"px";Q.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(C,I,Q){var F=this.view.scale,H=this.view.translate,S=this.pageFormat,V=F*this.pageScale,c=this.view.getBackgroundPageBounds();I=c.width;Q=c.height;var f=new mxRectangle(F* -H.x,F*H.y,S.width*V,S.height*V),k=(C=C&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(Q/f.height)-1:0,z=C?Math.ceil(I/f.width)-1:0,y=c.x+I,A=c.y+Q;null==this.horizontalPageBreaks&&0'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(C,J){b.apply(this,arguments);if(null!=this.shiftPreview1){var Q=this.view.canvas; +null!=Q.ownerSVGElement&&(Q=Q.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+C,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+J,F))+"px";Q.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(C,J,Q){var F=this.view.scale,H=this.view.translate,S=this.pageFormat,V=F*this.pageScale,c=this.view.getBackgroundPageBounds();J=c.width;Q=c.height;var f=new mxRectangle(F* +H.x,F*H.y,S.width*V,S.height*V),k=(C=C&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(Q/f.height)-1:0,z=C?Math.ceil(J/f.width)-1:0,y=c.x+J,A=c.y+Q;null==this.horizontalPageBreaks&&0C.length?35*C.length:140;V.className="geToolbarContainer geSidebarContainer geShapePicker";V.setAttribute("title",mxResources.get("sidebarTooltip"));V.style.left=b+"px";V.style.top=e+"px";V.style.width=t+"px";mxClient.IS_POINTER&&(V.style.touchAction="none");I||mxUtils.setPrefixedStyle(V.style,"transform","translate(-22px,-22px)");null!=S.background&&S.background!=mxConstants.NONE&&(V.style.backgroundColor= +EditorUi.prototype.showShapePicker=function(b,e,g,n,t,p,C,J,Q){J=J||null==g;b=this.createShapePicker(b,e,g,n,t,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,J),p,C,J,Q);null!=b&&(null==this.hoverIcons||p||this.hoverIcons.reset(),p=this.editor.graph,p.popupMenuHandler.hideMenu(),p.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=n,this.shapePicker=b);return b}; +EditorUi.prototype.createShapePicker=function(b,e,g,n,t,p,C,J,Q,F,H){H=null!=H?H:!0;var S=this.editor.graph,V=null;Q=null!=Q?Q:function(k){k=k[0];var z=0,y=0,A=k.geometry;null!=A&&(S.model.isEdge(k)&&(k=A.getTerminalPoint(!1),A=new mxRectangle(0,0,k.x,k.y)),z=A.width/2,y=A.height/2);return new mxPoint(S.snap(Math.round(b/S.view.scale)-S.view.translate.x-z),S.snap(Math.round(e/S.view.scale)-S.view.translate.y-y))};if(null!=C&&0C.length?35*C.length:140;V.className="geToolbarContainer geSidebarContainer geShapePicker";V.setAttribute("title",mxResources.get("sidebarTooltip"));V.style.left=b+"px";V.style.top=e+"px";V.style.width=t+"px";mxClient.IS_POINTER&&(V.style.touchAction="none");J||mxUtils.setPrefixedStyle(V.style,"transform","translate(-22px,-22px)");null!=S.background&&S.background!=mxConstants.NONE&&(V.style.backgroundColor= S.background);S.container.appendChild(V);t=mxUtils.bind(this,function(k){var z=document.createElement("a");z.className="geItem";z.style.cssText="position:relative;display:inline-block;position:relative;width:30px;height:30px;cursor:pointer;overflow:hidden;padding:1px";V.appendChild(z);null!=f&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(f,[k]):this.sidebar.graph.pasteCellStyles([k],S.currentVertexStyle,S.currentEdgeStyle);var y=k.geometry;S.model.isEdge(k)&&(y=y.getTerminalPoint(!1),y=new mxRectangle(0, 0,y.x,y.y));null!=y&&z.appendChild(this.sidebar.createVertexTemplateFromCells([k],y.width,y.height,"",!0,!1,null,!1,mxUtils.bind(this,function(A){if(!mxEvent.isShiftDown(A)||null==g&&S.isSelectionEmpty()){var G=S.cloneCell(k);if(null!=n)n(G);else{var M=Q([G]);S.model.isEdge(G)?G.geometry.translate(M.x,M.y):(G.geometry.x=M.x,G.geometry.y=M.y);S.model.beginUpdate();try{S.addCell(G),S.model.isVertex(G)&&S.isAutoSizeCell(G)&&S.updateCellSize(G)}finally{S.model.endUpdate()}S.setSelectionCell(G);S.scrollCellToVisible(G); -H&&S.startEditing(G);null!=c.hoverIcons&&c.hoverIcons.update(S.view.getState(G))}}else G=S.getEditableCells(null!=g?[g]:S.getSelectionCells()),S.updateShapes(k,G);null!=p&&p(A);mxEvent.consume(A)}),25,25,null,null,g))});for(F=0;F<(I?Math.min(C.length,4):C.length);F++)t(C[F]);C=V.offsetTop+V.clientHeight-(S.container.scrollTop+S.container.offsetHeight);0'],{type:"text/html"})});navigator.clipboard.write([b])["catch"](n)};EditorUi.prototype.writeHtmlToClipboard=function(b,e){b=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(b)],{type:"text/plain"}),"text/html":new Blob([b],{type:"text/html"})});navigator.clipboard.write([b])["catch"](e)}; EditorUi.prototype.writeTextToClipboard=function(b,e){navigator.clipboard.writeText(b)["catch"](e)};EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("<mxGraphModel ");if(0<=g){var n=b.lastIndexOf("</mxGraphModel>");n>g&&(e=b.substring(g,n+21).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}}catch(t){}return e}; EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var n=decodeURIComponent(g);this.isCompatibleString(n)&&(g=n)}b(g)}),"text")}),"html")}; -EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0':"")+Graph.sanitizeHtml(b);asHtml=!0;b=e.getElementsByTagName("style");if(null!=b)for(;0l||Math.abs(C.y-W.getGraphY())>l){var D=null;mxEvent.isControlDown(W.getEvent())|| -mxEvent.isShiftDown(W.getEvent())||(D=this.selectionCellsHandler.getHandler(ba.cell));if(null!=D&&null!=D.bends&&0l||Math.abs(C.y-W.getGraphY())>l){var D=null;mxEvent.isControlDown(W.getEvent())|| +mxEvent.isShiftDown(W.getEvent())||(D=this.selectionCellsHandler.getHandler(ba.cell));if(null!=D&&null!=D.bends&&0'+(""!=t?'":"")+'
'+b+"
")}; +Graph.htmlToPng=function(b,e,g,n,t,p){t=null!=t?t:"";p=null!=p?p:Editor.htmlRasterScale;var C=document.createElement("canvas");C.width=e*p;C.height=g*p;var J=document.createElement("img");J.onload=mxUtils.bind(this,function(){try{var F=C.getContext("2d");F.scale(p,p);F.drawImage(J,0,0);n(C.toDataURL())}catch(H){n(null)}});var Q=mxUtils.createXmlDocument();Q=null!=Q.createElementNS?Q.createElementNS(mxConstants.NS_SVG,"svg"):Q.createElement("svg");b=(new mxSvgCanvas2D(Q)).convertHtml(b);J.onerror= +function(F){n(null)};J.src="data:image/svg+xml,"+encodeURIComponent(''+(""!=t?'":"")+'
'+b+"
")}; Graph.zapGremlins=function(b){for(var e=0,g=[],n=0;npageSize){var G=S.startIndex|| H.createVertex(null,null,mxResources.get("previousPage")+"...",0,0,100,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");N.referenceCell=f;N.startIndex=Math.max(0,(S.startIndex||0)-pageSize);M.splice(0,0,N)}if(z.length>(S.startIndex||0)+pageSize){var K=H.createVertex(null,null,mxResources.get("nextPage")+"...",0,0,100,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");K.referenceCell=f;K.startIndex=(S.startIndex||0)+pageSize;M.splice(0,0,K)}for(var ja in H.getModel().cells){var fa= H.getModel().getCell(ja);fa!=H.rootCell&&!H.getModel().isAncestor(H.rootCell,fa)&&H.getModel().isVertex(fa)&&H.removeCells([fa])}H.addCells(M);var T=H.getModel().getGeometry(H.rootCell);null!=T&&(T=T.clone(),T.x=V-T.width/2,T.y=c-T.height/3,H.getModel().setGeometry(H.rootCell,T));S=[];for(ja in H.getModel().cells)fa=H.getModel().getCell(ja),fa!=H.rootCell&&H.getModel().isVertex(fa)&&H.getModel().getParent(fa)==H.getDefaultParent()&&(S.push(fa),T=H.getModel().getGeometry(fa),null!=T&&(T.x=V-T.width/ 2,T.y=c-T.height/2));var ca=S.length,la=2*Math.PI/ca,ma=Math.max(minSize,Math.min(H.container.scrollWidth/3-80,H.container.scrollHeight/3-80));for(V=0;VmxUtils.indexOf(Q,H)})),this.updateCellStyles(C,I))};Graph.prototype.copyCellStyles=function(C,I,Q,F,H,S,V){var c=!1,f=!1;if(0mxUtils.indexOf(Q,H)})),this.updateCellStyles(C,J))};Graph.prototype.copyCellStyles=function(C,J,Q,F,H,S,V){var c=!1,f=!1;if(0mxUtils.indexOf(Graph.edgeStyles,M))&&(c=mxUtils.setStyle(c,M,ca),"fontFamily"==M&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),T&&"rounded"==M&&"1"==ca&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(V,c)}}finally{this.model.endUpdate()}return C}; -Graph.prototype.updateCellStyles=function(C,I){this.model.beginUpdate();try{for(var Q=0;QmxUtils.indexOf(Graph.edgeStyles,M))&&(c=mxUtils.setStyle(c,M,ca),"fontFamily"==M&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),T&&"rounded"==M&&"1"==ca&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(V,c)}}finally{this.model.endUpdate()}return C}; +Graph.prototype.updateCellStyles=function(C,J){this.model.beginUpdate();try{for(var Q=0;QV?"a":"p",tt:12>V?"am":"pm",T:12>V?"A":"P",TT:12>V?"AM":"PM",Z:g?"UTC":(String(b).match(t)||[""]).pop().replace(p,""),o:(0V?"a":"p",tt:12>V?"am":"pm",T:12>V?"A":"P",TT:12>V?"AM":"PM",Z:g?"UTC":(String(b).match(t)||[""]).pop().replace(p,""),o:(0t&&"%"==e.charAt(match.index-1))C=p.substring(1);else{var I=p.substring(1,p.length-1);if("id"==I)C=b.id;else if("width"==I&&this.model.isVertex(b)){var Q=this.getCellGeometry(b);null!=Q&&(C=Q.width)}else if("height"==I&&this.model.isVertex(b))Q=this.getCellGeometry(b),null!=Q&&(C=Q.height);else if("length"== -I&&this.model.isEdge(b))Q=this.view.getState(b),null!=Q&&(C=Math.round(Q.length/this.view.scale));else if(0>I.indexOf("{"))for(Q=b;null==C&&null!=Q;)null!=Q.value&&"object"==typeof Q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(C=Q.getAttribute(I+"_"+Graph.diagramLanguage)),null==C&&(C=Q.hasAttribute(I)?null!=Q.getAttribute(I)?Q.getAttribute(I):"":null)),Q=this.model.getParent(Q);null==C&&(C=this.getGlobalVariable(I));null==C&&null!=g&&(C=g[I])}n.push(e.substring(t,match.index)+(null!= +mxEvent.addListener(F,"click",function(){n.setVisible(C,!n.isVisible(C));J();null!=b&&b(C)});J()})(n.getChildAt(n.root,p));return g}; +Graph.prototype.replacePlaceholders=function(b,e,g,n){n=[];if(null!=e){for(var t=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2t&&"%"==e.charAt(match.index-1))C=p.substring(1);else{var J=p.substring(1,p.length-1);if("id"==J)C=b.id;else if("width"==J&&this.model.isVertex(b)){var Q=this.getCellGeometry(b);null!=Q&&(C=Q.width)}else if("height"==J&&this.model.isVertex(b))Q=this.getCellGeometry(b),null!=Q&&(C=Q.height);else if("length"== +J&&this.model.isEdge(b))Q=this.view.getState(b),null!=Q&&(C=Math.round(Q.length/this.view.scale));else if(0>J.indexOf("{"))for(Q=b;null==C&&null!=Q;)null!=Q.value&&"object"==typeof Q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(C=Q.getAttribute(J+"_"+Graph.diagramLanguage)),null==C&&(C=Q.hasAttribute(J)?null!=Q.getAttribute(J)?Q.getAttribute(J):"":null)),Q=this.model.getParent(Q);null==C&&(C=this.getGlobalVariable(J));null==C&&null!=g&&(C=g[J])}n.push(e.substring(t,match.index)+(null!= C?C:p));t=match.index+p.length}}n.push(e.substring(t))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0I[0].indexOf("=")&&(I=I.slice(1));this.model.setStyle(e[p],I.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(t,[e[p]],null,!0)}else t=this.copyStyle(e[p]),this.model.setStyle(e[p],n),this.pasteStyle(t,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}}; +this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var C=this.model.getStyle(e[p]);if(null!=C){var J=C.split(";");0J[0].indexOf("=")&&(J=J.slice(1));this.model.setStyle(e[p],J.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(t,[e[p]],null,!0)}else t=this.copyStyle(e[p]),this.model.setStyle(e[p],n),this.pasteStyle(t,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}}; Graph.prototype.selectCellsForConnectVertex=function(b,e,g){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=g&&(mxEvent.isTouchEvent(e)?g.update(g.getState(this.view.getState(b[1]))):g.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var e=null;null!=this.layoutManager&&(e=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=e&&e.constructor==mxStackLayout}; Graph.prototype.insertEdgeBeforeCell=function(b,e){for(var g=e;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=b.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==b.parent&&(e=g.parent.getIndex(g),this.model.add(g.parent,b,e))}; -Graph.prototype.connectVertex=function(b,e,g,n,t,p,C,I){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var Q=this.isCloneConnectSource(b),F=Q?b:this.getCompositeParent(b),H=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(H.x+=F.geometry.width/2,H.y-=g):e== +Graph.prototype.connectVertex=function(b,e,g,n,t,p,C,J){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var Q=this.isCloneConnectSource(b),F=Q?b:this.getCompositeParent(b),H=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(H.x+=F.geometry.width/2,H.y-=g):e== mxConstants.DIRECTION_SOUTH?(H.x+=F.geometry.width/2,H.y+=F.geometry.height+g):(H.x=e==mxConstants.DIRECTION_WEST?H.x-g:H.x+(F.geometry.width+g),H.y+=F.geometry.height/2);var S=this.view.getState(this.model.getParent(b));g=this.view.scale;var V=this.view.translate;F=V.x*g;V=V.y*g;null!=S&&this.model.isVertex(S.cell)&&(F=S.x,V=S.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(H.x+=b.parent.geometry.x,H.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(F+H.x*g,V+H.y*g)).grow(40*g);p=null!=p? this.getCells(0,0,0,0,null,null,p,null,!0):null;S=this.view.getState(b);var c=null,f=null;if(null!=p){p=p.reverse();for(var k=0;k/g,"\n"));t=Editor.convertHtmlToText(t);this.cellLabelChanged(b,t);n=!0}e&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE, -null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,e,g,n,t){b=this.cloneCell(b);for(var p=0;pla.distSq){G.splice(M,0,la);la=null;break} 0==this.state.routedPoints.length)p.apply(this,arguments);else{var c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,f=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),z=!0,y=null,A=null,G=[],M=null;H.begin();for(var N=0;Nf*f&&0f*f&&(fa=new mxPoint(ja.x-M.x,ja.y-M.y),K=new mxPoint(ja.x+M.x,ja.y+M.y),G.push(fa),this.addPoints(H,G,V,c,!1,null,z),G=0>Math.round(M.x)||0==Math.round(M.x)&&0>=Math.round(M.y)?1:-1,z=!1,"sharp"==k?(H.lineTo(fa.x- M.y*G,fa.y+M.x*G),H.lineTo(K.x-M.y*G,K.y+M.x*G),H.lineTo(K.x,K.y)):"line"==k?(H.moveTo(fa.x+M.y*G,fa.y-M.x*G),H.lineTo(fa.x-M.y*G,fa.y+M.x*G),H.moveTo(K.x-M.y*G,K.y+M.x*G),H.lineTo(K.x+M.y*G,K.y-M.x*G),H.moveTo(K.x,K.y)):"arc"==k?(G*=1.3,H.curveTo(fa.x-M.y*G,fa.y+M.x*G,K.x-M.y*G,K.y+M.x*G,K.x,K.y)):(H.moveTo(K.x,K.y),z=!0),G=[K],fa=!0))}else M=null;fa||(G.push(ja),y=ja)}this.addPoints(H,G,V,c,!1,null,z);H.stroke()}};var C=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint= -function(H,S,V,c){return null!=S&&"centerPerimeter"==S.style[mxConstants.STYLE_PERIMETER]?new mxPoint(S.getCenterX(),S.getCenterY()):C.apply(this,arguments)};var I=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(H,S,V,c){if(null==S||null==H||"1"!=S.style.snapToPoint&&"1"!=H.style.snapToPoint)I.apply(this,arguments);else{S=this.getTerminalPort(H,S,c);var f=this.getNextPoint(H,V,c),k=this.graph.isOrthogonal(H),z=mxUtils.toRadians(Number(S.style[mxConstants.STYLE_ROTATION]|| +function(H,S,V,c){return null!=S&&"centerPerimeter"==S.style[mxConstants.STYLE_PERIMETER]?new mxPoint(S.getCenterX(),S.getCenterY()):C.apply(this,arguments)};var J=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(H,S,V,c){if(null==S||null==H||"1"!=S.style.snapToPoint&&"1"!=H.style.snapToPoint)J.apply(this,arguments);else{S=this.getTerminalPort(H,S,c);var f=this.getNextPoint(H,V,c),k=this.graph.isOrthogonal(H),z=mxUtils.toRadians(Number(S.style[mxConstants.STYLE_ROTATION]|| "0")),y=new mxPoint(S.getCenterX(),S.getCenterY());if(0!=z){var A=Math.cos(-z),G=Math.sin(-z);f=mxUtils.getRotatedPoint(f,A,G,y)}A=parseFloat(H.style[mxConstants.STYLE_PERIMETER_SPACING]||0);A+=parseFloat(H.style[c?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);f=this.getPerimeterPoint(S,f,0==z&&k,A);0!=z&&(A=Math.cos(z),G=Math.sin(z),f=mxUtils.getRotatedPoint(f,A,G,y));H.setAbsoluteTerminalPoint(this.snapToAnchorPoint(H,S,V,c,f),c)}};mxGraphView.prototype.snapToAnchorPoint= function(H,S,V,c,f){if(null!=S&&null!=H){H=this.graph.getAllConnectionConstraints(S);c=V=null;if(null!=H)for(var k=0;k=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'').src; mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(v){return!mxEvent.isAltDown(v)||mxEvent.isShiftDown(v)};var g=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(v){return g.apply(this,arguments)||this.graph.isTableRow(v)||this.graph.isTableCell(v)};var n=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored= function(v){return n.apply(this,arguments)||this.graph.isEdgeIgnored(v)};var t=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(v){return this.graph.isCloneEvent(v)!=t.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var v=new mxEllipse(null,this.highlightColor,this.highlightColor,0);v.opacity=mxConstants.HIGHLIGHT_OPACITY;return v};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor= -"crosshair";mxConnectionHandler.prototype.createEdgeState=function(v){v=this.graph.createCurrentEdgeStyle();v=this.graph.createEdge(null,null,null,null,null,v);v=new mxCellState(this.graph.view,v,this.graph.getCellStyle(v));for(var J in this.graph.currentEdgeStyle)v.style[J]=this.graph.currentEdgeStyle[J];if(null!=this.previous){var R=this.previous.style.newEdgeStyle;if(null!=R)try{var Z=JSON.parse(R);for(J in Z)v.style[J]=Z[J]}catch(ea){}}v.style=this.graph.postProcessCellStyle(v.cell,v.style);return v}; -var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var v=p.apply(this,arguments);v.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return v};mxConnectionHandler.prototype.updatePreview=function(v){};var C=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var v=C.apply(this,arguments),J=v.getCell;v.getCell=mxUtils.bind(this,function(R){var Z=J.apply(this,arguments);this.error=null;return Z}); -return v};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var v="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",J="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),R=0;R=xa.x&&this.model.remove(Aa[J]);var Na=this.model.getTerminal(R,!1);if(null!=Na){var Ra=this.getCurrentCellStyle(Na);null!=Ra&&"1"==Ra.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[v]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[v]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[R]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[R]))}}finally{this.model.endUpdate()}return R};var S=Graph.prototype.selectCell;Graph.prototype.selectCell=function(v, -J,R){if(J||R)S.apply(this,arguments);else{var Z=this.getSelectionCell(),ea=null,ka=[],oa=mxUtils.bind(this,function(ua){if(null!=this.view.getState(ua)&&(this.model.isVertex(ua)||this.model.isEdge(ua)))if(ka.push(ua),ua==Z)ea=ka.length-1;else if(v&&null==Z&&0ea||!v&&0=xa.x&&this.model.remove(Aa[I]);var Na=this.model.getTerminal(R,!1);if(null!=Na){var Ra=this.getCurrentCellStyle(Na);null!=Ra&&"1"==Ra.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[v]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[v]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[R]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[R]))}}finally{this.model.endUpdate()}return R};var S=Graph.prototype.selectCell;Graph.prototype.selectCell=function(v, +I,R){if(I||R)S.apply(this,arguments);else{var Z=this.getSelectionCell(),ea=null,ka=[],oa=mxUtils.bind(this,function(ua){if(null!=this.view.getState(ua)&&(this.model.isVertex(ua)||this.model.isEdge(ua)))if(ka.push(ua),ua==Z)ea=ka.length-1;else if(v&&null==Z&&0ea||!v&&0bb)for(Qa=0;Qa>bb;Qa--)this.model.remove(Wa[Wa.length+Qa-1]);Wa=this.model.getChildCells(v[ta],!0);for(Qa=0;QamxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka)&&R.push(ka):this.labelChanged(v[Z],"")}else{if(this.isTableRow(v[Z])&&(ka=this.model.getParent(v[Z]), -0>mxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka))){for(var oa=this.model.getChildCells(ka,!0),ua=0,ta=0;tamxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka)&&R.push(ka):this.labelChanged(v[Z],"")}else{if(this.isTableRow(v[Z])&&(ka=this.model.getParent(v[Z]), +0>mxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka))){for(var oa=this.model.getChildCells(ka,!0),ua=0,ta=0;tamxUtils.indexOf(v,ka))return null}ka=k.apply(this,arguments);var oa=!0;for(ea=0;eaka||xa>ka)&&this.clear());else{for(ta=xa.getSource();null!=ta&&"a"!=ta.nodeName.toLowerCase();)ta=ta.parentNode; null!=ta?this.clear():(null!=oa.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&oa.tooltipHandler.reset(xa,!0,this.currentState),(null==this.currentState||xa.getState()!=this.currentState&&null!=xa.sourceState||!oa.intersects(this.currentState,xa.getGraphX(),xa.getGraphY()))&&this.updateCurrentState(xa))}},mouseUp:function(ta,xa){var Aa=xa.getSource();for(ta=xa.getEvent();null!=Aa&&"a"!=Aa.nodeName.toLowerCase();)Aa=Aa.parentNode;null==Aa&&Math.abs(this.scrollLeft-oa.container.scrollLeft)< -ka&&Math.abs(this.scrollTop-oa.container.scrollTop)q&&m++;x++}d.lengthmxUtils.indexOf(Z,ka)&&Z.push(ka);break}else ka=ka.parentNode;return Z};Graph.prototype.getSelectedElement=function(){var v=null;if(window.getSelection){var J=window.getSelection();J.getRangeAt&& -J.rangeCount&&(v=J.getRangeAt(0).commonAncestorContainer)}else document.selection&&(v=document.selection.createRange().parentElement());return v};Graph.prototype.getSelectedEditingElement=function(){for(var v=this.getSelectedElement();null!=v&&v.nodeType!=mxConstants.NODETYPE_ELEMENT;)v=v.parentNode;null!=v&&v==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(v=this.cellEditor.textarea.firstChild);return v}; -Graph.prototype.getParentByName=function(v,J,R){for(;null!=v&&v.nodeName!=J;){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.getParentByNames=function(v,J,R){for(;null!=v&&!(0<=mxUtils.indexOf(J,v.nodeName));){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.selectNode=function(v){var J=null;if(window.getSelection){if(J=window.getSelection(),J.getRangeAt&&J.rangeCount){var R=document.createRange();R.selectNode(v);J.removeAllRanges();J.addRange(R)}}else(J=document.selection)&& -"Control"!=J.type&&(v=J.createRange(),v.collapse(!0),R=J.createRange(),R.setEndPoint("StartToStart",v),R.select())};Graph.prototype.flipEdgePoints=function(v,J,R){var Z=this.getCellGeometry(v);if(null!=Z){Z=Z.clone();if(null!=Z.points)for(var ea=0;ea=ka.length)J.remove(R);else{var oa=ka.length-1;this.isTableCell(v)&&(oa=mxUtils.indexOf(ka,v));for(Z=v=0;Z=ea.length)J.remove(R);else{this.isTableRow(Z)||(Z=ea[ea.length-1]);J.remove(Z);v=0;var ka=this.getCellGeometry(Z);null!=ka&&(v=ka.height);var oa=this.getCellGeometry(R);null!=oa&&(oa=oa.clone(),oa.height-= -v,J.setGeometry(R,oa))}}finally{J.endUpdate()}};Graph.prototype.insertRow=function(v,J){for(var R=v.tBodies[0],Z=R.rows[0].cells,ea=v=0;eaJ&&v[R].deleteCell(J)}};Graph.prototype.pasteHtmlAtCaret=function(v){if(window.getSelection){var J=window.getSelection();if(J.getRangeAt&&J.rangeCount){J=J.getRangeAt(0);J.deleteContents();var R=document.createElement("div"); -R.innerHTML=v;v=document.createDocumentFragment();for(var Z;Z=R.firstChild;)lastNode=v.appendChild(Z);J.insertNode(v)}}else(J=document.selection)&&"Control"!=J.type&&J.createRange().pasteHTML(v)};Graph.prototype.createLinkForHint=function(v,J,R){function Z(ka,oa){ka.length>oa&&(ka=ka.substring(0,Math.round(oa/2))+"..."+ka.substring(ka.length-Math.round(oa/4)));return ka}v=null!=v?v:"javascript:void(0);";if(null==J||0==J.length)J=this.isCustomLink(v)?this.getLinkTitle(v):v;var ea=document.createElement("a"); -ea.setAttribute("rel",this.linkRelation);ea.setAttribute("href",this.getAbsoluteUrl(v));ea.setAttribute("title",Z(this.isCustomLink(v)?this.getLinkTitle(v):v,80));null!=this.linkTarget&&ea.setAttribute("target",this.linkTarget);mxUtils.write(ea,Z(J,40));this.isCustomLink(v)&&mxEvent.addListener(ea,"click",mxUtils.bind(this,function(ka){this.customLinkClicked(v,R);mxEvent.consume(ka)}));return ea};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!= +R.appendChild(ea);I.appendChild(R)}};Graph.prototype.updateSvgLinks=function(v,I,R){v=v.getElementsByTagName("a");for(var Z=0;ZmxUtils.indexOf(Z,ka)&&Z.push(ka);break}else ka=ka.parentNode;return Z};Graph.prototype.getSelectedElement=function(){var v=null;if(window.getSelection){var I=window.getSelection();I.getRangeAt&& +I.rangeCount&&(v=I.getRangeAt(0).commonAncestorContainer)}else document.selection&&(v=document.selection.createRange().parentElement());return v};Graph.prototype.getSelectedEditingElement=function(){for(var v=this.getSelectedElement();null!=v&&v.nodeType!=mxConstants.NODETYPE_ELEMENT;)v=v.parentNode;null!=v&&v==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(v=this.cellEditor.textarea.firstChild);return v}; +Graph.prototype.getParentByName=function(v,I,R){for(;null!=v&&v.nodeName!=I;){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.getParentByNames=function(v,I,R){for(;null!=v&&!(0<=mxUtils.indexOf(I,v.nodeName));){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.selectNode=function(v){var I=null;if(window.getSelection){if(I=window.getSelection(),I.getRangeAt&&I.rangeCount){var R=document.createRange();R.selectNode(v);I.removeAllRanges();I.addRange(R)}}else(I=document.selection)&& +"Control"!=I.type&&(v=I.createRange(),v.collapse(!0),R=I.createRange(),R.setEndPoint("StartToStart",v),R.select())};Graph.prototype.flipEdgePoints=function(v,I,R){var Z=this.getCellGeometry(v);if(null!=Z){Z=Z.clone();if(null!=Z.points)for(var ea=0;ea=ka.length)I.remove(R);else{var oa=ka.length-1;this.isTableCell(v)&&(oa=mxUtils.indexOf(ka,v));for(Z=v=0;Z=ea.length)I.remove(R);else{this.isTableRow(Z)||(Z=ea[ea.length-1]);I.remove(Z);v=0;var ka=this.getCellGeometry(Z);null!=ka&&(v=ka.height);var oa=this.getCellGeometry(R);null!=oa&&(oa=oa.clone(),oa.height-= +v,I.setGeometry(R,oa))}}finally{I.endUpdate()}};Graph.prototype.insertRow=function(v,I){for(var R=v.tBodies[0],Z=R.rows[0].cells,ea=v=0;eaI&&v[R].deleteCell(I)}};Graph.prototype.pasteHtmlAtCaret=function(v){if(window.getSelection){var I=window.getSelection();if(I.getRangeAt&&I.rangeCount){I=I.getRangeAt(0);I.deleteContents();var R=document.createElement("div"); +R.innerHTML=v;v=document.createDocumentFragment();for(var Z;Z=R.firstChild;)lastNode=v.appendChild(Z);I.insertNode(v)}}else(I=document.selection)&&"Control"!=I.type&&I.createRange().pasteHTML(v)};Graph.prototype.createLinkForHint=function(v,I,R){function Z(ka,oa){ka.length>oa&&(ka=ka.substring(0,Math.round(oa/2))+"..."+ka.substring(ka.length-Math.round(oa/4)));return ka}v=null!=v?v:"javascript:void(0);";if(null==I||0==I.length)I=this.isCustomLink(v)?this.getLinkTitle(v):v;var ea=document.createElement("a"); +ea.setAttribute("rel",this.linkRelation);ea.setAttribute("href",this.getAbsoluteUrl(v));ea.setAttribute("title",Z(this.isCustomLink(v)?this.getLinkTitle(v):v,80));null!=this.linkTarget&&ea.setAttribute("target",this.linkTarget);mxUtils.write(ea,Z(I,40));this.isCustomLink(v)&&mxEvent.addListener(ea,"click",mxUtils.bind(this,function(ka){this.customLinkClicked(v,R);mxEvent.consume(ka)}));return ea};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!= this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(ka,oa){this.popupMenuHandler.hideMenu()});var v=this.updateMouseEvent;this.updateMouseEvent=function(ka){ka=v.apply(this,arguments);if(mxEvent.isTouchEvent(ka.getEvent())&&null==ka.getState()){var oa=this.getCellAt(ka.graphX,ka.graphY);null!=oa&&this.isSwimlane(oa)&&this.hitsSwimlaneContent(oa,ka.graphX,ka.graphY)||(ka.state=this.view.getState(oa),null!=ka.state&&null!=ka.state.shape&&(this.container.style.cursor= -ka.state.shape.node.style.cursor))}null==ka.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return ka};var J=!1,R=!1,Z=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(ka,oa,ua){ka==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),J=this.isCellSelected(oa.getCell()),R=this.isSelectionEmpty(),Z=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(ka,oa){var ua=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger= -!this.isEditing()&&this.isEnabled()&&(null==oa.getState()||!oa.isSource(oa.getState().control))&&(this.popupMenuHandler.popupTrigger||!Z&&!ua&&(R&&null==oa.getCell()&&this.isSelectionEmpty()||J&&this.isCellSelected(oa.getCell())));ua=!J||ua?null:mxUtils.bind(this,function(ta){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var xa=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(oa.getX()+xa.x+1,oa.getY()+xa.y+1,ta,oa.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler, +ka.state.shape.node.style.cursor))}null==ka.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return ka};var I=!1,R=!1,Z=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(ka,oa,ua){ka==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),I=this.isCellSelected(oa.getCell()),R=this.isSelectionEmpty(),Z=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(ka,oa){var ua=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger= +!this.isEditing()&&this.isEnabled()&&(null==oa.getState()||!oa.isSource(oa.getState().control))&&(this.popupMenuHandler.popupTrigger||!Z&&!ua&&(R&&null==oa.getCell()&&this.isSelectionEmpty()||I&&this.isCellSelected(oa.getCell())));ua=!I||ua?null:mxUtils.bind(this,function(ta){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var xa=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(oa.getX()+xa.x+1,oa.getY()+xa.y+1,ta,oa.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler, [ka,oa,ua])})};mxCellEditor.prototype.isContentEditing=function(){var v=this.graph.view.getState(this.editingCell);return null!=v&&1==v.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var v="";window.getSelection?v=window.getSelection():document.getSelection?v=document.getSelection():document.selection&&(v=document.selection.createRange().text); -return""!=v};mxCellEditor.prototype.insertTab=function(v){var J=this.textarea.ownerDocument.defaultView.getSelection(),R=J.getRangeAt(0);v=Graph.createTabNode(v);R.insertNode(v);R.setStartAfter(v);R.setEndAfter(v);J.removeAllRanges();J.addRange(R)};mxCellEditor.prototype.alignText=function(v,J){var R=null!=J&&mxEvent.isShiftDown(J);if(R||null!=window.getSelection&&null!=window.getSelection().containsNode){var Z=!0;this.graph.processElements(this.textarea,function(ea){R||window.getSelection().containsNode(ea, -!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):Z=!1});Z&&this.graph.cellEditor.setAlign(v)}document.execCommand("justify"+v.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var v=window.getSelection();if(v.getRangeAt&&v.rangeCount){for(var J=[],R=0,Z=v.rangeCount;R")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?R(this.textarea,ka):Graph.removePasteFormatting(this.textarea.firstChild))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var v=this.graph.view.getState(this.editingCell);if(null!=v){var J=null!=v&&"0"!=mxUtils.getValue(v.style,"nl2Br","1"),R=this.saveSelection();if(this.codeViewMode){ua=mxUtils.extractTextWithWhitespace(this.textarea.childNodes); -0"):ua,!0);this.textarea.className="mxCellEditor geContentEditable";ta=mxUtils.getValue(v.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);J=mxUtils.getValue(v.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var Z=mxUtils.getValue(v.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),ea=(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)& +return""!=v};mxCellEditor.prototype.insertTab=function(v){var I=this.textarea.ownerDocument.defaultView.getSelection(),R=I.getRangeAt(0);v=Graph.createTabNode(v);R.insertNode(v);R.setStartAfter(v);R.setEndAfter(v);I.removeAllRanges();I.addRange(R)};mxCellEditor.prototype.alignText=function(v,I){var R=null!=I&&mxEvent.isShiftDown(I);if(R||null!=window.getSelection&&null!=window.getSelection().containsNode){var Z=!0;this.graph.processElements(this.textarea,function(ea){R||window.getSelection().containsNode(ea, +!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):Z=!1});Z&&this.graph.cellEditor.setAlign(v)}document.execCommand("justify"+v.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var v=window.getSelection();if(v.getRangeAt&&v.rangeCount){for(var I=[],R=0,Z=v.rangeCount;R")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?R(this.textarea,ka):Graph.removePasteFormatting(this.textarea.firstChild))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var v=this.graph.view.getState(this.editingCell);if(null!=v){var I=null!=v&&"0"!=mxUtils.getValue(v.style,"nl2Br","1"),R=this.saveSelection();if(this.codeViewMode){ua=mxUtils.extractTextWithWhitespace(this.textarea.childNodes); +0"):ua,!0);this.textarea.className="mxCellEditor geContentEditable";ta=mxUtils.getValue(v.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);I=mxUtils.getValue(v.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var Z=mxUtils.getValue(v.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),ea=(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)& mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,ka=(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,oa=[];(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&oa.push("underline");(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&oa.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT? -Math.round(ta*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ta)+"px";this.textarea.style.textDecoration=oa.join(" ");this.textarea.style.fontWeight=ea?"bold":"normal";this.textarea.style.fontStyle=ka?"italic":"";this.textarea.style.fontFamily=J;this.textarea.style.textAlign=Z;this.textarea.style.padding="0px";this.textarea.innerHTML!=ua&&(this.textarea.innerHTML=ua,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(), -this.clearOnChange=0
"));ua=Graph.sanitizeHtml(J?ua.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):ua,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var ta=mxConstants.DEFAULT_FONTSIZE; +Math.round(ta*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ta)+"px";this.textarea.style.textDecoration=oa.join(" ");this.textarea.style.fontWeight=ea?"bold":"normal";this.textarea.style.fontStyle=ka?"italic":"";this.textarea.style.fontFamily=I;this.textarea.style.textAlign=Z;this.textarea.style.padding="0px";this.textarea.innerHTML!=ua&&(this.textarea.innerHTML=ua,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(), +this.clearOnChange=0
"));ua=Graph.sanitizeHtml(I?ua.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):ua,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var ta=mxConstants.DEFAULT_FONTSIZE; this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ta*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ta)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ua&&(this.textarea.innerHTML= -ua);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=R;this.resize()}};var M=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(v,J){if(null!=this.textarea)if(v=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=v){var R=v.view.scale;this.bounds=mxRectangle.fromRectangle(v);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*R;this.bounds.height= +ua);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=R;this.resize()}};var M=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(v,I){if(null!=this.textarea)if(v=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=v){var R=v.view.scale;this.bounds=mxRectangle.fromRectangle(v);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*R;this.bounds.height= 60*R;var Z=null!=v.text?v.text.margin:null;null==Z&&(Z=mxUtils.getAlignmentAsPoint(mxUtils.getValue(v.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(v.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=Z.x*this.bounds.width;this.bounds.y+=Z.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/R)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/R)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight< this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/R)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*R);this.textarea.clientWidth"));return R=Graph.sanitizeHtml(R,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(v){if("0"==mxUtils.getValue(v.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var J=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return J="1"==mxUtils.getValue(v.style,"nl2Br","1")?J.replace(/\r\n/g,"
").replace(/\n/g,"
"):J.replace(/\r\n/g,"").replace(/\n/g,"")};var N=mxCellEditor.prototype.stopEditing; -mxCellEditor.prototype.stopEditing=function(v){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(v){}};var K=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(v,J){this.graph.getModel().beginUpdate();try{K.apply(this,arguments),""==J&&this.graph.isCellDeletable(v.cell)&&0==this.graph.model.getChildCount(v.cell)&&this.graph.isTransparentState(v)&& -this.graph.removeCells([v.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(v){var J=mxUtils.getValue(v.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=J&&J!=mxConstants.NONE||!(null!=v.cell.geometry&&0v;v++){var J=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);J.dialect=mxConstants.DIALECT_SVG;J.init(this.graph.view.getOverlayPane());this.cornerHandles.push(J)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();v=this.graph.getLinkForCell(this.state.cell);J=this.graph.getLinksForState(this.state);this.updateLinkHint(v,J)};var U= -mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var v=new mxPoint(0,0),J=this.tolerance,R=this.state.style.shape;null==mxCellRenderer.defaultShapes[R]&&mxStencilRegistry.getStencil(R);R=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!R&&null!=this.customHandles)for(var Z=0;Z');Graph.prototype.collapsedImage=Graph.createSvgImage(9, -9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); +Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+R+","+R+")")}else this.textarea.style.height="",this.textarea.style.overflow="",M.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(v,I){if("0"==mxUtils.getValue(v.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var R=this.graph.getEditingValue(v.cell,I);"1"==mxUtils.getValue(v.style,"nl2Br", +"1")&&(R=R.replace(/\n/g,"
"));return R=Graph.sanitizeHtml(R,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(v){if("0"==mxUtils.getValue(v.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var I=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(v.style,"nl2Br","1")?(I=I.replace(/\r\n/g,"
").replace(/\n/g,"
"),0"==I.substring(I.length-5)||"
"==I.substring(I.length- +4))&&(I=I.substring(0,I.lastIndexOf("
")):I=I.replace(/\r\n/g,"").replace(/\n/g,"");return I};var N=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(v){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(v){}};var K=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(v,I){this.graph.getModel().beginUpdate(); +try{K.apply(this,arguments),""==I&&this.graph.isCellDeletable(v.cell)&&0==this.graph.model.getChildCount(v.cell)&&this.graph.isTransparentState(v)&&this.graph.removeCells([v.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(v){var I=mxUtils.getValue(v.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=I&&I!=mxConstants.NONE||!(null!=v.cell.geometry&&0v;v++){var I=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);I.dialect=mxConstants.DIALECT_SVG;I.init(this.graph.view.getOverlayPane());this.cornerHandles.push(I)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles(); +v=this.graph.getLinkForCell(this.state.cell);I=this.graph.getLinksForState(this.state);this.updateLinkHint(v,I)};var U=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var v=new mxPoint(0,0),I=this.tolerance,R=this.state.style.shape;null==mxCellRenderer.defaultShapes[R]&&mxStencilRegistry.getStencil(R);R=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!R&&null!=this.customHandles)for(var Z=0;Z'); +Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle= +Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.rotationHandle=Graph.createSvgImage(16,16,'', 24,24);mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'');mxVertexHandler.TABLE_HANDLE_COLOR="#fca000";mxVertexHandler.prototype.handleImage=HoverIcons.prototype.mainHandle;mxVertexHandler.prototype.secondaryHandleImage=HoverIcons.prototype.secondaryHandle;mxVertexHandler.prototype.rowHandleImage=Graph.createSvgImage(14, @@ -2765,42 +2763,42 @@ HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage= HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!0;mxVertexHandler.prototype.manageSizers=!0;mxVertexHandler.prototype.livePreview=!0;mxGraphHandler.prototype.maxLivePreview=16;mxRubberband.prototype.defaultOpacity=30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop= !0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=function(v){return!mxEvent.isShiftDown(v.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent= function(v){return!mxEvent.isShiftDown(v.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0ka||Math.abs(ea)>ka)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(v,R),this.isSpaceEvent(J)?(v=this.x+this.width,R=this.y+this.height,Z=this.graph.view.scale,mxEvent.isAltDown(J.getEvent())||(this.width=this.graph.snap(this.width/Z)*Z,this.height=this.graph.snap(this.height/Z)*Z, +function(v){var I=v.getEvent();return null==v.getState()&&!mxEvent.isMouseEvent(I)||mxEvent.isPopupTrigger(I)&&(null==v.getState()||mxEvent.isControlDown(I)||mxEvent.isShiftDown(I))}}else mxPanningHandler.prototype.isPanningTrigger=function(v){var I=v.getEvent();return mxEvent.isLeftMouseButton(I)&&(this.useLeftButtonForPanning&&null==v.getState()||mxEvent.isControlDown(I)&&!mxEvent.isShiftDown(I))||this.usePopupTrigger&&mxEvent.isPopupTrigger(I)};mxRubberband.prototype.isSpaceEvent=function(v){return this.graph.isEnabled()&& +!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(v.getEvent())||mxEvent.isMetaDown(v.getEvent()))&&mxEvent.isShiftDown(v.getEvent())&&mxEvent.isAltDown(v.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(v,I){if(this.cancelled)this.cancelled=!1,I.consume();else{var R=null!=this.div&&"none"!=this.div.style.display,Z=null,ea=null,ka=v=null; +null!=this.first&&null!=this.currentX&&null!=this.currentY&&(Z=this.first.x,ea=this.first.y,v=(this.currentX-Z)/this.graph.view.scale,ka=(this.currentY-ea)/this.graph.view.scale,mxEvent.isAltDown(I.getEvent())||(v=this.graph.snap(v),ka=this.graph.snap(ka),this.graph.isGridEnabled()||(Math.abs(v)ka||Math.abs(ea)>ka)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(v,R),this.isSpaceEvent(I)?(v=this.x+this.width,R=this.y+this.height,Z=this.graph.view.scale,mxEvent.isAltDown(I.getEvent())||(this.width=this.graph.snap(this.width/Z)*Z,this.height=this.graph.snap(this.height/Z)*Z, this.graph.isGridEnabled()||(this.width=this.width? "0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle= -"",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),J.consume()}};var pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);pa.apply(this,arguments)};var sa=(new Date).getTime(),ra=0,qa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(v,J,R,Z){qa.apply(this,arguments);R!=this.currentTerminalState? +"",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),I.consume()}};var pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);pa.apply(this,arguments)};var sa=(new Date).getTime(),ra=0,qa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(v,I,R,Z){qa.apply(this,arguments);R!=this.currentTerminalState? (sa=(new Date).getTime(),ra=0):ra=(new Date).getTime()-sa;this.currentTerminalState=R};var Ha=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(v){return mxEvent.isShiftDown(v.getEvent())&&mxEvent.isAltDown(v.getEvent())?!1:null!=this.currentTerminalState&&v.getState()==this.currentTerminalState&&2E3=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==v)?this.graph.getConnectionConstraint(this.state,Z,J):null;R=null!=(null!=v?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(J),v):null)?R?this.endFixedHandleImage:this.fixedHandleImage:null!=v&&null!=Z?R?this.endTerminalHandleImage:this.terminalHandleImage:R?this.endHandleImage:this.handleImage;if(null!=R)return R= -new mxImageShape(new mxRectangle(0,0,R.width,R.height),R.src),R.preserveImageAspect=!1,R;R=mxConstants.HANDLE_SIZE;this.preferHtml&&--R;return new mxRectangleShape(new mxRectangle(0,0,R,R),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var za=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(v,J,R,Z){Z=J==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:J==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:Z;return za.apply(this,arguments)}; -var ya=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(v){if(null!=v&&1==v.length){var J=this.graph.getModel(),R=J.getParent(v[0]),Z=this.graph.getCellGeometry(v[0]);if(J.isEdge(R)&&null!=Z&&Z.relative&&(J=this.graph.view.getState(v[0]),null!=J&&2>J.width&&2>J.height&&null!=J.text&&null!=J.text.boundingBox))return mxRectangle.fromRectangle(J.text.boundingBox)}return ya.apply(this,arguments)};var La=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates= -function(){for(var v=La.apply(this,arguments),J=[],R=0;Rv.width&&2>v.height&&null!=v.text&&null!=v.text.boundingBox?(J=v.text.unrotatedBoundingBox||v.text.boundingBox,new mxRectangle(Math.round(J.x), -Math.round(J.y),Math.round(J.width),Math.round(J.height))):wa.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(v,J){var R=this.graph.getModel(),Z=R.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(J)==mxEvent.ROTATION_HANDLE||!R.isEdge(Z)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Da.apply(this,arguments)};mxVertexHandler.prototype.rotateClick= -function(){var v=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),J=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&v==mxConstants.NONE&&J==mxConstants.NONE?(v=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,v,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])}; -var Ja=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(v,J){Ja.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Oa=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(v,J){Oa.apply(this,arguments);null!=this.rotationShape&&null!= -this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(v,J){try{if(null==v&&(null==J||0==J.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=v||null!=J&&0=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==v)?this.graph.getConnectionConstraint(this.state,Z,I):null;R=null!=(null!=v?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(I),v):null)?R?this.endFixedHandleImage:this.fixedHandleImage:null!=v&&null!=Z?R?this.endTerminalHandleImage:this.terminalHandleImage:R?this.endHandleImage:this.handleImage;if(null!=R)return R= +new mxImageShape(new mxRectangle(0,0,R.width,R.height),R.src),R.preserveImageAspect=!1,R;R=mxConstants.HANDLE_SIZE;this.preferHtml&&--R;return new mxRectangleShape(new mxRectangle(0,0,R,R),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var za=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(v,I,R,Z){Z=I==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:I==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:Z;return za.apply(this,arguments)}; +var ya=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(v){if(null!=v&&1==v.length){var I=this.graph.getModel(),R=I.getParent(v[0]),Z=this.graph.getCellGeometry(v[0]);if(I.isEdge(R)&&null!=Z&&Z.relative&&(I=this.graph.view.getState(v[0]),null!=I&&2>I.width&&2>I.height&&null!=I.text&&null!=I.text.boundingBox))return mxRectangle.fromRectangle(I.text.boundingBox)}return ya.apply(this,arguments)};var La=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates= +function(){for(var v=La.apply(this,arguments),I=[],R=0;Rv.width&&2>v.height&&null!=v.text&&null!=v.text.boundingBox?(I=v.text.unrotatedBoundingBox||v.text.boundingBox,new mxRectangle(Math.round(I.x), +Math.round(I.y),Math.round(I.width),Math.round(I.height))):wa.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(v,I){var R=this.graph.getModel(),Z=R.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(I)==mxEvent.ROTATION_HANDLE||!R.isEdge(Z)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Da.apply(this,arguments)};mxVertexHandler.prototype.rotateClick= +function(){var v=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),I=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&v==mxConstants.NONE&&I==mxConstants.NONE?(v=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,v,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])}; +var Ja=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(v,I){Ja.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Oa=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(v,I){Oa.apply(this,arguments);null!=this.rotationShape&&null!= +this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(v,I){try{if(null==v&&(null==I||0==I.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=v||null!=I&&0ia?"#FFFFFF":"#000000"),d.begin(),d.moveTo(0,0),d.lineTo(B,B),d.lineTo(B,u),d.lineTo(0,u-B),d.close(),d.fill()),d.begin(),d.moveTo(B,u),d.lineTo(B,B),d.lineTo(0,0),d.moveTo(B,B),d.lineTo(q,B),d.end(),d.stroke())};n.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)?(d=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(d,d,0,0)):null};mxCellRenderer.registerShape("cube", n);var lb=Math.tan(mxUtils.toRadians(30)),cb=(.5-lb)/2;mxCellRenderer.registerShape("isoRectangle",C);mxUtils.extend(t,mxConnector);t.prototype.paintEdgeShape=function(d,m){var x=this.createMarker(d,m,!0),q=this.createMarker(d,m,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this, arguments);d.setStrokeColor(this.stroke);d.setFillColor(this.stroke);d.setDashed(!1);null!=x&&x();null!=q&&q()};mxCellRenderer.registerShape("wire",t);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(d,m,x,q,u){d.setFillColor(this.stroke);var B=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;d.ellipse(m+.5*(q-B),x+.5*(u-B),B,B);d.fill();d.setFillColor(mxConstants.NONE);d.rect(m,x,q,u);d.fill()};mxCellRenderer.registerShape("waypoint", -p);mxUtils.extend(C,mxActor);C.prototype.size=20;C.prototype.redrawPath=function(d,m,x,q,u){m=Math.min(q,u/lb);d.translate((q-m)/2,(u-m)/2+m/4);d.moveTo(0,.25*m);d.lineTo(.5*m,m*cb);d.lineTo(m,.25*m);d.lineTo(.5*m,(.5-cb)*m);d.lineTo(0,.25*m);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",C);mxUtils.extend(I,mxCylinder);I.prototype.size=20;I.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(q,u/(.5+lb));B?(d.moveTo(0,.25*m),d.lineTo(.5*m,(.5-cb)*m),d.lineTo(m,.25*m),d.moveTo(.5* -m,(.5-cb)*m),d.lineTo(.5*m,(1-cb)*m)):(d.translate((q-m)/2,(u-m)/2),d.moveTo(0,.25*m),d.lineTo(.5*m,m*cb),d.lineTo(m,.25*m),d.lineTo(m,.75*m),d.lineTo(.5*m,(1-cb)*m),d.lineTo(0,.75*m),d.close());d.end()};mxCellRenderer.registerShape("isoCube",I);mxUtils.extend(Q,mxCylinder);Q.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(u/2,Math.round(u/8)+this.strokewidth-1);if(B&&null!=this.fill||!B&&null==this.fill)d.moveTo(0,m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,m/2),d.moveTo(0, +p);mxUtils.extend(C,mxActor);C.prototype.size=20;C.prototype.redrawPath=function(d,m,x,q,u){m=Math.min(q,u/lb);d.translate((q-m)/2,(u-m)/2+m/4);d.moveTo(0,.25*m);d.lineTo(.5*m,m*cb);d.lineTo(m,.25*m);d.lineTo(.5*m,(.5-cb)*m);d.lineTo(0,.25*m);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",C);mxUtils.extend(J,mxCylinder);J.prototype.size=20;J.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(q,u/(.5+lb));B?(d.moveTo(0,.25*m),d.lineTo(.5*m,(.5-cb)*m),d.lineTo(m,.25*m),d.moveTo(.5* +m,(.5-cb)*m),d.lineTo(.5*m,(1-cb)*m)):(d.translate((q-m)/2,(u-m)/2),d.moveTo(0,.25*m),d.lineTo(.5*m,m*cb),d.lineTo(m,.25*m),d.lineTo(m,.75*m),d.lineTo(.5*m,(1-cb)*m),d.lineTo(0,.75*m),d.close());d.end()};mxCellRenderer.registerShape("isoCube",J);mxUtils.extend(Q,mxCylinder);Q.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(u/2,Math.round(u/8)+this.strokewidth-1);if(B&&null!=this.fill||!B&&null==this.fill)d.moveTo(0,m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,m/2),d.moveTo(0, m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,m/2),d.moveTo(0,m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,-m);B||(d.moveTo(0,m),d.curveTo(0,-m/3,q,-m/3,q,m),d.lineTo(q,u-m),d.curveTo(q,u+m/3,0,u+m/3,0,u-m),d.close())};Q.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",Q);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity= 0;F.prototype.paintVertexShape=function(d,m,x,q,u){var B=Math.max(0,Math.min(q,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));d.translate(m,x);d.begin();d.moveTo(0,0);d.lineTo(q-B,0);d.lineTo(q,B);d.lineTo(q,u);d.lineTo(0,u);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"), d.begin(),d.moveTo(q-B,0),d.lineTo(q-B,B),d.lineTo(q,B),d.close(),d.fill()),d.begin(),d.moveTo(q-B,0),d.lineTo(q-B,B),d.lineTo(q,B),d.end(),d.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(H,F);mxCellRenderer.registerShape("note2",H);H.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(d.height*this.scale,m*this.scale),0,0)}return null};mxUtils.extend(S,mxShape);S.prototype.isoAngle= @@ -2899,8 +2897,8 @@ u/2);d.end()};mxCellRenderer.registerShape("crossbar",Ba);mxUtils.extend(Sa,mxAc "arrowSize",this.arrowSize))));x=(u-B)/2;B=x+B;var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,x),new mxPoint(q-m,x),new mxPoint(q-m,0),new mxPoint(q,u/2),new mxPoint(q-m,u),new mxPoint(q-m,B),new mxPoint(0,B)],this.isRounded,E,!0);d.end()};mxCellRenderer.registerShape("singleArrow",$a);mxUtils.extend(Pa,mxActor);Pa.prototype.redrawPath=function(d,m,x,q,u){var B=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth", $a.prototype.arrowWidth))));m=q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",$a.prototype.arrowSize))));x=(u-B)/2;B=x+B;var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,u/2),new mxPoint(m,0),new mxPoint(m,x),new mxPoint(q-m,x),new mxPoint(q-m,0),new mxPoint(q,u/2),new mxPoint(q-m,u),new mxPoint(q-m,B),new mxPoint(m,B),new mxPoint(m,u)],this.isRounded,E,!0);d.end()};mxCellRenderer.registerShape("doubleArrow", Pa);mxUtils.extend(Va,mxActor);Va.prototype.size=.1;Va.prototype.fixedSize=20;Va.prototype.redrawPath=function(d,m,x,q,u){m="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));d.moveTo(m,0);d.lineTo(q,0);d.quadTo(q-2*m,u/2,q,u);d.lineTo(m,u);d.quadTo(m-2*m,u/2,m,0);d.close();d.end()};mxCellRenderer.registerShape("dataStorage",Va); -mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.close();d.end()};mxCellRenderer.registerShape("or",Ca);mxUtils.extend(v,mxActor);v.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.quadTo(q/2,u/2,0,0);d.close();d.end()};mxCellRenderer.registerShape("xor",v);mxUtils.extend(J,mxActor);J.prototype.size=20;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(d, -m,x,q,u){m=Math.min(q/2,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(m,0),new mxPoint(q-m,0),new mxPoint(q,.8*m),new mxPoint(q,u),new mxPoint(0,u),new mxPoint(0,.8*m)],this.isRounded,x,!0);d.end()};mxCellRenderer.registerShape("loopLimit",J);mxUtils.extend(R,mxActor);R.prototype.size=.375;R.prototype.isRoundable=function(){return!0};R.prototype.redrawPath=function(d, +mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.close();d.end()};mxCellRenderer.registerShape("or",Ca);mxUtils.extend(v,mxActor);v.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.quadTo(q/2,u/2,0,0);d.close();d.end()};mxCellRenderer.registerShape("xor",v);mxUtils.extend(I,mxActor);I.prototype.size=20;I.prototype.isRoundable=function(){return!0};I.prototype.redrawPath=function(d, +m,x,q,u){m=Math.min(q/2,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(m,0),new mxPoint(q-m,0),new mxPoint(q,.8*m),new mxPoint(q,u),new mxPoint(0,u),new mxPoint(0,.8*m)],this.isRounded,x,!0);d.end()};mxCellRenderer.registerShape("loopLimit",I);mxUtils.extend(R,mxActor);R.prototype.size=.375;R.prototype.isRoundable=function(){return!0};R.prototype.redrawPath=function(d, m,x,q,u){m=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,0),new mxPoint(q,0),new mxPoint(q,u-m),new mxPoint(q/2,u),new mxPoint(0,u-m)],this.isRounded,x,!0);d.end()};mxCellRenderer.registerShape("offPageConnector",R);mxUtils.extend(Z,mxEllipse);Z.prototype.paintVertexShape=function(d,m,x,q,u){mxEllipse.prototype.paintVertexShape.apply(this,arguments); d.begin();d.moveTo(m+q/2,x+u);d.lineTo(m+q,x+u);d.end();d.stroke()};mxCellRenderer.registerShape("tapeData",Z);mxUtils.extend(ea,mxEllipse);ea.prototype.paintVertexShape=function(d,m,x,q,u){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.setShadow(!1);d.begin();d.moveTo(m,x+u/2);d.lineTo(m+q,x+u/2);d.end();d.stroke();d.begin();d.moveTo(m+q/2,x);d.lineTo(m+q/2,x+u);d.end();d.stroke()};mxCellRenderer.registerShape("orEllipse",ea);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape= function(d,m,x,q,u){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.setShadow(!1);d.begin();d.moveTo(m+.145*q,x+.145*u);d.lineTo(m+.855*q,x+.855*u);d.end();d.stroke();d.begin();d.moveTo(m+.855*q,x+.145*u);d.lineTo(m+.145*q,x+.855*u);d.end();d.stroke()};mxCellRenderer.registerShape("sumEllipse",ka);mxUtils.extend(oa,mxRhombus);oa.prototype.paintVertexShape=function(d,m,x,q,u){mxRhombus.prototype.paintVertexShape.apply(this,arguments);d.setShadow(!1);d.begin();d.moveTo(m,x+u/2);d.lineTo(m+ @@ -3008,12 +3006,12 @@ Math.round(Math.max(0,Math.min(m.height,x.y-m.y)))},!1)]},document:function(d){r return new mxPoint(m.getCenterX(),m.y+x*m.height/2)},function(m,x){this.state.style.size=Math.max(0,Math.min(1,(x.y-m.y)/m.height*2))},!1)]},isoCube2:function(d){return[fb(d,["isoAngle"],function(m){var x=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",S.isoAngle))))*Math.PI/200;return new mxPoint(m.x,m.y+Math.min(m.width*Math.tan(x),.5*m.height))},function(m,x){this.state.style.isoAngle=Math.max(0,50*(x.y-m.y)/m.height)},!0)]},cylinder2:jb(V.prototype.size),cylinder3:jb(c.prototype.size), offPageConnector:function(d){return[fb(d,["size"],function(m){var x=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",R.prototype.size))));return new mxPoint(m.getCenterX(),m.y+(1-x)*m.height)},function(m,x){this.state.style.size=Math.max(0,Math.min(1,(m.y+m.height-x.y)/m.height))},!1)]},"mxgraph.basic.rect":function(d){var m=[Graph.createHandle(d,["size"],function(x){var q=Math.max(0,Math.min(x.width/2,x.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size)))); return new mxPoint(x.x+q,x.y+q)},function(x,q){this.state.style.size=Math.round(100*Math.max(0,Math.min(x.height/2,x.width/2,q.x-x.x)))/100})];d=Graph.createHandle(d,["indent"],function(x){var q=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(x.x+.75*x.width,x.y+q*x.height/200)},function(x,q){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(q.y-x.y)/x.height)))/100});m.push(d);return m},step:eb(ma.prototype.size,!0,null, -!0,ma.prototype.fixedSize),hexagon:eb(da.prototype.size,!0,.5,!0,da.prototype.fixedSize),curlyBracket:eb(K.prototype.size,!1),display:eb(Wa.prototype.size,!1),cube:rb(1,n.prototype.size,!1),card:rb(.5,y.prototype.size,!0),loopLimit:rb(.5,J.prototype.size,!0),trapezoid:ub(.5,N.prototype.size,N.prototype.fixedSize),parallelogram:ub(1,M.prototype.size,M.prototype.fixedSize)};Graph.createHandle=fb;Graph.handleFactory=xb;var Db=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles= +!0,ma.prototype.fixedSize),hexagon:eb(da.prototype.size,!0,.5,!0,da.prototype.fixedSize),curlyBracket:eb(K.prototype.size,!1),display:eb(Wa.prototype.size,!1),cube:rb(1,n.prototype.size,!1),card:rb(.5,y.prototype.size,!0),loopLimit:rb(.5,I.prototype.size,!0),trapezoid:ub(.5,N.prototype.size,N.prototype.fixedSize),parallelogram:ub(1,M.prototype.size,M.prototype.fixedSize)};Graph.createHandle=fb;Graph.handleFactory=xb;var Db=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles= function(){var d=Db.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var m=this.state.style.shape;null==mxCellRenderer.defaultShapes[m]&&null==mxStencilRegistry.getStencil(m)?m=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(m=mxConstants.SHAPE_SWIMLANE);m=xb[m];null==m&&null!=this.state.shape&&this.state.shape.isRoundable()&&(m=xb[mxConstants.SHAPE_RECTANGLE]);null!=m&&(m=m(this.state),null!=m&&(d=null==d?m:d.concat(m)))}return d};mxEdgeHandler.prototype.createCustomHandles= function(){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)&&(d=mxConstants.SHAPE_CONNECTOR);d=xb[d];return null!=d?d(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Bb=new mxPoint(1,0),Cb=new mxPoint(1,0),wb=mxUtils.toRadians(-30);Bb=mxUtils.getRotatedPoint(Bb,Math.cos(wb),Math.sin(wb));var Ab=mxUtils.toRadians(-150);Cb=mxUtils.getRotatedPoint(Cb,Math.cos(Ab),Math.sin(Ab));mxEdgeStyle.IsometricConnector=function(d, m,x,q,u){var B=d.view;q=null!=q&&05*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,m));x>8*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,m));x>15*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,m));return q};J.prototype.constraints=mxRectangleShape.prototype.constraints;R.prototype.constraints=mxRectangleShape.prototype.constraints; +!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(x-.5*d,1.5*d)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(x-.5*d,3.5*d))];x>5*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,m));x>8*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,m));x>15*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,m));return q};I.prototype.constraints=mxRectangleShape.prototype.constraints;R.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)];l.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)];Ha.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, @@ -3097,14 +3095,14 @@ H)});this.addAction("rotation",function(){var F="0",H=p.getView().getState(p.get function(F){p.isFastZoomEnabled()?p.lazyZoom(!0,!0,n.buttonZoomDelay):p.zoomIn()},null,null,Editor.ctrlKey+" + (Numpad) / Alt+Mousewheel");this.addAction("zoomOut",function(F){p.isFastZoomEnabled()?p.lazyZoom(!1,!0,n.buttonZoomDelay):p.zoomOut()},null,null,Editor.ctrlKey+" - (Numpad) / Alt+Mousewheel");this.addAction("fitWindow",function(){p.pageVisible&&p.isSelectionEmpty()?p.fitPages():n.fitDiagramToWindow()},null,null,Editor.ctrlKey+"+Shift+H");this.addAction("fitPage",mxUtils.bind(this,function(){p.pageVisible? p.fitPages(1):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+J");this.addAction("fitTwoPages",mxUtils.bind(this,function(){p.pageVisible?p.fitPages(2):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+Shift+J");this.addAction("fitPageWidth",mxUtils.bind(this,function(){p.pageVisible?p.fitPages(1,!0):this.get("pageView").funct()}));this.put("customZoom",new Action(mxResources.get("custom")+"...",mxUtils.bind(this,function(){var F=new FilenameDialog(this.editorUi,parseInt(100*p.getView().getScale()), mxResources.get("apply"),mxUtils.bind(this,function(H){H=parseInt(H);!isNaN(H)&&0g?b=b.substring(0,g)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b}; -DrawioFile.prototype.checksumError=function(b,e,g,n,t,p,C,I){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{if(this.errorReportsEnabled){if(null!=e)for(var Q=0;Qc){for(Q=0;Qf.length?Graph.compress(f):null}this.getLatestVersion(mxUtils.bind(this,function(k){try{var z=null!=f?"Report":"Error",y=this.ui.getHashValueForPages(k.getShadowPages());EditorUi.logError("Checksum "+z+" in "+t+" "+V,null,this.getMode()+"."+this.getId(),"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+(null!=f?"-json_"+f:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=C?"-current_"+C:"")+(null!=I? -"-rev_"+this.ui.hashValue(I):"")+(null!=y?"-latest_"+y:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+V,action:t,label:"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(k){}}; -DrawioFile.prototype.sendErrorReport=function(b,e,g,n){try{var t=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),C=this.getCurrentUser(),I=null!=C?this.ui.hashValue(C.id):"unknown",Q=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),H=F.lastIndexOf(".");C="xml";0f.length?Graph.compress(f):null}this.getLatestVersion(mxUtils.bind(this,function(k){try{var z=null!=f?"Report":"Error",y=this.ui.getHashValueForPages(k.getShadowPages());EditorUi.logError("Checksum "+z+" in "+t+" "+V,null,this.getMode()+"."+this.getId(),"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+(null!=f?"-json_"+f:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=C?"-current_"+C:"")+(null!=J? +"-rev_"+this.ui.hashValue(J):"")+(null!=y?"-latest_"+y:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+V,action:t,label:"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(k){}}; +DrawioFile.prototype.sendErrorReport=function(b,e,g,n){try{var t=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),C=this.getCurrentUser(),J=null!=C?this.ui.hashValue(C.id):"unknown",Q=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),H=F.lastIndexOf(".");C="xml";0z?this.ui.insertPage(f[k],Math.min(k,this.ui.pages.length)):this.ui.movePage(z,k)}for(k=0;kmxUtils.indexOf(f,V[k])&&this.ui.removePage(V[k]);0<=mxUtils.indexOf(this.ui.pages,c)&&this.ui.selectPage(c,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&& -this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{I.container.style.visibility="";I.model.endUpdate();I.cellRenderer.redraw=S;this.changeListenerEnabled=Q;g||(t.history=p,t.indexOfNextAdd=C,t.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)H!=I.mathEnabled?(this.ui.editor.updateGraphComponents(),I.refresh()):(F!=I.foldingEnabled?I.view.revalidate(): -I.view.validate(),I.sizeDidChange());null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b}; +this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{J.container.style.visibility="";J.model.endUpdate();J.cellRenderer.redraw=S;this.changeListenerEnabled=Q;g||(t.history=p,t.indexOfNextAdd=C,t.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)H!=J.mathEnabled?(this.ui.editor.updateGraphComponents(),J.refresh()):(F!=J.foldingEnabled?J.view.revalidate(): +J.view.validate(),J.sizeDidChange());null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b}; DrawioFile.prototype.save=function(b,e,g,n,t,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",t,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!t&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")}); else throw Error(mxResources.get("readOnly"));}catch(C){if(null!=g)g(C);else throw C;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e}; DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};DrawioFile.prototype.saveAs=function(b,e,g){}; @@ -3205,7 +3203,7 @@ DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(e){this.handleFileError(e)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()}; DrawioFile.prototype.createSecret=function(b){var e=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(e,mxUtils.bind(this,function(g){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",g);b(e,g)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()}; DrawioFile.prototype.fileSaved=function(b,e,g,n,t,p,C){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,n,t,C)}catch(F){this.invalidChecksum= -this.inConflictState=!0;this.descriptorChanged();null!=n&&n(F);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,F);else{var I=this.getCurrentUser(),Q=null!=I?I.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),Q,F)}}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(F){this.descriptorChanged(),null!=n&&n(F)}}; +this.inConflictState=!0;this.descriptorChanged();null!=n&&n(F);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,F);else{var J=this.getCurrentUser(),Q=null!=J?J.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),Q,F)}}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(F){this.descriptorChanged(),null!=n&&n(F)}}; DrawioFile.prototype.autosave=function(b,e,g,n){null==this.lastAutosave&&(this.lastAutosave=Date.now());b=Date.now()-this.lastAutosavethis.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))}; @@ -3214,10 +3212,10 @@ DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,t,p){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=t;this.desc=p};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.save=function(b,e,g){this.saveAs(this.title,e,g)};LocalFile.prototype.saveAs=function(b,e,g){this.saveFile(b,!1,e,g)};LocalFile.prototype.saveAs=function(b,e,g){this.saveFile(b,!1,e,g)};LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b}; LocalFile.prototype.getLatestVersion=function(b,e){null==this.fileHandle?null!=e&&e({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,e)}; -LocalFile.prototype.saveFile=function(b,e,g,n,t){b!=this.title&&(this.desc=this.fileHandle=null);this.title=b;t||this.updateFileData();var p=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var C=this.getData(),I=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),Q=mxUtils.bind(this,function(F){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=!0;var H=mxUtils.bind(this, +LocalFile.prototype.saveFile=function(b,e,g,n,t){b!=this.title&&(this.desc=this.fileHandle=null);this.title=b;t||this.updateFileData();var p=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var C=this.getData(),J=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),Q=mxUtils.bind(this,function(F){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=!0;var H=mxUtils.bind(this, function(V){this.savingFile=!1;null!=n&&n({error:V})});this.saveDraft();this.fileHandle.createWritable().then(mxUtils.bind(this,function(V){this.fileHandle.getFile().then(mxUtils.bind(this,function(c){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[c],"conflict",this.desc.lastModified!=c.lastModified);this.desc.lastModified==c.lastModified?V.write(p?this.ui.base64ToBlob(F,"image/png"):F).then(mxUtils.bind(this,function(){V.close().then(mxUtils.bind(this, -function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(f){try{var k=this.desc;this.savingFile=!1;this.desc=f;this.fileSaved(C,k,I,H);this.removeDraft()}catch(z){H(z)}}),H)}),H)}),H):(this.inConflictState=!0,H())}),mxUtils.bind(this,function(c){this.invalidFileHandle=!0;H(c)}))}),H)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(F,b,p?"image/png":"text/xml",p);else if(F.lengtht;t++)for(var p=t,C=0;8>C;C++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[t]=p;Editor.updateCRC=function(l,D,P,O){for(var U=0;U>>8;return l};Editor.crc32=function(l){for(var D=-1,P=0;P>>8^Editor.crcTable[(D^l.charCodeAt(P))&255];return(D^-1)>>>0};Editor.writeGraphModelToPng=function(l,D,P,O,U){function aa(ra,qa){var Ha=pa;pa+=qa;return ra.substring(Ha,pa)}function Y(ra){ra=aa(ra,4);return ra.charCodeAt(3)+(ra.charCodeAt(2)<<8)+(ra.charCodeAt(1)<<16)+(ra.charCodeAt(0)<<24)}function ha(ra){return String.fromCharCode(ra>>24&255,ra>>16&255,ra>>8&255,ra&255)}l=l.substring(l.indexOf(",")+1);l=window.atob? atob(l):Base64.decode(l,!0);var pa=0;if(aa(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=U&&U();else if(aa(l,4),"IHDR"!=aa(l,4))null!=U&&U();else{aa(l,17);U=l.substring(0,pa);do{var sa=Y(l);if("IDAT"==aa(l,4)){U=l.substring(0,pa-8);"pHYs"==D&&"dpi"==P?(P=Math.round(O/.0254),P=ha(P)+ha(P)+String.fromCharCode(1)):P=P+String.fromCharCode(0)+("zTXt"==D?String.fromCharCode(0):"")+O;O=4294967295;O=Editor.updateCRC(O,D,0,4);O=Editor.updateCRC(O,P,0,P.length);U+=ha(P.length)+ -D+P+ha(O^4294967295);U+=l.substring(pa-8,l.length);break}U+=l.substring(pa-8,pa-4+sa);aa(l,sa);aa(l,4)}while(sa);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var I=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,D){I.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var Q=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors= +D+P+ha(O^4294967295);U+=l.substring(pa-8,l.length);break}U+=l.substring(pa-8,pa-4+sa);aa(l,sa);aa(l,4)}while(sa);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var J=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,D){J.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var Q=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors= function(){Q.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,D){var P=null;null!=l.editor.graph.getModel().getParent(D)?P=D.getId():null!=l.currentPage&&(P=l.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var F=Format.prototype.init;Format.prototype.init=function(){F.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)}; var H=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?H.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var S=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(l){l=S.apply(this,arguments);var D=this.editorUi,P=D.editor.graph; if(P.isEnabled()){var O=D.getCurrentFile();null!=O&&O.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return D.editor.autosave},function(Y){D.editor.setAutosave(Y);D.editor.autosave&&O.isModified()&&O.fileChanged()},{install:function(Y){this.listener=function(){Y(D.editor.autosave)};D.editor.addListener("autosaveChanged",this.listener)},destroy:function(){D.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&P.isEnabled()&&"undefined"!== @@ -3399,20 +3397,20 @@ font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"# function(l,D,P){if(null!=D){var O=function(aa){if(null!=aa)if(P)for(var Y=0;YJ.size&&(ka=ka.slice(0,J.size));v=ka.join(",");null!=J.countProperty&&(qa.setCellStyles(J.countProperty,ka.length,qa.getSelectionCells()),Z.push(J.countProperty),ea.push(ka.length))}qa.setCellStyles(Ca,v,qa.getSelectionCells());Z.push(Ca);ea.push(v);if(null!=J.dependentProps)for(Ca=0;Cav)ta=ta.slice(0,v);else for(var xa=ta.length;xa< -v;xa++)ta.push(ua);ta=ta.join(",");qa.setCellStyles(J.dependentProps[Ca],ta,qa.getSelectionCells());Z.push(J.dependentProps[Ca]);ea.push(ta)}if("function"==typeof J.onChange)J.onChange(qa,v);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Z,"values",ea,"cells",qa.getSelectionCells()))}finally{qa.getModel().endUpdate()}}function U(Ca,v,J){var R=mxUtils.getOffset(l,!0),Z=mxUtils.getOffset(Ca,!0);v.style.position="absolute";v.style.left=Z.x-R.x+"px";v.style.top=Z.y-R.y+"px";v.style.width= -Ca.offsetWidth+"px";v.style.height=Ca.offsetHeight-(J?4:0)+"px";v.style.zIndex=5}function aa(Ca,v,J){var R=document.createElement("div");R.style.width="32px";R.style.height="4px";R.style.margin="2px";R.style.border="1px solid black";R.style.background=v&&"none"!=v?v:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(ra,function(Z){this.editorUi.pickColor(v,function(ea){R.style.background="none"==ea?"url('"+Dialog.prototype.noColorImage+"')":ea;O(Ca,ea,J)});mxEvent.consume(Z)})); -btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(R);return btn}function Y(Ca,v,J,R,Z,ea,ka){null!=v&&(v=v.split(","),Ha.push({name:Ca,values:v,type:J,defVal:R,countProperty:Z,parentRow:ea,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",mxUtils.bind(ra,function(oa){for(var ua=ea,ta=0;null!=ua.nextSibling;)if(ua.nextSibling.getAttribute("data-pName")==Ca)ua=ua.nextSibling,ta++;else break;var xa={type:J,parentRow:ea,index:ta,isDeletable:!0,defVal:R,countProperty:Z}; -ta=sa(Ca,"",xa,0==ta%2,ka);O(Ca,R,xa);ua.parentNode.insertBefore(ta,ua.nextSibling);mxEvent.consume(oa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ha(Ca,v,J,R,Z,ea,ka){if(0J.max&&(Na=J.max);Na=encodeURIComponent(("int"==ka?parseInt(Na):Na)+"");O(Ca,Na,J)}var Aa=document.createElement("input");U(ua,Aa,!0);Aa.value=decodeURIComponent(v);Aa.className="gePropEditor";"int"!=ka&&"float"!=ka||J.allowAuto||(Aa.type="number",Aa.step="int"==ka?"1":"any",null!=J.min&&(Aa.min=parseFloat(J.min)),null!=J.max&&(Aa.max=parseFloat(J.max)));l.appendChild(Aa);mxEvent.addListener(Aa,"keypress", -function(Na){13==Na.keyCode&&xa()});Aa.focus();mxEvent.addListener(Aa,"blur",function(){xa()})})));J.isDeletable&&(Z=mxUtils.button("-",mxUtils.bind(ra,function(xa){O(Ca,"",J,J.index);mxEvent.consume(xa)})),Z.style.height="16px",Z.style.width="25px",Z.style.float="right",Z.className="geColorBtn",ua.appendChild(Z));oa.appendChild(ua);return oa}var ra=this,qa=this.editorUi.editor.graph,Ha=[];l.style.position="relative";l.style.padding="0";var za=document.createElement("table");za.className="geProperties"; +1==D.cells.length?this.addActions(l,["copyStyle","pasteStyle"]):1<=D.cells.length&&this.addActions(l,["pasteStyle","pasteData"]);c.apply(this,arguments);return l};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(l,D,P){function O(Ca,v,I,R){qa.getModel().beginUpdate();try{var Z=[],ea=[];if(null!=I.index){for(var ka=[],oa=I.parentRow.nextSibling;oa&&oa.getAttribute("data-pName")==Ca;)ka.push(oa.getAttribute("data-pValue")),oa=oa.nextSibling;I.indexI.size&&(ka=ka.slice(0,I.size));v=ka.join(",");null!=I.countProperty&&(qa.setCellStyles(I.countProperty,ka.length,qa.getSelectionCells()),Z.push(I.countProperty),ea.push(ka.length))}qa.setCellStyles(Ca,v,qa.getSelectionCells());Z.push(Ca);ea.push(v);if(null!=I.dependentProps)for(Ca=0;Cav)ta=ta.slice(0,v);else for(var xa=ta.length;xa< +v;xa++)ta.push(ua);ta=ta.join(",");qa.setCellStyles(I.dependentProps[Ca],ta,qa.getSelectionCells());Z.push(I.dependentProps[Ca]);ea.push(ta)}if("function"==typeof I.onChange)I.onChange(qa,v);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Z,"values",ea,"cells",qa.getSelectionCells()))}finally{qa.getModel().endUpdate()}}function U(Ca,v,I){var R=mxUtils.getOffset(l,!0),Z=mxUtils.getOffset(Ca,!0);v.style.position="absolute";v.style.left=Z.x-R.x+"px";v.style.top=Z.y-R.y+"px";v.style.width= +Ca.offsetWidth+"px";v.style.height=Ca.offsetHeight-(I?4:0)+"px";v.style.zIndex=5}function aa(Ca,v,I){var R=document.createElement("div");R.style.width="32px";R.style.height="4px";R.style.margin="2px";R.style.border="1px solid black";R.style.background=v&&"none"!=v?v:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(ra,function(Z){this.editorUi.pickColor(v,function(ea){R.style.background="none"==ea?"url('"+Dialog.prototype.noColorImage+"')":ea;O(Ca,ea,I)});mxEvent.consume(Z)})); +btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(R);return btn}function Y(Ca,v,I,R,Z,ea,ka){null!=v&&(v=v.split(","),Ha.push({name:Ca,values:v,type:I,defVal:R,countProperty:Z,parentRow:ea,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",mxUtils.bind(ra,function(oa){for(var ua=ea,ta=0;null!=ua.nextSibling;)if(ua.nextSibling.getAttribute("data-pName")==Ca)ua=ua.nextSibling,ta++;else break;var xa={type:I,parentRow:ea,index:ta,isDeletable:!0,defVal:R,countProperty:Z}; +ta=sa(Ca,"",xa,0==ta%2,ka);O(Ca,R,xa);ua.parentNode.insertBefore(ta,ua.nextSibling);mxEvent.consume(oa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ha(Ca,v,I,R,Z,ea,ka){if(0I.max&&(Na=I.max);Na=encodeURIComponent(("int"==ka?parseInt(Na):Na)+"");O(Ca,Na,I)}var Aa=document.createElement("input");U(ua,Aa,!0);Aa.value=decodeURIComponent(v);Aa.className="gePropEditor";"int"!=ka&&"float"!=ka||I.allowAuto||(Aa.type="number",Aa.step="int"==ka?"1":"any",null!=I.min&&(Aa.min=parseFloat(I.min)),null!=I.max&&(Aa.max=parseFloat(I.max)));l.appendChild(Aa);mxEvent.addListener(Aa,"keypress", +function(Na){13==Na.keyCode&&xa()});Aa.focus();mxEvent.addListener(Aa,"blur",function(){xa()})})));I.isDeletable&&(Z=mxUtils.button("-",mxUtils.bind(ra,function(xa){O(Ca,"",I,I.index);mxEvent.consume(xa)})),Z.style.height="16px",Z.style.width="25px",Z.style.float="right",Z.className="geColorBtn",ua.appendChild(Z));oa.appendChild(ua);return oa}var ra=this,qa=this.editorUi.editor.graph,Ha=[];l.style.position="relative";l.style.padding="0";var za=document.createElement("table");za.className="geProperties"; za.style.whiteSpace="nowrap";za.style.width="100%";var ya=document.createElement("tr");ya.className="gePropHeader";var La=document.createElement("th");La.className="gePropHeaderCell";var wa=document.createElement("img");wa.src=Sidebar.prototype.expandedImage;wa.style.verticalAlign="middle";La.appendChild(wa);mxUtils.write(La,mxResources.get("property"));ya.style.cursor="pointer";var Da=function(){var Ca=za.querySelectorAll(".gePropNonHeaderRow");if(ra.editorUi.propertiesCollapsed){wa.src=Sidebar.prototype.collapsedImage; -var v="none";for(var J=l.childNodes.length-1;0<=J;J--)try{var R=l.childNodes[J],Z=R.nodeName.toUpperCase();"INPUT"!=Z&&"SELECT"!=Z||l.removeChild(R)}catch(ea){}}else wa.src=Sidebar.prototype.expandedImage,v="";for(J=0;J'),wb.writeln("@media print {"),wb.writeln(".MathJax svg { shape-rendering: crispEdges; }"),wb.writeln("}"),wb.writeln(""));null!=l.editor.fontCss&&(wb.writeln('")); for(var Ab=Ua.getCustomFonts(),zb=0;zb'):(wb.writeln('"))}};if(Editor.enableCssDarkMode){var Bb=hb.getBackgroundImage;hb.getBackgroundImage= function(){return U.adaptBackgroundPage(Bb.apply(this,arguments))}}if("undefined"!==typeof MathJax){var Cb=hb.renderPage;hb.renderPage=function(wb,Ab,zb,d,m,x){var q=mxClient.NO_FO,u=Cb.apply(this,arguments);mxClient.NO_FO=q;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:u.className="geDisableMathJax";return u}}eb=null;ub=U.shapeForegroundColor;fb=U.shapeBackgroundColor;mb=U.enableFlowAnimation;U.enableFlowAnimation=!1;null!=U.themes&&"darkTheme"==U.defaultThemeName&&(eb=U.stylesheet, U.stylesheet=U.getDefaultStylesheet(),U.shapeForegroundColor="#000000",U.shapeBackgroundColor="#ffffff",U.refresh());hb.open(null,null,ob,!0,ib);U.enableFlowAnimation=mb;null!=eb&&(U.shapeForegroundColor=ub,U.shapeBackgroundColor=fb,U.stylesheet=eb,U.refresh())}else{mb=Ua.background;if(null==mb||""==mb||mb==mxConstants.NONE)mb="#ffffff";hb.backgroundColor=mb;hb.autoOrigin=fb;hb.appendGraph(Ua,nb,eb,ub,ob,!0,ib);ob=Ua.getCustomFonts();if(null!=hb.wnd)for(eb=0;eb'):(hb.wnd.document.writeln('"))}kb&&(Ua.useCssTransforms=kb,Ua.currentTranslate=vb,Ua.currentScale=yb,Ua.view.translate=tb,Ua.view.scale=jb);return hb}var oa=parseInt(Z.value)/ -100;isNaN(oa)&&(oa=1,Z.value="100 %");mxClient.IS_SF&&(oa*=.75);var ua=null,ta=U.shapeForegroundColor,xa=U.shapeBackgroundColor;null!=U.themes&&"darkTheme"==U.defaultThemeName&&(ua=U.stylesheet,U.stylesheet=U.getDefaultStylesheet(),U.shapeForegroundColor="#000000",U.shapeBackgroundColor="#ffffff",U.refresh());var Aa=qa.value,Na=Ha.value,Ra=!sa.checked,Wa=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(l,sa.checked,Aa,Na,Da.checked,v.value,J.value,parseInt(wa.value)/100,parseInt(Z.value)/ +100;isNaN(oa)&&(oa=1,Z.value="100 %");mxClient.IS_SF&&(oa*=.75);var ua=null,ta=U.shapeForegroundColor,xa=U.shapeBackgroundColor;null!=U.themes&&"darkTheme"==U.defaultThemeName&&(ua=U.stylesheet,U.stylesheet=U.getDefaultStylesheet(),U.shapeForegroundColor="#000000",U.shapeBackgroundColor="#ffffff",U.refresh());var Aa=qa.value,Na=Ha.value,Ra=!sa.checked,Wa=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(l,sa.checked,Aa,Na,Da.checked,v.value,I.value,parseInt(wa.value)/100,parseInt(Z.value)/ 100,R.get());else{Ra&&(Ra=za.checked||Aa==pa&&Na==pa);if(!Ra&&null!=l.pages&&l.pages.length){var Ma=0;Ra=l.pages.length-1;sa.checked||(Ma=parseInt(Aa)-1,Ra=parseInt(Na)-1);for(var bb=Ma;bb<=Ra;bb++){var Qa=l.pages[bb];Aa=Qa==l.currentPage?U:null;if(null==Aa){Aa=l.createTemporaryGraph(U.stylesheet);Aa.shapeForegroundColor=U.shapeForegroundColor;Aa.shapeBackgroundColor=U.shapeBackgroundColor;Na=!0;Ma=!1;var lb=null,cb=null;null==Qa.viewState&&null==Qa.root&&l.updatePageRoot(Qa);null!=Qa.viewState&& (Na=Qa.viewState.pageVisible,Ma=Qa.viewState.mathEnabled,lb=Qa.viewState.background,cb=Qa.viewState.backgroundImage,Aa.extFonts=Qa.viewState.extFonts);null!=cb&&null!=cb.originalSrc&&(cb=l.createImageForPageLink(cb.originalSrc,Qa));Aa.background=lb;Aa.backgroundImage=null!=cb?new mxImage(cb.src,cb.width,cb.height,cb.x,cb.y):null;Aa.pageVisible=Na;Aa.mathEnabled=Ma;var gb=Aa.getGraphBounds;Aa.getGraphBounds=function(){var Ua=gb.apply(this,arguments),hb=this.backgroundImage;if(null!=hb&&null!=hb.width&& null!=hb.height){var ob=this.view.translate,ib=this.view.scale;Ua=mxRectangle.fromRectangle(Ua);Ua.add(new mxRectangle((ob.x+hb.x)*ib,(ob.y+hb.y)*ib,hb.width*ib,hb.height*ib))}return Ua};var qb=Aa.getGlobalVariable;Aa.getGlobalVariable=function(Ua){return"page"==Ua?Qa.getName():"pagenumber"==Ua?bb+1:"pagecount"==Ua?null!=l.pages?l.pages.length:1:qb.apply(this,arguments)};document.body.appendChild(Aa.container);l.updatePageRoot(Qa);Aa.model.setRoot(Qa.root)}Wa=ka(Aa,Wa,bb!=Ra,Qa.getId());Aa!=U&&Aa.container.parentNode.removeChild(Aa.container)}}else Wa= @@ -3517,7 +3515,7 @@ pa;break}qa.setAttribute("max",ha);Ha.setAttribute("max",ha);l.isPagesEnabled()? "pages-printdialog"),za.style.marginBottom="8px",Y.appendChild(za));D=document.createElement("span");mxUtils.write(D,mxResources.get("selectionOnly"));za.parentNode.appendChild(D);1==ha&&mxUtils.br(za.parentNode);var La=document.createElement("input");La.style.marginRight="8px";La.setAttribute("value","adjust");La.setAttribute("type","radio");La.setAttribute("name","printZoom");ya.appendChild(La);D=document.createElement("span");mxUtils.write(D,mxResources.get("adjustTo"));ya.appendChild(D);var wa= document.createElement("input");wa.style.cssText="margin:0 8px 0 8px;";wa.setAttribute("value","100 %");wa.style.width="50px";ya.appendChild(wa);mxEvent.addListener(wa,"focus",function(){La.checked=!0});aa.appendChild(ya);Y=Y.cloneNode(!1);var Da=La.cloneNode(!0);Da.setAttribute("value","fit");La.setAttribute("checked","checked");D=document.createElement("div");D.style.cssText="display:inline-block;vertical-align:top;padding-top:2px;";D.appendChild(Da);Y.appendChild(D);ya=document.createElement("table"); ya.style.display="inline-block";var Ja=document.createElement("tbody"),Oa=document.createElement("tr"),Fa=Oa.cloneNode(!0),Ba=document.createElement("td"),Sa=Ba.cloneNode(!0),$a=Ba.cloneNode(!0),Pa=Ba.cloneNode(!0),Va=Ba.cloneNode(!0),Ca=Ba.cloneNode(!0);Ba.style.textAlign="right";Pa.style.textAlign="right";mxUtils.write(Ba,mxResources.get("fitTo"));var v=document.createElement("input");v.style.cssText="margin:0 8px 0 8px;";v.setAttribute("value","1");v.setAttribute("min","1");v.setAttribute("type", -"number");v.style.width="40px";Sa.appendChild(v);D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsAcross"));$a.appendChild(D);mxUtils.write(Pa,mxResources.get("fitToBy"));var J=v.cloneNode(!0);Va.appendChild(J);mxEvent.addListener(v,"focus",function(){Da.checked=!0});mxEvent.addListener(J,"focus",function(){Da.checked=!0});D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsDown"));Ca.appendChild(D);Oa.appendChild(Ba);Oa.appendChild(Sa);Oa.appendChild($a); +"number");v.style.width="40px";Sa.appendChild(v);D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsAcross"));$a.appendChild(D);mxUtils.write(Pa,mxResources.get("fitToBy"));var I=v.cloneNode(!0);Va.appendChild(I);mxEvent.addListener(v,"focus",function(){Da.checked=!0});mxEvent.addListener(I,"focus",function(){Da.checked=!0});D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsDown"));Ca.appendChild(D);Oa.appendChild(Ba);Oa.appendChild(Sa);Oa.appendChild($a); Fa.appendChild(Pa);Fa.appendChild(Va);Fa.appendChild(Ca);Ja.appendChild(Oa);Ja.appendChild(Fa);ya.appendChild(Ja);Y.appendChild(ya);aa.appendChild(Y);Y=document.createElement("div");D=document.createElement("div");D.style.fontWeight="bold";D.style.marginBottom="12px";mxUtils.write(D,mxResources.get("paperSize"));Y.appendChild(D);D=document.createElement("div");D.style.marginBottom="12px";var R=PageSetupDialog.addPageFormatPanel(D,"printdialog",l.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT); Y.appendChild(D);D=document.createElement("span");mxUtils.write(D,mxResources.get("pageScale"));Y.appendChild(D);var Z=document.createElement("input");Z.style.cssText="margin:0 8px 0 8px;";Z.setAttribute("value","100 %");Z.style.width="60px";Y.appendChild(Z);aa.appendChild(Y);D=document.createElement("div");D.style.cssText="text-align:right;margin:48px 0 0 0;";Y=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});Y.className="geBtn";l.editor.cancelFirst&&D.appendChild(Y);l.isOffline()|| (ya=mxUtils.button(mxResources.get("help"),function(){U.openLink("https://www.drawio.com/doc/faq/print-diagram")}),ya.className="geBtn",D.appendChild(ya));PrintDialog.previewEnabled&&(ya=mxUtils.button(mxResources.get("preview"),function(){l.hideDialog();O(!1)}),ya.className="geBtn",D.appendChild(ya));ya=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){l.hideDialog();O(!0)});ya.className="geBtn gePrimaryBtn";D.appendChild(ya);l.editor.cancelFirst||D.appendChild(Y); @@ -3525,7 +3523,7 @@ aa.appendChild(D);this.container=aa};var X=ChangePageSetup.prototype.execute;Cha null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else X.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}; Editor.prototype.useCanvasForExport=!1;try{var W=document.createElement("canvas"),ba=new Image;ba.onload=function(){try{W.getContext("2d").drawImage(ba,0,0);var l=W.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=l&&6
')))}catch(l){}Editor.prototype.useCanvasForExport= !1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,n){n.ui=e.ui;return g};b.afterDecode=function(e,g,n){n.previousColor=n.color;n.previousImage=n.image;n.previousFormat=n.format;null!=n.foldingEnabled&&(n.foldingEnabled=!n.foldingEnabled);null!=n.mathEnabled&&(n.mathEnabled=!n.mathEnabled);null!=n.shadowVisible&&(n.shadowVisible=!n.shadowVisible);return n};mxCodecRegistry.register(b)})(); -(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,n){n.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.4";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= +(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,n){n.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.5";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&& null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" "); EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}}; @@ -3789,7 +3787,7 @@ c[X].type.substring(0,9)&&"image/"===c[X].type.substring(0,6)&&c[X].size>da){ma= null!=sa&&(pa=pa.concat(sa))}}finally{ba.getModel().endUpdate()}}A(pa)}}),aa=0;aa(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()): -this.formatWindow.window.setVisible(!1)}};var I=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):I.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,z=mxUtils.bind(this,function(){this.hsplitPosition=y;this.refresh(); +this.formatWindow.window.setVisible(!1)}};var J=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):J.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,z=mxUtils.bind(this,function(){this.hsplitPosition=y;this.refresh(); this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),y=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==y?"translateX(0)":"translateX(-100%)");0!=y&&z();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==y?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin", "top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==y&&z()}),300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0mxUtils.indexOf(A,Ca)&&A.push(Ca),N.fireEvent(new mxEventObject("cellsInserted","cells",[Ca])));k=null!= -Ca;Ca=J;if(!k)for($a=0;$amxUtils.indexOf(A,Ca)&&A.push(Ca),N.fireEvent(new mxEventObject("cellsInserted","cells",[Ca])));k=null!= +Ca;Ca=I;if(!k)for($a=0;$a"===z.substring(0,12);z=""===z.substring(0,11);(y||z)&&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:""===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})(); -var CommentsWindow=function(b,e,g,n,t,p){function C(){for(var T=A.getElementsByTagName("div"),ca=0,la=0;la'; -N.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(N,"click",function(T){function ca(){I(la,ma,function(da){F(ma);b.addComment(da,function(X){da.id=X;ja.push(da);S(ma)},function(X){H(ma);ca();b.handleError(X,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var la=b.newComment("",b.getCurrentUser()),ma=V(la,ja,null,0);ca();T.preventDefault();mxEvent.consume(T)});M.appendChild(N)}N=y.cloneNode();N.innerHTML='';N.setAttribute("title",mxResources.get("showResolved"));N.className="geButton";var K=!1;mxEvent.addListener(N,"click",function(T){this.className=(K=!K)?"geButton geCheckedBtn":"geButton";fa();T.preventDefault();mxEvent.consume(T)});M.appendChild(N);b.commentsRefreshNeeded()&&(N=y.cloneNode(),N.innerHTML='',N.setAttribute("title",mxResources.get("refresh")), N.className="geButton",mxEvent.addListener(N,"click",function(T){fa();T.preventDefault();mxEvent.consume(T)}),M.appendChild(N));b.commentsSaveNeeded()&&(y=y.cloneNode(),y.innerHTML='',y.setAttribute("title",mxResources.get("save")),y.className="geButton geAdaptiveAsset",mxEvent.addListener(y,"click",function(T){p();T.preventDefault();mxEvent.consume(T)}),M.appendChild(y));z.appendChild(M);var ja=[],fa=mxUtils.bind(this,function(){this.hasError= !1;if(null!=k)try{k.div=k.div.cloneNode(!0);var T=k.div.querySelector(".geCommentEditTxtArea"),ca=k.div.querySelector(".geCommentEditBtns");k.comment.content=T.value;T.parentNode.removeChild(T);ca.parentNode.removeChild(ca)}catch(la){b.handleError(la)}A.innerHTML='
'+mxUtils.htmlEntities(mxResources.get("loading"))+"...
";f=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(la){function ma(da){if(null!= -da){da.sort(function(W,ba){return new Date(W.modifiedDate)-new Date(ba.modifiedDate)});for(var X=0;X"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&F.appendChild(p);var f=mxUtils.button(t||mxResources.get("ok"),function(){b.hideDialog();null!=g&&g(c.checked)});F.appendChild(f);null!=C?(f.innerHTML=C+ +C,J,Q,F,H){var S=document.createElement("div");S.style.textAlign="center";H=null!=H?H:44;var V=document.createElement("div");V.style.padding="6px";V.style.overflow="auto";V.style.maxHeight=H+"px";V.style.lineHeight="1.2em";mxUtils.write(V,e);S.appendChild(V);null!=F&&(V=document.createElement("div"),V.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",F),V.appendChild(e),S.appendChild(V));F=document.createElement("div");F.style.textAlign="center";F.style.whiteSpace="nowrap"; +var c=document.createElement("input");c.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=n&&n(c.checked)});p.className="geBtn";null!=J&&(p.innerHTML=J+"
"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&F.appendChild(p);var f=mxUtils.button(t||mxResources.get("ok"),function(){b.hideDialog();null!=g&&g(c.checked)});F.appendChild(f);null!=C?(f.innerHTML=C+ "
"+f.innerHTML+"
",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";b.editor.cancelFirst||F.appendChild(p);S.appendChild(F);Q?(F.style.marginTop="10px",V=document.createElement("p"),V.style.marginTop="20px",V.style.marginBottom="0px",V.appendChild(c),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),V.appendChild(t),S.appendChild(V),mxEvent.addListener(t, "click",function(k){c.checked=!c.checked;mxEvent.consume(k)})):F.style.marginTop="12px";this.init=function(){f.focus()};this.container=S},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.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)};function RenamePage(b,e,g){this.ui=b;this.page=e;this.previous=this.name=g}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"))}; @@ -4085,18 +4083,18 @@ ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,e=this.ui EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};EditorUi.prototype.getPageIndex=function(b){var e=null;if(null!=this.pages&&null!=b)for(var g=0;gg&&null!=this.tabScroller.children[g]&&(n!=this.lastScrollPage||e)&&(this.tabScroller.children[g].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[g].className="geTab gePageTab geActivePage",this.lastScrollPage=n)}; EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var n=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(n.setViewState(e),this.editor.updateGraphComponents(),n.view.revalidate(),n.sizeDidChange()),n.container.scrollLeft=n.view.translate.x*n.view.scale+e.scrollLeft,n.container.scrollTop=n.view.translate.y*n.view.scale+e.scrollTop,n.restoreSelection(g))}; -Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),t=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),C=this.parseBackgroundImage(b.getAttribute("backgroundImage")),I=b.getAttribute("extFonts");if(I)try{I=I.split("|").map(function(Q){Q=Q.split("^");return{name:Q[0],url:Q[1]}})}catch(Q){console.log("ExtFonts format error: "+Q.message)}return{gridEnabled:"0"!=b.getAttribute("grid"), +Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),t=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),C=this.parseBackgroundImage(b.getAttribute("backgroundImage")),J=b.getAttribute("extFonts");if(J)try{J=J.split("|").map(function(Q){Q=Q.split("^");return{name:Q[0],url:Q[1]}})}catch(Q){console.log("ExtFonts format error: "+Q.message)}return{gridEnabled:"0"!=b.getAttribute("grid"), gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0=this.pages.length&&(n=this.insertPage(),e.model.execute(new RenamePage(this,n,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,n))}finally{e.model.endUpdate()}}}catch(t){this.handleError(t)}return b}; -EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var t=b.node.cloneNode(!1);t.removeAttribute("id");var p={},C=n.createCellLookup([n.model.root]);g=new DiagramPage(t);g.root=n.cloneCell(n.model.root,null,p);var I=new mxGraphModel;I.prefix=Editor.guid()+"-";I.setRoot(g.root);n.updateCustomLinks(n.createCellMapping(p,C),[g.root]);g.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(g); +EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var t=b.node.cloneNode(!1);t.removeAttribute("id");var p={},C=n.createCellLookup([n.model.root]);g=new DiagramPage(t);g.root=n.cloneCell(n.model.root,null,p);var J=new mxGraphModel;J.prefix=Editor.guid()+"-";J.setRoot(g.root);n.updateCustomLinks(n.createCellMapping(p,C),[g.root]);g.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(g); g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(Q){this.handleError(Q)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);mxUtils.setTextContent(b.node,Graph.compressNode(e))}; EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],n=0;nmxUtils.indexOf(EditorUi.transientViewStateProperties,t)?p:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,n));return n}; b.beforeDecode=function(e,g,n){n.ui=e.ui;n.relatedPage=n.ui.getPageById(g.getAttribute("relatedPage"));if(null==n.relatedPage){var t=g.ownerDocument.createElement("diagram");t.setAttribute("id",g.getAttribute("relatedPage"));t.setAttribute("name",g.getAttribute("name"));n.relatedPage=new DiagramPage(t);t=g.getAttribute("viewState");null!=t&&(n.relatedPage.viewState=JSON.parse(t),g.removeAttribute("viewState"));g=g.cloneNode(!0);t=g.firstChild;if(null!=t)for(n.relatedPage.root=e.decodeCell(t,!1),n= -t.nextSibling,t.parentNode.removeChild(t),t=n;null!=t;){n=t.nextSibling;if(t.nodeType==mxConstants.NODETYPE_ELEMENT){var p=t.getAttribute("id");null==e.lookup(p)&&e.decodeCell(t)}t.parentNode.removeChild(t);t=n}}return g};b.afterDecode=function(e,g,n){n.index=n.previousIndex;return n};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(n,t,p,C,I){t=null!=t?t:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),n));this.stopEditing();this.model.beginUpdate();try{for(var Q=p.slice(),F=0;Fda.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function Q(da,X){X=null!=X?X:!0;f.model.beginUpdate();try{var W=f.model.getParent(da),ba=f.getIncomingTreeEdges(da),l=f.cloneCells([ba[0],da]);f.model.setTerminal(l[0], -f.model.getTerminal(ba[0],!0),!0);var D=I(da),P=W.geometry;D==mxConstants.DIRECTION_SOUTH||D==mxConstants.DIRECTION_NORTH?l[1].geometry.x+=X?da.geometry.width+10:-l[1].geometry.width-10:l[1].geometry.y+=X?da.geometry.height+10:-l[1].geometry.height-10;f.view.currentRoot!=W&&(l[1].geometry.x-=P.x,l[1].geometry.y-=P.y);var O=f.view.getState(da),U=f.view.scale;if(null!=O){var aa=mxRectangle.fromRectangle(O);D==mxConstants.DIRECTION_SOUTH||D==mxConstants.DIRECTION_NORTH?aa.x+=(X?da.geometry.width+10: --l[1].geometry.width-10)*U:aa.y+=(X?da.geometry.height+10:-l[1].geometry.height-10)*U;var Y=f.getOutgoingTreeEdges(f.model.getTerminal(ba[0],!0));if(null!=Y){for(var ha=D==mxConstants.DIRECTION_SOUTH||D==mxConstants.DIRECTION_NORTH,pa=P=ba=0;pa=Math.max(D.x,W.x)||X&&Math.min(D.y+D.height,W.y+W.height)>=Math.max(D.y,W.y))&&ba.push(D)}ba.sort(function(P,O){return X?P.x+P.width-O.x-O.width:P.y+P.height-O.y-O.height})}return ba}function V(da,X){var W=I(da), +-P.y+10);return f.addCells(D,W)}finally{f.model.endUpdate()}}function S(da,X,W){da=f.getOutgoingTreeEdges(da);W=f.view.getState(W);var ba=[];if(null!=W&&null!=da){for(var l=0;l=Math.max(D.x,W.x)||X&&Math.min(D.y+D.height,W.y+W.height)>=Math.max(D.y,W.y))&&ba.push(D)}ba.sort(function(P,O){return X?P.x+P.width-O.x-O.width:P.y+P.height-O.y-O.height})}return ba}function V(da,X){var W=J(da), ba=X==mxConstants.DIRECTION_EAST||X==mxConstants.DIRECTION_WEST;(W==mxConstants.DIRECTION_EAST||W==mxConstants.DIRECTION_WEST)==ba&&W!=X?c.actions.get("selectParent").funct():W==X?(X=f.getOutgoingTreeEdges(da),null!=X&&0mxUtils.indexOf(X,ba)&&X.push(ba);(null==ba||l)&&0>mxUtils.indexOf(X,W)&&X.push(W);return null==ba||l});return X};var T=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){T.apply(this,arguments);(t(this.state.cell)|| n(this.state.cell))&&!C(this.state.cell)&&0this.state.width?10:0)+2+"px",this.moveHandle.style.top= this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var la=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(da){la.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=da?"":"none")};var ma=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(da,X){ma.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!== typeof Sidebar){var g=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var n=g.apply(this,arguments),t=this.graph;return n.concat([this.addEntry("tree container",function(){var p=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");p.vertex=!0;var C=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};'); -C.vertex=!0;var I=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);I.insertEdge(Q,!1);p.insert(Q);p.insert(C);p.insert(I); +C.vertex=!0;var J=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);J.insertEdge(Q,!1);p.insert(Q);p.insert(C);p.insert(J); return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var p=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");p.vertex=!0;var C=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};'); -C.vertex=!0;var I=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};');I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"); -Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);I.insertEdge(Q,!1);var F=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};'); +C.vertex=!0;var J=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};');J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"); +Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);J.insertEdge(Q,!1);var F=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};'); F.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),Q.style);H.geometry.relative=!0;H.edge=!0;C.insertEdge(H,!0);F.insertEdge(H,!1);var S=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};'); S.vertex=!0;var V=new mxCell("",new mxGeometry(0,0,0,0),Q.style);V.geometry.relative=!0;V.edge=!0;C.insertEdge(V,!0);S.insertEdge(V,!1);var c=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};'); -c.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,0,0),Q.style);f.geometry.relative=!0;f.edge=!0;C.insertEdge(f,!0);c.insertEdge(f,!1);p.insert(Q);p.insert(H);p.insert(V);p.insert(f);p.insert(C);p.insert(I);p.insert(F);p.insert(S);p.insert(c);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var p=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),Q.style);f.geometry.relative=!0;f.edge=!0;C.insertEdge(f,!0);c.insertEdge(f,!1);p.insert(Q);p.insert(H);p.insert(V);p.insert(f);p.insert(C);p.insert(J);p.insert(F);p.insert(S);p.insert(c);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var p=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;'); p.vertex=!0;return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var p=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};'); p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");C.geometry.setTerminalPoint(new mxPoint(-40,40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);return sb.createVertexTemplateFromCells([p,C],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var p=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};');p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"); C.geometry.setTerminalPoint(new mxPoint(-40,40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);return sb.createVertexTemplateFromCells([p,C],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree orgchart organization division",function(){var p=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');p.vertex=!0;var C=new mxCell("Organization",new mxGeometry(80, -40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(C,"treeRoot","1");C.vertex=!0;var I=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;"); -Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);I.insertEdge(Q,!1);var F=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');F.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");H.geometry.relative= -!0;H.edge=!0;C.insertEdge(H,!0);F.insertEdge(H,!1);p.insert(Q);p.insert(H);p.insert(C);p.insert(I);p.insert(F);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree root",function(){var p=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(p,"treeRoot","1");p.vertex=!0;return sb.createVertexTemplateFromCells([p], +40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(C,"treeRoot","1");C.vertex=!0;var J=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;"); +Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);J.insertEdge(Q,!1);var F=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');F.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");H.geometry.relative= +!0;H.edge=!0;C.insertEdge(H,!0);F.insertEdge(H,!1);p.insert(Q);p.insert(H);p.insert(C);p.insert(J);p.insert(F);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree root",function(){var p=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(p,"treeRoot","1");p.vertex=!0;return sb.createVertexTemplateFromCells([p], p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree division",function(){var p=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;"); C.geometry.setTerminalPoint(new mxPoint(0,0),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);return sb.createVertexTemplateFromCells([p,C],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree sub sections",function(){var p=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;"); -C.geometry.setTerminalPoint(new mxPoint(110,-40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);var I=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),C.style);Q.geometry.setTerminalPoint(new mxPoint(110,-40),!0);Q.geometry.relative=!0;Q.edge=!0;I.insertEdge(Q,!1);return sb.createVertexTemplateFromCells([C,Q,p,I],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows; +C.geometry.setTerminalPoint(new mxPoint(110,-40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);var J=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),C.style);Q.geometry.setTerminalPoint(new mxPoint(110,-40),!0);Q.geometry.relative=!0;Q.edge=!0;J.insertEdge(Q,!1);return sb.createVertexTemplateFromCells([C,Q,p,J],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows; EditorUi.initMinimalTheme=function(){function b(V,c){if(EditorUi.windowed){var f=V.editor.graph;f.popupMenuHandler.hideMenu();null==V.formatWindow?(c=Math.max(10,V.diagramContainer.clientWidth-248),f=Math.min(566,f.container.clientHeight-10),V.formatWindow=new WrapperWindow(V,mxResources.get("format"),c,60,240,f,function(k){V.createFormat(k).init()}),V.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){V.formatWindow.window.fit()})),V.formatWindow.window.minimumSize=new mxRectangle(0, 0,240,80)):V.formatWindow.window.setVisible(null!=c?c:!V.formatWindow.window.isVisible())}else null==V.formatElt&&(V.formatElt=V.createSidebarContainer(),V.createFormat(V.formatElt).init(),V.formatElt.style.border="none",V.formatElt.style.width="240px",V.formatElt.style.borderLeft="1px solid gray",V.formatElt.style.right="0px"),f=V.diagramContainer.parentNode,null!=V.formatElt.parentNode?(V.formatElt.parentNode.removeChild(V.formatElt),f.style.right="0px"):(f.parentNode.appendChild(V.formatElt),f.style.right= V.formatElt.style.width)}function e(V,c){function f(y,A){var G=V.menus.get(y);y=k.addMenu(A,mxUtils.bind(this,function(){G.funct.apply(this,arguments)}));y.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";y.className="geTitle";c.appendChild(y);return y}var k=new Menubar(V,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed|| @@ -4208,8 +4206,8 @@ mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'n&&!mxClient.IS_IOS?V.firstChild.nextSibling.setAttribute("title", -c.shortcut):C.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(V){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=V?V:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){I=b.getBoundingClientRect();var Q=mxUtils.getScrollOrigin(document.body); -Q="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-Q.x,top:-Q.y};I={left:I.left-Q.left,top:I.top-Q.top,bottom:I.bottom-Q.top,right:I.right-Q.left};this.toolbar.style.left=I.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=I.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=I.top+1+"px"):this.toolbar.style.top=I.top+"px"}else null!= -this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),t=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(I){var Q=b.offsetWidth;Q==t||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=I?I:this.graphConfig.zoom|| +GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,e=this.graph.getGraphBounds(),g=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var n=mxUtils.bind(this,function(){if(!g){g=!0;var J=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?J.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){J=b.getBoundingClientRect();var Q=mxUtils.getScrollOrigin(document.body); +Q="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-Q.x,top:-Q.y};J={left:J.left-Q.left,top:J.top-Q.top,bottom:J.bottom-Q.top,right:J.right-Q.left};this.toolbar.style.left=J.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=J.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=J.top+1+"px"):this.toolbar.style.top=J.top+"px"}else null!= +this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),t=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(J){var Q=b.offsetWidth;Q==t||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=J?J:this.graphConfig.zoom|| (this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},t=Q,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize= !1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",n),this.graph.addListener("size",n)):new ResizeSensor(this.graph.container,n));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,e.width+2*this.graph.border), 0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,e.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=t=null;n=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",n):new ResizeSensor(this.graph.container,n))}else 9>=document.documentMode||this.graph.addListener("size", -n);var C=mxUtils.bind(this,function(I){var Q=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var F=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0b.offsetWidth||e.height+2*this.graph.border>F)?(I=null,null!=F&&e.height+2*this.graph.border>F-2&&(I=(F-2*this.graph.border-2)/e.height),this.fitGraph(I)):this.widthIsEmpty|| -null!=I||0!=this.graphConfig.resize||""==b.style.height?(I=null!=I?I:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+I.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+I.y),t=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.widthb.offsetWidth||e.height+2*this.graph.border>F)?(J=null,null!=F&&e.height+2*this.graph.border>F-2&&(J=(F-2*this.graph.border-2)/e.height),this.fitGraph(J)):this.widthIsEmpty|| +null!=J||0!=this.graphConfig.resize||""==b.style.height?(J=null!=J?J:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+J.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+J.y),t=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.width=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources"; window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang; -window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.4",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -1017,26 +1017,24 @@ function mxCellEditor(a){this.graph=a;this.zoomHandler=mxUtils.bind(this,functio this.updateTextAreaStyle(b))});this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler)}mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editingCell=null;mxCellEditor.prototype.trigger=null;mxCellEditor.prototype.modified=!1;mxCellEditor.prototype.autoSize=!0;mxCellEditor.prototype.selectText=!0;mxCellEditor.prototype.emptyLabelText=mxClient.IS_FF?"
":"";mxCellEditor.prototype.escapeCancelsEditing=!0;mxCellEditor.prototype.textNode=""; mxCellEditor.prototype.zIndex=1;mxCellEditor.prototype.minResize=new mxRectangle(0,20);mxCellEditor.prototype.wordWrapPadding=0;mxCellEditor.prototype.blurEnabled=!1;mxCellEditor.prototype.initialValue=null;mxCellEditor.prototype.align=null; mxCellEditor.prototype.init=function(){this.textarea=document.createElement("div");this.textarea.className="mxCellEditor mxPlainTextEditor";this.textarea.contentEditable=!0;mxClient.IS_GC&&(this.textarea.style.minHeight="1em");this.textarea.style.position=this.isLegacyEditor()?"absolute":"relative";this.installListeners(this.textarea)};mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)}; -mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);8!=document.documentMode&&9!=document.documentMode&&10!=document.documentMode&&(a=mxUtils.replaceTrailingNewlines(a,"

"));return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; +mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);a=mxUtils.replaceTrailingNewlines(a,"

");return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; mxCellEditor.prototype.isCancelEditingKeyEvent=function(a){return this.escapeCancelsEditing||mxEvent.isShiftDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)}; mxCellEditor.prototype.installListeners=function(a){mxEvent.addListener(a,"dragstart",mxUtils.bind(this,function(f){this.graph.stopEditing(!1);mxEvent.consume(f)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,function(f){this.blurEnabled&&this.focusLost(f)}));var b=this.graph.container.scrollTop,c=this.graph.container.scrollLeft;mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(f){b=this.graph.container.scrollTop;c=this.graph.container.scrollLeft;mxEvent.isConsumed(f)||(this.isStopEditingEvent(f)? (this.graph.stopEditing(!1),mxEvent.consume(f)):27==f.keyCode&&(this.graph.stopEditing(this.isCancelEditingKeyEvent(f)),mxEvent.consume(f)))}));var d=mxUtils.bind(this,function(f){null!=this.editingCell&&this.clearOnChange&&a.innerHTML==this.getEmptyLabelText()&&(!mxClient.IS_FF||8!=f.keyCode&&46!=f.keyCode)&&(this.clearOnChange=!1,a.innerText="")});mxEvent.addListener(a,"keypress",d);mxEvent.addListener(a,"paste",d);d=mxUtils.bind(this,function(f){null!=this.editingCell&&(this.graph.container.scrollTop= b,this.graph.container.scrollLeft=c,a.scrollIntoView({block:"nearest",inline:"nearest"}),0==this.textarea.innerHTML.length||"
"==this.textarea.innerHTML?(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0=g.length||l[m]!=g[m]){for(var n=l[m].firstChild;null!=n;){var p=n.nextSibling;l[m].parentNode.insertBefore(n,l[m]);n=p}l[m].parentNode.removeChild(l[m]);break}}),0)}));d=mxClient.IS_IE11||mxClient.IS_IE?"keydown":"input";var e=mxUtils.bind(this,function(f){null!=this.editingCell&&this.autoSize&&!mxEvent.isConsumed(f)&& -(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);9<=document.documentMode?(mxEvent.addListener(a,"DOMNodeRemoved",e),mxEvent.addListener(a,"DOMNodeInserted",e)):(mxEvent.addListener(a,"cut",e),mxEvent.addListener(a,"paste",e))}; -mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)};mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; +(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);mxEvent.addListener(a,"cut",e);mxEvent.addListener(a,"paste",e)};mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)}; +mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; mxCellEditor.prototype.resize=function(){var a=this.graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.textarea){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=null;if(this.autoSize&&"fill"!=a.style[mxConstants.STYLE_OVERFLOW]){var e=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_WIDTH,null);d=null!=a.text&&null==this.align?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(this.align||mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));if(b){if(this.bounds=new mxRectangle(a.absoluteOffset.x,a.absoluteOffset.y,0,0),null!=e){var f=(parseFloat(e)+2)*c;this.bounds.width=f;this.bounds.x+=d.x*f}}else{b=mxRectangle.fromRectangle(a);var g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=null!=a.shape&& g==mxConstants.ALIGN_CENTER&&k==mxConstants.ALIGN_MIDDLE?a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legacySpacing||"width"!=a.style[mxConstants.STYLE_OVERFLOW]&&"block"!=a.style[mxConstants.STYLE_OVERFLOW]){g=parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING,2))*c;var l=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_TOP,0))+mxText.prototype.baseSpacingTop)*c+g,m=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_RIGHT, 0))+mxText.prototype.baseSpacingRight)*c+g,n=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_BOTTOM,0))+mxText.prototype.baseSpacingBottom)*c+g,p=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_LEFT,0))+mxText.prototype.baseSpacingLeft)*c+g;g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=new mxRectangle(b.x+p,b.y+l,b.width-(g==mxConstants.ALIGN_CENTER&& null==e?p+m:0),b.height-(k==mxConstants.ALIGN_MIDDLE?l+n:0));this.graph.isHtmlLabel(a.cell)&&(b.x-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.y-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.width+=mxSvgCanvas2D.prototype.foreignObjectPadding)}this.bounds=new mxRectangle(b.x+a.absoluteOffset.x,b.y+a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height))if(e=this.textDirection=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION, mxConstants.DEFAULT_TEXT_DIRECTION),e=null!=e&&"vertical-"==e.substring(0,9),this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal",this.textarea.innerHTML!=this.getEmptyLabelText())if(f=Math.round(this.bounds.width/c)+this.wordWrapPadding,"relative"!=this.textarea.style.position)this.textarea.style.width=f+"px",this.textarea.scrollWidth>f&&(this.textarea.style.width=this.textarea.scrollWidth+"px");else if("block"==a.style[mxConstants.STYLE_OVERFLOW]||"width"== -a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";8==document.documentMode&&(this.textarea.style.zoom="1",this.textarea.style.height="auto");8==document.documentMode? -(a=this.textarea.scrollWidth,f=this.textarea.scrollHeight,this.textarea.style.left=Math.max(0,Math.ceil((this.bounds.x-d.x*(this.bounds.width-(a+1)*c)+a*(c-1)*0+2*(d.x+.5))/c))+"px",this.textarea.style.top=Math.max(0,Math.ceil((this.bounds.y-d.y*(this.bounds.height-(f+.5)*c)+f*(c-1)*0+1*Math.abs(d.y+.5))/c))+"px",this.textarea.style.width=Math.round(a*c)+"px",this.textarea.style.height=Math.round(f*c)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+ -"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px")}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",8==document.documentMode?(this.textarea.style.left=Math.round(this.bounds.x)+"px",this.textarea.style.top=Math.round(this.bounds.y)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top= -Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()?(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width= -""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null==d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null}; -mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; +a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+"px";this.textarea.style.top= +Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px"}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px",this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()? +(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null== +d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null};mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; mxCellEditor.prototype.updateTextAreaStyle=function(a){var b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTCOLOR,"black"),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style, mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,k=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&k.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&k.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(b*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.backgroundColor= this.getBackgroundColor(a);this.textarea.style.textDecoration=k.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontSize=Math.round(b)+"px";this.textarea.style.zIndex=this.zIndex;this.textarea.style.fontFamily=c;this.textarea.style.textAlign=e;this.textarea.style.outline="none";this.textarea.style.writingMode="";this.textarea.style.color=d;b=this.getBorderColor(a);this.textarea.style.border=null!=b?"1px solid "+b:"none";b= @@ -2044,12 +2042,12 @@ Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFi Editor.prototype.createUndoManager=function(){var b=this.graph,e=new mxUndoManager;this.undoListener=function(n,t){e.undoableEditHappened(t.getProperty("edit"))};var g=mxUtils.bind(this,function(n,t){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,g);b.getView().addListener(mxEvent.UNDO,g);g=function(n,t){n=b.getSelectionCellsForChanges(t.getProperty("edit").changes,function(C){return!(C instanceof mxChildChange)});if(0G.clientHeight-f&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")), +t&&document.body.appendChild(this.bg);var G=b.createDiv(Q?"geTransDialog":"geDialog");t=this.getPosition(k,y,g,n);k=t.x;y=t.y;G.style.width=g+"px";G.style.height=n+"px";G.style.left=k+"px";G.style.top=y+"px";G.style.zIndex=this.zIndex;G.appendChild(e);document.body.appendChild(G);!J&&e.clientHeight>G.clientHeight-f&&(e.style.overflowY="auto");e.style.overflowX="hidden";if(p&&(p=document.createElement("img"),p.setAttribute("src",Dialog.prototype.closeImage),p.setAttribute("title",mxResources.get("close")), p.className="geDialogClose",p.style.top=y+14+"px",p.style.left=k+g+38-S+"px",p.style.zIndex=this.zIndex,mxEvent.addListener(p,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(p),this.dialogImg=p,!H)){var M=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(N){M=!0}),null,mxUtils.bind(this,function(N){M&&(b.hideDialog(!0),M=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=F){var N=F();null!=N&&(V=g=N.w,c=n=N.h)}N=Editor.inlineFullscreen|| null==b.embedViewport?this.getDocumentSize():mxUtils.clone(b.embedViewport);z=N.height;this.bg.style.height=z+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=this.getDocumentSize().height+"px");g=null!=document.body?Math.min(V,document.body.scrollWidth-f):V;n=Math.min(c,z-f);N=Math.max(1,Math.round((N.width-g-f)/2));var K=Math.max(1,Math.round((z-n-b.footerHeight)/3));K=this.getPosition(N,K,g,n);N=K.x;K=K.y;var ja=mxUtils.getDocumentScrollOrigin(document);N+=ja.x;K+=ja.y; -Editor.inlineFullscreen||null==b.embedViewport||(K+=b.embedViewport.y,N+=b.embedViewport.x);G.style.left=N+"px";G.style.top=K+"px";G.style.width=g+"px";G.style.height=n+"px";!I&&e.clientHeight>G.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=K+14+"px",this.dialogImg.style.left=N+g+38-S+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=C;this.container= +Editor.inlineFullscreen||null==b.embedViewport||(K+=b.embedViewport.y,N+=b.embedViewport.x);G.style.left=N+"px";G.style.top=K+"px";G.style.width=g+"px";G.style.height=n+"px";!J&&e.clientHeight>G.clientHeight-f&&(e.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=K+14+"px",this.dialogImg.style.left=N+g+38-S+"px")});null!=b.embedViewport?b.addListener("embedViewportChanged",this.resizeListener):mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=C;this.container= G;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2; Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+ "/nocolor.png";Dialog.prototype.defaultColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD///+l2Z/dAAAAKUlEQVQI1wXBMREAIAwEsHAMjJVQKZVW6U8CDpdH0QxLnLjxoqJjYvMBewMJ51TWcscAAAAASUVORK5CYII=":IMAGE_PATH+"/defaultcolor.png"; @@ -2058,67 +2056,67 @@ Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKA "/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,e){return new mxPoint(b,e)}; Dialog.prototype.close=function(b,e){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,e))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&& this.container.parentNode.removeChild(this.container)}; -var ErrorDialog=function(b,e,g,n,t,p,C,I,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div");S.style.textAlign="center";if(null!=e){var V=document.createElement("div");V.style.padding="0px";V.style.margin="0px";V.style.fontSize="18px";V.style.paddingBottom="16px";V.style.marginBottom="10px";V.style.borderBottom="1px solid #c0c0c0";V.style.color="gray";V.style.whiteSpace="nowrap";V.style.textOverflow="ellipsis";V.style.overflow="hidden";mxUtils.write(V,e);V.setAttribute("title",e);S.appendChild(V)}e= -document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"
"));e.innerHTML=g;S.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=H&&H()}),F.className="geBtn",g.appendChild(F));var c=mxUtils.button(n, -function(){Q&&b.hideDialog();null!=t&&t()});c.className="geBtn";g.appendChild(c);null!=C&&(n=mxUtils.button(C,function(){Q&&b.hideDialog();null!=I&&I()}),n.className="geBtn gePrimaryBtn",g.appendChild(n));this.init=function(){c.focus()};S.appendChild(g);this.container=S},PrintDialog=function(b,e){this.create(b,e)}; +var ErrorDialog=function(b,e,g,n,t,p,C,J,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div");S.style.textAlign="center";if(null!=e){var V=document.createElement("div");V.style.padding="0px";V.style.margin="0px";V.style.fontSize="18px";V.style.paddingBottom="16px";V.style.marginBottom="10px";V.style.borderBottom="1px solid #c0c0c0";V.style.color="gray";V.style.whiteSpace="nowrap";V.style.textOverflow="ellipsis";V.style.overflow="hidden";mxUtils.write(V,e);V.setAttribute("title",e);S.appendChild(V)}e= +document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"
"));e.innerHTML=Graph.sanitizeHtml(g);S.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=p&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();p()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=H&&H()}),F.className="geBtn",g.appendChild(F)); +var c=mxUtils.button(n,function(){Q&&b.hideDialog();null!=t&&t()});c.className="geBtn";g.appendChild(c);null!=C&&(n=mxUtils.button(C,function(){Q&&b.hideDialog();null!=J&&J()}),n.className="geBtn gePrimaryBtn",g.appendChild(n));this.init=function(){c.focus()};S.appendChild(g);this.container=S},PrintDialog=function(b,e){this.create(b,e)}; PrintDialog.prototype.create=function(b){function e(c){var f=C.checked||F.checked,k=parseInt(S.value)/100;isNaN(k)&&(k=1,S.value="100%");mxClient.IS_SF&&(k*=.75);var z=g.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,y=1/g.pageScale;if(f){var A=C.checked?1:parseInt(H.value);isNaN(A)||(y=mxUtils.getScaleForPageCount(A,g,z))}var G=A=0;z=mxRectangle.fromRectangle(z);z.width=Math.ceil(z.width*k);z.height=Math.ceil(z.height*k);y*=k;!f&&g.pageVisible?(k=g.getPageLayout(),A-=k.x*z.width,G-=k.y*z.height): -f=!0;f=PrintDialog.createPrintPreview(g,y,z,0,A,G,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var t=document.createElement("tbody");var p=document.createElement("tr");var C=document.createElement("input");C.setAttribute("type","checkbox");var I=document.createElement("td");I.setAttribute("colspan","2");I.style.fontSize="10pt";I.appendChild(C);var Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("fitPage")); -I.appendChild(Q);mxEvent.addListener(Q,"click",function(c){C.checked=!C.checked;F.checked=!C.checked;mxEvent.consume(c)});mxEvent.addListener(C,"change",function(){F.checked=!C.checked});p.appendChild(I);t.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");I=document.createElement("td");I.style.fontSize="10pt";I.appendChild(F);Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("posterPrint")+":");I.appendChild(Q);mxEvent.addListener(Q, -"click",function(c){F.checked=!F.checked;C.checked=!F.checked;mxEvent.consume(c)});p.appendChild(I);var H=document.createElement("input");H.setAttribute("value","1");H.setAttribute("type","number");H.setAttribute("min","1");H.setAttribute("size","4");H.setAttribute("disabled","disabled");H.style.width="50px";I=document.createElement("td");I.style.fontSize="10pt";I.appendChild(H);mxUtils.write(I," "+mxResources.get("pages")+" (max)");p.appendChild(I);t.appendChild(p);mxEvent.addListener(F,"change", -function(){F.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled");C.checked=!F.checked});p=p.cloneNode(!1);I=document.createElement("td");mxUtils.write(I,mxResources.get("pageScale")+":");p.appendChild(I);I=document.createElement("td");var S=document.createElement("input");S.setAttribute("value","100 %");S.setAttribute("size","5");S.style.width="50px";I.appendChild(S);p.appendChild(I);t.appendChild(p);p=document.createElement("tr");I=document.createElement("td");I.colSpan=2; -I.style.paddingTop="20px";I.setAttribute("align","right");Q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});Q.className="geBtn";b.editor.cancelFirst&&I.appendChild(Q);if(PrintDialog.previewEnabled){var V=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});V.className="geBtn";I.appendChild(V)}V=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});V.className="geBtn gePrimaryBtn";I.appendChild(V);b.editor.cancelFirst|| -I.appendChild(Q);p.appendChild(I);t.appendChild(p);n.appendChild(t);this.container=n};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}}; -PrintDialog.createPrintPreview=function(b,e,g,n,t,p,C){e=new mxPrintPreview(b,e,g,n,t,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=C;C=b.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";e.backgroundColor=C;var I=e.isTextLabel;e.isTextLabel=function(H){return"geHint"==!H.className&&I.apply(this,arguments)};var Q=e.getLinkForCellState;e.getLinkForCellState=function(H){return b.getAbsoluteUrl(Q.apply(this,arguments))};var F=e.writeHead; +f=!0;f=PrintDialog.createPrintPreview(g,y,z,0,A,G,f);f.open();c&&PrintDialog.printPreview(f)}var g=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var t=document.createElement("tbody");var p=document.createElement("tr");var C=document.createElement("input");C.setAttribute("type","checkbox");var J=document.createElement("td");J.setAttribute("colspan","2");J.style.fontSize="10pt";J.appendChild(C);var Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("fitPage")); +J.appendChild(Q);mxEvent.addListener(Q,"click",function(c){C.checked=!C.checked;F.checked=!C.checked;mxEvent.consume(c)});mxEvent.addListener(C,"change",function(){F.checked=!C.checked});p.appendChild(J);t.appendChild(p);p=p.cloneNode(!1);var F=document.createElement("input");F.setAttribute("type","checkbox");J=document.createElement("td");J.style.fontSize="10pt";J.appendChild(F);Q=document.createElement("span");mxUtils.write(Q," "+mxResources.get("posterPrint")+":");J.appendChild(Q);mxEvent.addListener(Q, +"click",function(c){F.checked=!F.checked;C.checked=!F.checked;mxEvent.consume(c)});p.appendChild(J);var H=document.createElement("input");H.setAttribute("value","1");H.setAttribute("type","number");H.setAttribute("min","1");H.setAttribute("size","4");H.setAttribute("disabled","disabled");H.style.width="50px";J=document.createElement("td");J.style.fontSize="10pt";J.appendChild(H);mxUtils.write(J," "+mxResources.get("pages")+" (max)");p.appendChild(J);t.appendChild(p);mxEvent.addListener(F,"change", +function(){F.checked?H.removeAttribute("disabled"):H.setAttribute("disabled","disabled");C.checked=!F.checked});p=p.cloneNode(!1);J=document.createElement("td");mxUtils.write(J,mxResources.get("pageScale")+":");p.appendChild(J);J=document.createElement("td");var S=document.createElement("input");S.setAttribute("value","100 %");S.setAttribute("size","5");S.style.width="50px";J.appendChild(S);p.appendChild(J);t.appendChild(p);p=document.createElement("tr");J=document.createElement("td");J.colSpan=2; +J.style.paddingTop="20px";J.setAttribute("align","right");Q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});Q.className="geBtn";b.editor.cancelFirst&&J.appendChild(Q);if(PrintDialog.previewEnabled){var V=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();e(!1)});V.className="geBtn";J.appendChild(V)}V=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();e(!0)});V.className="geBtn gePrimaryBtn";J.appendChild(V);b.editor.cancelFirst|| +J.appendChild(Q);p.appendChild(J);t.appendChild(p);n.appendChild(t);this.container=n};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(e){}}; +PrintDialog.createPrintPreview=function(b,e,g,n,t,p,C){e=new mxPrintPreview(b,e,g,n,t,p);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=C;C=b.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";e.backgroundColor=C;var J=e.isTextLabel;e.isTextLabel=function(H){return"geHint"==!H.className&&J.apply(this,arguments)};var Q=e.getLinkForCellState;e.getLinkForCellState=function(H){return b.getAbsoluteUrl(Q.apply(this,arguments))};var F=e.writeHead; e.writeHead=function(H){F.apply(this,arguments);H.writeln('")};return e};PrintDialog.previewEnabled=!0; var PageSetupDialog=function(b){function e(){var k=S;null!=k&&null!=k.originalSrc&&(k=b.createImageForPageLink(k.originalSrc,null));null!=k&&null!=k.src?(H.style.backgroundImage="url("+k.src+")",H.style.display="inline-block"):(H.style.backgroundImage="",H.style.display="none");H.style.backgroundColor="";null!=V&&V!=mxConstants.NONE&&(H.style.backgroundColor=V,H.style.display="inline-block")}var g=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var t=document.createElement("tbody"); -var p=document.createElement("tr");var C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";mxUtils.write(C,mxResources.get("paperSize")+":");p.appendChild(C);C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";var I=PageSetupDialog.addPageFormatPanel(C,"pagesetupdialog",g.pageFormat);p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td");mxUtils.write(C,mxResources.get("gridSize")+":");p.appendChild(C); +var p=document.createElement("tr");var C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";mxUtils.write(C,mxResources.get("paperSize")+":");p.appendChild(C);C=document.createElement("td");C.style.verticalAlign="top";C.style.fontSize="10pt";var J=PageSetupDialog.addPageFormatPanel(C,"pagesetupdialog",g.pageFormat);p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td");mxUtils.write(C,mxResources.get("gridSize")+":");p.appendChild(C); C=document.createElement("td");C.style.whiteSpace="nowrap";var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","0");Q.style.width="40px";Q.style.marginLeft="6px";Q.value=g.getGridSize();C.appendChild(Q);mxEvent.addListener(Q,"change",function(){var k=parseInt(Q.value);Q.value=Math.max(1,isNaN(k)?g.getGridSize():k)});p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td");mxUtils.write(C,mxResources.get("background")+":"); p.appendChild(C);C=document.createElement("td");var F=document.createElement("button");F.className="geBtn";F.style.margin="0px";mxUtils.write(F,mxResources.get("change")+"...");var H=document.createElement("div");H.style.display="inline-block";H.style.verticalAlign="middle";H.style.backgroundPosition="center center";H.style.backgroundRepeat="no-repeat";H.style.backgroundSize="contain";H.style.border="1px solid lightGray";H.style.borderRadius="4px";H.style.marginRight="14px";H.style.height="32px"; H.style.width="64px";H.style.cursor="pointer";H.style.padding="4px";var S=g.backgroundImage,V=g.background,c=g.shadowVisible,f=function(k){b.showBackgroundImageDialog(function(z,y,A,G){y||(null!=z&&null!=z.src&&Graph.isPageLink(z.src)&&(z={originalSrc:z.src}),S=z,c=G);V=A;e()},S,V,!0);mxEvent.consume(k)};mxEvent.addListener(F,"click",f);mxEvent.addListener(H,"click",f);e();C.appendChild(H);C.appendChild(F);p.appendChild(C);t.appendChild(p);p=document.createElement("tr");C=document.createElement("td"); -C.colSpan=2;C.style.paddingTop="16px";C.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&C.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(Q.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,V,S,I.get());k.ignoreColor=g.background==V;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=S?S.src:null);null!=c&& +C.colSpan=2;C.style.paddingTop="16px";C.setAttribute("align","right");F=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});F.className="geBtn";b.editor.cancelFirst&&C.appendChild(F);f=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var k=parseInt(Q.value);isNaN(k)||g.gridSize===k||g.setGridSize(k);k=new ChangePageSetup(b,V,S,J.get());k.ignoreColor=g.background==V;k.ignoreImage=(null!=g.backgroundImage?g.backgroundImage.src:null)===(null!=S?S.src:null);null!=c&& (k.shadowVisible=c);g.pageFormat.width==k.previousFormat.width&&g.pageFormat.height==k.previousFormat.height&&k.ignoreColor&&k.ignoreImage&&k.shadowVisible==g.shadowVisible||g.model.execute(k)});f.className="geBtn gePrimaryBtn";C.appendChild(f);b.editor.cancelFirst||C.appendChild(F);p.appendChild(C);t.appendChild(p);n.appendChild(t);this.container=n}; -PageSetupDialog.addPageFormatPanel=function(b,e,g,n){function t(N,K,ja){if(ja||S!=document.activeElement&&V!=document.activeElement){N=!1;for(K=0;K=N)S.value=g.width/100;N=parseFloat(V.value);if(isNaN(N)||0>=N)V.value=g.height/100;N=new mxRectangle(0,0,Math.floor(100* -parseFloat(S.value)),Math.floor(100*parseFloat(V.value)));"custom"!=I.value&&C.checked&&(N=new mxRectangle(0,0,N.height,N.width));K&&A||N.width==G.width&&N.height==G.height||(G=N,null!=n&&n(G))};mxEvent.addListener(e,"click",function(N){p.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(F,"click",function(N){C.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(S,"blur",M);mxEvent.addListener(S,"click",M);mxEvent.addListener(V,"blur",M);mxEvent.addListener(V,"click",M);mxEvent.addListener(C, -"change",M);mxEvent.addListener(p,"change",M);mxEvent.addListener(I,"change",function(N){A="custom"==I.value;M(N,!0)});M();return{set:function(N){g=N;t(null,null,!0)},get:function(){return G},widthInput:S,heightInput:V}}; +y.setAttribute("value",z.key);mxUtils.write(y,z.title);J.appendChild(y)}var A=!1;t();b.appendChild(J);mxUtils.br(b);b.appendChild(Q);b.appendChild(H);var G=g,M=function(N,K){N=c[J.value];null!=N.format?(S.value=N.format.width/100,V.value=N.format.height/100,H.style.display="none",Q.style.display=""):(Q.style.display="none",H.style.display="");N=parseFloat(S.value);if(isNaN(N)||0>=N)S.value=g.width/100;N=parseFloat(V.value);if(isNaN(N)||0>=N)V.value=g.height/100;N=new mxRectangle(0,0,Math.floor(100* +parseFloat(S.value)),Math.floor(100*parseFloat(V.value)));"custom"!=J.value&&C.checked&&(N=new mxRectangle(0,0,N.height,N.width));K&&A||N.width==G.width&&N.height==G.height||(G=N,null!=n&&n(G))};mxEvent.addListener(e,"click",function(N){p.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(F,"click",function(N){C.checked=!0;M(N);mxEvent.consume(N)});mxEvent.addListener(S,"blur",M);mxEvent.addListener(S,"click",M);mxEvent.addListener(V,"blur",M);mxEvent.addListener(V,"click",M);mxEvent.addListener(C, +"change",M);mxEvent.addListener(p,"change",M);mxEvent.addListener(J,"change",function(N){A="custom"==J.value;M(N,!0)});M();return{set:function(N){g=N;t(null,null,!0)},get:function(){return G},widthInput:S,heightInput:V}}; PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)", format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)}, {key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]}; -var FilenameDialog=function(b,e,g,n,t,p,C,I,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div"),V=document.createElement("div");V.style.width="100%";V.style.display="grid";V.style.gap="5px 8px";V.style.gridAutoColumns="auto 1fr";V.style.boxSizing="border-box";V.style.padding="3px";var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.justifyContent="flex-end";c.style.minWidth="0";var f=document.createElement("div");f.style.display="inline-block"; +var FilenameDialog=function(b,e,g,n,t,p,C,J,Q,F,H){Q=null!=Q?Q:!0;var S=document.createElement("div"),V=document.createElement("div");V.style.width="100%";V.style.display="grid";V.style.gap="5px 8px";V.style.gridAutoColumns="auto 1fr";V.style.boxSizing="border-box";V.style.padding="3px";var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.justifyContent="flex-end";c.style.minWidth="0";var f=document.createElement("div");f.style.display="inline-block"; f.style.textOverflow="ellipsis";f.style.whiteSpace="nowrap";f.style.overflow="hidden";f.style.fontSize="10pt";f.style.padding="2px 0";f.setAttribute("title",t||mxResources.get("filename"));mxUtils.write(f,(t||mxResources.get("filename"))+":");c.appendChild(f);V.appendChild(c);var k=document.createElement("input");k.setAttribute("value",e||"");k.style.flexGrow="1";var z=mxUtils.button(g,function(){if(null==p||p(k.value))Q&&b.hideDialog(),n(k.value)});z.className="geBtn gePrimaryBtn";this.init=function(){if(null!= t||null==C)if(null!=H?Editor.selectFilename(k):(k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var y=V.parentNode;if(null!=y){var A=null;mxEvent.addListener(y,"dragleave",function(G){null!=A&&(A.style.backgroundColor="",A=null);G.stopPropagation();G.preventDefault()});mxEvent.addListener(y,"dragover",mxUtils.bind(this,function(G){null==A&&(!mxClient.IS_IE||10'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(C,I){b.apply(this,arguments);if(null!=this.shiftPreview1){var Q=this.view.canvas; -null!=Q.ownerSVGElement&&(Q=Q.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+C,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+I,F))+"px";Q.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(C,I,Q){var F=this.view.scale,H=this.view.translate,S=this.pageFormat,V=F*this.pageScale,c=this.view.getBackgroundPageBounds();I=c.width;Q=c.height;var f=new mxRectangle(F* -H.x,F*H.y,S.width*V,S.height*V),k=(C=C&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(Q/f.height)-1:0,z=C?Math.ceil(I/f.width)-1:0,y=c.x+I,A=c.y+Q;null==this.horizontalPageBreaks&&0'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(C,J){b.apply(this,arguments);if(null!=this.shiftPreview1){var Q=this.view.canvas; +null!=Q.ownerSVGElement&&(Q=Q.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+C,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+J,F))+"px";Q.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(C,J,Q){var F=this.view.scale,H=this.view.translate,S=this.pageFormat,V=F*this.pageScale,c=this.view.getBackgroundPageBounds();J=c.width;Q=c.height;var f=new mxRectangle(F* +H.x,F*H.y,S.width*V,S.height*V),k=(C=C&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(Q/f.height)-1:0,z=C?Math.ceil(J/f.width)-1:0,y=c.x+J,A=c.y+Q;null==this.horizontalPageBreaks&&0C.length?35*C.length:140;V.className="geToolbarContainer geSidebarContainer geShapePicker";V.setAttribute("title",mxResources.get("sidebarTooltip"));V.style.left=b+"px";V.style.top=e+"px";V.style.width=t+"px";mxClient.IS_POINTER&&(V.style.touchAction="none");I||mxUtils.setPrefixedStyle(V.style,"transform","translate(-22px,-22px)");null!=S.background&&S.background!=mxConstants.NONE&&(V.style.backgroundColor= +EditorUi.prototype.showShapePicker=function(b,e,g,n,t,p,C,J,Q){J=J||null==g;b=this.createShapePicker(b,e,g,n,t,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,p,J),p,C,J,Q);null!=b&&(null==this.hoverIcons||p||this.hoverIcons.reset(),p=this.editor.graph,p.popupMenuHandler.hideMenu(),p.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=n,this.shapePicker=b);return b}; +EditorUi.prototype.createShapePicker=function(b,e,g,n,t,p,C,J,Q,F,H){H=null!=H?H:!0;var S=this.editor.graph,V=null;Q=null!=Q?Q:function(k){k=k[0];var z=0,y=0,A=k.geometry;null!=A&&(S.model.isEdge(k)&&(k=A.getTerminalPoint(!1),A=new mxRectangle(0,0,k.x,k.y)),z=A.width/2,y=A.height/2);return new mxPoint(S.snap(Math.round(b/S.view.scale)-S.view.translate.x-z),S.snap(Math.round(e/S.view.scale)-S.view.translate.y-y))};if(null!=C&&0C.length?35*C.length:140;V.className="geToolbarContainer geSidebarContainer geShapePicker";V.setAttribute("title",mxResources.get("sidebarTooltip"));V.style.left=b+"px";V.style.top=e+"px";V.style.width=t+"px";mxClient.IS_POINTER&&(V.style.touchAction="none");J||mxUtils.setPrefixedStyle(V.style,"transform","translate(-22px,-22px)");null!=S.background&&S.background!=mxConstants.NONE&&(V.style.backgroundColor= S.background);S.container.appendChild(V);t=mxUtils.bind(this,function(k){var z=document.createElement("a");z.className="geItem";z.style.cssText="position:relative;display:inline-block;position:relative;width:30px;height:30px;cursor:pointer;overflow:hidden;padding:1px";V.appendChild(z);null!=f&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(f,[k]):this.sidebar.graph.pasteCellStyles([k],S.currentVertexStyle,S.currentEdgeStyle);var y=k.geometry;S.model.isEdge(k)&&(y=y.getTerminalPoint(!1),y=new mxRectangle(0, 0,y.x,y.y));null!=y&&z.appendChild(this.sidebar.createVertexTemplateFromCells([k],y.width,y.height,"",!0,!1,null,!1,mxUtils.bind(this,function(A){if(!mxEvent.isShiftDown(A)||null==g&&S.isSelectionEmpty()){var G=S.cloneCell(k);if(null!=n)n(G);else{var M=Q([G]);S.model.isEdge(G)?G.geometry.translate(M.x,M.y):(G.geometry.x=M.x,G.geometry.y=M.y);S.model.beginUpdate();try{S.addCell(G),S.model.isVertex(G)&&S.isAutoSizeCell(G)&&S.updateCellSize(G)}finally{S.model.endUpdate()}S.setSelectionCell(G);S.scrollCellToVisible(G); -H&&S.startEditing(G);null!=c.hoverIcons&&c.hoverIcons.update(S.view.getState(G))}}else G=S.getEditableCells(null!=g?[g]:S.getSelectionCells()),S.updateShapes(k,G);null!=p&&p(A);mxEvent.consume(A)}),25,25,null,null,g))});for(F=0;F<(I?Math.min(C.length,4):C.length);F++)t(C[F]);C=V.offsetTop+V.clientHeight-(S.container.scrollTop+S.container.offsetHeight);0'],{type:"text/html"})});navigator.clipboard.write([b])["catch"](n)};EditorUi.prototype.writeHtmlToClipboard=function(b,e){b=new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(b)],{type:"text/plain"}),"text/html":new Blob([b],{type:"text/html"})});navigator.clipboard.write([b])["catch"](e)}; EditorUi.prototype.writeTextToClipboard=function(b,e){navigator.clipboard.writeText(b)["catch"](e)};EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("<mxGraphModel ");if(0<=g){var n=b.lastIndexOf("</mxGraphModel>");n>g&&(e=b.substring(g,n+21).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}}catch(t){}return e}; EditorUi.prototype.readGraphModelFromClipboard=function(b){this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(e){null!=e?b(e):this.readGraphModelFromClipboardWithType(mxUtils.bind(this,function(g){if(null!=g){var n=decodeURIComponent(g);this.isCompatibleString(n)&&(g=n)}b(g)}),"text")}),"html")}; -EditorUi.prototype.readGraphModelFromClipboardWithType=function(b,e){navigator.clipboard.read().then(mxUtils.bind(this,function(g){if(null!=g&&0':"")+Graph.sanitizeHtml(b);asHtml=!0;b=e.getElementsByTagName("style");if(null!=b)for(;0l||Math.abs(C.y-W.getGraphY())>l){var D=null;mxEvent.isControlDown(W.getEvent())|| -mxEvent.isShiftDown(W.getEvent())||(D=this.selectionCellsHandler.getHandler(ba.cell));if(null!=D&&null!=D.bends&&0l||Math.abs(C.y-W.getGraphY())>l){var D=null;mxEvent.isControlDown(W.getEvent())|| +mxEvent.isShiftDown(W.getEvent())||(D=this.selectionCellsHandler.getHandler(ba.cell));if(null!=D&&null!=D.bends&&0'+(""!=t?'":"")+'
'+b+"
")}; +Graph.htmlToPng=function(b,e,g,n,t,p){t=null!=t?t:"";p=null!=p?p:Editor.htmlRasterScale;var C=document.createElement("canvas");C.width=e*p;C.height=g*p;var J=document.createElement("img");J.onload=mxUtils.bind(this,function(){try{var F=C.getContext("2d");F.scale(p,p);F.drawImage(J,0,0);n(C.toDataURL())}catch(H){n(null)}});var Q=mxUtils.createXmlDocument();Q=null!=Q.createElementNS?Q.createElementNS(mxConstants.NS_SVG,"svg"):Q.createElement("svg");b=(new mxSvgCanvas2D(Q)).convertHtml(b);J.onerror= +function(F){n(null)};J.src="data:image/svg+xml,"+encodeURIComponent(''+(""!=t?'":"")+'
'+b+"
")}; Graph.zapGremlins=function(b){for(var e=0,g=[],n=0;npageSize){var G=S.startIndex|| H.createVertex(null,null,mxResources.get("previousPage")+"...",0,0,100,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");N.referenceCell=f;N.startIndex=Math.max(0,(S.startIndex||0)-pageSize);M.splice(0,0,N)}if(z.length>(S.startIndex||0)+pageSize){var K=H.createVertex(null,null,mxResources.get("nextPage")+"...",0,0,100,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");K.referenceCell=f;K.startIndex=(S.startIndex||0)+pageSize;M.splice(0,0,K)}for(var ja in H.getModel().cells){var fa= H.getModel().getCell(ja);fa!=H.rootCell&&!H.getModel().isAncestor(H.rootCell,fa)&&H.getModel().isVertex(fa)&&H.removeCells([fa])}H.addCells(M);var T=H.getModel().getGeometry(H.rootCell);null!=T&&(T=T.clone(),T.x=V-T.width/2,T.y=c-T.height/3,H.getModel().setGeometry(H.rootCell,T));S=[];for(ja in H.getModel().cells)fa=H.getModel().getCell(ja),fa!=H.rootCell&&H.getModel().isVertex(fa)&&H.getModel().getParent(fa)==H.getDefaultParent()&&(S.push(fa),T=H.getModel().getGeometry(fa),null!=T&&(T.x=V-T.width/ 2,T.y=c-T.height/2));var ca=S.length,la=2*Math.PI/ca,ma=Math.max(minSize,Math.min(H.container.scrollWidth/3-80,H.container.scrollHeight/3-80));for(V=0;VmxUtils.indexOf(Q,H)})),this.updateCellStyles(C,I))};Graph.prototype.copyCellStyles=function(C,I,Q,F,H,S,V){var c=!1,f=!1;if(0mxUtils.indexOf(Q,H)})),this.updateCellStyles(C,J))};Graph.prototype.copyCellStyles=function(C,J,Q,F,H,S,V){var c=!1,f=!1;if(0mxUtils.indexOf(Graph.edgeStyles,M))&&(c=mxUtils.setStyle(c,M,ca),"fontFamily"==M&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),T&&"rounded"==M&&"1"==ca&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(V,c)}}finally{this.model.endUpdate()}return C}; -Graph.prototype.updateCellStyles=function(C,I){this.model.beginUpdate();try{for(var Q=0;QmxUtils.indexOf(Graph.edgeStyles,M))&&(c=mxUtils.setStyle(c,M,ca),"fontFamily"==M&&null==f.fontSource&&(c=mxUtils.setStyle(c,"fontSource",null)),T&&"rounded"==M&&"1"==ca&&null==f.curved&&(c=mxUtils.setStyle(c,"curved",null)))}Editor.simpleLabels&&(c=mxUtils.setStyle(mxUtils.setStyle(c,"html",null),"whiteSpace",null));this.model.setStyle(V,c)}}finally{this.model.endUpdate()}return C}; +Graph.prototype.updateCellStyles=function(C,J){this.model.beginUpdate();try{for(var Q=0;QV?"a":"p",tt:12>V?"am":"pm",T:12>V?"A":"P",TT:12>V?"AM":"PM",Z:g?"UTC":(String(b).match(t)||[""]).pop().replace(p,""),o:(0V?"a":"p",tt:12>V?"am":"pm",T:12>V?"A":"P",TT:12>V?"AM":"PM",Z:g?"UTC":(String(b).match(t)||[""]).pop().replace(p,""),o:(0t&&"%"==e.charAt(match.index-1))C=p.substring(1);else{var I=p.substring(1,p.length-1);if("id"==I)C=b.id;else if("width"==I&&this.model.isVertex(b)){var Q=this.getCellGeometry(b);null!=Q&&(C=Q.width)}else if("height"==I&&this.model.isVertex(b))Q=this.getCellGeometry(b),null!=Q&&(C=Q.height);else if("length"== -I&&this.model.isEdge(b))Q=this.view.getState(b),null!=Q&&(C=Math.round(Q.length/this.view.scale));else if(0>I.indexOf("{"))for(Q=b;null==C&&null!=Q;)null!=Q.value&&"object"==typeof Q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(C=Q.getAttribute(I+"_"+Graph.diagramLanguage)),null==C&&(C=Q.hasAttribute(I)?null!=Q.getAttribute(I)?Q.getAttribute(I):"":null)),Q=this.model.getParent(Q);null==C&&(C=this.getGlobalVariable(I));null==C&&null!=g&&(C=g[I])}n.push(e.substring(t,match.index)+(null!= +mxEvent.addListener(F,"click",function(){n.setVisible(C,!n.isVisible(C));J();null!=b&&b(C)});J()})(n.getChildAt(n.root,p));return g}; +Graph.prototype.replacePlaceholders=function(b,e,g,n){n=[];if(null!=e){for(var t=0;match=this.placeholderPattern.exec(e);){var p=match[0];if(2t&&"%"==e.charAt(match.index-1))C=p.substring(1);else{var J=p.substring(1,p.length-1);if("id"==J)C=b.id;else if("width"==J&&this.model.isVertex(b)){var Q=this.getCellGeometry(b);null!=Q&&(C=Q.width)}else if("height"==J&&this.model.isVertex(b))Q=this.getCellGeometry(b),null!=Q&&(C=Q.height);else if("length"== +J&&this.model.isEdge(b))Q=this.view.getState(b),null!=Q&&(C=Math.round(Q.length/this.view.scale));else if(0>J.indexOf("{"))for(Q=b;null==C&&null!=Q;)null!=Q.value&&"object"==typeof Q.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(C=Q.getAttribute(J+"_"+Graph.diagramLanguage)),null==C&&(C=Q.hasAttribute(J)?null!=Q.getAttribute(J)?Q.getAttribute(J):"":null)),Q=this.model.getParent(Q);null==C&&(C=this.getGlobalVariable(J));null==C&&null!=g&&(C=g[J])}n.push(e.substring(t,match.index)+(null!= C?C:p));t=match.index+p.length}}n.push(e.substring(t))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0I[0].indexOf("=")&&(I=I.slice(1));this.model.setStyle(e[p],I.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(t,[e[p]],null,!0)}else t=this.copyStyle(e[p]),this.model.setStyle(e[p],n),this.pasteStyle(t,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}}; +this.model.isEdge(b)&&this.model.isEdge(e[p]))if(g){var C=this.model.getStyle(e[p]);if(null!=C){var J=C.split(";");0J[0].indexOf("=")&&(J=J.slice(1));this.model.setStyle(e[p],J.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[e[p]]);this.setCellStyles("points",null,[e[p]]);this.pasteStyle(t,[e[p]],null,!0)}else t=this.copyStyle(e[p]),this.model.setStyle(e[p],n),this.pasteStyle(t,[e[p]]);"1"==mxUtils.getValue(this.getCellStyle(e[p],!1),"composite","0")&&this.removeChildCells(e[p])}}finally{this.model.endUpdate()}}; Graph.prototype.selectCellsForConnectVertex=function(b,e,g){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=g&&(mxEvent.isTouchEvent(e)?g.update(g.getState(this.view.getState(b[1]))):g.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var e=null;null!=this.layoutManager&&(e=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=e&&e.constructor==mxStackLayout}; Graph.prototype.insertEdgeBeforeCell=function(b,e){for(var g=e;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=b.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==b.parent&&(e=g.parent.getIndex(g),this.model.add(g.parent,b,e))}; -Graph.prototype.connectVertex=function(b,e,g,n,t,p,C,I){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var Q=this.isCloneConnectSource(b),F=Q?b:this.getCompositeParent(b),H=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(H.x+=F.geometry.width/2,H.y-=g):e== +Graph.prototype.connectVertex=function(b,e,g,n,t,p,C,J){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var Q=this.isCloneConnectSource(b),F=Q?b:this.getCompositeParent(b),H=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(F.geometry.x,F.geometry.y);e==mxConstants.DIRECTION_NORTH?(H.x+=F.geometry.width/2,H.y-=g):e== mxConstants.DIRECTION_SOUTH?(H.x+=F.geometry.width/2,H.y+=F.geometry.height+g):(H.x=e==mxConstants.DIRECTION_WEST?H.x-g:H.x+(F.geometry.width+g),H.y+=F.geometry.height/2);var S=this.view.getState(this.model.getParent(b));g=this.view.scale;var V=this.view.translate;F=V.x*g;V=V.y*g;null!=S&&this.model.isVertex(S.cell)&&(F=S.x,V=S.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(H.x+=b.parent.geometry.x,H.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(F+H.x*g,V+H.y*g)).grow(40*g);p=null!=p? this.getCells(0,0,0,0,null,null,p,null,!0):null;S=this.view.getState(b);var c=null,f=null;if(null!=p){p=p.reverse();for(var k=0;k/g,"\n"));t=Editor.convertHtmlToText(t);this.cellLabelChanged(b,t);n=!0}e&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE, -null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,e,g,n,t){b=this.cloneCell(b);for(var p=0;pla.distSq){G.splice(M,0,la);la=null;break} 0==this.state.routedPoints.length)p.apply(this,arguments);else{var c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,f=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),z=!0,y=null,A=null,G=[],M=null;H.begin();for(var N=0;Nf*f&&0f*f&&(fa=new mxPoint(ja.x-M.x,ja.y-M.y),K=new mxPoint(ja.x+M.x,ja.y+M.y),G.push(fa),this.addPoints(H,G,V,c,!1,null,z),G=0>Math.round(M.x)||0==Math.round(M.x)&&0>=Math.round(M.y)?1:-1,z=!1,"sharp"==k?(H.lineTo(fa.x- M.y*G,fa.y+M.x*G),H.lineTo(K.x-M.y*G,K.y+M.x*G),H.lineTo(K.x,K.y)):"line"==k?(H.moveTo(fa.x+M.y*G,fa.y-M.x*G),H.lineTo(fa.x-M.y*G,fa.y+M.x*G),H.moveTo(K.x-M.y*G,K.y+M.x*G),H.lineTo(K.x+M.y*G,K.y-M.x*G),H.moveTo(K.x,K.y)):"arc"==k?(G*=1.3,H.curveTo(fa.x-M.y*G,fa.y+M.x*G,K.x-M.y*G,K.y+M.x*G,K.x,K.y)):(H.moveTo(K.x,K.y),z=!0),G=[K],fa=!0))}else M=null;fa||(G.push(ja),y=ja)}this.addPoints(H,G,V,c,!1,null,z);H.stroke()}};var C=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint= -function(H,S,V,c){return null!=S&&"centerPerimeter"==S.style[mxConstants.STYLE_PERIMETER]?new mxPoint(S.getCenterX(),S.getCenterY()):C.apply(this,arguments)};var I=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(H,S,V,c){if(null==S||null==H||"1"!=S.style.snapToPoint&&"1"!=H.style.snapToPoint)I.apply(this,arguments);else{S=this.getTerminalPort(H,S,c);var f=this.getNextPoint(H,V,c),k=this.graph.isOrthogonal(H),z=mxUtils.toRadians(Number(S.style[mxConstants.STYLE_ROTATION]|| +function(H,S,V,c){return null!=S&&"centerPerimeter"==S.style[mxConstants.STYLE_PERIMETER]?new mxPoint(S.getCenterX(),S.getCenterY()):C.apply(this,arguments)};var J=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(H,S,V,c){if(null==S||null==H||"1"!=S.style.snapToPoint&&"1"!=H.style.snapToPoint)J.apply(this,arguments);else{S=this.getTerminalPort(H,S,c);var f=this.getNextPoint(H,V,c),k=this.graph.isOrthogonal(H),z=mxUtils.toRadians(Number(S.style[mxConstants.STYLE_ROTATION]|| "0")),y=new mxPoint(S.getCenterX(),S.getCenterY());if(0!=z){var A=Math.cos(-z),G=Math.sin(-z);f=mxUtils.getRotatedPoint(f,A,G,y)}A=parseFloat(H.style[mxConstants.STYLE_PERIMETER_SPACING]||0);A+=parseFloat(H.style[c?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);f=this.getPerimeterPoint(S,f,0==z&&k,A);0!=z&&(A=Math.cos(z),G=Math.sin(z),f=mxUtils.getRotatedPoint(f,A,G,y));H.setAbsoluteTerminalPoint(this.snapToAnchorPoint(H,S,V,c,f),c)}};mxGraphView.prototype.snapToAnchorPoint= function(H,S,V,c,f){if(null!=S&&null!=H){H=this.graph.getAllConnectionConstraints(S);c=V=null;if(null!=H)for(var k=0;k=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'').src; mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(v){return!mxEvent.isAltDown(v)||mxEvent.isShiftDown(v)};var g=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(v){return g.apply(this,arguments)||this.graph.isTableRow(v)||this.graph.isTableCell(v)};var n=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored= function(v){return n.apply(this,arguments)||this.graph.isEdgeIgnored(v)};var t=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(v){return this.graph.isCloneEvent(v)!=t.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var v=new mxEllipse(null,this.highlightColor,this.highlightColor,0);v.opacity=mxConstants.HIGHLIGHT_OPACITY;return v};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor= -"crosshair";mxConnectionHandler.prototype.createEdgeState=function(v){v=this.graph.createCurrentEdgeStyle();v=this.graph.createEdge(null,null,null,null,null,v);v=new mxCellState(this.graph.view,v,this.graph.getCellStyle(v));for(var J in this.graph.currentEdgeStyle)v.style[J]=this.graph.currentEdgeStyle[J];if(null!=this.previous){var R=this.previous.style.newEdgeStyle;if(null!=R)try{var Z=JSON.parse(R);for(J in Z)v.style[J]=Z[J]}catch(ea){}}v.style=this.graph.postProcessCellStyle(v.cell,v.style);return v}; -var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var v=p.apply(this,arguments);v.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return v};mxConnectionHandler.prototype.updatePreview=function(v){};var C=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var v=C.apply(this,arguments),J=v.getCell;v.getCell=mxUtils.bind(this,function(R){var Z=J.apply(this,arguments);this.error=null;return Z}); -return v};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var v="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",J="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),R=0;R=xa.x&&this.model.remove(Aa[J]);var Na=this.model.getTerminal(R,!1);if(null!=Na){var Ra=this.getCurrentCellStyle(Na);null!=Ra&&"1"==Ra.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[v]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[v]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[R]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[R]))}}finally{this.model.endUpdate()}return R};var S=Graph.prototype.selectCell;Graph.prototype.selectCell=function(v, -J,R){if(J||R)S.apply(this,arguments);else{var Z=this.getSelectionCell(),ea=null,ka=[],oa=mxUtils.bind(this,function(ua){if(null!=this.view.getState(ua)&&(this.model.isVertex(ua)||this.model.isEdge(ua)))if(ka.push(ua),ua==Z)ea=ka.length-1;else if(v&&null==Z&&0ea||!v&&0=xa.x&&this.model.remove(Aa[I]);var Na=this.model.getTerminal(R,!1);if(null!=Na){var Ra=this.getCurrentCellStyle(Na);null!=Ra&&"1"==Ra.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[v]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[v]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[R]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[R]))}}finally{this.model.endUpdate()}return R};var S=Graph.prototype.selectCell;Graph.prototype.selectCell=function(v, +I,R){if(I||R)S.apply(this,arguments);else{var Z=this.getSelectionCell(),ea=null,ka=[],oa=mxUtils.bind(this,function(ua){if(null!=this.view.getState(ua)&&(this.model.isVertex(ua)||this.model.isEdge(ua)))if(ka.push(ua),ua==Z)ea=ka.length-1;else if(v&&null==Z&&0ea||!v&&0bb)for(Qa=0;Qa>bb;Qa--)this.model.remove(Wa[Wa.length+Qa-1]);Wa=this.model.getChildCells(v[ta],!0);for(Qa=0;QamxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka)&&R.push(ka):this.labelChanged(v[Z],"")}else{if(this.isTableRow(v[Z])&&(ka=this.model.getParent(v[Z]), -0>mxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka))){for(var oa=this.model.getChildCells(ka,!0),ua=0,ta=0;tamxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka)&&R.push(ka):this.labelChanged(v[Z],"")}else{if(this.isTableRow(v[Z])&&(ka=this.model.getParent(v[Z]), +0>mxUtils.indexOf(v,ka)&&0>mxUtils.indexOf(R,ka))){for(var oa=this.model.getChildCells(ka,!0),ua=0,ta=0;tamxUtils.indexOf(v,ka))return null}ka=k.apply(this,arguments);var oa=!0;for(ea=0;eaka||xa>ka)&&this.clear());else{for(ta=xa.getSource();null!=ta&&"a"!=ta.nodeName.toLowerCase();)ta=ta.parentNode; null!=ta?this.clear():(null!=oa.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&oa.tooltipHandler.reset(xa,!0,this.currentState),(null==this.currentState||xa.getState()!=this.currentState&&null!=xa.sourceState||!oa.intersects(this.currentState,xa.getGraphX(),xa.getGraphY()))&&this.updateCurrentState(xa))}},mouseUp:function(ta,xa){var Aa=xa.getSource();for(ta=xa.getEvent();null!=Aa&&"a"!=Aa.nodeName.toLowerCase();)Aa=Aa.parentNode;null==Aa&&Math.abs(this.scrollLeft-oa.container.scrollLeft)< -ka&&Math.abs(this.scrollTop-oa.container.scrollTop)q&&m++;x++}d.lengthmxUtils.indexOf(Z,ka)&&Z.push(ka);break}else ka=ka.parentNode;return Z};Graph.prototype.getSelectedElement=function(){var v=null;if(window.getSelection){var J=window.getSelection();J.getRangeAt&& -J.rangeCount&&(v=J.getRangeAt(0).commonAncestorContainer)}else document.selection&&(v=document.selection.createRange().parentElement());return v};Graph.prototype.getSelectedEditingElement=function(){for(var v=this.getSelectedElement();null!=v&&v.nodeType!=mxConstants.NODETYPE_ELEMENT;)v=v.parentNode;null!=v&&v==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(v=this.cellEditor.textarea.firstChild);return v}; -Graph.prototype.getParentByName=function(v,J,R){for(;null!=v&&v.nodeName!=J;){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.getParentByNames=function(v,J,R){for(;null!=v&&!(0<=mxUtils.indexOf(J,v.nodeName));){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.selectNode=function(v){var J=null;if(window.getSelection){if(J=window.getSelection(),J.getRangeAt&&J.rangeCount){var R=document.createRange();R.selectNode(v);J.removeAllRanges();J.addRange(R)}}else(J=document.selection)&& -"Control"!=J.type&&(v=J.createRange(),v.collapse(!0),R=J.createRange(),R.setEndPoint("StartToStart",v),R.select())};Graph.prototype.flipEdgePoints=function(v,J,R){var Z=this.getCellGeometry(v);if(null!=Z){Z=Z.clone();if(null!=Z.points)for(var ea=0;ea=ka.length)J.remove(R);else{var oa=ka.length-1;this.isTableCell(v)&&(oa=mxUtils.indexOf(ka,v));for(Z=v=0;Z=ea.length)J.remove(R);else{this.isTableRow(Z)||(Z=ea[ea.length-1]);J.remove(Z);v=0;var ka=this.getCellGeometry(Z);null!=ka&&(v=ka.height);var oa=this.getCellGeometry(R);null!=oa&&(oa=oa.clone(),oa.height-= -v,J.setGeometry(R,oa))}}finally{J.endUpdate()}};Graph.prototype.insertRow=function(v,J){for(var R=v.tBodies[0],Z=R.rows[0].cells,ea=v=0;eaJ&&v[R].deleteCell(J)}};Graph.prototype.pasteHtmlAtCaret=function(v){if(window.getSelection){var J=window.getSelection();if(J.getRangeAt&&J.rangeCount){J=J.getRangeAt(0);J.deleteContents();var R=document.createElement("div"); -R.innerHTML=v;v=document.createDocumentFragment();for(var Z;Z=R.firstChild;)lastNode=v.appendChild(Z);J.insertNode(v)}}else(J=document.selection)&&"Control"!=J.type&&J.createRange().pasteHTML(v)};Graph.prototype.createLinkForHint=function(v,J,R){function Z(ka,oa){ka.length>oa&&(ka=ka.substring(0,Math.round(oa/2))+"..."+ka.substring(ka.length-Math.round(oa/4)));return ka}v=null!=v?v:"javascript:void(0);";if(null==J||0==J.length)J=this.isCustomLink(v)?this.getLinkTitle(v):v;var ea=document.createElement("a"); -ea.setAttribute("rel",this.linkRelation);ea.setAttribute("href",this.getAbsoluteUrl(v));ea.setAttribute("title",Z(this.isCustomLink(v)?this.getLinkTitle(v):v,80));null!=this.linkTarget&&ea.setAttribute("target",this.linkTarget);mxUtils.write(ea,Z(J,40));this.isCustomLink(v)&&mxEvent.addListener(ea,"click",mxUtils.bind(this,function(ka){this.customLinkClicked(v,R);mxEvent.consume(ka)}));return ea};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!= +R.appendChild(ea);I.appendChild(R)}};Graph.prototype.updateSvgLinks=function(v,I,R){v=v.getElementsByTagName("a");for(var Z=0;ZmxUtils.indexOf(Z,ka)&&Z.push(ka);break}else ka=ka.parentNode;return Z};Graph.prototype.getSelectedElement=function(){var v=null;if(window.getSelection){var I=window.getSelection();I.getRangeAt&& +I.rangeCount&&(v=I.getRangeAt(0).commonAncestorContainer)}else document.selection&&(v=document.selection.createRange().parentElement());return v};Graph.prototype.getSelectedEditingElement=function(){for(var v=this.getSelectedElement();null!=v&&v.nodeType!=mxConstants.NODETYPE_ELEMENT;)v=v.parentNode;null!=v&&v==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(v=this.cellEditor.textarea.firstChild);return v}; +Graph.prototype.getParentByName=function(v,I,R){for(;null!=v&&v.nodeName!=I;){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.getParentByNames=function(v,I,R){for(;null!=v&&!(0<=mxUtils.indexOf(I,v.nodeName));){if(v==R)return null;v=v.parentNode}return v};Graph.prototype.selectNode=function(v){var I=null;if(window.getSelection){if(I=window.getSelection(),I.getRangeAt&&I.rangeCount){var R=document.createRange();R.selectNode(v);I.removeAllRanges();I.addRange(R)}}else(I=document.selection)&& +"Control"!=I.type&&(v=I.createRange(),v.collapse(!0),R=I.createRange(),R.setEndPoint("StartToStart",v),R.select())};Graph.prototype.flipEdgePoints=function(v,I,R){var Z=this.getCellGeometry(v);if(null!=Z){Z=Z.clone();if(null!=Z.points)for(var ea=0;ea=ka.length)I.remove(R);else{var oa=ka.length-1;this.isTableCell(v)&&(oa=mxUtils.indexOf(ka,v));for(Z=v=0;Z=ea.length)I.remove(R);else{this.isTableRow(Z)||(Z=ea[ea.length-1]);I.remove(Z);v=0;var ka=this.getCellGeometry(Z);null!=ka&&(v=ka.height);var oa=this.getCellGeometry(R);null!=oa&&(oa=oa.clone(),oa.height-= +v,I.setGeometry(R,oa))}}finally{I.endUpdate()}};Graph.prototype.insertRow=function(v,I){for(var R=v.tBodies[0],Z=R.rows[0].cells,ea=v=0;eaI&&v[R].deleteCell(I)}};Graph.prototype.pasteHtmlAtCaret=function(v){if(window.getSelection){var I=window.getSelection();if(I.getRangeAt&&I.rangeCount){I=I.getRangeAt(0);I.deleteContents();var R=document.createElement("div"); +R.innerHTML=v;v=document.createDocumentFragment();for(var Z;Z=R.firstChild;)lastNode=v.appendChild(Z);I.insertNode(v)}}else(I=document.selection)&&"Control"!=I.type&&I.createRange().pasteHTML(v)};Graph.prototype.createLinkForHint=function(v,I,R){function Z(ka,oa){ka.length>oa&&(ka=ka.substring(0,Math.round(oa/2))+"..."+ka.substring(ka.length-Math.round(oa/4)));return ka}v=null!=v?v:"javascript:void(0);";if(null==I||0==I.length)I=this.isCustomLink(v)?this.getLinkTitle(v):v;var ea=document.createElement("a"); +ea.setAttribute("rel",this.linkRelation);ea.setAttribute("href",this.getAbsoluteUrl(v));ea.setAttribute("title",Z(this.isCustomLink(v)?this.getLinkTitle(v):v,80));null!=this.linkTarget&&ea.setAttribute("target",this.linkTarget);mxUtils.write(ea,Z(I,40));this.isCustomLink(v)&&mxEvent.addListener(ea,"click",mxUtils.bind(this,function(ka){this.customLinkClicked(v,R);mxEvent.consume(ka)}));return ea};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!= this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(ka,oa){this.popupMenuHandler.hideMenu()});var v=this.updateMouseEvent;this.updateMouseEvent=function(ka){ka=v.apply(this,arguments);if(mxEvent.isTouchEvent(ka.getEvent())&&null==ka.getState()){var oa=this.getCellAt(ka.graphX,ka.graphY);null!=oa&&this.isSwimlane(oa)&&this.hitsSwimlaneContent(oa,ka.graphX,ka.graphY)||(ka.state=this.view.getState(oa),null!=ka.state&&null!=ka.state.shape&&(this.container.style.cursor= -ka.state.shape.node.style.cursor))}null==ka.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return ka};var J=!1,R=!1,Z=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(ka,oa,ua){ka==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),J=this.isCellSelected(oa.getCell()),R=this.isSelectionEmpty(),Z=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(ka,oa){var ua=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger= -!this.isEditing()&&this.isEnabled()&&(null==oa.getState()||!oa.isSource(oa.getState().control))&&(this.popupMenuHandler.popupTrigger||!Z&&!ua&&(R&&null==oa.getCell()&&this.isSelectionEmpty()||J&&this.isCellSelected(oa.getCell())));ua=!J||ua?null:mxUtils.bind(this,function(ta){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var xa=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(oa.getX()+xa.x+1,oa.getY()+xa.y+1,ta,oa.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler, +ka.state.shape.node.style.cursor))}null==ka.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return ka};var I=!1,R=!1,Z=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(ka,oa,ua){ka==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),I=this.isCellSelected(oa.getCell()),R=this.isSelectionEmpty(),Z=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(ka,oa){var ua=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger= +!this.isEditing()&&this.isEnabled()&&(null==oa.getState()||!oa.isSource(oa.getState().control))&&(this.popupMenuHandler.popupTrigger||!Z&&!ua&&(R&&null==oa.getCell()&&this.isSelectionEmpty()||I&&this.isCellSelected(oa.getCell())));ua=!I||ua?null:mxUtils.bind(this,function(ta){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var xa=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(oa.getX()+xa.x+1,oa.getY()+xa.y+1,ta,oa.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler, [ka,oa,ua])})};mxCellEditor.prototype.isContentEditing=function(){var v=this.graph.view.getState(this.editingCell);return null!=v&&1==v.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var v="";window.getSelection?v=window.getSelection():document.getSelection?v=document.getSelection():document.selection&&(v=document.selection.createRange().text); -return""!=v};mxCellEditor.prototype.insertTab=function(v){var J=this.textarea.ownerDocument.defaultView.getSelection(),R=J.getRangeAt(0);v=Graph.createTabNode(v);R.insertNode(v);R.setStartAfter(v);R.setEndAfter(v);J.removeAllRanges();J.addRange(R)};mxCellEditor.prototype.alignText=function(v,J){var R=null!=J&&mxEvent.isShiftDown(J);if(R||null!=window.getSelection&&null!=window.getSelection().containsNode){var Z=!0;this.graph.processElements(this.textarea,function(ea){R||window.getSelection().containsNode(ea, -!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):Z=!1});Z&&this.graph.cellEditor.setAlign(v)}document.execCommand("justify"+v.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var v=window.getSelection();if(v.getRangeAt&&v.rangeCount){for(var J=[],R=0,Z=v.rangeCount;R")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?R(this.textarea,ka):Graph.removePasteFormatting(this.textarea.firstChild))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var v=this.graph.view.getState(this.editingCell);if(null!=v){var J=null!=v&&"0"!=mxUtils.getValue(v.style,"nl2Br","1"),R=this.saveSelection();if(this.codeViewMode){ua=mxUtils.extractTextWithWhitespace(this.textarea.childNodes); -0"):ua,!0);this.textarea.className="mxCellEditor geContentEditable";ta=mxUtils.getValue(v.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);J=mxUtils.getValue(v.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var Z=mxUtils.getValue(v.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),ea=(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)& +return""!=v};mxCellEditor.prototype.insertTab=function(v){var I=this.textarea.ownerDocument.defaultView.getSelection(),R=I.getRangeAt(0);v=Graph.createTabNode(v);R.insertNode(v);R.setStartAfter(v);R.setEndAfter(v);I.removeAllRanges();I.addRange(R)};mxCellEditor.prototype.alignText=function(v,I){var R=null!=I&&mxEvent.isShiftDown(I);if(R||null!=window.getSelection&&null!=window.getSelection().containsNode){var Z=!0;this.graph.processElements(this.textarea,function(ea){R||window.getSelection().containsNode(ea, +!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):Z=!1});Z&&this.graph.cellEditor.setAlign(v)}document.execCommand("justify"+v.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var v=window.getSelection();if(v.getRangeAt&&v.rangeCount){for(var I=[],R=0,Z=v.rangeCount;R")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?R(this.textarea,ka):Graph.removePasteFormatting(this.textarea.firstChild))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var v=this.graph.view.getState(this.editingCell);if(null!=v){var I=null!=v&&"0"!=mxUtils.getValue(v.style,"nl2Br","1"),R=this.saveSelection();if(this.codeViewMode){ua=mxUtils.extractTextWithWhitespace(this.textarea.childNodes); +0"):ua,!0);this.textarea.className="mxCellEditor geContentEditable";ta=mxUtils.getValue(v.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);I=mxUtils.getValue(v.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var Z=mxUtils.getValue(v.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),ea=(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)& mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,ka=(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,oa=[];(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&oa.push("underline");(mxUtils.getValue(v.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&oa.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT? -Math.round(ta*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ta)+"px";this.textarea.style.textDecoration=oa.join(" ");this.textarea.style.fontWeight=ea?"bold":"normal";this.textarea.style.fontStyle=ka?"italic":"";this.textarea.style.fontFamily=J;this.textarea.style.textAlign=Z;this.textarea.style.padding="0px";this.textarea.innerHTML!=ua&&(this.textarea.innerHTML=ua,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(), -this.clearOnChange=0
"));ua=Graph.sanitizeHtml(J?ua.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):ua,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var ta=mxConstants.DEFAULT_FONTSIZE; +Math.round(ta*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ta)+"px";this.textarea.style.textDecoration=oa.join(" ");this.textarea.style.fontWeight=ea?"bold":"normal";this.textarea.style.fontStyle=ka?"italic":"";this.textarea.style.fontFamily=I;this.textarea.style.textAlign=Z;this.textarea.style.padding="0px";this.textarea.innerHTML!=ua&&(this.textarea.innerHTML=ua,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(), +this.clearOnChange=0
"));ua=Graph.sanitizeHtml(I?ua.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):ua,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var ta=mxConstants.DEFAULT_FONTSIZE; this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ta*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ta)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ua&&(this.textarea.innerHTML= -ua);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=R;this.resize()}};var M=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(v,J){if(null!=this.textarea)if(v=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=v){var R=v.view.scale;this.bounds=mxRectangle.fromRectangle(v);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*R;this.bounds.height= +ua);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=R;this.resize()}};var M=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(v,I){if(null!=this.textarea)if(v=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=v){var R=v.view.scale;this.bounds=mxRectangle.fromRectangle(v);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*R;this.bounds.height= 60*R;var Z=null!=v.text?v.text.margin:null;null==Z&&(Z=mxUtils.getAlignmentAsPoint(mxUtils.getValue(v.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(v.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=Z.x*this.bounds.width;this.bounds.y+=Z.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/R)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/R)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight< this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/R)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*R);this.textarea.clientWidth"));return R=Graph.sanitizeHtml(R,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(v){if("0"==mxUtils.getValue(v.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var J=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return J="1"==mxUtils.getValue(v.style,"nl2Br","1")?J.replace(/\r\n/g,"
").replace(/\n/g,"
"):J.replace(/\r\n/g,"").replace(/\n/g,"")};var N=mxCellEditor.prototype.stopEditing; -mxCellEditor.prototype.stopEditing=function(v){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(v){}};var K=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(v,J){this.graph.getModel().beginUpdate();try{K.apply(this,arguments),""==J&&this.graph.isCellDeletable(v.cell)&&0==this.graph.model.getChildCount(v.cell)&&this.graph.isTransparentState(v)&& -this.graph.removeCells([v.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(v){var J=mxUtils.getValue(v.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=J&&J!=mxConstants.NONE||!(null!=v.cell.geometry&&0v;v++){var J=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);J.dialect=mxConstants.DIALECT_SVG;J.init(this.graph.view.getOverlayPane());this.cornerHandles.push(J)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();v=this.graph.getLinkForCell(this.state.cell);J=this.graph.getLinksForState(this.state);this.updateLinkHint(v,J)};var U= -mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var v=new mxPoint(0,0),J=this.tolerance,R=this.state.style.shape;null==mxCellRenderer.defaultShapes[R]&&mxStencilRegistry.getStencil(R);R=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!R&&null!=this.customHandles)for(var Z=0;Z');Graph.prototype.collapsedImage=Graph.createSvgImage(9, -9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); +Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+R+","+R+")")}else this.textarea.style.height="",this.textarea.style.overflow="",M.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(v,I){if("0"==mxUtils.getValue(v.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var R=this.graph.getEditingValue(v.cell,I);"1"==mxUtils.getValue(v.style,"nl2Br", +"1")&&(R=R.replace(/\n/g,"
"));return R=Graph.sanitizeHtml(R,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(v){if("0"==mxUtils.getValue(v.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var I=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(v.style,"nl2Br","1")?(I=I.replace(/\r\n/g,"
").replace(/\n/g,"
"),0"==I.substring(I.length-5)||"
"==I.substring(I.length- +4))&&(I=I.substring(0,I.lastIndexOf("
")):I=I.replace(/\r\n/g,"").replace(/\n/g,"");return I};var N=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(v){this.codeViewMode&&this.toggleViewMode();N.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(v){}};var K=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(v,I){this.graph.getModel().beginUpdate(); +try{K.apply(this,arguments),""==I&&this.graph.isCellDeletable(v.cell)&&0==this.graph.model.getChildCount(v.cell)&&this.graph.isTransparentState(v)&&this.graph.removeCells([v.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(v){var I=mxUtils.getValue(v.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=I&&I!=mxConstants.NONE||!(null!=v.cell.geometry&&0v;v++){var I=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);I.dialect=mxConstants.DIALECT_SVG;I.init(this.graph.view.getOverlayPane());this.cornerHandles.push(I)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles(); +v=this.graph.getLinkForCell(this.state.cell);I=this.graph.getLinksForState(this.state);this.updateLinkHint(v,I)};var U=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var v=new mxPoint(0,0),I=this.tolerance,R=this.state.style.shape;null==mxCellRenderer.defaultShapes[R]&&mxStencilRegistry.getStencil(R);R=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!R&&null!=this.customHandles)for(var Z=0;Z'); +Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle= +Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.rotationHandle=Graph.createSvgImage(16,16,'', 24,24);mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'');mxVertexHandler.TABLE_HANDLE_COLOR="#fca000";mxVertexHandler.prototype.handleImage=HoverIcons.prototype.mainHandle;mxVertexHandler.prototype.secondaryHandleImage=HoverIcons.prototype.secondaryHandle;mxVertexHandler.prototype.rowHandleImage=Graph.createSvgImage(14, @@ -2765,42 +2763,42 @@ HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage= HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!0;mxVertexHandler.prototype.manageSizers=!0;mxVertexHandler.prototype.livePreview=!0;mxGraphHandler.prototype.maxLivePreview=16;mxRubberband.prototype.defaultOpacity=30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop= !0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=function(v){return!mxEvent.isShiftDown(v.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent= function(v){return!mxEvent.isShiftDown(v.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0ka||Math.abs(ea)>ka)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(v,R),this.isSpaceEvent(J)?(v=this.x+this.width,R=this.y+this.height,Z=this.graph.view.scale,mxEvent.isAltDown(J.getEvent())||(this.width=this.graph.snap(this.width/Z)*Z,this.height=this.graph.snap(this.height/Z)*Z, +function(v){var I=v.getEvent();return null==v.getState()&&!mxEvent.isMouseEvent(I)||mxEvent.isPopupTrigger(I)&&(null==v.getState()||mxEvent.isControlDown(I)||mxEvent.isShiftDown(I))}}else mxPanningHandler.prototype.isPanningTrigger=function(v){var I=v.getEvent();return mxEvent.isLeftMouseButton(I)&&(this.useLeftButtonForPanning&&null==v.getState()||mxEvent.isControlDown(I)&&!mxEvent.isShiftDown(I))||this.usePopupTrigger&&mxEvent.isPopupTrigger(I)};mxRubberband.prototype.isSpaceEvent=function(v){return this.graph.isEnabled()&& +!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(v.getEvent())||mxEvent.isMetaDown(v.getEvent()))&&mxEvent.isShiftDown(v.getEvent())&&mxEvent.isAltDown(v.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(v,I){if(this.cancelled)this.cancelled=!1,I.consume();else{var R=null!=this.div&&"none"!=this.div.style.display,Z=null,ea=null,ka=v=null; +null!=this.first&&null!=this.currentX&&null!=this.currentY&&(Z=this.first.x,ea=this.first.y,v=(this.currentX-Z)/this.graph.view.scale,ka=(this.currentY-ea)/this.graph.view.scale,mxEvent.isAltDown(I.getEvent())||(v=this.graph.snap(v),ka=this.graph.snap(ka),this.graph.isGridEnabled()||(Math.abs(v)ka||Math.abs(ea)>ka)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(v,R),this.isSpaceEvent(I)?(v=this.x+this.width,R=this.y+this.height,Z=this.graph.view.scale,mxEvent.isAltDown(I.getEvent())||(this.width=this.graph.snap(this.width/Z)*Z,this.height=this.graph.snap(this.height/Z)*Z, this.graph.isGridEnabled()||(this.width=this.width? "0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle= -"",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),J.consume()}};var pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);pa.apply(this,arguments)};var sa=(new Date).getTime(),ra=0,qa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(v,J,R,Z){qa.apply(this,arguments);R!=this.currentTerminalState? +"",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),I.consume()}};var pa=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);pa.apply(this,arguments)};var sa=(new Date).getTime(),ra=0,qa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(v,I,R,Z){qa.apply(this,arguments);R!=this.currentTerminalState? (sa=(new Date).getTime(),ra=0):ra=(new Date).getTime()-sa;this.currentTerminalState=R};var Ha=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(v){return mxEvent.isShiftDown(v.getEvent())&&mxEvent.isAltDown(v.getEvent())?!1:null!=this.currentTerminalState&&v.getState()==this.currentTerminalState&&2E3=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==v)?this.graph.getConnectionConstraint(this.state,Z,J):null;R=null!=(null!=v?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(J),v):null)?R?this.endFixedHandleImage:this.fixedHandleImage:null!=v&&null!=Z?R?this.endTerminalHandleImage:this.terminalHandleImage:R?this.endHandleImage:this.handleImage;if(null!=R)return R= -new mxImageShape(new mxRectangle(0,0,R.width,R.height),R.src),R.preserveImageAspect=!1,R;R=mxConstants.HANDLE_SIZE;this.preferHtml&&--R;return new mxRectangleShape(new mxRectangle(0,0,R,R),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var za=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(v,J,R,Z){Z=J==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:J==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:Z;return za.apply(this,arguments)}; -var ya=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(v){if(null!=v&&1==v.length){var J=this.graph.getModel(),R=J.getParent(v[0]),Z=this.graph.getCellGeometry(v[0]);if(J.isEdge(R)&&null!=Z&&Z.relative&&(J=this.graph.view.getState(v[0]),null!=J&&2>J.width&&2>J.height&&null!=J.text&&null!=J.text.boundingBox))return mxRectangle.fromRectangle(J.text.boundingBox)}return ya.apply(this,arguments)};var La=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates= -function(){for(var v=La.apply(this,arguments),J=[],R=0;Rv.width&&2>v.height&&null!=v.text&&null!=v.text.boundingBox?(J=v.text.unrotatedBoundingBox||v.text.boundingBox,new mxRectangle(Math.round(J.x), -Math.round(J.y),Math.round(J.width),Math.round(J.height))):wa.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(v,J){var R=this.graph.getModel(),Z=R.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(J)==mxEvent.ROTATION_HANDLE||!R.isEdge(Z)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Da.apply(this,arguments)};mxVertexHandler.prototype.rotateClick= -function(){var v=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),J=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&v==mxConstants.NONE&&J==mxConstants.NONE?(v=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,v,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])}; -var Ja=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(v,J){Ja.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Oa=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(v,J){Oa.apply(this,arguments);null!=this.rotationShape&&null!= -this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(v,J){try{if(null==v&&(null==J||0==J.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=v||null!=J&&0=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==v)?this.graph.getConnectionConstraint(this.state,Z,I):null;R=null!=(null!=v?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(I),v):null)?R?this.endFixedHandleImage:this.fixedHandleImage:null!=v&&null!=Z?R?this.endTerminalHandleImage:this.terminalHandleImage:R?this.endHandleImage:this.handleImage;if(null!=R)return R= +new mxImageShape(new mxRectangle(0,0,R.width,R.height),R.src),R.preserveImageAspect=!1,R;R=mxConstants.HANDLE_SIZE;this.preferHtml&&--R;return new mxRectangleShape(new mxRectangle(0,0,R,R),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var za=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(v,I,R,Z){Z=I==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:I==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:Z;return za.apply(this,arguments)}; +var ya=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(v){if(null!=v&&1==v.length){var I=this.graph.getModel(),R=I.getParent(v[0]),Z=this.graph.getCellGeometry(v[0]);if(I.isEdge(R)&&null!=Z&&Z.relative&&(I=this.graph.view.getState(v[0]),null!=I&&2>I.width&&2>I.height&&null!=I.text&&null!=I.text.boundingBox))return mxRectangle.fromRectangle(I.text.boundingBox)}return ya.apply(this,arguments)};var La=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates= +function(){for(var v=La.apply(this,arguments),I=[],R=0;Rv.width&&2>v.height&&null!=v.text&&null!=v.text.boundingBox?(I=v.text.unrotatedBoundingBox||v.text.boundingBox,new mxRectangle(Math.round(I.x), +Math.round(I.y),Math.round(I.width),Math.round(I.height))):wa.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(v,I){var R=this.graph.getModel(),Z=R.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(I)==mxEvent.ROTATION_HANDLE||!R.isEdge(Z)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Da.apply(this,arguments)};mxVertexHandler.prototype.rotateClick= +function(){var v=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),I=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&v==mxConstants.NONE&&I==mxConstants.NONE?(v=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,v,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])}; +var Ja=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(v,I){Ja.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Oa=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(v,I){Oa.apply(this,arguments);null!=this.rotationShape&&null!= +this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(v,I){try{if(null==v&&(null==I||0==I.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=v||null!=I&&0ia?"#FFFFFF":"#000000"),d.begin(),d.moveTo(0,0),d.lineTo(B,B),d.lineTo(B,u),d.lineTo(0,u-B),d.close(),d.fill()),d.begin(),d.moveTo(B,u),d.lineTo(B,B),d.lineTo(0,0),d.moveTo(B,B),d.lineTo(q,B),d.end(),d.stroke())};n.prototype.getLabelMargins=function(d){return mxUtils.getValue(this.style,"boundedLbl",!1)?(d=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(d,d,0,0)):null};mxCellRenderer.registerShape("cube", n);var lb=Math.tan(mxUtils.toRadians(30)),cb=(.5-lb)/2;mxCellRenderer.registerShape("isoRectangle",C);mxUtils.extend(t,mxConnector);t.prototype.paintEdgeShape=function(d,m){var x=this.createMarker(d,m,!0),q=this.createMarker(d,m,!1);d.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&d.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);d.setShadow(!1);d.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this, arguments);d.setStrokeColor(this.stroke);d.setFillColor(this.stroke);d.setDashed(!1);null!=x&&x();null!=q&&q()};mxCellRenderer.registerShape("wire",t);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(d,m,x,q,u){d.setFillColor(this.stroke);var B=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;d.ellipse(m+.5*(q-B),x+.5*(u-B),B,B);d.fill();d.setFillColor(mxConstants.NONE);d.rect(m,x,q,u);d.fill()};mxCellRenderer.registerShape("waypoint", -p);mxUtils.extend(C,mxActor);C.prototype.size=20;C.prototype.redrawPath=function(d,m,x,q,u){m=Math.min(q,u/lb);d.translate((q-m)/2,(u-m)/2+m/4);d.moveTo(0,.25*m);d.lineTo(.5*m,m*cb);d.lineTo(m,.25*m);d.lineTo(.5*m,(.5-cb)*m);d.lineTo(0,.25*m);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",C);mxUtils.extend(I,mxCylinder);I.prototype.size=20;I.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(q,u/(.5+lb));B?(d.moveTo(0,.25*m),d.lineTo(.5*m,(.5-cb)*m),d.lineTo(m,.25*m),d.moveTo(.5* -m,(.5-cb)*m),d.lineTo(.5*m,(1-cb)*m)):(d.translate((q-m)/2,(u-m)/2),d.moveTo(0,.25*m),d.lineTo(.5*m,m*cb),d.lineTo(m,.25*m),d.lineTo(m,.75*m),d.lineTo(.5*m,(1-cb)*m),d.lineTo(0,.75*m),d.close());d.end()};mxCellRenderer.registerShape("isoCube",I);mxUtils.extend(Q,mxCylinder);Q.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(u/2,Math.round(u/8)+this.strokewidth-1);if(B&&null!=this.fill||!B&&null==this.fill)d.moveTo(0,m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,m/2),d.moveTo(0, +p);mxUtils.extend(C,mxActor);C.prototype.size=20;C.prototype.redrawPath=function(d,m,x,q,u){m=Math.min(q,u/lb);d.translate((q-m)/2,(u-m)/2+m/4);d.moveTo(0,.25*m);d.lineTo(.5*m,m*cb);d.lineTo(m,.25*m);d.lineTo(.5*m,(.5-cb)*m);d.lineTo(0,.25*m);d.close();d.end()};mxCellRenderer.registerShape("isoRectangle",C);mxUtils.extend(J,mxCylinder);J.prototype.size=20;J.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(q,u/(.5+lb));B?(d.moveTo(0,.25*m),d.lineTo(.5*m,(.5-cb)*m),d.lineTo(m,.25*m),d.moveTo(.5* +m,(.5-cb)*m),d.lineTo(.5*m,(1-cb)*m)):(d.translate((q-m)/2,(u-m)/2),d.moveTo(0,.25*m),d.lineTo(.5*m,m*cb),d.lineTo(m,.25*m),d.lineTo(m,.75*m),d.lineTo(.5*m,(1-cb)*m),d.lineTo(0,.75*m),d.close());d.end()};mxCellRenderer.registerShape("isoCube",J);mxUtils.extend(Q,mxCylinder);Q.prototype.redrawPath=function(d,m,x,q,u,B){m=Math.min(u/2,Math.round(u/8)+this.strokewidth-1);if(B&&null!=this.fill||!B&&null==this.fill)d.moveTo(0,m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,m/2),d.moveTo(0, m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,m/2),d.moveTo(0,m),d.curveTo(0,2*m,q,2*m,q,m),B||(d.stroke(),d.begin()),d.translate(0,-m);B||(d.moveTo(0,m),d.curveTo(0,-m/3,q,-m/3,q,m),d.lineTo(q,u-m),d.curveTo(q,u+m/3,0,u+m/3,0,u-m),d.close())};Q.prototype.getLabelMargins=function(d){return new mxRectangle(0,2.5*Math.min(d.height/2,Math.round(d.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",Q);mxUtils.extend(F,mxCylinder);F.prototype.size=30;F.prototype.darkOpacity= 0;F.prototype.paintVertexShape=function(d,m,x,q,u){var B=Math.max(0,Math.min(q,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),E=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));d.translate(m,x);d.begin();d.moveTo(0,0);d.lineTo(q-B,0);d.lineTo(q,B);d.lineTo(q,u);d.lineTo(0,u);d.lineTo(0,0);d.close();d.end();d.fillAndStroke();this.outline||(d.setShadow(!1),0!=E&&(d.setFillAlpha(Math.abs(E)),d.setFillColor(0>E?"#FFFFFF":"#000000"), d.begin(),d.moveTo(q-B,0),d.lineTo(q-B,B),d.lineTo(q,B),d.close(),d.fill()),d.begin(),d.moveTo(q-B,0),d.lineTo(q-B,B),d.lineTo(q,B),d.end(),d.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(H,F);mxCellRenderer.registerShape("note2",H);H.prototype.getLabelMargins=function(d){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(d.height*this.scale,m*this.scale),0,0)}return null};mxUtils.extend(S,mxShape);S.prototype.isoAngle= @@ -2899,8 +2897,8 @@ u/2);d.end()};mxCellRenderer.registerShape("crossbar",Ba);mxUtils.extend(Sa,mxAc "arrowSize",this.arrowSize))));x=(u-B)/2;B=x+B;var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,x),new mxPoint(q-m,x),new mxPoint(q-m,0),new mxPoint(q,u/2),new mxPoint(q-m,u),new mxPoint(q-m,B),new mxPoint(0,B)],this.isRounded,E,!0);d.end()};mxCellRenderer.registerShape("singleArrow",$a);mxUtils.extend(Pa,mxActor);Pa.prototype.redrawPath=function(d,m,x,q,u){var B=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth", $a.prototype.arrowWidth))));m=q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",$a.prototype.arrowSize))));x=(u-B)/2;B=x+B;var E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,u/2),new mxPoint(m,0),new mxPoint(m,x),new mxPoint(q-m,x),new mxPoint(q-m,0),new mxPoint(q,u/2),new mxPoint(q-m,u),new mxPoint(q-m,B),new mxPoint(m,B),new mxPoint(m,u)],this.isRounded,E,!0);d.end()};mxCellRenderer.registerShape("doubleArrow", Pa);mxUtils.extend(Va,mxActor);Va.prototype.size=.1;Va.prototype.fixedSize=20;Va.prototype.redrawPath=function(d,m,x,q,u){m="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(q,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):q*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));d.moveTo(m,0);d.lineTo(q,0);d.quadTo(q-2*m,u/2,q,u);d.lineTo(m,u);d.quadTo(m-2*m,u/2,m,0);d.close();d.end()};mxCellRenderer.registerShape("dataStorage",Va); -mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.close();d.end()};mxCellRenderer.registerShape("or",Ca);mxUtils.extend(v,mxActor);v.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.quadTo(q/2,u/2,0,0);d.close();d.end()};mxCellRenderer.registerShape("xor",v);mxUtils.extend(J,mxActor);J.prototype.size=20;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(d, -m,x,q,u){m=Math.min(q/2,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(m,0),new mxPoint(q-m,0),new mxPoint(q,.8*m),new mxPoint(q,u),new mxPoint(0,u),new mxPoint(0,.8*m)],this.isRounded,x,!0);d.end()};mxCellRenderer.registerShape("loopLimit",J);mxUtils.extend(R,mxActor);R.prototype.size=.375;R.prototype.isRoundable=function(){return!0};R.prototype.redrawPath=function(d, +mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.close();d.end()};mxCellRenderer.registerShape("or",Ca);mxUtils.extend(v,mxActor);v.prototype.redrawPath=function(d,m,x,q,u){d.moveTo(0,0);d.quadTo(q,0,q,u/2);d.quadTo(q,u,0,u);d.quadTo(q/2,u/2,0,0);d.close();d.end()};mxCellRenderer.registerShape("xor",v);mxUtils.extend(I,mxActor);I.prototype.size=20;I.prototype.isRoundable=function(){return!0};I.prototype.redrawPath=function(d, +m,x,q,u){m=Math.min(q/2,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(m,0),new mxPoint(q-m,0),new mxPoint(q,.8*m),new mxPoint(q,u),new mxPoint(0,u),new mxPoint(0,.8*m)],this.isRounded,x,!0);d.end()};mxCellRenderer.registerShape("loopLimit",I);mxUtils.extend(R,mxActor);R.prototype.size=.375;R.prototype.isRoundable=function(){return!0};R.prototype.redrawPath=function(d, m,x,q,u){m=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(d,[new mxPoint(0,0),new mxPoint(q,0),new mxPoint(q,u-m),new mxPoint(q/2,u),new mxPoint(0,u-m)],this.isRounded,x,!0);d.end()};mxCellRenderer.registerShape("offPageConnector",R);mxUtils.extend(Z,mxEllipse);Z.prototype.paintVertexShape=function(d,m,x,q,u){mxEllipse.prototype.paintVertexShape.apply(this,arguments); d.begin();d.moveTo(m+q/2,x+u);d.lineTo(m+q,x+u);d.end();d.stroke()};mxCellRenderer.registerShape("tapeData",Z);mxUtils.extend(ea,mxEllipse);ea.prototype.paintVertexShape=function(d,m,x,q,u){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.setShadow(!1);d.begin();d.moveTo(m,x+u/2);d.lineTo(m+q,x+u/2);d.end();d.stroke();d.begin();d.moveTo(m+q/2,x);d.lineTo(m+q/2,x+u);d.end();d.stroke()};mxCellRenderer.registerShape("orEllipse",ea);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape= function(d,m,x,q,u){mxEllipse.prototype.paintVertexShape.apply(this,arguments);d.setShadow(!1);d.begin();d.moveTo(m+.145*q,x+.145*u);d.lineTo(m+.855*q,x+.855*u);d.end();d.stroke();d.begin();d.moveTo(m+.855*q,x+.145*u);d.lineTo(m+.145*q,x+.855*u);d.end();d.stroke()};mxCellRenderer.registerShape("sumEllipse",ka);mxUtils.extend(oa,mxRhombus);oa.prototype.paintVertexShape=function(d,m,x,q,u){mxRhombus.prototype.paintVertexShape.apply(this,arguments);d.setShadow(!1);d.begin();d.moveTo(m,x+u/2);d.lineTo(m+ @@ -3008,12 +3006,12 @@ Math.round(Math.max(0,Math.min(m.height,x.y-m.y)))},!1)]},document:function(d){r return new mxPoint(m.getCenterX(),m.y+x*m.height/2)},function(m,x){this.state.style.size=Math.max(0,Math.min(1,(x.y-m.y)/m.height*2))},!1)]},isoCube2:function(d){return[fb(d,["isoAngle"],function(m){var x=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",S.isoAngle))))*Math.PI/200;return new mxPoint(m.x,m.y+Math.min(m.width*Math.tan(x),.5*m.height))},function(m,x){this.state.style.isoAngle=Math.max(0,50*(x.y-m.y)/m.height)},!0)]},cylinder2:jb(V.prototype.size),cylinder3:jb(c.prototype.size), offPageConnector:function(d){return[fb(d,["size"],function(m){var x=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",R.prototype.size))));return new mxPoint(m.getCenterX(),m.y+(1-x)*m.height)},function(m,x){this.state.style.size=Math.max(0,Math.min(1,(m.y+m.height-x.y)/m.height))},!1)]},"mxgraph.basic.rect":function(d){var m=[Graph.createHandle(d,["size"],function(x){var q=Math.max(0,Math.min(x.width/2,x.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size)))); return new mxPoint(x.x+q,x.y+q)},function(x,q){this.state.style.size=Math.round(100*Math.max(0,Math.min(x.height/2,x.width/2,q.x-x.x)))/100})];d=Graph.createHandle(d,["indent"],function(x){var q=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(x.x+.75*x.width,x.y+q*x.height/200)},function(x,q){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(q.y-x.y)/x.height)))/100});m.push(d);return m},step:eb(ma.prototype.size,!0,null, -!0,ma.prototype.fixedSize),hexagon:eb(da.prototype.size,!0,.5,!0,da.prototype.fixedSize),curlyBracket:eb(K.prototype.size,!1),display:eb(Wa.prototype.size,!1),cube:rb(1,n.prototype.size,!1),card:rb(.5,y.prototype.size,!0),loopLimit:rb(.5,J.prototype.size,!0),trapezoid:ub(.5,N.prototype.size,N.prototype.fixedSize),parallelogram:ub(1,M.prototype.size,M.prototype.fixedSize)};Graph.createHandle=fb;Graph.handleFactory=xb;var Db=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles= +!0,ma.prototype.fixedSize),hexagon:eb(da.prototype.size,!0,.5,!0,da.prototype.fixedSize),curlyBracket:eb(K.prototype.size,!1),display:eb(Wa.prototype.size,!1),cube:rb(1,n.prototype.size,!1),card:rb(.5,y.prototype.size,!0),loopLimit:rb(.5,I.prototype.size,!0),trapezoid:ub(.5,N.prototype.size,N.prototype.fixedSize),parallelogram:ub(1,M.prototype.size,M.prototype.fixedSize)};Graph.createHandle=fb;Graph.handleFactory=xb;var Db=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles= function(){var d=Db.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var m=this.state.style.shape;null==mxCellRenderer.defaultShapes[m]&&null==mxStencilRegistry.getStencil(m)?m=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(m=mxConstants.SHAPE_SWIMLANE);m=xb[m];null==m&&null!=this.state.shape&&this.state.shape.isRoundable()&&(m=xb[mxConstants.SHAPE_RECTANGLE]);null!=m&&(m=m(this.state),null!=m&&(d=null==d?m:d.concat(m)))}return d};mxEdgeHandler.prototype.createCustomHandles= function(){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)&&(d=mxConstants.SHAPE_CONNECTOR);d=xb[d];return null!=d?d(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Bb=new mxPoint(1,0),Cb=new mxPoint(1,0),wb=mxUtils.toRadians(-30);Bb=mxUtils.getRotatedPoint(Bb,Math.cos(wb),Math.sin(wb));var Ab=mxUtils.toRadians(-150);Cb=mxUtils.getRotatedPoint(Cb,Math.cos(Ab),Math.sin(Ab));mxEdgeStyle.IsometricConnector=function(d, m,x,q,u){var B=d.view;q=null!=q&&05*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,m));x>8*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,m));x>15*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,m));return q};J.prototype.constraints=mxRectangleShape.prototype.constraints;R.prototype.constraints=mxRectangleShape.prototype.constraints; +!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(x-.5*d,1.5*d)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(x-.5*d,3.5*d))];x>5*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,m));x>8*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,m));x>15*d&&q.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,m));return q};I.prototype.constraints=mxRectangleShape.prototype.constraints;R.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)];l.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)];Ha.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, @@ -3097,14 +3095,14 @@ H)});this.addAction("rotation",function(){var F="0",H=p.getView().getState(p.get function(F){p.isFastZoomEnabled()?p.lazyZoom(!0,!0,n.buttonZoomDelay):p.zoomIn()},null,null,Editor.ctrlKey+" + (Numpad) / Alt+Mousewheel");this.addAction("zoomOut",function(F){p.isFastZoomEnabled()?p.lazyZoom(!1,!0,n.buttonZoomDelay):p.zoomOut()},null,null,Editor.ctrlKey+" - (Numpad) / Alt+Mousewheel");this.addAction("fitWindow",function(){p.pageVisible&&p.isSelectionEmpty()?p.fitPages():n.fitDiagramToWindow()},null,null,Editor.ctrlKey+"+Shift+H");this.addAction("fitPage",mxUtils.bind(this,function(){p.pageVisible? p.fitPages(1):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+J");this.addAction("fitTwoPages",mxUtils.bind(this,function(){p.pageVisible?p.fitPages(2):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+Shift+J");this.addAction("fitPageWidth",mxUtils.bind(this,function(){p.pageVisible?p.fitPages(1,!0):this.get("pageView").funct()}));this.put("customZoom",new Action(mxResources.get("custom")+"...",mxUtils.bind(this,function(){var F=new FilenameDialog(this.editorUi,parseInt(100*p.getView().getScale()), mxResources.get("apply"),mxUtils.bind(this,function(H){H=parseInt(H);!isNaN(H)&&0g?b=b.substring(0,g)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b}; -DrawioFile.prototype.checksumError=function(b,e,g,n,t,p,C,I){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{if(this.errorReportsEnabled){if(null!=e)for(var Q=0;Qc){for(Q=0;Qf.length?Graph.compress(f):null}this.getLatestVersion(mxUtils.bind(this,function(k){try{var z=null!=f?"Report":"Error",y=this.ui.getHashValueForPages(k.getShadowPages());EditorUi.logError("Checksum "+z+" in "+t+" "+V,null,this.getMode()+"."+this.getId(),"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+(null!=f?"-json_"+f:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=C?"-current_"+C:"")+(null!=I? -"-rev_"+this.ui.hashValue(I):"")+(null!=y?"-latest_"+y:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+V,action:t,label:"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(k){}}; -DrawioFile.prototype.sendErrorReport=function(b,e,g,n){try{var t=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),C=this.getCurrentUser(),I=null!=C?this.ui.hashValue(C.id):"unknown",Q=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),H=F.lastIndexOf(".");C="xml";0f.length?Graph.compress(f):null}this.getLatestVersion(mxUtils.bind(this,function(k){try{var z=null!=f?"Report":"Error",y=this.ui.getHashValueForPages(k.getShadowPages());EditorUi.logError("Checksum "+z+" in "+t+" "+V,null,this.getMode()+"."+this.getId(),"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+(null!=f?"-json_"+f:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=C?"-current_"+C:"")+(null!=J? +"-rev_"+this.ui.hashValue(J):"")+(null!=y?"-latest_"+y:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+V,action:t,label:"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(k){}}; +DrawioFile.prototype.sendErrorReport=function(b,e,g,n){try{var t=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),C=this.getCurrentUser(),J=null!=C?this.ui.hashValue(C.id):"unknown",Q=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),H=F.lastIndexOf(".");C="xml";0z?this.ui.insertPage(f[k],Math.min(k,this.ui.pages.length)):this.ui.movePage(z,k)}for(k=0;kmxUtils.indexOf(f,V[k])&&this.ui.removePage(V[k]);0<=mxUtils.indexOf(this.ui.pages,c)&&this.ui.selectPage(c,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified());0==this.ui.pages.length&& -this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{I.container.style.visibility="";I.model.endUpdate();I.cellRenderer.redraw=S;this.changeListenerEnabled=Q;g||(t.history=p,t.indexOfNextAdd=C,t.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)H!=I.mathEnabled?(this.ui.editor.updateGraphComponents(),I.refresh()):(F!=I.foldingEnabled?I.view.revalidate(): -I.view.validate(),I.sizeDidChange());null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b}; +this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{J.container.style.visibility="";J.model.endUpdate();J.cellRenderer.redraw=S;this.changeListenerEnabled=Q;g||(t.history=p,t.indexOfNextAdd=C,t.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)H!=J.mathEnabled?(this.ui.editor.updateGraphComponents(),J.refresh()):(F!=J.foldingEnabled?J.view.revalidate(): +J.view.validate(),J.sizeDidChange());null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b}; DrawioFile.prototype.save=function(b,e,g,n,t,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",t,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!t&&this.invalidChecksum)if(null!=g)g({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=g)g({message:mxResources.get("readOnly")}); else throw Error(mxResources.get("readOnly"));}catch(C){if(null!=g)g(C);else throw C;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var e=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=e&&(e.viewState=this.ui.editor.graph.getViewState(),e.needsUpdate=!0)}e=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return e}; DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};DrawioFile.prototype.saveAs=function(b,e,g){}; @@ -3205,7 +3203,7 @@ DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(e){this.handleFileError(e)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()}; DrawioFile.prototype.createSecret=function(b){var e=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(e,mxUtils.bind(this,function(g){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",g);b(e,g)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()}; DrawioFile.prototype.fileSaved=function(b,e,g,n,t,p,C){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(p,e,g,n,t,C)}catch(F){this.invalidChecksum= -this.inConflictState=!0;this.descriptorChanged();null!=n&&n(F);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,F);else{var I=this.getCurrentUser(),Q=null!=I?I.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),Q,F)}}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(F){this.descriptorChanged(),null!=n&&n(F)}}; +this.inConflictState=!0;this.descriptorChanged();null!=n&&n(F);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,F);else{var J=this.getCurrentUser(),Q=null!=J?J.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),Q,F)}}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(F){this.descriptorChanged(),null!=n&&n(F)}}; DrawioFile.prototype.autosave=function(b,e,g,n){null==this.lastAutosave&&(this.lastAutosave=Date.now());b=Date.now()-this.lastAutosavethis.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))}; @@ -3214,10 +3212,10 @@ DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,n,t,p){DrawioFile.call(this,b,e);this.title=g;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=t;this.desc=p};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.save=function(b,e,g){this.saveAs(this.title,e,g)};LocalFile.prototype.saveAs=function(b,e,g){this.saveFile(b,!1,e,g)};LocalFile.prototype.saveAs=function(b,e,g){this.saveFile(b,!1,e,g)};LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b}; LocalFile.prototype.getLatestVersion=function(b,e){null==this.fileHandle?null!=e&&e({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,e)}; -LocalFile.prototype.saveFile=function(b,e,g,n,t){b!=this.title&&(this.desc=this.fileHandle=null);this.title=b;t||this.updateFileData();var p=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var C=this.getData(),I=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),Q=mxUtils.bind(this,function(F){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=!0;var H=mxUtils.bind(this, +LocalFile.prototype.saveFile=function(b,e,g,n,t){b!=this.title&&(this.desc=this.fileHandle=null);this.title=b;t||this.updateFileData();var p=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var C=this.getData(),J=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=g&&g()}),Q=mxUtils.bind(this,function(F){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=!0;var H=mxUtils.bind(this, function(V){this.savingFile=!1;null!=n&&n({error:V})});this.saveDraft();this.fileHandle.createWritable().then(mxUtils.bind(this,function(V){this.fileHandle.getFile().then(mxUtils.bind(this,function(c){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[c],"conflict",this.desc.lastModified!=c.lastModified);this.desc.lastModified==c.lastModified?V.write(p?this.ui.base64ToBlob(F,"image/png"):F).then(mxUtils.bind(this,function(){V.close().then(mxUtils.bind(this, -function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(f){try{var k=this.desc;this.savingFile=!1;this.desc=f;this.fileSaved(C,k,I,H);this.removeDraft()}catch(z){H(z)}}),H)}),H)}),H):(this.inConflictState=!0,H())}),mxUtils.bind(this,function(c){this.invalidFileHandle=!0;H(c)}))}),H)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(F,b,p?"image/png":"text/xml",p);else if(F.lengtht;t++)for(var p=t,C=0;8>C;C++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[t]=p;Editor.updateCRC=function(l,D,P,O){for(var U=0;U>>8;return l};Editor.crc32=function(l){for(var D=-1,P=0;P>>8^Editor.crcTable[(D^l.charCodeAt(P))&255];return(D^-1)>>>0};Editor.writeGraphModelToPng=function(l,D,P,O,U){function aa(ra,qa){var Ha=pa;pa+=qa;return ra.substring(Ha,pa)}function Y(ra){ra=aa(ra,4);return ra.charCodeAt(3)+(ra.charCodeAt(2)<<8)+(ra.charCodeAt(1)<<16)+(ra.charCodeAt(0)<<24)}function ha(ra){return String.fromCharCode(ra>>24&255,ra>>16&255,ra>>8&255,ra&255)}l=l.substring(l.indexOf(",")+1);l=window.atob? atob(l):Base64.decode(l,!0);var pa=0;if(aa(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=U&&U();else if(aa(l,4),"IHDR"!=aa(l,4))null!=U&&U();else{aa(l,17);U=l.substring(0,pa);do{var sa=Y(l);if("IDAT"==aa(l,4)){U=l.substring(0,pa-8);"pHYs"==D&&"dpi"==P?(P=Math.round(O/.0254),P=ha(P)+ha(P)+String.fromCharCode(1)):P=P+String.fromCharCode(0)+("zTXt"==D?String.fromCharCode(0):"")+O;O=4294967295;O=Editor.updateCRC(O,D,0,4);O=Editor.updateCRC(O,P,0,P.length);U+=ha(P.length)+ -D+P+ha(O^4294967295);U+=l.substring(pa-8,l.length);break}U+=l.substring(pa-8,pa-4+sa);aa(l,sa);aa(l,4)}while(sa);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var I=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,D){I.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var Q=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors= +D+P+ha(O^4294967295);U+=l.substring(pa-8,l.length);break}U+=l.substring(pa-8,pa-4+sa);aa(l,sa);aa(l,4)}while(sa);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var J=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,D){J.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var Q=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors= function(){Q.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,D){var P=null;null!=l.editor.graph.getModel().getParent(D)?P=D.getId():null!=l.currentPage&&(P=l.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var F=Format.prototype.init;Format.prototype.init=function(){F.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)}; var H=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?H.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var S=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(l){l=S.apply(this,arguments);var D=this.editorUi,P=D.editor.graph; if(P.isEnabled()){var O=D.getCurrentFile();null!=O&&O.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return D.editor.autosave},function(Y){D.editor.setAutosave(Y);D.editor.autosave&&O.isModified()&&O.fileChanged()},{install:function(Y){this.listener=function(){Y(D.editor.autosave)};D.editor.addListener("autosaveChanged",this.listener)},destroy:function(){D.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&P.isEnabled()&&"undefined"!== @@ -3399,20 +3397,20 @@ font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"# function(l,D,P){if(null!=D){var O=function(aa){if(null!=aa)if(P)for(var Y=0;YJ.size&&(ka=ka.slice(0,J.size));v=ka.join(",");null!=J.countProperty&&(qa.setCellStyles(J.countProperty,ka.length,qa.getSelectionCells()),Z.push(J.countProperty),ea.push(ka.length))}qa.setCellStyles(Ca,v,qa.getSelectionCells());Z.push(Ca);ea.push(v);if(null!=J.dependentProps)for(Ca=0;Cav)ta=ta.slice(0,v);else for(var xa=ta.length;xa< -v;xa++)ta.push(ua);ta=ta.join(",");qa.setCellStyles(J.dependentProps[Ca],ta,qa.getSelectionCells());Z.push(J.dependentProps[Ca]);ea.push(ta)}if("function"==typeof J.onChange)J.onChange(qa,v);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Z,"values",ea,"cells",qa.getSelectionCells()))}finally{qa.getModel().endUpdate()}}function U(Ca,v,J){var R=mxUtils.getOffset(l,!0),Z=mxUtils.getOffset(Ca,!0);v.style.position="absolute";v.style.left=Z.x-R.x+"px";v.style.top=Z.y-R.y+"px";v.style.width= -Ca.offsetWidth+"px";v.style.height=Ca.offsetHeight-(J?4:0)+"px";v.style.zIndex=5}function aa(Ca,v,J){var R=document.createElement("div");R.style.width="32px";R.style.height="4px";R.style.margin="2px";R.style.border="1px solid black";R.style.background=v&&"none"!=v?v:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(ra,function(Z){this.editorUi.pickColor(v,function(ea){R.style.background="none"==ea?"url('"+Dialog.prototype.noColorImage+"')":ea;O(Ca,ea,J)});mxEvent.consume(Z)})); -btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(R);return btn}function Y(Ca,v,J,R,Z,ea,ka){null!=v&&(v=v.split(","),Ha.push({name:Ca,values:v,type:J,defVal:R,countProperty:Z,parentRow:ea,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",mxUtils.bind(ra,function(oa){for(var ua=ea,ta=0;null!=ua.nextSibling;)if(ua.nextSibling.getAttribute("data-pName")==Ca)ua=ua.nextSibling,ta++;else break;var xa={type:J,parentRow:ea,index:ta,isDeletable:!0,defVal:R,countProperty:Z}; -ta=sa(Ca,"",xa,0==ta%2,ka);O(Ca,R,xa);ua.parentNode.insertBefore(ta,ua.nextSibling);mxEvent.consume(oa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ha(Ca,v,J,R,Z,ea,ka){if(0J.max&&(Na=J.max);Na=encodeURIComponent(("int"==ka?parseInt(Na):Na)+"");O(Ca,Na,J)}var Aa=document.createElement("input");U(ua,Aa,!0);Aa.value=decodeURIComponent(v);Aa.className="gePropEditor";"int"!=ka&&"float"!=ka||J.allowAuto||(Aa.type="number",Aa.step="int"==ka?"1":"any",null!=J.min&&(Aa.min=parseFloat(J.min)),null!=J.max&&(Aa.max=parseFloat(J.max)));l.appendChild(Aa);mxEvent.addListener(Aa,"keypress", -function(Na){13==Na.keyCode&&xa()});Aa.focus();mxEvent.addListener(Aa,"blur",function(){xa()})})));J.isDeletable&&(Z=mxUtils.button("-",mxUtils.bind(ra,function(xa){O(Ca,"",J,J.index);mxEvent.consume(xa)})),Z.style.height="16px",Z.style.width="25px",Z.style.float="right",Z.className="geColorBtn",ua.appendChild(Z));oa.appendChild(ua);return oa}var ra=this,qa=this.editorUi.editor.graph,Ha=[];l.style.position="relative";l.style.padding="0";var za=document.createElement("table");za.className="geProperties"; +1==D.cells.length?this.addActions(l,["copyStyle","pasteStyle"]):1<=D.cells.length&&this.addActions(l,["pasteStyle","pasteData"]);c.apply(this,arguments);return l};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(l,D,P){function O(Ca,v,I,R){qa.getModel().beginUpdate();try{var Z=[],ea=[];if(null!=I.index){for(var ka=[],oa=I.parentRow.nextSibling;oa&&oa.getAttribute("data-pName")==Ca;)ka.push(oa.getAttribute("data-pValue")),oa=oa.nextSibling;I.indexI.size&&(ka=ka.slice(0,I.size));v=ka.join(",");null!=I.countProperty&&(qa.setCellStyles(I.countProperty,ka.length,qa.getSelectionCells()),Z.push(I.countProperty),ea.push(ka.length))}qa.setCellStyles(Ca,v,qa.getSelectionCells());Z.push(Ca);ea.push(v);if(null!=I.dependentProps)for(Ca=0;Cav)ta=ta.slice(0,v);else for(var xa=ta.length;xa< +v;xa++)ta.push(ua);ta=ta.join(",");qa.setCellStyles(I.dependentProps[Ca],ta,qa.getSelectionCells());Z.push(I.dependentProps[Ca]);ea.push(ta)}if("function"==typeof I.onChange)I.onChange(qa,v);ra.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Z,"values",ea,"cells",qa.getSelectionCells()))}finally{qa.getModel().endUpdate()}}function U(Ca,v,I){var R=mxUtils.getOffset(l,!0),Z=mxUtils.getOffset(Ca,!0);v.style.position="absolute";v.style.left=Z.x-R.x+"px";v.style.top=Z.y-R.y+"px";v.style.width= +Ca.offsetWidth+"px";v.style.height=Ca.offsetHeight-(I?4:0)+"px";v.style.zIndex=5}function aa(Ca,v,I){var R=document.createElement("div");R.style.width="32px";R.style.height="4px";R.style.margin="2px";R.style.border="1px solid black";R.style.background=v&&"none"!=v?v:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(ra,function(Z){this.editorUi.pickColor(v,function(ea){R.style.background="none"==ea?"url('"+Dialog.prototype.noColorImage+"')":ea;O(Ca,ea,I)});mxEvent.consume(Z)})); +btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(R);return btn}function Y(Ca,v,I,R,Z,ea,ka){null!=v&&(v=v.split(","),Ha.push({name:Ca,values:v,type:I,defVal:R,countProperty:Z,parentRow:ea,isDeletable:!0,flipBkg:ka}));btn=mxUtils.button("+",mxUtils.bind(ra,function(oa){for(var ua=ea,ta=0;null!=ua.nextSibling;)if(ua.nextSibling.getAttribute("data-pName")==Ca)ua=ua.nextSibling,ta++;else break;var xa={type:I,parentRow:ea,index:ta,isDeletable:!0,defVal:R,countProperty:Z}; +ta=sa(Ca,"",xa,0==ta%2,ka);O(Ca,R,xa);ua.parentNode.insertBefore(ta,ua.nextSibling);mxEvent.consume(oa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ha(Ca,v,I,R,Z,ea,ka){if(0I.max&&(Na=I.max);Na=encodeURIComponent(("int"==ka?parseInt(Na):Na)+"");O(Ca,Na,I)}var Aa=document.createElement("input");U(ua,Aa,!0);Aa.value=decodeURIComponent(v);Aa.className="gePropEditor";"int"!=ka&&"float"!=ka||I.allowAuto||(Aa.type="number",Aa.step="int"==ka?"1":"any",null!=I.min&&(Aa.min=parseFloat(I.min)),null!=I.max&&(Aa.max=parseFloat(I.max)));l.appendChild(Aa);mxEvent.addListener(Aa,"keypress", +function(Na){13==Na.keyCode&&xa()});Aa.focus();mxEvent.addListener(Aa,"blur",function(){xa()})})));I.isDeletable&&(Z=mxUtils.button("-",mxUtils.bind(ra,function(xa){O(Ca,"",I,I.index);mxEvent.consume(xa)})),Z.style.height="16px",Z.style.width="25px",Z.style.float="right",Z.className="geColorBtn",ua.appendChild(Z));oa.appendChild(ua);return oa}var ra=this,qa=this.editorUi.editor.graph,Ha=[];l.style.position="relative";l.style.padding="0";var za=document.createElement("table");za.className="geProperties"; za.style.whiteSpace="nowrap";za.style.width="100%";var ya=document.createElement("tr");ya.className="gePropHeader";var La=document.createElement("th");La.className="gePropHeaderCell";var wa=document.createElement("img");wa.src=Sidebar.prototype.expandedImage;wa.style.verticalAlign="middle";La.appendChild(wa);mxUtils.write(La,mxResources.get("property"));ya.style.cursor="pointer";var Da=function(){var Ca=za.querySelectorAll(".gePropNonHeaderRow");if(ra.editorUi.propertiesCollapsed){wa.src=Sidebar.prototype.collapsedImage; -var v="none";for(var J=l.childNodes.length-1;0<=J;J--)try{var R=l.childNodes[J],Z=R.nodeName.toUpperCase();"INPUT"!=Z&&"SELECT"!=Z||l.removeChild(R)}catch(ea){}}else wa.src=Sidebar.prototype.expandedImage,v="";for(J=0;J'),wb.writeln("@media print {"),wb.writeln(".MathJax svg { shape-rendering: crispEdges; }"),wb.writeln("}"),wb.writeln(""));null!=l.editor.fontCss&&(wb.writeln('")); for(var Ab=Ua.getCustomFonts(),zb=0;zb'):(wb.writeln('"))}};if(Editor.enableCssDarkMode){var Bb=hb.getBackgroundImage;hb.getBackgroundImage= function(){return U.adaptBackgroundPage(Bb.apply(this,arguments))}}if("undefined"!==typeof MathJax){var Cb=hb.renderPage;hb.renderPage=function(wb,Ab,zb,d,m,x){var q=mxClient.NO_FO,u=Cb.apply(this,arguments);mxClient.NO_FO=q;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:u.className="geDisableMathJax";return u}}eb=null;ub=U.shapeForegroundColor;fb=U.shapeBackgroundColor;mb=U.enableFlowAnimation;U.enableFlowAnimation=!1;null!=U.themes&&"darkTheme"==U.defaultThemeName&&(eb=U.stylesheet, U.stylesheet=U.getDefaultStylesheet(),U.shapeForegroundColor="#000000",U.shapeBackgroundColor="#ffffff",U.refresh());hb.open(null,null,ob,!0,ib);U.enableFlowAnimation=mb;null!=eb&&(U.shapeForegroundColor=ub,U.shapeBackgroundColor=fb,U.stylesheet=eb,U.refresh())}else{mb=Ua.background;if(null==mb||""==mb||mb==mxConstants.NONE)mb="#ffffff";hb.backgroundColor=mb;hb.autoOrigin=fb;hb.appendGraph(Ua,nb,eb,ub,ob,!0,ib);ob=Ua.getCustomFonts();if(null!=hb.wnd)for(eb=0;eb'):(hb.wnd.document.writeln('"))}kb&&(Ua.useCssTransforms=kb,Ua.currentTranslate=vb,Ua.currentScale=yb,Ua.view.translate=tb,Ua.view.scale=jb);return hb}var oa=parseInt(Z.value)/ -100;isNaN(oa)&&(oa=1,Z.value="100 %");mxClient.IS_SF&&(oa*=.75);var ua=null,ta=U.shapeForegroundColor,xa=U.shapeBackgroundColor;null!=U.themes&&"darkTheme"==U.defaultThemeName&&(ua=U.stylesheet,U.stylesheet=U.getDefaultStylesheet(),U.shapeForegroundColor="#000000",U.shapeBackgroundColor="#ffffff",U.refresh());var Aa=qa.value,Na=Ha.value,Ra=!sa.checked,Wa=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(l,sa.checked,Aa,Na,Da.checked,v.value,J.value,parseInt(wa.value)/100,parseInt(Z.value)/ +100;isNaN(oa)&&(oa=1,Z.value="100 %");mxClient.IS_SF&&(oa*=.75);var ua=null,ta=U.shapeForegroundColor,xa=U.shapeBackgroundColor;null!=U.themes&&"darkTheme"==U.defaultThemeName&&(ua=U.stylesheet,U.stylesheet=U.getDefaultStylesheet(),U.shapeForegroundColor="#000000",U.shapeBackgroundColor="#ffffff",U.refresh());var Aa=qa.value,Na=Ha.value,Ra=!sa.checked,Wa=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(l,sa.checked,Aa,Na,Da.checked,v.value,I.value,parseInt(wa.value)/100,parseInt(Z.value)/ 100,R.get());else{Ra&&(Ra=za.checked||Aa==pa&&Na==pa);if(!Ra&&null!=l.pages&&l.pages.length){var Ma=0;Ra=l.pages.length-1;sa.checked||(Ma=parseInt(Aa)-1,Ra=parseInt(Na)-1);for(var bb=Ma;bb<=Ra;bb++){var Qa=l.pages[bb];Aa=Qa==l.currentPage?U:null;if(null==Aa){Aa=l.createTemporaryGraph(U.stylesheet);Aa.shapeForegroundColor=U.shapeForegroundColor;Aa.shapeBackgroundColor=U.shapeBackgroundColor;Na=!0;Ma=!1;var lb=null,cb=null;null==Qa.viewState&&null==Qa.root&&l.updatePageRoot(Qa);null!=Qa.viewState&& (Na=Qa.viewState.pageVisible,Ma=Qa.viewState.mathEnabled,lb=Qa.viewState.background,cb=Qa.viewState.backgroundImage,Aa.extFonts=Qa.viewState.extFonts);null!=cb&&null!=cb.originalSrc&&(cb=l.createImageForPageLink(cb.originalSrc,Qa));Aa.background=lb;Aa.backgroundImage=null!=cb?new mxImage(cb.src,cb.width,cb.height,cb.x,cb.y):null;Aa.pageVisible=Na;Aa.mathEnabled=Ma;var gb=Aa.getGraphBounds;Aa.getGraphBounds=function(){var Ua=gb.apply(this,arguments),hb=this.backgroundImage;if(null!=hb&&null!=hb.width&& null!=hb.height){var ob=this.view.translate,ib=this.view.scale;Ua=mxRectangle.fromRectangle(Ua);Ua.add(new mxRectangle((ob.x+hb.x)*ib,(ob.y+hb.y)*ib,hb.width*ib,hb.height*ib))}return Ua};var qb=Aa.getGlobalVariable;Aa.getGlobalVariable=function(Ua){return"page"==Ua?Qa.getName():"pagenumber"==Ua?bb+1:"pagecount"==Ua?null!=l.pages?l.pages.length:1:qb.apply(this,arguments)};document.body.appendChild(Aa.container);l.updatePageRoot(Qa);Aa.model.setRoot(Qa.root)}Wa=ka(Aa,Wa,bb!=Ra,Qa.getId());Aa!=U&&Aa.container.parentNode.removeChild(Aa.container)}}else Wa= @@ -3517,7 +3515,7 @@ pa;break}qa.setAttribute("max",ha);Ha.setAttribute("max",ha);l.isPagesEnabled()? "pages-printdialog"),za.style.marginBottom="8px",Y.appendChild(za));D=document.createElement("span");mxUtils.write(D,mxResources.get("selectionOnly"));za.parentNode.appendChild(D);1==ha&&mxUtils.br(za.parentNode);var La=document.createElement("input");La.style.marginRight="8px";La.setAttribute("value","adjust");La.setAttribute("type","radio");La.setAttribute("name","printZoom");ya.appendChild(La);D=document.createElement("span");mxUtils.write(D,mxResources.get("adjustTo"));ya.appendChild(D);var wa= document.createElement("input");wa.style.cssText="margin:0 8px 0 8px;";wa.setAttribute("value","100 %");wa.style.width="50px";ya.appendChild(wa);mxEvent.addListener(wa,"focus",function(){La.checked=!0});aa.appendChild(ya);Y=Y.cloneNode(!1);var Da=La.cloneNode(!0);Da.setAttribute("value","fit");La.setAttribute("checked","checked");D=document.createElement("div");D.style.cssText="display:inline-block;vertical-align:top;padding-top:2px;";D.appendChild(Da);Y.appendChild(D);ya=document.createElement("table"); ya.style.display="inline-block";var Ja=document.createElement("tbody"),Oa=document.createElement("tr"),Fa=Oa.cloneNode(!0),Ba=document.createElement("td"),Sa=Ba.cloneNode(!0),$a=Ba.cloneNode(!0),Pa=Ba.cloneNode(!0),Va=Ba.cloneNode(!0),Ca=Ba.cloneNode(!0);Ba.style.textAlign="right";Pa.style.textAlign="right";mxUtils.write(Ba,mxResources.get("fitTo"));var v=document.createElement("input");v.style.cssText="margin:0 8px 0 8px;";v.setAttribute("value","1");v.setAttribute("min","1");v.setAttribute("type", -"number");v.style.width="40px";Sa.appendChild(v);D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsAcross"));$a.appendChild(D);mxUtils.write(Pa,mxResources.get("fitToBy"));var J=v.cloneNode(!0);Va.appendChild(J);mxEvent.addListener(v,"focus",function(){Da.checked=!0});mxEvent.addListener(J,"focus",function(){Da.checked=!0});D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsDown"));Ca.appendChild(D);Oa.appendChild(Ba);Oa.appendChild(Sa);Oa.appendChild($a); +"number");v.style.width="40px";Sa.appendChild(v);D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsAcross"));$a.appendChild(D);mxUtils.write(Pa,mxResources.get("fitToBy"));var I=v.cloneNode(!0);Va.appendChild(I);mxEvent.addListener(v,"focus",function(){Da.checked=!0});mxEvent.addListener(I,"focus",function(){Da.checked=!0});D=document.createElement("span");mxUtils.write(D,mxResources.get("fitToSheetsDown"));Ca.appendChild(D);Oa.appendChild(Ba);Oa.appendChild(Sa);Oa.appendChild($a); Fa.appendChild(Pa);Fa.appendChild(Va);Fa.appendChild(Ca);Ja.appendChild(Oa);Ja.appendChild(Fa);ya.appendChild(Ja);Y.appendChild(ya);aa.appendChild(Y);Y=document.createElement("div");D=document.createElement("div");D.style.fontWeight="bold";D.style.marginBottom="12px";mxUtils.write(D,mxResources.get("paperSize"));Y.appendChild(D);D=document.createElement("div");D.style.marginBottom="12px";var R=PageSetupDialog.addPageFormatPanel(D,"printdialog",l.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT); Y.appendChild(D);D=document.createElement("span");mxUtils.write(D,mxResources.get("pageScale"));Y.appendChild(D);var Z=document.createElement("input");Z.style.cssText="margin:0 8px 0 8px;";Z.setAttribute("value","100 %");Z.style.width="60px";Y.appendChild(Z);aa.appendChild(Y);D=document.createElement("div");D.style.cssText="text-align:right;margin:48px 0 0 0;";Y=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});Y.className="geBtn";l.editor.cancelFirst&&D.appendChild(Y);l.isOffline()|| (ya=mxUtils.button(mxResources.get("help"),function(){U.openLink("https://www.drawio.com/doc/faq/print-diagram")}),ya.className="geBtn",D.appendChild(ya));PrintDialog.previewEnabled&&(ya=mxUtils.button(mxResources.get("preview"),function(){l.hideDialog();O(!1)}),ya.className="geBtn",D.appendChild(ya));ya=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){l.hideDialog();O(!0)});ya.className="geBtn gePrimaryBtn";D.appendChild(ya);l.editor.cancelFirst||D.appendChild(Y); @@ -3525,7 +3523,7 @@ aa.appendChild(D);this.container=aa};var X=ChangePageSetup.prototype.execute;Cha null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else X.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}; Editor.prototype.useCanvasForExport=!1;try{var W=document.createElement("canvas"),ba=new Image;ba.onload=function(){try{W.getContext("2d").drawImage(ba,0,0);var l=W.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=l&&6
')))}catch(l){}Editor.prototype.useCanvasForExport= !1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,n){n.ui=e.ui;return g};b.afterDecode=function(e,g,n){n.previousColor=n.color;n.previousImage=n.image;n.previousFormat=n.format;null!=n.foldingEnabled&&(n.foldingEnabled=!n.foldingEnabled);null!=n.mathEnabled&&(n.mathEnabled=!n.mathEnabled);null!=n.shadowVisible&&(n.shadowVisible=!n.shadowVisible);return n};mxCodecRegistry.register(b)})(); -(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,n){n.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.4";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= +(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,n){n.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="23.1.5";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&& null!=window.process.versions.electron;EditorUi.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" "); EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}}; @@ -3789,7 +3787,7 @@ c[X].type.substring(0,9)&&"image/"===c[X].type.substring(0,6)&&c[X].size>da){ma= null!=sa&&(pa=pa.concat(sa))}}finally{ba.getModel().endUpdate()}}A(pa)}}),aa=0;aa(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()): -this.formatWindow.window.setVisible(!1)}};var I=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):I.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,z=mxUtils.bind(this,function(){this.hsplitPosition=y;this.refresh(); +this.formatWindow.window.setVisible(!1)}};var J=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var f=this.formatWindow;null!=f?f.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):J.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){if(this.isShapesPanelVisible()!=c){var f=EditorUi.prototype.hsplitPosition;0==f&&(f=this.defaultSidebarWidth);var k=this.hsplitPosition,z=mxUtils.bind(this,function(){this.hsplitPosition=y;this.refresh(); this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),y=c?f:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==y?"translateX(0)":"translateX(-100%)");0!=y&&z();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==y?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin", "top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==y&&z()}),300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0mxUtils.indexOf(A,Ca)&&A.push(Ca),N.fireEvent(new mxEventObject("cellsInserted","cells",[Ca])));k=null!= -Ca;Ca=J;if(!k)for($a=0;$amxUtils.indexOf(A,Ca)&&A.push(Ca),N.fireEvent(new mxEventObject("cellsInserted","cells",[Ca])));k=null!= +Ca;Ca=I;if(!k)for($a=0;$a"===z.substring(0,12);z=""===z.substring(0,11);(y||z)&&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:""===f.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})(); -var CommentsWindow=function(b,e,g,n,t,p){function C(){for(var T=A.getElementsByTagName("div"),ca=0,la=0;la'; -N.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(N,"click",function(T){function ca(){I(la,ma,function(da){F(ma);b.addComment(da,function(X){da.id=X;ja.push(da);S(ma)},function(X){H(ma);ca();b.handleError(X,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var la=b.newComment("",b.getCurrentUser()),ma=V(la,ja,null,0);ca();T.preventDefault();mxEvent.consume(T)});M.appendChild(N)}N=y.cloneNode();N.innerHTML='';N.setAttribute("title",mxResources.get("showResolved"));N.className="geButton";var K=!1;mxEvent.addListener(N,"click",function(T){this.className=(K=!K)?"geButton geCheckedBtn":"geButton";fa();T.preventDefault();mxEvent.consume(T)});M.appendChild(N);b.commentsRefreshNeeded()&&(N=y.cloneNode(),N.innerHTML='',N.setAttribute("title",mxResources.get("refresh")), N.className="geButton",mxEvent.addListener(N,"click",function(T){fa();T.preventDefault();mxEvent.consume(T)}),M.appendChild(N));b.commentsSaveNeeded()&&(y=y.cloneNode(),y.innerHTML='',y.setAttribute("title",mxResources.get("save")),y.className="geButton geAdaptiveAsset",mxEvent.addListener(y,"click",function(T){p();T.preventDefault();mxEvent.consume(T)}),M.appendChild(y));z.appendChild(M);var ja=[],fa=mxUtils.bind(this,function(){this.hasError= !1;if(null!=k)try{k.div=k.div.cloneNode(!0);var T=k.div.querySelector(".geCommentEditTxtArea"),ca=k.div.querySelector(".geCommentEditBtns");k.comment.content=T.value;T.parentNode.removeChild(T);ca.parentNode.removeChild(ca)}catch(la){b.handleError(la)}A.innerHTML='
'+mxUtils.htmlEntities(mxResources.get("loading"))+"...
";f=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(la){function ma(da){if(null!= -da){da.sort(function(W,ba){return new Date(W.modifiedDate)-new Date(ba.modifiedDate)});for(var X=0;X"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&F.appendChild(p);var f=mxUtils.button(t||mxResources.get("ok"),function(){b.hideDialog();null!=g&&g(c.checked)});F.appendChild(f);null!=C?(f.innerHTML=C+ +C,J,Q,F,H){var S=document.createElement("div");S.style.textAlign="center";H=null!=H?H:44;var V=document.createElement("div");V.style.padding="6px";V.style.overflow="auto";V.style.maxHeight=H+"px";V.style.lineHeight="1.2em";mxUtils.write(V,e);S.appendChild(V);null!=F&&(V=document.createElement("div"),V.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",F),V.appendChild(e),S.appendChild(V));F=document.createElement("div");F.style.textAlign="center";F.style.whiteSpace="nowrap"; +var c=document.createElement("input");c.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=n&&n(c.checked)});p.className="geBtn";null!=J&&(p.innerHTML=J+"
"+p.innerHTML,p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&F.appendChild(p);var f=mxUtils.button(t||mxResources.get("ok"),function(){b.hideDialog();null!=g&&g(c.checked)});F.appendChild(f);null!=C?(f.innerHTML=C+ "
"+f.innerHTML+"
",f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";b.editor.cancelFirst||F.appendChild(p);S.appendChild(F);Q?(F.style.marginTop="10px",V=document.createElement("p"),V.style.marginTop="20px",V.style.marginBottom="0px",V.appendChild(c),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),V.appendChild(t),S.appendChild(V),mxEvent.addListener(t, "click",function(k){c.checked=!c.checked;mxEvent.consume(k)})):F.style.marginTop="12px";this.init=function(){f.focus()};this.container=S},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.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)};function RenamePage(b,e,g){this.ui=b;this.page=e;this.previous=this.name=g}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"))}; @@ -4085,18 +4083,18 @@ ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,e=this.ui EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};EditorUi.prototype.getPageIndex=function(b){var e=null;if(null!=this.pages&&null!=b)for(var g=0;gg&&null!=this.tabScroller.children[g]&&(n!=this.lastScrollPage||e)&&(this.tabScroller.children[g].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[g].className="geTab gePageTab geActivePage",this.lastScrollPage=n)}; EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var n=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(n.setViewState(e),this.editor.updateGraphComponents(),n.view.revalidate(),n.sizeDidChange()),n.container.scrollLeft=n.view.translate.x*n.view.scale+e.scrollLeft,n.container.scrollTop=n.view.translate.y*n.view.scale+e.scrollTop,n.restoreSelection(g))}; -Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),t=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),C=this.parseBackgroundImage(b.getAttribute("backgroundImage")),I=b.getAttribute("extFonts");if(I)try{I=I.split("|").map(function(Q){Q=Q.split("^");return{name:Q[0],url:Q[1]}})}catch(Q){console.log("ExtFonts format error: "+Q.message)}return{gridEnabled:"0"!=b.getAttribute("grid"), +Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),g=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),t=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),C=this.parseBackgroundImage(b.getAttribute("backgroundImage")),J=b.getAttribute("extFonts");if(J)try{J=J.split("|").map(function(Q){Q=Q.split("^");return{name:Q[0],url:Q[1]}})}catch(Q){console.log("ExtFonts format error: "+Q.message)}return{gridEnabled:"0"!=b.getAttribute("grid"), gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=e?"0"!=e:this.defaultPageVisible,background:null!=p&&0=this.pages.length&&(n=this.insertPage(),e.model.execute(new RenamePage(this,n,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,n))}finally{e.model.endUpdate()}}}catch(t){this.handleError(t)}return b}; -EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var t=b.node.cloneNode(!1);t.removeAttribute("id");var p={},C=n.createCellLookup([n.model.root]);g=new DiagramPage(t);g.root=n.cloneCell(n.model.root,null,p);var I=new mxGraphModel;I.prefix=Editor.guid()+"-";I.setRoot(g.root);n.updateCustomLinks(n.createCellMapping(p,C),[g.root]);g.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(g); +EditorUi.prototype.duplicatePage=function(b,e){var g=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var t=b.node.cloneNode(!1);t.removeAttribute("id");var p={},C=n.createCellLookup([n.model.root]);g=new DiagramPage(t);g.root=n.cloneCell(n.model.root,null,p);var J=new mxGraphModel;J.prefix=Editor.guid()+"-";J.setRoot(g.root);n.updateCustomLinks(n.createCellMapping(p,C),[g.root]);g.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(g); g.viewState.scale=1;delete g.viewState.scrollLeft;delete g.viewState.scrollTop;delete g.viewState.currentRoot;delete g.viewState.defaultParent;g.setName(e);g=this.insertPage(g,mxUtils.indexOf(this.pages,b)+1)}}catch(Q){this.handleError(Q)}return g};EditorUi.prototype.initDiagramNode=function(b,e){null==e&&(e=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,e);mxUtils.setTextContent(b.node,Graph.compressNode(e))}; EditorUi.prototype.clonePages=function(b){for(var e=[],g=[],n=0;nmxUtils.indexOf(EditorUi.transientViewStateProperties,t)?p:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,n));return n}; b.beforeDecode=function(e,g,n){n.ui=e.ui;n.relatedPage=n.ui.getPageById(g.getAttribute("relatedPage"));if(null==n.relatedPage){var t=g.ownerDocument.createElement("diagram");t.setAttribute("id",g.getAttribute("relatedPage"));t.setAttribute("name",g.getAttribute("name"));n.relatedPage=new DiagramPage(t);t=g.getAttribute("viewState");null!=t&&(n.relatedPage.viewState=JSON.parse(t),g.removeAttribute("viewState"));g=g.cloneNode(!0);t=g.firstChild;if(null!=t)for(n.relatedPage.root=e.decodeCell(t,!1),n= -t.nextSibling,t.parentNode.removeChild(t),t=n;null!=t;){n=t.nextSibling;if(t.nodeType==mxConstants.NODETYPE_ELEMENT){var p=t.getAttribute("id");null==e.lookup(p)&&e.decodeCell(t)}t.parentNode.removeChild(t);t=n}}return g};b.afterDecode=function(e,g,n){n.index=n.previousIndex;return n};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(n,t,p,C,I){t=null!=t?t:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),n));this.stopEditing();this.model.beginUpdate();try{for(var Q=p.slice(),F=0;Fda.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function Q(da,X){X=null!=X?X:!0;f.model.beginUpdate();try{var W=f.model.getParent(da),ba=f.getIncomingTreeEdges(da),l=f.cloneCells([ba[0],da]);f.model.setTerminal(l[0], -f.model.getTerminal(ba[0],!0),!0);var D=I(da),P=W.geometry;D==mxConstants.DIRECTION_SOUTH||D==mxConstants.DIRECTION_NORTH?l[1].geometry.x+=X?da.geometry.width+10:-l[1].geometry.width-10:l[1].geometry.y+=X?da.geometry.height+10:-l[1].geometry.height-10;f.view.currentRoot!=W&&(l[1].geometry.x-=P.x,l[1].geometry.y-=P.y);var O=f.view.getState(da),U=f.view.scale;if(null!=O){var aa=mxRectangle.fromRectangle(O);D==mxConstants.DIRECTION_SOUTH||D==mxConstants.DIRECTION_NORTH?aa.x+=(X?da.geometry.width+10: --l[1].geometry.width-10)*U:aa.y+=(X?da.geometry.height+10:-l[1].geometry.height-10)*U;var Y=f.getOutgoingTreeEdges(f.model.getTerminal(ba[0],!0));if(null!=Y){for(var ha=D==mxConstants.DIRECTION_SOUTH||D==mxConstants.DIRECTION_NORTH,pa=P=ba=0;pa=Math.max(D.x,W.x)||X&&Math.min(D.y+D.height,W.y+W.height)>=Math.max(D.y,W.y))&&ba.push(D)}ba.sort(function(P,O){return X?P.x+P.width-O.x-O.width:P.y+P.height-O.y-O.height})}return ba}function V(da,X){var W=I(da), +-P.y+10);return f.addCells(D,W)}finally{f.model.endUpdate()}}function S(da,X,W){da=f.getOutgoingTreeEdges(da);W=f.view.getState(W);var ba=[];if(null!=W&&null!=da){for(var l=0;l=Math.max(D.x,W.x)||X&&Math.min(D.y+D.height,W.y+W.height)>=Math.max(D.y,W.y))&&ba.push(D)}ba.sort(function(P,O){return X?P.x+P.width-O.x-O.width:P.y+P.height-O.y-O.height})}return ba}function V(da,X){var W=J(da), ba=X==mxConstants.DIRECTION_EAST||X==mxConstants.DIRECTION_WEST;(W==mxConstants.DIRECTION_EAST||W==mxConstants.DIRECTION_WEST)==ba&&W!=X?c.actions.get("selectParent").funct():W==X?(X=f.getOutgoingTreeEdges(da),null!=X&&0mxUtils.indexOf(X,ba)&&X.push(ba);(null==ba||l)&&0>mxUtils.indexOf(X,W)&&X.push(W);return null==ba||l});return X};var T=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){T.apply(this,arguments);(t(this.state.cell)|| n(this.state.cell))&&!C(this.state.cell)&&0this.state.width?10:0)+2+"px",this.moveHandle.style.top= this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var la=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(da){la.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=da?"":"none")};var ma=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(da,X){ma.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!== typeof Sidebar){var g=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var n=g.apply(this,arguments),t=this.graph;return n.concat([this.addEntry("tree container",function(){var p=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");p.vertex=!0;var C=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};'); -C.vertex=!0;var I=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);I.insertEdge(Q,!1);p.insert(Q);p.insert(C);p.insert(I); +C.vertex=!0;var J=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);J.insertEdge(Q,!1);p.insert(Q);p.insert(C);p.insert(J); return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var p=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");p.vertex=!0;var C=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};'); -C.vertex=!0;var I=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};');I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"); -Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);I.insertEdge(Q,!1);var F=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};'); +C.vertex=!0;var J=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};');J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"); +Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);J.insertEdge(Q,!1);var F=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};'); F.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),Q.style);H.geometry.relative=!0;H.edge=!0;C.insertEdge(H,!0);F.insertEdge(H,!1);var S=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};'); S.vertex=!0;var V=new mxCell("",new mxGeometry(0,0,0,0),Q.style);V.geometry.relative=!0;V.edge=!0;C.insertEdge(V,!0);S.insertEdge(V,!1);var c=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};'); -c.vertex=!0;var f=new mxCell("",new mxGeometry(0,0,0,0),Q.style);f.geometry.relative=!0;f.edge=!0;C.insertEdge(f,!0);c.insertEdge(f,!1);p.insert(Q);p.insert(H);p.insert(V);p.insert(f);p.insert(C);p.insert(I);p.insert(F);p.insert(S);p.insert(c);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var p=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),Q.style);f.geometry.relative=!0;f.edge=!0;C.insertEdge(f,!0);c.insertEdge(f,!1);p.insert(Q);p.insert(H);p.insert(V);p.insert(f);p.insert(C);p.insert(J);p.insert(F);p.insert(S);p.insert(c);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var p=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;'); p.vertex=!0;return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var p=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};'); p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");C.geometry.setTerminalPoint(new mxPoint(-40,40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);return sb.createVertexTemplateFromCells([p,C],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var p=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};');p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;"); C.geometry.setTerminalPoint(new mxPoint(-40,40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);return sb.createVertexTemplateFromCells([p,C],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree orgchart organization division",function(){var p=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');p.vertex=!0;var C=new mxCell("Organization",new mxGeometry(80, -40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(C,"treeRoot","1");C.vertex=!0;var I=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;"); -Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);I.insertEdge(Q,!1);var F=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');F.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");H.geometry.relative= -!0;H.edge=!0;C.insertEdge(H,!0);F.insertEdge(H,!1);p.insert(Q);p.insert(H);p.insert(C);p.insert(I);p.insert(F);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree root",function(){var p=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(p,"treeRoot","1");p.vertex=!0;return sb.createVertexTemplateFromCells([p], +40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(C,"treeRoot","1");C.vertex=!0;var J=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;"); +Q.geometry.relative=!0;Q.edge=!0;C.insertEdge(Q,!0);J.insertEdge(Q,!1);var F=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');F.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");H.geometry.relative= +!0;H.edge=!0;C.insertEdge(H,!0);F.insertEdge(H,!1);p.insert(Q);p.insert(H);p.insert(C);p.insert(J);p.insert(F);return sb.createVertexTemplateFromCells([p],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree root",function(){var p=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');t.setAttributeForCell(p,"treeRoot","1");p.vertex=!0;return sb.createVertexTemplateFromCells([p], p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree division",function(){var p=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;"); C.geometry.setTerminalPoint(new mxPoint(0,0),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);return sb.createVertexTemplateFromCells([p,C],p.geometry.width,p.geometry.height,p.value)}),this.addEntry("tree sub sections",function(){var p=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");p.vertex=!0;var C=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;"); -C.geometry.setTerminalPoint(new mxPoint(110,-40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);var I=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");I.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),C.style);Q.geometry.setTerminalPoint(new mxPoint(110,-40),!0);Q.geometry.relative=!0;Q.edge=!0;I.insertEdge(Q,!1);return sb.createVertexTemplateFromCells([C,Q,p,I],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows; +C.geometry.setTerminalPoint(new mxPoint(110,-40),!0);C.geometry.relative=!0;C.edge=!0;p.insertEdge(C,!1);var J=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");J.vertex=!0;var Q=new mxCell("",new mxGeometry(0,0,0,0),C.style);Q.geometry.setTerminalPoint(new mxPoint(110,-40),!0);Q.geometry.relative=!0;Q.edge=!0;J.insertEdge(Q,!1);return sb.createVertexTemplateFromCells([C,Q,p,J],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows; EditorUi.initMinimalTheme=function(){function b(V,c){if(EditorUi.windowed){var f=V.editor.graph;f.popupMenuHandler.hideMenu();null==V.formatWindow?(c=Math.max(10,V.diagramContainer.clientWidth-248),f=Math.min(566,f.container.clientHeight-10),V.formatWindow=new WrapperWindow(V,mxResources.get("format"),c,60,240,f,function(k){V.createFormat(k).init()}),V.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){V.formatWindow.window.fit()})),V.formatWindow.window.minimumSize=new mxRectangle(0, 0,240,80)):V.formatWindow.window.setVisible(null!=c?c:!V.formatWindow.window.isVisible())}else null==V.formatElt&&(V.formatElt=V.createSidebarContainer(),V.createFormat(V.formatElt).init(),V.formatElt.style.border="none",V.formatElt.style.width="240px",V.formatElt.style.borderLeft="1px solid gray",V.formatElt.style.right="0px"),f=V.diagramContainer.parentNode,null!=V.formatElt.parentNode?(V.formatElt.parentNode.removeChild(V.formatElt),f.style.right="0px"):(f.parentNode.appendChild(V.formatElt),f.style.right= V.formatElt.style.width)}function e(V,c){function f(y,A){var G=V.menus.get(y);y=k.addMenu(A,mxUtils.bind(this,function(){G.funct.apply(this,arguments)}));y.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";y.className="geTitle";c.appendChild(y);return y}var k=new Menubar(V,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed|| @@ -4208,8 +4206,8 @@ mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'n&&!mxClient.IS_IOS?V.firstChild.nextSibling.setAttribute("title", -c.shortcut):C.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(V){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=V?V:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){I=b.getBoundingClientRect();var Q=mxUtils.getScrollOrigin(document.body); -Q="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-Q.x,top:-Q.y};I={left:I.left-Q.left,top:I.top-Q.top,bottom:I.bottom-Q.top,right:I.right-Q.left};this.toolbar.style.left=I.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=I.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=I.top+1+"px"):this.toolbar.style.top=I.top+"px"}else null!= -this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),t=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(I){var Q=b.offsetWidth;Q==t||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=I?I:this.graphConfig.zoom|| +GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,e=this.graph.getGraphBounds(),g=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var n=mxUtils.bind(this,function(){if(!g){g=!0;var J=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?J.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){J=b.getBoundingClientRect();var Q=mxUtils.getScrollOrigin(document.body); +Q="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-Q.x,top:-Q.y};J={left:J.left-Q.left,top:J.top-Q.top,bottom:J.bottom-Q.top,right:J.right-Q.left};this.toolbar.style.left=J.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=J.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=J.top+1+"px"):this.toolbar.style.top=J.top+"px"}else null!= +this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());g=!1}}),t=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(J){var Q=b.offsetWidth;Q==t||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=J?J:this.graphConfig.zoom|| (this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(),this.graph.maxFitScale=null,0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},t=Q,window.setTimeout(mxUtils.bind(this,function(){this.handlingResize= !1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",n),this.graph.addListener("size",n)):new ResizeSensor(this.graph.container,n));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,e.width+2*this.graph.border), 0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,e.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=t=null;n=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",n):new ResizeSensor(this.graph.container,n))}else 9>=document.documentMode||this.graph.addListener("size", -n);var C=mxUtils.bind(this,function(I){var Q=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var F=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0b.offsetWidth||e.height+2*this.graph.border>F)?(I=null,null!=F&&e.height+2*this.graph.border>F-2&&(I=(F-2*this.graph.border-2)/e.height),this.fitGraph(I)):this.widthIsEmpty|| -null!=I||0!=this.graphConfig.resize||""==b.style.height?(I=null!=I?I:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+I.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+I.y),t=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.widthb.offsetWidth||e.height+2*this.graph.border>F)?(J=null,null!=F&&e.height+2*this.graph.border>F-2&&(J=(F-2*this.graph.border-2)/e.height),this.fitGraph(J)):this.widthIsEmpty|| +null!=J||0!=this.graphConfig.resize||""==b.style.height?(J=null!=J?J:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-e.x/this.graph.view.scale)+J.x,Math.floor(this.graph.border-e.y/this.graph.view.scale)+J.y),t=b.offsetWidth):this.graph.center((!this.widthIsEmpty||e.widthnavigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +var mxClient={VERSION:"23.1.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -903,26 +903,24 @@ function mxCellEditor(a){this.graph=a;this.zoomHandler=mxUtils.bind(this,functio this.updateTextAreaStyle(b))});this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler)}mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editingCell=null;mxCellEditor.prototype.trigger=null;mxCellEditor.prototype.modified=!1;mxCellEditor.prototype.autoSize=!0;mxCellEditor.prototype.selectText=!0;mxCellEditor.prototype.emptyLabelText=mxClient.IS_FF?"
":"";mxCellEditor.prototype.escapeCancelsEditing=!0;mxCellEditor.prototype.textNode=""; mxCellEditor.prototype.zIndex=1;mxCellEditor.prototype.minResize=new mxRectangle(0,20);mxCellEditor.prototype.wordWrapPadding=0;mxCellEditor.prototype.blurEnabled=!1;mxCellEditor.prototype.initialValue=null;mxCellEditor.prototype.align=null; mxCellEditor.prototype.init=function(){this.textarea=document.createElement("div");this.textarea.className="mxCellEditor mxPlainTextEditor";this.textarea.contentEditable=!0;mxClient.IS_GC&&(this.textarea.style.minHeight="1em");this.textarea.style.position=this.isLegacyEditor()?"absolute":"relative";this.installListeners(this.textarea)};mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)}; -mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);8!=document.documentMode&&9!=document.documentMode&&10!=document.documentMode&&(a=mxUtils.replaceTrailingNewlines(a,"

"));return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; +mxCellEditor.prototype.setAlign=function(a){null!=this.textarea&&(this.textarea.style.textAlign=a);this.align=a;this.resize()};mxCellEditor.prototype.getInitialValue=function(a,b){a=mxUtils.htmlEntities(this.graph.getEditingValue(a.cell,b),!1);a=mxUtils.replaceTrailingNewlines(a,"

");return a.replace(/\n/g,"
")};mxCellEditor.prototype.getCurrentValue=function(a){return mxUtils.extractTextWithWhitespace(this.textarea.childNodes)}; mxCellEditor.prototype.isCancelEditingKeyEvent=function(a){return this.escapeCancelsEditing||mxEvent.isShiftDown(a)||mxEvent.isControlDown(a)||mxEvent.isMetaDown(a)}; mxCellEditor.prototype.installListeners=function(a){mxEvent.addListener(a,"dragstart",mxUtils.bind(this,function(f){this.graph.stopEditing(!1);mxEvent.consume(f)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,function(f){this.blurEnabled&&this.focusLost(f)}));var b=this.graph.container.scrollTop,c=this.graph.container.scrollLeft;mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(f){b=this.graph.container.scrollTop;c=this.graph.container.scrollLeft;mxEvent.isConsumed(f)||(this.isStopEditingEvent(f)? (this.graph.stopEditing(!1),mxEvent.consume(f)):27==f.keyCode&&(this.graph.stopEditing(this.isCancelEditingKeyEvent(f)),mxEvent.consume(f)))}));var d=mxUtils.bind(this,function(f){null!=this.editingCell&&this.clearOnChange&&a.innerHTML==this.getEmptyLabelText()&&(!mxClient.IS_FF||8!=f.keyCode&&46!=f.keyCode)&&(this.clearOnChange=!1,a.innerText="")});mxEvent.addListener(a,"keypress",d);mxEvent.addListener(a,"paste",d);d=mxUtils.bind(this,function(f){null!=this.editingCell&&(this.graph.container.scrollTop= b,this.graph.container.scrollLeft=c,a.scrollIntoView({block:"nearest",inline:"nearest"}),0==this.textarea.innerHTML.length||"
"==this.textarea.innerHTML?(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0=g.length||l[m]!=g[m]){for(var n=l[m].firstChild;null!=n;){var p=n.nextSibling;l[m].parentNode.insertBefore(n,l[m]);n=p}l[m].parentNode.removeChild(l[m]);break}}),0)}));d=mxClient.IS_IE11||mxClient.IS_IE?"keydown":"input";var e=mxUtils.bind(this,function(f){null!=this.editingCell&&this.autoSize&&!mxEvent.isConsumed(f)&& -(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);9<=document.documentMode?(mxEvent.addListener(a,"DOMNodeRemoved",e),mxEvent.addListener(a,"DOMNodeInserted",e)):(mxEvent.addListener(a,"cut",e),mxEvent.addListener(a,"paste",e))}; -mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)};mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; +(null!=this.resizeThread&&window.clearTimeout(this.resizeThread),this.resizeThread=window.setTimeout(mxUtils.bind(this,function(){this.resizeThread=null;this.resize()}),0))});mxEvent.addListener(a,d,e);mxEvent.addListener(window,"resize",e);mxEvent.addListener(a,"cut",e);mxEvent.addListener(a,"paste",e)};mxCellEditor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEditing()&&13==a.keyCode&&!mxEvent.isControlDown(a)&&!mxEvent.isShiftDown(a)}; +mxCellEditor.prototype.isEventSource=function(a){return mxEvent.getSource(a)==this.textarea}; mxCellEditor.prototype.resize=function(){var a=this.graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.textarea){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=null;if(this.autoSize&&"fill"!=a.style[mxConstants.STYLE_OVERFLOW]){var e=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_WIDTH,null);d=null!=a.text&&null==this.align?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(this.align||mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));if(b){if(this.bounds=new mxRectangle(a.absoluteOffset.x,a.absoluteOffset.y,0,0),null!=e){var f=(parseFloat(e)+2)*c;this.bounds.width=f;this.bounds.x+=d.x*f}}else{b=mxRectangle.fromRectangle(a);var g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=null!=a.shape&& g==mxConstants.ALIGN_CENTER&&k==mxConstants.ALIGN_MIDDLE?a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legacySpacing||"width"!=a.style[mxConstants.STYLE_OVERFLOW]&&"block"!=a.style[mxConstants.STYLE_OVERFLOW]){g=parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING,2))*c;var l=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_TOP,0))+mxText.prototype.baseSpacingTop)*c+g,m=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_RIGHT, 0))+mxText.prototype.baseSpacingRight)*c+g,n=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_BOTTOM,0))+mxText.prototype.baseSpacingBottom)*c+g,p=(parseFloat(mxUtils.getValue(a.style,mxConstants.STYLE_SPACING_LEFT,0))+mxText.prototype.baseSpacingLeft)*c+g;g=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);k=mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);b=new mxRectangle(b.x+p,b.y+l,b.width-(g==mxConstants.ALIGN_CENTER&& null==e?p+m:0),b.height-(k==mxConstants.ALIGN_MIDDLE?l+n:0));this.graph.isHtmlLabel(a.cell)&&(b.x-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.y-=mxSvgCanvas2D.prototype.foreignObjectPadding/2,b.width+=mxSvgCanvas2D.prototype.foreignObjectPadding)}this.bounds=new mxRectangle(b.x+a.absoluteOffset.x,b.y+a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height))if(e=this.textDirection=mxUtils.getValue(a.style,mxConstants.STYLE_TEXT_DIRECTION, mxConstants.DEFAULT_TEXT_DIRECTION),e=null!=e&&"vertical-"==e.substring(0,9),this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal",this.textarea.innerHTML!=this.getEmptyLabelText())if(f=Math.round(this.bounds.width/c)+this.wordWrapPadding,"relative"!=this.textarea.style.position)this.textarea.style.width=f+"px",this.textarea.scrollWidth>f&&(this.textarea.style.width=this.textarea.scrollWidth+"px");else if("block"==a.style[mxConstants.STYLE_OVERFLOW]||"width"== -a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";8==document.documentMode&&(this.textarea.style.zoom="1",this.textarea.style.height="auto");8==document.documentMode? -(a=this.textarea.scrollWidth,f=this.textarea.scrollHeight,this.textarea.style.left=Math.max(0,Math.ceil((this.bounds.x-d.x*(this.bounds.width-(a+1)*c)+a*(c-1)*0+2*(d.x+.5))/c))+"px",this.textarea.style.top=Math.max(0,Math.ceil((this.bounds.y-d.y*(this.bounds.height-(f+.5)*c)+f*(c-1)*0+1*Math.abs(d.y+.5))/c))+"px",this.textarea.style.width=Math.round(a*c)+"px",this.textarea.style.height=Math.round(f*c)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+ -"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px")}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",8==document.documentMode?(this.textarea.style.left=Math.round(this.bounds.x)+"px",this.textarea.style.top=Math.round(this.bounds.y)+"px"):(this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top= -Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()?(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width= -""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null==d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null}; -mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; +a.style[mxConstants.STYLE_OVERFLOW]){if(-.5==d.y||"width"==a.style[mxConstants.STYLE_OVERFLOW])this.textarea.style.maxHeight=this.bounds.height+"px";this.textarea.style.width=f+"px"}else e?this.textarea.style.maxHeight=this.bounds.height/c+"px":this.textarea.style.maxWidth=f+"px";else this.textarea.style.maxWidth=f+"px";else this.textarea.style.whiteSpace="nowrap",this.textarea.style.width="";this.textarea.style.left=Math.max(0,Math.round(this.bounds.x-d.x*(this.bounds.width-2))+1)+"px";this.textarea.style.top= +Math.max(0,Math.round(this.bounds.y-d.y*(this.bounds.height-4)+(-1==d.y?3:0))+1)+"px"}else this.bounds=this.getEditorBounds(a),this.textarea.style.width=Math.round(this.bounds.width/c)+"px",this.textarea.style.height=Math.round(this.bounds.height/c)+"px",this.textarea.style.left=Math.max(0,Math.round(this.bounds.x+1))+"px",this.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px",this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=this.bounds.height)&&this.textarea.innerHTML!=this.getEmptyLabelText()? +(this.textarea.style.wordWrap=mxConstants.WORD_WRAP,this.textarea.style.whiteSpace="normal","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=Math.round(this.bounds.width/c)+this.wordWrapPadding+"px")):(this.textarea.style.whiteSpace="nowrap","fill"!=a.style[mxConstants.STYLE_OVERFLOW]&&(this.textarea.style.width=""));mxUtils.setPrefixedStyle(this.textarea.style,"transformOrigin","0px 0px");mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")"+(null== +d?"":" translate("+100*d.x+"%,"+100*d.y+"%)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellEditing())};mxCellEditor.prototype.getBackgroundColor=function(a){return null};mxCellEditor.prototype.getBorderColor=function(a){return null};mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view.getDrawPane().ownerSVGElement;null!=b&&(b=mxUtils.getCurrentStyle(b),null!=b&&(a="absolute"==b.position))}return!a}; mxCellEditor.prototype.updateTextAreaStyle=function(a){var b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTCOLOR,"black"),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style, mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,k=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&k.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&k.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(b*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.backgroundColor= this.getBackgroundColor(a);this.textarea.style.textDecoration=k.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontSize=Math.round(b)+"px";this.textarea.style.zIndex=this.zIndex;this.textarea.style.fontFamily=c;this.textarea.style.textAlign=e;this.textarea.style.outline="none";this.textarea.style.writingMode="";this.textarea.style.color=d;b=this.getBorderColor(a);this.textarea.style.border=null!=b?"1px solid "+b:"none";b= diff --git a/src/main/webapp/resources/dia_it.txt b/src/main/webapp/resources/dia_it.txt index a6125179c..3b059919f 100644 --- a/src/main/webapp/resources/dia_it.txt +++ b/src/main/webapp/resources/dia_it.txt @@ -1031,7 +1031,7 @@ millimeters=Millimetri confEditDraftDelOrExt=Questo diagramma si trova in una pagina di bozza, viene eliminato dalla pagina o viene modificato esternamente. Sarà salvato come una nuova versione dell'allegato e potrebbe non essere riportato nella pagina. confDiagEditedExt=Il diagramma è modificato in un'altra sessione. Sarà salvato come una nuova versione dell'allegato, ma la pagina mostrerà le modifiche di altre sessioni. macroNotFound=Macro non trovata -confAInvalidPageIdsFormat=Formato file IDS di pagina errata +confAInvalidPageIdsFormat=Formato file di ID page errato confACollectingCurPages=Raccolta delle pagine attuali confABuildingPagesMap=Creazione della mappa delle pagine confAProcessDrawDiag=Iniziata l'elaborazione dei diagrammi importati di draw.io diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.js index 833d3cfd1..5988500ba 100644 --- a/src/main/webapp/service-worker.js +++ b/src/main/webapp/service-worker.js @@ -1,2 +1,2 @@ -if(!self.define){let e,i={};const r=(r,a)=>(r=new URL(r+".js",a).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let d={};const o=e=>r(e,s),f={module:{uri:s},exports:d,require:o};i[s]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"js/app.min.js",revision:"5c6a81b343462010d20bbf6c3e2814c7"},{url:"js/extensions.min.js",revision:"3136b7d82b8c01e65b72a389b313a058"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"fb7151e9f9c7fe11447d36774985b644"},{url:"js/shapes-14-6-5.min.js",revision:"d61ee16aa1c1e928e7e8050d28ece5b3"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"782203b0acbf2f702f7598cc36d1b598"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"4939a477256da188b8ce9f69c0bd8206"},{url:"styles/atlas.css",revision:"d627cfef208f13a9cff1670f143c6348"},{url:"styles/dark.css",revision:"fd2878ff29a6b68cb8dbfab17e32d649"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"32074055e130d9b9d9232b3c2b056925"},{url:"connect/jira/editor-1-3-3.html",revision:"a583c5c1dac9945f6f4087c880e26854"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"801fc4ef821f5a3986902998da85b53a"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"b20590b5ba995880eb6778e092a3fd50"},{url:"connect/jira/viewerPanel.js",revision:"b70ea4d572fe9d07867d955c408f5c27"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"a109a49b6c8f23095fbc1a2a88912d3b"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"94804f65483a6e7eb51dee97d0ae9d88"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"4cefa13414e0d406550f3c073923080c"},{url:"plugins/cConf-comments.js",revision:"ee6764429bf47a8545aa1cedacee718e"},{url:"plugins/cConf-1-4-8.js",revision:"4de7dc22da6baba1cdd1480809bd0ee5"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"5f5682e51631194fd8c114171eba0c4e"},{url:"connect/new_common/cac.js",revision:"cf63bf9103bafb9f34cf3ff624b918e8"},{url:"connect/gdrive_common/gac.js",revision:"78f85e79f15f56b8b8d83c90f4a15679"},{url:"connect/onedrive_common/ac.js",revision:"d10d4603e86da7c9af277dac832e8e06"},{url:"connect/confluence/viewer-init.js",revision:"84b1f6758f3c1a723b019c58af377027"},{url:"connect/confluence/viewer.js",revision:"22b42ad751a1d75ac7af89e3902b4ef9"},{url:"connect/confluence/viewer-1-4-42.html",revision:"4a9a11f6de154cbd7a2df9e45790daf1"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"b2908e71f755a069fe6487e1e705736c"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"90d1612e10c3ed94f3b355fbaf262a95"},{url:"connect/confluence/includeDiagram.html",revision:"4df629a5bfba840368ab8185ce27f439"},{url:"connect/confluence/macro-editor.js",revision:"51e513c65251b215aa78420c84623a18"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"d321012e1056c41f1e7b22e47ad62d61"},{url:"resources/dia_am.txt",revision:"213525ef8fcd9dfe2bbd0c9c3ce1d42c"},{url:"resources/dia_ar.txt",revision:"acf5faf39924e129bb1592129652386b"},{url:"resources/dia_bg.txt",revision:"8af3710c9c6182ee76cdb1950decada6"},{url:"resources/dia_bn.txt",revision:"537c5b5b925a78d80d2fa60029c56758"},{url:"resources/dia_bs.txt",revision:"00861472d2c0c21eb9b8570abad23b0b"},{url:"resources/dia_ca.txt",revision:"57548dd636433d335b0098ad6d7e086f"},{url:"resources/dia_cs.txt",revision:"116adace1e36bb0e98391829fb6350f9"},{url:"resources/dia_da.txt",revision:"ca52cf879ec86c214b3f48741d8585cc"},{url:"resources/dia_de.txt",revision:"8e284b6a03f973b648207edfb6dc42c4"},{url:"resources/dia_el.txt",revision:"d6ab32f967b96e92cb0b6e28a5776dea"},{url:"resources/dia_eo.txt",revision:"263dcbd2a691e1220ffea1da65b41564"},{url:"resources/dia_es.txt",revision:"b284e77d3def337b8759f97dfd79f00f"},{url:"resources/dia_et.txt",revision:"66cd53fb17bae47bd97f24db4735bf6f"},{url:"resources/dia_eu.txt",revision:"c1c685c09fe50bacec4ef935383f5779"},{url:"resources/dia_fa.txt",revision:"7376863e7ea228d96453b093dfb6dc6f"},{url:"resources/dia_fi.txt",revision:"efdd0d39a5640914a15acbe6ae6dd206"},{url:"resources/dia_fil.txt",revision:"48bcfc483ee18f31abf009100400162e"},{url:"resources/dia_fr.txt",revision:"903589c5776aa042d535c72cde95483e"},{url:"resources/dia_gl.txt",revision:"9e177e40efef6dfdeaf709858fa289a6"},{url:"resources/dia_gu.txt",revision:"bb113f63c853871050f7539499818f1d"},{url:"resources/dia_he.txt",revision:"ba35b0568b60cb06fc730c3b460c7dc0"},{url:"resources/dia_hi.txt",revision:"e7872e2bdc378957e3434f75030a310b"},{url:"resources/dia_hr.txt",revision:"06eef2cc434a7808728b714be192dfb2"},{url:"resources/dia_hu.txt",revision:"3dbfedae54f8480399e1431a41c20b82"},{url:"resources/dia_id.txt",revision:"9bbad28ba0eab330e27a15db4ff704c4"},{url:"resources/dia_it.txt",revision:"b24deb5db4662b6821eae0fc9b52f06c"},{url:"resources/dia_ja.txt",revision:"c7902011a1f935a9e3ab83e72e58fb97"},{url:"resources/dia_kn.txt",revision:"16c268ae7a4fcea6be475d951a60bb78"},{url:"resources/dia_ko.txt",revision:"f07549204c3ee15c05ad9e9b5751f0e4"},{url:"resources/dia_lt.txt",revision:"55bea9cbbfcd6764ee22601d0610ef85"},{url:"resources/dia_lv.txt",revision:"e5a9f2a7919626295c6abd4749db423f"},{url:"resources/dia_ml.txt",revision:"255ac00bfd766baceb871aa16f1fdf9c"},{url:"resources/dia_mr.txt",revision:"124a4b81ea95d58b4882333e239e51ea"},{url:"resources/dia_ms.txt",revision:"cba2d04e1ea934de4cb4f3f8db3859a4"},{url:"resources/dia_my.txt",revision:"d321012e1056c41f1e7b22e47ad62d61"},{url:"resources/dia_nl.txt",revision:"a862c491ea7dcceb9feb32a2d08235fb"},{url:"resources/dia_no.txt",revision:"2634909d53814d1f9ceeb6c9c70efaea"},{url:"resources/dia_pl.txt",revision:"ef2666fe67e34bf8f5bb17aa28dd7e8f"},{url:"resources/dia_pt-br.txt",revision:"6446b47542b3441de598b4dbc8007d63"},{url:"resources/dia_pt.txt",revision:"55f3a32cf14b6056cbbc440ec16421e3"},{url:"resources/dia_ro.txt",revision:"8a2f9c7312fe2febd1b6e47417af4ffc"},{url:"resources/dia_ru.txt",revision:"db34e0a3b6f1c8f76e1734e9401dc088"},{url:"resources/dia_si.txt",revision:"d321012e1056c41f1e7b22e47ad62d61"},{url:"resources/dia_sk.txt",revision:"a5dc590fc880cc80483b7ce9d5669d1f"},{url:"resources/dia_sl.txt",revision:"5c43f1e8d006fda3c65ff49fb2c125f7"},{url:"resources/dia_sr.txt",revision:"08f52d43b9f203e3628498c4986dd7d7"},{url:"resources/dia_sv.txt",revision:"2c3f1994de5c2e926f020d754f28fba5"},{url:"resources/dia_sw.txt",revision:"2f9dc6bbc93eecd3deaefe2d0254f82c"},{url:"resources/dia_ta.txt",revision:"0fb6ad26a92004825c6c29da032bd62a"},{url:"resources/dia_te.txt",revision:"44a6c4ce2bab7bcb978471c7808dadf3"},{url:"resources/dia_th.txt",revision:"4e93707e2c5ee37077e66d080fdf7bfe"},{url:"resources/dia_tr.txt",revision:"96b21ae462f9b4fa864100af7d8b0c76"},{url:"resources/dia_uk.txt",revision:"e3eaddfd4eaf2f6c4a8b10580b961257"},{url:"resources/dia_vi.txt",revision:"47a055cec84006cb9a243091e28d4f15"},{url:"resources/dia_zh-tw.txt",revision:"6e069445807241af3af642d76f45855d"},{url:"resources/dia_zh.txt",revision:"d5509a9361e5ad24d94b835f41cd7ba0"},{url:"favicon.ico",revision:"83014b0f32b6c7b15b66cf3c6d6d7c16"},{url:"images/manifest.json",revision:"e77092f9f5912c39cd34024443c2299b"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/hs.png",revision:"fefa1a03d92ebad25c88dca94a0b63db"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"618b42f0bde0c7685e04811c25dc2b3e"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})})); +if(!self.define){let e,i={};const r=(r,a)=>(r=new URL(r+".js",a).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let d={};const f=e=>r(e,s),o={module:{uri:s},exports:d,require:f};i[s]=Promise.all(a.map((e=>o[e]||f(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"js/app.min.js",revision:"006152a89f0c9501ee992b1bdd483f7f"},{url:"js/extensions.min.js",revision:"3136b7d82b8c01e65b72a389b313a058"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"fb7151e9f9c7fe11447d36774985b644"},{url:"js/shapes-14-6-5.min.js",revision:"d61ee16aa1c1e928e7e8050d28ece5b3"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"782203b0acbf2f702f7598cc36d1b598"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"4939a477256da188b8ce9f69c0bd8206"},{url:"styles/atlas.css",revision:"d627cfef208f13a9cff1670f143c6348"},{url:"styles/dark.css",revision:"fd2878ff29a6b68cb8dbfab17e32d649"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"4f3899e40747c8eacf6b89c550b56973"},{url:"connect/jira/editor-1-3-3.html",revision:"a583c5c1dac9945f6f4087c880e26854"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"801fc4ef821f5a3986902998da85b53a"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"b20590b5ba995880eb6778e092a3fd50"},{url:"connect/jira/viewerPanel.js",revision:"3def6121aa291841a38320ebffc51457"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"b30113797d4498d3fbaad45ecded7a60"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"94804f65483a6e7eb51dee97d0ae9d88"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"4cefa13414e0d406550f3c073923080c"},{url:"plugins/cConf-comments.js",revision:"ee6764429bf47a8545aa1cedacee718e"},{url:"plugins/cConf-1-4-8.js",revision:"4de7dc22da6baba1cdd1480809bd0ee5"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"a628ad7e8ba67daf335db36d2f023a38"},{url:"connect/new_common/cac.js",revision:"cf63bf9103bafb9f34cf3ff624b918e8"},{url:"connect/gdrive_common/gac.js",revision:"78f85e79f15f56b8b8d83c90f4a15679"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"84b1f6758f3c1a723b019c58af377027"},{url:"connect/confluence/viewer.js",revision:"22b42ad751a1d75ac7af89e3902b4ef9"},{url:"connect/confluence/viewer-1-4-42.html",revision:"4a9a11f6de154cbd7a2df9e45790daf1"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"b2908e71f755a069fe6487e1e705736c"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"90d1612e10c3ed94f3b355fbaf262a95"},{url:"connect/confluence/includeDiagram.html",revision:"4df629a5bfba840368ab8185ce27f439"},{url:"connect/confluence/macro-editor.js",revision:"51e513c65251b215aa78420c84623a18"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"d321012e1056c41f1e7b22e47ad62d61"},{url:"resources/dia_am.txt",revision:"213525ef8fcd9dfe2bbd0c9c3ce1d42c"},{url:"resources/dia_ar.txt",revision:"acf5faf39924e129bb1592129652386b"},{url:"resources/dia_bg.txt",revision:"8af3710c9c6182ee76cdb1950decada6"},{url:"resources/dia_bn.txt",revision:"537c5b5b925a78d80d2fa60029c56758"},{url:"resources/dia_bs.txt",revision:"00861472d2c0c21eb9b8570abad23b0b"},{url:"resources/dia_ca.txt",revision:"57548dd636433d335b0098ad6d7e086f"},{url:"resources/dia_cs.txt",revision:"116adace1e36bb0e98391829fb6350f9"},{url:"resources/dia_da.txt",revision:"ca52cf879ec86c214b3f48741d8585cc"},{url:"resources/dia_de.txt",revision:"8e284b6a03f973b648207edfb6dc42c4"},{url:"resources/dia_el.txt",revision:"d6ab32f967b96e92cb0b6e28a5776dea"},{url:"resources/dia_eo.txt",revision:"263dcbd2a691e1220ffea1da65b41564"},{url:"resources/dia_es.txt",revision:"b284e77d3def337b8759f97dfd79f00f"},{url:"resources/dia_et.txt",revision:"66cd53fb17bae47bd97f24db4735bf6f"},{url:"resources/dia_eu.txt",revision:"c1c685c09fe50bacec4ef935383f5779"},{url:"resources/dia_fa.txt",revision:"7376863e7ea228d96453b093dfb6dc6f"},{url:"resources/dia_fi.txt",revision:"efdd0d39a5640914a15acbe6ae6dd206"},{url:"resources/dia_fil.txt",revision:"48bcfc483ee18f31abf009100400162e"},{url:"resources/dia_fr.txt",revision:"903589c5776aa042d535c72cde95483e"},{url:"resources/dia_gl.txt",revision:"9e177e40efef6dfdeaf709858fa289a6"},{url:"resources/dia_gu.txt",revision:"bb113f63c853871050f7539499818f1d"},{url:"resources/dia_he.txt",revision:"ba35b0568b60cb06fc730c3b460c7dc0"},{url:"resources/dia_hi.txt",revision:"e7872e2bdc378957e3434f75030a310b"},{url:"resources/dia_hr.txt",revision:"06eef2cc434a7808728b714be192dfb2"},{url:"resources/dia_hu.txt",revision:"3dbfedae54f8480399e1431a41c20b82"},{url:"resources/dia_id.txt",revision:"9bbad28ba0eab330e27a15db4ff704c4"},{url:"resources/dia_it.txt",revision:"711ab9fea81dc6eab7e031225c3070a1"},{url:"resources/dia_ja.txt",revision:"c7902011a1f935a9e3ab83e72e58fb97"},{url:"resources/dia_kn.txt",revision:"16c268ae7a4fcea6be475d951a60bb78"},{url:"resources/dia_ko.txt",revision:"f07549204c3ee15c05ad9e9b5751f0e4"},{url:"resources/dia_lt.txt",revision:"55bea9cbbfcd6764ee22601d0610ef85"},{url:"resources/dia_lv.txt",revision:"e5a9f2a7919626295c6abd4749db423f"},{url:"resources/dia_ml.txt",revision:"255ac00bfd766baceb871aa16f1fdf9c"},{url:"resources/dia_mr.txt",revision:"124a4b81ea95d58b4882333e239e51ea"},{url:"resources/dia_ms.txt",revision:"cba2d04e1ea934de4cb4f3f8db3859a4"},{url:"resources/dia_my.txt",revision:"d321012e1056c41f1e7b22e47ad62d61"},{url:"resources/dia_nl.txt",revision:"a862c491ea7dcceb9feb32a2d08235fb"},{url:"resources/dia_no.txt",revision:"2634909d53814d1f9ceeb6c9c70efaea"},{url:"resources/dia_pl.txt",revision:"ef2666fe67e34bf8f5bb17aa28dd7e8f"},{url:"resources/dia_pt-br.txt",revision:"6446b47542b3441de598b4dbc8007d63"},{url:"resources/dia_pt.txt",revision:"55f3a32cf14b6056cbbc440ec16421e3"},{url:"resources/dia_ro.txt",revision:"8a2f9c7312fe2febd1b6e47417af4ffc"},{url:"resources/dia_ru.txt",revision:"db34e0a3b6f1c8f76e1734e9401dc088"},{url:"resources/dia_si.txt",revision:"d321012e1056c41f1e7b22e47ad62d61"},{url:"resources/dia_sk.txt",revision:"a5dc590fc880cc80483b7ce9d5669d1f"},{url:"resources/dia_sl.txt",revision:"5c43f1e8d006fda3c65ff49fb2c125f7"},{url:"resources/dia_sr.txt",revision:"08f52d43b9f203e3628498c4986dd7d7"},{url:"resources/dia_sv.txt",revision:"2c3f1994de5c2e926f020d754f28fba5"},{url:"resources/dia_sw.txt",revision:"2f9dc6bbc93eecd3deaefe2d0254f82c"},{url:"resources/dia_ta.txt",revision:"0fb6ad26a92004825c6c29da032bd62a"},{url:"resources/dia_te.txt",revision:"44a6c4ce2bab7bcb978471c7808dadf3"},{url:"resources/dia_th.txt",revision:"4e93707e2c5ee37077e66d080fdf7bfe"},{url:"resources/dia_tr.txt",revision:"96b21ae462f9b4fa864100af7d8b0c76"},{url:"resources/dia_uk.txt",revision:"e3eaddfd4eaf2f6c4a8b10580b961257"},{url:"resources/dia_vi.txt",revision:"47a055cec84006cb9a243091e28d4f15"},{url:"resources/dia_zh-tw.txt",revision:"6e069445807241af3af642d76f45855d"},{url:"resources/dia_zh.txt",revision:"d5509a9361e5ad24d94b835f41cd7ba0"},{url:"favicon.ico",revision:"83014b0f32b6c7b15b66cf3c6d6d7c16"},{url:"images/manifest.json",revision:"e77092f9f5912c39cd34024443c2299b"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/hs.png",revision:"fefa1a03d92ebad25c88dca94a0b63db"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"618b42f0bde0c7685e04811c25dc2b3e"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})})); //# sourceMappingURL=service-worker.js.map diff --git a/src/main/webapp/service-worker.js.map b/src/main/webapp/service-worker.js.map index 07a9afb52..3d12e85ad 100644 --- a/src/main/webapp/service-worker.js.map +++ b/src/main/webapp/service-worker.js.map @@ -1 +1 @@ -{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/bc33b7452042f5c70a17cd6e3018278f/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"5c6a81b343462010d20bbf6c3e2814c7\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"3136b7d82b8c01e65b72a389b313a058\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"fb7151e9f9c7fe11447d36774985b644\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d61ee16aa1c1e928e7e8050d28ece5b3\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"782203b0acbf2f702f7598cc36d1b598\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"4939a477256da188b8ce9f69c0bd8206\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"d627cfef208f13a9cff1670f143c6348\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"fd2878ff29a6b68cb8dbfab17e32d649\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"32074055e130d9b9d9232b3c2b056925\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"a583c5c1dac9945f6f4087c880e26854\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"801fc4ef821f5a3986902998da85b53a\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"b20590b5ba995880eb6778e092a3fd50\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"b70ea4d572fe9d07867d955c408f5c27\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"a109a49b6c8f23095fbc1a2a88912d3b\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"94804f65483a6e7eb51dee97d0ae9d88\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"4cefa13414e0d406550f3c073923080c\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"ee6764429bf47a8545aa1cedacee718e\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"4de7dc22da6baba1cdd1480809bd0ee5\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"5f5682e51631194fd8c114171eba0c4e\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"cf63bf9103bafb9f34cf3ff624b918e8\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"78f85e79f15f56b8b8d83c90f4a15679\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"d10d4603e86da7c9af277dac832e8e06\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"84b1f6758f3c1a723b019c58af377027\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"22b42ad751a1d75ac7af89e3902b4ef9\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"4a9a11f6de154cbd7a2df9e45790daf1\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"b2908e71f755a069fe6487e1e705736c\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"90d1612e10c3ed94f3b355fbaf262a95\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"4df629a5bfba840368ab8185ce27f439\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"51e513c65251b215aa78420c84623a18\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"d321012e1056c41f1e7b22e47ad62d61\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"213525ef8fcd9dfe2bbd0c9c3ce1d42c\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"acf5faf39924e129bb1592129652386b\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"8af3710c9c6182ee76cdb1950decada6\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"537c5b5b925a78d80d2fa60029c56758\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"00861472d2c0c21eb9b8570abad23b0b\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"57548dd636433d335b0098ad6d7e086f\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"116adace1e36bb0e98391829fb6350f9\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"ca52cf879ec86c214b3f48741d8585cc\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"8e284b6a03f973b648207edfb6dc42c4\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"d6ab32f967b96e92cb0b6e28a5776dea\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"263dcbd2a691e1220ffea1da65b41564\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"b284e77d3def337b8759f97dfd79f00f\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"66cd53fb17bae47bd97f24db4735bf6f\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"c1c685c09fe50bacec4ef935383f5779\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"7376863e7ea228d96453b093dfb6dc6f\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"efdd0d39a5640914a15acbe6ae6dd206\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"48bcfc483ee18f31abf009100400162e\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"903589c5776aa042d535c72cde95483e\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"9e177e40efef6dfdeaf709858fa289a6\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"bb113f63c853871050f7539499818f1d\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"ba35b0568b60cb06fc730c3b460c7dc0\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"e7872e2bdc378957e3434f75030a310b\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"06eef2cc434a7808728b714be192dfb2\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"3dbfedae54f8480399e1431a41c20b82\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"9bbad28ba0eab330e27a15db4ff704c4\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"b24deb5db4662b6821eae0fc9b52f06c\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"c7902011a1f935a9e3ab83e72e58fb97\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"16c268ae7a4fcea6be475d951a60bb78\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"f07549204c3ee15c05ad9e9b5751f0e4\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"55bea9cbbfcd6764ee22601d0610ef85\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"e5a9f2a7919626295c6abd4749db423f\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"255ac00bfd766baceb871aa16f1fdf9c\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"124a4b81ea95d58b4882333e239e51ea\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"cba2d04e1ea934de4cb4f3f8db3859a4\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"d321012e1056c41f1e7b22e47ad62d61\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"a862c491ea7dcceb9feb32a2d08235fb\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"2634909d53814d1f9ceeb6c9c70efaea\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"ef2666fe67e34bf8f5bb17aa28dd7e8f\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"6446b47542b3441de598b4dbc8007d63\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"55f3a32cf14b6056cbbc440ec16421e3\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"8a2f9c7312fe2febd1b6e47417af4ffc\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"db34e0a3b6f1c8f76e1734e9401dc088\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"d321012e1056c41f1e7b22e47ad62d61\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"a5dc590fc880cc80483b7ce9d5669d1f\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"5c43f1e8d006fda3c65ff49fb2c125f7\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"08f52d43b9f203e3628498c4986dd7d7\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"2c3f1994de5c2e926f020d754f28fba5\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"2f9dc6bbc93eecd3deaefe2d0254f82c\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"0fb6ad26a92004825c6c29da032bd62a\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"44a6c4ce2bab7bcb978471c7808dadf3\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"4e93707e2c5ee37077e66d080fdf7bfe\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"96b21ae462f9b4fa864100af7d8b0c76\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"e3eaddfd4eaf2f6c4a8b10580b961257\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"47a055cec84006cb9a243091e28d4f15\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"6e069445807241af3af642d76f45855d\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"d5509a9361e5ad24d94b835f41cd7ba0\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"83014b0f32b6c7b15b66cf3c6d6d7c16\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"e77092f9f5912c39cd34024443c2299b\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/hs.png\",\n \"revision\": \"fefa1a03d92ebad25c88dca94a0b63db\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"618b42f0bde0c7685e04811c25dc2b3e\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","addEventListener","event","data","type","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,iBAYTC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"} \ No newline at end of file +{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/e152d84e94acd5f1c6ee1cfb2bc6b8dd/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"006152a89f0c9501ee992b1bdd483f7f\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"3136b7d82b8c01e65b72a389b313a058\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"fb7151e9f9c7fe11447d36774985b644\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d61ee16aa1c1e928e7e8050d28ece5b3\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"782203b0acbf2f702f7598cc36d1b598\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"4939a477256da188b8ce9f69c0bd8206\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"d627cfef208f13a9cff1670f143c6348\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"fd2878ff29a6b68cb8dbfab17e32d649\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"4f3899e40747c8eacf6b89c550b56973\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"a583c5c1dac9945f6f4087c880e26854\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"801fc4ef821f5a3986902998da85b53a\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"b20590b5ba995880eb6778e092a3fd50\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"3def6121aa291841a38320ebffc51457\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"b30113797d4498d3fbaad45ecded7a60\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"94804f65483a6e7eb51dee97d0ae9d88\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"4cefa13414e0d406550f3c073923080c\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"ee6764429bf47a8545aa1cedacee718e\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"4de7dc22da6baba1cdd1480809bd0ee5\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"a628ad7e8ba67daf335db36d2f023a38\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"cf63bf9103bafb9f34cf3ff624b918e8\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"78f85e79f15f56b8b8d83c90f4a15679\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"84b1f6758f3c1a723b019c58af377027\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"22b42ad751a1d75ac7af89e3902b4ef9\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"4a9a11f6de154cbd7a2df9e45790daf1\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"b2908e71f755a069fe6487e1e705736c\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"90d1612e10c3ed94f3b355fbaf262a95\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"4df629a5bfba840368ab8185ce27f439\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"51e513c65251b215aa78420c84623a18\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"d321012e1056c41f1e7b22e47ad62d61\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"213525ef8fcd9dfe2bbd0c9c3ce1d42c\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"acf5faf39924e129bb1592129652386b\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"8af3710c9c6182ee76cdb1950decada6\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"537c5b5b925a78d80d2fa60029c56758\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"00861472d2c0c21eb9b8570abad23b0b\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"57548dd636433d335b0098ad6d7e086f\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"116adace1e36bb0e98391829fb6350f9\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"ca52cf879ec86c214b3f48741d8585cc\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"8e284b6a03f973b648207edfb6dc42c4\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"d6ab32f967b96e92cb0b6e28a5776dea\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"263dcbd2a691e1220ffea1da65b41564\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"b284e77d3def337b8759f97dfd79f00f\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"66cd53fb17bae47bd97f24db4735bf6f\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"c1c685c09fe50bacec4ef935383f5779\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"7376863e7ea228d96453b093dfb6dc6f\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"efdd0d39a5640914a15acbe6ae6dd206\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"48bcfc483ee18f31abf009100400162e\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"903589c5776aa042d535c72cde95483e\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"9e177e40efef6dfdeaf709858fa289a6\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"bb113f63c853871050f7539499818f1d\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"ba35b0568b60cb06fc730c3b460c7dc0\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"e7872e2bdc378957e3434f75030a310b\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"06eef2cc434a7808728b714be192dfb2\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"3dbfedae54f8480399e1431a41c20b82\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"9bbad28ba0eab330e27a15db4ff704c4\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"711ab9fea81dc6eab7e031225c3070a1\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"c7902011a1f935a9e3ab83e72e58fb97\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"16c268ae7a4fcea6be475d951a60bb78\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"f07549204c3ee15c05ad9e9b5751f0e4\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"55bea9cbbfcd6764ee22601d0610ef85\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"e5a9f2a7919626295c6abd4749db423f\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"255ac00bfd766baceb871aa16f1fdf9c\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"124a4b81ea95d58b4882333e239e51ea\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"cba2d04e1ea934de4cb4f3f8db3859a4\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"d321012e1056c41f1e7b22e47ad62d61\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"a862c491ea7dcceb9feb32a2d08235fb\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"2634909d53814d1f9ceeb6c9c70efaea\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"ef2666fe67e34bf8f5bb17aa28dd7e8f\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"6446b47542b3441de598b4dbc8007d63\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"55f3a32cf14b6056cbbc440ec16421e3\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"8a2f9c7312fe2febd1b6e47417af4ffc\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"db34e0a3b6f1c8f76e1734e9401dc088\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"d321012e1056c41f1e7b22e47ad62d61\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"a5dc590fc880cc80483b7ce9d5669d1f\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"5c43f1e8d006fda3c65ff49fb2c125f7\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"08f52d43b9f203e3628498c4986dd7d7\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"2c3f1994de5c2e926f020d754f28fba5\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"2f9dc6bbc93eecd3deaefe2d0254f82c\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"0fb6ad26a92004825c6c29da032bd62a\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"44a6c4ce2bab7bcb978471c7808dadf3\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"4e93707e2c5ee37077e66d080fdf7bfe\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"96b21ae462f9b4fa864100af7d8b0c76\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"e3eaddfd4eaf2f6c4a8b10580b961257\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"47a055cec84006cb9a243091e28d4f15\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"6e069445807241af3af642d76f45855d\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"d5509a9361e5ad24d94b835f41cd7ba0\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"83014b0f32b6c7b15b66cf3c6d6d7c16\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"e77092f9f5912c39cd34024443c2299b\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/hs.png\",\n \"revision\": \"fefa1a03d92ebad25c88dca94a0b63db\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"618b42f0bde0c7685e04811c25dc2b3e\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","addEventListener","event","data","type","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,iBAYTC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"} \ No newline at end of file