!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}([function(t,e,n){"use strict";n.d(e,"p",function(){return l}),n.d(e,"o",function(){return c}),n.d(e,"v",function(){return u}),n.d(e,"m",function(){return p}),n.d(e,"n",function(){return h}),n.d(e,"r",function(){return _}),n.d(e,"u",function(){return m}),n.d(e,"l",function(){return f}),n.d(e,"k",function(){return v}),n.d(e,"j",function(){return b}),n.d(e,"s",function(){return y}),n.d(e,"e",function(){return g}),n.d(e,"h",function(){return E}),n.d(e,"i",function(){return x}),n.d(e,"t",function(){return w}),n.d(e,"d",function(){return C}),n.d(e,"a",function(){return M}),n.d(e,"b",function(){return I}),n.d(e,"w",function(){return k}),n.d(e,"g",function(){return T}),n.d(e,"q",function(){return j}),n.d(e,"f",function(){return A}),n.d(e,"c",function(){return P});var i=n(10),r=n.n(i),a=n(4),o=n(5),s=(n(13),function(){return(s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&!isNaN(parseInt(t))?parseInt(t):e}function c(t,e){return"number"==typeof t?t:"string"==typeof t&&t.length>0&&!isNaN(parseFloat(t))?parseFloat(t):e}function u(t){return null==t||0===t.length}function p(t,e){return"string"==typeof t&&t.length>0?t:e}function h(t){return"boolean"==typeof t?t:"number"==typeof t?t>0:"string"==typeof t&&("1"===t||"true"===t)}function d(t,e,n){void 0===n&&(n=" "),"number"==typeof t&&(t=""+t),"number"==typeof n&&(n=""+n);var i=e-t.length;if(0===i)return t;if(i<0)return t.substr(Math.abs(i));if(i===n.length)return""+n+t;if(i0&&if||h+a+v.width-y>p.width||a===x&&h<0&&i>m+x+c,D=r0&&r_||b+o+v.height-y>p.height||o===w&&b<0&&r>d+w+u;(e=O?0:C?x:h+a)<0&&(e=0),(n=D?0:M?w:b+o)<0&&(n=0),s=i,l=r,e===a&&n===o||(E(e,n),g(e,n),a=e,o=n)},w=function(){a=0,o=0,s=0,l=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),t.draggable=r,document.body.style.userSelect="auto"},M=function(e){if(2!==e.button){e.stopPropagation(),t.draggable=!1;var n=D(t,i);a=n.left,o=n.top,s=e.pageX,l=e.pageY,c=e.offsetX,u=e.offsetY,p=i.getBoundingClientRect(),h=D(i),d=h.top,_=d+p.height,m=h.left,f=m+p.width,v=t.getBoundingClientRect(),b=window.getComputedStyle(t).borderWidth||"0",y=2*Number.parseInt(b),document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}};return t.addEventListener("mousedown",M),function(){t.removeEventListener("mousedown",M),w()}}function I(t,e){var n=document.createElement("div");n.className="resize-draggable",t.appendChild(n);var i=t.parentElement,r=t.draggable,a=0,o=0,s=0,l=0,c=0,u=i.getBoundingClientRect(),p=D(i),h=p.top,d=h+u.height,_=p.left,m=_+u.width,f=D(t),v=f.top,b=f.left,y=window.getComputedStyle(t).borderWidth||"0",g=Number.parseInt(y),E=C(32,e),x=O(16,e),w=function(t){var e=a+(t.pageX-s),n=o+(t.pageY-l);e===a&&n===o||eb+(a-c)||(e<15?e=15:e+b-g/2>=m&&(e=m-b),n<15?n=15:n+v-g/2>=d&&(n=d-v),x(e,n),E(e,n),a=e,o=n,s=t.pageX,l=t.pageY)},M=function(){a=0,o=0,s=0,l=0,c=0,0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",M),t.draggable=r,document.body.style.userSelect="auto"};return n.addEventListener("mousedown",function(e){e.stopPropagation(),t.draggable=!1;var n=t.getBoundingClientRect(),r=n.width,y=n.height;a=r,o=y,s=e.pageX,l=e.pageY,c=e.offsetX,e.offsetY,u=i.getBoundingClientRect(),p=D(i),h=p.top,d=h+u.height,_=p.left,m=_+u.width,f=D(t),v=f.top,b=f.left,document.addEventListener("mousemove",w),document.addEventListener("mouseup",M),document.body.style.userSelect="none"}),function(){n.remove(),M()}}function k(t){return t}function T(t){var e=document.createElement("a");e.className="tip";var n=document.createElement("img");return n.src=r.a,n.className="forced_title",n.setAttribute("alt",t),n.setAttribute("data-title",t),n.setAttribute("data-use_title_for_force_title","1"),e.appendChild(n),e}function j(t,e,n,i){null===t&&(t=0);var r,s=e?e.value:0,c=null!=t?t:s,u=document.createElement("div"),p=document.createElement("div"),h=document.createElement("select"),d=document.createElement("a"),_=document.createElement("div"),m=document.createElement("input"),f=document.createElement("select"),v=document.createElement("a"),b=[{value:"1",text:k("Seconds").toLowerCase()},{value:"60",text:k("Minutes").toLowerCase()},{value:"3600",text:k("Hours").toLowerCase()},{value:"86400",text:k("Days").toLowerCase()},{value:"604800",text:k("Weeks").toLowerCase()},{value:"2592000",text:k("Months").toLowerCase()},{value:"31104000",text:k("Years").toLowerCase()}],y=function(t){i(c=t)},g=function(t){return n.sort(function(t,e){return t.value=e.value})},E=function(t){return b.map(function(t){return Number.parseInt(t.value)}).sort(function(t,e){return te?t.substr(0,e).trim()+n:t}function P(t,e,n,i){var r=document.createElement("div");r.classList.add("autocomplete");var a=document.createElement("input");a.type="text",null!==t&&(a.value=t);var o=document.createElement("div");o.classList.add("autocomplete-items");var s=function(){o.innerHTML=""};return a.addEventListener("keyup",function(t){var r=t.target.value;r?e(r,function(t){s(),t instanceof Array&&t.forEach(function(t){var e=n(t);e.addEventListener("click",function(){a.value=i(t),s()}),o.appendChild(e)})}):s()}),r.appendChild(a),r.appendChild(o),r}},function(t,e,n){"use strict";n.d(e,"c",function(){return b}),n.d(e,"b",function(){return y}),n.d(e,"a",function(){return g}),n.d(e,"e",function(){return x});var i,r=n(0),a=n(3),o=n(2),s=n(5),l=n(4),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(){return(u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0){var i=e.labelElementRef.getBoundingClientRect(),r=i.width,a=i.height;switch(e.props.labelPosition){case"up":case"down":n-=a;break;case"left":case"right":t-=r}}var o={width:e.props.width,height:e.props.height},s={width:t,height:n};e.sizeChanged(o,s)&&(e.resizeElement(t,n),e.resizedEventManager.emit({item:e,prevSize:o,newSize:s}),e.debouncedResizementSave(t,n))})},t.prototype.stopResizementListener=function(){this.removeResizement&&(this.removeResizement(),this.removeResizement=null)},t.prototype.init=function(){this.elementRef=this.createContainerDomElement(),this.labelElementRef=this.createLabelDomElement(),this.childElementRef=this.createDomElement(),this.elementRef.appendChild(this.childElementRef),this.elementRef.appendChild(this.labelElementRef),this.resizeElement(this.itemProps.width,this.itemProps.height),this.changeLabelPosition(this.itemProps.labelPosition)},t.prototype.createContainerDomElement=function(){var t,e=this;return this.props.isLinkEnabled?(t=document.createElement("a"),this.props.link&&(t.href=this.props.link)):t=document.createElement("div"),t.className="visual-console-item",this.props.isOnTop&&t.classList.add("is-on-top"),t.style.left=this.props.x+"px",t.style.top=this.props.y+"px",t.addEventListener("dblclick",function(t){e.meta.isBeingMoved||e.meta.isBeingResized||e.dblClickEventManager.emit({item:e,nativeEvent:t})}),t.addEventListener("click",function(t){e.meta.editMode&&(t.preventDefault(),t.stopPropagation()),e.meta.isBeingMoved||e.meta.isBeingResized||e.clickEventManager.emit({item:e,nativeEvent:t})}),this.meta.editMode&&(t.classList.add("is-editing"),this.initMovementListener(t),this.initResizementListener(t)),this.meta.isFetching&&t.classList.add("is-fetching"),this.meta.isUpdating&&t.classList.add("is-updating"),this.meta.isSelected&&t.classList.add("is-selected"),t},t.prototype.createLabelDomElement=function(){var t=document.createElement("div");t.className="visual-console-item-label";var e=this.getLabelWithMacrosReplaced();if(e.length>0){var n=document.createElement("table"),i=document.createElement("tr"),r=document.createElement("tr"),a=document.createElement("tr"),o=document.createElement("td");switch(o.innerHTML=e,i.appendChild(o),n.appendChild(r),n.appendChild(i),n.appendChild(a),n.style.textAlign="center",this.props.labelPosition){case"up":case"down":this.props.width>0&&(n.style.width=this.props.width+"px",n.style.height=null);break;case"left":case"right":this.props.height>0&&(n.style.width=null,n.style.height=this.props.height+"px")}t.appendChild(n)}return t},t.prototype.getLabelWithMacrosReplaced=function(){var t=this.props;return Object(r.t)([{macro:"_date_",value:Object(r.h)(new Date)},{macro:"_time_",value:Object(r.i)(new Date)},{macro:"_agent_",value:null!=t.agentAlias?t.agentAlias:""},{macro:"_agentdescription_",value:null!=t.agentDescription?t.agentDescription:""},{macro:"_address_",value:null!=t.agentAddress?t.agentAddress:""},{macro:"_module_",value:null!=t.moduleName?t.moduleName:""},{macro:"_moduledescription_",value:null!=t.moduleDescription?t.moduleDescription:""}],this.props.label||"")},t.prototype.updateDomElement=function(t){t.innerHTML=this.createDomElement().innerHTML},Object.defineProperty(t.prototype,"props",{get:function(){return u({},this.itemProps)},set:function(t){this.setProps(t)},enumerable:!0,configurable:!0}),t.prototype.setProps=function(t){var e=this.props;this.itemProps=t,this.shouldBeUpdated(e,t)&&this.render(e,this._metadata)},Object.defineProperty(t.prototype,"meta",{get:function(){return u({},this._metadata)},set:function(t){this.setMeta(t)},enumerable:!0,configurable:!0}),t.prototype.setMeta=function(t){var e=this._metadata;this._metadata=u({},e,t),void 0!==t.isSelected&&e.isSelected!==t.isSelected&&this.selectionChangedEventManager.emit({selected:t.isSelected}),this.render(this.itemProps,e)},t.prototype.shouldBeUpdated=function(t,e){return t!==e},t.prototype.render=function(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.updateDomElement(this.childElementRef),t&&!this.positionChanged(t,this.props)||this.moveElement(this.props.x,this.props.y),t&&!this.sizeChanged(t,this.props)||this.resizeElement(this.props.width,this.props.height);var n=this.labelElementRef.innerHTML,i=this.createLabelDomElement().innerHTML;if(n!==i&&(this.labelElementRef.innerHTML=i),t&&t.labelPosition===this.props.labelPosition||this.changeLabelPosition(this.props.labelPosition),t&&t.isOnTop===this.props.isOnTop||(this.props.isOnTop?this.elementRef.classList.add("is-on-top"):this.elementRef.classList.remove("is-on-top")),t&&(t.isLinkEnabled!==this.props.isLinkEnabled||this.props.isLinkEnabled&&t.link!==this.props.link)){var r=this.createContainerDomElement();r.innerHTML=this.elementRef.innerHTML;for(var a=this.elementRef.attributes,o=0;o0?e.item(0):null;if(n)switch(this.props.labelPosition){case"up":case"down":this.props.width>0&&(n.style.width=this.props.width+"px",n.style.height=null);break;case"left":case"right":this.props.height>0&&(n.style.width=null,n.style.height=this.props.height+"px")}},t.prototype.moveElement=function(t,e){this.elementRef.style.left=t+"px",this.elementRef.style.top=e+"px"},t.prototype.move=function(t,e){this.moveElement(t,e),this.itemProps=u({},this.props,{x:t,y:e})},t.prototype.sizeChanged=function(t,e){return t.width!==e.width||t.height!==e.height},t.prototype.resizeElement=function(t,e){if(this.childElementRef.style.width=t>0?t+"px":null,this.childElementRef.style.height=e>0?e+"px":null,this.props.label&&this.props.label.length>0){var n=this.labelElementRef.getElementsByTagName("table"),i=n.length>0?n.item(0):null;if(i)switch(this.props.labelPosition){case"up":case"down":i.style.width=t>0?t+"px":null;break;case"left":case"right":i.style.height=e>0?e+"px":null}}},t.prototype.resize=function(t,e){this.resizeElement(t,e),this.itemProps=u({},this.props,{width:t,height:e})},t.prototype.onClick=function(t){var e=this.clickEventManager.on(t);return this.disposables.push(e),e},t.prototype.onDblClick=function(t){var e=this.dblClickEventManager.on(t);return this.disposables.push(e),e},t.prototype.onMoved=function(t){var e=this.movedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onMovementFinished=function(t){var e=this.movementFinishedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onResized=function(t){var e=this.resizedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onResizeFinished=function(t){var e=this.resizeFinishedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onRemove=function(t){var e=this.removeEventManager.on(t);return this.disposables.push(e),e},t.prototype.onSelectionChanged=function(t){var e=this.selectionChangedEventManager.on(t);return this.disposables.push(e),e},t.prototype.getFormContainer=function(){return new o.FormContainer(Object(r.w)("Item"),[new d("position",this.props),new _("size",this.props),new p("link",this.props),new h("show-on-top",this.props),new m("parent",this.props),new f("acl-group",this.props),new v("cache-expiration",this.props)],["position","size","link","show-on-top","parent","acl-group","cache-expiration"])},t.getFormContainer=function(t){return new o.FormContainer(Object(r.w)("Item"),[new d("position",t),new _("size",t),new p("link",t),new h("show-on-top",t),new m("parent",t),new f("acl-group",t),new v("cache-expiration",t)],["position","size","link","show-on-top","parent","acl-group","cache-expiration"])},t}();e.d=w},function(t,e,n){"use strict";n.r(e),n.d(e,"InputGroup",function(){return o}),n.d(e,"FormContainer",function(){return s});var i=n(3),r=n(0),a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&(this.inputGroupsByName=e.reduce(function(t,e){return e.onDataRequested(r.handleItemDataRequested),t[e.name]=e,t},this.inputGroupsByName)),n.length>0&&(this.enabledInputGroupNames=this.enabledInputGroupNames.concat(n.filter(function(t){return null!=r.inputGroupsByName[t]})))}return t.prototype.getInputGroup=function(t){return this.inputGroupsByName[t]||null},t.prototype.addInputGroup=function(t,e){return void 0===e&&(e=null),t.onDataRequested(this.handleItemDataRequested),this.inputGroupsByName[t.name]=t,this.enabledInputGroupNames=this.enabledInputGroupNames.filter(function(e){return e!==t.name}),null!==e?e<=0?this.enabledInputGroupNames=[t.name].concat(this.enabledInputGroupNames):e>=this.enabledInputGroupNames.length?this.enabledInputGroupNames=this.enabledInputGroupNames.concat([t.name]):this.enabledInputGroupNames=this.enabledInputGroupNames.slice(0,e).concat([t.name],this.enabledInputGroupNames.slice(e)):this.enabledInputGroupNames=this.enabledInputGroupNames.concat([t.name]),this},t.prototype.removeInputGroup=function(t){return delete this.inputGroupsByName[t],this.enabledInputGroupNames=this.enabledInputGroupNames.filter(function(e){return e!==t}),this},t.prototype.getFormElement=function(t){var e=this;void 0===t&&(t="update");var n=document.createElement("form");n.className="visual-console-item-edition",n.addEventListener("submit",function(t){t.preventDefault(),e.submitEventManager.emit({nativeEvent:t,data:e.enabledInputGroupNames.reduce(function(t,n){return e.inputGroupsByName[n]&&(t=a({},t,e.inputGroupsByName[n].data)),t},{})})});var i=document.createElement("div");i.className="input-groups",this.enabledInputGroupNames.forEach(function(t){e.inputGroupsByName[t]&&i.appendChild(e.inputGroupsByName[t].element)});var o=document.createElement("input");return o.className="sub upd",o.type="submit",o.value="creation"===t?Object(r.w)("Create"):Object(r.w)("Update"),n.appendChild(i),n.appendChild(o),n},t.prototype.reset=function(){var t=this;this.enabledInputGroupNames.forEach(function(e){t.inputGroupsByName[e]&&t.inputGroupsByName[e].reset()})},t.prototype.onSubmit=function(t){return this.submitEventManager.on(t)},t.prototype.onInputGroupDataRequested=function(t){return this.itemDataRequestedEventManager.on(t)},t}()},function(t,e,n){"use strict";var i=function(){return function(){var t=this;this.listeners=[],this.listenersOncer=[],this.on=function(e){return t.listeners.push(e),{dispose:function(){return t.off(e)}}},this.once=function(e){t.listenersOncer.push(e)},this.off=function(e){var n=t.listeners.indexOf(e);n>-1&&t.listeners.splice(n,1)},this.emit=function(e){t.listeners.forEach(function(t){return t(e)}),t.listenersOncer.forEach(function(t){return t(e)}),t.listenersOncer=[]},this.pipe=function(e){return t.on(function(t){return e.emit(t)})}}}();e.a=i},function(t,e,n){"use strict";n(12);var i="http://www.w3.org/2000/svg";e.a=function(t,e,n){var r=void 0===n?{}:n,a=r.size,o=r.color,s=r.spin,l=r.pulse,c=document.createElement("figure");c.title=e,c.className="fa fa-"+t.iconName,a&&c.classList.add("fa-"+a),s?c.classList.add("fa-spin"):l&&c.classList.add("fa-pulse");var u=document.createElementNS(i,"svg");u.setAttribute("viewBox","0 0 "+t.icon[0]+" "+t.icon[1]),o&&u.setAttribute("fill",o);var p=document.createElementNS(i,"path"),h="string"==typeof t.icon[4]?t.icon[4]:t.icon[4][0];return p.setAttribute("d",h),u.appendChild(p),c.appendChild(u),c}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return l});var i={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"]},r={prefix:"fas",iconName:"exclamation-circle",icon:[512,512,[],"f06a","M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},a={prefix:"fas",iconName:"list-alt",icon:[512,512,[],"f022","M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"]},o={prefix:"fas",iconName:"pencil-alt",icon:[512,512,[],"f303","M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"]},s={prefix:"fas",iconName:"plus-circle",icon:[512,512,[],"f055","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]},l={prefix:"fas",iconName:"trash-alt",icon:[448,512,[],"f2ed","M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",function(){return eventsHistoryPropsDecoder});var _lib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_Item__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_Form__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),__extends=(extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),extendStatics,__assign=function(){return(__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0){var v=document.createElementNS(t,"text");v.setAttribute("text-anchor","middle"),v.setAttribute("font-size","8"),v.setAttribute("transform","translate(30 50) rotate(90)"),v.setAttribute("fill",i),v.textContent=f,_.append(v)}var b=document.createElementNS(t,"g");b.setAttribute("class","marks");var y=document.createElementNS(t,"g");y.setAttribute("class","mark"),y.setAttribute("transform","translate(50 50)");var g=document.createElementNS(t,"line");g.setAttribute("x1","36"),g.setAttribute("y1","0"),g.setAttribute("x2","46"),g.setAttribute("y2","0"),g.setAttribute("stroke",i),g.setAttribute("stroke-width","5");var E=document.createElementNS(t,"line");E.setAttribute("x1","36"),E.setAttribute("y1","0"),E.setAttribute("x2","46"),E.setAttribute("y2","0"),E.setAttribute("stroke",e),E.setAttribute("stroke-width","1"),y.append(g,E),b.append(y);for(var x=1;x<60;x++){var w=document.createElementNS(t,"line");w.setAttribute("y1","0"),w.setAttribute("y2","0"),w.setAttribute("stroke",i),w.setAttribute("transform","translate(50 50) rotate("+6*x+")"),x%5==0?(w.setAttribute("x1","38"),w.setAttribute("x2","46"),w.setAttribute("stroke-width",x%15==0?"2":"1")):(w.setAttribute("x1","42"),w.setAttribute("x2","46"),w.setAttribute("stroke-width","0.5")),b.append(w)}var O=document.createElementNS(t,"g");O.setAttribute("class","hour-hand"),O.setAttribute("transform","translate(50 50)");var C=document.createElementNS(t,"line");C.setAttribute("class","hour-hand-a"),C.setAttribute("x1","0"),C.setAttribute("y1","0"),C.setAttribute("x2","30"),C.setAttribute("y2","0"),C.setAttribute("stroke",o),C.setAttribute("stroke-width","4"),C.setAttribute("stroke-linecap","round");var D=document.createElementNS(t,"line");D.setAttribute("class","hour-hand-b"),D.setAttribute("x1","0"),D.setAttribute("y1","0"),D.setAttribute("x2","29.9"),D.setAttribute("y2","0"),D.setAttribute("stroke",a),D.setAttribute("stroke-width","3.1"),D.setAttribute("stroke-linecap","round"),O.append(C,D);var M=document.createElementNS(t,"g");M.setAttribute("class","minute-hand"),M.setAttribute("transform","translate(50 50)");var I=document.createElementNS(t,"line");I.setAttribute("class","minute-hand-a"),I.setAttribute("x1","0"),I.setAttribute("y1","0"),I.setAttribute("x2","40"),I.setAttribute("y2","0"),I.setAttribute("stroke",o),I.setAttribute("stroke-width","2"),I.setAttribute("stroke-linecap","round");var k=document.createElementNS(t,"line");k.setAttribute("class","minute-hand-b"),k.setAttribute("x1","0"),k.setAttribute("y1","0"),k.setAttribute("x2","39.9"),k.setAttribute("y2","0"),k.setAttribute("stroke",a),k.setAttribute("stroke-width","1.5"),k.setAttribute("stroke-linecap","round");var T=document.createElementNS(t,"circle");T.setAttribute("r","3"),T.setAttribute("fill",a),M.append(I,k,T);var j=document.createElementNS(t,"g");j.setAttribute("class","second-hand"),j.setAttribute("transform","translate(50 50)");var A=document.createElementNS(t,"line");A.setAttribute("x1","0"),A.setAttribute("y1","0"),A.setAttribute("x2","46"),A.setAttribute("y2","0"),A.setAttribute("stroke",s),A.setAttribute("stroke-width","1"),A.setAttribute("stroke-linecap","round");var P=document.createElementNS(t,"circle");P.setAttribute("r","2"),P.setAttribute("fill",s),j.append(A,P);var L=document.createElementNS(t,"circle");L.setAttribute("cx","50"),L.setAttribute("cy","50"),L.setAttribute("r","0.3"),L.setAttribute("fill",a);var R=this.getOriginDate(),S=R.getSeconds(),N=R.getMinutes(),B=6*S,G=6*N+S/60*6,W=30*R.getHours()+N/60*30;if(O.setAttribute("transform","translate(50 50) rotate("+W+")"),M.setAttribute("transform","translate(50 50) rotate("+G+")"),j.setAttribute("transform","translate(50 50) rotate("+B+")"),d.append(_,b,O,M,j,L),d.setAttribute("transform","rotate(-90)"),h.innerHTML="\n \n ",h.append(d),"datetime"===this.props.clockFormat){var z=document.createElement("span");z.className="date",z.textContent=Object(r.h)(R,"default"),z.style.fontSize=p+"px",this.props.color&&(z.style.color=this.props.color),h.append(z)}return h},e.prototype.createDigitalClock=function(){var t=document.createElement("div");t.className="digital-clock";var e=this.getElementSize().width,n=6/this.props.clockTimezone.length,i=20*e/100,a=10*e/100,o=Math.min(20*n*e/100,e/100*10),s=this.getOriginDate();if("datetime"===this.props.clockFormat){var l=document.createElement("span");l.className="date",l.textContent=Object(r.h)(s,"default"),l.style.fontSize=a+"px",this.props.color&&(l.style.color=this.props.color),t.append(l)}var c=document.createElement("span");c.className="time",c.textContent=Object(r.i)(s),c.style.fontSize=i+"px",this.props.color&&(c.style.color=this.props.color),t.append(c);var u=this.getHumanTimezone();if(u.length>0){var p=document.createElement("span");p.className="timezone",p.textContent=u,p.style.fontSize=o+"px",this.props.color&&(p.style.color=this.props.color),t.append(p)}return t},e.prototype.getOriginDate=function(t){void 0===t&&(t=null);var e=t||new Date,n=1e3*this.props.clockTimezoneOffset,i=60*e.getTimezoneOffset()*1e3,r=e.getTime()+n+i;return new Date(r)},e.prototype.getHumanTimezone=function(t){void 0===t&&(t=this.props.clockTimezone);var e=t.split("/")[1];return(void 0===e?"":e).replace("_"," ")},e.prototype.getElementSize=function(t,e){switch(void 0===t&&(t=this.props.width),void 0===e&&(e=this.props.height),this.props.clockType){case"analogic":var n=100;return t>0&&e>0?n=Math.min(t,e):t>0?n=t:e>0&&(n=e),{width:n,height:n};case"digital":return t>0&&e>0?e=t/20?e=t/2:e>0?t=2*e:(t=100,e=50),{width:t,height:e};default:throw new Error("invalid clock type.")}},e.prototype.getFormContainer=function(){var e=t.prototype.getFormContainer.call(this);return e.removeInputGroup("size"),e.removeInputGroup("link"),e.removeInputGroup("parent"),e.removeInputGroup("acl-group"),e.addInputGroup(new S("ClockType",this.props)),e.addInputGroup(new N("clockFormat",this.props)),e.addInputGroup(new B("widthInput",this.props)),e.addInputGroup(new G("clockTimezone",this.props)),e.addInputGroup(new W("fillColor",this.props)),e},e.TICK_INTERVAL=1e3,e}(a.d),U=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),K=function(){return(K=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0){t.style.borderStyle="solid";var e=Math.min(this.props.width,this.props.height)/2,n=Math.min(this.props.borderWidth,e);t.style.borderWidth=n+"px",this.props.borderColor&&(t.style.borderColor=this.props.borderColor)}return t},e.prototype.updateDomElement=function(t){if(this.props.fillColor&&(t.style.backgroundColor=this.props.fillColor),this.props.borderWidth>0){t.style.borderStyle="solid";var e=Math.min(this.props.width,this.props.height)/2,n=Math.min(this.props.borderWidth,e);t.style.borderWidth=n+"px",this.props.borderColor&&(t.style.borderColor=this.props.borderColor)}},e.prototype.getFormContainer=function(){var e=t.prototype.getFormContainer.call(this);return e.addInputGroup(new q("border-color",this.props)),e.addInputGroup(new V("border-width",this.props)),e.addInputGroup(new H("fill-width",this.props)),e},e}(a.d),X=n(3),J=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Z=function(){return(Z=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0){var m=_.item(0);if(null!=m){m.setAttribute("width",""+(r+o)),m.setAttribute("height",""+(a+o));var f=m.getElementsByTagNameNS($,"line");if(f.length>0){var v=f.item(0);null!=v&&(v.setAttribute("x1",""+u),v.setAttribute("y1",""+p),v.setAttribute("x2",""+h),v.setAttribute("y2",""+d),v.setAttribute("stroke",c||"black"),v.setAttribute("stroke-width",""+o))}}}if(this.moveMode){var b=s.x-l.x<=0,y=s.y-l.y<=0,g=document.createElement("div"),E=document.createElement("div");if(this.isMoving){var x=t.getElementsByClassName("visual-console-item-line-circle-start");if(x.length>0)(C=x.item(0))&&(g=C);var w=t.getElementsByClassName("visual-console-item-line-circle-end");if(w.length>0)(C=w.item(0))&&(E=C)}g.classList.add("visual-console-item-line-circle","visual-console-item-line-circle-start"),g.style.width=2*this.circleRadius+"px",g.style.height=2*this.circleRadius+"px",g.style.borderRadius="50%",g.style.backgroundColor="white",g.style.position="absolute",g.style.left=b?"-"+this.circleRadius+"px":r+o-this.circleRadius+"px",g.style.top=y?"-"+this.circleRadius+"px":a+o-this.circleRadius+"px",E.classList.add("visual-console-item-line-circle","visual-console-item-line-circle-end"),E.style.width=2*this.circleRadius+"px",E.style.height=2*this.circleRadius+"px",E.style.borderRadius="50%",E.style.backgroundColor="black",E.style.position="absolute",E.style.left=b?r+o-8+"px":"-"+this.circleRadius+"px",E.style.top=y?a+o-this.circleRadius+"px":"-"+this.circleRadius+"px",this.isMoving||(t.appendChild(g),t.appendChild(E),this.initStartPositionMovementListener(g,this.elementRef.parentElement),this.initEndPositionMovementListener(E,this.elementRef.parentElement))}else if(!this.isMoving){this.stopStartPositionMovementListener();for(var O=t.getElementsByClassName("visual-console-item-line-circle");O.length>0;){var C;(C=O.item(0))&&C.remove()}}},e.extractBoxSizeAndPosition=function(t,e){return{width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y),x:Math.min(t.x,e.x),y:Math.min(t.y,e.y)}},e.prototype.remove=function(){this.stopStartPositionMovementListener(),t.prototype.remove.call(this)},e.prototype.onLineMovementFinished=function(t){var e=this.lineMovedEventManager.on(t);return this.lineMovedEventDisposables.push(e),e},e}(a.d),et=tt,nt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(){return(it=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&(n=Object(r.t)([{macro:/\(?_VALUE_\)?/i,value:n}],i)),t.innerHTML=n}return t},e.prototype.createLabelDomElement=function(){var t=document.createElement("div");return t.className="visual-console-item-label",t},e.prototype.getFormContainer=function(){var e=t.prototype.getFormContainer.call(this);return e.addInputGroup(new a.c("link-console",this.props)),e.addInputGroup(new ut("process-operation",this.props)),e.addInputGroup(new a.a("agent-autocomplete",this.props)),e},e}(a.d),dt=n(6),_t=Math.PI,mt=2*_t,ft=mt-1e-6;function vt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function bt(){return new vt}vt.prototype=bt.prototype={constructor:vt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,o=this._y1,s=n-t,l=i-e,c=a-t,u=o-e,p=c*c+u*u;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(p>1e-6)if(Math.abs(u*s-l*c)>1e-6&&r){var h=n-a,d=i-o,_=s*s+l*l,m=h*h+d*d,f=Math.sqrt(_),v=Math.sqrt(p),b=r*Math.tan((_t-Math.acos((_+p-m)/(2*f*v)))/2),y=b/v,g=b/f;Math.abs(y-1)>1e-6&&(this._+="L"+(t+y*c)+","+(e+y*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*d)+","+(this._x1=t+g*s)+","+(this._y1=e+g*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,r,a){t=+t,e=+e;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),l=t+o,c=e+s,u=1^a,p=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(p<0&&(p=p%mt+mt),p>ft?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=_t)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var yt=bt,gt=function(t){return function(){return t}},Et=Math.abs,xt=Math.atan2,wt=Math.cos,Ot=Math.max,Ct=Math.min,Dt=Math.sin,Mt=Math.sqrt,It=1e-12,kt=Math.PI,Tt=kt/2,jt=2*kt;function At(t){return t>=1?Tt:t<=-1?-Tt:Math.asin(t)}function Pt(t){return t.innerRadius}function Lt(t){return t.outerRadius}function Rt(t){return t.startAngle}function St(t){return t.endAngle}function Nt(t){return t&&t.padAngle}function Bt(t,e,n,i,r,a,o){var s=t-n,l=e-i,c=(o?a:-a)/Mt(s*s+l*l),u=c*l,p=-c*s,h=t+u,d=e+p,_=n+u,m=i+p,f=(h+_)/2,v=(d+m)/2,b=_-h,y=m-d,g=b*b+y*y,E=r-a,x=h*m-_*d,w=(y<0?-1:1)*Mt(Ot(0,E*E*g-x*x)),O=(x*y-b*w)/g,C=(-x*b-y*w)/g,D=(x*y+b*w)/g,M=(-x*b+y*w)/g,I=O-f,k=C-v,T=D-f,j=M-v;return I*I+k*k>T*T+j*j&&(O=D,C=M),{cx:O,cy:C,x01:-u,y01:-p,x11:O*(r/E-1),y11:C*(r/E-1)}}var Gt=function(){var t=Pt,e=Lt,n=gt(0),i=null,r=Rt,a=St,o=Nt,s=null;function l(){var l,c,u,p=+t.apply(this,arguments),h=+e.apply(this,arguments),d=r.apply(this,arguments)-Tt,_=a.apply(this,arguments)-Tt,m=Et(_-d),f=_>d;if(s||(s=l=yt()),hIt)if(m>jt-It)s.moveTo(h*wt(d),h*Dt(d)),s.arc(0,0,h,d,_,!f),p>It&&(s.moveTo(p*wt(_),p*Dt(_)),s.arc(0,0,p,_,d,f));else{var v,b,y=d,g=_,E=d,x=_,w=m,O=m,C=o.apply(this,arguments)/2,D=C>It&&(i?+i.apply(this,arguments):Mt(p*p+h*h)),M=Ct(Et(h-p)/2,+n.apply(this,arguments)),I=M,k=M;if(D>It){var T=At(D/p*Dt(C)),j=At(D/h*Dt(C));(w-=2*T)>It?(E+=T*=f?1:-1,x-=T):(w=0,E=x=(d+_)/2),(O-=2*j)>It?(y+=j*=f?1:-1,g-=j):(O=0,y=g=(d+_)/2)}var A=h*wt(y),P=h*Dt(y),L=p*wt(x),R=p*Dt(x);if(M>It){var S,N=h*wt(g),B=h*Dt(g),G=p*wt(E),W=p*Dt(E);if(m1?0:u<-1?kt:Math.acos(u))/2),V=Mt(S[0]*S[0]+S[1]*S[1]);I=Ct(M,(p-V)/(q-1)),k=Ct(M,(h-V)/(q+1))}}O>It?k>It?(v=Bt(G,W,A,P,h,k,f),b=Bt(N,B,L,R,h,k,f),s.moveTo(v.cx+v.x01,v.cy+v.y01),kIt&&w>It?I>It?(v=Bt(L,R,N,B,p,-I,f),b=Bt(A,P,G,W,p,-I,f),s.lineTo(v.cx+v.x01,v.cy+v.y01),I0)for(var i,r=t[0],a=e[0],o=t[n]-r,s=e[n]-a,l=-1;++l<=n;)i=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(r+i*o),this._beta*e[l]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function n(t){return 1===e?new Ht(t):new Jt(t,e)}return n.beta=function(e){return t(+e)},n})(.85);function Zt(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Qt(t,e){this._context=t,this._k=(1-e)/6}Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Zt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new Qt(t,e)}return n.tension=function(e){return t(+e)},n})(0);function $t(t,e){this._context=t,this._k=(1-e)/6}$t.prototype={areaStart:qt,areaEnd:qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Zt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new $t(t,e)}return n.tension=function(e){return t(+e)},n})(0);function te(t,e){this._context=t,this._k=(1-e)/6}te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new te(t,e)}return n.tension=function(e){return t(+e)},n})(0);function ee(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>It){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>It){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function ne(t,e){this._context=t,this._alpha=e}ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ee(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new ne(t,e):new Qt(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function ie(t,e){this._context=t,this._alpha=e}ie.prototype={areaStart:qt,areaEnd:qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ee(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new ie(t,e):new $t(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function re(t,e){this._context=t,this._alpha=e}re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ee(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new re(t,e):new te(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function ae(t){this._context=t}ae.prototype={areaStart:qt,areaEnd:qt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function oe(t){return t<0?-1:1}function se(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(oe(a)+oe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function le(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ce(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function ue(t){this._context=t}function pe(t){this._context=new he(t)}function he(t){this._context=t}function de(t){this._context=t}function _e(t){var e,n,i=t.length-1,r=new Array(i),a=new Array(i),o=new Array(i);for(r[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)r[e]=(o[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var fe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ve=function(){return(ve=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0){var h=document.createElementNS(ke,"tspan");h.setAttribute("x","0"),h.setAttribute("dy","1em"),h.textContent=""+t,h.style.fontSize="8pt";var d=document.createElementNS(ke,"tspan");d.setAttribute("x","0"),d.setAttribute("dy","1em"),d.textContent=""+this.props.unit,d.style.fontSize="8pt",p.append(h,d),p.setAttribute("transform","translate(50 33)")}else p.textContent=""+t,p.style.fontSize="8pt",p.setAttribute("transform","translate(50 50)");else p.textContent=n+"%",p.setAttribute("transform","translate(50 50)");r.append(p)}return i.append(r),i},e.prototype.getProgress=function(){var t=this.props.minValue||0,e=this.props.maxValue||100,n=null==this.props.value?0:this.props.value;return n<=t?0:n>=e?100:Math.trunc((n-t)/(e-t)*100)},e.prototype.getFormContainer=function(){var e=t.prototype.getFormContainer.call(this);return e.removeInputGroup("size"),e.addInputGroup(new Ee("diameter",this.props)),e.addInputGroup(new xe("min-value",this.props)),e.addInputGroup(new we("max-value",this.props)),e.addInputGroup(new Oe("type",this.props)),e.addInputGroup(new Ce("value-to-show",this.props)),e.addInputGroup(new De("element-color",this.props)),e.addInputGroup(new Me("value-color",this.props)),e.addInputGroup(new Ie("label-percentile",this.props)),e.addInputGroup(new a.c("link-console",this.props)),e},e}(a.d),je=n(7),Ae=n(8),Pe=n(9),Le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Re=function(){return(Re=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0?t.selected=!0:t.selected=!1,i.selectionChangedEventManager.emit(t)},this.handleContainerClick=function(){i.unselectItems()},this.containerRef=t,this._props=function(t){var e=t.id,n=t.name,i=t.groupId,a=t.backgroundURL,o=t.backgroundColor,s=t.isFavorite,l=t.relationLineWidth;if(null==e||isNaN(parseInt(e)))throw new TypeError("invalid Id.");if("string"!=typeof n||0===n.length)throw new TypeError("invalid name.");if(null==i||isNaN(parseInt(i)))throw new TypeError("invalid group Id.");return Ge({id:parseInt(e),name:n,groupId:parseInt(i),backgroundURL:Object(r.m)(a,null),backgroundColor:Object(r.m)(o,null),isFavorite:Object(r.n)(s),relationLineWidth:Object(r.p)(l,0)},Object(r.u)(t))}(e),this.render(),(n=n.sort(function(t,e){return null==t.id||null==e.id?0:t.id>e.id?1:-1})).forEach(function(t){return i.addElement(t,i)}),this.buildRelations(),this.containerRef.addEventListener("click",this.handleContainerClick)}return Object.defineProperty(t.prototype,"elements",{get:function(){var t=this;return this.elementIds.map(function(e){return t.elementsById[e]}).filter(function(t){return null!=t})},enumerable:!0,configurable:!0}),t.prototype.addElement=function(t,e){void 0===e&&(e=this);try{var n=function(t){var e=Object(r.p)(t.type,null);if(null==e)throw new TypeError("missing item type.");var n=Object(r.j)(t);switch(e){case 0:return new h(u(t),n);case 1:return new Pe.a(Object(Pe.b)(t),n);case 2:case 6:case 7:case 8:return new ht(pt(t),n);case 3:case 9:case 15:case 16:return new Te(ge(t),n);case 4:return new at(rt(t),n);case 5:return new f(m(t),n);case 10:return new Be(Se(t),n);case 11:return new T(I(t),n);case 12:return new Y(F(t),n);case 13:return new et(Q(t),n);case 14:return new dt.a(Object(dt.b)(t),n);case 17:return new je.a(Object(je.b)(t),n);case 18:return new Ae.b(Object(Ae.a)(t),n);case 19:return new z(R(t),n);case 20:return new C(E(t),n);default:throw new TypeError("item not found")}}(t);return e.elementsById[n.props.id]=n,e.elementIds.push(n.props.id),n.onRemove(e.handleElementRemove),n.onSelectionChanged(e.handleElementSelectionChanged),n instanceof et?n.onLineMovementFinished(e.handleLineElementMovementFinished):(n.onClick(e.handleElementClick),n.onDblClick(e.handleElementDblClick),n.onMoved(e.handleElementMovement),n.onMovementFinished(e.handleElementMovementFinished),n.onResized(e.handleElementResizement),n.onResizeFinished(e.handleElementResizementFinished)),e.containerRef.append(n.elementRef),n}catch(t){console.log("Error creating a new element:",t.message)}},t.prototype.updateElements=function(t){var e=this,n=t.map(function(t){return t.id||null}).filter(function(t){return null!=t});this.elementIds.filter(function(t){return n.indexOf(t)<0}).forEach(function(t){null!=e.elementsById[t]&&(e.elementsById[t].remove(),delete e.elementsById[t])}),this.elementIds=n,t.forEach(function(t){if(t.id)if(null==e.elementsById[t.id])e.addElement(t);else try{e.elementsById[t.id].props=We(t)}catch(t){console.log("Error updating an element:",t.message)}}),this.buildRelations()},t.prototype.updateElement=function(t){try{this.elementsById[t.id].props=We(t)}catch(t){console.log("Error updating element:",t.message)}this.buildRelations()},Object.defineProperty(t.prototype,"props",{get:function(){return Ge({},this._props)},set:function(t){var e=this.props;this._props=t,this.render(e)},enumerable:!0,configurable:!0}),t.prototype.render=function(t){void 0===t&&(t=null),t?(t.backgroundURL!==this.props.backgroundURL&&(this.containerRef.style.backgroundImage=null!==this.props.backgroundURL?"url("+this.props.backgroundURL+")":null),t.backgroundColor!==this.props.backgroundColor&&(this.containerRef.style.backgroundColor=this.props.backgroundColor),this.sizeChanged(t,this.props)&&this.resizeElement(this.props.width,this.props.height)):(this.containerRef.style.backgroundImage=null!==this.props.backgroundURL?"url("+this.props.backgroundURL+")":null,this.containerRef.style.backgroundColor=this.props.backgroundColor,this.resizeElement(this.props.width,this.props.height))},t.prototype.sizeChanged=function(t,e){return t.width!==e.width||t.height!==e.height},t.prototype.resizeElement=function(t,e){this.containerRef.style.width=t+"px",this.containerRef.style.height=e+"px"},t.prototype.resize=function(t,e){this.props=Ge({},this.props,{width:t,height:e})},t.prototype.remove=function(){this.disposables.forEach(function(t){return t.dispose()}),this.elements.forEach(function(t){return t.remove()}),this.elementsById={},this.elementIds=[],this.clearRelations(),this.containerRef.removeEventListener("click",this.handleContainerClick),this.containerRef.innerHTML=""},t.prototype.buildRelations=function(){var t=this;this.clearRelations(),this.elements.forEach(function(e){if(null!==e.props.parentId){var n=t.elementsById[e.props.parentId],i=t.elementsById[e.props.id];n&&i&&t.addRelationLine(n,i)}})},t.prototype.clearRelations=function(t){if(null!=t)for(var e in this.relations){var n=e.split("|"),i=Number.parseInt(n[0]),r=Number.parseInt(n[1]);t!==i&&t!==r||(this.relations[e].remove(),delete this.relations[e])}else for(var e in this.relations)this.relations[e].remove(),delete this.relations[e]},t.prototype.getRelationLine=function(t,e){var n=t+"|"+e;return this.relations[n]||null},t.prototype.getItemRelations=function(t){var e=[];for(var n in this.relations){var i=n.split("|"),r=Number.parseInt(i[0]),a=Number.parseInt(i[1]);t!==r&&t!==a||e.push({parentId:r,childId:a,line:this.relations[n]})}return e},t.prototype.getVisualCenter=function(t,e){var n=t.x+e.elementRef.clientWidth/2,i=t.y+e.elementRef.clientHeight/2;if(void 0!==e.props.label||""!==e.props.label||null!==e.props.label)switch(e.props.labelPosition){case"up":i=t.y+(e.elementRef.clientHeight+e.labelElementRef.clientHeight)/2;break;case"down":i=t.y+(e.elementRef.clientHeight-e.labelElementRef.clientHeight)/2;break;case"right":n=t.x+(e.elementRef.clientWidth-e.labelElementRef.clientWidth)/2;break;case"left":n=t.x+(e.elementRef.clientWidth+e.labelElementRef.clientWidth)/2}return{x:n,y:i}},t.prototype.addRelationLine=function(t,e){var n=t.props.id+"|"+e.props.id;null!=this.relations[n]&&this.relations[n].remove();var i=this.getVisualCenter(t.props,t),a=i.x,o=i.y,s=this.getVisualCenter(e.props,e),l=s.x,c=s.y,u=new et(Q({id:0,type:13,startX:a,startY:o,endX:l,endY:c,width:0,height:0,lineWidth:this.props.relationLineWidth,color:"#CCCCCC"}),Object(r.j)({receivedAt:new Date}));return this.relations[n]=u,u.elementRef.style.zIndex="0",this.containerRef.append(u.elementRef),u},t.prototype.onItemClick=function(t){var e=this.clickEventManager.on(t);return this.disposables.push(e),e},t.prototype.onItemDblClick=function(t){var e=this.dblClickEventManager.on(t);return this.disposables.push(e),e},t.prototype.onItemMoved=function(t){var e=this.movedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onLineMoved=function(t){var e=this.lineMovedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onItemResized=function(t){var e=this.resizedEventManager.on(t);return this.disposables.push(e),e},t.prototype.onItemSelectionChanged=function(t){var e=this.selectionChangedEventManager.on(t);return this.disposables.push(e),e},t.prototype.enableEditMode=function(){this.elements.forEach(function(t){t.meta=Ge({},t.meta,{editMode:!0})}),this.containerRef.classList.add("is-editing")},t.prototype.disableEditMode=function(){this.elements.forEach(function(t){t.meta=Ge({},t.meta,{editMode:!1})}),this.containerRef.classList.remove("is-editing")},t.prototype.selectItem=function(t,e){var n=this;void 0===e&&(e=!1),e?this.elementIds.forEach(function(e){var i=n.elementsById[e].meta;e!==t&&i.isSelected?n.elementsById[e].meta=Ge({},i,{isSelected:!1}):e!==t||i.isSelected||(n.elementsById[e].meta=Ge({},i,{isSelected:!0}))}):this.elementsById[t]&&(this.elementsById[t].meta=Ge({},this.elementsById[t].meta,{isSelected:!0}))},t.prototype.unselectItem=function(t){if(this.elementsById[t]){var e=this.elementsById[t].meta;e.isSelected&&(this.elementsById[t].meta=Ge({},e,{isSelected:!1}))}},t.prototype.unselectItems=function(){var t=this;this.elementIds.forEach(function(e){if(t.elementsById[e]){var n=t.elementsById[e].meta;n.isSelected&&(t.elementsById[e].meta=Ge({},n,{isSelected:!1}))}})},t.itemDescriptiveName=function(t){var e;switch(t.props.type){case 0:e=Object(r.w)("Static graph")+" - "+t.props.imageSrc;break;case 1:e=Object(r.w)("Module graph");break;case 19:e=Object(r.w)("Clock");break;case 18:e=Object(r.w)("Bars graph");break;case 14:e=Object(r.w)("Auto SLA Graph");break;case 3:e=Object(r.w)("Percentile bar");break;case 15:e=Object(r.w)("Circular progress bar");break;case 16:e=Object(r.w)("Circular progress bar (interior)");break;case 2:e=Object(r.w)("Simple Value");break;case 4:e=Object(r.w)("Label");break;case 11:e=Object(r.w)("Group");break;case 20:e=Object(r.w)("Color cloud");break;case 5:e=Object(r.w)("Icon")+" - "+t.props.imageSrc;break;default:e=Object(r.w)("Item")}var n=t.props;return null!=n.agentAlias&&null!=n.moduleName?e+=" ("+Object(r.f)(n.agentAlias,18)+" - "+Object(r.f)(n.moduleName,25)+")":null!=n.agentAlias&&(e+=" ("+Object(r.f)(n.agentAlias,25)+")"),e},t.items=((Ne={})[0]=h,Ne[1]=Pe.a,Ne[2]=ht,Ne[6]=ht,Ne[7]=ht,Ne[8]=ht,Ne[3]=Te,Ne[9]=Te,Ne[15]=Te,Ne[16]=Te,Ne[4]=at,Ne[5]=f,Ne[10]=Be,Ne[11]=T,Ne[12]=Y,Ne[13]=et,Ne[14]=dt.a,Ne[17]=je.a,Ne[18]=Ae.b,Ne[19]=z,Ne[20]=C,Ne),t}(),Ue=function(){function t(t){this.cancellable={cancel:function(){}},this._status="waiting",this.statusChangeEventManager=new X.a,this.disposables=[],this.taskInitiator=t}return Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(t){this._status=t,this.statusChangeEventManager.emit(t)},enumerable:!0,configurable:!0}),t.prototype.init=function(){var t=this;this.cancellable=this.taskInitiator(function(){t.status="finished"}),this.status="started"},t.prototype.cancel=function(){this.cancellable.cancel(),this.status="cancelled"},t.prototype.onStatusChange=function(t){var e=this.statusChangeEventManager.on(t);return this.disposables.push(e),e},t}();var Ke=function(){function t(){this.tasks={}}return t.prototype.add=function(t,e,n){void 0===n&&(n=0),this.tasks[t]&&"started"===this.tasks[t].status&&this.tasks[t].cancel();var i=n>0?function(t,e){return new Ue(function(){var n=null;return t.onStatusChange(function(i){"finished"===i&&(n=window.setTimeout(function(){t.init()},e))}),t.init(),{cancel:function(){n&&clearTimeout(n),t.cancel()}}})}(new Ue(e),n):new Ue(e);return this.tasks[t]=i,this.tasks[t]},t.prototype.init=function(t){!this.tasks[t]||"waiting"!==this.tasks[t].status&&"cancelled"!==this.tasks[t].status&&"finished"!==this.tasks[t].status||this.tasks[t].init()},t.prototype.cancel=function(t){this.tasks[t]&&"started"===this.tasks[t].status&&this.tasks[t].cancel()},t}();window.VisualConsole=ze,window.VisualConsole.Form=o,window.AsyncTaskManager=Ke}]); //# sourceMappingURL=vc.main.min.js.map