Built motion from commit c2984ba.|0.0.114
[motion.git] / public / assets / plugins / jscripty / js / Sidebar.js
index e744c4c..185acb1 100644 (file)
@@ -1,787 +1 @@
-'use strict';
-
-/**
- * Construcs a new sidebar for the given editor.
- */
-function Sidebar(editorUi, container) {
-       this.editorUi = editorUi;
-       this.container = container;
-       this.palettes = new Object();
-       this.showTooltips = true;
-       this.graph = new Graph(document.createElement('div'), null, null, this.editorUi
-               .editor.graph.getStylesheet());
-       this.graph.resetViewOnRootChange = false;
-       this.graph.foldingEnabled = false;
-       this.graph.setConnectable(false);
-       this.graph.autoScroll = false;
-       this.graph.setTooltips(false);
-       this.graph.setEnabled(false);
-
-       // Container must be in the DOM for correct HTML rendering
-       this.graph.container.style.visibility = 'hidden';
-       this.graph.container.style.position = 'absolute';
-       document.body.appendChild(this.graph.container);
-
-       if (!mxClient.IS_TOUCH) {
-               mxEvent.addListener(document, 'mouseup', mxUtils.bind(this, function() {
-                       this.showTooltips = true;
-               }));
-
-               // Enables tooltips after scroll
-               mxEvent.addListener(container, 'scroll', mxUtils.bind(this, function() {
-                       this.showTooltips = true;
-               }));
-
-               mxEvent.addListener(document, 'mousedown', mxUtils.bind(this, function() {
-                       this.showTooltips = false;
-                       this.hideTooltip();
-               }));
-
-               mxEvent.addListener(document, 'mousemove', mxUtils.bind(this, function(evt) {
-                       var src = mxEvent.getSource(evt);
-
-                       while (src != null) {
-                               if (src == this.currentElt) {
-                                       return;
-                               }
-
-                               src = src.parentNode;
-                       }
-
-                       this.hideTooltip();
-               }));
-
-               // Handles mouse leaving the window
-               mxEvent.addListener(document, 'mouseout', mxUtils.bind(this, function(evt) {
-                       if (evt.toElement == null && evt.relatedTarget == null) {
-                               this.hideTooltip();
-                       }
-               }));
-       }
-
-       this.init();
-
-       // Pre-fetches tooltip image
-       new Image().src = IMAGE_PATH + '/tooltip.png';
-};
-
-/**
- * Adds all palettes to the sidebar.
- */
-Sidebar.prototype.init = function() {
-       var dir = STENCIL_PATH;
-       console.log(dir);
-
-       this.addImagePalette('entry', mxResources.get('application'), dir + '/',
-               '_128x128.png', ['start', 'question', 'input', 'end', 'email'], [mxResources.get('start'),
-                       mxResources.get('question'), mxResources.get('input'), mxResources.get('end'), mxResources.get('email')
-               ]);
-
-       // this.addBpmnPalette(dir, false);
-
-};
-
-/**
- * Specifies if tooltips should be visible. Default is true.
- */
-Sidebar.prototype.enableTooltips = !mxClient.IS_TOUCH;
-
-/**
- * Specifies the delay for the tooltip. Default is 16 px.
- */
-Sidebar.prototype.tooltipBorder = 16;
-
-/**
- * Specifies the delay for the tooltip. Default is 3 px.
- */
-Sidebar.prototype.thumbBorder = 3;
-
-/**
- * Specifies the delay for the tooltip. Default is 300 ms.
- */
-Sidebar.prototype.tooltipDelay = 300;
-
-/**
- * Specifies if edges should be used as templates if clicked. Default is true.
- */
-Sidebar.prototype.installEdges = true;
-
-/**
- * Specifies the URL of the gear image.
- */
-Sidebar.prototype.gearImage = STENCIL_PATH + '/clipart/Gear_128x128.png';
-
-/**
- * Specifies the width of the thumbnails.
- */
-Sidebar.prototype.thumbWidth = 34;
-
-/**
- * Specifies the height of the thumbnails.
- */
-Sidebar.prototype.thumbHeight = 34;
-
-/**
- * Specifies the padding for the thumbnails. Default is 3.
- */
-Sidebar.prototype.thumbPadding = 2;
-
-/**
- * Specifies the size of the sidebar titles.
- */
-Sidebar.prototype.sidebarTitleSize = 9;
-
-/**
- * Specifies if titles in the sidebar should be enabled.
- */
-Sidebar.prototype.sidebarTitles = false;
-
-/**
- * Specifies if titles in the tooltips should be enabled.
- */
-Sidebar.prototype.tooltipTitles = false;
-
-/**
- * Adds all palettes to the sidebar.
- */
-Sidebar.prototype.showTooltip = function(elt, cells, title, showLabel) {
-       if (this.enableTooltips && this.showTooltips) {
-               if (this.currentElt != elt) {
-                       if (this.thread != null) {
-                               window.clearTimeout(this.thread);
-                               this.thread = null;
-                       }
-
-                       var show = mxUtils.bind(this, function() {
-                               // Lazy creation of the DOM nodes and graph instance
-                               if (this.tooltip == null) {
-                                       this.tooltip = document.createElement('div');
-                                       this.tooltip.className = 'geSidebarTooltip';
-                                       document.body.appendChild(this.tooltip);
-
-                                       this.graph2 = new Graph(this.tooltip, null, null, this.editorUi.editor.graph
-                                               .getStylesheet());
-                                       this.graph2.view.setTranslate(this.tooltipBorder, this.tooltipBorder);
-                                       this.graph2.resetViewOnRootChange = false;
-                                       this.graph2.foldingEnabled = false;
-                                       this.graph2.autoScroll = false;
-                                       this.graph2.setTooltips(false);
-                                       this.graph2.setConnectable(false);
-                                       this.graph2.setEnabled(false);
-
-                                       if (!mxClient.IS_SVG) {
-                                               this.graph2.view.canvas.style.position = 'relative';
-                                       }
-
-                                       this.tooltipImage = mxUtils.createImage(IMAGE_PATH + '/tooltip.png');
-                                       this.tooltipImage.style.position = 'absolute';
-                                       this.tooltipImage.style.width = '14px';
-                                       this.tooltipImage.style.height = '27px';
-
-                                       document.body.appendChild(this.tooltipImage);
-                               }
-
-                               this.tooltip.style.display = 'block';
-                               this.graph2.labelsVisible = (showLabel == null || showLabel);
-                               this.graph2.model.clear();
-                               this.graph2.addCells(cells);
-
-                               var bounds = this.graph2.getGraphBounds();
-                               var width = bounds.width + 2 * this.tooltipBorder;
-                               var height = bounds.height + 2 * this.tooltipBorder;
-
-                               if (mxClient.IS_QUIRKS) {
-                                       width += 4;
-                                       height += 4;
-                                       this.tooltip.style.overflow = 'hidden';
-                               } else {
-                                       this.tooltip.style.overflow = 'visible';
-                               }
-
-                               this.tooltipImage.style.visibility = 'visible';
-                               this.tooltip.style.width = width + 'px';
-
-                               // Adds title for entry
-                               if (this.tooltipTitles && title != null && title.length > 0) {
-                                       if (this.tooltipTitle == null) {
-                                               this.tooltipTitle = document.createElement('div');
-                                               this.tooltipTitle.style.borderTop = '1px solid gray';
-                                               this.tooltipTitle.style.textAlign = 'center';
-                                               this.tooltipTitle.style.width = '100%';
-
-                                               // Oversize titles are cut-off currently. Should make tooltip wider later.
-                                               this.tooltipTitle.style.overflow = 'hidden';
-
-                                               if (mxClient.IS_SVG) {
-                                                       this.tooltipTitle.style.paddingTop = '2px';
-                                               } else {
-                                                       this.tooltipTitle.style.position = 'absolute';
-                                                       this.tooltipTitle.style.paddingTop = '6px';
-                                               }
-
-                                               this.tooltip.appendChild(this.tooltipTitle);
-                                       } else {
-                                               this.tooltipTitle.innerHTML = '';
-                                       }
-
-                                       this.tooltipTitle.style.display = '';
-                                       mxUtils.write(this.tooltipTitle, title);
-
-                                       var dy = this.tooltipTitle.offsetHeight + 10;
-                                       height += dy;
-
-                                       if (mxClient.IS_SVG) {
-                                               this.tooltipTitle.style.marginTop = (-dy) + 'px';
-                                       } else {
-                                               height -= 6;
-                                               this.tooltipTitle.style.top = (height - dy) + 'px';
-                                       }
-                               } else if (this.tooltipTitle != null && this.tooltipTitle.parentNode !=
-                                       null) {
-                                       this.tooltipTitle.style.display = 'none';
-                               }
-
-                               this.tooltip.style.height = height + 'px';
-                               var x0 = -Math.min(0, bounds.x - this.tooltipBorder);
-                               var y0 = -Math.min(0, bounds.y - this.tooltipBorder);
-
-                               var left = this.container.clientWidth + this.editorUi.splitSize + 3;
-                               var top = Math.max(0, (this.container.offsetTop + elt.offsetTop - this.container
-                                       .scrollTop - height / 2 + 16));
-
-                               if (mxClient.IS_SVG) {
-                                       this.graph2.view.canvas.setAttribute('transform', 'translate(' + x0 +
-                                               ',' + y0 + ')');
-                               } else {
-                                       this.graph2.view.drawPane.style.left = x0 + 'px';
-                                       this.graph2.view.drawPane.style.top = y0 + 'px';
-                               }
-
-                               // Workaround for ignored position CSS style in IE9
-                               // (changes to relative without the following line)
-                               // Added width of the page-sidebar
-                               //              left += document.getElementById('page-sidebar').offsetWidth;
-                               // Added static height of the page-navbar
-                               top += 90;
-
-                               this.tooltip.style.position = 'absolute';
-                               this.tooltip.style.left = left + 'px';
-                               this.tooltip.style.top = top + 'px';
-                               this.tooltipImage.style.left = (left - 13) + 'px';
-                               this.tooltipImage.style.top = (top + height / 2 - 13) + 'px';
-                       });
-
-                       if (this.tooltip != null && this.tooltip.style.display != 'none') {
-                               show();
-                       } else {
-                               this.thread = window.setTimeout(show, this.tooltipDelay);
-                       }
-
-                       this.currentElt = elt;
-               }
-       }
-};
-
-/**
- * Hides the current tooltip.
- */
-Sidebar.prototype.hideTooltip = function() {
-       if (this.thread != null) {
-               window.clearTimeout(this.thread);
-               this.thread = null;
-       }
-
-       if (this.tooltip != null) {
-               this.tooltip.style.display = 'none';
-               this.tooltipImage.style.visibility = 'hidden';
-               this.currentElt = null;
-       }
-};
-
-/**
- * Creates and returns the given title element.
- */
-Sidebar.prototype.createTitle = function(label) {
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geTitle';
-       mxUtils.write(elt, label);
-
-       return elt;
-};
-
-/**
- * Creates a thumbnail for the given cells.
- */
-Sidebar.prototype.createThumb = function(cells, width, height, parent, title,
-       showLabel) {
-       this.graph.labelsVisible = (showLabel == null || showLabel);
-       this.graph.view.scaleAndTranslate(1, 0, 0);
-       this.graph.addCells(cells);
-       var bounds = this.graph.getGraphBounds();
-       var corr = this.thumbBorder;
-       var s = Math.min((width - 2) / (bounds.width - bounds.x + corr), (height - 2) /
-               (bounds.height - bounds.y + corr));
-       var x0 = -Math.min(bounds.x, 0);
-       var y0 = -Math.min(bounds.y, 0);
-       this.graph.view.scaleAndTranslate(s, x0, y0);
-
-       bounds = this.graph.getGraphBounds();
-       var dx = Math.max(0, Math.floor((width - bounds.width - bounds.x) / 2));
-       var dy = Math.max(0, Math.floor((height - bounds.height - bounds.y) / 2));
-
-       var node = null;
-
-       // For supporting HTML labels in IE9 standards mode the container is cloned instead
-       if (this.graph.dialect == mxConstants.DIALECT_SVG && !mxClient.NO_FO) {
-               node = this.graph.view.getCanvas().ownerSVGElement.cloneNode(true);
-       }
-       // LATER: Check if deep clone can be used for quirks if container in DOM
-       else {
-               node = this.graph.container.cloneNode(false);
-               node.innerHTML = this.graph.container.innerHTML;
-       }
-
-       this.graph.getModel().clear();
-
-       // Catch-all event handling
-       if (mxClient.IS_IE6) {
-               parent.style.backgroundImage = 'url(' + this.editorUi.editor.transparentImage +
-                       ')';
-       }
-
-       var dd = 3;
-       node.style.position = 'relative';
-       node.style.overflow = 'hidden';
-       node.style.cursor = 'pointer';
-       node.style.left = (dx + dd) + 'px';
-       node.style.top = (dy + dd) + 'px';
-       node.style.width = width + 'px';
-       node.style.height = height + 'px';
-       node.style.visibility = '';
-       node.style.minWidth = '';
-       node.style.minHeight = '';
-
-       parent.appendChild(node);
-
-       // Adds title for sidebar entries
-       if (this.sidebarTitles && title != null) {
-               var border = (mxClient.IS_QUIRKS) ? 2 * this.thumbPadding + 2 : 0;
-               parent.style.height = (this.thumbHeight + border + this.sidebarTitleSize + 8) +
-                       'px';
-
-               var div = document.createElement('div');
-               div.style.fontSize = this.sidebarTitleSize + 'px';
-               div.style.textAlign = 'center';
-               div.style.whiteSpace = 'nowrap';
-
-               if (mxClient.IS_IE) {
-                       div.style.height = (this.sidebarTitleSize + 12) + 'px';
-               }
-
-               div.style.paddingTop = '4px';
-               mxUtils.write(div, title);
-               parent.appendChild(div);
-       }
-};
-
-/**
- * Creates and returns a new palette item for the given image.
- */
-Sidebar.prototype.createItem = function(cells, title, showLabel) {
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geItem';
-       elt.style.overflow = 'hidden';
-       var border = (mxClient.IS_QUIRKS) ? 8 + 2 * this.thumbPadding : 6;
-       elt.style.width = (this.thumbWidth + border) + 'px';
-       elt.style.height = (this.thumbHeight + border) + 'px';
-       elt.style.padding = this.thumbPadding + 'px';
-
-       // Blocks default click action
-       mxEvent.addListener(elt, 'click', function(evt) {
-               mxEvent.consume(evt);
-       });
-
-       this.createThumb(cells, this.thumbWidth, this.thumbHeight, elt, title,
-               showLabel);
-
-       return elt;
-};
-
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createDropHandler = function(cells, allowSplit) {
-       return function(graph, evt, target, x, y) {
-               if (graph.isEnabled()) {
-                       cells = graph.getImportableCells(cells);
-
-                       if (cells.length > 0) {
-                               var validDropTarget = (target != null) ?
-                                       graph.isValidDropTarget(target, cells, evt) : false;
-                               var select = null;
-
-                               if (target != null && !validDropTarget) {
-                                       target = null;
-                               }
-
-                               // Splits the target edge or inserts into target group
-                               if (allowSplit && graph.isSplitEnabled() && graph.isSplitTarget(target,
-                                               cells, evt)) {
-                                       graph.splitEdge(target, cells, null, x, y);
-                                       select = cells;
-                               } else if (cells.length > 0) {
-                                       select = graph.importCells(cells, x, y, target);
-                               }
-
-                               if (select != null && select.length > 0) {
-                                       graph.scrollCellToVisible(select[0]);
-                                       graph.setSelectionCells(select);
-                               }
-                       }
-               }
-       };
-};
-
-/**
- * Creates and returns a preview element for the given width and height.
- */
-Sidebar.prototype.createDragPreview = function(width, height) {
-       var elt = document.createElement('div');
-       elt.style.border = '1px dashed black';
-       elt.style.width = width + 'px';
-       elt.style.height = height + 'px';
-
-       return elt;
-};
-
-/**
- * Creates a drag source for the given element.
- */
-Sidebar.prototype.createDragSource = function(elt, dropHandler, preview) {
-       var dragSource = mxUtils.makeDraggable(elt, this.editorUi.editor.graph,
-               dropHandler,
-               preview, 0, 0, this.editorUi.editor.graph.autoscroll, true, true);
-
-
-
-       // Allows drop into cell only if target is a valid root
-       dragSource.getDropTarget = function(graph, x, y) {
-               var target = mxDragSource.prototype.getDropTarget.apply(this, arguments);
-               if (!graph.isValidRoot(target)) {
-                       target = null;
-               }
-
-               return target;
-       };
-
-       return dragSource;
-};
-
-
-
-/**
- * Adds a handler for inserting the cell with a single click.
- */
-Sidebar.prototype.addClickHandler = function(elt, ds) {
-       var graph = this.editorUi.editor.graph;
-       var first = null;
-
-       mxEvent.addGestureListeners(elt, function(evt) {
-               first = new mxPoint(mxEvent.getClientX(evt), mxEvent.getClientY(evt));
-       });
-
-       var oldMouseUp = ds.mouseUp;
-       ds.mouseUp = function(evt) {
-               if (!mxEvent.isPopupTrigger(evt) && this.currentGraph == null && first !=
-                       null) {
-                       var tol = graph.tolerance;
-
-                       if (Math.abs(first.x - mxEvent.getClientX(evt)) <= tol &&
-                               Math.abs(first.y - mxEvent.getClientY(evt)) <= tol) {
-                               var gs = graph.getGridSize();
-                               ds.drop(graph, evt, null, gs, gs);
-                       }
-               }
-
-               oldMouseUp.apply(this, arguments);
-               first = null;
-       };
-};
-
-/**
- * Giuseppe Careri
- * Create xml document vertex
- */
-Sidebar.prototype.createXmlDocument = function(element, label, variables,
-       values) {
-       var doc = mxUtils.createXmlDocument();
-       var node = doc.createElement(element)
-       node.setAttribute('label', label);
-
-       variables.forEach(function(variable, index) {
-               node.setAttribute(variable, values[index] ? values[index] : '');
-       });
-
-       return node;
-}
-
-/**
- * Giuseppe Careri
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createVertexTemplate = function(style, width, height, value,
-       title, showLabel) {
-       var variables = [];
-       var values = [];
-
-       switch (value) {
-
-               // case 'start':
-               //      variables = ['Text'];
-               //      values = [];
-               //      break;
-               case 'question':
-                       variables = ['question', 'other'];
-                       values = ['', 'false'];
-                       break;
-               case 'input':
-                       variables = ['question', 'Type'];
-                       values = [''];
-                       break;
-                       // case 'end':
-                       //      variables = ['Text', 'Zendesk', 'Summary'];
-                       //      values = [];
-                       //      break;
-               case 'email':
-                       variables = ["Host", "Username", "Password", "To", "Subject", "Body"];
-                       values = [''];
-                       break;
-               default:
-                       variables = [];
-                       values = [];
-                       break;
-       }
-
-       var node = this.createXmlDocument(value, title, variables, values);
-
-       //var cells = [new mxCell((value != null) ? value : '', new mxGeometry(0, 0, width, height), style)];
-       var cells = [new mxCell(node, new mxGeometry(0, 0, width, height), style)];
-       cells[0].vertex = true;
-
-       return this.createVertexTemplateFromCells(cells, width, height, title,
-               showLabel);
-};
-
-
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createVertexTemplateFromCells = function(cells, width, height,
-       title, showLabel) {
-       var elt = this.createItem(cells, title, showLabel);
-       var ds = this.createDragSource(elt, this.createDropHandler(cells, true), this
-               .createDragPreview(width, height));
-       this.addClickHandler(elt, ds);
-
-       // Uses guides for vertices only if enabled in graph
-       ds.isGuidesEnabled = mxUtils.bind(this, function() {
-               return this.editorUi.editor.graph.graphHandler.guidesEnabled;
-       });
-
-       // Shows a tooltip with the rendered cell
-       if (!touchStyle) {
-               mxEvent.addListener(elt, 'mousemove', mxUtils.bind(this, function(evt) {
-                       this.showTooltip(elt, cells, title, showLabel);
-               }));
-       }
-
-       return elt;
-};
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createEdgeTemplate = function(style, width, height, value,
-       title, showLabel) {
-       var cells = [new mxCell((value != null) ? value : '', new mxGeometry(0, 0,
-               width, height), style)];
-       cells[0].geometry.setTerminalPoint(new mxPoint(0, height), true);
-       cells[0].geometry.setTerminalPoint(new mxPoint(width, 0), false);
-       cells[0].geometry.relative = true;
-       cells[0].edge = true;
-
-       return this.createEdgeTemplateFromCells(cells, width, height, title,
-               showLabel);
-};
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createEdgeTemplateFromCells = function(cells, width, height,
-       title, showLabel) {
-       var elt = this.createItem(cells, title, showLabel);
-       this.createDragSource(elt, this.createDropHandler(cells, false), this.createDragPreview(
-               width, height));
-
-       // Installs the default edge
-       var graph = this.editorUi.editor.graph;
-       mxEvent.addListener(elt, 'click', mxUtils.bind(this, function(evt) {
-               if (this.installEdges) {
-                       graph.setDefaultEdge(cells[0]);
-               }
-
-               // Highlights the entry for 200ms
-               elt.style.backgroundColor = '#ffffff';
-
-               window.setTimeout(function() {
-                       elt.style.backgroundColor = '';
-               }, 300);
-
-               mxEvent.consume(evt);
-       }));
-
-       // Shows a tooltip with the rendered cell
-       touchStyle = false;
-       if (!touchStyle) {
-               mxEvent.addListener(elt, 'mousemove', mxUtils.bind(this, function(evt) {
-                       this.showTooltip(elt, cells, title, showLabel);
-               }));
-       }
-
-       return elt;
-};
-
-/**
- * Adds the given palette.
- */
-Sidebar.prototype.addPalette = function(id, title, expanded, onInit) {
-       var elt = this.createTitle(title);
-       this.container.appendChild(elt);
-
-       var div = document.createElement('div');
-       div.className = 'geSidebar';
-
-       if (expanded) {
-               onInit(div);
-               onInit = null;
-       } else {
-               div.style.display = 'none';
-       }
-
-       this.addFoldingHandler(elt, div, onInit);
-
-       var outer = document.createElement('div');
-       outer.appendChild(div);
-       this.container.appendChild(outer);
-
-       // Keeps references to the DOM nodes
-       if (id != null) {
-               this.palettes[id] = [elt, outer];
-       }
-};
-
-/**
- * Create the given title element.
- */
-Sidebar.prototype.addFoldingHandler = function(title, content, funct) {
-       var initialized = false;
-
-       title.style.backgroundImage = (content.style.display == 'none') ?
-               'url(' + IMAGE_PATH + '/collapsed.gif)' : 'url(' + IMAGE_PATH +
-               '/expanded.gif)';
-       title.style.backgroundRepeat = 'no-repeat';
-       title.style.backgroundPosition = '100% 50%';
-
-       mxEvent.addListener(title, 'click', function(evt) {
-               if (content.style.display == 'none') {
-                       if (!initialized) {
-                               initialized = true;
-
-                               if (funct != null) {
-                                       title.style.cursor = 'wait';
-                                       window.setTimeout(function() {
-                                               funct(content);
-                                               title.style.cursor = '';
-                                       }, 0);
-                               }
-                       }
-
-                       title.style.backgroundImage = 'url(' + IMAGE_PATH + '/expanded.gif)';
-                       content.style.display = 'block';
-               } else {
-                       title.style.backgroundImage = 'url(' + IMAGE_PATH + '/collapsed.gif)';
-                       content.style.display = 'none';
-               }
-
-               mxEvent.consume(evt);
-       });
-};
-
-/**
- * Removes the palette for the given ID.
- */
-Sidebar.prototype.removePalette = function(id) {
-       var elts = this.palettes[id];
-
-       if (elts != null) {
-               this.palettes[id] = null;
-
-               for (var i = 0; i < elts.length; i++) {
-                       this.container.removeChild(elts[i]);
-               }
-
-               return true;
-       }
-
-       return false;
-};
-
-/**
- * Adds the given image palette.
- */
-Sidebar.prototype.addImagePalette = function(id, title, prefix, postfix, items,
-       titles) {
-       // Giuseppe Careri
-       // Expanded Sidebar only entry
-       this.addPalette(id, title, (id === 'entry'), mxUtils.bind(this, function(
-               content) {
-               var showTitles = titles != null;
-
-               for (var i = 0; i < items.length; i++) {
-                       var icon = prefix + items[i] + postfix;
-                       content.appendChild(this.createVertexTemplate('image;image=' + icon, 80,
-                               80, items[i], (showTitles) ? titles[i] : null, showTitles));
-               }
-       }));
-};
-// ***********modified***************
-// Sidebar.prototype.addBpmnPalette = function(dir, expand) {
-//     //Abigael Dawit
-//
-//     var fns = [
-//             this.createVertexTemplate(
-//                     'text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;',
-//                     40, 20, 'Text', 'Text', null),
-//             //this.createVertexTemplate('shape=ext;rounded=1;whiteSpace=wrap;dashed=1;dashPattern=1 4;', 120, 80, 'Event\nSub-Process', 'Event Sub-Process', null),
-//             this.createVertexTemplate('shape=swimlane;whiteSpace=wrap;startSize=60;',
-//                     120, 160, 'Container', 'Container', null),
-//             //      this.createVertexTemplate('shape=ellipse;', 120, 160, 'Ellips', 'Ellipse', null)
-//             this.createVertexTemplate(
-//                     'shape=swimlane;html=1;horizontal=0;swimlaneFillColor=white;swimlaneLine=0;fillColor=none;rounded=1;verticalAlign=middle',
-//                     300, 120, 'Lane', 'Lane', null)
-//
-//     ]
-//
-//     this.addPalette('utility', 'Utility ', false, mxUtils.bind(this, function(
-//             content) {
-//             //var showTitles = titles != null;
-//             for (var i = 0; i < fns.length; i++) {
-//                     content.appendChild(fns[i]);
-//             }
-//     }));
-//
-// };
+var _0xbfa5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x70\x61\x6C\x65\x74\x74\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x67\x72\x61\x70\x68","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x65\x64\x69\x74\x6F\x72","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x61\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x73\x74\x79\x6C\x65","\x68\x69\x64\x64\x65\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x6D\x6F\x75\x73\x65\x75\x70","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x73\x63\x72\x6F\x6C\x6C","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x68\x69\x64\x65\x54\x6F\x6F\x6C\x74\x69\x70","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x67\x65\x74\x53\x6F\x75\x72\x63\x65","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x74\x6F\x45\x6C\x65\x6D\x65\x6E\x74","\x72\x65\x6C\x61\x74\x65\x64\x54\x61\x72\x67\x65\x74","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x74\x6F\x6F\x6C\x74\x69\x70\x2E\x70\x6E\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67","\x65\x6E\x74\x72\x79","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74","\x2F","\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x73\x74\x61\x72\x74","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x69\x6E\x70\x75\x74","\x65\x6E\x64","\x61\x64\x64\x49\x6D\x61\x67\x65\x50\x61\x6C\x65\x74\x74\x65","\x65\x6E\x61\x62\x6C\x65\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x42\x6F\x72\x64\x65\x72","\x74\x68\x75\x6D\x62\x42\x6F\x72\x64\x65\x72","\x74\x6F\x6F\x6C\x74\x69\x70\x44\x65\x6C\x61\x79","\x69\x6E\x73\x74\x61\x6C\x6C\x45\x64\x67\x65\x73","\x67\x65\x61\x72\x49\x6D\x61\x67\x65","\x2F\x63\x6C\x69\x70\x61\x72\x74\x2F\x47\x65\x61\x72\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x74\x68\x75\x6D\x62\x57\x69\x64\x74\x68","\x74\x68\x75\x6D\x62\x48\x65\x69\x67\x68\x74","\x74\x68\x75\x6D\x62\x50\x61\x64\x64\x69\x6E\x67","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x53\x69\x7A\x65","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70","\x74\x68\x72\x65\x61\x64","\x63\x6C\x65\x61\x72\x54\x69\x6D\x65\x6F\x75\x74","\x74\x6F\x6F\x6C\x74\x69\x70","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72\x54\x6F\x6F\x6C\x74\x69\x70","\x67\x72\x61\x70\x68\x32","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x76\x69\x65\x77","\x49\x53\x5F\x53\x56\x47","\x63\x61\x6E\x76\x61\x73","\x72\x65\x6C\x61\x74\x69\x76\x65","\x74\x6F\x6F\x6C\x74\x69\x70\x49\x6D\x61\x67\x65","\x63\x72\x65\x61\x74\x65\x49\x6D\x61\x67\x65","\x77\x69\x64\x74\x68","\x31\x34\x70\x78","\x68\x65\x69\x67\x68\x74","\x32\x37\x70\x78","\x64\x69\x73\x70\x6C\x61\x79","\x62\x6C\x6F\x63\x6B","\x6C\x61\x62\x65\x6C\x73\x56\x69\x73\x69\x62\x6C\x65","\x63\x6C\x65\x61\x72","\x6D\x6F\x64\x65\x6C","\x61\x64\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x76\x69\x73\x69\x62\x6C\x65","\x70\x78","\x6C\x65\x6E\x67\x74\x68","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70","\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20\x67\x72\x61\x79","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x65\x6E\x74\x65\x72","\x31\x30\x30\x25","\x70\x61\x64\x64\x69\x6E\x67\x54\x6F\x70","\x32\x70\x78","\x36\x70\x78","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","","\x77\x72\x69\x74\x65","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x74\x6F\x70","\x6E\x6F\x6E\x65","\x78","\x6D\x69\x6E","\x79","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x73\x70\x6C\x69\x74\x53\x69\x7A\x65","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x6D\x61\x78","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x2C","\x29","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6C\x65\x66\x74","\x64\x72\x61\x77\x50\x61\x6E\x65","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x54\x69\x74\x6C\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x54\x69\x74\x6C\x65","\x63\x72\x65\x61\x74\x65\x54\x68\x75\x6D\x62","\x73\x63\x61\x6C\x65\x41\x6E\x64\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x66\x6C\x6F\x6F\x72","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x4E\x4F\x5F\x46\x4F","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x6F\x77\x6E\x65\x72\x53\x56\x47\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x43\x61\x6E\x76\x61\x73","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x49\x53\x5F\x49\x45\x36","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x49\x6D\x61\x67\x65","\x63\x75\x72\x73\x6F\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x6D\x69\x6E\x57\x69\x64\x74\x68","\x6D\x69\x6E\x48\x65\x69\x67\x68\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x6E\x6F\x77\x72\x61\x70","\x49\x53\x5F\x49\x45","\x34\x70\x78","\x63\x72\x65\x61\x74\x65\x49\x74\x65\x6D","\x67\x65\x49\x74\x65\x6D","\x70\x61\x64\x64\x69\x6E\x67","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x63\x72\x65\x61\x74\x65\x44\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x49\x6D\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x56\x61\x6C\x69\x64\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x69\x73\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x70\x6C\x69\x74\x54\x61\x72\x67\x65\x74","\x73\x70\x6C\x69\x74\x45\x64\x67\x65","\x69\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x50\x72\x65\x76\x69\x65\x77","\x62\x6F\x72\x64\x65\x72","\x31\x70\x78\x20\x64\x61\x73\x68\x65\x64\x20\x62\x6C\x61\x63\x6B","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x53\x6F\x75\x72\x63\x65","\x61\x75\x74\x6F\x73\x63\x72\x6F\x6C\x6C","\x6D\x61\x6B\x65\x44\x72\x61\x67\x67\x61\x62\x6C\x65","\x67\x65\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x61\x70\x70\x6C\x79","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x6D\x6F\x75\x73\x65\x55\x70","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x47\x72\x61\x70\x68","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x61\x62\x73","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x64\x72\x6F\x70","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6C\x61\x62\x65\x6C","\x66\x6F\x72\x45\x61\x63\x68","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65","\x69\x64","\x74\x65\x78\x74","\x73\x74\x61\x74\x65","\x30","\x4F\x46\x46","\x6F\x74\x68\x65\x72","\x61\x64\x64","\x76\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x69\x73\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x65\x64\x67\x65","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x23\x66\x66\x66\x66\x66\x66","\x61\x64\x64\x50\x61\x6C\x65\x74\x74\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72","\x61\x64\x64\x46\x6F\x6C\x64\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x2F\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x2E\x67\x69\x66\x29","\x2F\x65\x78\x70\x61\x6E\x64\x65\x64\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x31\x30\x30\x25\x20\x35\x30\x25","\x77\x61\x69\x74","\x72\x65\x6D\x6F\x76\x65\x50\x61\x6C\x65\x74\x74\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x69\x6D\x61\x67\x65\x3B\x69\x6D\x61\x67\x65\x3D"];_0xbfa5[0];function Sidebar(_0xa4e5x2,_0xa4e5x3){this[_0xbfa5[1]]= _0xa4e5x2;this[_0xbfa5[2]]= _0xa4e5x3;this[_0xbfa5[3]]=  new Object();this[_0xbfa5[4]]= true;this[_0xbfa5[5]]=  new Graph(document[_0xbfa5[7]](_0xbfa5[6]),null,null,this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]][_0xbfa5[8]]());this[_0xbfa5[5]][_0xbfa5[10]]= false;this[_0xbfa5[5]][_0xbfa5[11]]= false;this[_0xbfa5[5]][_0xbfa5[12]](false);this[_0xbfa5[5]][_0xbfa5[13]]= false;this[_0xbfa5[5]][_0xbfa5[14]](false);this[_0xbfa5[5]][_0xbfa5[15]](false);this[_0xbfa5[5]][_0xbfa5[2]][_0xbfa5[17]][_0xbfa5[16]]= _0xbfa5[18];this[_0xbfa5[5]][_0xbfa5[2]][_0xbfa5[17]][_0xbfa5[19]]= _0xbfa5[20];document[_0xbfa5[22]][_0xbfa5[21]](this[_0xbfa5[5]][_0xbfa5[2]]);if(!mxClient[_0xbfa5[23]]){mxEvent[_0xbfa5[26]](document,_0xbfa5[24],mxUtils[_0xbfa5[25]](this,function(){this[_0xbfa5[4]]= true}));mxEvent[_0xbfa5[26]](_0xa4e5x3,_0xbfa5[27],mxUtils[_0xbfa5[25]](this,function(){this[_0xbfa5[4]]= true}));mxEvent[_0xbfa5[26]](document,_0xbfa5[28],mxUtils[_0xbfa5[25]](this,function(){this[_0xbfa5[4]]= false;this[_0xbfa5[29]]()}));mxEvent[_0xbfa5[26]](document,_0xbfa5[30],mxUtils[_0xbfa5[25]](this,function(_0xa4e5x4){var _0xa4e5x5=mxEvent[_0xbfa5[31]](_0xa4e5x4);while(_0xa4e5x5!= null){if(_0xa4e5x5== this[_0xbfa5[32]]){return};_0xa4e5x5= _0xa4e5x5[_0xbfa5[33]]};this[_0xbfa5[29]]()}));mxEvent[_0xbfa5[26]](document,_0xbfa5[34],mxUtils[_0xbfa5[25]](this,function(_0xa4e5x4){if(_0xa4e5x4[_0xbfa5[35]]== null&& _0xa4e5x4[_0xbfa5[36]]== null){this[_0xbfa5[29]]()}}))};this[_0xbfa5[37]](); new Image()[_0xbfa5[38]]= IMAGE_PATH+ _0xbfa5[39]}Sidebar[_0xbfa5[40]][_0xbfa5[37]]= function(){var _0xa4e5x6=STENCIL_PATH;console[_0xbfa5[41]](_0xa4e5x6);this[_0xbfa5[51]](_0xbfa5[42],mxResources[_0xbfa5[44]](_0xbfa5[43]),_0xa4e5x6+ _0xbfa5[45],_0xbfa5[46],[_0xbfa5[47],_0xbfa5[48],_0xbfa5[49],_0xbfa5[50]],[mxResources[_0xbfa5[44]](_0xbfa5[47]),mxResources[_0xbfa5[44]](_0xbfa5[48]),mxResources[_0xbfa5[44]](_0xbfa5[49]),mxResources[_0xbfa5[44]](_0xbfa5[50])])};Sidebar[_0xbfa5[40]][_0xbfa5[52]]= !mxClient[_0xbfa5[23]];Sidebar[_0xbfa5[40]][_0xbfa5[53]]= 16;Sidebar[_0xbfa5[40]][_0xbfa5[54]]= 3;Sidebar[_0xbfa5[40]][_0xbfa5[55]]= 300;Sidebar[_0xbfa5[40]][_0xbfa5[56]]= true;Sidebar[_0xbfa5[40]][_0xbfa5[57]]= STENCIL_PATH+ _0xbfa5[58];Sidebar[_0xbfa5[40]][_0xbfa5[59]]= 34;Sidebar[_0xbfa5[40]][_0xbfa5[60]]= 34;Sidebar[_0xbfa5[40]][_0xbfa5[61]]= 2;Sidebar[_0xbfa5[40]][_0xbfa5[62]]= 9;Sidebar[_0xbfa5[40]][_0xbfa5[63]]= false;Sidebar[_0xbfa5[40]][_0xbfa5[64]]= false;Sidebar[_0xbfa5[40]][_0xbfa5[65]]= function(_0xa4e5x7,_0xa4e5x8,_0xa4e5x9,_0xa4e5xa){if(this[_0xbfa5[52]]&& this[_0xbfa5[4]]){if(this[_0xbfa5[32]]!= _0xa4e5x7){if(this[_0xbfa5[66]]!= null){window[_0xbfa5[67]](this[_0xbfa5[66]]);this[_0xbfa5[66]]= null};var _0xa4e5xb=mxUtils[_0xbfa5[25]](this,function(){if(this[_0xbfa5[68]]== null){this[_0xbfa5[68]]= document[_0xbfa5[7]](_0xbfa5[6]);this[_0xbfa5[68]][_0xbfa5[69]]= _0xbfa5[70];document[_0xbfa5[22]][_0xbfa5[21]](this[_0xbfa5[68]]);this[_0xbfa5[71]]=  new Graph(this[_0xbfa5[68]],null,null,this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]][_0xbfa5[8]]());this[_0xbfa5[71]][_0xbfa5[73]][_0xbfa5[72]](this[_0xbfa5[53]],this[_0xbfa5[53]]);this[_0xbfa5[71]][_0xbfa5[10]]= false;this[_0xbfa5[71]][_0xbfa5[11]]= false;this[_0xbfa5[71]][_0xbfa5[13]]= false;this[_0xbfa5[71]][_0xbfa5[14]](false);this[_0xbfa5[71]][_0xbfa5[12]](false);this[_0xbfa5[71]][_0xbfa5[15]](false);if(!mxClient[_0xbfa5[74]]){this[_0xbfa5[71]][_0xbfa5[73]][_0xbfa5[75]][_0xbfa5[17]][_0xbfa5[19]]= _0xbfa5[76]};this[_0xbfa5[77]]= mxUtils[_0xbfa5[78]](IMAGE_PATH+ _0xbfa5[39]);this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[19]]= _0xbfa5[20];this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[79]]= _0xbfa5[80];this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[81]]= _0xbfa5[82];document[_0xbfa5[22]][_0xbfa5[21]](this[_0xbfa5[77]])};this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[84];this[_0xbfa5[71]][_0xbfa5[85]]= (_0xa4e5xa== null|| _0xa4e5xa);this[_0xbfa5[71]][_0xbfa5[87]][_0xbfa5[86]]();this[_0xbfa5[71]][_0xbfa5[88]](_0xa4e5x8);var _0xa4e5xc=this[_0xbfa5[71]][_0xbfa5[89]]();var _0xa4e5xd=_0xa4e5xc[_0xbfa5[79]]+ 2* this[_0xbfa5[53]];var _0xa4e5xe=_0xa4e5xc[_0xbfa5[81]]+ 2* this[_0xbfa5[53]];if(mxClient[_0xbfa5[90]]){_0xa4e5xd+= 4;_0xa4e5xe+= 4;this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[91]]= _0xbfa5[18]}else {this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[91]]= _0xbfa5[92]};this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[16]]= _0xbfa5[92];this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[79]]= _0xa4e5xd+ _0xbfa5[93];if(this[_0xbfa5[64]]&& _0xa4e5x9!= null&& _0xa4e5x9[_0xbfa5[94]]> 0){if(this[_0xbfa5[95]]== null){this[_0xbfa5[95]]= document[_0xbfa5[7]](_0xbfa5[6]);this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[96]]= _0xbfa5[97];this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[98]]= _0xbfa5[99];this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[79]]= _0xbfa5[100];this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[91]]= _0xbfa5[18];if(mxClient[_0xbfa5[74]]){this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[101]]= _0xbfa5[102]}else {this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[19]]= _0xbfa5[20];this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[101]]= _0xbfa5[103]};this[_0xbfa5[68]][_0xbfa5[21]](this[_0xbfa5[95]])}else {this[_0xbfa5[95]][_0xbfa5[104]]= _0xbfa5[105]};this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[105];mxUtils[_0xbfa5[106]](this[_0xbfa5[95]],_0xa4e5x9);var _0xa4e5xf=this[_0xbfa5[95]][_0xbfa5[107]]+ 10;_0xa4e5xe+= _0xa4e5xf;if(mxClient[_0xbfa5[74]]){this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[108]]= (-_0xa4e5xf) + _0xbfa5[93]}else {_0xa4e5xe-= 6;this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[109]]= (_0xa4e5xe- _0xa4e5xf)+ _0xbfa5[93]}}else {if(this[_0xbfa5[95]]!= null&& this[_0xbfa5[95]][_0xbfa5[33]]!= null){this[_0xbfa5[95]][_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[110]}};this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[81]]= _0xa4e5xe+ _0xbfa5[93];var _0xa4e5x10=-Math[_0xbfa5[112]](0,_0xa4e5xc[_0xbfa5[111]]- this[_0xbfa5[53]]);var _0xa4e5x11=-Math[_0xbfa5[112]](0,_0xa4e5xc[_0xbfa5[113]]- this[_0xbfa5[53]]);var _0xa4e5x12=this[_0xbfa5[2]][_0xbfa5[114]]+ this[_0xbfa5[1]][_0xbfa5[115]]+ 3;var _0xa4e5x13=Math[_0xbfa5[118]](0,(this[_0xbfa5[2]][_0xbfa5[116]]+ _0xa4e5x7[_0xbfa5[116]]- this[_0xbfa5[2]][_0xbfa5[117]]- _0xa4e5xe/ 2+ 16));if(mxClient[_0xbfa5[74]]){this[_0xbfa5[71]][_0xbfa5[73]][_0xbfa5[75]][_0xbfa5[123]](_0xbfa5[119],_0xbfa5[120]+ _0xa4e5x10+ _0xbfa5[121]+ _0xa4e5x11+ _0xbfa5[122])}else {this[_0xbfa5[71]][_0xbfa5[73]][_0xbfa5[125]][_0xbfa5[17]][_0xbfa5[124]]= _0xa4e5x10+ _0xbfa5[93];this[_0xbfa5[71]][_0xbfa5[73]][_0xbfa5[125]][_0xbfa5[17]][_0xbfa5[109]]= _0xa4e5x11+ _0xbfa5[93]};_0xa4e5x13+= 90;this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[19]]= _0xbfa5[20];this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[124]]= _0xa4e5x12+ _0xbfa5[93];this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[109]]= _0xa4e5x13+ _0xbfa5[93];this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[124]]= (_0xa4e5x12- 13)+ _0xbfa5[93];this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[109]]= (_0xa4e5x13+ _0xa4e5xe/ 2- 13)+ _0xbfa5[93]});if(this[_0xbfa5[68]]!= null&& this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[83]]!= _0xbfa5[110]){_0xa4e5xb()}else {this[_0xbfa5[66]]= window[_0xbfa5[126]](_0xa4e5xb,this[_0xbfa5[55]])};this[_0xbfa5[32]]= _0xa4e5x7}}};Sidebar[_0xbfa5[40]][_0xbfa5[29]]= function(){if(this[_0xbfa5[66]]!= null){window[_0xbfa5[67]](this[_0xbfa5[66]]);this[_0xbfa5[66]]= null};if(this[_0xbfa5[68]]!= null){this[_0xbfa5[68]][_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[110];this[_0xbfa5[77]][_0xbfa5[17]][_0xbfa5[16]]= _0xbfa5[18];this[_0xbfa5[32]]= null}};Sidebar[_0xbfa5[40]][_0xbfa5[127]]= function(_0xa4e5x14){var _0xa4e5x7=document[_0xbfa5[7]](_0xbfa5[128]);_0xa4e5x7[_0xbfa5[123]](_0xbfa5[129],_0xbfa5[130]);_0xa4e5x7[_0xbfa5[69]]= _0xbfa5[131];mxUtils[_0xbfa5[106]](_0xa4e5x7,_0xa4e5x14);return _0xa4e5x7};Sidebar[_0xbfa5[40]][_0xbfa5[132]]= function(_0xa4e5x8,_0xa4e5xd,_0xa4e5xe,_0xa4e5x15,_0xa4e5x9,_0xa4e5xa){this[_0xbfa5[5]][_0xbfa5[85]]= (_0xa4e5xa== null|| _0xa4e5xa);this[_0xbfa5[5]][_0xbfa5[73]][_0xbfa5[133]](1,0,0);this[_0xbfa5[5]][_0xbfa5[88]](_0xa4e5x8);var _0xa4e5xc=this[_0xbfa5[5]][_0xbfa5[89]]();var _0xa4e5x16=this[_0xbfa5[54]];var _0xa4e5x17=Math[_0xbfa5[112]]((_0xa4e5xd- 2)/ (_0xa4e5xc[_0xbfa5[79]]- _0xa4e5xc[_0xbfa5[111]]+ _0xa4e5x16),(_0xa4e5xe- 2)/ (_0xa4e5xc[_0xbfa5[81]]- _0xa4e5xc[_0xbfa5[113]]+ _0xa4e5x16));var _0xa4e5x10=-Math[_0xbfa5[112]](_0xa4e5xc[_0xbfa5[111]],0);var _0xa4e5x11=-Math[_0xbfa5[112]](_0xa4e5xc[_0xbfa5[113]],0);this[_0xbfa5[5]][_0xbfa5[73]][_0xbfa5[133]](_0xa4e5x17,_0xa4e5x10,_0xa4e5x11);_0xa4e5xc= this[_0xbfa5[5]][_0xbfa5[89]]();var _0xa4e5x18=Math[_0xbfa5[118]](0,Math[_0xbfa5[134]]((_0xa4e5xd- _0xa4e5xc[_0xbfa5[79]]- _0xa4e5xc[_0xbfa5[111]])/ 2));var _0xa4e5xf=Math[_0xbfa5[118]](0,Math[_0xbfa5[134]]((_0xa4e5xe- _0xa4e5xc[_0xbfa5[81]]- _0xa4e5xc[_0xbfa5[113]])/ 2));var _0xa4e5x19=null;if(this[_0xbfa5[5]][_0xbfa5[135]]== mxConstants[_0xbfa5[136]]&& !mxClient[_0xbfa5[137]]){_0xa4e5x19= this[_0xbfa5[5]][_0xbfa5[73]][_0xbfa5[140]]()[_0xbfa5[139]][_0xbfa5[138]](true)}else {_0xa4e5x19= this[_0xbfa5[5]][_0xbfa5[2]][_0xbfa5[138]](false);_0xa4e5x19[_0xbfa5[104]]= this[_0xbfa5[5]][_0xbfa5[2]][_0xbfa5[104]]};this[_0xbfa5[5]][_0xbfa5[141]]()[_0xbfa5[86]]();if(mxClient[_0xbfa5[142]]){_0xa4e5x15[_0xbfa5[17]][_0xbfa5[143]]= _0xbfa5[144]+ this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[145]]+ _0xbfa5[122]};var _0xa4e5x1a=3;_0xa4e5x19[_0xbfa5[17]][_0xbfa5[19]]= _0xbfa5[76];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[91]]= _0xbfa5[18];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[146]]= _0xbfa5[147];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[124]]= (_0xa4e5x18+ _0xa4e5x1a)+ _0xbfa5[93];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[109]]= (_0xa4e5xf+ _0xa4e5x1a)+ _0xbfa5[93];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[79]]= _0xa4e5xd+ _0xbfa5[93];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[81]]= _0xa4e5xe+ _0xbfa5[93];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[16]]= _0xbfa5[105];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[148]]= _0xbfa5[105];_0xa4e5x19[_0xbfa5[17]][_0xbfa5[149]]= _0xbfa5[105];_0xa4e5x15[_0xbfa5[21]](_0xa4e5x19);if(this[_0xbfa5[63]]&& _0xa4e5x9!= null){var _0xa4e5x1b=(mxClient[_0xbfa5[90]])?2* this[_0xbfa5[61]]+ 2:0;_0xa4e5x15[_0xbfa5[17]][_0xbfa5[81]]= (this[_0xbfa5[60]]+ _0xa4e5x1b+ this[_0xbfa5[62]]+ 8)+ _0xbfa5[93];var _0xa4e5x1c=document[_0xbfa5[7]](_0xbfa5[6]);_0xa4e5x1c[_0xbfa5[17]][_0xbfa5[150]]= this[_0xbfa5[62]]+ _0xbfa5[93];_0xa4e5x1c[_0xbfa5[17]][_0xbfa5[98]]= _0xbfa5[99];_0xa4e5x1c[_0xbfa5[17]][_0xbfa5[151]]= _0xbfa5[152];if(mxClient[_0xbfa5[153]]){_0xa4e5x1c[_0xbfa5[17]][_0xbfa5[81]]= (this[_0xbfa5[62]]+ 12)+ _0xbfa5[93]};_0xa4e5x1c[_0xbfa5[17]][_0xbfa5[101]]= _0xbfa5[154];mxUtils[_0xbfa5[106]](_0xa4e5x1c,_0xa4e5x9);_0xa4e5x15[_0xbfa5[21]](_0xa4e5x1c)}};Sidebar[_0xbfa5[40]][_0xbfa5[155]]= function(_0xa4e5x8,_0xa4e5x9,_0xa4e5xa){var _0xa4e5x7=document[_0xbfa5[7]](_0xbfa5[128]);_0xa4e5x7[_0xbfa5[123]](_0xbfa5[129],_0xbfa5[130]);_0xa4e5x7[_0xbfa5[69]]= _0xbfa5[156];_0xa4e5x7[_0xbfa5[17]][_0xbfa5[91]]= _0xbfa5[18];var _0xa4e5x1b=(mxClient[_0xbfa5[90]])?8+ 2* this[_0xbfa5[61]]:6;_0xa4e5x7[_0xbfa5[17]][_0xbfa5[79]]= (this[_0xbfa5[59]]+ _0xa4e5x1b)+ _0xbfa5[93];_0xa4e5x7[_0xbfa5[17]][_0xbfa5[81]]= (this[_0xbfa5[60]]+ _0xa4e5x1b)+ _0xbfa5[93];_0xa4e5x7[_0xbfa5[17]][_0xbfa5[157]]= this[_0xbfa5[61]]+ _0xbfa5[93];mxEvent[_0xbfa5[26]](_0xa4e5x7,_0xbfa5[158],function(_0xa4e5x4){mxEvent[_0xbfa5[159]](_0xa4e5x4)});this[_0xbfa5[132]](_0xa4e5x8,this[_0xbfa5[59]],this[_0xbfa5[60]],_0xa4e5x7,_0xa4e5x9,_0xa4e5xa);return _0xa4e5x7};Sidebar[_0xbfa5[40]][_0xbfa5[160]]= function(_0xa4e5x8,_0xa4e5x1d){return function(_0xa4e5x1e,_0xa4e5x4,_0xa4e5x1f,_0xa4e5x20,_0xa4e5x21){if(_0xa4e5x1e[_0xbfa5[161]]()){_0xa4e5x8= _0xa4e5x1e[_0xbfa5[162]](_0xa4e5x8);if(_0xa4e5x8[_0xbfa5[94]]> 0){var _0xa4e5x22=(_0xa4e5x1f!= null)?_0xa4e5x1e[_0xbfa5[163]](_0xa4e5x1f,_0xa4e5x8,_0xa4e5x4):false;var _0xa4e5x23=null;if(_0xa4e5x1f!= null&&  !_0xa4e5x22){_0xa4e5x1f= null};if(_0xa4e5x1d&& _0xa4e5x1e[_0xbfa5[164]]()&& _0xa4e5x1e[_0xbfa5[165]](_0xa4e5x1f,_0xa4e5x8,_0xa4e5x4)){_0xa4e5x1e[_0xbfa5[166]](_0xa4e5x1f,_0xa4e5x8,null,_0xa4e5x20,_0xa4e5x21);_0xa4e5x23= _0xa4e5x8}else {if(_0xa4e5x8[_0xbfa5[94]]> 0){_0xa4e5x23= _0xa4e5x1e[_0xbfa5[167]](_0xa4e5x8,_0xa4e5x20,_0xa4e5x21,_0xa4e5x1f)}};if(_0xa4e5x23!= null&& _0xa4e5x23[_0xbfa5[94]]> 0){_0xa4e5x1e[_0xbfa5[168]](_0xa4e5x23[0]);_0xa4e5x1e[_0xbfa5[169]](_0xa4e5x23)}}}}};Sidebar[_0xbfa5[40]][_0xbfa5[170]]= function(_0xa4e5xd,_0xa4e5xe){var _0xa4e5x7=document[_0xbfa5[7]](_0xbfa5[6]);_0xa4e5x7[_0xbfa5[17]][_0xbfa5[171]]= _0xbfa5[172];_0xa4e5x7[_0xbfa5[17]][_0xbfa5[79]]= _0xa4e5xd+ _0xbfa5[93];_0xa4e5x7[_0xbfa5[17]][_0xbfa5[81]]= _0xa4e5xe+ _0xbfa5[93];return _0xa4e5x7};Sidebar[_0xbfa5[40]][_0xbfa5[173]]= function(_0xa4e5x7,_0xa4e5x24,_0xa4e5x25){var _0xa4e5x26=mxUtils[_0xbfa5[175]](_0xa4e5x7,this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]],_0xa4e5x24,_0xa4e5x25,0,0,this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]][_0xbfa5[174]],true,true);_0xa4e5x26[_0xbfa5[176]]= function(_0xa4e5x1e,_0xa4e5x20,_0xa4e5x21){var _0xa4e5x1f=mxDragSource[_0xbfa5[40]][_0xbfa5[176]][_0xbfa5[177]](this,arguments);if(!_0xa4e5x1e[_0xbfa5[178]](_0xa4e5x1f)){_0xa4e5x1f= null};return _0xa4e5x1f};return _0xa4e5x26};Sidebar[_0xbfa5[40]][_0xbfa5[179]]= function(_0xa4e5x7,_0xa4e5x27){var _0xa4e5x1e=this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]];var _0xa4e5x28=null;mxEvent[_0xbfa5[182]](_0xa4e5x7,function(_0xa4e5x4){_0xa4e5x28=  new mxPoint(mxEvent[_0xbfa5[180]](_0xa4e5x4),mxEvent[_0xbfa5[181]](_0xa4e5x4))});var _0xa4e5x29=_0xa4e5x27[_0xbfa5[183]];_0xa4e5x27[_0xbfa5[183]]= function(_0xa4e5x4){if(!mxEvent[_0xbfa5[184]](_0xa4e5x4)&& this[_0xbfa5[185]]== null&& _0xa4e5x28!= null){var _0xa4e5x2a=_0xa4e5x1e[_0xbfa5[186]];if(Math[_0xbfa5[187]](_0xa4e5x28[_0xbfa5[111]]- mxEvent[_0xbfa5[180]](_0xa4e5x4))<= _0xa4e5x2a&& Math[_0xbfa5[187]](_0xa4e5x28[_0xbfa5[113]]- mxEvent[_0xbfa5[181]](_0xa4e5x4))<= _0xa4e5x2a){var _0xa4e5x2b=_0xa4e5x1e[_0xbfa5[188]]();_0xa4e5x27[_0xbfa5[189]](_0xa4e5x1e,_0xa4e5x4,null,_0xa4e5x2b,_0xa4e5x2b)}};_0xa4e5x29[_0xbfa5[177]](this,arguments);_0xa4e5x28= null}};Sidebar[_0xbfa5[40]][_0xbfa5[190]]= function(_0xa4e5x2c,_0xa4e5x14,_0xa4e5x2d,_0xa4e5x2e){var _0xa4e5x2f=mxUtils[_0xbfa5[190]]();var _0xa4e5x19=_0xa4e5x2f[_0xbfa5[7]](_0xa4e5x2c);_0xa4e5x19[_0xbfa5[123]](_0xbfa5[191],_0xa4e5x14);_0xa4e5x2d[_0xbfa5[192]](function(_0xa4e5x30,_0xa4e5x31){_0xa4e5x19[_0xbfa5[123]](_0xa4e5x30,_0xa4e5x2e[_0xa4e5x31]?_0xa4e5x2e[_0xa4e5x31]:_0xbfa5[105])});return _0xa4e5x19};Sidebar[_0xbfa5[40]][_0xbfa5[193]]= function(_0xa4e5x32,_0xa4e5xd,_0xa4e5xe,_0xa4e5x33,_0xa4e5x9,_0xa4e5xa){var _0xa4e5x2d=[];var _0xa4e5x2e=[];switch(_0xa4e5x33){case _0xbfa5[47]:_0xa4e5x2d= [_0xbfa5[194],_0xbfa5[195],_0xbfa5[196]];_0xa4e5x2e= [_0xbfa5[197],_0xbfa5[105],_0xbfa5[198]];break;case _0xbfa5[50]:_0xa4e5x2d= [_0xbfa5[194],_0xbfa5[195]];_0xa4e5x2e= [_0xbfa5[197],_0xbfa5[105]];break;case _0xbfa5[48]:_0xa4e5x2d= [_0xbfa5[194],_0xbfa5[48],_0xbfa5[199]];_0xa4e5x2e= [_0xbfa5[197],_0xbfa5[105]];break;case _0xbfa5[49]:_0xa4e5x2d= [_0xbfa5[194],_0xbfa5[48],_0xbfa5[200]];_0xa4e5x2e= [_0xbfa5[197],_0xbfa5[105]];break;default:_0xa4e5x2d= [];_0xa4e5x2e= [];break};var _0xa4e5x19=this[_0xbfa5[190]](_0xa4e5x33,_0xa4e5x9,_0xa4e5x2d,_0xa4e5x2e);var _0xa4e5x8=[ new mxCell(_0xa4e5x19, new mxGeometry(0,0,_0xa4e5xd,_0xa4e5xe),_0xa4e5x32)];_0xa4e5x8[0][_0xbfa5[201]]= true;return this[_0xbfa5[202]](_0xa4e5x8,_0xa4e5xd,_0xa4e5xe,_0xa4e5x9,_0xa4e5xa)};Sidebar[_0xbfa5[40]][_0xbfa5[202]]= function(_0xa4e5x8,_0xa4e5xd,_0xa4e5xe,_0xa4e5x9,_0xa4e5xa){var _0xa4e5x7=this[_0xbfa5[155]](_0xa4e5x8,_0xa4e5x9,_0xa4e5xa);var _0xa4e5x27=this[_0xbfa5[173]](_0xa4e5x7,this[_0xbfa5[160]](_0xa4e5x8,true),this[_0xbfa5[170]](_0xa4e5xd,_0xa4e5xe));this[_0xbfa5[179]](_0xa4e5x7,_0xa4e5x27);_0xa4e5x27[_0xbfa5[203]]= mxUtils[_0xbfa5[25]](this,function(){return this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]][_0xbfa5[205]][_0xbfa5[204]]});if(!touchStyle){mxEvent[_0xbfa5[26]](_0xa4e5x7,_0xbfa5[30],mxUtils[_0xbfa5[25]](this,function(_0xa4e5x4){this[_0xbfa5[65]](_0xa4e5x7,_0xa4e5x8,_0xa4e5x9,_0xa4e5xa)}))};return _0xa4e5x7};Sidebar[_0xbfa5[40]][_0xbfa5[206]]= function(_0xa4e5x32,_0xa4e5xd,_0xa4e5xe,_0xa4e5x33,_0xa4e5x9,_0xa4e5xa){var _0xa4e5x8=[ new mxCell((_0xa4e5x33!= null)?_0xa4e5x33:_0xbfa5[105], new mxGeometry(0,0,_0xa4e5xd,_0xa4e5xe),_0xa4e5x32)];_0xa4e5x8[0][_0xbfa5[208]][_0xbfa5[207]]( new mxPoint(0,_0xa4e5xe),true);_0xa4e5x8[0][_0xbfa5[208]][_0xbfa5[207]]( new mxPoint(_0xa4e5xd,0),false);_0xa4e5x8[0][_0xbfa5[208]][_0xbfa5[76]]= true;_0xa4e5x8[0][_0xbfa5[209]]= true;return this[_0xbfa5[210]](_0xa4e5x8,_0xa4e5xd,_0xa4e5xe,_0xa4e5x9,_0xa4e5xa)};Sidebar[_0xbfa5[40]][_0xbfa5[210]]= function(_0xa4e5x8,_0xa4e5xd,_0xa4e5xe,_0xa4e5x9,_0xa4e5xa){var _0xa4e5x7=this[_0xbfa5[155]](_0xa4e5x8,_0xa4e5x9,_0xa4e5xa);this[_0xbfa5[173]](_0xa4e5x7,this[_0xbfa5[160]](_0xa4e5x8,false),this[_0xbfa5[170]](_0xa4e5xd,_0xa4e5xe));var _0xa4e5x1e=this[_0xbfa5[1]][_0xbfa5[9]][_0xbfa5[5]];mxEvent[_0xbfa5[26]](_0xa4e5x7,_0xbfa5[158],mxUtils[_0xbfa5[25]](this,function(_0xa4e5x4){if(this[_0xbfa5[56]]){_0xa4e5x1e[_0xbfa5[211]](_0xa4e5x8[0])};_0xa4e5x7[_0xbfa5[17]][_0xbfa5[212]]= _0xbfa5[213];window[_0xbfa5[126]](function(){_0xa4e5x7[_0xbfa5[17]][_0xbfa5[212]]= _0xbfa5[105]},300);mxEvent[_0xbfa5[159]](_0xa4e5x4)}));touchStyle= false;if(!touchStyle){mxEvent[_0xbfa5[26]](_0xa4e5x7,_0xbfa5[30],mxUtils[_0xbfa5[25]](this,function(_0xa4e5x4){this[_0xbfa5[65]](_0xa4e5x7,_0xa4e5x8,_0xa4e5x9,_0xa4e5xa)}))};return _0xa4e5x7};Sidebar[_0xbfa5[40]][_0xbfa5[214]]= function(_0xa4e5x34,_0xa4e5x9,_0xa4e5x35,_0xa4e5x36){var _0xa4e5x7=this[_0xbfa5[127]](_0xa4e5x9);this[_0xbfa5[2]][_0xbfa5[21]](_0xa4e5x7);var _0xa4e5x1c=document[_0xbfa5[7]](_0xbfa5[6]);_0xa4e5x1c[_0xbfa5[69]]= _0xbfa5[215];if(_0xa4e5x35){_0xa4e5x36(_0xa4e5x1c);_0xa4e5x36= null}else {_0xa4e5x1c[_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[110]};this[_0xbfa5[216]](_0xa4e5x7,_0xa4e5x1c,_0xa4e5x36);var _0xa4e5x37=document[_0xbfa5[7]](_0xbfa5[6]);_0xa4e5x37[_0xbfa5[21]](_0xa4e5x1c);this[_0xbfa5[2]][_0xbfa5[21]](_0xa4e5x37);if(_0xa4e5x34!= null){this[_0xbfa5[3]][_0xa4e5x34]= [_0xa4e5x7,_0xa4e5x37]}};Sidebar[_0xbfa5[40]][_0xbfa5[216]]= function(_0xa4e5x9,_0xa4e5x38,_0xa4e5x39){var _0xa4e5x3a=false;_0xa4e5x9[_0xbfa5[17]][_0xbfa5[143]]= (_0xa4e5x38[_0xbfa5[17]][_0xbfa5[83]]== _0xbfa5[110])?_0xbfa5[144]+ IMAGE_PATH+ _0xbfa5[217]:_0xbfa5[144]+ IMAGE_PATH+ _0xbfa5[218];_0xa4e5x9[_0xbfa5[17]][_0xbfa5[219]]= _0xbfa5[220];_0xa4e5x9[_0xbfa5[17]][_0xbfa5[221]]= _0xbfa5[222];mxEvent[_0xbfa5[26]](_0xa4e5x9,_0xbfa5[158],function(_0xa4e5x4){if(_0xa4e5x38[_0xbfa5[17]][_0xbfa5[83]]== _0xbfa5[110]){if(!_0xa4e5x3a){_0xa4e5x3a= true;if(_0xa4e5x39!= null){_0xa4e5x9[_0xbfa5[17]][_0xbfa5[146]]= _0xbfa5[223];window[_0xbfa5[126]](function(){_0xa4e5x39(_0xa4e5x38);_0xa4e5x9[_0xbfa5[17]][_0xbfa5[146]]= _0xbfa5[105]},0)}};_0xa4e5x9[_0xbfa5[17]][_0xbfa5[143]]= _0xbfa5[144]+ IMAGE_PATH+ _0xbfa5[218];_0xa4e5x38[_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[84]}else {_0xa4e5x9[_0xbfa5[17]][_0xbfa5[143]]= _0xbfa5[144]+ IMAGE_PATH+ _0xbfa5[217];_0xa4e5x38[_0xbfa5[17]][_0xbfa5[83]]= _0xbfa5[110]};mxEvent[_0xbfa5[159]](_0xa4e5x4)})};Sidebar[_0xbfa5[40]][_0xbfa5[224]]= function(_0xa4e5x34){var _0xa4e5x3b=this[_0xbfa5[3]][_0xa4e5x34];if(_0xa4e5x3b!= null){this[_0xbfa5[3]][_0xa4e5x34]= null;for(var _0xa4e5x3c=0;_0xa4e5x3c< _0xa4e5x3b[_0xbfa5[94]];_0xa4e5x3c++){this[_0xbfa5[2]][_0xbfa5[225]](_0xa4e5x3b[_0xa4e5x3c])};return true};return false};Sidebar[_0xbfa5[40]][_0xbfa5[51]]= function(_0xa4e5x34,_0xa4e5x9,_0xa4e5x3d,_0xa4e5x3e,_0xa4e5x3f,_0xa4e5x40){this[_0xbfa5[214]](_0xa4e5x34,_0xa4e5x9,(_0xa4e5x34=== _0xbfa5[42]),mxUtils[_0xbfa5[25]](this,function(_0xa4e5x38){var _0xa4e5x41=_0xa4e5x40!= null;for(var _0xa4e5x3c=0;_0xa4e5x3c< _0xa4e5x3f[_0xbfa5[94]];_0xa4e5x3c++){var _0xa4e5x42=_0xa4e5x3d+ _0xa4e5x3f[_0xa4e5x3c]+ _0xa4e5x3e;_0xa4e5x38[_0xbfa5[21]](this[_0xbfa5[193]](_0xbfa5[226]+ _0xa4e5x42,80,80,_0xa4e5x3f[_0xa4e5x3c],(_0xa4e5x41)?_0xa4e5x40[_0xa4e5x3c]:null,_0xa4e5x41))}}))}
\ No newline at end of file