Built motion from commit b5b971d.|0.0.97
[motion.git] / public / assets / plugins / square / js / Dialogs.js
index 71c1f56..391f91c 100644 (file)
@@ -1,949 +1 @@
-'use strict';
-/**
- * $Id: Dialogs.js,v 1.5 2013-01-29 17:23:31 gaudenz Exp $
- * Copyright (c) 2006-2012, JGraph Ltd
- */
-/**
- * Constructs a new dialog.
- */
-
-function createCheckbox(value) {
-       var input = document.createElement('input');
-       input.setAttribute('type', 'checkbox');
-       if (value) {
-               input.setAttribute('checked', true);
-       }
-       return input;
-}
-
-function createDropdownFromApi(path, value, option_name, option_value, editorUi, paginated) {
-       var req = new XMLHttpRequest();
-       req.open('GET', path, false); // `false` makes the request synchronous
-       req.setRequestHeader('Authorization', 'Bearer ' + editorUi.editor.data.token);
-       req.send(null);
-       var res = [];
-       if (req.status === 200) {
-               res = JSON.parse(req.response);
-       }
-       var input = document.createElement('select');
-       var option = document.createElement('option');
-       option.text = '-- None --';
-       option.value = '0';
-       input.appendChild(option);
-       var selectValues = paginated ? res.rows : res;
-       selectValues.forEach(function(elem) {
-               option = document.createElement('option');
-               option.text = elem[option_name];
-               option.value = elem[option_value];
-               option.selected = (elem[option_value] == value);
-               input.appendChild(option);
-       });
-       input.className = 'form-control select2';
-
-       return input;
-}
-
-function createGroupedDropdownFromApi(path, value, option_name, option_value, editorUi, paginated, associationField) {
-       var req = new XMLHttpRequest();
-       req.open('GET', path, false); // `false` makes the request synchronous
-       req.setRequestHeader('Authorization', 'Bearer ' + editorUi.editor.data.token);
-       req.send(null);
-       var res = [];
-       if (req.status === 200) {
-               res = JSON.parse(req.response);
-       }
-       var input = document.createElement('select');
-       var option = document.createElement('option');
-       option.text = '-- None --';
-       option.value = '0';
-       input.appendChild(option);
-       var selectValues = paginated ? res.rows : res;
-       var mainFilter = {};
-       var groupFilter = {};
-       mainFilter[associationField] = null;
-       var mainValues = _.filter(selectValues, mainFilter);
-       var groupValues = {};
-       mainValues.forEach(function(elem) {
-               option = document.createElement('option');
-               option.className = 'select-group-father';
-               option.text = elem[option_name].toUpperCase();
-               option.value = elem[option_value];
-               option.selected = (elem[option_value] == value);
-               input.appendChild(option);
-               groupFilter[associationField] = elem[option_value];
-               groupValues = _.filter(selectValues, groupFilter);
-               groupValues.forEach(function(elem) {
-                       option = document.createElement('option');
-                       option.className = 'select-group-son';
-                       option.text = '-' + _.capitalize(elem[option_name]);
-                       option.value = elem[option_value];
-                       option.selected = (elem[option_value] == value);
-                       input.appendChild(option);
-               });
-       })
-       input.className = 'form-control select2';
-
-       return input;
-}
-
-function createDropdownFromArray(array, value) {
-       var input = document.createElement('select');
-
-       for (var item in array) {
-               var option = document.createElement('option');
-               option.text = array[item];
-               option.value = item;
-               if (value > 0 || value != '')
-                       option.selected = (value === item) ? true : false;
-
-               input.appendChild(option);
-       }
-
-       input.className = 'form-control select2';
-
-       return input;
-}
-
-function Dialog(editorUi, elt, w, h, modal, closable, onClose) {
-       var dx = 0;
-
-       if (mxClient.IS_IE && document.documentMode != 9) {
-               dx = 60;
-       }
-
-       w += dx;
-       h += dx;
-
-       var left = Math.max(0, Math.round((document.body.scrollWidth - w) / 2));
-       var top = Math.max(0, Math.round((Math.max(document.body.scrollHeight,
-               document.documentElement.scrollHeight) - h) / 3));
-
-       var div = editorUi.createDiv('geDialog');
-       div.className = 'modal fade in center';
-       div.style.display = 'block';
-       div.style.paddingRight = '12px';
-       // div.style.width = w + 'px';
-       // div.style.height = h + 'px';
-       // div.style.left = left + 'px';
-       // div.style.top = top + 'px';
-
-       var divModalDialog = editorUi.createDiv('geModalDialog');
-       divModalDialog.className = 'modal-dialog';
-
-       divModalDialog.appendChild(elt);
-       div.appendChild(divModalDialog);
-
-       if (this.bg == null) {
-               this.bg = editorUi.createDiv('background');
-               this.bg.className = 'modal-backdrop fade in';
-
-               if (mxClient.IS_QUIRKS) {
-                       new mxDivResizer(this.bg);
-               }
-       }
-
-       if (modal) {
-               document.body.appendChild(this.bg);
-       }
-
-       document.body.appendChild(div);
-
-       this.onDialogClose = onClose;
-       this.container = div;
-};
-
-/**
- * Removes the dialog from the DOM.
- */
-Dialog.prototype.close = function() {
-       if (this.onDialogClose != null) {
-               this.onDialogClose();
-               this.onDialogClose = null;
-       }
-
-       this.container.parentNode.removeChild(this.container);
-       this.bg.parentNode.removeChild(this.bg);
-};
-
-/**
- * Constructs a new open dialog.
- */
-function ImportDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('import') + ' XML');
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-12');
-
-       var textarea = document.createElement('textarea');
-       textarea.style.width = '100%';
-       textarea.style.height = '374px';
-
-       var input = document.createElement('input');
-       input.type = 'file';
-       input.setAttribute('accept', 'text/xml');
-
-       input.addEventListener('change', function readSingleFile(evt) {
-               //Retrieve the first (and only!) File from the FileList object
-               var f = evt.target.files[0];
-               console.log(f);
-               if (f) {
-                       if (f.type === 'text/xml') {
-                               var r = new FileReader();
-                               r.onload = function(e) {
-                                       var contents = e.target.result;
-                                       mxUtils.write(textarea, contents);
-                               };
-                               r.readAsText(f);
-                       } else {
-                               alert('Failed to load format file');
-                       }
-               } else {
-                       alert('Failed to load file');
-               }
-       }, false);
-
-       col1.appendChild(input);
-       col1.appendChild(textarea);
-
-       row.appendChild(col1);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('import'), mxUtils.bind(this,
-               function(data) {
-                       var doc = mxUtils.parseXml(textarea.value);
-                       editorUi.editor.setGraphXml(doc.documentElement);
-                       editorUi.hideDialog();
-               }));
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-
-};
-
-/**
- * Constructs a new about dialog.
- */
-function AboutDialog(editorUi) {
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('about') + ' Cally Square');
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var img = document.createElement('img');
-       img.style.border = '0px';
-       img.setAttribute('width', '176');
-       img.setAttribute('width', '151');
-       img.setAttribute('src', IMAGE_PATH + '/logo.png');
-       body.appendChild(img);
-       mxUtils.br(body);
-       mxUtils.write(body, 'Powered by Xenialab ' + mxClient.VERSION);
-       mxUtils.br(body);
-       var link = document.createElement('a');
-       link.setAttribute('href', 'http://www.callysquare.com/');
-       link.setAttribute('target', '_blank');
-       mxUtils.write(link, 'www.callysquare.com');
-       body.appendChild(link);
-       mxUtils.br(body);
-       mxUtils.br(body);
-       //--- END BODY
-
-       var close = mxUtils.button(mxResources.get('close'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
-
-/**
- * Constructs a new save dialog.
- */
-function SaveDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('saveAs'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var name = 'name';
-       var id = '_' + name;
-       var value = editorUi.editor.getOrCreateFilename();
-
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get(name));
-       col1.appendChild(label);
-
-       var select = document.createElement('input');
-       select.setAttribute('value', value + '_copy');
-       select.setAttribute('id', id)
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('save'), function() {
-               editorUi.saveAs(select.value);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-/**
- * Constructs a new save dialog.
- */
-function NewDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('new'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var name = 'name';
-       var id = '_' + name;
-       var value = editorUi.editor.getOrCreateFilename();
-
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get(name));
-       col1.appendChild(label);
-
-       var select = document.createElement('input');
-       select.setAttribute('value', value + '_new');
-       select.setAttribute('id', id)
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('new'), function() {
-               editorUi.new(select.value);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-/**
- * Constructs a new save dialog.
- */
-function VariableDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('variable'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var name = 'name';
-       var id = '_' + name;
-       var value = editorUi.editor.getOrCreateFilename();
-
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get(name));
-       col1.appendChild(label);
-
-       var select = document.createElement('input');
-       select.setAttribute('value', 'variable name');
-       select.setAttribute('id', id)
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('new'), function() {
-               editorUi.variable(select.value);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-/**
- * Constructs a new save dialog.
- */
-function OpenDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('open'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-4');
-       var col2 = editorUi.createDiv('col-md-8');
-
-       var label = document.createElement('label');
-       label.className = 'control-label pull-right';
-       mxUtils.write(label, mxResources.get('name'));
-       col1.appendChild(label);
-
-       var req = new XMLHttpRequest();
-       req.open('GET', '/api/square/projects', false); // `false` makes the request synchronous
-       req.setRequestHeader('Authorization', 'Bearer ' + editorUi.editor.data.token);
-       req.send(null);
-       var res = [];
-       if (req.status === 200) {
-               res = JSON.parse(req.response);
-       }
-
-       var select = document.createElement('select');
-
-       for (var j = 0; j < res.length; j++) {
-               var option = document.createElement('option');
-               option.text = res[j].name;
-               option.value = res[j].id;
-               select.appendChild(option);
-       }
-       select.className = 'form-control';
-       col2.appendChild(select);
-
-       row.appendChild(col1);
-       row.appendChild(col2);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('open'), function() {
-               console.log(select);
-               console.log(select.value);
-               window.open('square/project/' + select.value, '_blank');
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-       //nameInput.setAttribute('value', editorUi.editor.getOrCreateFilename());
-};
-
-
-/**
- * Constructs a new edit file dialog.
- */
-function EditFileDialog(editorUi) {
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('edit'));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var row = editorUi.createDiv('row');
-       var col1 = editorUi.createDiv('col-md-12');
-
-       var textarea = document.createElement('textarea');
-       textarea.style.width = '100%';
-       textarea.style.height = '374px';
-       textarea.value = mxUtils.getPrettyXml(editorUi.editor.getGraphXml());
-
-       // Enables dropping files
-       if (fileSupport) {
-               function handleDrop(evt) {
-                       evt.stopPropagation();
-                       evt.preventDefault();
-
-                       if (evt.dataTransfer.files.length > 0) {
-                               var file = evt.dataTransfer.files[0];
-
-                               var reader = new FileReader();
-                               reader.onload = function(e) {
-                                       textarea.value = e.target.result;
-                               };
-                               reader.readAsText(file);
-                       }
-               };
-
-               function handleDragOver(evt) {
-                       evt.stopPropagation();
-                       evt.preventDefault();
-               };
-
-               // Setup the dnd listeners.
-               textarea.addEventListener('dragover', handleDragOver, false);
-               textarea.addEventListener('drop', handleDrop, false);
-       }
-       col1.appendChild(textarea);
-
-       row.appendChild(col1);
-       body.appendChild(row);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('save'), function() {
-               var doc = mxUtils.parseXml(textarea.value);
-               editorUi.editor.setGraphXml(doc.documentElement);
-               editorUi.hideDialog();
-       });
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
-
-/**
- * Constructs a new export dialog.
- */
-function ExportDialog(editorUi) {
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body form');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('export') + ' XML');
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var form = editorUi.createDiv('form-horizontal form-row-seperated');
-       var group = editorUi.createDiv('form-group last');
-
-       var label = document.createElement('label');
-       label.className = 'col-sm-4 control-label';
-       mxUtils.write(label, mxResources.get('filename'));
-
-       var input = document.createElement('input');
-       input.setAttribute('value', editorUi.editor.getOrCreateFilename());
-       input.className = 'form-control';
-
-       var div = editorUi.createDiv('col-sm-8');
-       div.appendChild(input);
-
-       group.appendChild(label);
-       group.appendChild(div);
-       form.appendChild(group);
-
-       body.appendChild(form);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('export'), mxUtils.bind(this,
-               function(data) {
-                       editorUi.save(false);
-
-                       var xml = encodeURIComponent(mxUtils.getXml(editorUi.editor.getGraphXml()));
-                       new mxXmlRequest(SAVE_URL + editorUi.editor.data.id + '/download',
-                               'filename=' + input.value, 'GET').simulate(document, "_blank");
-                       editorUi.hideDialog();
-               }));
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
-
-/**
- * Giuseppe Careri
- * Constructs a new general dialog.
- */
-function GeneralDialog(editorUi, cell) {
-       var graph = editorUi.editor.graph;
-
-       var content = editorUi.createDiv('modal-content');
-       var header = editorUi.createDiv('modal-header');
-       var body = editorUi.createDiv('modal-body form modal-body-scroll');
-       var footer = editorUi.createDiv('modal-footer');
-
-       //--- START HEADER
-       var title = editorUi.createHeader('h4');
-       mxUtils.write(title, mxResources.get('edit') + ' ' + mxResources.get(cell.value
-               .nodeName));
-
-       var x = mxUtils.button('', function() {
-               editorUi.hideDialog();
-       });
-       x.className = 'close';
-
-       header.appendChild(x);
-       header.appendChild(title);
-       //--- END HEADER
-
-       //--- START BODY
-       var length = cell.value.attributes.length;
-       var form = editorUi.createDiv('form-horizontal form-row-seperated');
-
-       for (var i = 0; i < length; i++) {
-               var name = cell.value.attributes[i].name;
-               var id = '_' + name;
-               var value = cell.value.attributes[i].value;
-
-               var group = editorUi.createDiv((i == length - 1) ? 'form-group last' :
-                       'form-group');
-
-               var label = document.createElement('label');
-               label.className = 'col-sm-4 control-label';
-               mxUtils.write(label, mxResources.get(name));
-               group.appendChild(label);
-
-               var input;
-
-               switch (name) {
-                       case 'sip_id':
-                               input = createDropdownFromApi('/api/agents', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'queue_id':
-                               input = createDropdownFromApi('/api/voice/queues', value, 'name', 'name', editorUi, true);
-                               break;
-                       case 'trunk_id':
-                               input = createDropdownFromApi('/api/trunks', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'variable_id':
-                               input = createDropdownFromApi('/api/variables', value, 'name', 'id', editorUi, true); //mettere true dopo la pagination
-                               break;
-                       case 'model':
-                               input = createDropdownFromArray(ISPEECHASRMODEL, value);
-                               break;
-                       case 'ispeech_asr_language':
-                               input = createDropdownFromArray(ISPEECHASRLANG, value);
-                               break;
-                       case 'ispeech_tts_language':
-                               input = createDropdownFromArray(ISPEECHLANG, value);
-                               break;
-                       case 'google_tts_language':
-                               input = createDropdownFromArray(GOOGLETTSLANG, value);
-                               break;
-                       case 'interval_id':
-                               input = createGroupedDropdownFromApi('/api/intervals/all', value, 'name', 'id', editorUi, false, 'IntervalId');
-                               break;
-                       case 'project_id':
-                               input = createDropdownFromApi('/api/square/projects', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'odbc_id':
-                               input = createDropdownFromApi('/api/square/odbc', value, 'name', 'id', editorUi, true);
-                               break;
-                       case 'file_id':
-                               input = createDropdownFromApi('/api/uploads', value, 'display_name', 'id', editorUi, false);
-                               break;
-                       case 'timeout':
-                       case 'digit':
-                       case 'mindigit':
-                       case 'maxdigit':
-                       case 'response':
-                       case 'retry':
-                               input = document.createElement('input');
-                               input.setAttribute('type', 'number');
-                               input.setAttribute('min', 0);
-                               input.setAttribute('max', 1000);
-                               input.setAttribute('value', value);
-                               input.className = 'form-control';
-                               break;
-                       case 'text':
-                       case 'key':
-                       case 'query':
-                       case 'condition':
-                       case 'command':
-                               input = document.createElement('textarea');
-                               input.innerHTML = value;
-                               input.className = 'form-control';
-                               break;
-                       default:
-                               input = document.createElement('input');
-                               input.setAttribute('value', value);
-                               input.className = 'form-control';
-                               break;
-               }
-
-               input.setAttribute('id', id)
-
-               var div = editorUi.createDiv('col-sm-8');
-               div.appendChild(input);
-
-               // Help
-               if (mxResources.get('help_' + name)) {
-                       var help = editorUi.createDiv('p');
-                       help.className = 'help-block';
-                       mxUtils.write(help, mxResources.get('help_' + name));
-                       div.appendChild(help);
-               }
-
-               group.appendChild(div);
-               form.appendChild(group);
-       }
-       body.appendChild(form);
-       //--- END BODY
-
-       //--- START FOOTER
-       var save = mxUtils.button(mxResources.get('save'), mxUtils.bind(this,
-               function(data) {
-                       for (var i = 0; i < cell.value.attributes.length; i++) {
-                               var id = '_' + cell.value.attributes[i].name;
-                               var name = cell.value.attributes[i].name;
-                               console.log(name, document.getElementById(id).value);
-                               cell.setAttribute(name, document.getElementById(id).value);
-                       };
-                       graph.refresh(cell);
-                       editorUi.hideDialog();
-               }));
-       save.className = 'btn blue';
-
-       var close = mxUtils.button(mxResources.get('cancel'), function() {
-               editorUi.hideDialog();
-       });
-       close.className = 'btn default';
-
-       footer.appendChild(save);
-       footer.appendChild(close);
-       //--- END FOOTER
-
-       //--- START CONTENT
-       content.appendChild(header);
-       content.appendChild(body);
-       content.appendChild(footer);
-       //--- END CONTENT
-
-       this.container = content;
-};
+var _0x4a22=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x69\x6E\x70\x75\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x79\x70\x65","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x68\x65\x63\x6B\x65\x64","\x47\x45\x54","\x6F\x70\x65\x6E","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x65\x61\x72\x65\x72\x20","\x74\x6F\x6B\x65\x6E","\x64\x61\x74\x61","\x65\x64\x69\x74\x6F\x72","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x70\x61\x72\x73\x65","\x73\x65\x6C\x65\x63\x74","\x6F\x70\x74\x69\x6F\x6E","\x74\x65\x78\x74","\x2D\x2D\x20\x4E\x6F\x6E\x65\x20\x2D\x2D","\x76\x61\x6C\x75\x65","\x2D\x31","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x25","\x72\x65\x70\x6C\x61\x63\x65","\x66\x6F\x72\x45\x61\x63\x68","\x73\x65\x6C\x65\x63\x74\x65\x64","\x72\x6F\x77\x73","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C\x20\x73\x65\x6C\x65\x63\x74\x32","\x30","\x73\x65\x6C\x65\x63\x74\x2D\x67\x72\x6F\x75\x70\x2D\x66\x61\x74\x68\x65\x72","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x73\x65\x6C\x65\x63\x74\x2D\x67\x72\x6F\x75\x70\x2D\x73\x6F\x6E","\x2D","\x63\x61\x70\x69\x74\x61\x6C\x69\x7A\x65","","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x73\x63\x72\x6F\x6C\x6C\x57\x69\x64\x74\x68","\x62\x6F\x64\x79","\x72\x6F\x75\x6E\x64","\x6D\x61\x78","\x73\x63\x72\x6F\x6C\x6C\x48\x65\x69\x67\x68\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x44\x69\x61\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x6D\x6F\x64\x61\x6C\x20\x66\x61\x64\x65\x20\x69\x6E\x20\x63\x65\x6E\x74\x65\x72","\x64\x69\x73\x70\x6C\x61\x79","\x73\x74\x79\x6C\x65","\x62\x6C\x6F\x63\x6B","\x70\x61\x64\x64\x69\x6E\x67\x52\x69\x67\x68\x74","\x31\x32\x70\x78","\x67\x65\x4D\x6F\x64\x61\x6C\x44\x69\x61\x6C\x6F\x67","\x6D\x6F\x64\x61\x6C\x2D\x64\x69\x61\x6C\x6F\x67","\x62\x67","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x6D\x6F\x64\x61\x6C\x2D\x62\x61\x63\x6B\x64\x72\x6F\x70\x20\x66\x61\x64\x65\x20\x69\x6E","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x6E\x44\x69\x61\x6C\x6F\x67\x43\x6C\x6F\x73\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x6C\x6F\x73\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x64\x61\x6C\x2D\x63\x6F\x6E\x74\x65\x6E\x74","\x6D\x6F\x64\x61\x6C\x2D\x68\x65\x61\x64\x65\x72","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79","\x6D\x6F\x64\x61\x6C\x2D\x66\x6F\x6F\x74\x65\x72","\x68\x34","\x63\x72\x65\x61\x74\x65\x48\x65\x61\x64\x65\x72","\x69\x6D\x70\x6F\x72\x74","\x67\x65\x74","\x20\x58\x4D\x4C","\x77\x72\x69\x74\x65","\x68\x69\x64\x65\x44\x69\x61\x6C\x6F\x67","\x62\x75\x74\x74\x6F\x6E","\x72\x6F\x77","\x63\x6F\x6C\x2D\x6D\x64\x2D\x31\x32","\x74\x65\x78\x74\x61\x72\x65\x61","\x77\x69\x64\x74\x68","\x31\x30\x30\x25","\x68\x65\x69\x67\x68\x74","\x33\x37\x34\x70\x78","\x66\x69\x6C\x65","\x61\x63\x63\x65\x70\x74","\x74\x65\x78\x74\x2F\x78\x6D\x6C","\x63\x68\x61\x6E\x67\x65","\x66\x69\x6C\x65\x73","\x74\x61\x72\x67\x65\x74","\x6C\x6F\x67","\x6F\x6E\x6C\x6F\x61\x64","\x72\x65\x73\x75\x6C\x74","\x72\x65\x61\x64\x41\x73\x54\x65\x78\x74","\x46\x61\x69\x6C\x65\x64\x20\x74\x6F\x20\x6C\x6F\x61\x64\x20\x66\x6F\x72\x6D\x61\x74\x20\x66\x69\x6C\x65","\x46\x61\x69\x6C\x65\x64\x20\x74\x6F\x20\x6C\x6F\x61\x64\x20\x66\x69\x6C\x65","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x62\x69\x6E\x64","\x62\x74\x6E\x20\x62\x6C\x75\x65","\x63\x61\x6E\x63\x65\x6C","\x62\x74\x6E\x20\x64\x65\x66\x61\x75\x6C\x74","\x61\x62\x6F\x75\x74","\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65","\x69\x6D\x67","\x62\x6F\x72\x64\x65\x72","\x30\x70\x78","\x31\x37\x36","\x31\x35\x31","\x73\x72\x63","\x2F\x6C\x6F\x67\x6F\x2E\x70\x6E\x67","\x62\x72","\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x58\x65\x6E\x69\x61\x6C\x61\x62\x20","\x56\x45\x52\x53\x49\x4F\x4E","\x61","\x68\x72\x65\x66","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65\x2E\x63\x6F\x6D\x2F","\x5F\x62\x6C\x61\x6E\x6B","\x77\x77\x77\x2E\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65\x2E\x63\x6F\x6D","\x73\x61\x76\x65\x41\x73","\x6E\x61\x6D\x65","\x5F","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x63\x6F\x6C\x2D\x6D\x64\x2D\x34","\x63\x6F\x6C\x2D\x6D\x64\x2D\x38","\x6C\x61\x62\x65\x6C","\x63\x6F\x6E\x74\x72\x6F\x6C\x2D\x6C\x61\x62\x65\x6C\x20\x70\x75\x6C\x6C\x2D\x72\x69\x67\x68\x74","\x5F\x63\x6F\x70\x79","\x69\x64","\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C","\x73\x61\x76\x65","\x6E\x65\x77","\x5F\x6E\x65\x77","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x6E\x61\x6D\x65","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x2F","\x72\x65\x6E\x61\x6D\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x50\x55\x54","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6E\x61\x6D\x65\x3D","\x50\x72\x6F\x6A\x65\x63\x74\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x20\x72\x65\x6E\x61\x6D\x65\x64","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72\x73","\x6F\x6E\x65\x72\x72\x6F\x72","\x73\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x61\x6C\x65\x72\x74","\x65\x64\x69\x74","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x73\x74\x6F\x70\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x64\x61\x74\x61\x54\x72\x61\x6E\x73\x66\x65\x72","\x64\x72\x61\x67\x6F\x76\x65\x72","\x64\x72\x6F\x70","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x20\x66\x6F\x72\x6D","\x65\x78\x70\x6F\x72\x74","\x66\x6F\x72\x6D\x2D\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x20\x66\x6F\x72\x6D\x2D\x72\x6F\x77\x2D\x73\x65\x70\x65\x72\x61\x74\x65\x64","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70\x20\x6C\x61\x73\x74","\x63\x6F\x6C\x2D\x73\x6D\x2D\x34\x20\x63\x6F\x6E\x74\x72\x6F\x6C\x2D\x6C\x61\x62\x65\x6C","\x63\x6F\x6C\x2D\x73\x6D\x2D\x38","\x67\x65\x74\x58\x6D\x6C","\x73\x69\x6D\x75\x6C\x61\x74\x65","\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D","\x67\x72\x61\x70\x68","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x20\x66\x6F\x72\x6D\x20\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x2D\x73\x63\x72\x6F\x6C\x6C","\x20","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70","\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x73\x69\x70\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x71\x75\x65\x75\x65\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x74\x72\x75\x6E\x6B\x5F\x6E\x61\x6D\x65","\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x76\x61\x72\x69\x61\x62\x6C\x65\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x73\x6D\x73\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x61\x63\x63\x6F\x75\x6E\x74\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x63\x6F\x6E\x74\x65\x78\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x6D\x61\x69\x6C\x62\x6F\x78","\x25\x6D\x61\x69\x6C\x62\x6F\x78\x25\x40\x25\x63\x6F\x6E\x74\x65\x78\x74\x25","\x6D\x6F\x64\x65\x6C","\x69\x73\x70\x65\x65\x63\x68\x5F\x61\x73\x72\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x62\x65\x65\x70","\x69\x73\x70\x65\x65\x63\x68\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x67\x6F\x6F\x67\x6C\x65\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C\x5F\x69\x64","\x70\x72\x6F\x6A\x65\x63\x74\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x6F\x64\x62\x63\x5F\x69\x64","\x2F\x61\x70\x69\x2F\x73\x6F\x75\x6E\x64\x73","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x66\x69\x6C\x65\x5F\x69\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x64\x69\x67\x69\x74","\x6D\x69\x6E\x64\x69\x67\x69\x74","\x6D\x61\x78\x64\x69\x67\x69\x74","\x72\x65\x74\x72\x79","\x6E\x75\x6D\x62\x65\x72","\x6D\x69\x6E","\x73\x70\x65\x65\x64","\x6B\x65\x79","\x71\x75\x65\x72\x79","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x63\x6F\x6D\x6D\x61\x6E\x64","\x6D\x61\x78\x6C\x65\x6E\x67\x74\x68","\x31\x36\x30","\x73\x6D\x73\x5F\x74\x65\x78\x74","\x68\x65\x6C\x70\x5F","\x70","\x68\x65\x6C\x70\x2D\x62\x6C\x6F\x63\x6B","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x72\x65\x66\x72\x65\x73\x68"];_0x4a22[0];function createCheckbox(_0x3f47x2){var _0x3f47x3=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3[_0x4a22[5]](_0x4a22[3],_0x4a22[4]);if(_0x3f47x2){_0x3f47x3[_0x4a22[5]](_0x4a22[6],true)};return _0x3f47x3}function createDropdownFromApi(_0x3f47x5,_0x3f47x2,_0x3f47x6,_0x3f47x7,_0x3f47x8,_0x3f47x9,_0x3f47xa){var _0x3f47xb= new XMLHttpRequest();_0x3f47xb[_0x4a22[8]](_0x4a22[7],_0x3f47x5,false);_0x3f47xb[_0x4a22[14]](_0x4a22[9],_0x4a22[10]+_0x3f47x8[_0x4a22[13]][_0x4a22[12]][_0x4a22[11]]);_0x3f47xb[_0x4a22[15]](null);var _0x3f47xc=[];if(_0x3f47xb[_0x4a22[16]]===200){_0x3f47xc=JSON[_0x4a22[18]](_0x3f47xb[_0x4a22[17]])};var _0x3f47x3=document[_0x4a22[2]](_0x4a22[19]);var _0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[21]]=_0x4a22[22];_0x3f47xd[_0x4a22[23]]=_0x4a22[24];_0x3f47x3[_0x4a22[25]](_0x3f47xd);_0x3f47xc[_0x4a22[30]][_0x4a22[28]](function(_0x3f47xe){_0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[21]]=_0x3f47xe[_0x3f47x6];if(_0x3f47x9&&_0x3f47xa){_0x3f47x9[_0x4a22[28]](function(_0x3f47xf){_0x3f47xa=_0x3f47xa[_0x4a22[27]](_0x4a22[26]+_0x3f47xf+_0x4a22[26],_0x3f47xe[_0x3f47xf])});_0x3f47xd[_0x4a22[23]]=_0x3f47xa;_0x3f47xd[_0x4a22[29]]=(_0x3f47xa==_0x3f47x2)}else {_0x3f47xd[_0x4a22[23]]=_0x3f47xe[_0x3f47x7];_0x3f47xd[_0x4a22[29]]=(_0x3f47xe[_0x3f47x7]==_0x3f47x2)};_0x3f47x3[_0x4a22[25]](_0x3f47xd)});_0x3f47x3[_0x4a22[31]]=_0x4a22[32];return _0x3f47x3}function createGroupedDropdownFromApi(_0x3f47x5,_0x3f47x2,_0x3f47x6,_0x3f47x7,_0x3f47x8,_0x3f47x11){var _0x3f47xb= new XMLHttpRequest();_0x3f47xb[_0x4a22[8]](_0x4a22[7],_0x3f47x5,false);_0x3f47xb[_0x4a22[14]](_0x4a22[9],_0x4a22[10]+_0x3f47x8[_0x4a22[13]][_0x4a22[12]][_0x4a22[11]]);_0x3f47xb[_0x4a22[15]](null);var _0x3f47xc=[];if(_0x3f47xb[_0x4a22[16]]===200){_0x3f47xc=JSON[_0x4a22[18]](_0x3f47xb[_0x4a22[17]])};var _0x3f47x3=document[_0x4a22[2]](_0x4a22[19]);var _0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[21]]=_0x4a22[22];_0x3f47xd[_0x4a22[23]]=_0x4a22[33];_0x3f47x3[_0x4a22[25]](_0x3f47xd);_0x3f47xc[_0x4a22[30]][_0x4a22[28]](function(_0x3f47xe){_0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[31]]=_0x4a22[34];_0x3f47xd[_0x4a22[21]]=_0x3f47xe[_0x3f47x6][_0x4a22[35]]();_0x3f47xd[_0x4a22[23]]=_0x3f47xe[_0x3f47x7];_0x3f47xd[_0x4a22[29]]=(_0x3f47xe[_0x3f47x7]==_0x3f47x2);_0x3f47x3[_0x4a22[25]](_0x3f47xd);_0x3f47xe[_0x3f47x11][_0x4a22[28]](function(_0x3f47xe){_0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[31]]=_0x4a22[36];_0x3f47xd[_0x4a22[21]]=_0x4a22[37]+_[_0x4a22[38]](_0x3f47xe[_0x3f47x6]);_0x3f47xd[_0x4a22[23]]=_0x3f47xe[_0x3f47x7];_0x3f47xd[_0x4a22[29]]=(_0x3f47xe[_0x3f47x7]==_0x3f47x2);_0x3f47x3[_0x4a22[25]](_0x3f47xd)})});_0x3f47x3[_0x4a22[31]]=_0x4a22[32];return _0x3f47x3}function createDropdownFromArray(_0x3f47x13,_0x3f47x2){var _0x3f47x3=document[_0x4a22[2]](_0x4a22[19]);for(var _0x3f47x14 in _0x3f47x13){var _0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[21]]=_0x3f47x13[_0x3f47x14];_0x3f47xd[_0x4a22[23]]=_0x3f47x14;if(_0x3f47x2>0||_0x3f47x2!=_0x4a22[39]){_0x3f47xd[_0x4a22[29]]=(_0x3f47x2===_0x3f47x14)?true:false};_0x3f47x3[_0x4a22[25]](_0x3f47xd)};_0x3f47x3[_0x4a22[31]]=_0x4a22[32];return _0x3f47x3}function Dialog(_0x3f47x8,_0x3f47x16,_0x3f47x17,_0x3f47x18,_0x3f47x19,_0x3f47x1a,_0x3f47x1b){var _0x3f47x1c=0;if(mxClient[_0x4a22[40]]&&document[_0x4a22[41]]!=9){_0x3f47x1c=60};_0x3f47x17+=_0x3f47x1c;_0x3f47x18+=_0x3f47x1c;var _0x3f47x1d=Math[_0x4a22[45]](0,Math[_0x4a22[44]]((document[_0x4a22[43]][_0x4a22[42]]-_0x3f47x17)/2));var _0x3f47x1e=Math[_0x4a22[45]](0,Math[_0x4a22[44]]((Math[_0x4a22[45]](document[_0x4a22[43]][_0x4a22[46]],document[_0x4a22[47]][_0x4a22[46]])-_0x3f47x18)/3));var _0x3f47x1f=_0x3f47x8[_0x4a22[49]](_0x4a22[48]);_0x3f47x1f[_0x4a22[31]]=_0x4a22[50];_0x3f47x1f[_0x4a22[52]][_0x4a22[51]]=_0x4a22[53];_0x3f47x1f[_0x4a22[52]][_0x4a22[54]]=_0x4a22[55];var _0x3f47x20=_0x3f47x8[_0x4a22[49]](_0x4a22[56]);_0x3f47x20[_0x4a22[31]]=_0x4a22[57];_0x3f47x20[_0x4a22[25]](_0x3f47x16);_0x3f47x1f[_0x4a22[25]](_0x3f47x20);if(this[_0x4a22[58]]==null){this[_0x4a22[58]]=_0x3f47x8[_0x4a22[49]](_0x4a22[59]);this[_0x4a22[58]][_0x4a22[31]]=_0x4a22[60];if(mxClient[_0x4a22[61]]){ new mxDivResizer(this[_0x4a22[58]])}};if(_0x3f47x19){document[_0x4a22[43]][_0x4a22[25]](this[_0x4a22[58]])};document[_0x4a22[43]][_0x4a22[25]](_0x3f47x1f);this[_0x4a22[62]]=_0x3f47x1b;this[_0x4a22[63]]=_0x3f47x1f}Dialog[_0x4a22[65]][_0x4a22[64]]=function(){if(this[_0x4a22[62]]!=null){this[_0x4a22[62]]();this[_0x4a22[62]]=null};this[_0x4a22[63]][_0x4a22[67]][_0x4a22[66]](this[_0x4a22[63]]);this[_0x4a22[58]][_0x4a22[67]][_0x4a22[66]](this[_0x4a22[58]])};function ImportDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[74])+_0x4a22[76]);var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[81]);var _0x3f47x2a=document[_0x4a22[2]](_0x4a22[82]);_0x3f47x2a[_0x4a22[52]][_0x4a22[83]]=_0x4a22[84];_0x3f47x2a[_0x4a22[52]][_0x4a22[85]]=_0x4a22[86];var _0x3f47x3=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3[_0x4a22[3]]=_0x4a22[87];_0x3f47x3[_0x4a22[5]](_0x4a22[88],_0x4a22[89]);_0x3f47x3[_0x4a22[99]](_0x4a22[90],function _0x3f47x2b(_0x3f47x2c){var _0x3f47x2d=_0x3f47x2c[_0x4a22[92]][_0x4a22[91]][0];console[_0x4a22[93]](_0x3f47x2d);if(_0x3f47x2d){if(_0x3f47x2d[_0x4a22[3]]===_0x4a22[89]){var _0x3f47x2e= new FileReader();_0x3f47x2e[_0x4a22[94]]=function(_0x3f47x2f){var _0x3f47x30=_0x3f47x2f[_0x4a22[92]][_0x4a22[95]];mxUtils[_0x4a22[77]](_0x3f47x2a,_0x3f47x30)};_0x3f47x2e[_0x4a22[96]](_0x3f47x2d)}else {alert(_0x4a22[97])}}else {alert(_0x4a22[98])}},false);_0x3f47x29[_0x4a22[25]](_0x3f47x3);_0x3f47x29[_0x4a22[25]](_0x3f47x2a);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[74]),mxUtils[_0x4a22[102]](this,function(_0x3f47x32){var _0x3f47x33=mxUtils[_0x4a22[100]](_0x3f47x2a[_0x4a22[23]]);_0x3f47x8[_0x4a22[13]][_0x4a22[101]](_0x3f47x33[_0x4a22[47]]);_0x3f47x8[_0x4a22[78]]()}));_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function AboutDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[106])+_0x4a22[107]);var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x36=document[_0x4a22[2]](_0x4a22[108]);_0x3f47x36[_0x4a22[52]][_0x4a22[109]]=_0x4a22[110];_0x3f47x36[_0x4a22[5]](_0x4a22[83],_0x4a22[111]);_0x3f47x36[_0x4a22[5]](_0x4a22[83],_0x4a22[112]);_0x3f47x36[_0x4a22[5]](_0x4a22[113],IMAGE_PATH+_0x4a22[114]);_0x3f47x24[_0x4a22[25]](_0x3f47x36);mxUtils[_0x4a22[115]](_0x3f47x24);mxUtils[_0x4a22[77]](_0x3f47x24,_0x4a22[116]+mxClient[_0x4a22[117]]);mxUtils[_0x4a22[115]](_0x3f47x24);var _0x3f47x37=document[_0x4a22[2]](_0x4a22[118]);_0x3f47x37[_0x4a22[5]](_0x4a22[119],_0x4a22[120]);_0x3f47x37[_0x4a22[5]](_0x4a22[92],_0x4a22[121]);mxUtils[_0x4a22[77]](_0x3f47x37,_0x4a22[122]);_0x3f47x24[_0x4a22[25]](_0x3f47x37);mxUtils[_0x4a22[115]](_0x3f47x24);mxUtils[_0x4a22[115]](_0x3f47x24);var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[64]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function SaveDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[123]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x39=_0x4a22[124];var _0x3f47x3a=_0x4a22[125]+_0x3f47x39;var _0x3f47x2=_0x3f47x8[_0x4a22[13]][_0x4a22[126]]();var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[127]);var _0x3f47x3b=_0x3f47x8[_0x4a22[49]](_0x4a22[128]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[130];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x3f47x39));_0x3f47x29[_0x4a22[25]](_0x3f47x3c);var _0x3f47x3d=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3d[_0x4a22[5]](_0x4a22[23],_0x3f47x2+_0x4a22[131]);_0x3f47x3d[_0x4a22[5]](_0x4a22[132],_0x3f47x3a);_0x3f47x3d[_0x4a22[31]]=_0x4a22[133];_0x3f47x3b[_0x4a22[25]](_0x3f47x3d);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x28[_0x4a22[25]](_0x3f47x3b);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[134]),function(){_0x3f47x8[_0x4a22[123]](_0x3f47x3d[_0x4a22[23]]);_0x3f47x8[_0x4a22[78]]()});_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function NewDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[135]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x39=_0x4a22[124];var _0x3f47x3a=_0x4a22[125]+_0x3f47x39;var _0x3f47x2=_0x3f47x8[_0x4a22[13]][_0x4a22[126]]();var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[127]);var _0x3f47x3b=_0x3f47x8[_0x4a22[49]](_0x4a22[128]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[130];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x3f47x39));_0x3f47x29[_0x4a22[25]](_0x3f47x3c);var _0x3f47x3d=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3d[_0x4a22[5]](_0x4a22[23],_0x3f47x2+_0x4a22[136]);_0x3f47x3d[_0x4a22[5]](_0x4a22[132],_0x3f47x3a);_0x3f47x3d[_0x4a22[31]]=_0x4a22[133];_0x3f47x3b[_0x4a22[25]](_0x3f47x3d);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x28[_0x4a22[25]](_0x3f47x3b);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[135]),function(){_0x3f47x8[_0x4a22[135]](_0x3f47x3d[_0x4a22[23]]);_0x3f47x8[_0x4a22[78]]()});_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function VariableDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[137]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x39=_0x4a22[124];var _0x3f47x3a=_0x4a22[125]+_0x3f47x39;var _0x3f47x2=_0x3f47x8[_0x4a22[13]][_0x4a22[126]]();var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[127]);var _0x3f47x3b=_0x3f47x8[_0x4a22[49]](_0x4a22[128]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[130];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x3f47x39));_0x3f47x29[_0x4a22[25]](_0x3f47x3c);var _0x3f47x3d=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3d[_0x4a22[5]](_0x4a22[23],_0x4a22[138]);_0x3f47x3d[_0x4a22[5]](_0x4a22[132],_0x3f47x3a);_0x3f47x3d[_0x4a22[31]]=_0x4a22[133];_0x3f47x3b[_0x4a22[25]](_0x3f47x3d);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x28[_0x4a22[25]](_0x3f47x3b);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[135]),function(){_0x3f47x8[_0x4a22[137]](_0x3f47x3d[_0x4a22[23]]);_0x3f47x8[_0x4a22[78]]()});_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function OpenDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[8]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[127]);var _0x3f47x3b=_0x3f47x8[_0x4a22[49]](_0x4a22[128]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[130];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x4a22[124]));_0x3f47x29[_0x4a22[25]](_0x3f47x3c);var _0x3f47xb= new XMLHttpRequest();_0x3f47xb[_0x4a22[8]](_0x4a22[7],_0x4a22[139],false);_0x3f47xb[_0x4a22[14]](_0x4a22[9],_0x4a22[10]+_0x3f47x8[_0x4a22[13]][_0x4a22[12]][_0x4a22[11]]);_0x3f47xb[_0x4a22[15]](null);var _0x3f47xc=[];if(_0x3f47xb[_0x4a22[16]]===200){_0x3f47xc=JSON[_0x4a22[18]](_0x3f47xb[_0x4a22[17]])};var _0x3f47x3d=document[_0x4a22[2]](_0x4a22[19]);for(var _0x3f47x41=0;_0x3f47x41<_0x3f47xc[_0x4a22[140]];_0x3f47x41++){var _0x3f47xd=document[_0x4a22[2]](_0x4a22[20]);_0x3f47xd[_0x4a22[21]]=_0x3f47xc[_0x3f47x41][_0x4a22[124]];_0x3f47xd[_0x4a22[23]]=_0x3f47xc[_0x3f47x41][_0x4a22[132]];_0x3f47x3d[_0x4a22[25]](_0x3f47xd)};_0x3f47x3d[_0x4a22[31]]=_0x4a22[133];_0x3f47x3b[_0x4a22[25]](_0x3f47x3d);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x28[_0x4a22[25]](_0x3f47x3b);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[8]),function(){console[_0x4a22[93]](_0x3f47x3d);console[_0x4a22[93]](_0x3f47x3d[_0x4a22[23]]);window[_0x4a22[8]](_0x4a22[141]+_0x3f47x3d[_0x4a22[23]],_0x4a22[121]);_0x3f47x8[_0x4a22[78]]()});_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function RenameDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[142]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[127]);var _0x3f47x3b=_0x3f47x8[_0x4a22[49]](_0x4a22[128]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[130];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x4a22[124]));_0x3f47x29[_0x4a22[25]](_0x3f47x3c);var _0x3f47x39=_0x3f47x8[_0x4a22[13]][_0x4a22[143]];var _0x3f47x3=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3[_0x4a22[5]](_0x4a22[23],_0x3f47x39);_0x3f47x3[_0x4a22[31]]=_0x4a22[133];_0x3f47x3b[_0x4a22[25]](_0x3f47x3);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x28[_0x4a22[25]](_0x3f47x3b);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[134]),function(){var _0x3f47xb= new XMLHttpRequest();_0x3f47xb[_0x4a22[8]](_0x4a22[144],SAVE_URL+_0x3f47x8[_0x4a22[13]][_0x4a22[12]][_0x4a22[132]],true);_0x3f47xb[_0x4a22[14]](_0x4a22[145],_0x4a22[146]);_0x3f47xb[_0x4a22[14]](_0x4a22[9],_0x4a22[10]+_0x3f47x8[_0x4a22[13]][_0x4a22[12]][_0x4a22[11]]);_0x3f47xb[_0x4a22[15]](_0x4a22[147]+_0x3f47x3[_0x4a22[23]]);_0x3f47xb[_0x4a22[94]]=function(_0x3f47x2f){if(_0x3f47xb[_0x4a22[16]]===200){_0x3f47x8[_0x4a22[13]][_0x4a22[149]](_0x4a22[148]);_0x3f47x8[_0x4a22[13]][_0x4a22[143]]=_0x3f47x3[_0x4a22[23]]}else {console[_0x4a22[93]](_0x3f47xb[_0x4a22[17]]);_0x3f47x8[_0x4a22[13]][_0x4a22[149]](JSON[_0x4a22[18]](_0x3f47xb[_0x4a22[17]])[_0x4a22[151]][0][_0x4a22[150]])}};_0x3f47xb[_0x4a22[152]]=function(_0x3f47x2f){mxUtils[_0x4a22[154]](_0x3f47xb[_0x4a22[153]])};_0x3f47x8[_0x4a22[78]]()});_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function EditFileDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[70]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[155]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x28=_0x3f47x8[_0x4a22[49]](_0x4a22[80]);var _0x3f47x29=_0x3f47x8[_0x4a22[49]](_0x4a22[81]);var _0x3f47x2a=document[_0x4a22[2]](_0x4a22[82]);_0x3f47x2a[_0x4a22[52]][_0x4a22[83]]=_0x4a22[84];_0x3f47x2a[_0x4a22[52]][_0x4a22[85]]=_0x4a22[86];_0x3f47x2a[_0x4a22[23]]=mxUtils[_0x4a22[157]](_0x3f47x8[_0x4a22[13]][_0x4a22[156]]());if(fileSupport){function _0x3f47x44(_0x3f47x2c){_0x3f47x2c[_0x4a22[158]]();_0x3f47x2c[_0x4a22[159]]();if(_0x3f47x2c[_0x4a22[160]][_0x4a22[91]][_0x4a22[140]]>0){var _0x3f47x45=_0x3f47x2c[_0x4a22[160]][_0x4a22[91]][0];var _0x3f47x46= new FileReader();_0x3f47x46[_0x4a22[94]]=function(_0x3f47x2f){_0x3f47x2a[_0x4a22[23]]=_0x3f47x2f[_0x4a22[92]][_0x4a22[95]]};_0x3f47x46[_0x4a22[96]](_0x3f47x45)}}function _0x3f47x47(_0x3f47x2c){_0x3f47x2c[_0x4a22[158]]();_0x3f47x2c[_0x4a22[159]]()}_0x3f47x2a[_0x4a22[99]](_0x4a22[161],_0x3f47x47,false);_0x3f47x2a[_0x4a22[99]](_0x4a22[162],_0x3f47x44,false)};_0x3f47x29[_0x4a22[25]](_0x3f47x2a);_0x3f47x28[_0x4a22[25]](_0x3f47x29);_0x3f47x24[_0x4a22[25]](_0x3f47x28);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[134]),function(){var _0x3f47x33=mxUtils[_0x4a22[100]](_0x3f47x2a[_0x4a22[23]]);_0x3f47x8[_0x4a22[13]][_0x4a22[101]](_0x3f47x33[_0x4a22[47]]);_0x3f47x8[_0x4a22[78]]()});_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function ExportDialog(_0x3f47x8){var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[163]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[164])+_0x4a22[76]);var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x49=_0x3f47x8[_0x4a22[49]](_0x4a22[165]);var _0x3f47x4a=_0x3f47x8[_0x4a22[49]](_0x4a22[166]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[167];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x4a22[143]));var _0x3f47x3=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3[_0x4a22[5]](_0x4a22[23],_0x3f47x8[_0x4a22[13]][_0x4a22[126]]());_0x3f47x3[_0x4a22[31]]=_0x4a22[133];var _0x3f47x1f=_0x3f47x8[_0x4a22[49]](_0x4a22[168]);_0x3f47x1f[_0x4a22[25]](_0x3f47x3);_0x3f47x4a[_0x4a22[25]](_0x3f47x3c);_0x3f47x4a[_0x4a22[25]](_0x3f47x1f);_0x3f47x49[_0x4a22[25]](_0x3f47x4a);_0x3f47x24[_0x4a22[25]](_0x3f47x49);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[164]),mxUtils[_0x4a22[102]](this,function(_0x3f47x32){_0x3f47x8[_0x4a22[134]](false);var _0x3f47x4b=encodeURIComponent(mxUtils[_0x4a22[169]](_0x3f47x8[_0x4a22[13]][_0x4a22[156]]())); new mxXmlRequest(SAVE_URL+_0x3f47x8[_0x4a22[13]][_0x4a22[12]][_0x4a22[132]]+_0x4a22[171],_0x4a22[172]+_0x3f47x3[_0x4a22[23]],_0x4a22[7])[_0x4a22[170]](document,_0x4a22[121]);_0x3f47x8[_0x4a22[78]]()}));_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}function GeneralDialog(_0x3f47x8,_0x3f47x4d){var _0x3f47x4e=_0x3f47x8[_0x4a22[13]][_0x4a22[173]];var _0x3f47x22=_0x3f47x8[_0x4a22[49]](_0x4a22[68]);var _0x3f47x23=_0x3f47x8[_0x4a22[49]](_0x4a22[69]);var _0x3f47x24=_0x3f47x8[_0x4a22[49]](_0x4a22[174]);var _0x3f47x25=_0x3f47x8[_0x4a22[49]](_0x4a22[71]);var _0x3f47x26=_0x3f47x8[_0x4a22[73]](_0x4a22[72]);mxUtils[_0x4a22[77]](_0x3f47x26,mxResources[_0x4a22[75]](_0x4a22[155])+_0x4a22[175]+mxResources[_0x4a22[75]](_0x3f47x4d[_0x4a22[23]][_0x4a22[176]]));var _0x3f47x27=mxUtils[_0x4a22[79]](_0x4a22[39],function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x27[_0x4a22[31]]=_0x4a22[64];_0x3f47x23[_0x4a22[25]](_0x3f47x27);_0x3f47x23[_0x4a22[25]](_0x3f47x26);var _0x3f47x4f=_0x3f47x4d[_0x4a22[23]][_0x4a22[177]][_0x4a22[140]];var _0x3f47x49=_0x3f47x8[_0x4a22[49]](_0x4a22[165]);for(var _0x3f47x50=0;_0x3f47x50<_0x3f47x4f;_0x3f47x50++){var _0x3f47x39=_0x3f47x4d[_0x4a22[23]][_0x4a22[177]][_0x3f47x50][_0x4a22[124]];var _0x3f47x3a=_0x4a22[125]+_0x3f47x39;var _0x3f47x2=_0x3f47x4d[_0x4a22[23]][_0x4a22[177]][_0x3f47x50][_0x4a22[23]];var _0x3f47x4a=_0x3f47x8[_0x4a22[49]]((_0x3f47x50==_0x3f47x4f-1)?_0x4a22[166]:_0x4a22[178]);var _0x3f47x3c=document[_0x4a22[2]](_0x4a22[129]);_0x3f47x3c[_0x4a22[31]]=_0x4a22[167];mxUtils[_0x4a22[77]](_0x3f47x3c,mxResources[_0x4a22[75]](_0x3f47x39));_0x3f47x4a[_0x4a22[25]](_0x3f47x3c);var _0x3f47x3;switch(_0x3f47x39){case _0x4a22[180]:_0x3f47x3=createDropdownFromApi(_0x4a22[179],_0x3f47x2,_0x4a22[124],_0x4a22[132],_0x3f47x8);break;case _0x4a22[182]:_0x3f47x3=createDropdownFromApi(_0x4a22[181],_0x3f47x2,_0x4a22[124],_0x4a22[124],_0x3f47x8);break;case _0x4a22[184]:_0x3f47x3=createDropdownFromApi(_0x4a22[183],_0x3f47x2,_0x4a22[124],_0x4a22[124],_0x3f47x8);break;case _0x4a22[186]:_0x3f47x3=createDropdownFromApi(_0x4a22[185],_0x3f47x2,_0x4a22[124],_0x4a22[132],_0x3f47x8);break;case _0x4a22[188]:_0x3f47x3=createDropdownFromApi(_0x4a22[187],_0x3f47x2,_0x4a22[124],_0x4a22[132],_0x3f47x8);break;case _0x4a22[190]:_0x3f47x3=createDropdownFromApi(_0x4a22[189],_0x3f47x2,_0x4a22[124],_0x4a22[124],_0x3f47x8);break;case _0x4a22[192]:_0x3f47x3=createDropdownFromApi(_0x4a22[191],_0x3f47x2,_0x4a22[192],_0x4a22[132],_0x3f47x8,[_0x4a22[192],_0x4a22[190]],_0x4a22[193]);break;case _0x4a22[194]:_0x3f47x3=createDropdownFromArray(ISPEECHASRMODEL,_0x3f47x2);break;case _0x4a22[195]:_0x3f47x3=createDropdownFromArray(ISPEECHASRLANG,_0x3f47x2);break;case _0x4a22[196]:_0x3f47x3=createDropdownFromArray(ISPEECHBEEP,_0x3f47x2);break;case _0x4a22[197]:_0x3f47x3=createDropdownFromArray(ISPEECHLANG,_0x3f47x2);break;case _0x4a22[198]:_0x3f47x3=createDropdownFromArray(GOOGLETTSLANG,_0x3f47x2);break;case _0x4a22[201]:_0x3f47x3=createGroupedDropdownFromApi(_0x4a22[199],_0x3f47x2,_0x4a22[124],_0x4a22[132],_0x3f47x8,_0x4a22[200]);break;case _0x4a22[202]:_0x3f47x3=createDropdownFromApi(_0x4a22[139],_0x3f47x2,_0x4a22[124],_0x4a22[132],_0x3f47x8);break;case _0x4a22[204]:_0x3f47x3=createDropdownFromApi(_0x4a22[203],_0x3f47x2,_0x4a22[124],_0x4a22[132],_0x3f47x8);break;case _0x4a22[207]:_0x3f47x3=createDropdownFromApi(_0x4a22[205],_0x3f47x2,_0x4a22[206],_0x4a22[132],_0x3f47x8);break;case _0x4a22[208]:;case _0x4a22[209]:;case _0x4a22[210]:;case _0x4a22[211]:;case _0x4a22[17]:;case _0x4a22[212]:;case _0x4a22[215]:_0x3f47x3=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3[_0x4a22[5]](_0x4a22[3],_0x4a22[213]);_0x3f47x3[_0x4a22[5]](_0x4a22[214],0);_0x3f47x3[_0x4a22[5]](_0x4a22[45],1000);_0x3f47x3[_0x4a22[5]](_0x4a22[23],_0x3f47x2);_0x3f47x3[_0x4a22[31]]=_0x4a22[133];break;case _0x4a22[21]:;case _0x4a22[216]:;case _0x4a22[217]:;case _0x4a22[218]:;case _0x4a22[220]:_0x3f47x3=document[_0x4a22[2]](_0x4a22[82]);_0x3f47x3[_0x4a22[219]]=_0x3f47x2;_0x3f47x3[_0x4a22[31]]=_0x4a22[133];break;case _0x4a22[223]:_0x3f47x3=document[_0x4a22[2]](_0x4a22[82]);_0x3f47x3[_0x4a22[219]]=_0x3f47x2;_0x3f47x3[_0x4a22[31]]=_0x4a22[133];_0x3f47x3[_0x4a22[5]](_0x4a22[221],_0x4a22[222]);break;default:_0x3f47x3=document[_0x4a22[2]](_0x4a22[1]);_0x3f47x3[_0x4a22[5]](_0x4a22[23],_0x3f47x2);_0x3f47x3[_0x4a22[31]]=_0x4a22[133];break};_0x3f47x3[_0x4a22[5]](_0x4a22[132],_0x3f47x3a);var _0x3f47x1f=_0x3f47x8[_0x4a22[49]](_0x4a22[168]);_0x3f47x1f[_0x4a22[25]](_0x3f47x3);if(mxResources[_0x4a22[75]](_0x4a22[224]+_0x3f47x39)){var _0x3f47x51=_0x3f47x8[_0x4a22[49]](_0x4a22[225]);_0x3f47x51[_0x4a22[31]]=_0x4a22[226];mxUtils[_0x4a22[77]](_0x3f47x51,mxResources[_0x4a22[75]](_0x4a22[224]+_0x3f47x39));_0x3f47x1f[_0x4a22[25]](_0x3f47x51)};_0x3f47x4a[_0x4a22[25]](_0x3f47x1f);_0x3f47x49[_0x4a22[25]](_0x3f47x4a)};_0x3f47x24[_0x4a22[25]](_0x3f47x49);var _0x3f47x31=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[134]),mxUtils[_0x4a22[102]](this,function(_0x3f47x32){for(var _0x3f47x50=0;_0x3f47x50<_0x3f47x4d[_0x4a22[23]][_0x4a22[177]][_0x4a22[140]];_0x3f47x50++){var _0x3f47x3a=_0x4a22[125]+_0x3f47x4d[_0x4a22[23]][_0x4a22[177]][_0x3f47x50][_0x4a22[124]];var _0x3f47x39=_0x3f47x4d[_0x4a22[23]][_0x4a22[177]][_0x3f47x50][_0x4a22[124]];console[_0x4a22[93]](_0x3f47x39,document[_0x4a22[227]](_0x3f47x3a)[_0x4a22[23]]);_0x3f47x4d[_0x4a22[5]](_0x3f47x39,document[_0x4a22[227]](_0x3f47x3a)[_0x4a22[23]])};_0x3f47x4e[_0x4a22[228]](_0x3f47x4d);_0x3f47x8[_0x4a22[78]]()}));_0x3f47x31[_0x4a22[31]]=_0x4a22[103];var _0x3f47x34=mxUtils[_0x4a22[79]](mxResources[_0x4a22[75]](_0x4a22[104]),function(){_0x3f47x8[_0x4a22[78]]()});_0x3f47x34[_0x4a22[31]]=_0x4a22[105];_0x3f47x25[_0x4a22[25]](_0x3f47x31);_0x3f47x25[_0x4a22[25]](_0x3f47x34);_0x3f47x22[_0x4a22[25]](_0x3f47x23);_0x3f47x22[_0x4a22[25]](_0x3f47x24);_0x3f47x22[_0x4a22[25]](_0x3f47x25);this[_0x4a22[63]]=_0x3f47x22}
\ No newline at end of file