Created
July 8, 2020 14:06
-
-
Save kenkam/63e23b7cf79c85610814c7ab94957ee7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | |
* under one or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information regarding copyright | |
* ownership. Camunda licenses this file to you under the Apache License, | |
* Version 2.0; you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).CamundaTasklistUi=e()}}(function(){return function a(o,s,l){function c(t,e){if(!s[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[t]={exports:{}};o[t][0].call(i.exports,function(e){return c(o[t][1][e]||e)},i,i.exports,a,o,s,l)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){switch(t){case"Integer":case"Long":case"Short":return o.test(e);case"Float":case"Double":return s.test(e);case"Boolean":return l.test(e);case"Date":return c.test(p(e));case"Xml":return!!(n=e)&&u.validate(n);case"Json":return function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(e)}var n}function a(e){return e<10?"0"+e:e}var o=/^-?[\d]+$/,s=/^(0|(-?(((0|[1-9]\d*)\.\d+)|([1-9]\d*))))([eE][-+]?[0-9]+)?$/,l=/^(true|false)$/,c=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})$/,u=e("fast-xml-parser"),p=function(e){return"object"!==r(e)||"function"!=typeof e.getFullYear?e:e.getFullYear()+"-"+a(e.getMonth()+1)+"-"+a(e.getDate())+"T"+a(e.getHours())+":"+a(e.getMinutes())+":"+a(e.getSeconds())};t.exports={convertToType:function(e,t){if("string"==typeof e&&(e=e.trim()),"String"===t||"Bytes"===t||"File"===t)return e;if(!i(e,t))throw new Error("Value '"+e+"' is not of type "+t);switch(t){case"Integer":case"Long":case"Short":return parseInt(e,10);case"Float":case"Double":return parseFloat(e);case"Boolean":return"true"===e;case"Date":return p(e)}},isType:i,dateToString:p}},{"fast-xml-parser":248}],2:[function(e,t,n){"use strict";t.exports=e("angular")},{angular:"angular"}],3:[function(e,t,n){"use strict";t.exports=e("moment")},{moment:"moment"}],4:[function(e,t,n){"use strict";t.exports=["$animate","$rootScope",function(s,l){return{transclude:"element",priority:1e3,terminal:!0,restrict:"A",compile:function(e,t,o){return function(t,n){var r,i;function a(e){r&&(s.leave(r),r=void 0),i&&(i.$destroy(),i=void 0),e&&(i=t.$new(),o(i,function(e){r=e,s.enter(e,n.parent(),n)}))}t.$on("authentication.changed",function(e,t){a(t)}),a(l.authentication)}}}}]},{}],5:[function(e,t,n){"use strict";t.exports=["$animate","$rootScope",function(s,l){return{transclude:"element",priority:1e3,terminal:!0,restrict:"A",compile:function(e,t,o){return function(t,n){var r,i;function a(e){r&&(s.leave(r),r=void 0),i&&(i.$destroy(),i=void 0),e&&(i=t.$new(),o(i,function(e){r=e,s.enter(e,n.parent(),n)}))}t.$on("authentication.changed",function(e,t){a(!t)}),a(!l.authentication)}}}}]},{}],6:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var r=e("../../../camunda-bpm-sdk-js/vendor/angular");e("angular-route"),e("angular-resource"),e("angular-translate");var i=e("../util/index"),a=e("./page/login"),o=e("./directives/camIfLoggedIn"),s=e("./directives/camIfLoggedOut"),l=e("./service/authenticationService"),c=r.module("cam.commons.auth",[r.module("ngRoute").name,i.name,"pascalprecht.translate"]);c.config(a).run(["$rootScope","$location",function(n,r){var i;n.$on("authentication.login.required",function(t){n.$evalAsync(function(){var e=r.url();"/login"===e||t.defaultPrevented||(i=e,r.url("/login"))})}),n.$on("authentication.login.success",function(e){n.$evalAsync(function(){e.defaultPrevented||(r.url(i||"/").replace(),i=null)})})}]).run(["$cacheFactory","$rootScope","$location","$timeout","Notifications","$translate",function(t,n,r,i,a,o){n.$on("authentication.logout.success",function(e){n.$evalAsync(function(){e.defaultPrevented||(t.get("$http").removeAll(),r.url("/login"))}),i(function(){a.addMessage({status:o.instant("AUTH_LOGOUT_SUCCESSFUL"),message:o.instant("AUTH_LOGOUT_THANKS",{dayContext:o.instant(function(){var e=new Date;if(5<=e.getDay())return"AUTH_DAY_CONTEXT_WEEKEND";var t=e.getHours();switch(!0){case 4<=t&&t<7:return"AUTH_DAY_CONTEXT_MORNING";case 7<=t&&t<12:return"AUTH_DAY_CONTEXT_DAY";case 12<=t&&t<17:return"AUTH_DAY_CONTEXT_AFTERNOON";case 17<=t&&t<22:return"AUTH_DAY_CONTEXT_EVENING";case 22<=t||t<4:return"AUTH_DAY_CONTEXT_NIGHT"}return"AUTH_DAY_CONTEXT_DAY"}())}),exclusive:!0})})})}]).run(["$rootScope","Notifications","$translate","shouldDisplayAuthenticationError",function(e,t,n,r){e.$on("authentication.login.required",function(){r()&&t.addError({status:n.instant("AUTH_FAILED_TO_DISPLAY_RESOURCE"),message:n.instant("AUTH_AUTHENTICATION_FAILED"),http:!0,exclusive:["http"]})})}]).run(["AuthenticationService",function(){}]).directive("camIfLoggedIn",o).directive("camIfLoggedOut",s).service("AuthenticationService",l),t.exports=c},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"../util/index":44,"./directives/camIfLoggedIn":4,"./directives/camIfLoggedOut":5,"./page/login":7,"./service/authenticationService":8,"angular-resource":"angular-resource","angular-route":"angular-route","angular-translate":"angular-translate","core-js/modules/es.string.replace":188}],7:[function(e,t,n){"use strict";var p=e("jquery"),r=["$scope","$rootScope","AuthenticationService","Notifications","$location","$translate","widgetLocalConf","$sce","configuration","$http",function(t,e,n,r,i,a,o,s,l,c){if(t.logo=s.trustAsHtml('<svg xmlns="http://www.w3.org/2000/svg" width="96" height="33" viewBox="0 0 96 33">\r\n <path fill-rule="evenodd" d="M96,26.9065044 L96,33 L0,33 L0,26.9065044 L96,26.9065044 Z M43.825801,0.295704855 L47.4277156,0.298848262 L47.4126802,18.0430696 C47.411114,19.6861287 48.1312464,20.2780324 49.2770681,20.2789754 C50.423203,20.2802327 51.1442751,19.6889578 51.145528,18.046213 L51.145528,18.046213 L51.1605634,0.30199167 L54.5660784,0.304820737 L54.551043,17.819259 C54.5479106,21.4992462 52.7126538,23.6009285 49.1762057,23.5977886 C45.6397576,23.5946417 43.8079464,21.4901303 43.8110748,17.8101431 L43.8110748,17.8101431 L43.825801,0.295704855 Z M5.3849235,2.25075829e-06 C8.92168482,0.00314791311 10.753496,2.10765927 10.7503677,5.78796084 L10.7503677,5.78796084 L10.7484842,8.02229494 L7.34296929,8.01946587 L7.34516195,5.55503434 C7.3464149,3.91228955 6.6265958,3.28706579 5.48046085,3.28612277 C4.3343259,3.28549409 3.61356709,3.9088318 3.61231414,5.55189094 L3.61231414,5.55189094 L3.60166407,17.9727516 C3.60041112,19.6158107 4.32023023,20.2077143 5.46636518,20.2089717 C6.61218689,20.2099147 7.33325894,19.6189541 7.33451189,17.9762093 L7.33451189,17.9762093 L7.33733102,14.690091 L10.7425327,14.6932345 L10.7400268,17.7489409 C10.7368944,21.4292425 8.90163764,23.5306105 5.36518956,23.5277843 C1.82874147,23.524638 -0.00306972464,21.4201266 5.86369834e-05,17.7398251 L5.86369834e-05,17.7398251 L0.0100862381,5.77884496 C0.0132186102,2.09854339 1.84878865,-0.00251022049 5.3849235,2.25075829e-06 Z M87.0802259,0.332482723 L92.3520081,0.337197834 L95.9996554,23.3419117 L92.3651641,23.3390826 L91.7462074,19.1649517 L87.3261171,19.161494 L86.7005824,23.3340532 L83.3931107,23.3312241 L87.0802259,0.332482723 Z M71.0028563,0.319217543 L76.7006412,0.323932654 C80.3022426,0.327076062 82.0685872,2.33288443 82.0657714,6.01350034 L82.0657714,6.01350034 L82.0557445,17.64568 C82.0526121,21.3259816 80.2828219,23.3286465 76.6812205,23.3255068 L76.6812205,23.3255068 L70.9834356,23.3204737 L71.0028563,0.319217543 Z M56.9887802,0.306958254 L61.5075402,0.310730343 L65.1959083,14.0823132 L65.2074981,0.314188091 L68.4166133,0.316702817 L68.3971926,23.3182733 L64.6969215,23.3154442 L60.2251471,6.65161207 L60.2110514,23.3116721 L56.9693595,23.3088431 L56.9887802,0.306958254 Z M26.2424495,0.280836537 L31.2523654,0.284922967 L33.8907624,16.618383 L36.3603246,0.289323737 L41.3702405,0.293724508 L41.3508198,23.295295 L37.9456181,23.2927803 L37.9594005,6.79680606 L35.4569485,23.2905799 L32.0514335,23.2877508 L29.3801466,7.01967366 L29.3666774,23.2852361 L26.2230288,23.282407 L26.2424495,0.280836537 Z M15.6661205,0.271689221 L20.9379027,0.276089991 L24.5858632,23.2811182 L20.9510586,23.2782891 L20.3327284,19.1041582 L15.9123249,19.1007005 L15.286477,23.2732597 L11.9793185,23.2704306 L15.6661205,0.271689221 Z M74.6019519,3.60816487 L74.5881694,20.0378132 L76.6182598,20.0397003 C77.7643947,20.0406422 78.4522636,19.4496816 78.4538298,17.8066225 L78.4538298,17.8066225 L78.4638551,5.84595671 C78.4651064,4.20289758 77.7781772,3.6106796 76.6320422,3.60973658 L76.6320422,3.60973658 L74.6019519,3.60816487 Z M89.53256,4.40916799 L87.7872023,16.0404046 L91.2581838,16.0432337 L89.53256,4.40916799 Z M18.1184546,4.34837448 L16.3730968,15.9792968 L19.8440783,15.9824402 L18.1184546,4.34837448 Z"/>\r\n</svg>'),t.status="INIT",t.appName=l.getAppName(),e.authentication)return i.path("/");e.showBreadcrumbs=!1,t.showFirstLogin=!1,!l.getDisableWelcomeMessage()&&o.get("firstVisit",!0)&&c({method:"GET",url:"/camunda-welcome"}).then(function(e){200===e.status?(o.set("firstVisit",!0),t.showFirstLogin=!0):t.dismissInfoBox()}).catch(t.dismissInfoBox),a("FIRST_LOGIN_INFO").then(function(e){t.FirstLoginMessage=s.trustAsHtml(e)}),t.dismissInfoBox=function(){t.showFirstLogin=!1,o.set("firstVisit",!1)};var u=p('form[name="signinForm"] [autofocus]')[0];u&&u.focus(),t.login=function(){return t.status="LOADING",n.login(t.username,t.password).then(function(){t.status="DONE",r.clearAll(),t.dismissInfoBox()}).catch(function(e){t.status="ERROR",delete t.username,delete t.password,r.addError({status:a.instant("PAGE_LOGIN_FAILED"),message:e.data&&e.data.message||a.instant("PAGE_LOGIN_ERROR_MSG"),scope:t,exclusive:!0})})}}];t.exports=["$routeProvider",function(e){e.when("/login",{template:'\x3c!-- # CE - camunda-commons-ui/lib/auth/page/login.html --\x3e\r\n<div class="form-signin-container">\r\n <form class="form-signin"\r\n ng-submit="login()"\r\n name="signinForm"\r\n request-aware>\r\n\r\n <div class="login-header">\r\n <div class="login-logo" ng-bind-html="logo"></div>\r\n\r\n <div class="app-name">\r\n {{ appName }}\r\n </div>\r\n </div>\r\n\r\n <div notifications-panel\r\n ng-if="signinForm.$dirty"\r\n class="notifications-panel"></div>\r\n\r\n <input autofocus\r\n tabindex="1"\r\n type="text"\r\n class="form-control"\r\n placeholder="{{ \'PAGE_LOGIN_USERNAME\' | translate }}"\r\n auto-fill\r\n required\r\n ng-model="username"></input>\r\n <input tabindex="2"\r\n type="password"\r\n class="form-control"\r\n placeholder="{{ \'PAGE_LOGIN_PASSWORD\' | translate }}"\r\n auto-fill\r\n required\r\n ng-model="password"></input>\r\n <button tabindex="3"\r\n class="btn btn-lg btn-primary"\r\n type="submit"\r\n ng-disabled="status === \'LOADING\'">{{ \'PAGE_LOGIN_SIGN_IN_ACTION\' | translate }}</button>\r\n\r\n <div ng-if="showFirstLogin"\r\n class="alert-info alert"\r\n style="margin-top: 75px; margin-bottom: 0px">\r\n <div>\r\n <button type="button" class="close" ng-click="dismissInfoBox()">×</button>\r\n <strong class="status">{{ \'FIRST_LOGIN_HEADING\' | translate }}</strong>\r\n <span class="message" ng-bind-html="FirstLoginMessage" style="display: block"></span>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n\x3c!-- / CE - camunda-commons-ui/lib/auth/page/login.html --\x3e\r\n',controller:r})}]},{jquery:"jquery"}],8:[function(e,t,n){"use strict";e("../../../../camunda-bpm-sdk-js/vendor/angular");var p=e("jquery"),d=e("../util/authentication");t.exports=["$rootScope","$q","$http","Uri","$route",function(r,i,a,o,n){function s(e,t,n){r.$broadcast(e,t,n)}function l(e){if(200!==e.status)return i.reject(e);var t=e.data;return new d({name:t.userId,authorizedApps:t.authorizedApps})}function c(e){s("authentication.changed",r.authentication=e)}var u;this.updateAuthentication=c,this.login=function(e,t){var n=p.param({username:e,password:t});return a.get(o.appUri("engine://engine/")).then(function(){return a({method:"POST",url:o.appUri("admin://auth/user/:engine/login/:appName"),data:n,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}})}).then(l).then(function(e){return a.get(o.appUri("engine://engine/")).then(function(){c(e),s("authentication.login.success",e)}),e},function(e){return s("authentication.login.failure",e),i.reject(e)})},this.logout=function(e){return a.post(o.appUri("admin://auth/user/"+(e||":engine")+"/logout")).then(function(e){c(null),s("authentication.logout.success",e)},function(e){return s("authentication.logout.failure",e),i.reject(e)})},r.$on("authentication.changed",function(e,t){u=i[t?"when":"reject"](t),t||n.reload()}),this.getAuthentication=function(){return u=u||(r.authentication?i.when(r.authentication):a.get(o.appUri("admin://auth/user/:engine")).then(l).then(function(e){return c(e),e}))},r.$on("$routeChangeStart",function(e,t){t.authentication&&(t.resolve||(t.resolve={}),t.resolve.authentication||(t.resolve.authentication=["AuthenticationService",function(e){return e.getAuthentication().catch(function(e){return"optional"===t.authentication?null:(s("authentication.login.required",t),i.reject(e))})}]))})}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"../util/authentication":9,jquery:"jquery"}],9:[function(e,t,n){"use strict";var r=e("../../../../camunda-bpm-sdk-js/vendor/angular");function i(e){r.extend(this,e)}i.prototype.canAccess=function(e){return this.authorizedApps&&-1!==this.authorizedApps.indexOf(e)},t.exports=i},{"../../../../camunda-bpm-sdk-js/vendor/angular":2}],10:[function(e,t,n){"use strict";function b(e,t){var n=Math.ceil(e/t),r=""+n;return(n=(parseInt(r[0],10)+1)*Math.pow(10,r.length-1))*t}function r(){}function x(e){return Math.log(e)/Math.log(10)}function i(e){this.moment=e.moment,this.abbreviateNumber=e.abbreviateNumber,this.resize(e.width,e.height,e.disableSelection),this.lineColors=e.lineColors,this.rulersColor=e.rulersColor||"#666",this.selectingColor=e.selectingColor||"rgba(0,0,64,0.1)",this.unselectedColor=e.unselectedColor||"rgba(0,0,0,0.1)",this.handleColorHover=e.handleColorHover||"#999",this.handleColor=e.handleColor||"#aaa",this.fontSize=e.fontSize||12,this.fontFamily=e.fontFamily||"Arial",this.lineWidth=e.lineWidth||1,this.isLogScale=e.isLogScale||!1,this.valueLabelsCount=e.valueLabelsCount||8,this.timespan=e.timespan||"day",this.interval=e.interval||900,this.handleWidth=e.handleWidth||4,this.timestampFormat=e.timestampFormat||"YYYY-MM-DDTHH:mm:ss",this.timeLabelFormats=e.timeLabelFormats||{day:"HH:mm",week:"dd DD",month:"DD MMM"},this.tickSize=e.tickSize||10,this.textPadding=e.textPadding||3,this.onselection=e.onselection||r}var a=(t.exports=i).prototype;a._mouseIsDown=!1,a._selectedIn=null,a._selectedOut=null,a._eventHandlers={},a._eventHandlers.mouseout=function(e){this.drawMouseHint().drawSelection(e)},a._eventHandlers.mousemove=function(e){var t=this.cursorPosition(e);this._hoveredSelectionHandle=this.hoveredSelectionHandle(e),this.canvas.style.cursor=this._hoveredSelectionHandle?"ew-resize":"default","in"===this._grabbedSelectionHandle?this._selectedIn=t.left:"out"===this._grabbedSelectionHandle&&(this._selectedOut=t.left),this.drawMouseHint(t.left,t.top).drawSelection(e)},a._eventHandlers.mousedown=function(e){var t=this.cursorPosition(e),n=this.verticalScaleX(),r=this.innerW();this._hoveredSelectionHandle=this.hoveredSelectionHandle(e),this.canvas.style.cursor=this._hoveredSelectionHandle?"ew-resize":"default",this._hoveredSelectionHandle?this._grabbedSelectionHandle=this._hoveredSelectionHandle:(this._mouseIsDown||(this._selectedIn=Math.min(Math.max(t.left,n),n+r),this._selectedOut=null),this._mouseIsDown=!0),this.drawMouseHint(t.left,t.top).drawSelection(e)},a._eventHandlers.mouseup=function(e){var t=this.cursorPosition(e),n=this.verticalScaleX(),r=this.innerW();this._grabbedSelectionHandle&&(this._grabbedSelectionHandle=!1),this._mouseIsDown&&(this._selectedOut=Math.max(Math.min(t.left,n+r),n)),this._mouseIsDown=!1,Math.abs(this._selectedIn-this._selectedOut)<=1&&(this._selectedIn=this._selectedOut=null,this.onselection({start:null,end:null,in:null,out:null})),this.drawMouseHint(t.left,t.top).drawSelection(e),this._selectedIn&&this._selectedOut&&this.onselection({start:this.momentAtX(this._selectedIn),end:this.momentAtX(this._selectedOut),in:this._selectedIn,out:this._selectedOut})},a._eventHandlers.wheel=function(e){if(this._selectedIn&&this._selectedOut){e.preventDefault();var t=this.cursorPosition(e);this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);var n=Math.max(Math.round(Math.abs(this._selectedOut-this._selectedIn)/10),1);0<e.deltaY?(this._selectedIn+=n,this._selectedOut-=n):(this._selectedIn-=n,this._selectedOut+=n),this.drawMouseHint(t.left,t.top).drawSelection(e),this.onselection({start:this.momentAtX(this._selectedIn),end:this.momentAtX(this._selectedOut),in:this._selectedIn,out:this._selectedOut})}},a.cursorPosition=function(e){var t=this.canvas.getBoundingClientRect();return{left:e.clientX-t.left,top:e.clientY-t.top}},a.bindEvents=function(){return Object.keys(a._eventHandlers).forEach(function(e){this.canvas.addEventListener(e,a._eventHandlers[e].bind(this),!1)},this),this},a.unbindEvents=function(){return Object.keys(a._eventHandlers).forEach(function(e){this.canvas.removeEventListener(e,a._eventHandlers[e].bind(this),!1)},this),this},a._clearCache=function(){this._verticalLabels=null,this._verticalScaleX=null,this._horizontalScaleY=null,this._innerW=null,this._innerH=null,this._selectedIn=null,this._selectedOut=null},a.resize=function(e,t,n){return this._clearCache(),this.canvas||(this.canvas=document.createElement("canvas"),this.offCanvas=document.createElement("canvas"),n||this.bindEvents()),this.canvas.width=this.offCanvas.width=e,this.canvas.height=this.offCanvas.height=t,this.ctx=this.canvas.getContext("2d"),this.offCtx=this.offCanvas.getContext("2d"),this._selectedIn=null,this._selectedOut=null,"function"==typeof this.onselection&&this.onselection({start:null,end:null,in:null,out:null}),this},a.max=function(e){var n=0;return arguments.length?(this.data[e]||[]).forEach(function(e){n=Math.max(e.value,n)},this):(this.data||[]).forEach(function(e,t){n=Math.max(n,this.max(t))},this),n},a.min=function(e){var n=this.max();return arguments.length?(n=this.max(e),(this.data[e]||[]).forEach(function(e){n=Math.min(e.value,n)},this)):(this.data||[]).forEach(function(e,t){n=Math.min(n,this.min(t))},this),n},a.momentAtX=function(e){var t=this.moment,n=this.labelFrom,r=(this.labelTo-n)/this.innerW();return t(new Date(r*(e-this.verticalScaleX())+this.labelFrom),t.ISO_8601)},a.valueAtY=function(e){return e},a.setData=function(e,t,n){this._clearCache();var i=this.moment,r=this.abbreviateNumber;this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.offCtx.clearRect(0,0,this.offCanvas.width,this.offCanvas.height),t&&(this.timespan=t),n&&(this.interval=n);var a=[[{value:0,timestamp:i().format(this.dateformat)}]];e&&e.length&&e[0]||(e=a),this.data=e;var o,s=this.timespan,l=this.timestampFormat,c=b(this.max(),this.valueLabelsCount),u=this.timeLabelFormats;this.isLogScale&&(this.valueLabelsCount=this.maxLog()+1),this.valueLabels=[];for(var p=this.valueLabelsCount;0<=p;p--)o=this.isLogScale?p&&Math.pow(10,p-1):r(p*c/this.valueLabelsCount)||0,this.valueLabels.push(o);if(this.timeLabels=[],e.length&&e[0]&&e[0].length&&e[0][0].timestamp){var d=i(),m=this.labelTo=d.clone();"day"===s?m.startOf("hour").add(1,"hour"):"week"===s?m.startOf("day").add(1,"day"):"month"===s&&m.startOf("week").add(1,"week");var f,h,g=this.labelFrom=m.clone().subtract(1,s),v=1;"day"===s?(f=12,h="hour",v=2):"week"===s?(f=7,h="day"):"month"===s&&(f=4,h="week");for(var y=0;y<=f;y++)this.timeLabels.push(g.clone().add(y*v,h).format(u[s]))}return this.data=e.map(function(e){e&&e.length||(e=[{value:0}]),1===e.length&&(e=[e[0],e[0]]);var n=i(e[e.length-1].timestamp,l),r=n-void 0;return e.map(function(e){var t=i(e.timestamp,l);return e.positionPercent=(n-t)/r,e})}),this.draw()},a._verticalLabels=null,a.verticalLabels=function(){if(this._verticalLabels)return this._verticalLabels;var t=this.ctx,e=this.timeLabels,n=this.textPadding,r=0,i=this.innerW();return e.forEach(function(e){r+=t.measureText(e).width+2*n}),this._verticalLabels=i<r,this._verticalLabels},a._innerW=null,a.innerW=function(){if(this._innerW)return this._innerW;var e=this.lineWidth,t=Math.max(2*e,10),n=this.ctx,r=n.canvas.width,i=0,a=this.textPadding;return this.timeLabels.forEach(function(e){i=Math.max(i,n.measureText(e).width+2*a)}),this._innerW=r-(t+this.verticalScaleX()),this.verticalLabels()||(this._innerW-=i/2),this._innerW},a._innerH=null,a.innerH=function(){if(this._innerH)return this._innerH;var e=this.lineWidth,t=Math.max(2*e,10),n=this.ctx.canvas.height;return this._innerH=n-(t+this.horizontalScaleY()),this._innerH},a._verticalScaleX=null,a.verticalScaleX=function(){if(this._verticalScaleX)return this._verticalScaleX;var t=0,n=this.ctx,e=this.valueLabels,r=this.textPadding,i=this.tickSize;return e.forEach(function(e){t=Math.max(t,n.measureText(e||"0").width+4*r+i)}),t=Math.round(Math.max(t,i+r))+.5,this._verticalScaleX=t},a._horizontalScaleY=null,a.horizontalScaleY=function(){if(this._horizontalScaleY)return this._horizontalScaleY;var t=this.ctx,e=this.timeLabels,n=this.fontSize,r=this.tickSize,i=this.textPadding,a=this.verticalLabels(),o=0;return o=a?(e.forEach(function(e){o=Math.max(o,t.measureText(e).width+4*i+r)}),Math.round(Math.max(o,r+i))):n+2*i+r,this._horizontalScaleY=o},a.drawMouseHint=function(e,t){var n=this.ctx,r=this.innerW(),i=n.canvas.height,a=n.canvas.width,o=Math.max(2*this.lineWidth,10),s=this.verticalScaleX(),l=this.horizontalScaleY(),c=this.tickSize;if(n.strokeStyle=this.rulersColor,n.fillStyle=this.rulersColor,n.lineWidth=1,n.lineCap="round",n.lineJoin="round",n.font=this.fontSize+"px "+this.fontFamily,n.clearRect(0,0,a,i),n.drawImage(this.offCanvas,0,0,a,i,0,0,a,i),e&&s<e&&e<=s+r){var u=this.momentAtX(e).format(this.timestampFormat),p=n.measureText(u).width+2*o,d=a-o<e+p?a-(o+p):e,m=o<t?t:o;n.fillText(u,d,m),n.beginPath(),n.moveTo(e+.5,i-(l+c)),n.lineTo(e+.5,i-l),n.stroke(),n.closePath()}return this},a.drawSelection=function(e){var t=this.ctx,n=this.innerH(),r=this.innerW(),i=this.verticalScaleX(),a=Math.max(2*this.lineWidth,10),o=this.cursorPosition(e),s=this.handleWidth,l=this.selectingColor,c=this.unselectedColor,u=t.fillStyle;if(this._mouseIsDown)return t.fillStyle=l,this._selectedIn<o.left?t.fillRect(this._selectedIn,a,Math.min(o.left-this._selectedIn,i+r-this._selectedIn),n):t.fillRect(Math.max(o.left,i),a,Math.min(this._selectedIn-o.left,r),n),t.fillStyle=u,this;if(this._selectedIn&&this._selectedOut){var p=t.lineWidth,d=t.strokeStyle;if(this._selectedIn<i&&(this._selectedIn=i),this._selectedOut>i+r&&(this._selectedOut=i+r),t.fillStyle=c,this._selectedOut&&this._selectedIn>this._selectedOut){var m=this._selectedOut;this._selectedOut=this._selectedIn,this._selectedIn=m}t.fillRect(i,a,this._selectedIn-i,n),t.fillRect(this._selectedOut,a,r+i-this._selectedOut,n),t.beginPath(),t.moveTo(this._selectedIn+.5,n+a),t.lineTo(this._selectedIn+.5,a+.5),t.lineTo(this._selectedOut+.5,a+.5),t.lineTo(this._selectedOut+.5,n+a),t.stroke(),t.lineWidth=s+2,t.strokeStyle=this.rulersColor,t.beginPath(),t.moveTo(this._selectedIn,a+10),t.lineTo(this._selectedIn,80),t.stroke(),t.closePath(),t.lineWidth=s,t.strokeStyle="in"===this._hoveredSelectionHandle?this.handleColorHover:this.handleColor,t.beginPath(),t.moveTo(this._selectedIn,a+10),t.lineTo(this._selectedIn,80),t.stroke(),t.lineWidth=s+2,t.strokeStyle="#333",t.beginPath(),t.moveTo(this._selectedOut,a+10),t.lineTo(this._selectedOut,80),t.stroke(),t.closePath(),t.lineWidth=s,t.strokeStyle="out"===this._hoveredSelectionHandle?this.handleColorHover:this.handleColor,t.beginPath(),t.moveTo(this._selectedOut,a+10),t.lineTo(this._selectedOut,80),t.stroke(),t.lineWidth=p,t.fillStyle=u,t.strokeStyle=d}return this},a.hoveredSelectionHandle=function(e){if(!this._selectedIn||!this._selectedOut)return!1;var t=this.cursorPosition(e),n=this.ctx,r=Math.max(2*this.lineWidth,10),i=!1,a=this.handleWidth+4,o=n.lineWidth,s=n.strokeStyle;return n.lineWidth=1,n.strokeStyle="rgba(0,0,0,0)",n.beginPath(),n.rect(this._selectedIn-a/2,r+10,a,80),n.stroke(),n.closePath(),n.isPointInPath(t.left,t.top)&&(i="in"),n.beginPath(),n.rect(this._selectedOut-a/2,r+10,a,80),n.stroke(),n.closePath(),n.isPointInPath(t.left,t.top)&&(i="out"),n.lineWidth=o,n.strokeStyle=s,i},a.maxLog=function(){var e=this.max()||1;return Math.ceil(x(e))},a.drawRulers=function(){var e,t,n,r,i,a=this.offCtx,o=this.lineWidth,s=Math.max(2*o,10),l=this.abbreviateNumber,c=this.timeLabels,u=this.valueLabels,p=a.canvas.height,d=this.textPadding,m=this.tickSize,f=this.verticalScaleX(),h=this.horizontalScaleY(),g=this.innerW(),v=this.innerH(),y=this.verticalLabels();a.strokeStyle=this.rulersColor,a.fillStyle=this.rulersColor,a.lineWidth=1,a.lineCap="round",a.lineJoin="round",a.font=this.fontSize+"px "+this.fontFamily;var b=p-h+.5;for(a.beginPath(),a.moveTo(f-m,b),a.lineTo(f+g,b),a.stroke(),a.beginPath(),a.moveTo(f,s),a.lineTo(f,b+m),a.stroke(),y?(a.textAlign="right",a.textBaseline="middle"):(a.textAlign="center",a.textBaseline="top"),c.forEach(function(e,t){var n=f+t*(g/(c.length-1));a.beginPath(),a.moveTo(n,b),a.lineTo(n,b+m),a.stroke(),y?(a.save(),a.translate(n,p-(h-(m+d))),a.rotate(-Math.PI/2),a.fillText(c[t],0,0),a.restore()):a.fillText(c[t],n,p-(h-(m+d)))}),e=v/(u.length-1),r=this.maxLog(),a.textAlign="right",a.textBaseline="middle",t=0;t<u.length;t++)n=u[t],i=this.isLogScale?v-(n&&v/(r+1)*(x(n)+1))+s:Math.round(s+e*t)-.5,a.fillText(l(n)||0,f-(m+d),i),t<u.length-1&&(a.beginPath(),a.moveTo(f-m,i),a.lineTo(f,i),a.stroke());return this},a.draw=function(){var l=this.offCtx,c=this.lineWidth,n=Math.max(2*c,10),e=l.canvas.width,u=l.canvas.height,p=this.verticalScaleX(),d=this.horizontalScaleY(),t=this.innerW(),r=this.innerH();l.clearRect(0,0,e,u);var m=this.labelFrom,i=this.labelTo-m,f=this.interval,a=u-d+.5,o=this.isLogScale,s=this.max(),h=this.maxLog(),g=b(s,this.valueLabelsCount);function v(e){if(!e)return a;var t=e&&r/(h+1)*(x(e)+1);return o?r-t+n:r-r/g*e+n}function y(e){return p+(e-m)/i*t}return this.data.forEach(function(e,t){var n,r,i,a,o=this.moment,s=this.lineColors[t];l.lineWidth=c,l.strokeStyle=s,l.beginPath(),e.forEach(function(e,t){(i=o(e.timestamp,o.ISO_8601))<=m?a=e:(0===t&&m<i&&(l.moveTo(p,u-d),l.lineTo(y(i.clone().subtract(f,"seconds")),u-d)),a&&(n=p,r=v(a.value),l.lineTo(n,r),a=null),n=y(i),r=v(e.value),l.lineTo(n,r))}),o()-i>=1e3*f&&(n=y(i.clone().add(f,"seconds")),r=u-d,l.lineTo(n,r),n=y(o()),l.lineTo(n,r)),l.stroke(),l.closePath(),1<=e.length&&(l.beginPath(),l.fillStyle=s,l.arc(n,r,2*c,0,2*Math.PI),l.fill(),l.closePath())},this),this.ctx.drawImage(this.offCanvas,0,0,e,u,0,0,e,u),this.drawRulers().drawMouseHint()},a.remove=function(){this.unbindEvents(),this.canvas.parentNode.removeChild(this.canvas)}},{}],11:[function(e,t,n){"use strict";t.exports=["$interval",function(a){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){var i=a(function(){var e=t.val();e!==r.$viewValue&&(r.$setViewValue(e),r.$setPristine()),("function"!=typeof document.contains||document.contains(t[0]))&&"function"==typeof document.contains||a.cancel(i)},500)}}}]},{}],12:[function(e,t,n){"use strict";t.exports=["$compile","$parse",function(i,a){return{restrict:"A",link:function(e,t,n){var r=a(n.ngBindHtml);e.$watch(function(){return(r(e)||"").toString()},function(){i(t.contents())(e)})}}}]},{}],13:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){var i=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;r.$parsers.unshift(function(e){return i.test(e)||!e?(r.$setValidity("email",!0),e):(r.$setValidity("email",!1),null)})}}}},{}],14:[function(e,t,n){"use strict";var c=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("jquery"),r=["$scope","$http","$location","$window","Uri","Notifications","$translate",function(t,e,n,r,i,a,o){var s=i.appUri(":engine"),l={};e.get(i.appUri("engine://engine/")).then(function(e){t.engines=e.data,c.forEach(t.engines,function(e){l[e.name]=e}),t.currentEngine=l[s],t.currentEngine||(a.addError({status:o.instant("DIRECTIVE_ENGINE_SELECT_STATUS_NOT_FOUND"),message:o.instant("DIRECTIVE_ENGINE_SELECT_MESSAGE_NOT_FOUND"),scope:t}),n.path("/dashboard"))}).catch(c.noop)}];t.exports=function(){return{template:'<li class="dropdown engine-select"\r\n ng-show="engines.length > 1 && currentEngine"\r\n uib-dropdown>\r\n\x3c!-- # CE - camunda-commons-ui/lib/directives/engineSelect.html --\x3e\r\n <a href\r\n class="dropdown-toggle"\r\n uib-dropdown-toggle>\r\n <span class="glyphicon glyphicon-info-sign glyphicon glyphicon-info-sign "\r\n uib-tooltip="{{ \'DIRECTIVE_ENGINE_SELECT_TOOLTIP\' | translate }}"\r\n tooltip-placement="bottom"></span>\r\n {{ currentEngine.name }}\r\n </a>\r\n <ul uib-dropdown-menu class="dropdown-menu dropdown-menu-right">\r\n <li ng-repeat="(id, engine) in engines"\r\n ng-class="{ active: currentEngine.name === engine.name }">\r\n <a ng-href="{{ \'app://../\' + engine.name + \'/\' | uri }}">\r\n {{ engine.name }}\r\n </a>\r\n </li>\r\n </ul>\r\n\x3c!-- / CE - camunda-commons-ui/lib/directives/engineSelect.html --\x3e\r\n</li>\r\n',replace:!0,controller:r,link:function(e,t,n){var r;e.$watch(n.ngShow,function(e){e&&!r&&(r=i('<li class="divider-vertical"></li>').insertAfter(t)),!e&&r&&(r.remove(),r=null)}),e.$on("$destroy",function(){r&&r.remove()})}}}},{"../../../camunda-bpm-sdk-js/vendor/angular":2,jquery:"jquery"}],15:[function(e,t,n){"use strict";var i=e("../../../camunda-bpm-sdk-js/vendor/angular");t.exports=["$translate",function(r){return{restrict:"E",scope:{unserializeCallback:"@unserialize",serializeCallback:"@serialize",initializeCallback:"@initialize",enterCallback:"@enter",validateCallback:"@validate",submitCallback:"@submit",successCallback:"@success",errorCallback:"@error",leaveCallback:"@leave",context:"=",property:"@",defaultValue:"@default"},template:'\x3c!-- # CE - camunda-commons-ui/lib/directives/inPlaceTextField.html --\x3e\r\n<div in-place-text-field-root>\r\n <div ng-if="!editing">\r\n {{ context[property] }}\r\n <span class="edit-toggle"\r\n ng-click="enter()">\r\n <span class="glyphicon glyphicon-pencil"></span>\r\n </span>\r\n </div>\r\n\r\n <form ng-if="editing"\r\n ng-submit="submit()"\r\n class="inline-edit"\r\n name="inPlaceTextFieldForm"\r\n novalidate\r\n request-aware>\r\n\r\n <fieldset>\r\n \x3c!-- {{ value }} --\x3e\r\n <input name="value"\r\n ng-model="value"\r\n type="text"\r\n class="in-place-edit form-control"\r\n placeholder="{{ placeholder }}"\r\n autofocus\r\n ng-required="isRequired">\r\n </fieldset>\r\n\r\n <div class="inline-edit-footer">\r\n\r\n <p class="error" ng-show="error">\r\n {{ error.message }}\r\n </p>\r\n\r\n <div class="btn-group">\r\n <button type="submit"\r\n class="btn btn-sm btn-primary"\r\n ng-disabled="inPlaceTextFieldForm.$invalid">\r\n <span class="glyphicon glyphicon-ok "></span>\r\n </button>\r\n <button type="button"\r\n class="btn btn-sm btn-default"\r\n ng-click="leave()">\r\n <span class="glyphicon glyphicon-ban-circle"></span>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n </form>\r\n</div>\r\n\x3c!-- / CE - camunda-commons-ui/lib/directives/inPlaceTextField.html --\x3e\r\n',link:function(t,e,n){if(t.isRequired=null!==n.required&&void 0!==n.required,!t.property)throw new Error(r.instant("DIRECTIVE_INPLACE_TEXTFIELD_ERROR_MSG"));(t.initializeCallback?t.$parent[t.initializeCallback]:function(e,t){t()})(t,function(){var e;(e=t).value=e.context[e.property]||e.defaultValue||null,e.enter=function(){e.editing=!0,e.value=e.context[e.property]},e.submit=function(){e.context[e.property]!==this.value&&(e.context[e.property]=this.value,i.isFunction(e.$parent[e.submitCallback])&&e.$parent[e.submitCallback](this)),e.leave()},e.leave=function(){e.editing=!1}})}}}]},{"../../../camunda-bpm-sdk-js/vendor/angular":2}],16:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("./email"),a=e("./engineSelect"),o=e("./autoFill"),s=e("./inPlaceTextField"),l=e("./notificationsPanel"),c=e("./passwordRepeat"),u=e("./showIfAuthorized"),p=e("./compileTemplate"),d=e("./nl2br"),m=e("./instantTypeahead"),f=e("../util/index");e("../../vendor/ui-bootstrap-tpls-2.5.0-camunda");var h=r.module("camunda.common.directives",["ui.bootstrap",f.name]);h.directive("email",i),h.directive("autoFill",o),h.directive("engineSelect",a),h.directive("camInPlaceTextField",s),h.directive("notificationsPanel",l),h.directive("passwordRepeat",c),h.directive("showIfAuthorized",u),h.directive("compileTemplate",p),h.directive("nl2br",d),h.directive("instantTypeahead",m),h.config(["$uibModalProvider","$uibTooltipProvider",function(e,t){e.options={animation:!0,backdrop:!0,keyboard:!0},t.options({animation:!0,popupDelay:100,appendToBody:!0})}]),t.exports=h},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"../../vendor/ui-bootstrap-tpls-2.5.0-camunda":75,"../util/index":44,"./autoFill":11,"./compileTemplate":12,"./email":13,"./engineSelect":14,"./inPlaceTextField":15,"./instantTypeahead":17,"./nl2br":18,"./notificationsPanel":19,"./passwordRepeat":20,"./showIfAuthorized":21}],17:[function(e,t,n){"use strict";var i="[$empty$]";t.exports=[function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$parsers.unshift(function(e){var t=e||i;return r.$viewValue=t}),r.$parsers.push(function(e){return e===i?"":e}),e.instantTypeahead=function(e,t){return t===i||-1<(""+e).toLowerCase().indexOf((""+t).toLowerCase())},t.bind("click",function(){r.$setViewValue(" "===r.$viewValue?"":" "),t.triggerHandler("input")}),t.bind("input",function(){r.$setViewValue(r.$viewValue)})}}}]},{}],18:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),t.exports=[function(){return{scope:{original:"=nl2br"},link:function(e,t){t.text(e.original||"");var n=t.html().replace(/\n/g,"<br/>");t.html(n)}}}]},{"core-js/modules/es.string.replace":188}],19:[function(e,t,n){"use strict";e("angular-sanitize");t.exports=["Notifications","$filter","$sce",function(i,a,o){return{restrict:"EA",scope:{filter:"=notificationsFilter"},template:'<div class="notifications"> <div uib-alert ng-repeat="notification in notifications" class="alert" ng-class="notificationClass(notification)"> <button type="button" class="close" ng-click="removeNotification(notification)">×</button> <strong class="status" ng-bind-html="trustHTML(notification.status)" compile-template></strong> <strong ng-if="notification.message">:</strong> <span class="message" ng-bind-html="trustHTML(notification.message)" compile-template></span> </div></div>',link:function(e){var n=e.filter;var r=e.notifications=[],t={add:function(e){return t=e,!(n&&!a("filter")([t],n).length)&&(r.push(e),!0);var t},remove:function(e){var t=r.indexOf(e);-1!=t&&r.splice(t,1)}};i.registerConsumer(t),e.removeNotification=function(e){r.splice(r.indexOf(e),1)},e.notificationClass=function(e){var t="info";return-1<["danger","error","success","warning","info"].indexOf(e.type)&&(t=e.type),"alert-"+t},e.trustHTML=function(e){return o.trustAsHtml(e)},e.$on("$destroy",function(){i.unregisterConsumer(t)})}}}]},{"angular-sanitize":"angular-sanitize"}],20:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",require:"ngModel",link:function(n,e,t,r){var i=t.passwordRepeat;r.$parsers.unshift(function(e){var t=e==n.$eval(i);return r.$setValidity("passwordRepeat",t),e}),n.$watch(i,function(e){var t=e==r.$viewValue;r.$setValidity("passwordRepeat",t),t||r.$setViewValue(r.$viewValue)})}}}},{}],21:[function(e,t,n){"use strict";var h={application:0,user:1,group:2,"group membership":3,authorization:4};t.exports=["$animate","AuthorizationResource",function(m,f){return{transclude:"element",priority:1e3,terminal:!0,restrict:"A",compile:function(e,p,d){return function(t,n){var r,i,e,a,o,s=p.authPermission,l=p.authResourceName,c=t.$eval(p.authResourceId),u="true"===p.authInverse;f.check((e=l,a=c,(o={}).permissionName=s,o.resourceName=e,o.resourceType=h[e],a&&(o.resourceId=a),o)).$promise.then(function(e){r&&(m.leave(r),r=void 0),i&&(i.$destroy(),i=void 0),(e.authorized&&!u||!e.authorized&&u)&&(i=t.$new(),d(i,function(e){r=e,m.enter(e,n.parent(),n)}))}).catch(function(){})}}}}]},{}],22:[function(e,t,n){"use strict";t.exports=function(){return function(e,t){if(e)return e<950?e:function(e,t){t=Math.pow(10,t);for(var n=["k","M","G","T","P","E","Z","Y"],r=n.length-1;0<=r;r--){var i=Math.pow(10,3*(r+1));if(i<=e)return 1e3==(e=Math.round(e*t/i)/t)&&r<n.length-1&&(e=1,r++),e+=n[r]}return e}(e,t=t||1)}}},{}],23:[function(e,t,n){"use strict";var r=e("../../../../camunda-bpm-sdk-js/vendor/angular"),i=e("../../../../camunda-bpm-sdk-js/vendor/moment");e("angular-translate");var a=r.module("cam.commons.filter.date",["pascalprecht.translate"]);a.provider("camDateFormat",function(){var n={normal:"LLL",short:"LL",long:"LLLL"};this.setDateFormat=function(e,t){n[t=t||"normal"]=e},this.$get=function(){return function(e){return n[e=e||"normal"]}}}),a.config(["$filterProvider",function(e){e.register("camDate",["$translate","camDateFormat",function(e,n){return function(e,t){return e?("number"==typeof e&&(e=new Date(e)),i(e,i.ISO_8601).format(n(t))):""}}])}]),t.exports=a},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"../../../../camunda-bpm-sdk-js/vendor/moment":3,"angular-translate":"angular-translate"}],24:[function(e,t,n){"use strict";var r=e("../../camunda-bpm-sdk-js/vendor/angular"),i=e("./auth/index"),a=e("./util/index"),o=e("./pages/index"),s=e("./plugin/index"),l=e("./directives/index"),c=e("./resources/index"),u=e("./search/index"),p=e("./services/index"),d=e("./widgets/index"),m=e("./filter/date/index");e("../vendor/ui-bootstrap-tpls-2.5.0-camunda"),e("angular-translate"),e("angular-cookies"),e("angular-animate"),t.exports=r.module("cam.commons",[i.name,a.name,o.name,s.name,l.name,c.name,u.name,p.name,d.name,m.name,"ui.bootstrap","pascalprecht.translate","ngCookies","ngAnimate"])},{"../../camunda-bpm-sdk-js/vendor/angular":2,"../vendor/ui-bootstrap-tpls-2.5.0-camunda":75,"./auth/index":6,"./directives/index":16,"./filter/date/index":23,"./pages/index":25,"./plugin/index":26,"./resources/index":30,"./search/index":31,"./services/index":39,"./util/index":44,"./widgets/index":60,"angular-animate":"angular-animate","angular-cookies":"angular-cookies","angular-translate":"angular-translate"}],25:[function(e,t,n){"use strict";var c=e("../../../camunda-bpm-sdk-js/vendor/angular");e("angular-route");var f=e("jquery"),r=c.module("camunda.common.pages",["ngRoute"]);var i=["$rootScope","$location","Notifications","AuthenticationService","shouldDisplayAuthenticationError","$translate",function(l,c,t,u,p,d){function m(e){e.http=!0,e.exclusive=["http"],t.addError(e)}l.$on("httpError",function(e,t){var n,r,i=t.status,a=t.data;switch(i){case 500:a&&a.message?m({status:d.instant("PAGES_STATUS_SERVER_ERROR"),message:a.message,exceptionType:a.exceptionType}):m({status:d.instant("PAGES_STATUS_SERVER_ERROR"),message:d.instant("PAGES_MSG_SERVER_ERROR")});break;case 0:m({status:d.instant("PAGES_STATUS_REQUEST_TIMEOUT"),message:d.instant("PAGES_MSG_REQUEST_TIMEOUT")});break;case 401:-1!==c.absUrl().indexOf("/setup/#")?c.path("/setup"):(n=c.absUrl(),r="camunda Login",-1!==n.indexOf("/cockpit/")?r="camunda Cockpit":-1!==n.indexOf("/tasklist/")?r="camunda Tasklist":-1!==n.indexOf("/admin/")&&(r="camunda Admin"),f("head title").text(r),u.updateAuthentication(null),l.$broadcast("authentication.login.required"));break;case 403:if("AuthorizationException"==a.type){var o;if(a.resourceId)o=d.instant("PAGES_MSG_ACCESS_DENIED_RESOURCE_ID",{permissionName:a.permissionName.toLowerCase(),resourceName:a.resourceName.toLowerCase(),resourceId:a.resourceId});else{var s=a.missingAuthorizations.map(function(e){return"'"+e.permissionName+"' "+e.resourceName+"s"});o=d.instant("PAGES_MSG_ACCESS_DENIED",{missingAuths:s.join()})}m({status:d.instant("PAGES_STATUS_ACCESS_DENIED"),message:o})}else m({status:d.instant("PAGES_STATUS_ACCESS_DENIED"),message:d.instant("PAGES_MSG_ACTION_DENIED")});break;case 404:p()&&m({status:d.instant("PAGES_STATUS_NOT_FOUND"),message:d.instant("PAGES_MSG_NOT_FOUND")});break;default:m({status:d.instant("PAGES_STATUS_COMMUNICATION_ERROR"),message:d.instant("PAGES_MSG_COMMUNICATION_ERROR",{status:i})})}})}],a=["$scope","$http","$location","$window","Uri","Notifications","$translate",function(t,e,n,r,i,a,o){var s=i.appUri(":engine"),l={};e.get(i.appUri("engine://engine/")).then(function(e){t.engines=e.data,c.forEach(t.engines,function(e){l[e.name]=e}),t.currentEngine=l[s],t.currentEngine||(a.addError({status:o.instant("PAGES_STATUS_NOT_FOUND"),message:o.instant("PAGES_MSG_ENGINE_NOT_EXISTS"),scope:t}),n.path("/"))}).catch(c.noop),t.$watch("currentEngine",function(e){e&&s!==e.name&&(r.location.href=i.appUri("app://../"+e.name+"/"))})}];t.exports=r.run(i).controller("ProcessEngineSelectionController",a).controller("AuthenticationController",["$scope","$window","$cacheFactory","$location","Notifications","AuthenticationService",function(e,t,n,r,i,a){e.logout=function(){a.logout()}}]).controller("NavigationController",["$scope","$location",function(e,t){e.activeClass=function(e){return-1!=t.absUrl().indexOf(e)?"active":""}}])},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"angular-route":"angular-route",jquery:"jquery"}],26:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("./view"),a=e("./service"),o=r.module("cockpit.plugin",[]);i(o),a(o),t.exports=o},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"./service":27,"./view":28}],27:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var l=e("../../../camunda-bpm-sdk-js/vendor/angular"),c=e("jquery");t.exports=function(i){var o;i._camPlugins={};var n=[],e=c("base").attr("cam-exclude-plugins")||"";function r(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}e&&(l.forEach(e.split(","),function(e){var t="*";2<=(e=e.split(":")).length&&r(e[1])&&(t=r(e.pop())),(e=r(e.shift()))&&n.push(e+":"+t)}),o=new RegExp("("+n.join("|")+")","i"));var t=[function(){var a={};function r(e,t,n){!function(e,t){for(var n,r=void 0!==t.priority?t.priority:-1/0,i=0;n=e[i];i++)if(void 0===n.priority||n.priority<r)return e.splice(i,0,t);e.push(t)}(n[e]=n[e]||[],t)}this.registerPlugin=function(e,t,n){i._camPlugins[t+":"+n.id]=!1,o&&o.test(t+":"+n.id)||(i._camPlugins[t+":"+n.id]=!0,r(t,n,a[e]=a[e]||{}))},this.$get=["$filter",function(i){return{getAllProviders:function(e){return a[e]||{}},getProviders:function(e,t){if(!e)throw new Error("No type given");var n=t.component;if(!n)throw new Error("No component given");var r=(a[e]||{})[n];return t.id&&(r=i("filter")(r,{id:t.id})),r||[]},getProvider:function(e,t){return(this.getProviders(e,t)||[])[0]}}}]}];i.provider("Plugins",t);var a=["PluginsProvider",function(n){this.registerDefaultView=function(e,t){o&&o.test(e+":"+t.id)||n.registerPlugin("view",e,t)},this.registerView=function(e,t){n.registerPlugin("view",e,t)},this.$get=["Uri","Plugins",function(t,n){var r=!1;function i(){var e;r||(e=n.getAllProviders("view"),l.forEach(e,function(e){l.forEach(e,function(e){e.url&&(e.url=t.appUri(e.url))})}),r=!0)}return{getProviders:function(e){return i(),n.getProviders("view",e)},getProvider:function(e){return(this.getProviders(e)||[])[0]}}}]}];i.provider("Views",a);var s=["PluginsProvider",function(n){this.registerData=function(e,t){n.registerPlugin("data",e,t)},this.$get=["Plugins","$injector",function(t,r){return{getProviders:function(e){return t.getProviders("data",e)},getProvider:function(e){return(this.getProviders(e)||[])[0]},instantiateProviders:function(e,t){var n=this.getProviders({component:e});l.forEach(n,function(e){r.instantiate(e.controller,t)})}}}]}];i.provider("Data",s)}},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"core-js/modules/es.string.replace":188,jquery:"jquery"}],28:[function(e,t,n){"use strict";var f=e("../../../camunda-bpm-sdk-js/vendor/angular");t.exports=function(e){e.directive("view",["$q","$http","$templateCache","$anchorScroll","$compile","$controller",function(n,r,u,p,d,m){return{restrict:"ECA",terminal:!0,link:function(o,s,e){var l;function c(){l&&(l.$destroy(),l=null)}function t(){s.html(""),c()}o.$watch(e.provider,function(){var i=o.$eval(e.provider),a=o.$eval(e.vars)||{};if(!i)return void t();n.when(function(e){var t=e.template;if(t)return t;var n=e.url;return r.get(n,{cache:u}).then(function(e){return e.data}).catch(f.noop)}(i)).then(function(e){s.html(e),c();var t,n=d(s.contents()),r={};l=o.$new(!0),a&&(a.read&&f.forEach(a.read,function(t){l[t]=o[t],o.$watch(t,function(e){l[t]=e})}),a.write&&f.forEach(a.write,function(t){l.$watch(t,function(e){o[t]=e})})),i.controller&&(r.$scope=l,t=m(i.controller,r),s.children().data("$ngControllerController",t)),n(l),l.$emit("$pluginContentLoaded"),p()},function(e){throw t(),e})})}}}])}},{"../../../camunda-bpm-sdk-js/vendor/angular":2}],29:[function(e,t,n){"use strict";t.exports=["$resource","Uri",function(e,t){return e(t.appUri("engine://engine/:engine/authorization/:action"),{action:"@action"},{check:{method:"GET",params:{action:"check"},cache:!0},count:{method:"GET",params:{action:"count"}},create:{method:"POST",params:{action:"create"}}})}]},{}],30:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("./authorizationResource"),a=r.module("camunda.common.resources",[]);a.factory("AuthorizationResource",i),t.exports=a},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"./authorizationResource":29}],31:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var a=e("../../../camunda-bpm-sdk-js/vendor/angular"),r=["$location","$rootScope",function(r,n){var i=!1;n.$on("$routeUpdate",function(e,t){i?i=!1:n.$broadcast("$routeChanged",t)}),n.$on("$routeChangeSuccess",function(){i=!1});function e(){return r.search.apply(r,arguments)}return e.updateSilently=function(e,t){var n=r.absUrl();a.forEach(e,function(e,t){r.search(t,e)}),r.absUrl()!=n&&(i=!0),t&&r.replace()},e}],i=a.module("camunda.common.search",[]);i.factory("search",r),t.exports=i},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"core-js/modules/es.string.replace":188}],32:[function(e,t,n){"use strict";var m=e("../../../camunda-bpm-sdk-js/vendor/angular"),r=e("camunda-bpm-sdk-js/lib/angularjs/index");t.exports=["$rootScope","$timeout","$q","$cookies","configuration",function(l,c,u,p,d){function t(e){this._wrapped=new r.Client.HttpClient(e)}return m.forEach(["post","get","load","put","del","options","head"],function(s){t.prototype[s]=function(e,t){var n,r,i,a=c(function(){},1e5);r=(n=t).headers=n.headers||{},(i=p.get(d.getCsrfCookieName()))&&(r["X-XSRF-TOKEN"]=i);var o=m.isFunction(t.done)?t.done:m.noop;return t.done=function(e,t){function n(){if(e&&401===e.status)return l.$broadcast("authentication.changed",null),l.authentication=null,void l.$broadcast("authentication.login.required");o(e,t)}var r=l.$$phase;"$apply"!==r&&"$digest"!==r?l.$apply(n):n(),c.cancel(a)},u.when(this._wrapped[s](e,t))}}),m.forEach(["on","once","off","trigger"],function(e){t.prototype[e]=function(){this._wrapped[e].apply(this,arguments)}}),t}]},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"camunda-bpm-sdk-js/lib/angularjs/index":"camunda-bpm-sdk-js/lib/angularjs/index"}],33:[function(e,t,n){"use strict";t.exports=["$rootScope",function(e){var t=0;return{logStarted:function(){t||e.$broadcast("requestStarted"),t++},logFinished:function(){--t||e.$broadcast("requestFinished")}}}]},{}],34:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),t.exports=["$route","$q","$location","Notifications","$translate",function(c,u,p,d,m){return{getByRouteParam:function(e,a){var o=u.defer(),s=c.current.params[e],t=a.resolve,l=a.name||"entity";function n(e){o.resolve(e)}function r(e){var t,n,r,i=!1;404===e.status?(t=m.instant("SERVICES_RESOURCE_RESOLVER_ID_NOT_FOUND",{resourceName:l,id:s}),n=!0,"function"==typeof(r=a.redirectTo||"/dashboard")&&(i=!0,r(e))):r=401===e.status?(t=m.instant("SERVICES_RESOURCE_RESOLVER_AUTH_FAILED"),"/login"):(t=m.instant("SERVICES_RESOURCE_RESOLVER_RECEIVED_STATUS",{status:e.status}),"/dashboard"),i||(p.path(r),n&&p.replace(),d.addError({status:m.instant("SERVICES_RESOURCE_RESOLVER_DISPLAY_FAILED",{resourceName:l}),message:t,http:!0,exclusive:["http"]})),o.reject(t)}var i=t(s);if(i.$promise&&i.$promise.then)i=i.$promise.then(function(e){n(e)},r);else{if(!i.then)throw new Error(m.instant("SERVICES_RESOURCE_RESOLVER_NO_PROMISE"));i=i.then(n,r)}return o.promise}}}]},{"core-js/modules/es.string.replace":188}],35:[function(e,t,n){"use strict";t.exports=["$window",function(e){var n=e.localStorage,r=JSON.parse(n.getItem("camunda")||"{}");return{get:function(e,t){return void 0!==r[e]?r[e]:t},set:function(e,t){r[e]=t,n.setItem("camunda",JSON.stringify(r))},remove:function(e){delete r[e],n.setItem("camunda",JSON.stringify(r))}}}]},{}],36:[function(e,t,n){"use strict";t.exports=["$timeout",function(o){return function(r,i){var a;return function e(){var t=this,n=arguments;e.$loading=!0,a&&o.cancel(a),a=o(function(){a=null,e.$loading=!1,r.apply(t,n)},i)}}}]},{}],37:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),t.exports=function(){return function(e){return encodeURIComponent(e).replace(/%2F/g,"%252F").replace(/\*/g,"%2A").replace(/%5C/g,"%255C")}}},{"core-js/modules/es.string.replace":188}],38:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/moment");t.exports=function(){return function(e){return e?r(e,r.ISO_8601).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"):e}}},{"../../../camunda-bpm-sdk-js/vendor/moment":3}],39:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("./../util/index"),a=e("./escape"),o=e("./debounce"),s=e("./RequestLogger"),l=e("./ResourceResolver"),c=e("./HttpClient"),u=e("./unescape"),p=e("./fixDate"),d=e("./unfixDate"),m=e("./shouldDisplayAuthenticationError"),f=r.module("camunda.common.services",[i.name]);f.filter("escape",a),f.factory("debounce",o),f.factory("RequestLogger",s),f.factory("ResourceResolver",l),f.factory("camAPIHttpClient",c),f.factory("unescape",u),f.factory("fixDate",p),f.factory("unfixDate",d),f.factory("shouldDisplayAuthenticationError",m),f.config(["$httpProvider",function(e){e.interceptors.push(["$rootScope","$q","RequestLogger",function(n,r,i){return i.logStarted(),{response:function(e){return i.logFinished(),e},responseError:function(e){i.logFinished();var t={status:parseInt(e.status),response:e,data:e.data};return n.$broadcast("httpError",t),r.reject(e)}}}])}]),f.config(["$httpProvider","$windowProvider",function(e,t){var n=t.$get().location.href.match(/\/(?:app)(?!.*\/app\/)\/([\w-]+)\/([\w-]+)\//);if(!n)throw new Error("no process engine selected");e.defaults.headers.get={"X-Authorized-Engine":n[2]}}]),t.exports=f},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"./../util/index":44,"./HttpClient":32,"./RequestLogger":33,"./ResourceResolver":34,"./debounce":36,"./escape":37,"./fixDate":38,"./shouldDisplayAuthenticationError":40,"./unescape":41,"./unfixDate":42}],40:[function(e,t,n){"use strict";t.exports=["$location",function(t){return function(){var e=t.path();return"/login"!==e&&"/dashboard"!==e&&"/"!==e&&"/welcome"!==e}}]},{}],41:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),t.exports=function(){return function(e){var t=e.replace(/%252F/g,"%2F").replace(/%255C/g,"%5C").replace(/%2A/g,"*");return decodeURIComponent(t)}}},{"core-js/modules/es.string.replace":188}],42:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/moment");t.exports=function(){return function(e){return e?r(e,r.ISO_8601).format("YYYY-MM-DDTHH:mm:ss"):e}}},{"../../../camunda-bpm-sdk-js/vendor/moment":3}],43:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var r=["http://www.omg.org/spec/DMN/20151101/dmn11.xsd"];function i(e,t){return e.replace('xmlns="'+t+'"','xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"')}t.exports=function(e){return r.reduce(i,e)}},{"core-js/modules/es.string.replace":188}],44:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("./uriFilter"),a=e("./uriProvider"),o=e("./notifications");t.exports=r.module("cam.commons.util",[]).filter("uri",i).provider("Uri",a).service("Notifications",o)},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"./notifications":46,"./uriFilter":47,"./uriProvider":48}],45:[function(e,t,n){"use strict";t.exports={load:function(){return requirejs.s.contexts._.defined}}},{}],46:[function(e,t,n){"use strict";var c=e("../../../camunda-bpm-sdk-js/vendor/angular");function u(e){var t=document.createTextNode(e),n=document.createElement("div");return n.appendChild(t),n.innerHTML}t.exports=["$filter","$timeout",function(i,l){return{notifications:[],consumers:[],addError:function(e){e.type||(e.type="danger"),this.add(e)},addMessage:function(e){e.type||(e.type="info"),this.add(e)},add:function(t){var e=this,n=this.notifications,r=this.consumers,i=t.exclusive;if(t.unsafe||(t.status=u(t.status),t.message=u(t.message||"")),i)if("boolean"==typeof i)this.clearAll();else{var a={};c.forEach(i,function(e){a[e]=t[e]}),e.clear(a)}n.push(t);for(var o,s=r.length-1;(o=r[s])&&!o.add(t);s--);t.duration&&l(function(){t.scope&&delete t.scope,e.clear(t)},t.duration),t.scope&&t.scope.$on("$destroy",function(){delete t.scope,e.clear(t)})},clear:function(e){var n=this.notifications,r=this.consumers,t=[];"string"==typeof e&&(e={status:e}),(t=i("filter")(n,e)).push(e),c.forEach(t,function(t){var e=n.indexOf(t);-1!=e&&n.splice(e,1),c.forEach(r,function(e){e.remove(t)})})},clearAll:function(){for(var e=this.notifications;e.length;){var t=e.pop();this.clear(t)}},registerConsumer:function(e){this.consumers.push(e)},unregisterConsumer:function(e){var t=this.consumers,n=t.indexOf(e);-1!=n&&t.splice(n,1)}}}]},{"../../../camunda-bpm-sdk-js/vendor/angular":2}],47:[function(e,t,n){"use strict";t.exports=["Uri",function(t){return function(e){return t.appUri(e)}}]},{}],48:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var i=e("../../../camunda-bpm-sdk-js/vendor/angular");t.exports=function(){var t=/[\w]+:\/\/|:[\w]+/g,r={};this.replace=function(e,t){r[e]=t},this.$get=["$injector",function(n){return{appUri:function(e){return e.replace(t,function(e){var t=r[e];return void 0===t?e:((i.isFunction(t)||i.isArray(t))&&(t=n.invoke(t)),t)})}}}]}},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"core-js/modules/es.string.replace":188}],49:[function(e,t,n){"use strict";var r=e("bpmn-js/lib/NavigatedViewer").default,i={};t.exports={generateViewer:function(e){var t=e.key&&i[e.key];if(t)return t.cached=!0,t;var n=r;e.disableNavigation&&(n=Object.getPrototypeOf(r.prototype).constructor);return new n(e)},cacheViewer:function(e){return e.key&&(i[e.key]=e.viewer)}}},{"bpmn-js/lib/NavigatedViewer":77}],50:[function(e,t,n){"use strict";function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace");var D=e("../../util/moduleLoader"),I=e("../../../../camunda-bpm-sdk-js/vendor/angular"),R=e("../../util/viewer");t.exports=["$q","$document","$compile","$location","$rootScope","search","debounce",function(E,k,S,C,A,_,T){return{scope:{diagramData:"=",key:"@",control:"=?",disableNavigation:"&",onLoad:"&",onClick:"&",onMouseEnter:"&",onMouseLeave:"&",bpmnJsConf:"=?"},template:'<div uib-alert class="alert alert-danger"\r\n ng-if="error">\r\n <span>\r\n <strong>{{ \'CAM_WIDGET_BPMN_VIEWER_ERROR\' | translate }}</strong>\r\n </span>\r\n <span>\r\n {{ error.message }}\r\n </span>\r\n</div>\r\n\r\n<div ng-show="!error">\r\n\r\n <div ng-if="!loaded" class="placeholder-container">\r\n <div class="placeholder-content">\r\n <span class="glyphicon glyphicon-refresh animate-spin"></span>\r\n <span class="loading-text">{{ \'CAM_WIDGET_BPMN_VIEWER_LOADING\' | translate }}</span>\r\n </div>\r\n </div>\r\n\r\n <div class="diagram-holder" ng-class=\'{"diagram-holder": true, "grab-cursor": !disableNavigation && !grabbing, "djs-cursor-move": !disableNavigation && grabbing}\'></div>\r\n\r\n <div class="actions"></div>\r\n\r\n <div ng-if="!disableNavigation"\r\n class="navigation zoom">\r\n <button class="btn btn-default in"\r\n title="zoom in"\r\n ng-click="zoomIn()">\r\n <span class="glyphicon glyphicon-plus"></span>\r\n </button>\r\n <button class="btn btn-default out"\r\n title="zoom out"\r\n ng-click="zoomOut()">\r\n <span class="glyphicon glyphicon-minus"></span>\r\n </button>\r\n </div>\r\n\r\n <div ng-if="!disableNavigation"\r\n class="navigation reset">\r\n <button class="btn btn-default"\r\n title="reset zoom"\r\n ng-click="resetZoom()">\r\n <span class="glyphicon glyphicon-screenshot"></span>\r\n </button>\r\n </div>\r\n</div>\r\n',link:function(a,r){var i,s=null,l=null,t=r[0].querySelector(".diagram-holder");function o(){t.appendChild(s._container)}a.grabbing=!1,a.disableNavigation=a.$eval(a.disableNavigation),a.control=a.control||{},a.control.highlight=function(e){l.addMarker(e,"highlight"),r.find('[data-element-id="'+e+'"]>.djs-outline').attr({rx:"14px",ry:"14px"})},a.control.clearHighlight=function(e){l.removeMarker(e,"highlight")},a.control.isHighlighted=function(e){return l.hasMarker(e,"highlight")},a.control.createBadge=function(e,t){var n,r=s.get("overlays");t.html?n=t.html:(n=document.createElement("span"),t.color&&(n.style["background-color"]=t.color),t.tooltip&&(n.setAttribute("tooltip",t.tooltip),n.setAttribute("tooltip-placement","top")),t.text&&n.appendChild(document.createTextNode(t.text)));var i=r.add(e,{position:t.position||{bottom:0,right:0},show:{minZoom:-1/0,maxZoom:1/0},html:n});return S(n)(a),i},a.control.removeBadges=function(e){s.get("overlays").remove({element:e})},a.control.removeBadge=function(e){s.get("overlays").remove(e)},a.control.getViewer=function(){return s},a.control.scrollToElement=function(e){var t,n,r,i,a=s.get("elementRegistry").get(e),o=l.viewbox();t=Math.max(o.height,a.height),n=Math.max(o.width,a.width),r=Math.min(Math.max(o.x,a.x-o.width+a.width),a.x),i=Math.min(Math.max(o.y,a.y-o.height+a.height),a.y),l.viewbox({x:r,y:i,width:n,height:t})},a.control.getElement=function(e){return s.get("elementRegistry").get(e)},a.control.getElements=function(e){return s.get("elementRegistry").filter(e)},a.loaded=!1,a.control.isLoaded=function(){return a.loaded},a.control.addAction=function(e){var t=r.find(".actions"),n=e.html;t.append(n),S(n)(a)},a.control.addImage=function(i,a,o){return e=i,t=k[0].body,n=E.defer(),(r=I.element("<img>").css("position","absolute").css("left","-9999em").css("top","-9999em").attr("src",e)[0]).onload=function(){n.resolve(r)},r.onerror=function(){n.reject(r)},t.appendChild(r),n.promise.then(function(e){var t=e.offsetWidth,n=e.offsetHeight,r=k[0].createElementNS("http://www.w3.org/2000/svg","image");return r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),r.setAttributeNS(null,"width",t),r.setAttributeNS(null,"height",n),r.setAttributeNS(null,"x",a),r.setAttributeNS(null,"y",o),k[0].body.removeChild(e),l._viewport.appendChild(r),I.element(r)},function(e){k[0].body.removeChild(e)});var e,t,n,r};var n=a.bpmnJsConf,c=[];n&&n.additionalModules&&I.forEach(D.load(),function(e,t){n.additionalModules[t]&&c.push(e)}),(s=R.generateViewer({width:"100%",height:"100%",canvas:{deferUpdate:!1},key:a.key,disableNavigation:a.disableNavigation,additionalModules:c,moddleExtensions:window.bpmnJsModdleExtensions||{}})).cached||o();var e=s.get("overlays").show.bind(s.get("overlays"));s.get("overlays").show=function(){s.get("eventBus").fire("overlays.show"),e()};var u=s.get("overlays").hide.bind(s.get("overlays"));s.get("overlays").hide=function(){s.get("eventBus").fire("overlays.hide"),u()};var p=T(function(){s.get("overlays").show()},300),d=s.get("canvas")._viewboxChanged.bind(s.get("canvas")),m=T(function(){d(),s.get("overlays").hide(),p()},0);s.get("canvas")._viewboxChanged=function(){m()};var f=null;function h(){var e;l=s.get("canvas"),i=s._definitions,(e=s.get("eventBus")).on("element.click",v),e.on("element.hover",y),e.on("element.out",b),e.on("element.mousedown",x),e.on("canvas.viewbox.changed",w),function(){if(l){var e=JSON.parse((C.search()||{}).viewbox||"{}")[i.id];e?l.viewbox(e):l.zoom("fit-viewport","auto")}}(),a.loaded=!0}a.$watch("diagramData",function(e){e&&(f=e,function(){{if(s.cached)return o(),h(),a.onLoad();if(f){a.loaded=!1;var n="object"===M(f),e=(n?s.open:s.importXML).bind(s),t=f;n&&(s._setDefinitions(f),t=f.diagrams[0]),e(t,function(e,t){(n?function(e){e()}:a.$apply.bind(a))(function(){if(!e)return a.warn=t,h(),a.onLoad();a.error=e})})}}}())});var g=function e(){a.grabbing=!1,document.removeEventListener("mouseup",e),a.$apply()};function v(e){a.onClick({element:e.element,$event:e.originalEvent})}function y(e){a.onMouseEnter({element:e.element,$event:e.originalEvent})}function b(e){a.onMouseLeave({element:e.element,$event:e.originalEvent})}function x(){a.grabbing=!0,document.addEventListener("mouseup",g),a.$apply()}var w=T(function(e){var t=JSON.parse((C.search()||{}).viewbox||"{}");t[i.id]={x:e.viewbox.x,y:e.viewbox.y,width:e.viewbox.width,height:e.viewbox.height},_.updateSilently({viewbox:JSON.stringify(t)});var n=A.$$phase;"$apply"!==n&&"$digest"!==n?a.$apply(function(){C.replace()}):C.replace()},500);a.zoomIn=function(){s.get("zoomScroll").zoom(1,{x:r[0].offsetWidth/2,y:r[0].offsetHeight/2})},a.zoomOut=function(){s.get("zoomScroll").zoom(-1,{x:r[0].offsetWidth/2,y:r[0].offsetHeight/2})},a.resetZoom=function(){l.resized(),l.zoom("fit-viewport","auto")},a.control.resetZoom=a.resetZoom,a.control.refreshZoom=function(){l.resized(),l.zoom(l.zoom(),"auto")},a.$on("$destroy",function(){var e;t.removeChild(s._container),(e=s.get("eventBus")).off("element.click",v),e.off("element.hover",y),e.off("element.out",b),e.off("element.mousedown",x),e.off("canvas.viewbox.changed",w),s.get("overlays").clear(),R.cacheViewer({key:a.key,viewer:s})})}}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"../../util/moduleLoader":45,"../../util/viewer":49,"core-js/modules/es.string.replace":188}],51:[function(e,t,n){"use strict";t.exports=["$location",function(t){return{restrict:"A",template:'<div cam-widget-clipboard="getLink()" icon="glyphicon-link" tooltip-text="{{ \'CAM_WIDGET_COPY_LINK\' | translate }}">\r\n</div>\r\n',link:function(e){e.getLink=t.absUrl.bind(t)}}}]},{}],52:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var l=e("lodash").throttle,c=e("./../../chart/line"),u=e("../../../../camunda-bpm-sdk-js/vendor/moment"),p=e("./../../filter/abbreviateNumber")();t.exports=["$window",function(s){return{restrict:"A",scope:{fontFamily:"=?",fontSize:"=?",handleColor:"=?",handleColorHover:"=?",handleWidth:"=?",interval:"=?",lineColors:"=?",lineWidth:"=?",rulersColor:"=?",selectingColor:"=?",selection:"&onSelection",textPadding:"=?",tickSize:"=?",timeLabelFormats:"=?",timespan:"=?",timestampFormat:"=?",unselectedColor:"=?",valueLabelsCount:"=?",values:"=",disableSelection:"=",isLogScale:"="},link:function(t,e){var n=e[0],r=s.getComputedStyle(n);function i(){return Math.min(Math.max(.75*n.clientWidth,180),300)}t.timespan=t.timespan||"day",t.interval=t.interval||900;var a=t.chart=new c({moment:u,abbreviateNumber:p,onselection:function(e){t.$apply(function(){t.selection({info:e})})},width:n.clientWidth,height:i(),fontFamily:t.fontFamily||r.fontFamily,fontSize:t.fontSize,handleColor:t.handleColor,handleColorHover:t.handleColorHover,handleWidth:t.handleWidth,lineColors:t.lineColors,lineWidth:t.lineWidth,rulersColor:t.rulersColor||r.color,selectingColor:t.selectingColor,textPadding:t.textPadding,tickSize:t.tickSize,timeLabelFormats:t.timeLabelFormats,timestampFormat:t.timestampFormat,unselectedColor:t.unselectedColor,valueLabelsCount:t.valueLabelsCount,disableSelection:t.disableSelection,isLogScale:t.isLogScale});t.$watch("values",function(){var e=n.className.replace("no-data","");t.values&&t.values.length&&t.values[0]&&t.values[0].length?a.setData(t.values,t.timespan,t.interval):(e+=" no-data",a.setData([[]],t.timespan,t.interval)),n.className=e}),n.appendChild(a.canvas);var o=l(function(){a.resize(n.clientWidth,i()).draw()},100);s.addEventListener("resize",o),t.$on("$destroy",function(){s.removeEventListener("resize",o)})},template:"\x3c!-- keule!! pech jehabt! --\x3e"}}]},{"../../../../camunda-bpm-sdk-js/vendor/moment":3,"./../../chart/line":10,"./../../filter/abbreviateNumber":22,"core-js/modules/es.string.replace":188,lodash:"lodash"}],53:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var c=e("clipboard");t.exports=["$timeout","$translate",function(s,l){return{transclude:!0,template:'<span ng-transclude></span>\r\n<a ng-if="!noTooltip"\r\n uib-tooltip="{{ tooltipText }}"\r\n tooltip-append-to-body="true"\r\n ng-class="{\'copy-ok\': copyStatus === true, \'copy-error\': copyStatus === false}"\r\n class="glyphicon {{icon}}"></a>\r\n<a ng-if="noTooltip"\r\n ng-class="{\'copy-ok\': copyStatus === true, \'copy-error\': copyStatus === false}"\r\n class="glyphicon {{icon}}"></a>\r\n',scope:{value:"=camWidgetClipboard"},link:function(t,a,e){var n,r;function i(){t.$apply(),r=s(function(){t.copyStatus=null},1200,!0)}function o(){var e=a[0].querySelector("[ng-transclude]"),t=a[0].querySelector("a.glyphicon-copy"),n=window.getComputedStyle(a[0]),r=1,i=0;e&&t&&(r=e.offsetWidth+t.offsetWidth,i=parseInt(n.width)-parseInt(n.paddingRight)-parseInt(n.paddingLeft)),0<r-i?-1===e.className.indexOf("resize")&&(e.className+=" resize"):e.className=e.className.replace(" resize","")}t.noTooltip=void 0!==e.noTooltip,t.copyStatus=null,t.icon=e.icon||"glyphicon-copy",t.$watch("value",function(){t.tooltipText=e.tooltipText||l.instant("CAM_WIDGET_COPY",{value:t.value})}),s(function(){var e=a[0].querySelector("a."+t.icon);e&&(window.addEventListener("resize",o),o(),(n=new c(e,{text:function(){return t.value}})).on("success",function(){t.copyStatus=!0,i()}),n.on("error",function(){t.copyStatus=!1,i()}))}),t.$on("$destroy",function(){window.removeEventListener("resize",o),n&&n.destroy&&n.destroy(),r&&s.cancel(r)})}}}]},{clipboard:"clipboard","core-js/modules/es.string.replace":188}],54:[function(e,t,n){"use strict";function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace");var b=e("cmmn-js/lib/NavigatedViewer");t.exports=["$compile","$location","$rootScope","search","debounce",function(m,f,h,g,v){return{scope:{diagramData:"=",control:"=?",disableNavigation:"&",onLoad:"&",onClick:"&",onMouseEnter:"&",onMouseLeave:"&"},template:'<div uib-alert class="alert alert-danger"\r\n ng-if="error">\r\n <span>\r\n <strong>{{ \'CAM_WIDGET_CMMN_VIEWER_ERROR\' | translate }}</strong>\r\n </span>\r\n <span>\r\n {{ error.message }}\r\n </span>\r\n</div>\r\n\r\n<div ng-show="!error">\r\n\r\n <div ng-if="!loaded" class="placeholder-container">\r\n <div class="placeholder-content">\r\n <span class="glyphicon glyphicon-refresh animate-spin"></span>\r\n <span class="loading-text">{{ \'CAM_WIDGET_CMMN_VIEWER_LOADING\' | translate }}</span>\r\n </div>\r\n </div>\r\n\r\n <div class="diagram-holder" ng-class=\'{"diagram-holder": true, "grab-cursor": !disableNavigation && !grabbing, "djs-cursor-move": !disableNavigation && grabbing}\'></div>\r\n\r\n <div class="actions"></div>\r\n\r\n <div ng-if="!disableNavigation"\r\n class="navigation zoom">\r\n <button class="btn btn-default in"\r\n title="zoom in"\r\n ng-click="zoomIn()">\r\n <span class="glyphicon glyphicon-plus"></span>\r\n </button>\r\n <button class="btn btn-default out"\r\n title="zoom out"\r\n ng-click="zoomOut()">\r\n <span class="glyphicon glyphicon-minus"></span>\r\n </button>\r\n </div>\r\n\r\n <div ng-if="!disableNavigation"\r\n class="navigation reset">\r\n <button class="btn btn-default"\r\n title="reset zoom"\r\n ng-click="resetZoom()">\r\n <span class="glyphicon glyphicon-screenshot"></span>\r\n </button>\r\n </div>\r\n</div>\r\n',link:function(a,r){var i;a.grabbing=!1,a.disableNavigation=a.$eval(a.disableNavigation),a.control=a.control||{},a.control.highlight=function(e){a.control.addMarker(e,"highlight");var t=e.id||e;r.find('[data-element-id="'+t+'"]>.djs-outline').attr({rx:"14px",ry:"14px"})},a.control.clearHighlight=function(e){a.control.removeMarker(e,"highlight")},a.control.isHighlighted=function(e){return a.control.hasMarker(e,"highlight")},a.control.addMarker=function(e,t){p.addMarker(e,t)},a.control.removeMarker=function(e,t){p.removeMarker(e,t)},a.control.hasMarker=function(e,t){return p.hasMarker(e,t)},a.control.createBadge=function(e,t){var n,r=s.get("overlays");t.html?n=t.html:(n=document.createElement("span"),t.color&&(n.style["background-color"]=t.color),t.tooltip&&(n.setAttribute("tooltip",t.tooltip),n.setAttribute("tooltip-placement","top")),t.text&&n.appendChild(document.createTextNode(t.text)));var i=r.add(e,{position:t.position||{bottom:0,right:0},show:{minZoom:-1/0,maxZoom:1/0},html:n});return m(n)(a),i},a.control.removeBadges=function(e){s.get("overlays").remove({element:e})},a.control.removeBadge=function(e){s.get("overlays").remove(e)},a.control.getViewer=function(){return s},a.control.scrollToElement=function(e){var t,n,r,i,a=s.get("elementRegistry").get(e),o=p.viewbox();t=Math.max(o.height,a.height),n=Math.max(o.width,a.width),r=Math.min(Math.max(o.x,a.x-o.width+a.width),a.x),i=Math.min(Math.max(o.y,a.y-o.height+a.height),a.y),p.viewbox({x:r,y:i,width:n,height:t})},a.control.getElement=function(e){return s.get("elementRegistry").get(e)},a.control.getElements=function(e){return s.get("elementRegistry").filter(e)},a.loaded=!1,a.control.isLoaded=function(){return a.loaded},a.control.addAction=function(e){var t=r.find(".actions"),n=e.html;t.append(n),m(n)(a)},a.control.addImage=function(e,t,n){return p._viewport.image(e,t,n)};var e=b;a.disableNavigation&&(e=Object.getPrototypeOf(b.prototype).constructor);var s=new e({container:r[0].querySelector(".diagram-holder"),width:"100%",height:"100%",canvas:{deferUpdate:!1}}),t=s.get("overlays").show.bind(s.get("overlays"));s.get("overlays").show=function(){s.get("eventBus").fire("overlays.show"),t()};var n=s.get("overlays").hide.bind(s.get("overlays"));s.get("overlays").hide=function(){s.get("eventBus").fire("overlays.hide"),n()};var o=v(function(){s.get("overlays").show()},300),l=s.get("canvas")._viewboxChanged.bind(s.get("canvas")),c=v(function(){l(),s.get("overlays").hide(),o()},0);s.get("canvas")._viewboxChanged=function(){c()};var u=null,p=null;a.$watch("diagramData",function(e){e&&(u=e,function(){if(u){a.loaded=!1;var e="object"===y(u);(e?s.importDefinitions:s.importXML).bind(s)(u,function(t,n){(e?function(e){e()}:a.$apply.bind(a))(function(){var e;t?a.error=t:(a.warn=n,p=s.get("canvas"),i=s._definitions,function(){if(p){var e=JSON.parse((f.search()||{}).viewbox||"{}")[i.id];e?p.viewbox(e):p.zoom("fit-viewport","auto")}}(),(e=s.get("eventBus")).on("element.click",function(e){a.onClick({element:e.element,$event:e.originalEvent})}),e.on("element.hover",function(e){a.onMouseEnter({element:e.element,$event:e.originalEvent})}),e.on("element.out",function(e){a.onMouseLeave({element:e.element,$event:e.originalEvent})}),e.on("element.mousedown",function(){a.grabbing=!0,document.addEventListener("mouseup",d),a.$apply()}),e.on("canvas.viewbox.changed",v(function(e){var t=JSON.parse((f.search()||{}).viewbox||"{}");t[i.id]={x:e.viewbox.x,y:e.viewbox.y,width:e.viewbox.width,height:e.viewbox.height},g.updateSilently({viewbox:JSON.stringify(t)});var n=h.$$phase;"$apply"!==n&&"$digest"!==n?a.$apply(function(){f.replace()}):f.replace()},500)),a.loaded=!0,a.onLoad())})})}}())});var d=function e(){a.grabbing=!1,document.removeEventListener("mouseup",e),a.$apply()};a.zoomIn=function(){s.get("zoomScroll").zoom(1,{x:r[0].offsetWidth/2,y:r[0].offsetHeight/2})},a.zoomOut=function(){s.get("zoomScroll").zoom(-1,{x:r[0].offsetWidth/2,y:r[0].offsetHeight/2})},a.resetZoom=function(){p.resized(),p.zoom("fit-viewport","auto")},a.control.resetZoom=a.resetZoom,a.control.refreshZoom=function(){p.resized(),p.zoom(p.zoom(),"auto")}}}}]},{"cmmn-js/lib/NavigatedViewer":116,"core-js/modules/es.string.replace":188}],55:[function(e,t,n){"use strict";t.exports=[function(){return{template:'<div class="debug">\r\n <div class="col-xs-2">\r\n <button class="btn btn-default btn-round"\r\n ng-click="toggleOpen()"\r\n uib-tooltip="{{tooltip}}"\r\n tooltip-placement="{{tooltipPlacement}}">\r\n <span class="glyphicon"\r\n ng-class="{\'glyphicon-eye-open\': !open, \'glyphicon-eye-close\': open}"></span>\r\n </button>\r\n </div>\r\n <div class="col-xs-10"\r\n ng-show="open">\r\n <span ng-show="extended" cam-widget-clipboard="extendedInfo"\r\n no-tooltip>\r\n <code>{{ extensionName }}</code>\r\n </span>\r\n <pre ng-show="extended">{{ extendedInfo }}</pre>\r\n <span cam-widget-clipboard="debugged | json "\r\n no-tooltip>\r\n <code>{{ varName }}</code>\r\n </span>\r\n <pre>{{ debugged | json }}</pre>\r\n </div>\r\n</div>\r\n',scope:{debugged:"=",displayName:"@displayName",extensionName:"@extensionName",open:"@",extendedInfo:"=",tooltip:"@camWidgetDebugTooltip",tooltipPlacement:"@camWidgetDebugTooltipPlacement"},link:function(e,t,n){e.varName=n.displayName||n.debugged,e.extended=void 0!==n.extended,e.toggleOpen=function(){e.open=!e.open}}}}]},{}],56:[function(e,t,n){"use strict";var u=e("@bpmn-io/dmn-migrate").migrateDiagram,p=e("../../../../camunda-bpm-sdk-js/vendor/angular"),d=e("./lib/navigatedViewer").default,m=e("dmn-js/lib/Modeler").default,f=e("../../util/change-dmn-namespace"),r=document.addEventListener;document.addEventListener=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if("focusin"!==t[0])return r.apply(document,t)},t.exports=["$window",function(c){return{scope:{xml:"=",table:"@",width:"=",height:"=",control:"=?",editMode:"=",showDetails:"=",disableNavigation:"=",enableDrdNavigation:"=",disableLoader:"=",onLoad:"&",onClick:"&",onDblClick:"&"},template:'<div uib-alert class="alert alert-danger"\r\n ng-if="error">\r\n <strong>{{ \'CAM_WIDGET_DMN_VIEWER_ERROR\' | translate }}</strong><br/>\r\n {{ error.message }}\r\n</div>\r\n\r\n<div ng-show="!error"\r\n ng-if="!loaded && !disableLoader"\r\n class="placeholder-container">\r\n <div class="placeholder-content">\r\n {{ \'CAM_WIDGET_DMN_VIEWER_LOADING\' | translate }}<br />\r\n <span class="glyphicon glyphicon-refresh animate-spin"></span>\r\n </div>\r\n</div>\r\n\r\n<div ng-show="!error"\r\n ng-class="{\r\n \'grab-cursor\': isDrd && !grabbing,\r\n \'cursor-move\': isDrd && grabbing\r\n }"\r\n class="table-holder">\r\n</div>\r\n\r\n<div ng-if="!error && !disableNavigation && isDrd">\r\n <div class="navigation zoom">\r\n <button class="btn btn-default in"\r\n title="zoom in"\r\n ng-click="zoomIn()">\r\n <span class="glyphicon glyphicon-plus"></span>\r\n </button>\r\n <button class="btn btn-default out"\r\n title="zoom out"\r\n ng-click="zoomOut()">\r\n <span class="glyphicon glyphicon-minus"></span>\r\n </button>\r\n </div>\r\n\r\n <div class="navigation reset">\r\n <button class="btn btn-default"\r\n title="reset zoom"\r\n ng-click="resetZoom()">\r\n <span class="glyphicon glyphicon-screenshot"></span>\r\n </button>\r\n </div>\r\n</div>\r\n',link:function(r,t){var i,e=c.document;r.isDrd=!1,r.grabbing=!1,r.control=r.control||{},r.control.getViewer=function(){return a},r.control.getElement=function(e){return a.getActiveViewer().get("elementRegistry").get(e)},r.loaded=!1,r.control.isLoaded=function(){return r.loaded},r.control.highlightRow=function(e,t){var n="[data-row-id = "+e+"]";p.element(n).parent().addClass(t)},r.control.highlightElement=function(e){i&&a.getActiveViewer().get("elementRegistry").get(e)&&(i.addMarker(e,"highlight"),t.find('[data-element-id="'+e+'"]>.djs-outline').attr({rx:"14px",ry:"14px"}))},r.control.clearAllElementsHighlight=function(){i&&i.getRootElement().children.forEach(function(e){var t=e.id;i.hasMarker(t,"highlight")&&i.removeMarker(t,"highlight")})},r.control.clearElementHighlight=function(e){i&&i.removeMarker(e,"highlight")},r.control.isElementHighlighted=function(e){if(i)return i.hasMarker(e,"highlight")},r.control.getElements=function(e){if(i)return a.getActiveViewer().get("elementRegistry").filter(e)},r.control.createBadge=function(e,t){var n,r;i&&(n=e,r=t,a.getActiveViewer().get("overlays").add(n,{position:r.position||{bottom:10,right:10},show:{minZoom:-1/0,maxZoom:1/0},html:r.html}))},r.control.resetZoom=l,r.control.refreshZoom=function(){i.resized(),i.zoom(i.zoom(),"auto")};var a=new(r.editMode?m:d)({container:t[0].querySelector(".table-holder"),width:r.width,height:r.height,hideDetails:!r.showDetails,tableViewOnly:r.table,drd:{drillDown:{enabled:r.enableDrdNavigation}}}),n=null;r.$watch("xml",function(e){e&&u(e).then(function(e){n=e,function(){if(n){var e=f(n);r.loaded=!1,a.importXML(e,function(e){r.isDrd=1<a.getDefinitions().drgElement.length&&!r.table,r.isDrd&&((i=a.getActiveViewer().get("canvas")).zoom("fit-viewport","auto"),r.control.getElements(function(e){return"dmn:Decision"===e.type}).forEach(function(e){i.addMarker(e.id,"decision-element")})),r.$apply(s),r.$apply(function(){e?r.error=e:(r.isDrd&&r.onLoad(),r.loaded=!0)})})}}()})}),a.on("import.done",function(){a.getActiveViewer().on("element.click",function(e){r.$apply(function(){r.onClick({element:e.element,$event:e.originalEvent})})}),a.getActiveViewer().on("element.dblclick",function(e){r.$apply(function(){r.onDblClick({element:e.element,$event:e.originalEvent})})})});var o=r.$apply.bind(r,function(){r.grabbing=!1,e.removeEventListener("mouseup",o)});function s(){if(r.table){var e=/^[0-9]+$/.test(r.table);r.table=e?+r.table:r.table;var t=a.getViews().filter(function(e){return p.isString(r.table)&&e.element.id===r.table||e.element.name===r.table})[0];a.open(t,function(){r.onLoad()})}else var n=r.$watch("table",function(e){e&&(n(),s())})}function l(){i&&(i.resized(),i.zoom("fit-viewport","auto"))}a.on("element.mousedown",r.$apply.bind(r,function(){r.grabbing=!0,e.addEventListener("mouseup",o)})),r.zoomIn=function(){a.getActiveViewer().get("zoomScroll").zoom(1,{x:t[0].offsetWidth/2,y:t[0].offsetHeight/2})},r.zoomOut=function(){a.getActiveViewer().get("zoomScroll").zoom(-1,{x:t[0].offsetWidth/2,y:t[0].offsetHeight/2})},r.resetZoom=l,c.addEventListener("resize",r.resetZoom),r.$on("destroy",function(){c.removeEventListener("resize",r.resetZoom),e.removeEventListener("mouseup",o)})}}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"../../util/change-dmn-namespace":43,"./lib/navigatedViewer":57,"@bpmn-io/dmn-migrate":76,"dmn-js/lib/Modeler":"dmn-js/lib/Modeler"}],57:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("dmn-js-shared/lib/base/Manager")),a=r(e("dmn-js-drd/lib/NavigatedViewer")),o=r(e("dmn-js-decision-table/lib/Viewer")),s=r(e("dmn-js-literal-expression/lib/Viewer")),l=e("dmn-js-shared/lib/util/ModelUtil"),c=e("dmn-js-shared/lib/util/DiUtil");function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(){function n(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=d(this,m(n).call(this,t))).options=t,e}var e,t,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(n,i["default"]),e=n,(t=[{key:"_getViewProviders",value:function(){var e=[{id:"literalExpression",constructor:s.default,opens:function(e){return(0,l.is)(e,"dmn:Decision")&&e.literalExpression}},{id:"decisionTable",constructor:o.default,opens:function(e){return(0,l.is)(e,"dmn:Decision")&&e.decisionTable}}];return this.options.tableViewOnly||e.push({id:"drd",constructor:a.default,opens:function(e){return(0,l.is)(e,"dmn:Definitions")&&(0,c.containsDi)(e)}}),e}}])&&p(e.prototype,t),r&&p(e,r),n}();n.default=h},{"dmn-js-decision-table/lib/Viewer":"dmn-js-decision-table/lib/Viewer","dmn-js-drd/lib/NavigatedViewer":"dmn-js-drd/lib/NavigatedViewer","dmn-js-literal-expression/lib/Viewer":"dmn-js-literal-expression/lib/Viewer","dmn-js-shared/lib/base/Manager":"dmn-js-shared/lib/base/Manager","dmn-js-shared/lib/util/DiUtil":"dmn-js-shared/lib/util/DiUtil","dmn-js-shared/lib/util/ModelUtil":"dmn-js-shared/lib/util/ModelUtil"}],58:[function(e,t,n){"use strict";t.exports=[function(){return{template:'<div class="container-fluid">\r\n <div class="row">\r\n <div class="col-xs-6" style="text-align: left;">\r\n {{ \'CAM_WIDGET_FOOTER_TIMEZONE\' | translate }} <i>{{timezoneName}}</i>\r\n </div>\r\n <div class="col-xs-6">\r\n {{ \'CAM_WIDGET_FOOTER_POWERED_BY\' | translate }} <a href="http://camunda.org">camunda BPM</a> /\r\n <span class="version">{{version}}</span>\r\n </div>\r\n </div>\r\n</div>\r\n',scope:{version:"@"},link:function(e){e.timezoneName=Intl.DateTimeFormat().resolvedOptions().timeZone}}}]},{}],59:[function(e,t,n){"use strict";var i=e("../../../../camunda-bpm-sdk-js/vendor/angular"),a={welcome:{label:"Welcome"},admin:{label:"Admin"},cockpit:{label:"Cockpit"},tasklist:{label:"Tasklist"}};t.exports=function(){return{transclude:!0,template:'<div class="navbar-header">\r\n <button type="button"\r\n class="navbar-toggle"\r\n ng-class="{open: !!navbarOpen}"\r\n ng-click="navbarOpen = !navbarOpen">\r\n <em class="sr-only">{{ toggleNavigation }}</em>\r\n <span></span>\r\n <span></span>\r\n <span></span>\r\n </button>\r\n\r\n <a class="navbar-brand"\r\n ng-if="authentication.name"\r\n href="#/"\r\n title="{{ brandName }} {{ appName }}">\r\n <span ng-bind-html="logo" class="brand-logo"></span>\r\n <span class="brand-name" ng-cloak>{{ brandName }}</span>\r\n </a>\r\n\r\n <div class="small-screen-warning">\r\n <span class="glyphicon glyphicon-exclamation-sign"\r\n uib-tooltip="{{ smallScreenWarning | translate }}"\r\n tooltip-placement="bottom"></span>\r\n </div>\r\n</div>\r\n\r\n<nav class="cam-nav app-menu">\r\n <ul ng-class="{collapse: !navbarOpen}">\r\n\r\n <li engine-select></li>\r\n\r\n <li class="account dropdown"\r\n ng-if="authentication.name"\r\n ng-cloak\r\n uib-dropdown>\r\n <a href\r\n class="dropdown-toggle"\r\n uib-dropdown-toggle>\r\n <span class="glyphicon glyphicon-user "></span>\r\n {{ (userName || authentication.name) }}\r\n </a>\r\n\r\n <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>\r\n <li class="profile"\r\n ng-if="currentApp !== \'welcome\'">\r\n <a ng-href="{{ \'../../welcome/:engine/\' | uri }}">\r\n {{ myProfile | translate }}\r\n </a>\r\n </li>\r\n\r\n <li class="divider"\r\n ng-if="currentApp !== \'welcome\'"></li>\r\n\r\n <li class="logout">\r\n <a href\r\n ng-click="logout()">\r\n {{ signOut | translate }}\r\n </a>\r\n </li>\r\n </ul>\r\n </li>\r\n\r\n <li class="divider-vertical"\r\n ng-if="authentication.name"\r\n ng-cloak></li>\r\n\r\n <li class="app-switch dropdown"\r\n ng-if="showAppDropDown"\r\n uib-dropdown>\r\n <a href\r\n class="dropdown-toggle"\r\n uib-dropdown-toggle>\r\n <span class="glyphicon glyphicon-home"></span>\r\n <span class="caret"></span>\r\n </a>\r\n\r\n <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>\r\n <li ng-repeat="(appName, app) in apps"\r\n ng-class="appName">\r\n <a ng-href="{{ (\'../../\' + appName + \'/:engine/\' | uri) + getTargetRoute() }}">\r\n {{ app.label }}\r\n </a>\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n</nav>\r\n\r\n<div ng-transclude\r\n class="sections-menu"\r\n ng-class="{collapse: !navbarOpen}"></div>\r\n',scope:{authentication:"=",userName:"=?",currentApp:"@",signOut:"@?",toggleNavigation:"@?",myProfile:"@?",smallScreenWarning:"@?",brandName:"@"},compile:function(e,t){t.toggleNavigation||(t.toggleNavigation="CAM_WIDGET_HEADER_TOGGLE_NAVIGATION"),t.myProfile||(t.myProfile="CAM_WIDGET_HEADER_MY_PROFILE"),t.signOut||(t.signOut="CAM_WIDGET_HEADER_SIGN_OUT"),t.brandName||(t.brandName="Camunda"),t.smallScreenWarning||(t.smallScreenWarning="CAM_WIDGET_HEADER_SMALL_SCREEN_WARNING")},controller:["$scope","AuthenticationService","$sce",function(n,e,t){function r(){var t=i.copy(a);n.currentApp&&("welcome"===n.currentApp&&n.authentication?t={}:delete t[n.currentApp]),n.authentication&&n.authentication.name&&(delete t.welcome,Object.keys(t).forEach(function(e){n.authentication.authorizedApps.indexOf(e)<0&&delete t[e]})),n.showAppDropDown=0<Object.keys(t).length,n.apps=t}n.logo=t.trustAsHtml(' <svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26">\r\n <path d="M13,0 C20.1797017,0 26,5.82029825 26,13 C26,20.1797017 20.1797017,26 13,26 C5.82029825,26 0,20.1797017 0,13 C0,5.82029825 5.82029825,0 13,0 Z M15.9924973,18.7781515 L9.99320872,18.7781515 L9.99320872,22.1683591 L15.9924973,22.1683591 L15.9924973,18.7781515 Z M13,3.83248173 C11.0249014,3.83248173 10.0058211,4.99702477 9.99320872,7.04527521 L9.99320872,7.04527521 L9.99320872,13.69284 L9.99685,13.8998115 C10.0647928,15.8025897 11.0827733,16.8913395 12.985706,16.8913395 C14.9608046,16.8913395 15.9773624,15.7267965 15.9924973,13.678546 L15.9924973,13.678546 L15.9924973,11.9834422 L14.0913912,11.9834422 L14.0913912,13.8105556 L14.0867571,13.9750837 C14.0405969,14.7638347 13.6523228,15.0490913 13.0445637,15.0490913 C12.4105815,15.0490913 11.9977362,14.7245327 11.9977362,13.8105556 L11.9977362,13.8105556 L11.9977362,6.89476748 L12.0023704,6.72991255 C12.0485306,5.93798383 12.4368047,5.62774885 13.0445637,5.64193778 C13.678546,5.64193778 14.0913912,5.99592523 14.0913912,6.90990233 L14.0913912,6.90990233 L14.0913912,8.28044758 L15.9924973,8.28044758 L15.9924973,7.04527521 L15.9888705,6.83655109 C15.9211931,4.91809617 14.9069918,3.83248173 13,3.83248173 Z"/>\r\n </svg>'),n.logout=e.logout,n.getTargetRoute=function(){return n.authentication?"":"#/login"},n.$watch("currentApp",r),n.$watch("authentication",r)}]}}},{"../../../../camunda-bpm-sdk-js/vendor/angular":2}],60:[function(e,t,n){"use strict";var r=e("../../../camunda-bpm-sdk-js/vendor/angular"),i=e("./inline-field/cam-widget-inline-field"),a=e("./search-pill/cam-widget-search-pill"),o=e("./search-pill/cam-query-component"),s=e("./header/cam-widget-header"),l=e("./footer/cam-widget-footer"),c=e("./loader/cam-widget-loader"),u=e("./chart-line/cam-widget-chart-line"),p=e("./debug/cam-widget-debug"),d=e("./clipboard/cam-widget-clipboard"),m=e("./variable/cam-widget-variable"),f=e("./variables-table/cam-widget-variables-table"),h=e("./variables-table/cam-render-var-template"),g=e("./search/cam-widget-search"),v=e("./bpmn-viewer/cam-widget-bpmn-viewer"),y=e("./cmmn-viewer/cam-widget-cmmn-viewer"),b=e("./dmn-viewer/cam-widget-dmn-viewer"),x=e("../filter/date/index"),w=e("../directives/index"),E=e("../search/index"),k=e("./variable/cam-variable-validator"),S=e("./../services/cam-local-configuration"),C=e("./cam-share-link/cam-share-link"),A=e("./password/cam-widget-password");e("../../vendor/ui-bootstrap-tpls-2.5.0-camunda");var _=r.module("camunda.common.widgets",[x.name,w.name,E.name,"ui.bootstrap"]);_.factory("widgetLocalConf",S),_.directive("camWidgetInlineField",i),_.directive("camWidgetSearchPill",a),_.directive("camWidgetHeader",s),_.directive("camWidgetFooter",l),_.directive("camWidgetLoader",c),_.directive("camWidgetChartLine",u),_.directive("camWidgetDebug",p),_.directive("camWidgetClipboard",d),_.directive("camWidgetVariable",m),_.directive("camWidgetVariablesTable",f),_.directive("camRenderVarTemplate",h),_.directive("camWidgetSearch",g),_.directive("camWidgetBpmnViewer",v),_.directive("camWidgetCmmnViewer",y),_.directive("camWidgetDmnViewer",b),_.directive("camShareLink",C),_.directive("camWidgetPassword",A),_.directive("camVariableValidator",k),_.filter("camQueryComponent",o),t.exports=_},{"../../../camunda-bpm-sdk-js/vendor/angular":2,"../../vendor/ui-bootstrap-tpls-2.5.0-camunda":75,"../directives/index":16,"../filter/date/index":23,"../search/index":31,"./../services/cam-local-configuration":35,"./bpmn-viewer/cam-widget-bpmn-viewer":50,"./cam-share-link/cam-share-link":51,"./chart-line/cam-widget-chart-line":52,"./clipboard/cam-widget-clipboard":53,"./cmmn-viewer/cam-widget-cmmn-viewer":54,"./debug/cam-widget-debug":55,"./dmn-viewer/cam-widget-dmn-viewer":56,"./footer/cam-widget-footer":58,"./header/cam-widget-header":59,"./inline-field/cam-widget-inline-field":61,"./loader/cam-widget-loader":62,"./password/cam-widget-password":63,"./search-pill/cam-query-component":64,"./search-pill/cam-widget-search-pill":65,"./search/cam-widget-search":66,"./variable/cam-variable-validator":68,"./variable/cam-widget-variable":69,"./variables-table/cam-render-var-template":70,"./variables-table/cam-widget-variables-table":71}],61:[function(e,t,n){"use strict";function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=e("../../../../camunda-bpm-sdk-js/vendor/angular"),b=e("jquery");t.exports=["$timeout","$filter","$document",function(h,t,g){return{scope:{varValue:"=value",varType:"@type",validator:"&validate",change:"&",onStart:"&onStartEditing",onCancel:"&onCancelEditing",placeholder:"@",options:"=?",allowNonOptions:"@",flexible:"@",disableAutoselect:"=?"},template:'<span ng-show="!editing"\r\n ng-click="startEditing()"\r\n ng-transclude\r\n class="view-value">\r\n</span>\r\n\r\n<span ng-if="editing && (varType === \'datetime\' || varType === \'date\' || varType === \'time\')"\r\n class="preview">\r\n {{ dateValue | camDate }}\r\n</span>\r\n\r\n<span ng-if="editing"\r\n ng-form\r\n name="inlineForm"\r\n class="edit">\r\n\r\n <input ng-if="simpleField && !isNumber"\r\n class="form-control"\r\n type="{{ varType }}"\r\n ng-model="editValue"\r\n ng-keydown="handleKeydown($event)"\r\n placeholder="{{ placeholder }}" />\r\n\r\n <input ng-if="isNumber"\r\n name="numberField"\r\n class="form-control"\r\n ng-pattern="/^[0-9]{1,7}$/"\r\n ng-model="editValue"\r\n ng-keydown="handleKeydown($event)"\r\n placeholder="{{ placeholder }}" />\r\n\r\n\r\n <span ng-show="varType === \'datetime\' || varType === \'date\' || varType === \'time\'"\r\n class="cam-widget-inline-field field-control datepicker">\r\n\r\n <div class="datepicker"\r\n uib-datepicker\r\n ng-if="varType === \'datetime\' || varType === \'date\'"\r\n type="text"\r\n ng-required="true"\r\n is-open="datePickerOptions.isOpen"\r\n show-button-bar="false"\r\n ng-click="$event.stopPropagation()"\r\n ng-keydown="trapKeyboard($event, true); cancelOnEsc($event);"\r\n\r\n ng-model="dateValue"\r\n ng-change="changeDate(this)"></div>\r\n\r\n <div class="timepicker"\r\n uib-timepicker\r\n ng-if="varType === \'datetime\' || varType === \'time\'"\r\n show-meridian="false"\r\n\r\n ng-model="dateValue"\r\n ng-keydown="cancelOnEsc($event);"\r\n ng-change="changeDate(this)"></div>\r\n </span>\r\n\r\n <input ng-if="varType === \'option\' && options[0].value"\r\n class="form-control"\r\n type="text"\r\n ng-model="editValue"\r\n ng-keydown="handleKeydown($event)"\r\n uib-typeahead="option as option.value for option in options | filter:$viewValue:instantTypeahead"\r\n typeahead-on-select="saveSelection($item)"\r\n typeahead-focus-first="!disableAutoselect"\r\n instant-typeahead />\r\n <input ng-if="varType === \'option\' && !options[0].value"\r\n class="form-control"\r\n type="text"\r\n ng-model="editValue"\r\n ng-keydown="handleKeydown($event)"\r\n uib-typeahead="option for option in options | filter:$viewValue:instantTypeahead"\r\n typeahead-on-select="saveSelection($item)"\r\n typeahead-focus-first="!disableAutoselect"\r\n instant-typeahead />\r\n\r\n <span ng-show="varType !== \'option\'"\r\n class="cam-widget-inline-field btn-group">\r\n <button type="button"\r\n class="btn btn-xs btn-default"\r\n ng-click="changeType()"\r\n ng-if="flexible">\r\n <span class="glyphicon"\r\n ng-class="\'glyphicon-\' + (varType === \'text\' ? \'calendar\' : \'pencil\')"></span>\r\n </button>\r\n\r\n <button type="button"\r\n class="btn btn-xs btn-default"\r\n ng-style="{visibility: !isNumber || inlineForm.numberField.$valid ? \'visible\' : \'hidden\'}"\r\n ng-click="applyChange($event);"\r\n ng-keydown="cancelOnEsc($event);">\r\n <span class="glyphicon glyphicon-ok"></span>\r\n </button>\r\n\r\n <button type="button"\r\n class="btn btn-xs btn-default"\r\n ng-click="cancelChange($event)"\r\n ng-keydown="trapKeyboard($event); cancelOnEsc($event);">\r\n <span class="glyphicon glyphicon-remove"></span>\r\n </button>\r\n </span>\r\n</span>\r\n',link:function(o,s){var i,a,r=b(function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.body;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.body}(s[0])),n=t("date"),c=/(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:.(\d\d\d)| )?$/;function l(){return-1<["datetime","date","time"].indexOf(o.varType)}function u(){return-1<["color","email","month","number","range","tel","text","time","url","week"].indexOf(o.varType)}function e(){if(o.editing=!1,o.invalid=!1,o.editValue=o.varValue,o.validator=o.validator||function(){},o.onStart=o.onStart||function(){},o.onCancel=o.onCancel||function(){},o.change=o.change||function(){},o.options=o.options||[],o.allowNonOptions=o.allowNonOptions||!1,o.flexible=o.flexible||!1,o.varType=o.varType?o.varType:"text",o.simpleField=u(),l()){var e=o.varValue,t=null;t=e?function(e){var t,n,r,i,a,o,s,l=c.exec(e);if(l)return t=parseInt(l[1]||0,10),n=parseInt(l[2]||0,10)-1,r=parseInt(l[3]||0,10),i=parseInt(l[4]||0,10),a=parseInt(l[5]||0,10),o=parseInt(l[6]||0,10),s=parseInt(l[7]||0,10),new Date(t,n,r,i,a,o,s)}(e):(new Date).setSeconds(0,0),o.dateValue=t}}function p(e){if(e&&e.length){var t=e.parent();if(t&&t.length)return"body"===t[0].tagName.toLowerCase()}}function d(){var e={left:b(s).offset().left-r.offset().left,top:b(s).offset().top-r.offset().top},t=a.outerWidth()+e.left;if(t>r.prop("clientWidth")&&(e.left-=t+5-r.prop("clientWidth")),l()?i.addClass("datepicker-control").show().css({left:e.left+(a.outerWidth()-i.outerWidth()),top:e.top+a.outerHeight()}):i.removeClass("datepicker-control").show().css({left:e.left+(b(s).outerWidth()-i.outerWidth()),top:e.top-i.outerHeight()}),a.show().css({left:e.left,top:e.top+b(s).outerHeight()}),l()){var n=a[0].querySelector(".uib-daypicker");n&&n.focus()}}function m(e){h(function(){o.editing&&!e||(i&&i.remove&&i.remove(),i=null,a&&a.remove&&a.remove(),a=null)},50)}function f(e){if(o.editing&&(t=e,!(s[0].contains(t.target)||i&&i.length&&i[0].contains(t.target)||a&&a.length&&a[0].contains(t.target)))){var t,n=b(e.target),r="ng-binding text-muted";if(!n.hasClass(r))n.children().hasClass(r)||o.$apply(o.cancelChange)}}o.editing=!1,o.isNumber="number"===o.varType,o.$on("$locationChangeSuccess",function(){o.cancelChange()}),o.$on("$destroy",function(){m(!0)}),o.$watch("editing",function(e,t){e!==t&&(o.editing?(p(a=(a&&a.length?a:b(s[0].querySelector(".field-control"))).hide())||r.append(a),p(i=(i&&i.length?i:b(s[0].querySelector(".btn-group"))).hide())||r.append(i),h(d,50),s.addClass("inline-editing")):(m(),s.removeClass("inline-editing")))}),o.changeType=function(){"datetime"===o.varType?o.varType="text":o.varType="datetime",e(),o.editing=!0,s[0].attributes.type.value=o.varType,o.simpleField=u()},o.startEditing=function(){if(!o.editing){e(),o.editing=!0,o.onStart(o);var a=o.editValue;o.simpleField||(o.editValue=""),h(function(){h(function(){if(o.editValue=a){var i="object"===v(a);i&&y.element(s[0].querySelector('[ng-model="editValue"]')).val(a.value),h(function(){for(var e=b(s[0].querySelector("li[ng-mouseenter]")),t=i?a.value:a,n=0;n<e.length;n++){var r=e[n];if(0===r.innerText.indexOf(t))return void b(r).trigger("mouseenter")}})}})}),h(function(){y.element(s[0].querySelector('[ng-model="editValue"]')).triggerHandler("click"),h(function(){b('[ng-model="editValue"]').focus(),b('[ng-model="editValue"]').select(),g.bind("click",f)},50)})}},o.applyChange=function(e,t){if(o.invalid=o.validator(o),!o.invalid){if(o.simpleField)o.editValue=function(e){if("number"!==o.varType)return e;if(0<e.length)return+e;return null}(b('[ng-model="editValue"]').val()),o.varValue=o.editValue;else if("option"===o.varType){if(-1===o.options.indexOf(e)&&!o.allowNonOptions)return void o.cancelChange();o.editValue=e||b('[ng-model="editValue"]').val(),o.varValue=o.editValue}else l()&&(o.varValue=n(o.dateValue,"yyyy-MM-dd'T'HH:mm:ss"));o.$event=t,o.change(o),o.editing=!1,g.unbind("click",f)}},o.cancelChange=function(){o.editing&&(o.editing=!1,o.onCancel(o),g.unbind("click",f))},o.changeDate=function(e){o.editValue=o.dateValue=e.dateValue},o.selectNextInlineField=function(t){for(var n=b("[cam-widget-inline-field][type='text'], [cam-widget-inline-field][type='option']"),r=t*(n.length-1);r!==!t*(n.length-1);r+=2*!t-1)if(n[r]===s[0])return void h(function(){var e=b(n[r+2*!t-1]);e.find(".view-value").click(),h(function(){e.find("input").select()})});h(function(){b(n[t*n.length-1]).find(".view-value").click()})},o.trapKeyboard=function(e,t){l()&&9===e.keyCode&&(t||e.shiftKey?t&&e.shiftKey&&(b('.cam-widget-inline-field.btn-group > button[ng-click="cancelChange($event)"]')[0].focus(),e.preventDefault()):(b(".cam-widget-inline-field.field-control > .datepicker > table")[0].focus(),e.preventDefault()))},o.cancelOnEsc=function(e){l()&&27===e.keyCode&&o.cancelChange()},o.handleKeydown=function(e){13===e.keyCode?(o.applyChange(o.selection,e),e.preventDefault()):27===e.keyCode?(o.cancelChange(e),e.preventDefault()):9===e.keyCode&&(o.applyChange(o.selection,e),o.selectNextInlineField(e.shiftKey),e.preventDefault()),o.selection=null},o.selection=null,o.saveSelection=function(e){o.selection=e,h(function(){o.selection===e&&o.applyChange(e)})}},transclude:!0}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,jquery:"jquery"}],62:[function(e,t,n){"use strict";var r=e("../../../../camunda-bpm-sdk-js/vendor/angular");t.exports=[function(){return{transclude:!0,template:'<div class="loader-state loaded"\r\n ng-show="loadingState === \'LOADED\'"\r\n ng-transclude></div>\r\n\r\n<div class="loader-state loading"\r\n ng-if="loadingState === \'LOADING\'">\r\n <span class="glyphicon glyphicon-refresh animate-spin"></span>\r\n {{ textLoading }}\r\n</div>\r\n\r\n<div class="loader-state empty"\r\n ng-if="loadingState === \'EMPTY\'">\r\n {{ textEmpty }}\r\n</div>\r\n\r\n<div uib-alert class="loader-state alert alert-danger"\r\n ng-if="loadingState === \'ERROR\'">\r\n {{ textError }}\r\n</div>\r\n',scope:{loadingState:"@",textEmpty:"@",textError:"@",textLoading:"@"},compile:function(e,t){r.isDefined(t.textLoading)||(t.textLoading="Loading…"),r.isDefined(t.loadingState)||(t.loadingState="INITIAL")}}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2}],63:[function(e,t,n){"use strict";var u=e("../../../../camunda-bpm-sdk-js/vendor/angular");t.exports=["camAPI","debounce","$translate","$sce",function(o,s,l,c){return{scope:{password:"=camWidgetPasswordPassword",isValid:"=?camWidgetPasswordValid"},link:function(n){var e=o.resource("password-policy"),t=!1;n.loadingState="DEACTIVATED",n.tooltipText="";var r=l.instant("PASSWORD_POLICY_TOOLTIP");e.get().then(function(e){if(!e)return t=!1,n.isValid=!0,void(n.loadingState="DEACTIVATED");t=!0,r+="<ul>",e.rules.forEach(function(e){r+="<li>"+l.instant(e.placeholder,e.parameter)+"</li>"}),r+="</ul>",n.tooltipText=c.trustAsHtml(r),i()});var i=function(){if(t){if(n.isValid=!1,!n.password)return n.tooltipText=c.trustAsHtml(r),void(n.loadingState="NOT_OK");n.loadingState="LOADING",a()}},a=s(function(){n.password&&e.validate(n.password,function(e,t){if(e)return n.loadingState="NOT_OK",void(n.tooltipText=c.trustAsHtml(l.instant("PASSWORD_POLICY_TOOLTIP_ERROR")));t.valid?(n.loadingState="OK",n.isValid=!0):(n.loadingState="NOT_OK",n.isValid=!1,n.tooltipText=l.instant("PASSWORD_POLICY_TOOLTIP_PARTIAL"),n.tooltipText+="<ul>",t.rules.forEach(function(e){e.valid||(n.tooltipText+="<li>"+l.instant(e.placeholder,e.parameter)+"</li>")}),n.tooltipText+="</ul>",n.tooltipText=c.trustAsHtml(n.tooltipText))}).catch(u.noop)},1e3);n.$watch("[password]",i,!0)},template:'<div class="password-input right-addon">\r\n <i ng-if="loadingState === \'NOT_OK\' && password.length > 0" class="glyphicon glyphicon-remove-circle"></i>\r\n <i ng-if="loadingState === \'OK\'" class="glyphicon glyphicon-ok-circle"></i>\r\n <i ng-if="loadingState === \'LOADING\'" class="glyphicon glyphicon-refresh animate-spin"></i>\r\n <input id="inputPassword"\r\n name="inputPassword"\r\n class="form-control"\r\n type="password"\r\n ng-model="password"\r\n ng-invalid="true"\r\n uib-popover-html="tooltipText"\r\n popover-enable="loadingState === \'NOT_OK\'"\r\n popover-is-open="loadingState === \'NOT_OK\' && password.length > 0"\r\n popover-trigger="\'focus\'"\r\n required></input>\r\n</div>\r\n'}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2}],64:[function(e,t,n){"use strict";t.exports=["$filter",function(e){var t=/(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:.(\d\d\d)| )?$/;var n=e("camDate");return function(e){return e&&e.match(t)?n(e):e||"??"}}]},{}],65:[function(e,t,n){"use strict";var o=e("jquery");t.exports=["$timeout",function(a){return{restrict:"A",scope:{valid:"=",extended:"=",basic:"=",allowDates:"=",enforceDates:"=",enforceString:"=",options:"=",invalidText:"@",deleteText:"@",type:"=",name:"=",potentialNames:"=?",operator:"=",value:"=",onChange:"&",onDelete:"&",disableTypeaheadAutoselect:"=?",allowNonOptions:"@?"},link:function(i,t){i.valueType=r(),i.potentialNames=i.potentialNames||[],i.changeSearch=function(e,t,n){var r=i[e].value;i[e].value=t,i[e].inEdit=!1,"function"==typeof i.onChange&&i.onChange({field:e,before:r,value:t,$event:n})},i.clearEditTrigger=function(e){i[e].inEdit=!1},i.onKeydown=function(e,t){13===e.keyCode&&e.target===e.currentTarget&&(i[t].inEdit=!0)},i.$watch("allowDates",function(e){e||(i.valueType=r())}),i.$watch("enforceDates",function(e){e&&(i.valueType=r())}),i.$watch("enforceString",function(e){e&&(i.valueType=r())});function n(e){a(function(){o(t[0].querySelectorAll("[cam-widget-inline-field][value='"+e+".value']")).find(".view-value").click()})}function r(){return i.options?"option":i.enforceDates?"datetime":"text"}i.$watch("value",function(e){return e&&e.inEdit&&n("value")},!0),i.$watch("name",function(e){return e&&e.inEdit&&n("name")},!0),i.$watch("type",function(e){return e&&e.inEdit&&n("type")},!0),i.$watch("operator",function(e){return e&&!e.value&&1===e.values.length&&(e.value=e.values[0]),e&&e.inEdit&&n("operator")},!0)},template:'\x3c!-- CE # camunda-commons-ui/lib/widgets/search-pill/search-pill.html --\x3e\r\n<span class="search-label"\r\n ng-class="{\'invalid\': !valid}">\r\n <a href\r\n ng-click="onDelete()"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ deleteText | translate }}"\r\n class="remove-search glyphicon glyphicon-remove">\r\n </a>\r\n\r\n <span cam-widget-inline-field\r\n class="set-value type-field"\r\n tabindex="0"\r\n ng-keydown="onKeydown($event, \'type\')"\r\n type="option"\r\n options="type.values"\r\n change="changeSearch(\'type\', varValue, $event)"\r\n on-start-editing="clearEditTrigger(\'type\')"\r\n value="type.value">\r\n <span ng-if="type.tooltip"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ type.tooltip | translate }}">\r\n {{ type.value.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="!type.tooltip">\r\n {{ type.value.value | camQueryComponent }}\r\n </span>\r\n </span>\r\n\r\n <span ng-if="extended">:</span>\r\n\r\n <span ng-if="extended && potentialNames.length <= 0 && !!name.value.value"\r\n cam-widget-inline-field\r\n class="set-value name-field"\r\n type="text"\r\n tabindex="0"\r\n ng-keydown="onKeydown($event,\'name\')"\r\n change="changeSearch(\'name\', varValue, $event)"\r\n on-start-editing="clearEditTrigger(\'name\')"\r\n value="name.value.value">\r\n <span ng-if="name.tooltip"\r\n tooltip-placement="top"\r\n uib-tooltip="{{name.tooltip | translate }}">\r\n {{ name.value.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="!name.tooltip">\r\n {{ name.value.value | camQueryComponent }}\r\n </span>\r\n </span>\r\n\r\n <span ng-if="extended && potentialNames.length <= 0 && !name.value.value"\r\n cam-widget-inline-field\r\n class="set-value name-field"\r\n tabindex="0"\r\n ng-keydown="onKeydown($event, \'name\')"\r\n type="text"\r\n change="changeSearch(\'name\', varValue, $event)"\r\n on-start-editing="clearEditTrigger(\'name\')"\r\n value="name.value">\r\n <span ng-if="name.tooltip"\r\n tooltip-placement="top"\r\n uib-tooltip="{{name.tooltip | translate }}">\r\n {{ name.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="!name.tooltip">\r\n {{ name.value | camQueryComponent }}\r\n </span>\r\n </span>\r\n\r\n <span ng-if="extended && potentialNames.length > 0"\r\n cam-widget-inline-field\r\n class="set-value name-field"\r\n tabindex="0"\r\n ng-keydown="onKeydown($event, \'name\')"\r\n type="option"\r\n options="potentialNames"\r\n allow-non-options="true"\r\n disable-autoselect="disableTypeaheadAutoselect"\r\n change="changeSearch(\'name\', varValue, $event)"\r\n on-start-editing="clearEditTrigger(\'name\')"\r\n value="name.value">\r\n <span ng-if="extended && name.tooltip && name.value.key">\r\n {{ name.value.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="extended && name.tooltip && !name.value.key">\r\n {{ name.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="extended && !name.tooltip && name.value.key">\r\n {{ name.value.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="extended && !name.tooltip && !name.value.key">\r\n {{ name.value | camQueryComponent }}\r\n </span>\r\n </span>\r\n\r\n <span ng-if="!basic && operator.values.length > 1"\r\n cam-widget-inline-field\r\n class="set-value operator-field"\r\n tabindex="0"\r\n ng-keydown="onKeydown($event, \'operator\')"\r\n type="option"\r\n options="operator.values"\r\n change="changeSearch(\'operator\', varValue, $event)"\r\n on-start-editing="clearEditTrigger(\'operator\')"\r\n value="operator.value">\r\n <span ng-if="operator.tooltip"\r\n tooltip-placement="top"\r\n uib-tooltip="{{operator.tooltip | translate }}">\r\n {{ operator.value.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="!operator.tooltip">\r\n {{ operator.value.value | camQueryComponent }}\r\n </span>\r\n </span>\r\n\r\n <span ng-if="operator.values.length < 2 && operator.tooltip"\r\n tooltip-placement="top"\r\n uib-tooltip="{{operator.tooltip | translate }}"\r\n class="operator-field">\r\n {{ operator.value.value | camQueryComponent }}\r\n </span>\r\n <span ng-if="operator.values.length < 2 && !operator.tooltip"\r\n class="operator-field">\r\n {{ operator.value.value | camQueryComponent }}\r\n </span>\r\n\r\n <span cam-widget-inline-field\r\n class="set-value value-field"\r\n tabindex="0"\r\n ng-keydown="onKeydown($event, \'value\')"\r\n type="{{ valueType }}"\r\n change="changeSearch(\'value\', varValue, $event)"\r\n on-start-editing="clearEditTrigger(\'value\')"\r\n ng-if="!basic"\r\n options="options"\r\n allow-non-options="allowNonOptions"\r\n value="value.value"\r\n flexible="{{ allowDates }}">\r\n <span class="visible-whitespace"\r\n ng-if="value.tooltip"\r\n tooltip-placement="top"\r\n uib-tooltip="{{value.tooltip | translate }}">{{ value.value | camQueryComponent }}</span>\r\n <span class="visible-whitespace"\r\n ng-if="!value.tooltip">{{ value.value | camQueryComponent }}</span>\r\n </span>\r\n</span>\r\n\x3c!-- CE / camunda-commons-ui/lib/widgets/search-pill/search-pill.html --\x3e\r\n'}}]},{jquery:"jquery"}],66:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace");var M=e("../../../../camunda-bpm-sdk-js/vendor/angular"),D=M.copy,I=e("jquery"),i=/(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:.(\d\d\d)| )?$/;function R(e){return e&&"string"==typeof e&&e.match(i)?"date":r(e)}function N(e){return e.type.value&&(!e.extended||e.name.value)&&(e.basic||e.operator.value)&&(e.basic||e.value.value)&&("date"===R(e.value.value)||!e.enforceDates)}function P(e){if(e.value){var t=e.values.map(function(e){return e.key}).indexOf(e.value.key);e.value=e.values[-1===t?0:t]}else e.value=e.values[0]}var $=!1;t.exports=["$timeout","$location","search","widgetLocalConf","$translate",function(S,C,A,_,T){return{restrict:"A",scope:{types:"=camWidgetSearchTypes",translations:"=camWidgetSearchTranslations",operators:"=camWidgetSearchOperators",searches:"=?camWidgetSearchSearches",validSearches:"=?camWidgetSearchValidSearches",storageGroup:"=?camWidgetSearchStorageGroup",searchId:"@camWidgetSearchId",total:"=?camWidgetSearchTotal",matchAny:"=?camWidgetSearchMatchAny",disableTypeaheadAutoselect:"=?camWidgetSearchDisableTypeaheadAutoselect"},link:function(s,l){M.forEach(s.translations,function(e,t){s.translations[t]=T.instant(e)}),s.types&&s.types.map(function(e){return e.id.value=T.instant(e.id.value),e.operators&&(e.operators=e.operators.map(function(e){return e.value=T.instant(e.value),e})),e}),M.forEach(s.operators,function(e){M.forEach(e,function(e){e.value=T.instant(e.value)})}),s.isMatchAnyActive=void 0!==s.matchAny,s.caseHandeling={},s.switchMatchType=function(){s.isMatchAnyActive&&(s.matchAny=!s.matchAny)},s.focused=!1;var e=M.element(l).find("form")[0];e.addEventListener("focus",function(){S(function(){s.focused=!0})},!0),e.addEventListener("blur",function(){S(function(){s.focused=!1})},!0);function a(){return(s.searches||[]).some(function(e){return e.caseOptions})}var n;s.searchHasVariableQuery=a(),S(function(){var e=document.createElement("input");e.setAttribute("type","text"),e.setAttribute("placeholder","set");var t=!1;e.addEventListener("input",function(){t=!0}),document.body.appendChild(e),e.focus(),document.body.removeChild(e),S(function(){n(t)})},0,!(n=function(e){if(e){var t=document.createElement("div");t.textContent=s.translations.inputPlaceholder+":",l[0].insertBefore(t,l[0].firstChild),s.$root.$broadcast("plugin:search:change")}else l[0].querySelector("input.main-field").setAttribute("placeholder",s.translations.inputPlaceholder)})),s.searchTypes=s.types.map(function(e){return e.id}),s.getRightPadding=function(){return 400<l.width()?"125px":"12px"};function i(){var r=s.searches.map(function(e){return e.type.value.key}).reduce(function(e,t){return-1===e.indexOf(t)&&e.push(t),e},[]).map(function(e){return p(e)?p(e).groups:null}).filter(function(e){return!!e}).reduce(function(e,t){if(e){if(0===e.length)return M.copy(t);for(var n=0;n<e.length;n++)-1===t.indexOf(e[n])&&(e.splice(n,1),n--);return 0===e.length?null:e}return null},[]);return null===r?[]:0===r.length?s.searchTypes:s.searchTypes.filter(function(e){var t=p(e.key).groups;if(!t)return!0;for(var n=0;n<t.length;n++)if(-1<r.indexOf(t[n]))return!0;return!1})}function c(e,t){return e.operators||s.operators[R((n=t,e.enforceString?""+n:isNaN(n)||""===n.trim()?"true"===n||"false"!==n&&("NULL"===n?null:n):+n))];var n}function o(e){return e.map(function(n){var e=p(n.type);if(e){var t={extended:e.extended,basic:e.basic,type:{values:i(),value:i().reduce(function(e,t){return e||(t.key===n.type?t:null)},null),tooltip:s.translations.type},name:{value:n.name,tooltip:s.translations.name},options:e.options,operator:{tooltip:s.translations.operator},value:{value:n.value,tooltip:s.translations.value},allowDates:e.allowDates,enforceDates:e.enforceDates,potentialNames:e.potentialNames||[],enforceString:e.enforceString,caseOptions:e.caseOptions};return t.operator.values=c(e,t.value.value),t.operator.value=t.operator.values.reduce(function(e,t){return e||(t.key===n.operator?t:null)},null),t.valid=N(t),t}"variableNamesIgnoreCase"===n.type&&(s.caseHandeling.ignoreNames=!0),"variableValuesIgnoreCase"===n.type&&(s.caseHandeling.ignoreValues=!0)}).filter(function(e){return e})}function r(){var e=JSON.parse((C.search()||{})[d+"Query"]||"[]");return o(e)}var u=s.types.reduce(function(e,t){return e||(t.default?t:null)},null),p=function(n){return s.types.reduce(function(e,t){return e||(t.id.key===n?t:null)},null)},d=s.searchId||"search";s.searches=s.searches||[],s.searches=r(),s.validSearchesBuffer=s.searches.reduce(function(e,t){return t.valid&&e.push(t),e},[]),s.validSearches=M.copy(s.validSearchesBuffer);s.createSearch=function(e){if(e||s.inputQuery){var t=e?"":s.inputQuery;e=e&&p(e.key)||u;var n=c(e,t);s.searches.push({extended:e.extended,basic:e.basic,type:{values:i(),value:e.id,tooltip:s.translations.type},name:{value:"",inEdit:e.extended,tooltip:s.translations.name},operator:{value:n[0],values:n,tooltip:s.translations.operator},options:e.options,value:{value:t,inEdit:!e.extended&&!t,tooltip:s.translations.value},allowDates:e.allowDates,enforceDates:e.enforceDates,potentialNames:e.potentialNames,enforceString:e.enforceString,caseOptions:e.caseOptions});var r=s.searches[s.searches.length-1];r.valid=N(r),t?s.inputQuery="":S(function(){S(function(){s.inputQuery="",I(l[0].querySelector(".search-container > input")).blur()})})}},s.deleteSearch=function(e){s.searches.splice(e,1),S(function(){I(l[0].querySelector(".search-container > input")).focus()})},s.handleChange=function(e,t,n,r,i){var a,o=s.searches[e];"type"===t?(a=p(r.key),o.extended=a.extended,o.basic=a.basic,o.allowDates=a.allowDates,!o.enforceDates&&a.enforceDates&&(o.value.value=""),o.enforceDates=a.enforceDates,o.operator.values=c(a,o.value.value),P(o.operator)):"value"===t&&(e===s.searches.length-1&&S(function(){I(l[0].querySelector(".search-container > input")).focus()}),(a=p(o.type.value.key)).operators||(o.operator.values=c(a,o.value.value),P(o.operator))),o.valid=N(o),i&&13===i.keyCode&&function(e,t){var n=s.searches[e];if(!n.valid){if(n.extended&&!n.name.value&&"name"!==t)return n.name.inEdit=!0;if("value"!==t)return n.value.inEdit=!0}for(var r=1;r<s.searches.length;r++){var i=(r+e)%s.searches.length;if(!(n=s.searches[i]).valid)return n.extended&&!n.name.value?n.name.inEdit=!0:n.value.inEdit=!0}}(e,t)},s.onKeydown=function(e){-1!==[38,40,13].indexOf(e.keyCode)&&0===I(l[0].querySelectorAll('.dropdown-menu[id^="typeahead"]')).length&&S(function(){M.element(e.target).triggerHandler("input")})};function m(e){var t=[];return M.forEach(e,function(e){t.push({type:e.type.value.key,operator:e.operator.value.key,value:e.value.value,name:e.name.value})}),t}function f(){var t=s.searches;if(M.forEach(t,function(e){e.valid&&-1===s.validSearchesBuffer.indexOf(e)&&s.validSearchesBuffer.push(e)}),s.validSearchesBuffer=s.validSearchesBuffer.filter(function(e){return e.valid&&-1!==t.indexOf(e)}),s.searchHasVariableQuery){if(s.caseHandeling.ignoreNames){var e=M.copy(h);e.type.value.key="variableNamesIgnoreCase",s.validSearchesBuffer.push(e)}if(s.caseHandeling.ignoreValues){var n=M.copy(h);n.type.value.key="variableValuesIgnoreCase",s.validSearchesBuffer.push(n)}}var r,i={};i[d+"Query"]=JSON.stringify(m(s.validSearchesBuffer)),s.isMatchAnyActive&&(s.matchAny&&!C.search().hasOwnProperty(d+"OrQuery")?r=C.url()+"&"+d+"OrQuery":s.matchAny||(r=C.url().replace("&"+d+"OrQuery","")),C.url(r),C.replace()),s.searchHasVariableQuery=a(),$=!0,A.updateSilently(i,!C.search()[d+"Query"]),S(function(){$=!1}),g()}var t,h={basic:!0,type:{values:i(),value:{},tooltip:""},name:{value:"",inEdit:"",tooltip:""},operator:{value:{key:"eq",value:"="},values:[],tooltip:s.translations.operator},value:{value:"",inEdit:!1,tooltip:s.translations.value},valid:!1};s.$watch("[searches, matchAny, caseHandeling]",f,!0),s.$on("$locationChangeSuccess",function(){if(s.matchAny=C.search().hasOwnProperty(d+"OrQuery"),!$&&C.search().hasOwnProperty(d+"Query")){var t=r(),e=s.validSearchesBuffer.filter(function(e){return e.valid});M.equals(t,e)||(M.forEach(s.searches,function(e){e.valid||t.push(e)}),s.validSearchesBuffer=[],s.searches=t)}}),s.$watch("validSearchesBuffer",function(){S.cancel(t),t=S(function(){s.validSearches=M.copy(s.validSearchesBuffer)})},!0);var g=function(){var e=i();s.dropdownTypes=e;for(var t=0;t<s.searches.length;t++)s.searches[t].type.values=e};s.$watch("types",function(){s.searchTypes=s.types.map(function(e){return e.id}),s.dropdownTypes=i(),M.forEach(s.searches,function(e){e.potentialNames=p(e.type.value.key)?p(e.type.value.key).potentialNames||[]:null})},!0),s.dropdownTypes=i();for(var v=s.searchCriteriaStorage={group:null,nameInput:"",available:{}},y={},b=s.storageGroup?[s.storageGroup]:s.types.map(function(e){return e.groups}).reduce(function(e,t){return(e||[]).concat(t)}).filter(function(e){return e}),x=[],w=0;w<b.length;w++)x.indexOf(b[w])<0&&b[w]&&x.push(b[w]);function E(){if(v.available={},v.group)return s.isSearchCriteriaStorageGrouped=!1,void(v.available=D(y[v.group]));s.isSearchCriteriaStorageGrouped=!0,x.forEach(function(e){v.available[e]=D(y[e]||{})})}function k(e,t){return t?{group:t,name:e}:v.group?{group:v.group,name:e}:void 0}!x.length&&s.storageGroup&&x.push(s.storageGroup),x.forEach(function(e){y[e]={}}),s.$watch("validSearches",function(){if(s.storageGroup)return v.group=s.storageGroup,void E();var n=null;s.validSearches.forEach(function(e){if(!n){var t=e.type.value.key;s.types.forEach(function(e){n||e.id.key===t&&1===(e.groups||[]).length&&(n=(e.groups||[])[0])})}}),v.group=n,E()},!0),y=_.get("searchCriteria",y),E(),s.$watch("storageGroup",function(){s.storageGroup&&x.indexOf(s.storageGroup)<0||(v.group=s.storageGroup,E())}),s.storedCriteriaInputClick=function(e){e.stopPropagation()},s.searchCriteriaInputKeydown=function(e){if(13===e.keyCode)return s.storedCriteriaSaveClick(e)},s.hasCriteriaSets=function(){if(1<x.length){for(var e in v.available)if(0<Object.keys(v.available[e]).length)return!0;return!1}return!!Object.keys(v.available||{}).length},s.loadCriteriaSet=function(e,t,n){s.caseHandeling={ignoreNames:!1,ignoreValues:!1};var r=k(t,n);if(r){var i=y[r.group][r.name];s.searches=o(i),s.isMatchAnyActive&&(s.matchAny=i[i.length-1].matchAny),f()}},s.dropCriteriaSet=function(e,t,n){e.stopPropagation();var r=k(t,n);r&&(delete y[r.group][r.name],_.set("searchCriteria",y),E())},s.storedCriteriaSaveClick=function(e){e.stopPropagation();var t=v.nameInput;t&&(y[v.group]=y[v.group]||{},y[v.group][t]=m(s.validSearchesBuffer),s.isMatchAnyActive&&y[v.group][t].push({matchAny:s.matchAny}),y[v.group][t].push({caseHandeling:M.copy(s.caseHandeling)}),_.set("searchCriteria",y),E(),v.nameInput="")}},template:'<div class="search-field">\r\n <form ng-submit="createSearch()"\r\n ng-class="{\'has-search\': searches.length, \'focused\': focused}">\r\n\r\n <div class="form-container search-container"\r\n ng-style="{\'padding-right\': getRightPadding()}"\r\n ng-class="{\'has-icon\': !!mode}">\r\n <div ng-if="isMatchAnyActive && searches.length > 0"\r\n class="match-any">\r\n <button ng-click="switchMatchType()"\r\n type="button"\r\n class="btn btn-default btn-xs"\r\n ng-disabled="searches.length < 2">\r\n {{ (matchAny ? \'CAM_WIDGET_SEARCH_MATCH_TYPE_ANY\' : \'CAM_WIDGET_SEARCH_MATCH_TYPE_ALL\') | translate }}\r\n </button>\r\n <span ng-disabled="searches.length < 2">{{ \'CAM_WIDGET_SEARCH_MATCH_TYPE\' | translate }}</span>\r\n </div>\r\n <span ng-if="mode" class="search-type glyphicon" ng-class="\'glyphicon-\' + mode"></span>\r\n <span cam-widget-search-pill\r\n ng-repeat="search in searches"\r\n extended="search.extended"\r\n basic="search.basic"\r\n allow-dates="search.allowDates"\r\n enforce-dates="search.enforceDates"\r\n valid="search.valid"\r\n name="search.name"\r\n potential-names="search.potentialNames"\r\n type="search.type"\r\n operator="search.operator"\r\n value="search.value"\r\n options="search.options"\r\n allow-non-values="search.allowNonValues"\r\n invalid-text="{{ translations.invalid }}"\r\n delete-text="{{ translations.deleteSearch }}"\r\n on-change="handleChange($index, field, before, value, $event)"\r\n on-delete="deleteSearch($index)"\r\n disable-typeahead-autoselect="disableTypeaheadAutoselect"></span>\r\n\r\n <input class="form-control main-field"\r\n type="text"\r\n ng-model="inputQuery"\r\n ng-keydown="onKeydown($event)"\r\n uib-typeahead="type as type.value for type in dropdownTypes | filter:$viewValue:instantTypeahead"\r\n typeahead-on-select="createSearch($item)"\r\n instant-typeahead />\r\n\r\n <div class="ignore-case" ng-if="searchHasVariableQuery">\r\n {{\'CAM_WIDGET_SEARCH_VARIABLE_CASE_ATTRIBUTE\' | translate }}\r\n <label>\r\n <input type="checkbox" ng-model="caseHandeling.ignoreNames" >\r\n {{\'CAM_WIDGET_SEARCH_VARIABLE_CASE_NAME\' | translate}}\r\n </label>\r\n <label>\r\n <input type="checkbox" ng-model="caseHandeling.ignoreValues">\r\n {{\'CAM_WIDGET_SEARCH_VARIABLE_CASE_VALUE\' | translate}}.\r\n </label>\r\n </div>\r\n\r\n\r\n\r\n </div>\r\n </form>\r\n <div class="controls">\r\n <span ng-if="total"\r\n class="total-results"\r\n uib-tooltip="{{ \'CAM_WIDGET_SEARCH_TOTAL_NUMBER_RESULTS\' | translate }}">\r\n {{total}}\r\n </span>\r\n\r\n <span cam-share-link></span>\r\n\r\n <span class="dropdown stored-criteria" uib-dropdown>\r\n <button ng-disabled="!searches.length && !hasCriteriaSets()"\r\n class="dropdown-toggle btn btn-default" uib-dropdown-toggle>\r\n <span class="glyphicon glyphicon-floppy-disk"></span>\r\n <span class="caret"></span>\r\n </button>\r\n\r\n <ul class="dropdown-menu dropdown-menu-right"\r\n ng-if="searchCriteriaStorage.group || hasCriteriaSets()" uib-dropdown-menu>\r\n <li ng-if="searchCriteriaStorage.group">\r\n <div class="input-group input-group-sm">\r\n <input type="text"\r\n class="form-control"\r\n ng-model="searchCriteriaStorage.nameInput"\r\n ng-click="storedCriteriaInputClick($event)"\r\n ng-keydown="searchCriteriaInputKeydown($event)" />\r\n <span class="input-group-btn">\r\n <button ng-disabled="!searchCriteriaStorage.nameInput"\r\n ng-click="storedCriteriaSaveClick($event)"\r\n class="btn btn-default"\r\n type="button">\r\n <span class="glyphicon glyphicon-ok"></span>\r\n </button>\r\n </span>\r\n </div>\r\n </li>\r\n\r\n <li role="separator"\r\n class="divider"\r\n ng-if="searchCriteriaStorage.group && hasCriteriaSets()"></li>\r\n\r\n <li class="stored-criteria-set"\r\n ng-if="hasCriteriaSets() && !isSearchCriteriaStorageGrouped"\r\n ng-repeat="(key, value) in searchCriteriaStorage.available">\r\n <div>\r\n <a class="glyphicon glyphicon-remove-sign"\r\n ng-click="dropCriteriaSet($event, key)"\r\n href></a>\r\n\r\n <a href\r\n ng-click="loadCriteriaSet($event, key)">{{ key }}</a>\r\n </div>\r\n </li>\r\n\r\n <li class="stored-criteria-set"\r\n ng-if="hasCriteriaSets() && isSearchCriteriaStorageGrouped"\r\n ng-repeat="(group, values) in searchCriteriaStorage.available">\r\n <div ng-repeat="(name, value) in values">\r\n <a class="glyphicon glyphicon-remove-sign"\r\n ng-click="dropCriteriaSet($event, name, group)"\r\n href></a>\r\n\r\n <a href\r\n ng-click="loadCriteriaSet($event, name, group)">{{ group }} : {{ name }}</a>\r\n </div>\r\n </li>\r\n\r\n </ul>\r\n </span>\r\n </div>\r\n</div>\r\n'}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"core-js/modules/es.string.replace":188,jquery:"jquery"}],67:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("../../../../camunda-bpm-sdk-js/vendor/angular"),a=e("../../../../camunda-bpm-sdk-js/lib/forms/type-util"),o={};function s(e){return(e=e||new Date).toISOString().slice(0,-5)}o.camundaFormattedDate=s,o.templateDialog='\x3c!-- # CE - camunda-commons-ui/lib/widgets/variable/cam-widget-variable-dialog.html --\x3e\r\n<div class="modal-header">\r\n <h3 translate="CAM_WIDGET_VARIABLE_DIALOG_INSPECT"\r\n translate-values="{name: variable.name}"></h3>\r\n</div>\r\n\r\n<div class="modal-body">\r\n <div ng-if="readonly"\r\n class="form-group">\r\n <label>{{ \'CAM_WIDGET_VARIABLE_DIALOG_LABEL_OBJECT_TYPE\' | translate }}</label>\r\n <code class="form-control-static"\r\n cam-widget-clipboard="variable.valueInfo.objectTypeName">{{ variable.valueInfo.objectTypeName }}</code>\r\n </div>\r\n\r\n <div ng-if="readonly"\r\n class="form-group">\r\n <label>{{ \'CAM_WIDGET_VARIABLE_DIALOG_LABEL_SERIALIZATION\' | translate }}</label>\r\n <code class="form-control-static"\r\n cam-widget-clipboard="variable.valueInfo.serializationDataFormat">{{ variable.valueInfo.serializationDataFormat }}</code>\r\n </div>\r\n\r\n <div ng-if="!readonly"\r\n class="form-group">\r\n <label for="object-type-name"\r\n cam-widget-clipboard="variable.valueInfo.objectTypeName">{{ \'CAM_WIDGET_VARIABLE_DIALOG_LABEL_OBJECT_TYPE\' | translate }}</label>\r\n <input type="text"\r\n id="object-type-name"\r\n class="form-control"\r\n ng-model="variable.valueInfo.objectTypeName" />\r\n </div>\r\n\r\n <div ng-if="!readonly"\r\n class="form-group">\r\n <label for="serialization-data-format"\r\n cam-widget-clipboard="variable.valueInfo.serializationDataFormat">{{ \'CAM_WIDGET_VARIABLE_DIALOG_LABEL_SERIALIZATION\' | translate }}</label>\r\n <input type="text"\r\n id="serialization-data-format"\r\n class="form-control"\r\n ng-model="variable.valueInfo.serializationDataFormat" />\r\n </div>\r\n\r\n <div class="form-group">\r\n <label for="serialized-value"\r\n cam-widget-clipboard="variable.value"\r\n no-tooltip\r\n ng-class="{hovered: hovered === \'var-value\'}">{{ \'CAM_WIDGET_VARIABLE_DIALOG_LABEL_SERIALIZED_VALUE\' | translate }}</label>\r\n <textarea ng-model="variable.value"\r\n id="serialized-value"\r\n rows="10"\r\n class="form-control"\r\n ng-readonly="readonly"\r\n ng-mouseenter="toggleHover(\'var-value\')"\r\n ng-mouseleave="toggleHover()"></textarea>\r\n </div>\r\n</div>\r\n\r\n<div class="modal-footer">\r\n <button class="btn btn-default"\r\n ng-click="$dismiss(\'close\')">\r\n {{ \'CAM_WIDGET_VARIABLE_DIALOG_BTN_CLOSE\' | translate }}\r\n </button>\r\n\r\n <button class="btn btn-primary"\r\n ng-if="!readonly"\r\n ng-readonly="!hasChanged(\'serialized\')"\r\n ng-click="$close(variable)">\r\n {{ \'CAM_WIDGET_VARIABLE_DIALOG_BTN_CHANGE\' | translate }}\r\n </button>\r\n</div>\r\n\x3c!-- / CE - camunda-commons-ui/lib/widgets/variable/cam-widget-variable-dialog.html --\x3e\r\n',o.templateStringDialog='\x3c!-- # CE - camunda-commons-ui/lib/widgets/variable/cam-widget-variable-dialog.html --\x3e\r\n<div class="modal-header">\r\n <h3 translate="CAM_WIDGET_STRING_DIALOG_TITLE"\r\n translate-values="{name: variable.name}"></h3>\r\n</div>\r\n\r\n<div class="modal-body">\r\n <div class="form-group">\r\n <label for="value"\r\n cam-widget-clipboard="variable.value"\r\n no-tooltip\r\n ng-class="{hovered: hovered === \'var-value\'}">\r\n {{ \'CAM_WIDGET_STRING_DIALOG_LABEL_VALUE\' | translate }}\r\n </label>\r\n <textarea ng-model="variable.value"\r\n id="value"\r\n rows="10"\r\n class="form-control cam-string-variable"\r\n ng-readonly="readonly"\r\n ng-mouseenter="toggleHover(\'var-value\')"\r\n ng-mouseleave="toggleHover()"></textarea>\r\n </div>\r\n</div>\r\n\r\n<div class="modal-footer">\r\n <button class="btn btn-default"\r\n ng-click="$dismiss(\'close\')">\r\n {{ \'CAM_WIDGET_STRING_DIALOG_LABEL_CLOSE\' | translate }}\r\n </button>\r\n</div>\r\n\x3c!-- / CE - camunda-commons-ui/lib/widgets/variable/cam-widget-variable-dialog.html --\x3e\r\n',o.modalCtrl=["$scope","variable","readonly",function(t,e,n){t.hovered=!1,t.toggleHover=function(e){t.hovered=e},t.variable=e,t.readonly=n;var r=i.copy(e);t.hasChanged=function(){return r.valueInfo=r.valueInfo||{},e.valueInfo=e.valueInfo||{},r.value!==e.value||r.valueInfo.serializationDataFormat!==e.valueInfo.serializationDataFormat||r.valueInfo.objectTypeName!==e.valueInfo.objectTypeName}}],o.typeUtils=a,o.types=["Boolean","Bytes","File","Date","Double","Integer","Long","Null","Object","Short","String","Json","Xml"],o.defaultValues={Boolean:!1,Bytes:null,File:null,Date:s(),Double:0,Integer:0,Long:0,Null:"",Short:0,String:"",Object:{},Json:"",Xml:""},o.isPrimitive=function(t){return function(e){return!e&&!t.variable||(!(e=e||t.variable.type)||0<=["Boolean","Date","Double","Integer","Long","Short","String"].indexOf(e))}},o.isBinary=function(t){return function(e){return!(!e&&!t.variable)&&(!!(e=e||t.variable.type)&&0<=["Bytes","File"].indexOf(e))}},o.useCheckbox=function(t){return function(e){return!(!e&&!t.variable)&&"Boolean"===(e=e||t.variable.type)}},o.validate=function(t){return function(){var e;t.variable.name&&t.variable.type?null===t.variable.value||-1<["String","Object","Null"].indexOf(t.variable.type)?t.valid=!0:t.valid=a.isType(t.variable.value,t.variable.type):t.valid=!1,!t.valid||t.variable.type&&null!==t.variable.value&&t.isPrimitive(t.variable.type)&&(e="Boolean"!==t.variable.type?a.convertToType(t.variable.value,t.variable.type):!!t.variable.value&&"false"!==t.variable.value,r(t.variable.value)!==r(e)&&(t.variable.value=e))}},t.exports=o},{"../../../../camunda-bpm-sdk-js/lib/forms/type-util":1,"../../../../camunda-bpm-sdk-js/vendor/angular":2}],68:[function(e,t,n){"use strict";var a=e("../../../../camunda-bpm-sdk-js/lib/forms/type-util");t.exports=[function(){return{require:"ngModel",link:function(e,t,n,r){function i(e){var t=n.camVariableValidator;return-1!==["String","Object","Null"].indexOf(t)?r.$setValidity("camVariableValidator",!0):r.$setValidity("camVariableValidator",!!a.isType(e,t)),e}r.$parsers.unshift(i),r.$formatters.push(i),n.$observe("camVariableValidator",function(){return i(r.$viewValue)})}}}]},{"../../../../camunda-bpm-sdk-js/lib/forms/type-util":1}],69:[function(e,t,n){"use strict";var o=e("../../../../camunda-bpm-sdk-js/vendor/angular"),s=e("./cam-variable-utils"),l=s.types,c=s.modalCtrl;t.exports=["$uibModal",function(n){return{template:'<div ng-if="display && isShown(\'type\')"\r\n class="type">{{ variable.type }}</div>\r\n<div ng-if="display && isShown(\'name\')"\r\n class="name">{{ variable.name }}</div>\r\n<div ng-if="display && isShown(\'value\') && isPrimitive()"\r\n ng-class="{null: isNull()}"\r\n class="value">\r\n <span ng-if="isNull()"\r\n class="null-symbol">{{ \'CAM_WIDGET_VARIABLE_NULL\' | translate }}</span>\r\n {{ (variable.value === null ? \'\' : variable.value.toString()) }}\r\n</div>\r\n<div ng-if="display && isShown(\'value\') && variable.type === \'Object\'"\r\n ng-class="{null: isNull()}"\r\n class="value">\r\n <a ng-click="editVariableValue()">\r\n {{ variable.valueInfo.objectTypeName }}\r\n </a>\r\n</div>\r\n\r\n\r\n<div ng-if="!display"\r\n class="input-group editing">\r\n <div ng-if="isShown(\'type\')"\r\n class="input-group-btn type">\r\n <select class="form-control"\r\n ng-model="variable.type"\r\n ng-options="variableType for variableType in variableTypes track by variableType"\r\n ng-disabled="isDisabled(\'type\')"\r\n required>\r\n </select>\r\n </div>\x3c!-- /btn-group --\x3e\r\n\r\n <input ng-if="isShown(\'name\')"\r\n type="text"\r\n class="form-control name"\r\n ng-model="variable.name"\r\n placeholder="varName"\r\n ng-disabled="isDisabled(\'name\')"\r\n required />\r\n\r\n <div ng-if="isShown(\'value\') && !isNull()"\r\n class="value-wrapper input-group"\r\n ng-class="{checkbox: useCheckbox()}">\r\n <div ng-if="variable.type !== \'Null\'"\r\n class="input-group-btn">\r\n <a ng-click="setNull()"\r\n class="btn btn-default set-null"\r\n ng-disabled="isDisabled(\'value\')"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLE_SET_VALUE_NULL\' | translate }}">\r\n <span class="glyphicon glyphicon-remove"></span>\r\n </a>\r\n </div>\r\n\r\n <input ng-if="isPrimitive() && !useCheckbox()"\r\n type="text"\r\n class="form-control value"\r\n ng-model="variable.value"\r\n ng-disabled="isDisabled(\'value\')"\r\n placeholder="{{ \'CAM_WIDGET_VARIABLE_VALUE\' | translate }}"\r\n cam-variable-validator="{{variable.type}}" />\r\n\r\n <input ng-if="useCheckbox()"\r\n type="checkbox"\r\n class="value"\r\n ng-model="variable.value"\r\n ng-disabled="isDisabled(\'value\')"\r\n placeholder="{{ \'CAM_WIDGET_VARIABLE_VALUE\' | translate }}"\r\n cam-variable-validator="{{variable.type}}" />\r\n\r\n <div ng-if="variable.type === \'Object\'"\r\n class="value form-control-static">\r\n <a ng-click="editVariableValue()" ng-disabled="isDisabled(\'value\')">\r\n {{ (variable.valueInfo.objectTypeName || \'CAM_WIDGET_VARIABLE_UNDEFINED\') | translate }}\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <div ng-if="variable.type !== \'Null\' && isShown(\'value\') && isNull()"\r\n ng-click="setNonNull()"\r\n class="value-wrapper value null-value btn btn-default"\r\n ng-disabled="isDisabled(\'value\')"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLE_RESET\' | translate }}">\r\n <span class="null-symbol">{{ \'CAM_WIDGET_VARIABLE_NULL\' | translate }}</span>\r\n </div>\r\n\r\n <div ng-if="variable.type === \'Null\'"\r\n ng-disabled="isDisabled(\'value\')"\r\n class="value-wrapper value btn no-click null-value">\r\n <span class="null-symbol">{{ \'CAM_WIDGET_VARIABLE_NULL\' | translate }}</span>\r\n </div>\r\n</div>\r\n',scope:{variable:"=camVariable",display:"@?",shown:"=?",disabled:"=?",hiddenTypes:"=?"},link:function(r,i){r.variableTypes=l.filter(function(e){return!Array.isArray(r.hiddenTypes)||!r.hiddenTypes.length||-1===r.hiddenTypes.indexOf(e)});var e=s.defaultValues;r.isPrimitive=s.isPrimitive(r),r.useCheckbox=s.useCheckbox(r),r.isShown=function(e){return!Array.isArray(r.shown)||!r.shown.length||-1<r.shown.indexOf(e)},r.isDisabled=function(e){return!(!Array.isArray(r.disabled)||!r.disabled.length)&&-1<r.disabled.indexOf(e)},r.shownClasses=function(){return Array.isArray(r.shown)&&r.shown.length?r.shown.map(function(e){return"show-"+e}).join(" "):""},r.$watch("shown",function(){i.removeClass("show-type show-name show-value").addClass(r.shownClasses())});var t=s.validate(r);r.valid=!0,r.$watch("variable.value",t),r.$watch("variable.name",t),r.$watch("variable.type",t),t();var a=r.variable.value;r.$watch("variable.type",function(e,t){"Boolean"===e?null!==r.variable.value&&(a=r.variable.value,r.variable.value="false"!==r.variable.value&&!!r.variable.value):"Boolean"===t&&(r.variable.value=a);var n=i[0].classList;t&&n.remove("var-type-"+t.toLowerCase()),e&&n.add("var-type-"+e.toLowerCase())}),r.isNull=function(){return null===r.variable.value},r.setNonNull=function(){r.variable.value=a||e[r.variable.type]},r.setNull=function(){a=r.variable.value,r.variable.value=null},r.editVariableValue=function(){n.open({template:s.templateDialog,controller:c,windowClass:"cam-widget-variable-dialog",resolve:{variable:function(){return o.copy(r.variable)},readonly:function(){return r.display}}}).result.then(function(e){r.variable.value=e.value,r.variable.valueInfo=e.valueInfo}).catch(o.noop)}}}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"./cam-variable-utils":67}],70:[function(e,t,n){"use strict";var a=e("jquery");t.exports=["$compile",function(i){return{template:"<div></div>",scope:{info:"=",headerName:"="},link:function(e,t){var n=e.info.additions[e.headerName]||{};for(var r in n.scopeVariables=n.scopeVariables||{},n.scopeVariables)e[r]=n.scopeVariables[r];e.variable=e.info.variable,t.html("<div>"+n.html+"</div>"),i(a("div",t)[0])(e)}}}]},{jquery:"jquery"}],71:[function(e,t,n){"use strict";function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=e("../../../../camunda-bpm-sdk-js/vendor/angular"),d=e("../variable/cam-variable-utils"),m=d.typeUtils,f={variable:{name:null,type:null,value:null,valueInfo:{}},additions:{}};function h(t){return{then:function(e){e(p.copy(t.variable))}}}t.exports=["$uibModal","$translate",function(l,c){return{template:'<table class="cam-table">\r\n <thead>\r\n <tr>\r\n <td ng-repeat="column in headers" ng-class="col-{{column.class}}">\r\n <span class="{{column.class}}">{{column.content}}</span>\r\n <a ng-if="column.sortable === true"\r\n ng-click="changeOrder(column.request)">\r\n <span class="glyphicon" ng-class="orderClass(column.request)"></span>\r\n </a>\r\n </td>\r\n <td class="actions"\r\n ng-if="editable.length">\r\n Actions\r\n </td>\r\n </tr>\r\n </thead>\r\n\r\n <tbody>\r\n <tr ng-repeat="(v, info) in variables"\r\n ng-class="rowClasses(info, v)">\r\n <td ng-repeat="headerClass in headerClasses track by $index"\r\n ng-init="variable=info.variable"\r\n ng-class="colClasses(info, headerClass, v)"\r\n ng-switch on="headerClass">\r\n \x3c!-- ................................................................................... --\x3e\r\n <div ng-switch-when="type"\r\n ng-if="!isEditable(\'type\', info)">\r\n {{ variable.type }}\r\n </div>\r\n <select class="form-control"\r\n ng-switch-when="type"\r\n ng-if="isEditable(\'type\', info)"\r\n ng-model="variable.type"\r\n ng-options="variableType for variableType in variableTypes track by variableType"\r\n required>\r\n </select>\r\n \x3c!-- ................................................................................... --\x3e\r\n\r\n\r\n \x3c!-- ................................................................................... --\x3e\r\n <div ng-switch-when="name"\r\n ng-if="!isEditable(\'name\', info)">\r\n <span cam-widget-clipboard="variable.name">{{ variable.name }}</span>\r\n </div>\r\n\r\n <input class="form-control"\r\n ng-switch-when="name"\r\n ng-model="variable.name"\r\n ng-if="isEditable(\'name\', info)" />\r\n \x3c!-- ................................................................................... --\x3e\r\n\r\n\r\n \x3c!-- ................................................................................... --\x3e\r\n <a ng-switch-when="value"\r\n ng-if="!isEditable(\'value\', info) && isBinary(variable.type)"\r\n ng-href="{{ downloadLink(info) }}"\r\n download="{{ variable.name }}-data">\r\n Download\r\n </a>\r\n\r\n <div ng-switch-when="value"\r\n ng-if="!isEditable(\'value\', info) && variable.type === \'Object\'"\r\n class="read-only value-wrapper">\r\n <span ng-if="variable.valueInfo.objectTypeName"\r\n cam-widget-clipboard="variable.valueInfo.objectTypeName">\r\n <a ng-click="editVariableValue(v)"\r\n href>{{ variable.valueInfo.objectTypeName }}</a>\r\n </span>\r\n <a ng-if="!variable.valueInfo.objectTypeName"\r\n ng-click="editVariableValue(v)"\r\n href><undefined></a>\r\n </div>\r\n <div ng-switch-when="value"\r\n ng-if="!isEditable(\'value\', info) && (variable.type === \'Json\' || variable.type === \'Xml\')"\r\n class="read-only value-wrapper">\r\n <span cam-widget-clipboard="variable.value">\r\n <a ng-click="editVariableValue(v)"\r\n href>{{ variable.value }}</a>\r\n </span>\r\n </div>\r\n\r\n <div ng-switch-when="value"\r\n ng-if="!isEditable(\'value\', info) && variable.type === \'String\'"\r\n class="read-only value-wrapper">\r\n <span cam-widget-clipboard="variable.value">\r\n <span ng-click="readStringVar(v)">{{ variable.value }}</span>\r\n </span>\r\n </div>\r\n\r\n <div ng-switch-when="value"\r\n ng-if="!isEditable(\'value\', info) && !hasEditDialog(variable.type)"\r\n class="read-only value-wrapper">\r\n <span ng-if="variable.type !== \'Bytes\' && variable.type !== \'Date\'"\r\n cam-widget-clipboard="variable.value">{{ variable.value }}</span>\r\n <span ng-if="variable.type === \'Bytes\'">{{ variable.value }}</span>\r\n <span ng-if="variable.type === \'Date\'"\r\n cam-widget-clipboard="variable.value">{{ variable.value | camDate }}</span>\r\n </div>\r\n\r\n <div class="value-wrapper"\r\n ng-switch-when="value"\r\n ng-if="isEditable(\'value\', info)">\r\n <a ng-click="setNull(v)"\r\n ng-if="!isNull(v)"\r\n class="set-null"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_TOOLTIP_SET_NULL\' | translate }}">\r\n <span class="glyphicon glyphicon-remove"></span>\r\n </a>\r\n\r\n <input ng-if="isPrimitive(variable.type) && !useCheckbox(variable.type) && !isNull(v)"\r\n type="text"\r\n class="form-control"\r\n ng-model="variable.value"\r\n placeholder="{{ \'CAM_WIDGET_VARIABLES_TABLE_PLACEHOLDER_VALUE\' | translate }}" />\r\n\r\n <input ng-if="useCheckbox(variable.type)"\r\n type="checkbox"\r\n ng-model="variable.value"\r\n placeholder="{{ \'CAM_WIDGET_VARIABLES_TABLE_PLACEHOLDER_VALUE\' | translate }}" />\r\n\r\n <a ng-if="variable.type === \'Object\' && !isNull(v)"\r\n ng-click="editVariableValue(v)">\r\n {{ variable.valueInfo.objectTypeName || \'<undefined>\' }}\r\n </a>\r\n\r\n <a ng-if="(variable.type === \'Json\' || variable.type === \'Xml\') && !isNull(v)"\r\n ng-click="editVariableValue(v)">\r\n {{ variable.value || \'<undefined>\' }}\r\n </a>\r\n\r\n <a ng-if="variable.type !== \'Null\' && !isBinary(variable.type) && isNull(v)"\r\n ng-click="setNonNull(v)"\r\n class="null-value"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_TOOLTIP_DEFAULT_VALUE\' | translate }}">\r\n <span class="null-symbol"><null></span>\r\n </a>\r\n\r\n <a ng-if="isBinary(variable.type)"\r\n ng-click="uploadVariable(v)"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_TOOLTIP_UPLOAD\' | translate }}">\r\n Upload\r\n </a>\r\n\r\n <span ng-if="variable.type === \'Null\'"\r\n class="null-value">\r\n <span class="null-symbol">{{ \'CAM_WIDGET_VARIABLES_TABLE_NULL\' | translate }}</span>\r\n </span>\r\n </div>\x3c!-- / value-wrapper --\x3e\r\n \x3c!-- ................................................................................... --\x3e\r\n\r\n\r\n <div ng-switch-default\r\n cam-render-var-template\r\n info="info"\r\n header-name="headerClass">\r\n </div>\r\n </td>\r\n\r\n <td class="actions"\r\n ng-if="editable.length">\r\n <div ng-if="!info.editMode"\r\n class="btn-group">\r\n <button class="btn btn-xs btn-primary"\r\n ng-disabled="!canEditVariable(info, v)"\r\n ng-click="info.editMode = true"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_EDIT_VARIABLE\' | translate }}">\r\n <span class="glyphicon glyphicon-pencil"></span>\r\n </button>\r\n <button class="btn btn-xs btn-default"\r\n ng-disabled="!canEditVariable(info, v)"\r\n ng-click="deleteVariable(v)"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_DELETE_VARIABLE\' | translate }}">\r\n <span class="glyphicon glyphicon glyphicon-trash"></span>\r\n </button>\r\n </div>\r\n\r\n <div ng-if="info.editMode"\r\n class="btn-group">\r\n <button class="btn btn-xs btn-primary"\r\n ng-disabled="!info.valid || !info.changed"\r\n ng-click="saveVariable(v)"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_SAVE_VARIABLE\' | translate }}">\r\n <span class="glyphicon glyphicon-ok"></span>\r\n </button>\r\n <button class="btn btn-xs btn-default"\r\n ng-click="info.editMode = false"\r\n tooltip-append-to-body="true"\r\n uib-tooltip="{{ \'CAM_WIDGET_VARIABLES_TABLE_REVERT_VARIABLE\' | translate }}">\r\n <span class="glyphicon glyphicon-remove"></span>\r\n </button>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n',scope:{variables:"=?camVariables",headers:"=?camHeaders",editable:"=?camEditable",isVariableEditable:"=?",deleteVar:"=?onDelete",saveVar:"=?onSave",editVar:"=?onEdit",downloadVar:"=?onDownload",uploadVar:"=?onUpload",onSortChange:"&",defaultSort:"=?"},link:function(i){var a=[];function r(e){return(i.variables[e]||{}).variable}i.headerClasses=[],i.headers.forEach(function(e){i.headerClasses.push(e.class)}),i.editable=i.editable||i.headerClasses,i.variableTypes=p.copy(d.types),i.defaultValues=d.defaultValues,i.isPrimitive=d.isPrimitive(i),i.isBinary=d.isBinary(i),i.useCheckbox=d.useCheckbox(i),["uploadVar","deleteVar","saveVar"].forEach(function(e){i[e]=p.isFunction(i[e])?i[e]:h}),i.sortObj=i.defaultSort,i.orderClass=function(e){return"glyphicon-"+{none:"minus",desc:"chevron-down",asc:"chevron-up"}[(e=e||i.sortObj.sortBy)===i.sortObj.sortBy?i.sortObj.sortOrder:"none"]},i.changeOrder=function(e){i.sortObj.sortBy=e,i.sortObj.sortOrder="desc"===i.sortObj.sortOrder?"asc":"desc",i.onSortChange({sortObj:i.sortObj})};function n(e,t,n){return{template:t,controller:d.modalCtrl,windowClass:"cam-widget-variable-dialog",resolve:{variable:function(){return p.copy(r(e))},readonly:n}}}function o(e,t){var n;e.variable.name&&e.variable.type?null===e.variable.value||-1<["String","Object","Null"].indexOf(e.variable.type)?e.valid=!0:e.valid=m.isType(e.variable.value,e.variable.type):e.valid=!1,!e.valid||e.variable.type&&null!==e.variable.value&&i.isPrimitive(e.variable.type)&&(n="Boolean"!==e.variable.type?m.convertToType(e.variable.value,e.variable.type):!!e.variable.value&&"false"!==e.variable.value,u(e.variable.value)!==u(n)&&(e.variable.value=n));e.changed=function(e){if(!i.variables||!i.variables[e]||!i.variables[e]._copy)return!1;var t=r(e),n=i.variables[e]._copy;return!t||!n||t.name!==n.name||t.type!==n.type||t.value!==n.value}(t)}function e(){(i.variables||[]).forEach(function(r,e){r.valid=!0;var t="variables["+e+"].variable";function n(){o(r,e)}i.$watch(t+".value",n),i.$watch(t+".name",n),i.$watch(t+".type",n),i.$watch("variables["+e+"].editMode",function(e,t){var n;p.isUndefined(e)||(!0===e?r._copy=(n=r.variable,JSON.parse(JSON.stringify(n))):!1===e&&!0===t&&r._copy&&(r.variable.type=r._copy.type,r.variable.name=r._copy.name,r.variable.value=r._copy.value,delete r._copy))}),o(r,e),a[e]=r.variable.value})}i.editVar=p.isFunction(i.editVar)?i.editVar:function(e,t){return l.open(n(t,d.templateDialog,function(){return!i.isEditable("value",i.variables[t])})).result},i.readStringVar=p.isFunction(i.readStringVar)?i.readStringVar:function(e){return l.open(n(e,d.templateStringDialog,function(){return!0})).result},i.downloadLink=p.isFunction(i.downloadVar)?i.downloadVar:function(e){return"/camunda/api/engine/engine/default/variable-instance/"+e.variable.id+"/data"},i.$watch("variables",e),e(),i.canEditVariable=p.isFunction(i.isVariableEditable)?i.isVariableEditable:function(){return!0},i.isEditable=function(e,t){return t.editMode&&-1<i.editable.indexOf(e)},i.hasEditDialog=function(e){return e&&-1<["object","string","json","xml"].indexOf(e.toLowerCase())},i.rowClasses=function(e){return[e.editMode?"editing":null,e.valid?null:"ng-invalid",e.valid?null:"ng-invalid-cam-variable-validator"]},i.colClasses=function(e,t){return[i.isEditable(t,e)?"editable":null,"type-"+(e.variable.type||"").toLowerCase(),"col-"+t]},i.isNull=function(e){return null===i.variables[e].variable.value},i.setNull=function(e){var t=r(e);a[e]=t.value,t.value=null},i.setNonNull=function(e){var t=r(e);t.value=a[e]||i.defaultValues[t.type]},i.editVariableValue=function(t){var e=i.variables[t];i.editVar(e,t).then(function(e){r(t).value=e.value,r(t).valueInfo=e.valueInfo}).catch(p.noop)},i.addVariable=function(){i.variables.push(p.copy(f))},i.deleteVariable=function(t){var n=i.variables[t];l.open({controller:["$scope",function(e){e.body=c.instant("CAM_WIDGET_VARIABLES_TABLE_DIALOGUE",{name:n.variable.name}),e.submit=function(){e.$close(),s(t)},e.dismiss=function(){e.$close()}}],template:'<div class="modal-header">\r\n <h3 class="modal-title">{{ \'CAM_WIDGET_VARIABLES_TABLE_DELETE\' | translate }}</h3>\r\n</div>\r\n\r\n<div class="modal-body">\r\n {{ body }}\r\n</div>\r\n\r\n<div class="modal-footer">\r\n <button ng-click="dismiss()"\r\n class="btn btn-default">\r\n {{ \'CAM_WIDGET_VARIABLES_TABLE_ABORT\' | translate }}\r\n </button>\r\n <button ng-click="submit()"\r\n class="btn btn-primary"\r\n ng-hide="status === \'DONE\'">\r\n \r\n {{ \'CAM_WIDGET_VARIABLES_TABLE_DELETE\' | translate }} \r\n </button> \r\n</div>\r\n\r\n'}).result.catch(p.noop)};var s=function(e){var t=i.variables[e];i.deleteVar(t,e).then(function(){i.variables.splice(i.variables.indexOf(t),1)},function(){})};i.saveVariable=function(e){var t=i.variables[e];t.editMode=!1,i.saveVar(t,e).then(function(e){t.variable.name=e.name,t.variable.type=e.type,t.variable.value=e.value,t.variable.valueInfo=e.valueInfo,delete t._copy},function(){t.editMode=!0})},i.uploadVariable=function(e){var t=i.variables[e];i.uploadVar(t,e).then(function(){delete t._copy,t.editMode=!1},function(){t.editMode=!1})}}}}]},{"../../../../camunda-bpm-sdk-js/vendor/angular":2,"../variable/cam-variable-utils":67}],72:[function(e,t,n){"use strict";t.exports=e("../../camunda-bpm-sdk-js/vendor/angular")},{"../../camunda-bpm-sdk-js/vendor/angular":2}],73:[function(e,t,n){"use strict";t.exports=e("lodash")},{lodash:"lodash"}],74:[function(e,t,n){"use strict";t.exports=e("../../camunda-bpm-sdk-js/vendor/moment")},{"../../camunda-bpm-sdk-js/vendor/moment":3}],75:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(m,f,h,e){var g=e.has("$animateCss")?e.get("$animateCss"):null;return{link:function(t,n,e){var r=h(e.expanding),i=h(e.expanded),a=h(e.collapsing),o=h(e.collapsed),s=!1,l={},c={};function u(e){return s?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function p(){n.removeClass("collapsing").addClass("collapse").css(l),i(t)}function d(){n.css(c),n.removeClass("collapsing").addClass("collapse"),o(t)}!function(){c=(s=!!("horizontal"in e))?(l={width:""},{width:"0"}):(l={height:""},{height:"0"});t.$eval(e.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(l)}(),t.$watch(e.uibCollapse,function(e){e?function(){if(!n.hasClass("collapse")&&!n.hasClass("in"))return d();f.resolve(a(t)).then(function(){n.css(u(n[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),g?g(n,{removeClass:"in",to:c}).start().finally(d):m.removeClass(n,"in",{to:c}).then(d)},angular.noop)}():n.hasClass("collapse")&&n.hasClass("in")||f.resolve(r(t)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),g?g(n,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:u(n[0])}).start().finally(p):m.addClass(n,"in",{css:{overflow:"hidden"},to:u(n[0])}).then(p)},angular.noop)})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(e,t,n){n.$observe("disabled",function(e){n.$set("tabindex",e?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,n,r){this.groups=[],this.closeOthers=function(t){(angular.isDefined(n.closeOthers)?e.$eval(n.closeOthers):r.closeOthers)&&angular.forEach(this.groups,function(e){e!==t&&(e.isOpen=!1)})},this.addGroup=function(t){var n=this;this.groups.push(t),t.$on("$destroy",function(e){n.removeGroup(t)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(t,n,e,r){n.addClass("panel"),r.addGroup(t),t.openClass=e.openClass||"panel-open",t.panelClass=e.panelClass||"panel-default",t.$watch("isOpen",function(e){n.toggleClass(t.openClass,!!e),e&&r.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)};var i="accordiongroup-"+t.$id+"-"+Math.floor(1e4*Math.random());t.headingId=i+"-tab",t.panelId=i+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,n,t,r){e.$watch(function(){return r[t.uibAccordionTransclude]},function(e){if(e){var t=angular.element(n[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));t.html(""),t.append(e)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(e,t,n,r,i){e.closeable=!!n.close,t.addClass("alert"),n.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var a=angular.isDefined(n.dismissOnTimeout)?r(n.dismissOnTimeout)(e.$parent):null;a&&i(function(){e.close()},parseInt(a,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(s){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,r,e){var i=e[0],a=e[1],o=s(r.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(i.activeClass,angular.equals(a.$modelValue,t.$eval(r.uibBtnRadio)))},n.on(i.toggleEvent,function(){if(!r.disabled){var e=n.hasClass(i.activeClass);e&&!angular.isDefined(r.uncheckable)||t.$apply(function(){a.$setViewValue(e?null:t.$eval(r.uibBtnRadio)),a.$render()})}}),r.uibUncheckable&&t.$watch(o,function(e){r.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,e,t,r){var i=r[0],a=r[1];function o(){return s(t.btnCheckboxTrue,!0)}function s(e,t){return angular.isDefined(e)?n.$eval(e):t}e.find("input").css({display:"none"}),a.$render=function(){e.toggleClass(i.activeClass,angular.equals(a.$modelValue,o()))},e.on(i.toggleEvent,function(){t.disabled||n.$apply(function(){a.$setViewValue(e.hasClass(i.activeClass)?s(t.btnCheckboxFalse,!1):o()),a.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(i,a,t,e,o){var n,r,s=this,l=s.slides=i.slides=[],c="uib-slideDirection",u=i.active,p=!1;function d(e){for(var t=0;t<l.length;t++)l[t].slide.active=t===e}function m(e){for(var t=0;t<l.length;t++)if(l[t].slide===e)return t}function f(){n&&(t.cancel(n),n=null)}function h(){f();var e=+i.interval;!isNaN(e)&&0<e&&(n=t(g,e))}function g(){var e=+i.interval;r&&!isNaN(e)&&0<e&&l.length?i.next():i.pause()}a.addClass("carousel"),s.addSlide=function(e,t){l.push({slide:e,element:t}),l.sort(function(e,t){return e.slide.index-t.slide.index}),e.index!==i.active&&(1!==l.length||angular.isNumber(i.active))||(i.$currentTransition&&(i.$currentTransition=null),u=e.index,i.active=e.index,d(u),s.select(l[m(e)]),1===l.length&&i.play())},s.getCurrentIndex=function(){for(var e=0;e<l.length;e++)if(l[e].slide.index===u)return e},s.next=i.next=function(){var e=(s.getCurrentIndex()+1)%l.length;if(0!=e||!i.noWrap())return s.select(l[e],"next");i.pause()},s.prev=i.prev=function(){var e=s.getCurrentIndex()-1<0?l.length-1:s.getCurrentIndex()-1;if(!i.noWrap()||e!=l.length-1)return s.select(l[e],"prev");i.pause()},s.removeSlide=function(e){var t=m(e);l.splice(t,1),0<l.length&&u===t?t>=l.length?(u=l.length-1,d(i.active=u),s.select(l[l.length-1])):(u=t,d(i.active=u),s.select(l[t])):t<u&&(u--,i.active=u),0===l.length&&(u=null,i.active=null)},s.select=i.select=function(e,t){var n=m(e.slide);void 0===t&&(t=n>s.getCurrentIndex()?"next":"prev"),e.slide.index===u||i.$currentTransition||function(e,t,n){if(p)return;if(angular.extend(e,{direction:n}),angular.extend(l[u].slide||{},{direction:n}),o.enabled(a)&&!i.$currentTransition&&l[t].element&&1<s.slides.length){l[t].element.data(c,e.direction);var r=s.getCurrentIndex();angular.isNumber(r)&&l[r].element&&l[r].element.data(c,e.direction),i.$currentTransition=!0,o.on("addClass",l[t].element,function(e,t){"close"===t&&(i.$currentTransition=null,o.off("addClass",e))})}i.active=e.index,u=e.index,d(t),h()}(e.slide,n,t)},i.indexOfSlide=function(e){return+e.slide.index},i.isActive=function(e){return i.active===e.slide.index},i.isPrevDisabled=function(){return 0===i.active&&i.noWrap()},i.isNextDisabled=function(){return i.active===l.length-1&&i.noWrap()},i.pause=function(){i.noPause||(r=!1,f())},i.play=function(){r||(r=!0,h())},a.on("mouseenter",i.pause),a.on("mouseleave",i.play),i.$on("$destroy",function(){p=!0,f()}),i.$watch("noTransition",function(e){o.enabled(a,!e)}),i.$watch("interval",h),i.$watchCollection("slides",function(e){e.length||(i.$currentTransition=null)}),i.$watch("active",function(e){if(angular.isNumber(e)&&u!==e){for(var t=0;t<l.length;t++)if(l[t].slide.index===e){e=t;break}l[e]&&(d(e),s.select(l[e]),u=e)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(i){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(e,t,n,r){t.addClass("item"),r.addSlide(e,t),e.$on("$destroy",function(){r.removeSlide(e)}),e.$watch("active",function(e){i[e?"addClass":"removeClass"](t,"active")})}}}]).animation(".item",["$animateCss",function(o){var s="uib-slideDirection";function l(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(e,t,n){if("active"===t){var r=e.data(s),i="next"===r?"left":"right",a=l.bind(this,e,i+" "+r,n);return e.addClass(r),o(e,{addClass:i}).start().done(a),function(){0}}n()},beforeRemoveClass:function(e,t,n){if("active"===t){var r="next"===e.data(s)?"left":"right",i=l.bind(this,e,r,n);return o(e,{addClass:r}).start().done(i),function(){0}}n()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(h,g,n,v,t){var y,b,x=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function r(e){return t(b,{key:e},!0)[0]}function a(e,t,n){return function(){return e.substr(t+1,n-t-1)}}function o(e,t){for(var n=e.substr(t),r=0;r<b.length;r++)if(new RegExp("^"+b[r].key).test(n)){var i=b[r];return{endIdx:t+i.key.length,parser:i.formatter}}return{endIdx:t+1,parser:function(){return n.charAt(0)}}}function s(e){return parseInt(e,10)}function i(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function l(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function c(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return l(e,n*(i(t,r)-r))}this.init=function(){y=g.id,this.parsers={},this.formatters={},b=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=e<69?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:g.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=g.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:g.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=g.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:g.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:g.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:g.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],r=t[2],i=t[3];this.hours+=s(n+r),this.minutes+=s(n+i)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:g.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:g.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:g.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:g.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}],1<=angular.version.major&&4<angular.version.minor&&b.push({key:"LLLL",regex:g.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(e){this.month=g.DATETIME_FORMATS.STANDALONEMONTH.indexOf(e)},formatter:function(e){return n(e,"LLLL")}})},this.init(),this.getParser=function(e){var t=r(e);return t&&t.apply||null},this.overrideParser=function(e,t){var n=r(e);n&&angular.isFunction(t)&&(this.parsers={},n.apply=t)}.bind(this),this.filter=function(n,e){return angular.isDate(n)&&!isNaN(n)&&e?(e=g.DATETIME_FORMATS[e]||e,g.id!==y&&this.init(),this.formatters[e]||(this.formatters[e]=function(e){for(var t,n,r=[],i=0;i<e.length;)if(angular.isNumber(n)){if("'"===e.charAt(i))(i+1>=e.length||"'"!==e.charAt(i+1))&&(r.push(a(e,n,i)),n=null);else if(i===e.length)for(;n<e.length;)t=o(e,n),r.push(t),n=t.endIdx;i++}else"'"!==e.charAt(i)?(t=o(e,i),r.push(t.parser),i=t.endIdx):(n=i,i++);return r}(e)),this.formatters[e].reduce(function(e,t){return e+t(n)},"")):""},this.parse=function(e,t,n){if(!angular.isString(e)||!t)return e;t=(t=g.DATETIME_FORMATS[t]||t).replace(x,"\\$&"),g.id!==y&&this.init(),this.parsers[t]||(this.parsers[t]=function(i){var a=[],o=i.split(""),e=i.indexOf("'");if(-1<e){var t=!1;i=i.split("");for(var n=e;n<i.length;n++)t?("'"===i[n]&&(n+1<i.length&&"'"===i[n+1]?(i[n+1]="$",o[n+1]=""):(o[n]="",t=!1)),i[n]="$"):"'"===i[n]&&(i[n]="$",t=!(o[n]=""));i=i.join("")}return angular.forEach(b,function(e){var t=i.indexOf(e.key);if(-1<t){i=i.split(""),o[t]="("+e.regex+")",i[t]="$";for(var n=t+1,r=t+e.key.length;n<r;n++)o[n]="",i[n]="$";i=i.join(""),a.push({index:t,key:e.key,apply:e.apply,matcher:e.regex})}}),{regex:new RegExp("^"+o.join("")+"$"),map:v(a,"index")}}(t));var r=this.parsers[t],i=r.regex,a=r.map,o=e.match(i),s=!1;if(o&&o.length){var l,c;l=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds(),milliseconds:n.getMilliseconds()}:(n&&h.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var u=1,p=o.length;u<p;u++){var d=a[u-1];"Z"===d.matcher&&(s=!0),d.apply&&d.apply.call(l,o[u])}var m=s?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,f=s?Date.prototype.setUTCHours:Date.prototype.setHours;return function(e,t,n){if(n<1)return;if(1===t&&28<n)return 29===n&&(e%4==0&&e%100!=0||e%400==0);return 3!==t&&5!==t&&8!==t&&10!==t||n<31}(l.year,l.month,l.date)&&(!angular.isDate(n)||isNaN(n.getTime())||s?(c=new Date(0),m.call(c,l.year,l.month,l.date),f.call(c,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0)):(c=new Date(n),m.call(c,l.year,l.month,l.date),f.call(c,l.hours,l.minutes,l.seconds,l.milliseconds))),c}},this.toTimezone=function(e,t){return e&&t?c(e,t):e},this.fromTimezone=function(e,t){return e&&t?c(e,t,!0):e},this.timezoneToOffset=i,this.addDateMinutes=l,this.convertTimezoneToLocal=c}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(u){var o=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,p=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(e,t){var i=[],s=[],l={},n=t.uibIsClass.match(o),c=n[2],r=n[1].split(",");return function(n,e,t){i.push(n),s.push({scope:n,element:e}),r.forEach(function(e,t){!function(e,t){var n=e.match(p),r=t.$eval(n[1]),i=n[2],a=l[e];if(!a){var o=function(t){var n=null;s.some(function(e){if(e.scope.$eval(c)===t)return n=e,!0}),a.lastActivated!==n&&(a.lastActivated&&u.removeClass(a.lastActivated.element,r),n&&u.addClass(n.element,r),a.lastActivated=n)};l[e]=a={lastActivated:null,scope:t,watchFn:o,compareWithExp:i,watcher:t.$watch(i,o)}}a.watchFn(t.$eval(i))}(e,n)}),n.$on("$destroy",a)};function a(e){var t=e.targetScope,n=i.indexOf(t);if(i.splice(n,1),s.splice(n,1),i.length){var r=i[0];angular.forEach(l,function(e){e.scope===t&&(e.watcher=r.$watch(e.compareWithExp,e.watchFn),e.scope=r)})}else l={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(o,e,t,n,r,i,a,s,l,c,u,p){var d=this,m={$setViewValue:angular.noop},f={},h=[];e.addClass("uib-datepicker"),t.$set("role","application"),o.datepickerOptions||(o.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":o[t]=o.datepickerOptions[t]||angular.noop;break;case"datepickerMode":o.datepickerMode=angular.isDefined(o.datepickerOptions.datepickerMode)?o.datepickerOptions.datepickerMode:l.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[t]=angular.isDefined(o.datepickerOptions[t])?r(o.datepickerOptions[t])(o.$parent):l[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[t]=angular.isDefined(o.datepickerOptions[t])?o.datepickerOptions[t]:l[t];break;case"startingDay":angular.isDefined(o.datepickerOptions.startingDay)?d.startingDay=o.datepickerOptions.startingDay:angular.isNumber(l.startingDay)?d.startingDay=l.startingDay:d.startingDay=(i.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":o.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?d[t]=p.fromTimezone(new Date(e),f.getOption("timezone")):(c&&a.warn("Literal date support has been deprecated, please switch to date object usage"),d[t]=new Date(s(e,"medium"))):d[t]=l[t]?p.fromTimezone(new Date(l[t]),f.getOption("timezone")):null,d.refreshView()});break;case"maxMode":case"minMode":o.datepickerOptions[t]?o.$watch(function(){return o.datepickerOptions[t]},function(e){d[t]=o[t]=angular.isDefined(e)?e:o.datepickerOptions[t],("minMode"===t&&d.modes.indexOf(o.datepickerOptions.datepickerMode)<d.modes.indexOf(d[t])||"maxMode"===t&&d.modes.indexOf(o.datepickerOptions.datepickerMode)>d.modes.indexOf(d[t]))&&(o.datepickerMode=d[t],o.datepickerOptions.datepickerMode=d[t])}):d[t]=o[t]=l[t]||null}}),o.uniqueId="datepicker-"+o.$id+"-"+Math.floor(1e4*Math.random()),o.disabled=angular.isDefined(t.disabled)||!1,angular.isDefined(t.ngDisabled)&&h.push(o.$parent.$watch(t.ngDisabled,function(e){o.disabled=e,d.refreshView()})),o.isActive=function(e){return 0===d.compare(e.date,d.activeDate)&&(o.activeDateId=e.uid,!0)},this.init=function(e){f=function(e){var t;if(angular.version.minor<6)(t=e.$options||o.datepickerOptions.ngModelOptions||l.ngModelOptions||{}).getOption=function(e){return t[e]};else{var n=e.$options.getOption("timezone")||(o.datepickerOptions.ngModelOptions?o.datepickerOptions.ngModelOptions.timezone:null)||(l.ngModelOptions?l.ngModelOptions.timezone:null);t=e.$options.createChild(l.ngModelOptions).createChild(o.datepickerOptions.ngModelOptions).createChild(e.$options).createChild({timezone:n})}return t}(m=e),o.datepickerOptions.initDate?(d.activeDate=p.fromTimezone(o.datepickerOptions.initDate,f.getOption("timezone"))||new Date,o.$watch("datepickerOptions.initDate",function(e){e&&(m.$isEmpty(m.$modelValue)||m.$invalid)&&(d.activeDate=p.fromTimezone(e,f.getOption("timezone")),d.refreshView())})):d.activeDate=new Date;var t=m.$modelValue?new Date(m.$modelValue):new Date;this.activeDate=isNaN(t)?p.fromTimezone(new Date,f.getOption("timezone")):p.fromTimezone(t,f.getOption("timezone")),m.$render=function(){d.render()}},this.render=function(){if(m.$viewValue){var e=new Date(m.$viewValue);!isNaN(e)?this.activeDate=p.fromTimezone(e,f.getOption("timezone")):u||a.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){o.selectedDt=null,this._refreshView(),o.activeDt&&(o.activeDateId=o.activeDt.uid);var e=m.$viewValue?new Date(m.$viewValue):null;e=p.fromTimezone(e,f.getOption("timezone")),m.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=m.$viewValue?new Date(m.$viewValue):null;n=p.fromTimezone(n,f.getOption("timezone"));var r=new Date;r=p.fromTimezone(r,f.getOption("timezone"));var i=this.compare(e,r),a={date:e,label:p.filter(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),past:i<0,current:0===i,future:0<i,customClass:this.customClass(e)||null};return n&&0===this.compare(e,n)&&(o.selectedDt=a),d.activeDate&&0===this.compare(a.date,d.activeDate)&&(o.activeDt=a),a},this.isDisabled=function(e){return o.disabled||this.minDate&&this.compare(e,this.minDate)<0||this.maxDate&&0<this.compare(e,this.maxDate)||o.dateDisabled&&o.dateDisabled({date:e,mode:o.datepickerMode})},this.customClass=function(e){return o.customClass({date:e,mode:o.datepickerMode})},this.split=function(e,t){for(var n=[];0<e.length;)n.push(e.splice(0,t));return n},o.select=function(e){if(o.datepickerMode===d.minMode){var t=m.$viewValue?p.fromTimezone(new Date(m.$viewValue),f.getOption("timezone")):new Date(0,0,0,0,0,0,0);t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t=p.toTimezone(t,f.getOption("timezone")),m.$setViewValue(t),m.$render()}else d.activeDate=e,g(d.modes[d.modes.indexOf(o.datepickerMode)-1]),o.$emit("uib:datepicker.mode");o.$broadcast("uib:datepicker.focus")},o.move=function(e){var t=d.activeDate.getFullYear()+e*(d.step.years||0),n=d.activeDate.getMonth()+e*(d.step.months||0);d.activeDate.setFullYear(t,n,1),d.refreshView()},o.toggleMode=function(e){e=e||1,o.datepickerMode===d.maxMode&&1===e||o.datepickerMode===d.minMode&&-1===e||(g(d.modes[d.modes.indexOf(o.datepickerMode)+e]),o.$emit("uib:datepicker.mode"))},o.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function g(e){o.datepickerMode=e,o.datepickerOptions.datepickerMode=e}o.$on("uib:datepicker.focus",function(){d.element[0].focus()}),o.keydown=function(e){var t=o.keys[e.which];if(t&&!e.shiftKey&&!e.altKey&&!o.disabled)if(e.preventDefault(),d.shortcutPropagation||e.stopPropagation(),"enter"===t||"space"===t){if(d.isDisabled(d.activeDate))return;o.select(d.activeDate)}else!e.ctrlKey||"up"!==t&&"down"!==t?(d.handleKeyDown(t,e),d.refreshView()):o.toggleMode("up"===t?1:-1)},e.on("keydown",function(e){o.$apply(function(){o.keydown(e)})}),o.$on("$destroy",function(){for(;h.length;)h.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(d,e,m){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function i(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?n[t]:29}function f(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}this.step={months:1},this.element=e,this.init=function(e){angular.extend(e,this),d.showWeeks=e.showWeeks,e.refreshView()},this.getDates=function(e,t){for(var n,r=new Array(t),i=new Date(e),a=0;a<t;)n=new Date(i),r[a++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){var e=this.activeDate.getFullYear(),t=this.activeDate.getMonth(),n=new Date(this.activeDate);n.setFullYear(e,t,1);var r=this.startingDay-n.getDay(),i=0<r?7-r:-r,a=new Date(n);0<i&&a.setDate(1-i);for(var o=this.getDates(a,42),s=0;s<42;s++)o[s]=angular.extend(this.createDateObject(o[s],this.formatDay),{secondary:o[s].getMonth()!==t,uid:d.uniqueId+"-"+s});d.labels=new Array(7);for(var l=0;l<7;l++)d.labels[l]={abbr:m(o[l].date,this.formatDayHeader),full:m(o[l].date,"EEEE")};if(d.title=m(this.activeDate,this.formatDayTitle),d.rows=this.split(o,7),d.showWeeks){d.weekNumbers=[];for(var c=(11-this.startingDay)%7,u=d.rows.length,p=0;p<u;p++)d.weekNumbers.push(f(d.rows[p][c].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)--n;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(r,1),n=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=i(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(i,e,a){this.step={years:1},this.element=e,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var e,t=new Array(12),n=this.activeDate.getFullYear(),r=0;r<12;r++)(e=new Date(this.activeDate)).setFullYear(n,r,1),t[r]=angular.extend(this.createDateObject(e,this.formatMonth),{uid:i.uniqueId+"-"+r});i.title=a(this.activeDate,this.formatMonthTitle),i.rows=this.split(t,this.monthColumns),i.yearHeaderColspan=3<this.monthColumns?this.monthColumns-2:1},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),r=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),r.setFullYear(t.getFullYear()),n-r},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)--n;else if("up"===e)n-=this.monthColumns;else if("right"===e)n+=1;else if("down"===e)n+=this.monthColumns;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(r)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(i,e,t){var a,o;function s(e){return parseInt((e-1)/o,10)*o+1}this.element=e,this.yearpickerInit=function(){a=this.yearColumns,o=this.yearRows*a,this.step={years:o}},this._refreshView=function(){for(var e,t=new Array(o),n=0,r=s(this.activeDate.getFullYear());n<o;n++)(e=new Date(this.activeDate)).setFullYear(r+n,0,1),t[n]=angular.extend(this.createDateObject(e,this.formatYear),{uid:i.uniqueId+"-"+n});i.title=[t[0].label,t[o-1].label].join(" - "),i.rows=this.split(t,a),i.columns=a},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?--n:"up"===e?n-=a:"right"===e?n+=1:"down"===e?n+=a:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*o:"home"===e?n=s(this.activeDate.getFullYear()):"end"===e&&(n=s(this.activeDate.getFullYear())+o-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}}).directive("uibDaypicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(e,t,n,r){var i=r[0];r[1].init(i)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(e,t,n,r){var i=r[0];r[1].init(i)}}}).directive("uibYearpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(e,t,n,r){var i=r[0];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(c,f){var r,i,u={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},h={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},o=/(HTML|BODY)/;return{getRawNode:function(e){return!e.nodeName&&e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(e){var t,n=(e=this.getRawNode(e)).offsetParent||c[0].documentElement;for(;n&&n!==c[0].documentElement&&(t=n,"static"===(f.getComputedStyle(t).position||"static"));)n=n.offsetParent;return n||c[0].documentElement},scrollbarWidth:function(e){if(e){if(angular.isUndefined(i)){var t=c.find("body");t.addClass("uib-position-body-scrollbar-measure"),i=f.innerWidth-t[0].clientWidth,i=isFinite(i)?i:0,t.removeClass("uib-position-body-scrollbar-measure")}return i}if(angular.isUndefined(r)){var n=angular.element('<div class="uib-position-scrollbar-measure"></div>');c.find("body").append(n),r=n[0].offsetWidth-n[0].clientWidth,r=isFinite(r)?r:0,n.remove()}return r},scrollbarPadding:function(e){e=this.getRawNode(e);var t=f.getComputedStyle(e),n=this.parseStyle(t.paddingRight),r=this.parseStyle(t.paddingBottom),i=this.scrollParent(e,!1,!0),a=this.scrollbarWidth(o.test(i.tagName));return{scrollbarWidth:a,widthOverflow:i.scrollWidth>i.clientWidth,right:n+a,originalRight:n,heightOverflow:i.scrollHeight>i.clientHeight,bottom:r+a,originalBottom:r}},isScrollable:function(e,t){e=this.getRawNode(e);var n=t?u.hidden:u.normal,r=f.getComputedStyle(e);return n.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(e,t,n){e=this.getRawNode(e);var r=t?u.hidden:u.normal,i=c[0].documentElement,a=f.getComputedStyle(e);if(n&&r.test(a.overflow+a.overflowY+a.overflowX))return e;var o="absolute"===a.position,s=e.parentElement||i;if(s===i||"fixed"===a.position)return i;for(;s.parentElement&&s!==i;){var l=f.getComputedStyle(s);if(o&&"static"!==l.position&&(o=!1),!o&&r.test(l.overflow+l.overflowY+l.overflowX))break;s=s.parentElement}return s},position:function(e,t){e=this.getRawNode(e);var n=this.offset(e);if(t){var r=f.getComputedStyle(e);n.top-=this.parseStyle(r.marginTop),n.left-=this.parseStyle(r.marginLeft)}var i=this.offsetParent(e),a={top:0,left:0};return i!==c[0].documentElement&&((a=this.offset(i)).top+=i.clientTop-i.scrollTop,a.left+=i.clientLeft-i.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:e.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:e.offsetHeight),top:Math.round(n.top-a.top),left:Math.round(n.left-a.left)}},offset:function(e){var t=(e=this.getRawNode(e)).getBoundingClientRect();return{width:Math.round(angular.isNumber(t.width)?t.width:e.offsetWidth),height:Math.round(angular.isNumber(t.height)?t.height:e.offsetHeight),top:Math.round(t.top+(f.pageYOffset||c[0].documentElement.scrollTop)),left:Math.round(t.left+(f.pageXOffset||c[0].documentElement.scrollLeft))}},viewportOffset:function(e,t,n){n=!1!==n;var r=(e=this.getRawNode(e)).getBoundingClientRect(),i={top:0,left:0,bottom:0,right:0},a=t?c[0].documentElement:this.scrollParent(e),o=a.getBoundingClientRect();if(i.top=o.top+a.clientTop,i.left=o.left+a.clientLeft,a===c[0].documentElement&&(i.top+=f.pageYOffset,i.left+=f.pageXOffset),i.bottom=i.top+a.clientHeight,i.right=i.left+a.clientWidth,n){var s=f.getComputedStyle(a);i.top+=this.parseStyle(s.paddingTop),i.bottom-=this.parseStyle(s.paddingBottom),i.left+=this.parseStyle(s.paddingLeft),i.right-=this.parseStyle(s.paddingRight)}return{top:Math.round(r.top-i.top),bottom:Math.round(i.bottom-r.bottom),left:Math.round(r.left-i.left),right:Math.round(i.right-r.right)}},parsePlacement:function(e){var t=h.auto.test(e);return t&&(e=e.replace(h.auto,"")),(e=e.split("-"))[0]=e[0]||"top",h.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",h.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,t,n,r){e=this.getRawNode(e),t=this.getRawNode(t);var i=angular.isDefined(t.offsetWidth)?t.offsetWidth:t.prop("offsetWidth"),a=angular.isDefined(t.offsetHeight)?t.offsetHeight:t.prop("offsetHeight");n=this.parsePlacement(n);var o=r?this.offset(e):this.position(e),s={top:0,left:0,placement:""};if(n[2]){var l=this.viewportOffset(e,r),c=f.getComputedStyle(t),u=i+Math.round(Math.abs(this.parseStyle(c.marginLeft)+this.parseStyle(c.marginRight))),p=a+Math.round(Math.abs(this.parseStyle(c.marginTop)+this.parseStyle(c.marginBottom)));if(n[0]="top"===n[0]&&p>l.top&&p<=l.bottom?"bottom":"bottom"===n[0]&&p>l.bottom&&p<=l.top?"top":"left"===n[0]&&u>l.left&&u<=l.right?"right":"right"===n[0]&&u>l.right&&u<=l.left?"left":n[0],n[1]="top"===n[1]&&p-o.height>l.bottom&&p-o.height<=l.top?"bottom":"bottom"===n[1]&&p-o.height>l.top&&p-o.height<=l.bottom?"top":"left"===n[1]&&u-o.width>l.right&&u-o.width<=l.left?"right":"right"===n[1]&&u-o.width>l.left&&u-o.width<=l.right?"left":n[1],"center"===n[1])if(h.vertical.test(n[0])){var d=o.width/2-i/2;l.left+d<0&&u-o.width<=l.right?n[1]="left":l.right+d<0&&u-o.width<=l.left&&(n[1]="right")}else{var m=o.height/2-p/2;l.top+m<0&&p-o.height<=l.bottom?n[1]="top":l.bottom+m<0&&p-o.height<=l.top&&(n[1]="bottom")}}switch(n[0]){case"top":s.top=o.top-a;break;case"bottom":s.top=o.top+o.height;break;case"left":s.left=o.left-i;break;case"right":s.left=o.left+o.width}switch(n[1]){case"top":s.top=o.top;break;case"bottom":s.top=o.top+o.height-a;break;case"left":s.left=o.left;break;case"right":s.left=o.left+o.width-i;break;case"center":h.vertical.test(n[0])?s.left=o.left+o.width/2-i/2:s.top=o.top+o.height/2-a/2}return s.top=Math.round(s.top),s.left=Math.round(s.left),s.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],s},adjustTop:function(e,t,n,r){if(-1!==e.indexOf("top")&&n!==r)return{top:t.top-r+"px"}},positionArrow:function(e,t){var n=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(n){var r=angular.element(n).hasClass("tooltip-inner"),i=r?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(i){var a={top:"",bottom:"",left:"",right:""};if("center"!==(t=this.parsePlacement(t))[1]){var o="border-"+t[0]+"-width",s=f.getComputedStyle(i)[o],l="border-";h.vertical.test(t[0])?l+=t[0]+"-"+t[1]:l+=t[1]+"-"+t[0],l+="-radius";var c=f.getComputedStyle(r?n:e)[l];switch(t[0]){case"top":a.bottom=r?"0":"-"+s;break;case"bottom":a.top=r?"0":"-"+s;break;case"left":a.right=r?"0":"-"+s;break;case"right":a.left=r?"0":"-"+s}a[t[1]]=c,angular.element(i).css(a)}else angular.element(i).css(a)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(i,a,r,t,n,e,o,s,l,c,u,p,d,m,f,h){var g,v,y,b,x,w,E,k,S,C,A,_,T,M=!1,D=[];function I(e){var t=p.parse(e,g,i.date);if(isNaN(t))for(var n=0;n<T.length;n++)if(t=p.parse(e,T[n],i.date),!isNaN(t))return t;return t}function R(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=I(e);if(!isNaN(t))return p.toTimezone(t,A.getOption("timezone"))}return A.getOption("allowInvalid")?e:void 0}function N(e,t){var n=e||t;return!r.ngRequired&&!n||(angular.isNumber(n)&&(n=new Date(n)),!n||(!(!angular.isDate(n)||isNaN(n))||!!angular.isString(n)&&!isNaN(I(n))))}function P(e){if(i.isOpen||!i.disabled){var t=_[0],n=a[0].contains(e.target),r=void 0!==t.contains&&t.contains(e.target);!i.isOpen||n||r||i.$apply(function(){i.isOpen=!1})}}function $(e){27===e.which&&i.isOpen?(e.preventDefault(),e.stopPropagation(),i.$apply(function(){i.isOpen=!1}),a[0].focus()):40!==e.which||i.isOpen||(e.preventDefault(),e.stopPropagation(),i.$apply(function(){i.isOpen=!0}))}function O(){if(i.isOpen){var e=angular.element(_[0].querySelector(".uib-datepicker-popup")),t=r.popupPlacement?r.popupPlacement:d.placement,n=c.positionElements(a,e,t,y);e.css({top:n.top+"px",left:n.left+"px"}),e.hasClass("uib-position-measure")&&e.removeClass("uib-position-measure")}}this.init=function(e){if(A=function(e){var t;angular.version.minor<6?(t=angular.isObject(e.$options)?e.$options:{timezone:null}).getOption=function(e){return t[e]}:t=e.$options;return t}(C=e),v=angular.isDefined(r.closeOnDateSelection)?i.$parent.$eval(r.closeOnDateSelection):d.closeOnDateSelection,y=angular.isDefined(r.datepickerAppendToBody)?i.$parent.$eval(r.datepickerAppendToBody):d.appendToBody,b=angular.isDefined(r.onOpenFocus)?i.$parent.$eval(r.onOpenFocus):d.onOpenFocus,x=angular.isDefined(r.datepickerPopupTemplateUrl)?r.datepickerPopupTemplateUrl:d.datepickerPopupTemplateUrl,w=angular.isDefined(r.datepickerTemplateUrl)?r.datepickerTemplateUrl:d.datepickerTemplateUrl,T=angular.isDefined(r.altInputFormats)?i.$parent.$eval(r.altInputFormats):d.altInputFormats,i.showButtonBar=angular.isDefined(r.showButtonBar)?i.$parent.$eval(r.showButtonBar):d.showButtonBar,d.html5Types[r.type]?(g=d.html5Types[r.type],M=!0):(g=r.uibDatepickerPopup||d.datepickerPopup,r.$observe("uibDatepickerPopup",function(e,t){var n=e||d.datepickerPopup;if(n!==g&&(g=n,C.$modelValue=null,!g))throw new Error("uibDatepickerPopup must have a date format specified.")})),!g)throw new Error("uibDatepickerPopup must have a date format specified.");if(M&&r.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(E=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":x}),(k=angular.element(E.children()[0])).attr("template-url",w),i.datepickerOptions||(i.datepickerOptions={}),M&&"month"===r.type&&(i.datepickerOptions.datepickerMode="month",i.datepickerOptions.minMode="month"),k.attr("datepicker-options","datepickerOptions"),M?C.$formatters.push(function(e){return i.date=p.fromTimezone(e,A.getOption("timezone")),e}):(C.$$parserName="date",C.$validators.date=N,C.$parsers.unshift(R),C.$formatters.push(function(e){return C.$isEmpty(e)?i.date=e:(angular.isNumber(e)&&(e=new Date(e)),i.date=p.fromTimezone(e,A.getOption("timezone")),p.filter(i.date,g))})),C.$viewChangeListeners.push(function(){i.date=I(C.$viewValue)}),a.on("keydown",$),_=t(E)(i),E.remove(),y?s.find("body").append(_):a.after(_),i.$on("$destroy",function(){for(!0===i.isOpen&&(l.$$phase||i.$apply(function(){i.isOpen=!1})),_.remove(),a.off("keydown",$),s.off("click",P),S&&S.off("scroll",O),angular.element(o).off("resize",O);D.length;)D.shift()()})},i.getText=function(e){return i[e+"Text"]||d[e+"Text"]},i.isDisabled=function(e){"today"===e&&(e=p.fromTimezone(new Date,A.getOption("timezone")));var t={};return angular.forEach(["minDate","maxDate"],function(e){i.datepickerOptions[e]?angular.isDate(i.datepickerOptions[e])?t[e]=new Date(i.datepickerOptions[e]):(h&&n.warn("Literal date support has been deprecated, please switch to date object usage"),t[e]=new Date(u(i.datepickerOptions[e],"medium"))):t[e]=null}),i.datepickerOptions&&t.minDate&&i.compare(e,t.minDate)<0||t.maxDate&&0<i.compare(e,t.maxDate)},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},i.dateSelection=function(e){i.date=e;var t=i.date?p.filter(i.date,g):null;a.val(t),C.$setViewValue(t),v&&(i.isOpen=!1,a[0].focus())},i.keydown=function(e){27===e.which&&(e.stopPropagation(),i.isOpen=!1,a[0].focus())},i.select=function(e,t){if(t.stopPropagation(),"today"===e){var n=new Date;angular.isDate(i.date)?(e=new Date(i.date)).setFullYear(n.getFullYear(),n.getMonth(),n.getDate()):(e=p.fromTimezone(n,A.getOption("timezone"))).setHours(0,0,0,0)}i.dateSelection(e)},i.close=function(e){e.stopPropagation(),i.isOpen=!1,a[0].focus()},i.disabled=angular.isDefined(r.disabled)||!1,r.ngDisabled&&D.push(i.$parent.$watch(e(r.ngDisabled),function(e){i.disabled=e})),i.$watch("isOpen",function(e){e?i.disabled?i.isOpen=!1:m(function(){O(),b&&i.$broadcast("uib:datepicker.focus"),s.on("click",P);var e=r.popupPlacement?r.popupPlacement:d.placement;y||c.parsePlacement(e)[2]?(S=S||angular.element(c.scrollParent(a)))&&S.on("scroll",O):S=null,angular.element(o).on("resize",O)},0,!1):(s.off("click",P),S&&S.off("scroll",O),angular.element(o).off("resize",O))}),i.$on("uib:datepicker.mode",function(){m(O,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,r){var i=r[0];r[1].init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(a){return function(n,r){var i;return function(){var e=this,t=Array.prototype.slice.call(arguments);i&&a.cancel(i),i=a(function(){n.apply(e,t)},r)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var i={};return{entries:function(){return Object.keys(i).map(function(e){return{key:e,value:i[e]}})},get:function(e){return i[e]},hasKey:function(e){return!!i[e]},keys:function(){return Object.keys(i)},put:function(e,t){i[e]||(i[e]=[]),i[e].push(t)},remove:function(e,t){var n=i[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1),n.length||delete i[e]}}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(a,r,e){var o=null,s=e.createNew();this.isOnlyOpen=function(n,e){var t=s.get(e);if(t&&t.reduce(function(e,t){return t.scope===n?t:e},{}))return 1===t.length;return!1},this.open=function(e,t,n){if(o||a.on("click",l),o&&o!==e&&(o.isOpen=!1),o=e,n){var r=s.get(n);if(r)-1===r.map(function(e){return e.scope}).indexOf(e)&&s.put(n,{scope:e});else s.put(n,{scope:e})}},this.close=function(n,e,t){if(o===n&&(a.off("click",l),a.off("keydown",this.keybindFilter),o=null),t){var r=s.get(t);if(r){var i=r.reduce(function(e,t){return t.scope===n?t:e},{});i&&s.remove(t,i)}}};var l=function(e){if(o&&o.isOpen&&!(e&&"disabled"===o.getAutoClose()||e&&3===e.which)){var t=o.getToggleElement();if(!(e&&t&&t[0].contains(e.target))){var n=o.getDropdownElement();e&&"outsideClick"===o.getAutoClose()&&n&&n[0].contains(e.target)||(o.focusToggleElement(),o.isOpen=!1,r.$$phase||o.$apply())}}};this.keybindFilter=function(e){if(o){var t=o.getDropdownElement(),n=o.getToggleElement(),r=t&&t[0].contains(e.target),i=n&&n[0].contains(e.target);27===e.which?(e.stopPropagation(),o.focusToggleElement(),l()):o.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&o.isOpen&&(r||i)&&(e.preventDefault(),e.stopPropagation(),o.focusDropdownEntry(e.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(g,v,y,b,e,x,w,E,k,S,C){var A,t,_=this,T=g.$new(),M=e.appendToOpenClass,D=e.openClass,I=angular.noop,R=y.onToggle?b(y.onToggle):angular.noop,n=!1,N=k.find("body");function P(){v.append(_.dropdownMenu)}v.addClass("dropdown"),this.init=function(){y.isOpen&&(t=b(y.isOpen),I=t.assign,g.$watch(t,function(e){T.isOpen=!!e})),n=angular.isDefined(y.keyboardNav)},this.toggle=function(e){return T.isOpen=arguments.length?!!e:!T.isOpen,angular.isFunction(I)&&I(T,T.isOpen),T.isOpen},this.isOpen=function(){return T.isOpen},T.getToggleElement=function(){return _.toggleElement},T.getAutoClose=function(){return y.autoClose||"always"},T.getElement=function(){return v},T.isKeynavEnabled=function(){return n},T.focusDropdownEntry=function(e){var t=_.dropdownMenu?angular.element(_.dropdownMenu).find("a"):v.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(_.selectedOption)?_.selectedOption=_.selectedOption===t.length-1?_.selectedOption:_.selectedOption+1:_.selectedOption=0;break;case 38:angular.isNumber(_.selectedOption)?_.selectedOption=0===_.selectedOption?0:_.selectedOption-1:_.selectedOption=t.length-1}t[_.selectedOption].focus()},T.getDropdownElement=function(){return _.dropdownMenu},T.focusToggleElement=function(){_.toggleElement&&_.toggleElement[0].focus()},T.$watch("isOpen",function(e,t){var n=null,r=!1;if(angular.isDefined(y.dropdownAppendTo)){var i=b(y.dropdownAppendTo)(T);i&&(n=angular.element(i))}angular.isDefined(y.dropdownAppendToBody)&&!1!==b(y.dropdownAppendToBody)(T)&&(r=!0);if(r&&!n&&(n=N),n&&_.dropdownMenu&&(e?(n.append(_.dropdownMenu),v.on("$destroy",P)):(v.off("$destroy",P),P())),n&&_.dropdownMenu){var a,o,s,l=E.positionElements(v,_.dropdownMenu,"bottom-left",!0),c=0;if(a={top:l.top+"px",display:e?"block":"none"},(o=_.dropdownMenu.hasClass("dropdown-menu-right"))?(a.left="auto",(s=E.scrollbarPadding(n)).heightOverflow&&s.scrollbarWidth&&(c=s.scrollbarWidth),a.right=window.innerWidth-c-(l.left+v.prop("offsetWidth"))+"px"):(a.left=l.left+"px",a.right="auto"),!r){var u=E.offset(n);a.top=l.top-u.top+"px",o?a.right=window.innerWidth-(l.left-u.left+v.prop("offsetWidth"))+"px":a.left=l.left-u.left+"px"}_.dropdownMenu.css(a)}var p=n||v,d=n?M:D,m=p.hasClass(d),f=x.isOnlyOpen(g,n);m===!e&&w[n?f?"removeClass":"addClass":e?"addClass":"removeClass"](p,d).then(function(){angular.isDefined(e)&&e!==t&&R(g,{open:!!e})});if(e)_.dropdownMenuTemplateUrl?C(_.dropdownMenuTemplateUrl).then(function(e){A=T.$new(),S(e.trim())(A,function(e){var t=e;_.dropdownMenu.replaceWith(t),_.dropdownMenu=t,k.on("keydown",x.keybindFilter)})}):k.on("keydown",x.keybindFilter),T.focusToggleElement(),x.open(T,v,n);else{if(x.close(T,v,n),_.dropdownMenuTemplateUrl){A&&A.$destroy();var h=angular.element('<ul class="dropdown-menu"></ul>');_.dropdownMenu.replaceWith(h),_.dropdownMenu=h}_.selectedOption=null}angular.isFunction(I)&&I(g,e)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,r){if(r&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(t,n,r,i){if(i){n.addClass("dropdown-toggle"),i.toggleElement=n;var e=function(e){e.preventDefault(),n.hasClass("disabled")||r.disabled||t.$apply(function(){i.toggle()})};n.on("click",e),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,function(e){n.attr("aria-expanded",!!e)}),t.$on("$destroy",function(){n.off("click",e)})}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var r=[];return{add:function(e,t){r.push({key:e,value:t})},get:function(e){for(var t=0;t<r.length;t++)if(e===r[t].key)return r[t]},keys:function(){for(var e=[],t=0;t<r.length;t++)e.push(r[t].key);return e},top:function(){return r[r.length-1]},remove:function(e){for(var t=-1,n=0;n<r.length;n++)if(e===r[n].key){t=n;break}return r.splice(t,1)[0]},removeTop:function(){return r.pop()},length:function(){return r.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(a,o){var s=e.resolver?a.get(e.resolver):null;return{resolve:function(e,t,n,r){if(s)return s.resolve(e,t,n,r);var i=[];return angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?i.push(o.resolve(a.invoke(e))):angular.isString(e)?i.push(o.resolve(a.get(e))):i.push(o.resolve(e))}),o.all(i).then(function(n){var r={},i=0;return angular.forEach(e,function(e,t){r[t]=n[i++]}),r})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(o,e,t){return{restrict:"A",compile:function(e,t){return e.addClass(t.backdropClass),n}};function n(r,i,a){a.modalInClass&&(o.addClass(i,a.modalInClass),r.$on(t.NOW_CLOSING_EVENT,function(e,t){var n=t();r.modalOptions.animation?o.removeClass(i,a.modalInClass).then(n):n()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,a,o,s){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(t,r,i){r.addClass(i.windowTopClass||""),t.size=i.size,t.close=function(e){var t=n.getTop();t&&t.value.backdrop&&"static"!==t.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),n.dismiss(t.key,"backdrop click"))},r.on("click",t.close),t.$isRendered=!0;var e=a.defer();t.$$postDigest(function(){e.resolve()}),e.promise.then(function(){var e=null;i.modalInClass&&(e=o(r,{addClass:i.modalInClass}).start(),t.$on(n.NOW_CLOSING_EVENT,function(e,t){var n=t();o(r,{removeClass:i.modalInClass}).start().then(n)})),a.when(e).then(function(){var e=n.getTop();if(e&&n.modalRendered(e.key),!s[0].activeElement||!r[0].contains(s[0].activeElement)){var t=r[0].querySelector("[autofocus]");t?t.focus():r[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(a){return{link:function(e,t,n,r,i){i(e.$parent,function(e){t.empty(),a.enter(e,t)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(l,e,c,u,p,o,t,n,d){var m,f,h,g="modal-open",v=n.createNew(),y=t.createNew(),s={NOW_CLOSING_EVENT:"modal.stack.now-closing"},b=0,x=null,w="data-bootstrap-modal-aria-hidden-count",E=/[A-Z]/g;function k(){for(var e=-1,t=v.keys(),n=0;n<t.length;n++)v.get(t[n]).value.backdrop&&(e=n);return-1<e&&e<b&&(e=b),e}function r(n,e){var r=v.get(n).value,i=r.appendTo;v.remove(n),(x=v.top())&&(b=parseInt(x.value.modalDomEl.attr("index"),10)),a(r.modalDomEl,r.modalScope,function(){var e=r.openedClass||g;y.remove(e,n);var t=y.hasKey(e);i.toggleClass(e,t),!t&&h&&h.heightOverflow&&h.scrollbarWidth&&(h.originalRight?i.css({paddingRight:h.originalRight+"px"}):i.css({paddingRight:""}),h=null),S(!0)},r.closedDeferred),function(){if(m&&-1===k()){a(m,f,function(){0}),f=m=void 0}}(),e&&e.focus?e.focus():i.focus&&i.focus()}function S(e){var t;0<v.length()&&(t=v.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function a(t,n,r,i){var e,a=null;return n.$broadcast(s.NOW_CLOSING_EVENT,function(){return e||(e=o.defer(),a=e.promise),function(){e.resolve()}}),o.when(a).then(function e(){if(e.done)return;e.done=!0;l.leave(t).then(function(){r&&r(),t.remove(),i&&i.resolve()});n.$destroy()})}function i(e){if(e.isDefaultPrevented())return e;var t=v.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),p.$apply(function(){s.dismiss(t.key,"escape key press")}));break;case 9:var n=s.loadFocusElementList(t),r=!1;e.shiftKey?(s.isFocusInFirstItem(e,n)||s.isModalFocused(e,t))&&(r=s.focusLastFocusableElement(n)):s.isFocusInLastItem(e,n)&&(r=s.focusFirstFocusableElement(n)),r&&(e.preventDefault(),e.stopPropagation())}}function C(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}function A(){Array.prototype.forEach.call(document.querySelectorAll("["+w+"]"),function(e){var t=parseInt(e.getAttribute(w),10)-1;e.setAttribute(w,t),t||(e.removeAttribute(w),e.removeAttribute("aria-hidden"))})}return p.$watch(k,function(e){f&&(f.index=e)}),c.on("keydown",i),p.$on("$destroy",function(){c.off("keydown",i)}),s.open=function(e,t){var n=c[0].activeElement,r=t.openedClass||g;S(!1),x=v.top(),v.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,closedDeferred:t.closedDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass,windowTopClass:t.windowTopClass,animation:t.animation,appendTo:t.appendTo}),y.put(r,e);var i,a=t.appendTo,o=k();0<=o&&!m&&((f=p.$new(!0)).modalOptions=t,f.index=o,(m=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),t.backdropClass&&m.addClass(t.backdropClass),t.animation&&m.attr("modal-animation","true"),u(m)(f),l.enter(m,a),d.isScrollable(a)&&(h=d.scrollbarPadding(a)).heightOverflow&&h.scrollbarWidth&&a.css({paddingRight:h.right+"px"})),t.component?(i=document.createElement(t.component.name.replace(E,function(e,t){return(t?"-":"")+e.toLowerCase()})),(i=angular.element(i)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):i=t.content,b=x?parseInt(x.value.modalDomEl.attr("index"),10)+1:0;var s=angular.element('<div uib-modal-window="modal-window"></div>');s.attr({class:"modal","template-url":t.windowTemplateUrl,"window-top-class":t.windowTopClass,role:"dialog","aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy,size:t.size,index:b,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(i),t.windowClass&&s.addClass(t.windowClass),t.animation&&s.attr("modal-animation","true"),a.addClass(r),t.scope&&(t.scope.$$topModalIndex=b),l.enter(u(s)(t.scope),a),v.top().value.modalDomEl=s,v.top().value.modalOpener=n,function e(t){if(!t||"BODY"===t[0].tagName)return;n(t).forEach(function(e){var t="true"===e.getAttribute("aria-hidden"),n=parseInt(e.getAttribute(w),10);n=n||(t?1:0),e.setAttribute(w,n+1),e.setAttribute("aria-hidden","true")});return e(t.parent());function n(t){var e=t.parent()?t.parent().children():[];return Array.prototype.filter.call(e,function(e){return e!==t[0]})}}(s)},s.close=function(e,t){var n=v.get(e);return A(),n&&C(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),r(e,n.value.modalOpener),!0):!n},s.dismiss=function(e,t){var n=v.get(e);return A(),n&&C(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),r(e,n.value.modalOpener),!0):!n},s.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},s.getTop=function(){return v.top()},s.modalRendered=function(e){var t=v.get(e);t&&t.value.renderDeferred.resolve()},s.focusFirstFocusableElement=function(e){return 0<e.length&&(e[0].focus(),!0)},s.focusLastFocusableElement=function(e){return 0<e.length&&(e[e.length-1].focus(),!0)},s.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},s.isFocusInFirstItem=function(e,t){return 0<t.length&&(e.target||e.srcElement)===t[0]},s.isFocusInLastItem=function(e,t){return 0<t.length&&(e.target||e.srcElement)===t[t.length-1]},s.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");return n?Array.prototype.filter.call(n,function(e){return!!((t=e).offsetWidth||t.offsetHeight||t.getClientRects().length);var t}):n}}},s}]).provider("$uibModal",function(){var y={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(h,i,a,o,g,s,v){var e={};var l=null;return e.getPromiseChain=function(){return l},e.open=function(c){var e,t,n,u=i.defer(),p=i.defer(),d=i.defer(),m=i.defer(),f={result:u.promise,opened:p.promise,closed:d.promise,rendered:m.promise,close:function(e){return v.close(f,e)},dismiss:function(e){return v.dismiss(f,e)}};if((c=angular.extend({},y.options,c)).resolve=c.resolve||{},c.appendTo=c.appendTo||a.find("body").eq(0),!c.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!c.component&&!c.template&&!c.templateUrl)throw new Error("One of component or template or templateUrl options is required.");function r(){return e}return e=c.component?i.when(s.resolve(c.resolve,{},null,null)):i.all([(t=c).template?i.when(t.template):o(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl),s.resolve(c.resolve,{},null,null)]),n=l=i.all([l]).then(r,r).then(function(a){var e=c.scope||h,o=e.$new();o.$close=f.close,o.$dismiss=f.dismiss,o.$on("$destroy",function(){o.$$uibDestructionScheduled||o.$dismiss("$uibUnscheduledDestruction")});var t,n,r={scope:o,deferred:u,renderDeferred:m,closedDeferred:d,animation:c.animation,backdrop:c.backdrop,keyboard:c.keyboard,backdropClass:c.backdropClass,windowTopClass:c.windowTopClass,windowClass:c.windowClass,windowTemplateUrl:c.windowTemplateUrl,ariaLabelledBy:c.ariaLabelledBy,ariaDescribedBy:c.ariaDescribedBy,size:c.size,openedClass:c.openedClass,appendTo:c.appendTo},i={},s={};function l(n,e,t,r){n.$scope=o,n.$scope.$resolve={},t?n.$scope.$uibModalInstance=f:n.$uibModalInstance=f;var i=e?a[1]:a;angular.forEach(i,function(e,t){r&&(n[t]=e),n.$scope.$resolve[t]=e})}c.component?(l(i,!1,!0,!1),i.name=c.component,r.component=i):c.controller&&(l(s,!0,!1,!0),n=g(c.controller,s,!0,c.controllerAs),c.controllerAs&&c.bindToController&&((t=n.instance).$close=o.$close,t.$dismiss=o.$dismiss,angular.extend(t,{$resolve:s.$scope.$resolve},e)),t=n(),angular.isFunction(t.$onInit)&&t.$onInit()),c.component||(r.content=a[0]),v.open(f,r),p.resolve(!0)},function(e){p.reject(e),u.reject(e)}).finally(function(){l===n&&(l=null)}),f},e}]};return y}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(n,r,i){n.setNumPages=i.numPages?e(i.numPages).assign:angular.noop,n.ngModelCtrl={$setViewValue:angular.noop},n._watchers=[],n.init=function(e,t){n.ngModelCtrl=e,n.config=t,e.$render=function(){n.render()},i.itemsPerPage?n._watchers.push(r.$parent.$watch(i.itemsPerPage,function(e){n.itemsPerPage=parseInt(e,10),r.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=t.itemsPerPage,r.$watch("totalItems",function(e,t){!angular.isDefined(e)&&e===t||(r.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var e=n.itemsPerPage<1?1:Math.ceil(r.totalItems/n.itemsPerPage);return Math.max(e||0,1)},n.render=function(){r.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},r.selectPage=function(e,t){t&&t.preventDefault(),(!r.ngDisabled||!t)&&r.page!==e&&0<e&&e<=r.totalPages&&(t&&t.target&&t.target.blur(),n.ngModelCtrl.$setViewValue(e),n.ngModelCtrl.$render())},r.getText=function(e){return r[e+"Text"]||n.config[e+"Text"]},r.noPrevious=function(){return 1===r.page},r.noNext=function(){return r.page===r.totalPages},n.updatePage=function(){n.setNumPages(r.$parent,r.totalPages),r.page>r.totalPages?r.selectPage(r.totalPages):n.ngModelCtrl.$render()},r.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,r){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):r.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(o){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(e,t,n,r){t.addClass("pager");var i=r[0],a=r[1];a&&i.init(a,o)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(t,n,e,r,i){var a=this,f=angular.isDefined(n.maxSize)?t.$parent.$eval(n.maxSize):i.maxSize,h=angular.isDefined(n.rotate)?t.$parent.$eval(n.rotate):i.rotate,g=angular.isDefined(n.forceEllipses)?t.$parent.$eval(n.forceEllipses):i.forceEllipses,v=angular.isDefined(n.boundaryLinkNumbers)?t.$parent.$eval(n.boundaryLinkNumbers):i.boundaryLinkNumbers,y=angular.isDefined(n.pageLabel)?function(e){return t.$parent.$eval(n.pageLabel,{$page:e})}:angular.identity;function b(e,t,n){return{number:e,text:t,active:n}}t.boundaryLinks=angular.isDefined(n.boundaryLinks)?t.$parent.$eval(n.boundaryLinks):i.boundaryLinks,t.directionLinks=angular.isDefined(n.directionLinks)?t.$parent.$eval(n.directionLinks):i.directionLinks,n.$set("role","menu"),r.create(this,t,n),n.maxSize&&a._watchers.push(t.$parent.$watch(e(n.maxSize),function(e){f=parseInt(e,10),a.render()}));var o=this.render;this.render=function(){o(),0<t.page&&t.page<=t.totalPages&&(t.pages=function(e,t){var n=[],r=1,i=t,a=angular.isDefined(f)&&f<t;a&&(h?t<(i=(r=Math.max(e-Math.floor(f/2),1))+f-1)&&(r=(i=t)-f+1):(r=(Math.ceil(e/f)-1)*f+1,i=Math.min(r+f-1,t)));for(var o=r;o<=i;o++){var s=b(o,y(o),o===e);n.push(s)}if(a&&0<f&&(!h||g||v)){if(1<r){if(!v||3<r){var l=b(r-1,"...",!1);n.unshift(l)}if(v){if(3===r){var c=b(2,"2",!1);n.unshift(c)}var u=b(1,"1",!1);n.unshift(u)}}if(i<t){if(!v||i<t-2){var p=b(i+1,"...",!1);n.push(p)}if(v){if(i===t-2){var d=b(t-1,t-1,!1);n.push(d)}var m=b(t,t,!1);n.push(m)}}}return n}(t.page,t.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,o){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(e,t,n,r){t.addClass("pagination");var i=r[0],a=r[1];a&&i.init(a,o)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var s={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},l={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},c={};this.options=function(e){angular.extend(c,e)},this.setTriggers=function(e){angular.extend(l,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,a,z,q,H,o,t,G,n){var W=n.createNew();function r(e){if(27===e.which){var t=W.top();t&&(t.value.close(),t=null)}}return q.on("keyup",r),t.$on("$destroy",function(){q.off("keyup",r)}),function(j,B,r,V){function U(e){var t=(e||V.trigger||r).split(" "),n=t.map(function(e){return l[e]||e});return{show:t,hide:n}}V=angular.extend({},s,c,V);var e=j.replace(/[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()}),t=o.startSymbol(),n=o.endSymbol(),i="<div "+e+'-popup uib-title="'+t+"title"+n+'" '+(V.useContentExp?'content-exp="contentExp()" ':'content="'+t+"content"+n+'" ')+'origin-scope="origScope" class="uib-position-measure '+B+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(){var F=a(i);return function(r,a,i){var o,e,t,n,s,l,c,u,p=!!angular.isDefined(V.appendToBody)&&V.appendToBody,d=U(void 0),m=angular.isDefined(i[B+"Enable"]),f=r.$new(!0),h=!1,g=!!angular.isDefined(i[B+"IsOpen"])&&G(i[B+"IsOpen"]),v=!!V.useContentExp&&G(i[j]),y=[],b=function(){o&&o.html()&&(l=l||z(function(){var e=H.positionElements(a,o,f.placement,p),n=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight"),r=p?H.offset(a):H.position(a);o.css({top:e.top+"px",left:e.left+"px"});var i=e.placement.split("-");o.hasClass(i[0])||(o.removeClass(u.split("-")[0]),o.addClass(i[0])),o.hasClass(V.placementClassPrefix+e.placement)||(o.removeClass(V.placementClassPrefix+u),o.addClass(V.placementClassPrefix+e.placement)),c=z(function(){var e=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight"),t=H.adjustTop(i,r,n,e);t&&o.css(t),c=null},0,!1),o.hasClass("uib-position-measure")?(H.positionArrow(o,e.placement),o.removeClass("uib-position-measure")):u!==e.placement&&H.positionArrow(o,e.placement),u=e.placement,l=null},0,!1))};function x(){(f.isOpen?E:w)()}function w(){m&&!r.$eval(i[B+"Enable"])||(A(),function(){f.title=i[B+"Title"],f.content=v?v(r):i[j];f.popupClass=i[B+"Class"],f.placement=angular.isDefined(i[B+"Placement"])?i[B+"Placement"]:V.placement;var e=H.parsePlacement(f.placement);u=e[1]?e[0]+"-"+e[1]:e[0];var t=parseInt(i[B+"PopupDelay"],10),n=parseInt(i[B+"PopupCloseDelay"],10);f.popupDelay=isNaN(t)?V.popupDelay:t,f.popupCloseDelay=isNaN(n)?V.popupCloseDelay:n}(),f.popupDelay?n=n||z(k,f.popupDelay,!1):k())}function E(){S(),f.popupCloseDelay?s=s||z(C,f.popupCloseDelay,!1):C()}function k(){if(S(),A(),!f.content)return angular.noop;!function(){if(o)return;e=f.$new(),o=F(e,function(e){p?q.find("body").append(e):a.after(e)}),W.add(f,{close:C}),function(){y.length=0,v?(y.push(r.$watch(v,function(e){!(f.content=e)&&f.isOpen&&C()})),y.push(e.$watch(function(){h||(h=!0,e.$$postDigest(function(){h=!1,f&&f.isOpen&&b()}))}))):y.push(i.$observe(j,function(e){(!(f.content=e)&&f.isOpen?C:b)()}));y.push(i.$observe(B+"Title",function(e){f.title=e,f.isOpen&&b()})),y.push(i.$observe(B+"Placement",function(e){f.placement=e||V.placement,f.isOpen&&b()}))}()}(),f.$evalAsync(function(){T(f.isOpen=!0),b()})}function S(){n&&(z.cancel(n),n=null),l&&(z.cancel(l),l=null)}function C(){f&&f.$evalAsync(function(){f&&(T(f.isOpen=!1),f.animation?t=t||z(_,150,!1):_())})}function A(){s&&(z.cancel(s),s=null),t&&(z.cancel(t),t=null)}function _(){S(),A(),y.length&&(angular.forEach(y,function(e){e()}),y.length=0),o&&(o.remove(),o=null,c&&z.cancel(c)),W.remove(f),e&&(e.$destroy(),e=null)}function T(e){g&&angular.isFunction(g.assign)&&g.assign(r,e)}function M(e){f&&f.isOpen&&o&&(a[0].contains(e.target)||o[0].contains(e.target)||E())}function D(e){27===e.which&&E()}f.origScope=r,f.isOpen=!1,f.contentExp=function(){return f.content},i.$observe("disabled",function(e){e&&S(),e&&f.isOpen&&C()}),g&&r.$watch(g,function(e){f&&!e===f.isOpen&&x()});function I(){d.show.forEach(function(e){"outsideClick"===e?a.off("click",x):(a.off(e,w),a.off(e,x)),a.off("keypress",D)}),d.hide.forEach(function(e){"outsideClick"===e?q.off("click",M):a.off(e,E)})}var R,N,P;R=[],N=[],P=r.$eval(i[B+"Trigger"]),I(),"none"!==(d=angular.isObject(P)?(Object.keys(P).forEach(function(e){R.push(e),N.push(P[e])}),{show:R,hide:N}):U(P)).show&&d.show.forEach(function(e,t){"outsideClick"===e?(a.on("click",x),q.on("click",M)):e===d.hide[t]?a.on(e,x):e&&(a.on(e,w),a.on(d.hide[t],E)),a.on("keypress",D)});var $,O=r.$eval(i[B+"Animation"]);f.animation=angular.isDefined(O)?!!O:V.animation;var L=B+"AppendToBody";$=L in i&&void 0===i[L]||r.$eval(i[L]),p=angular.isDefined($)?$:p,r.$on("$destroy",function(){I(),_(),f=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(p,r,d,m){return{link:function(e,a,t){function o(){n&&(n.remove(),n=null),s&&(s.$destroy(),s=null),l&&(p.leave(l).then(function(){n=null}),n=l,l=null)}var s,n,l,c=e.$eval(t.tooltipTemplateTranscludeScope),u=0;e.$watch(r.parseAsResourceUrl(t.uibTooltipTemplateTransclude),function(r){var i=++u;r?(m(r,!0).then(function(e){if(i===u){var t=c.$new(),n=d(e)(t,function(e){o(),p.enter(e,a)});l=n,(s=t).$emit("$includeContentLoaded",r)}},function(){i===u&&(o(),e.$emit("$includeContentError",r))}),e.$emit("$includeContentRequested",r)):o()}),e.$on("$destroy",o)}}}]).directive("uibTooltipClasses",["$uibPosition",function(i){return{restrict:"A",link:function(e,t,n){if(e.placement){var r=i.parsePlacement(e.placement);t.addClass(r[0])}e.popupClass&&t.addClass(e.popupClass),e.animation&&t.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;function a(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}this.bars=[],e.max=a(),this.addBar=function(t,e,n){i||e.css({transition:"none"}),this.bars.push(t),t.max=a(),t.title=n&&angular.isDefined(n.title)?n.title:"progressbar",t.$watch("value",function(e){t.recalculatePercentage()}),t.recalculatePercentage=function(){var e=r.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);100<e&&(t.percent-=e-100)},t.$on("$destroy",function(){e=null,r.removeBar(t)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){r.bars.forEach(function(e){e.max=a(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(r,i,a){var o={$setViewValue:angular.noop},n=this;this.init=function(e){(o=e).$render=this.render,o.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(i.stateOn)?r.$parent.$eval(i.stateOn):a.stateOn,this.stateOff=angular.isDefined(i.stateOff)?r.$parent.$eval(i.stateOff):a.stateOff,this.enableReset=angular.isDefined(i.enableReset)?r.$parent.$eval(i.enableReset):a.enableReset;var t=angular.isDefined(i.titles)?r.$parent.$eval(i.titles):a.titles;this.titles=angular.isArray(t)&&0<t.length?t:a.titles;var n=angular.isDefined(i.ratingStates)?r.$parent.$eval(i.ratingStates):new Array(angular.isDefined(i.max)?r.$parent.$eval(i.max):a.max);r.range=this.buildTemplateObjects(n)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},r.rate=function(e){if(!r.readonly&&0<=e&&e<=r.range.length){var t=n.enableReset&&o.$viewValue===e?0:e;o.$setViewValue(t),o.$render()}},r.enter=function(e){r.readonly||(r.value=e),r.onHover({value:e})},r.reset=function(){r.value=o.$viewValue,r.onLeave()},r.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),r.rate(r.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){r.value=o.$viewValue,r.title=n.getTitle(r.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var a,o,s=this;function l(e){for(var t=0;t<s.tabs.length;t++)if(s.tabs[t].index===e)return t}s.tabs=[],s.select=function(e,t){if(!o){var n=l(a),r=s.tabs[n];if(r){if(r.tab.onDeselect({$event:t,$selectedIndex:e}),t&&t.isDefaultPrevented())return;r.tab.active=!1}var i=s.tabs[e];i?(i.tab.onSelect({$event:t}),i.tab.active=!0,s.active=i.index,a=i.index):!i&&angular.isDefined(a)&&(s.active=null,a=null)}},s.addTab=function(e){if(s.tabs.push({tab:e,index:e.index}),s.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index===s.active||!angular.isDefined(s.active)&&1===s.tabs.length){var t=l(e.index);s.select(t)}},s.removeTab=function(e){for(var t,n=0;n<s.tabs.length;n++)if(s.tabs[n].tab===e){t=n;break}if(s.tabs[t].index===s.active){var r=t===s.tabs.length-1?t-1:t+1%s.tabs.length;s.select(r)}s.tabs.splice(t,1)},e.$watch("tabset.active",function(e){angular.isDefined(e)&&e!==a&&s.select(l(e))}),e.$on("$destroy",function(){o=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(a){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(r,e,t,i,n){r.disabled=!1,t.disable&&r.$parent.$watch(a(t.disable),function(e){r.disabled=!!e}),angular.isUndefined(t.index)&&(i.tabs&&i.tabs.length?r.index=Math.max.apply(null,i.tabs.map(function(e){return e.index}))+1:r.index=0),angular.isUndefined(t.classes)&&(r.classes=""),r.select=function(e){if(!r.disabled){for(var t,n=0;n<i.tabs.length;n++)if(i.tabs[n].tab===r){t=n;break}i.select(t,e)}},i.addTab(r),r.$on("$destroy",function(){i.removeTab(r)}),r.$transcludeFn=n}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(e,n,t){var r=e.$eval(t.uibTabContentTransclude).tab;r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){var t;(t=e).tagName&&(t.hasAttribute("uib-tab-heading")||t.hasAttribute("data-uib-tab-heading")||t.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===t.tagName.toLowerCase()||"data-uib-tab-heading"===t.tagName.toLowerCase()||"x-uib-tab-heading"===t.tagName.toLowerCase()||"uib:tab-heading"===t.tagName.toLowerCase())?r.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(a,e,o,t,n,r,s){var l,c,u,i=new Date,p=[],d={$setViewValue:angular.noop},m=angular.isDefined(o.meridians)?a.$parent.$eval(o.meridians):s.meridians||r.DATETIME_FORMATS.AMPMS,f=!angular.isDefined(o.padHours)||a.$parent.$eval(o.padHours);a.tabindex=angular.isDefined(o.tabindex)?o.tabindex:0,e.removeAttr("tabindex"),this.init=function(e,t){(d=e).$render=this.render,d.$formatters.unshift(function(e){return e?new Date(e):null});var n=t.eq(0),r=t.eq(1),i=t.eq(2);l=n.controller("ngModel"),c=r.controller("ngModel"),u=i.controller("ngModel"),(angular.isDefined(o.mousewheel)?a.$parent.$eval(o.mousewheel):s.mousewheel)&&this.setupMousewheelEvents(n,r,i),(angular.isDefined(o.arrowkeys)?a.$parent.$eval(o.arrowkeys):s.arrowkeys)&&this.setupArrowkeyEvents(n,r,i),a.readonlyInput=angular.isDefined(o.readonlyInput)?a.$parent.$eval(o.readonlyInput):s.readonlyInput,this.setupInputEvents(n,r,i)};var h=s.hourStep;o.hourStep&&p.push(a.$parent.$watch(t(o.hourStep),function(e){h=+e}));var g,v,y=s.minuteStep;o.minuteStep&&p.push(a.$parent.$watch(t(o.minuteStep),function(e){y=+e})),p.push(a.$parent.$watch(t(o.min),function(e){var t=new Date(e);g=isNaN(t)?void 0:t})),p.push(a.$parent.$watch(t(o.max),function(e){var t=new Date(e);v=isNaN(t)?void 0:t}));var b=!1;o.ngDisabled&&p.push(a.$parent.$watch(t(o.ngDisabled),function(e){b=e})),a.noIncrementHours=function(){var e=T(i,60*h);return b||v<e||e<i&&e<g},a.noDecrementHours=function(){var e=T(i,60*-h);return b||e<g||i<e&&v<e},a.noIncrementMinutes=function(){var e=T(i,y);return b||v<e||e<i&&e<g},a.noDecrementMinutes=function(){var e=T(i,-y);return b||e<g||i<e&&v<e},a.noIncrementSeconds=function(){var e=M(i,x);return b||v<e||e<i&&e<g},a.noDecrementSeconds=function(){var e=M(i,-x);return b||e<g||i<e&&v<e},a.noToggleMeridian=function(){return i.getHours()<12?b||T(i,720)>v:b||T(i,-720)<g};var x=s.secondStep;function w(){var e=+a.hours;if((a.showMeridian?0<e&&e<13:0<=e&&e<24)&&""!==a.hours)return a.showMeridian&&(12===e&&(e=0),a.meridian===m[1]&&(e+=12)),e}function E(){var e=+a.minutes;if(0<=e&&e<60&&""!==a.minutes)return e}function k(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function S(e){C(),d.$setViewValue(new Date(i)),A(e)}function C(){l&&l.$setValidity("hours",!0),c&&c.$setValidity("minutes",!0),u&&u.$setValidity("seconds",!0),d.$setValidity("time",!0),a.invalidHours=!1,a.invalidMinutes=!1,a.invalidSeconds=!1}function A(e){if(d.$modelValue){var t=i.getHours(),n=i.getMinutes(),r=i.getSeconds();a.showMeridian&&(t=0===t||12===t?12:t%12),a.hours="h"===e?t:k(t,!f),"m"!==e&&(a.minutes=k(n)),a.meridian=i.getHours()<12?m[0]:m[1],"s"!==e&&(a.seconds=k(r)),a.meridian=i.getHours()<12?m[0]:m[1]}else a.hours=null,a.minutes=null,a.seconds=null,a.meridian=m[0]}function _(e){i=M(i,e),S()}function T(e,t){return M(e,60*t)}function M(e,t){var n=new Date(e.getTime()+1e3*t),r=new Date(e);return r.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),r}function D(){return(null===a.hours||""===a.hours)&&(null===a.minutes||""===a.minutes)&&(!a.showSeconds||a.showSeconds&&(null===a.seconds||""===a.seconds))}o.secondStep&&p.push(a.$parent.$watch(t(o.secondStep),function(e){x=+e})),a.showSeconds=s.showSeconds,o.showSeconds&&p.push(a.$parent.$watch(t(o.showSeconds),function(e){a.showSeconds=!!e})),a.showMeridian=s.showMeridian,o.showMeridian&&p.push(a.$parent.$watch(t(o.showMeridian),function(e){if(a.showMeridian=!!e,d.$error.time){var t=w(),n=E();angular.isDefined(t)&&angular.isDefined(n)&&(i.setHours(t),S())}else A()})),this.setupMousewheelEvents=function(e,t,n){function r(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||0<t}e.on("mousewheel wheel",function(e){b||a.$apply(r(e)?a.incrementHours():a.decrementHours()),e.preventDefault()}),t.on("mousewheel wheel",function(e){b||a.$apply(r(e)?a.incrementMinutes():a.decrementMinutes()),e.preventDefault()}),n.on("mousewheel wheel",function(e){b||a.$apply(r(e)?a.incrementSeconds():a.decrementSeconds()),e.preventDefault()})},this.setupArrowkeyEvents=function(e,t,n){e.on("keydown",function(e){b||(38===e.which?(e.preventDefault(),a.incrementHours(),a.$apply()):40===e.which&&(e.preventDefault(),a.decrementHours(),a.$apply()))}),t.on("keydown",function(e){b||(38===e.which?(e.preventDefault(),a.incrementMinutes(),a.$apply()):40===e.which&&(e.preventDefault(),a.decrementMinutes(),a.$apply()))}),n.on("keydown",function(e){b||(38===e.which?(e.preventDefault(),a.incrementSeconds(),a.$apply()):40===e.which&&(e.preventDefault(),a.decrementSeconds(),a.$apply()))})},this.setupInputEvents=function(e,t,n){if(a.readonlyInput)return a.updateHours=angular.noop,a.updateMinutes=angular.noop,void(a.updateSeconds=angular.noop);function r(e,t,n){d.$setViewValue(null),d.$setValidity("time",!1),angular.isDefined(e)&&(a.invalidHours=e,l&&l.$setValidity("hours",!1)),angular.isDefined(t)&&(a.invalidMinutes=t,c&&c.$setValidity("minutes",!1)),angular.isDefined(n)&&(a.invalidSeconds=n,u&&u.$setValidity("seconds",!1))}a.updateHours=function(){var e=w(),t=E();d.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(i.setHours(e),i.setMinutes(t),i<g||v<i?r(!0):S("h")):r(!0)},e.on("blur",function(e){d.$setTouched(),D()?C():null===a.hours||""===a.hours?r(!0):!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=k(a.hours,!f)})}),a.updateMinutes=function(){var e=E(),t=w();d.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(i.setHours(t),i.setMinutes(e),i<g||v<i?r(void 0,!0):S("m")):r(void 0,!0)},t.on("blur",function(e){d.$setTouched(),D()?C():null===a.minutes?r(void 0,!0):!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=k(a.minutes)})}),a.updateSeconds=function(){var e,t=0<=(e=+a.seconds)&&e<60?e:void 0;d.$setDirty(),angular.isDefined(t)?(i.setSeconds(t),S("s")):r(void 0,void 0,!0)},n.on("blur",function(e){D()?C():!a.invalidSeconds&&a.seconds<10&&a.$apply(function(){a.seconds=k(a.seconds)})})},this.render=function(){var e=d.$viewValue;isNaN(e)?(d.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(i=e),i<g||v<i?(d.$setValidity("time",!1),a.invalidHours=!0,a.invalidMinutes=!0):C(),A())},a.showSpinners=angular.isDefined(o.showSpinners)?a.$parent.$eval(o.showSpinners):s.showSpinners,a.incrementHours=function(){a.noIncrementHours()||_(60*h*60)},a.decrementHours=function(){a.noDecrementHours()||_(60*-h*60)},a.incrementMinutes=function(){a.noIncrementMinutes()||_(60*y)},a.decrementMinutes=function(){a.noDecrementMinutes()||_(60*-y)},a.incrementSeconds=function(){a.noIncrementSeconds()||_(x)},a.decrementSeconds=function(){a.noDecrementSeconds()||_(-x)},a.toggleMeridian=function(){var e=E(),t=w();a.noToggleMeridian()||(angular.isDefined(e)&&angular.isDefined(t)?_(720*(i.getHours()<12?60:-60)):a.meridian=a.meridian===m[0]?m[1]:m[0])},a.blur=function(){d.$setTouched()},a.$on("$destroy",function(){for(;p.length;)p.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(e,t){return t.templateUrl||n.templateUrl},link:function(e,t,n,r){var i=r[0],a=r[1];a&&i.init(a,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var r=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(e){var t=e.match(r);if(!t)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+e+'".');return{itemName:t[3],source:n(t[4]),viewMapper:n(t[2]||t[1]),modelMapper:n(t[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(c,u,s,e,t,n,l,r,i,a,p,o,d){var m,f,h=[9,13,27,38,40],g=c.$eval(s.typeaheadMinLength);g||0===g||(g=1),c.$watch(s.typeaheadMinLength,function(e){g=e||0===e?e:1});var v=c.$eval(s.typeaheadWaitMs)||0,y=!1!==c.$eval(s.typeaheadEditable);c.$watch(s.typeaheadEditable,function(e){y=!1!==e});var b,x,w=t(s.typeaheadLoading).assign||angular.noop,E=s.typeaheadShouldSelect?t(s.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},k=t(s.typeaheadOnSelect),S=!!angular.isDefined(s.typeaheadSelectOnBlur)&&c.$eval(s.typeaheadSelectOnBlur),C=t(s.typeaheadNoResults).assign||angular.noop,A=s.typeaheadInputFormatter?t(s.typeaheadInputFormatter):void 0,_=!!s.typeaheadAppendToBody&&c.$eval(s.typeaheadAppendToBody),T=s.typeaheadAppendTo?c.$eval(s.typeaheadAppendTo):null,M=!1!==c.$eval(s.typeaheadFocusFirst),D=!!s.typeaheadSelectOnExact&&c.$eval(s.typeaheadSelectOnExact),I=t(s.typeaheadIsOpen).assign||angular.noop,R=c.$eval(s.typeaheadShowHint)||!1,N=t(s.ngModel),P=t(s.ngModel+"($$$p)"),$=d.parse(s.uibTypeahead),O=c.$new(),L=c.$on("$destroy",function(){O.$destroy()});O.$on("$destroy",L);var F,j,B="typeahead-"+O.$id+"-"+Math.floor(1e4*Math.random());u.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":B}),R&&((F=angular.element("<div></div>")).css("position","relative"),u.after(F),(j=u.clone()).attr("placeholder",""),j.attr("tabindex","-1"),j.val(""),j.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),u.css({position:"relative","vertical-align":"top","background-color":"transparent"}),j.attr("id")&&j.removeAttr("id"),F.append(j),j.after(u));var V=angular.element("<div uib-typeahead-popup></div>");V.attr({id:B,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(s.typeaheadTemplateUrl)&&V.attr("template-url",s.typeaheadTemplateUrl),angular.isDefined(s.typeaheadPopupTemplateUrl)&&V.attr("popup-template-url",s.typeaheadPopupTemplateUrl);function U(){O.matches=[],O.activeIdx=-1,u.attr("aria-expanded",!1),R&&j.val("")}function z(e){return B+"-option-"+e}O.$watch("activeIdx",function(e){e<0?u.removeAttr("aria-activedescendant"):u.attr("aria-activedescendant",z(e))});function q(o,s){var l={$viewValue:o};w(c,!0),C(c,!1),n.when($.source(c,l)).then(function(e){var t,n,r=o===m.$viewValue;if(r&&b)if(e&&0<e.length){O.activeIdx=M?0:-1,C(c,!1);for(var i=O.matches.length=0;i<e.length;i++)l[$.itemName]=e[i],O.matches.push({id:z(i),label:$.viewMapper(O,l),model:e[i]});if(O.query=o,K(),u.attr("aria-expanded",!0),D&&1===O.matches.length&&(t=o,n=0,O.matches.length>n&&t&&t.toUpperCase()===O.matches[n].label.toUpperCase())&&(angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?p(function(){O.select(0,s)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate.default):O.select(0,s)),R){var a=O.matches[0].label;angular.isString(o)&&0<o.length&&a.slice(0,o.length).toUpperCase()===o.toUpperCase()?j.val(o+a.slice(o.length)):j.val("")}}else U(),C(c,!0);r&&w(c,!1)},function(){U(),w(c,!1),C(c,!0)})}_&&(angular.element(i).on("resize",W),r.find("body").on("scroll",W));var H,G=p(function(){O.matches.length&&K(),O.moveInProgress=!1},200);function W(){O.moveInProgress||(O.moveInProgress=!0,O.$digest()),G()}function K(){O.position=_?o.offset(u):o.position(u),O.position.top+=u.prop("offsetHeight")}O.moveInProgress=!1,O.query=void 0;function Y(){H&&l.cancel(H)}U(),O.assignIsOpen=function(e){I(c,e)},O.select=function(e,t){var n,r,i,a,o={};x=!0,o[$.itemName]=r=O.matches[e].model,n=$.modelMapper(c,o),i=c,a=n,angular.isFunction(N(c))&&f.getOption("getterSetter")?P(i,{$$$p:a}):N.assign(i,a),m.$setValidity("editable",!0),m.$setValidity("parse",!0),k(c,{$item:r,$model:n,$label:$.viewMapper(c,o),$event:t}),U(),!1!==O.$eval(s.typeaheadFocusOnSelect)&&l(function(){u[0].focus()},0,!1)},u.on("keydown",function(e){if(0!==O.matches.length&&-1!==h.indexOf(e.which)){var t,n=E(c,{$event:e});if(-1===O.activeIdx&&n||9===e.which&&e.shiftKey)return U(),void O.$digest();switch(e.preventDefault(),e.which){case 27:e.stopPropagation(),U(),c.$digest();break;case 38:O.activeIdx=(0<O.activeIdx?O.activeIdx:O.matches.length)-1,O.$digest(),(t=V[0].querySelectorAll(".uib-typeahead-match")[O.activeIdx]).parentNode.scrollTop=t.offsetTop;break;case 40:O.activeIdx=(O.activeIdx+1)%O.matches.length,O.$digest(),(t=V[0].querySelectorAll(".uib-typeahead-match")[O.activeIdx]).parentNode.scrollTop=t.offsetTop;break;default:n&&O.$apply(function(){angular.isNumber(O.debounceUpdate)||angular.isObject(O.debounceUpdate)?p(function(){O.select(O.activeIdx,e)},angular.isNumber(O.debounceUpdate)?O.debounceUpdate:O.debounceUpdate.default):O.select(O.activeIdx,e)})}}}),u.on("focus",function(e){b=!0,0!==g||m.$viewValue||l(function(){q(m.$viewValue,e)},0)}),u.on("blur",function(e){S&&O.matches.length&&-1!==O.activeIdx&&!x&&(x=!0,O.$apply(function(){angular.isObject(O.debounceUpdate)&&angular.isNumber(O.debounceUpdate.blur)?p(function(){O.select(O.activeIdx,e)},O.debounceUpdate.blur):O.select(O.activeIdx,e)})),!y&&m.$error.editable&&(m.$setViewValue(),O.$apply(function(){m.$setValidity("editable",!0),m.$setValidity("parse",!0)}),u.val("")),x=b=!1});function X(e){u[0]!==e.target&&3!==e.which&&0!==O.matches.length&&(U(),a.$$phase||c.$digest())}r.on("click",X),c.$on("$destroy",function(){r.off("click",X),(_||T)&&Q.remove(),_&&(angular.element(i).off("resize",W),r.find("body").off("scroll",W)),V.remove(),R&&F.remove()});var Q=e(V)(O);_?r.find("body").append(Q):T?angular.element(T).eq(0).append(Q):u.after(Q),this.init=function(e){f=function(e){var t;angular.version.minor<6?(t=e.$options||{}).getOption=function(e){return t[e]}:t=e.$options;return t}(m=e),O.debounceUpdate=t(f.getOption("debounce"))(c),m.$parsers.unshift(function(e){var t;return b=!0,0===g||e&&e.length>=g?0<v?(Y(),t=e,H=l(function(){q(t)},v)):q(e):(w(c,!1),Y(),U()),y?e:e?void m.$setValidity("editable",!1):(m.$setValidity("editable",!0),null)}),m.$formatters.push(function(e){var t,n={};return y||m.$setValidity("editable",!0),A?(n.$model=e,A(c,n)):(n[$.itemName]=e,t=$.viewMapper(c,n),n[$.itemName]=void 0,t!==$.viewMapper(c,n)?t:e)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(e,t,n,r){r[1].init(r[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(i){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(r,e,t){r.templateUrl=t.templateUrl,r.isOpen=function(){var e=0<r.matches.length;return r.assignIsOpen({isOpen:e}),e},r.isActive=function(e){return r.active===e},r.selectActive=function(e){r.active=e},r.selectMatch=function(e,t){var n=r.debounce();angular.isNumber(n)||angular.isObject(n)?i(function(){r.select({activeIdx:e,evt:t})},angular.isNumber(n)?n:n.default):r.select({activeIdx:e,evt:t})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(i,a,o){return{scope:{index:"=",match:"=",query:"="},link:function(n,r,e){var t=o(e.templateUrl)(n.$parent)||"uib/template/typeahead/typeahead-match.html";i(t).then(function(e){var t=angular.element(e.trim());r.replaceWith(t),a(t)(n)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,e,r){var i;return i=e.has("$sanitize"),function(e,t){return!i&&/<.*>/g.test(e)&&r.warn("Unsafe use of typeahead please use ngSanitize"),e=t?(""+e).replace(new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):e,i||(e=n.trustAsHtml(e)),e}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n</div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n</button>\n<div ng-transclude></div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude></div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n</a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n</a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n</ol>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"></div>\n <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"></div>\n <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"></div>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default btn-sm"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-left"></i><span class="sr-only">previous</span></button></th>\n <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i aria-hidden="true" class="glyphicon glyphicon-chevron-right"></i><span class="sr-only">next</span></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'<ul role="presentation" class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" class="uib-button-bar">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n </li>\n</ul>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li role="menuitem" ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}</a></li>\n<li role="menuitem" ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n<li role="menuitem" ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}</a></li>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane"\n ng-repeat="tab in tabset.tabs"\n ng-class="{active: tabset.active === tab.index}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td> </td>\n <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showSeconds"> </td>\n <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n </td>\n <td class="uib-separator">:</td>\n <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n </td>\n <td ng-show="showSeconds" class="uib-separator">:</td>\n <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n </td>\n <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td> </td>\n <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showSeconds"> </td>\n <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'<a href\n tabindex="-1"\n ng-bind-html="match.label | uibTypeaheadHighlight:query"\n ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0})},{"core-js/modules/es.string.replace":188}],76:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return e&&"object"===r(e)&&"default"in e?e.default:e}e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0});var a=i(e("dmn-moddle")),o=i(e("ids")),c=e("min-dash"),s={name:"bpmn.io DI for DMN",uri:"http://bpmn.io/schema/dmn/biodi/1.0",prefix:"biodi",xml:{tagAlias:"lowerCase"},types:[{name:"Bounds",superClass:["dc:Bounds","Element"]},{name:"Edge",superClass:["Element"],properties:[{name:"source",type:"String",isAttr:!0},{name:"waypoints",type:"Waypoint",isMany:!0,xml:{serialize:"property"}}]},{name:"Waypoint",superClass:["dc:Point"]}]},l=new o([32,36,1]),u=new a({biodi:s}),p='"http://www.omg.org/spec/DMN/20151101/dmn.xsd"',d='"http://www.omg.org/spec/DMN/20180521/MODEL/"',m='"https://www.omg.org/spec/DMN/20191111/MODEL/"';function f(e,t){return t.includes(e)}function h(e){e.id||x(e,["dmn:DMNElement","dmndi:DMNDiagram","dmndi:DMNDiagramElement"])&&(e.id=l.nextPrefixed(e.$type.split(":")[1]+"_",e))}function g(e){h(e),Object.values(e).forEach(function(e){e.$type&&(h(e),g(e)),c.isArray(e)&&e.forEach(g)})}function v(e){b(e,"dmn:NamedElement")&&!e.name&&(e.name=e.id)}function y(e){v(e),Object.values(e).forEach(function(e){e.$type&&(v(e),y(e)),c.isArray(e)&&e.forEach(y)})}function b(e,t){return c.isFunction(e.$instanceOf)&&e.$instanceOf(t)}function x(t,e){return c.some(e,function(e){return b(t,e)})}n.TARGET_DMN_VERSION="1.3",n.migrateDiagram=function(r){return new Promise(function(e,t){if(!c.isString(r))return e(r);try{if(f(p,r))return e((i=r,new Promise(function(n,r){var e=i.replace(p,m);u.fromXML(e,"dmn:Definitions",function(e,t){if(e)return n(i);try{g(t),y(t),function(e,s){var l=[];if([].concat(e.get("drgElement"),e.get("artifact")).forEach(function(o){var e=o.get("extensionElements");e&&(e.get("values").forEach(function(e){if(b(e,"biodi:Bounds")){var t=s.create("dc:Bounds",{height:e.get("height"),width:e.get("width"),x:e.get("x"),y:e.get("y")}),n=s.create("dmndi:DMNShape",{bounds:t,dmnElementRef:o});h(t.$parent=n),l.push(n),n.$parent=l}if(b(e,"biodi:Edge")){var r=function(e,n){return b(e,"dmn:Association")?e:Object.values(e).reduce(function(e,t){return c.isArray(t)?e||t.find(function(e){if(b(e,"dmn:DMNElement"))return Object.values(e).find(function(e){if(b(e,"dmn:DMNElementReference"))return e.href.replace("#","").includes(n)})}):e},null)}(o,e.get("source"));if(!r)return;var i=e.get("waypoints").map(function(e){return s.create("dc:Point",{x:e.get("x"),y:e.get("y")})}),a=s.create("dmndi:DMNEdge",{dmnElementRef:r,waypoint:i});h(r.$parent=a),i.forEach(function(e){return e.$parent=a}),l.push(a),a.$parent=l}}),e.set("values",e.get("values").filter(function(e){return!x(e,["biodi:Bounds","biodi:Edge"])})),e.get("values").length||o.set("extensionElements",void 0))}),l.length){var t=function(e){var t=e.create("dmndi:DMNDiagram",{diagramElements:[]});h(t);var n=e.create("dmndi:DMNDI",{diagrams:[t]});return t.$parent=n}(s);e.set("dmnDI",t),t.$parent=e;var n=t.get("diagrams")[0];n.set("diagramElements",l),l.forEach(function(e){return e.$parent=n})}}(t,u)}catch(e){return r(e)}u.toXML(t,{format:!0},function(e,t){return e?r(e):n(t)})})})));if(f(d,r))return e((n=r,new Promise(function(e){return e(n.replace(d,m).replace('"http://www.omg.org/spec/DMN/20180521/DMNDI/"','"https://www.omg.org/spec/DMN/20191111/DMNDI/"'))})));if(f(m,r))return e(r)}catch(e){return t(e)}var n,i;return e(r)})}},{"core-js/modules/es.string.replace":188,"dmn-moddle":242,ids:254,"min-dash":256}],77:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var r=l(e("inherits")),i=l(e("./Viewer")),a=l(e("diagram-js/lib/navigation/keyboard-move")),o=l(e("diagram-js/lib/navigation/movecanvas")),s=l(e("diagram-js/lib/navigation/zoomscroll"));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){i.default.call(this,e)}(0,r.default)(c,i.default),c.prototype._navigationModules=[a.default,o.default,s.default],c.prototype._modules=[].concat(c.prototype._modules,c.prototype._navigationModules)},{"./Viewer":78,"diagram-js/lib/navigation/keyboard-move":220,"diagram-js/lib/navigation/movecanvas":222,"diagram-js/lib/navigation/zoomscroll":225,inherits:255}],78:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=y;var c=e("min-dash"),u=e("min-dom"),p=e("tiny-svg"),s=h(e("diagram-js")),r=h(e("bpmn-moddle")),i=h(e("inherits")),o=e("./import/Importer"),a=h(e("./core")),l=h(e("diagram-js/lib/i18n/translate")),d=h(e("diagram-js/lib/features/selection")),m=h(e("diagram-js/lib/features/overlays")),f=e("./util/PoweredByUtil");function h(e){return e&&e.__esModule?e:{default:e}}var g={width:"100%",height:"100%",position:"relative"};function v(e){return e+((0,c.isNumber)(e)?"px":"")}function y(e){var t,n,r;e=(0,c.assign)({},g,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),t=this._container,n='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100">'+f.BPMNIO_IMG+"</a>",r=(0,u.domify)(n),t.appendChild(r),u.event.bind(r,"click",function(e){(0,f.open)(),e.preventDefault()}),this._init(this._container,this._moddle,e)}(0,i.default)(y,s.default),y.prototype.importXML=function(e,o,s){(0,c.isFunction)(o)&&(s=o,o=null),s=s||function(){};var l=this;e=this._emit("import.parse.start",{xml:e})||e,this._moddle.fromXML(e,"bpmn:Definitions",function(e,t,n){t=l._emit("import.parse.complete",{error:e,definitions:t,context:n})||t;var r,i,a=n.warnings;if(e)return(i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec((r=e).message))&&(r.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e=r,l._emit("import.done",{error:e,warnings:a}),s(e,a);l._setDefinitions(t),l.open(o,function(e,t){var n=[].concat(a,t||[]);l._emit("import.done",{error:e,warnings:n}),s(e,n)})})},y.prototype.open=function(e,t){(0,c.isFunction)(e)&&(t=e,e=null);var n,r,i=this._definitions,a=e;if(t=t||function(){},!i)return t(new Error("no XML imported"));if("string"==typeof e&&(n=i,!(a=(r=e)&&(0,c.find)(n.diagrams,function(e){return e.id===r})||null)))return t(new Error("BPMNDiagram <"+e+"> not found"));try{this.clear()}catch(e){return t(e)}return(0,o.importBpmnDiagram)(this,i,a,t)},y.prototype.saveXML=function(e,n){n||(n=e,e={});var r=this,t=this._definitions;if(!t)return n(new Error("no definitions loaded"));t=this._emit("saveXML.start",{definitions:t})||t,this._moddle.toXML(t,e,function(e,t){try{t=r._emit("saveXML.serialized",{error:e,xml:t})||t,r._emit("saveXML.done",{error:e,xml:t})}catch(e){console.error("error in saveXML life-cycle listener",e)}n(e,t)})},y.prototype.saveSVG=function(e,t){var n,r;t||(t=e,e={}),this._emit("saveSVG.start");try{var i=this.get("canvas"),a=i.getDefaultLayer(),o=(0,u.query)("defs",i._svg),s=(0,p.innerSVG)(a),l=o?"<defs>"+(0,p.innerSVG)(o)+"</defs>":"",c=a.getBBox();n='<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+s+"</svg>"}catch(e){r=e}this._emit("saveSVG.done",{error:r,svg:n}),t(r,n)},y.prototype._setDefinitions=function(e){this._definitions=e},y.prototype.getModules=function(){return this._modules},y.prototype.clear=function(){this.get("elementRegistry").forEach(function(e){var t=e.businessObject;t&&t.di&&delete t.di}),s.default.prototype.clear.call(this)},y.prototype.destroy=function(){s.default.prototype.destroy.call(this),(0,u.remove)(this._container)},y.prototype.on=function(e,t,n,r){return this.get("eventBus").on(e,t,n,r)},y.prototype.off=function(e,t){this.get("eventBus").off(e,t)},y.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=(0,u.query)(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},y.prototype.getDefinitions=function(){return this._definitions},y.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},y.prototype._init=function(e,t,n){var r=n.modules||this.getModules(),i=n.additionalModules||[],a=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],r,i),o=(0,c.assign)((0,c.omit)(n,["additionalModules"]),{canvas:(0,c.assign)({},n.canvas,{container:e}),modules:a});s.default.call(this,o),n&&n.container&&this.attachTo(n.container)},y.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},y.prototype._createContainer=function(e){var t=(0,u.domify)('<div class="bjs-container"></div>');return(0,c.assign)(t.style,{width:v(e.width),height:v(e.height),position:e.position}),t},y.prototype._createModdle=function(e){var t=(0,c.assign)({},this._moddleExtensions,e.moddleExtensions);return new r.default(t)},y.prototype._modules=[a.default,l.default,d.default,m.default],y.prototype._moddleExtensions={}},{"./core":79,"./import/Importer":87,"./util/PoweredByUtil":93,"bpmn-moddle":95,"diagram-js":189,"diagram-js/lib/features/overlays":210,"diagram-js/lib/features/selection":214,"diagram-js/lib/i18n/translate":215,inherits:255,"min-dash":256,"min-dom":257,"tiny-svg":266}],79:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("../draw")),i=a(e("../import"));function a(e){return e&&e.__esModule?e:{default:e}}var o={__depends__:[r.default,i.default]};n.default=o},{"../draw":84,"../import":89}],80:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isTypedEvent=function(r,i,a){return(0,o.some)(r.eventDefinitions,function(e){return e.$type===i&&(n=r,t=a,(0,o.every)(t,function(e,t){return n[t]==e}));var n,t})},n.isThrowEvent=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type},n.isCollection=function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection},n.getDi=r,n.getSemantic=function(e){return e.businessObject},n.getFillColor=function(e,t){return r(e).get("bioc:fill")||t||"white"},n.getStrokeColor=function(e,t){return r(e).get("bioc:stroke")||t||"black"},n.getCirclePath=function(e){var t=e.x+e.width/2,n=e.y+e.height/2,r=e.width/2,i=[["M",t,n],["m",0,-r],["a",r,r,0,1,1,0,2*r],["a",r,r,0,1,1,0,-2*r],["z"]];return(0,l.componentsToPath)(i)},n.getRoundRectPath=function(e,t){var n=e.x,r=e.y,i=e.width,a=e.height,o=[["M",n+t,r],["l",i-2*t,0],["a",t,t,0,0,1,t,t],["l",0,a-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-i,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-a],["a",t,t,0,0,1,t,-t],["z"]];return(0,l.componentsToPath)(o)},n.getDiamondPath=function(e){var t=e.width,n=e.height,r=e.x,i=e.y,a=t/2,o=n/2,s=[["M",r+a,i],["l",a,o],["l",-a,o],["l",-a,-o],["z"]];return(0,l.componentsToPath)(s)},n.getRectPath=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=[["M",t,n],["l",r,0],["l",0,i],["l",-r,0],["z"]];return(0,l.componentsToPath)(a)};var o=e("min-dash"),l=e("diagram-js/lib/util/RenderUtil");function r(e){return e.businessObject.di}},{"diagram-js/lib/util/RenderUtil":238,"min-dash":256}],81:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var r=a(e("inherits")),M=e("min-dash"),D=a(e("diagram-js/lib/draw/BaseRenderer")),I=e("../util/DiUtil"),i=e("../util/ModelUtil"),R=e("diagram-js/lib/util/RenderUtil"),N=e("./BpmnRenderUtil"),P=e("min-dom"),$=e("tiny-svg"),O=e("diagram-js/lib/util/SvgTransformUtil");function a(e){return e&&e.__esModule?e:{default:e}}var L=new(a(e("ids")).default),F=10,j=3,B=.95,V=.35;function o(e,t,i,p,s,o,n){D.default.call(this,t,n);var u=e&&e.defaultFillColor,d=e&&e.defaultStrokeColor,a=L.next(),l={},c=i.computeStyle;function m(e,t){var n=(0,M.assign)({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},t.attrs),r=t.ref||{x:0,y:0},i=t.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var a=(0,$.create)("marker");(0,$.attr)(t.element,n),(0,$.append)(a,t.element),(0,$.attr)(a,{id:e,viewBox:"0 0 20 20",refX:r.x,refY:r.y,markerWidth:20*i,markerHeight:20*i,orient:"auto"});var o=(0,P.query)("defs",s._svg);o||(o=(0,$.create)("defs"),(0,$.append)(s._svg,o)),(0,$.append)(o,a),l[e]=a}function f(e){return e.replace(/[()\s,#]+/g,"_")}function h(e,t,n){var r=e+"-"+f(t)+"-"+f(n)+"-"+a;return l[r]||function(e,t,n,r){if("sequenceflow-end"===t){var i=(0,$.create)("path");(0,$.attr)(i,{d:"M 1 5 L 11 10 L 1 15 Z"}),m(e,{element:i,ref:{x:11,y:10},scale:.5,attrs:{fill:r,stroke:r}})}if("messageflow-start"===t){var a=(0,$.create)("circle");(0,$.attr)(a,{cx:6,cy:6,r:3.5}),m(e,{element:a,attrs:{fill:n,stroke:r},ref:{x:6,y:6}})}if("messageflow-end"===t){var o=(0,$.create)("path");(0,$.attr)(o,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),m(e,{element:o,attrs:{fill:n,stroke:r,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===t){var s=(0,$.create)("path");(0,$.attr)(s,{d:"M 11 5 L 1 10 L 11 15"}),m(e,{element:s,attrs:{fill:"none",stroke:r,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===t){var l=(0,$.create)("path");(0,$.attr)(l,{d:"M 1 5 L 11 10 L 1 15"}),m(e,{element:l,attrs:{fill:"none",stroke:r,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===t){var c=(0,$.create)("path");(0,$.attr)(c,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),m(e,{element:c,attrs:{fill:n,stroke:r},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===t){var u=(0,$.create)("path");(0,$.attr)(u,{d:"M 6 4 L 10 16"}),m(e,{element:u,attrs:{stroke:r},ref:{x:0,y:10},scale:.5})}}(r,e,t,n),"url(#"+r+")"}function g(e,t,n,r,i){(0,M.isObject)(r)&&(i=r,r=0),r=r||0,"none"===(i=c(i,{stroke:"black",strokeWidth:2,fill:"white"})).fill&&delete i.fillOpacity;var a=t/2,o=n/2,s=(0,$.create)("circle");return(0,$.attr)(s,{cx:a,cy:o,r:Math.round((t+n)/4-r)}),(0,$.attr)(s,i),(0,$.append)(e,s),s}function v(e,t,n,r,i,a){(0,M.isObject)(i)&&(a=i,i=0),i=i||0,a=c(a,{stroke:"black",strokeWidth:2,fill:"white"});var o=(0,$.create)("rect");return(0,$.attr)(o,{x:i,y:i,width:t-2*i,height:n-2*i,rx:r,ry:r}),(0,$.attr)(o,a),(0,$.append)(e,o),o}function y(e,t,n){n=c(n,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"});var r=(0,R.createLine)(t,n);return(0,$.append)(e,r),r}function b(e,t,n){n=c(n,["no-fill"],{strokeWidth:2,stroke:"black"});var r=(0,$.create)("path");return(0,$.attr)(r,{d:t}),(0,$.attr)(r,n),(0,$.append)(e,r),r}function r(e,t,n,r){return b(t,n,(0,M.assign)({"data-marker":e},r))}function x(n){return function(e,t){return _[n](e,t)}}function w(e){return _[e]}function E(e,t){var n=(0,N.getSemantic)(e),r=(0,N.isThrowEvent)(n);return(0,N.isTypedEvent)(n,"bpmn:MessageEventDefinition")?w("bpmn:MessageEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:TimerEventDefinition")?w("bpmn:TimerEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:ConditionalEventDefinition")?w("bpmn:ConditionalEventDefinition")(t,e):(0,N.isTypedEvent)(n,"bpmn:SignalEventDefinition")?w("bpmn:SignalEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:CancelEventDefinition")&&(0,N.isTypedEvent)(n,"bpmn:TerminateEventDefinition",{parallelMultiple:!1})?w("bpmn:MultipleEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:CancelEventDefinition")&&(0,N.isTypedEvent)(n,"bpmn:TerminateEventDefinition",{parallelMultiple:!0})?w("bpmn:ParallelMultipleEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:EscalationEventDefinition")?w("bpmn:EscalationEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:LinkEventDefinition")?w("bpmn:LinkEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:ErrorEventDefinition")?w("bpmn:ErrorEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:CancelEventDefinition")?w("bpmn:CancelEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:CompensateEventDefinition")?w("bpmn:CompensateEventDefinition")(t,e,r):(0,N.isTypedEvent)(n,"bpmn:TerminateEventDefinition")&&w("bpmn:TerminateEventDefinition")(t,e,r)}function k(e,t,n){n=(0,M.assign)({size:{width:100}},n);var r=o.createText(t||"",n);return(0,$.classes)(r).add("djs-label"),(0,$.append)(e,r),r}function S(e,t,n){return k(e,(0,N.getSemantic)(t).name,{box:t,align:n,padding:5,style:{fill:(0,N.getStrokeColor)(t,d)}})}function C(e,t,n){var r=k(e,t,{box:{height:30,width:n.height},align:"center-middle",style:{fill:(0,N.getStrokeColor)(n,d)}}),i=-1*n.height;(0,O.transform)(r,0,-i,270)}function A(e){for(var t=e.waypoints,n="m "+t[0].x+","+t[0].y,r=1;r<t.length;r++)n+="L"+t[r].x+","+t[r].y+" ";return n}var _=this.handlers={"bpmn:Event":function(e,t,n){return"fillOpacity"in n||(n.fillOpacity=B),g(e,t.width,t.height,n)},"bpmn:StartEvent":function(e,t){var n={fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)};(0,N.getSemantic)(t).isInterrupting||(n={strokeDasharray:"6",strokeLinecap:"round",fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)});var r=w("bpmn:Event")(e,t,n);return E(t,e),r},"bpmn:MessageEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):(0,N.getFillColor)(t,u),stroke:n?(0,N.getFillColor)(t,u):(0,N.getStrokeColor)(t,d)})},"bpmn:TimerEventDefinition":function(e,t){var n=g(e,t.width,t.height,.2*t.height,{strokeWidth:2,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)});b(e,p.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,strokeLinecap:"square",stroke:(0,N.getStrokeColor)(t,d)});for(var r=0;r<12;r++){var i=p.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),a=t.width/2;b(e,i,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*r+","+t.height/2+","+a+")",stroke:(0,N.getStrokeColor)(t,d)})}return n},"bpmn:EscalationEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none",stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:ConditionalEventDefinition":function(e,t){return b(e,p.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:LinkEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none",stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:ErrorEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none",stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:CancelEventDefinition":function(e,t,n){var r=b(e,p.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none",stroke:(0,N.getStrokeColor)(t,d)});return(0,O.rotate)(r,45),r},"bpmn:CompensateEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none",stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:SignalEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none",stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:MultipleEventDefinition":function(e,t,n){return b(e,p.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:n?(0,N.getStrokeColor)(t,d):"none"})},"bpmn:ParallelMultipleEventDefinition":function(e,t){return b(e,p.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:EndEvent":function(e,t){var n=w("bpmn:Event")(e,t,{strokeWidth:4,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)});return E(t,e),n},"bpmn:TerminateEventDefinition":function(e,t){return g(e,t.width,t.height,8,{strokeWidth:4,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:IntermediateEvent":function(e,t){var n=w("bpmn:Event")(e,t,{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)});return g(e,t.width,t.height,j,{strokeWidth:1,fill:(0,N.getFillColor)(t,"none"),stroke:(0,N.getStrokeColor)(t,d)}),E(t,e),n},"bpmn:IntermediateCatchEvent":x("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":x("bpmn:IntermediateEvent"),"bpmn:Activity":function(e,t,n){return"fillOpacity"in(n=n||{})||(n.fillOpacity=B),v(e,t.width,t.height,F,n)},"bpmn:Task":function(e,t){var n={fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)},r=w("bpmn:Activity")(e,t,n);return S(e,t,"center-middle"),T(e,t),r},"bpmn:ServiceTask":function(e,t){var n=w("bpmn:Task")(e,t);return b(e,p.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),b(e,p.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}}),{strokeWidth:0,fill:(0,N.getFillColor)(t,u)}),b(e,p.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:UserTask":function(e,t){var n=w("bpmn:Task")(e,t);return b(e,p.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),b(e,p.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),b(e,p.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:ManualTask":function(e,t){var n=w("bpmn:Task")(e,t);return b(e,p.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:SendTask":function(e,t){var n=w("bpmn:Task")(e,t);return b(e,p.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getFillColor)(t,u)}),n},"bpmn:ReceiveTask":function(e,t){var n=(0,N.getSemantic)(t),r=w("bpmn:Task")(e,t);return b(e,n.instantiate?(g(e,28,28,4.4,{strokeWidth:1}),p.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):p.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),r},"bpmn:ScriptTask":function(e,t){var n=w("bpmn:Task")(e,t);return b(e,p.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{strokeWidth:1,stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:BusinessRuleTask":function(e,t){var n=w("bpmn:Task")(e,t),r=b(e,p.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}));(0,$.attr)(r,{strokeWidth:1,fill:(0,N.getFillColor)(t,"#aaaaaa"),stroke:(0,N.getStrokeColor)(t,d)});var i=b(e,p.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}));return(0,$.attr)(i,{strokeWidth:1,stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:SubProcess":function(e,t,n){n=(0,M.assign)({fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)},n);var r=w("bpmn:Activity")(e,t,n),i=(0,I.isExpanded)(t);return(0,I.isEventSubProcess)(t)&&(0,$.attr)(r,{strokeDasharray:"1,2"}),S(e,t,i?"center-top":"center-middle"),i?T(e,t):T(e,t,["SubProcessMarker"]),r},"bpmn:AdHocSubProcess":function(e,t){return w("bpmn:SubProcess")(e,t)},"bpmn:Transaction":function(e,t){var n=w("bpmn:SubProcess")(e,t),r=i.style(["no-fill","no-events"],{stroke:(0,N.getStrokeColor)(t,d)});return v(e,t.width,t.height,F-2,j,r),n},"bpmn:CallActivity":function(e,t){return w("bpmn:SubProcess")(e,t,{strokeWidth:5})},"bpmn:Participant":function(e,t){var n={fillOpacity:B,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)},r=w("bpmn:Lane")(e,t,n);(0,I.isExpanded)(t)?(y(e,[{x:30,y:0},{x:30,y:t.height}],{stroke:(0,N.getStrokeColor)(t,d)}),C(e,(0,N.getSemantic)(t).name,t)):k(e,(0,N.getSemantic)(t).name,{box:t,align:"center-middle",style:{fill:(0,N.getStrokeColor)(t,d)}});return!!(0,N.getSemantic)(t).participantMultiplicity&&w("ParticipantMultiplicityMarker")(e,t),r},"bpmn:Lane":function(e,t,n){var r=v(e,t.width,t.height,0,(0,M.assign)({fill:(0,N.getFillColor)(t,u),fillOpacity:V,stroke:(0,N.getStrokeColor)(t,d)},n)),i=(0,N.getSemantic)(t);"bpmn:Lane"===i.$type&&C(e,i.name,t);return r},"bpmn:InclusiveGateway":function(e,t){var n=w("bpmn:Gateway")(e,t);return g(e,t.width,t.height,.24*t.height,{strokeWidth:2.5,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:ExclusiveGateway":function(e,t){var n=w("bpmn:Gateway")(e,t),r=p.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return(0,N.getDi)(t).isMarkerVisible&&b(e,r,{strokeWidth:1,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:ComplexGateway":function(e,t){var n=w("bpmn:Gateway")(e,t);return b(e,p.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:ParallelGateway":function(e,t){var n=w("bpmn:Gateway")(e,t);return b(e,p.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)}),n},"bpmn:EventBasedGateway":function(e,t){var n=(0,N.getSemantic)(t),r=w("bpmn:Gateway")(e,t);g(e,t.width,t.height,.2*t.height,{strokeWidth:1,fill:"none",stroke:(0,N.getStrokeColor)(t,d)});var i,a,o=n.eventGatewayType,s=!!n.instantiate;if("Parallel"===o){var l=p.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),c=b(e,l);(0,$.attr)(c,{strokeWidth:1,fill:"none"})}else if("Exclusive"===o){if(!s){var u=g(e,t.width,t.height,.26*t.height);(0,$.attr)(u,{strokeWidth:1,fill:"none",stroke:(0,N.getStrokeColor)(t,d)})}i=p.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}}),a={strokeWidth:2,fill:(0,N.getFillColor)(t,"none"),stroke:(0,N.getStrokeColor)(t,d)},b(e,i,a)}return r},"bpmn:Gateway":function(e,t){var n={fill:(0,N.getFillColor)(t,u),fillOpacity:B,stroke:(0,N.getStrokeColor)(t,d)};return function(e,t,n,r){var i=t/2,a=n/2,o=[{x:i,y:0},{x:t,y:a},{x:i,y:n},{x:0,y:a}].map(function(e){return e.x+","+e.y}).join(" ");r=c(r,{stroke:"black",strokeWidth:2,fill:"white"});var s=(0,$.create)("polygon");return(0,$.attr)(s,{points:o}),(0,$.attr)(s,r),(0,$.append)(e,s),s}(e,t.width,t.height,n)},"bpmn:SequenceFlow":function(e,t){var n,r=A(t),i=(0,N.getFillColor)(t,u),a=(0,N.getStrokeColor)(t,d),o=b(e,r,{strokeLinejoin:"round",markerEnd:h("sequenceflow-end",i,a),stroke:(0,N.getStrokeColor)(t,d)}),s=(0,N.getSemantic)(t);return t.source&&(n=t.source.businessObject,s.conditionExpression&&n.$instanceOf("bpmn:Activity")&&(0,$.attr)(o,{markerStart:h("conditional-flow-marker",i,a)}),n.default&&(n.$instanceOf("bpmn:Gateway")||n.$instanceOf("bpmn:Activity"))&&n.default===s&&(0,$.attr)(o,{markerStart:h("conditional-default-flow-marker",i,a)})),o},"bpmn:Association":function(e,t,n){var r=(0,N.getSemantic)(t),i=(0,N.getFillColor)(t,u),a=(0,N.getStrokeColor)(t,d);return n=(0,M.assign)({strokeDasharray:"0.5, 5",strokeLinecap:"round",strokeLinejoin:"round",stroke:(0,N.getStrokeColor)(t,d)},n||{}),"One"!==r.associationDirection&&"Both"!==r.associationDirection||(n.markerEnd=h("association-end",i,a)),"Both"===r.associationDirection&&(n.markerStart=h("association-start",i,a)),y(e,t.waypoints,n)},"bpmn:DataInputAssociation":function(e,t){var n=(0,N.getFillColor)(t,u),r=(0,N.getStrokeColor)(t,d);return w("bpmn:Association")(e,t,{markerEnd:h("association-end",n,r)})},"bpmn:DataOutputAssociation":function(e,t){var n=(0,N.getFillColor)(t,u),r=(0,N.getStrokeColor)(t,d);return w("bpmn:Association")(e,t,{markerEnd:h("association-end",n,r)})},"bpmn:MessageFlow":function(e,t){var n=(0,N.getSemantic)(t),r=(0,N.getDi)(t),i=(0,N.getFillColor)(t,u),a=(0,N.getStrokeColor)(t,d),o=b(e,A(t),{markerEnd:h("messageflow-end",i,a),markerStart:h("messageflow-start",i,a),strokeDasharray:"10, 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px",stroke:(0,N.getStrokeColor)(t,d)});if(n.messageRef){var s=o.getPointAtLength(o.getTotalLength()/2),l=p.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:s.x,y:s.y}}),c={strokeWidth:1};"initiating"===r.messageVisibleKind?(c.fill="white",c.stroke="black"):(c.fill="#888",c.stroke="white"),b(e,l,c)}return o},"bpmn:DataObject":function(e,t){var n,r,i,a,o=b(e,p.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:(0,N.getFillColor)(t,u),fillOpacity:B,stroke:(0,N.getStrokeColor)(t,d)}),s=(0,N.getSemantic)(t);return(0,N.isCollection)(s)&&(n=e,i=((r=t).height-16)/r.height,a=p.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:r.height,position:{mx:.451,my:i}}),b(n,a,{strokeWidth:2})),o},"bpmn:DataObjectReference":x("bpmn:DataObject"),"bpmn:DataInput":function(e,t){var n=p.getRawPath("DATA_ARROW"),r=w("bpmn:DataObject")(e,t);return b(e,n,{strokeWidth:1}),r},"bpmn:DataOutput":function(e,t){var n=p.getRawPath("DATA_ARROW"),r=w("bpmn:DataObject")(e,t);return b(e,n,{strokeWidth:1,fill:"black"}),r},"bpmn:DataStoreReference":function(e,t){return b(e,p.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:(0,N.getFillColor)(t,u),fillOpacity:B,stroke:(0,N.getStrokeColor)(t,d)})},"bpmn:BoundaryEvent":function(e,t){var n=(0,N.getSemantic)(t).cancelActivity,r={strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)};n||(r.strokeDasharray="6",r.strokeLinecap="round");var i=(0,M.assign)({},r,{fillOpacity:1}),a=(0,M.assign)({},r,{fill:"none"}),o=w("bpmn:Event")(e,t,i);return g(e,t.width,t.height,j,a),E(t,e),o},"bpmn:Group":function(e,t){var n=(0,N.getSemantic)(t),r=(0,N.getDi)(t),i=v(e,t.width,t.height,F,{strokeWidth:1,strokeDasharray:"8,3,1,3",fill:"none",pointerEvents:"none"}),a=n.categoryValueRef||{};if(a.value){var o=r.label?r.label.bounds:t;k(e,a.value,{box:o,style:{fill:(0,N.getStrokeColor)(t,d)}})}return i},label:function(e,t){return n=e,r=t,i=(0,N.getSemantic)(r),a={width:90,height:30,x:r.width/2+r.x,y:r.height/2+r.y},k(n,i.name,{box:a,fitBox:!0,style:(0,M.assign)({},o.getExternalStyle(),{fill:(0,N.getStrokeColor)(r,d)})});var n,r,i,a},"bpmn:TextAnnotation":function(e,t){var n=v(e,t.width,t.height,0,0,{fill:"none",stroke:"none"});return b(e,p.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}}),{stroke:(0,N.getStrokeColor)(t,d)}),k(e,(0,N.getSemantic)(t).text||"",{box:t,align:"left-top",padding:5,style:{fill:(0,N.getStrokeColor)(t,d)}}),n},ParticipantMultiplicityMarker:function(e,t){r("participant-multiplicity",e,p.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:t.width/2/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)})},SubProcessMarker:function(e,t){var n=v(e,14,14,0,{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)});(0,O.translate)(n,t.width/2-7.5,t.height-20),r("sub-process",e,p.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)})},ParallelMarker:function(e,t,n){r("parallel",e,p.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.parallel)/t.width,my:(t.height-20)/t.height}}),{fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)})},SequentialMarker:function(e,t,n){r("sequential",e,p.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)})},CompensationMarker:function(e,t,n){r("compensation",e,p.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d)})},LoopMarker:function(e,t,n){r("loop",e,p.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.loop)/t.width,my:(t.height-7)/t.height}}),{strokeWidth:1,fill:(0,N.getFillColor)(t,u),stroke:(0,N.getStrokeColor)(t,d),strokeLinecap:"round",strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){r("adhoc",e,p.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.adhoc)/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:(0,N.getStrokeColor)(t,d),stroke:(0,N.getStrokeColor)(t,d)})}};function T(t,n,e){var r,i=(0,N.getSemantic)(n),a=e&&-1!==e.indexOf("SubProcessMarker");r=a?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},(0,M.forEach)(e,function(e){w(e)(t,n,r)}),i.isForCompensation&&w("CompensationMarker")(t,n,r),"bpmn:AdHocSubProcess"===i.$type&&w("AdhocMarker")(t,n,r);var o=i.loopCharacteristics,s=o&&o.isSequential;o&&(void 0===s&&w("LoopMarker")(t,n,r),!1===s&&w("ParallelMarker")(t,n,r),!0===s&&w("SequentialMarker")(t,n,r))}this._drawPath=b}(0,r.default)(o,D.default),o.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],o.prototype.canRender=function(e){return(0,i.is)(e,"bpmn:BaseElement")},o.prototype.drawShape=function(e,t){var n=t.type;return(0,this.handlers[n])(e,t)},o.prototype.drawConnection=function(e,t){var n=t.type;return(0,this.handlers[n])(e,t)},o.prototype.getShapePath=function(e){return(0,i.is)(e,"bpmn:Event")?(0,N.getCirclePath)(e):(0,i.is)(e,"bpmn:Activity")?(0,N.getRoundRectPath)(e,F):((0,i.is)(e,"bpmn:Gateway")?(0,N.getDiamondPath):(0,N.getRectPath))(e)}},{"../util/DiUtil":90,"../util/ModelUtil":92,"./BpmnRenderUtil":80,"core-js/modules/es.string.replace":188,"diagram-js/lib/draw/BaseRenderer":197,"diagram-js/lib/util/RenderUtil":238,"diagram-js/lib/util/SvgTransformUtil":239,ids:94,inherits:255,"min-dash":256,"min-dom":257,"tiny-svg":266}],82:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m {mx}, {my} m 0 15 l 0 -15 m 4 15 l 0 -15 m 4 15 l 0 -15 ",height:61,width:51,heightElements:[12],widthElements:[1,6,12,15]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,r,i=this.pathMap[e];r=t.abspos?(n=t.abspos.x,t.abspos.y):(n=t.containerWidth*t.position.mx,t.containerHeight*t.position.my);var a,o,s={};if(t.position){for(var l=t.containerHeight/i.height*t.yScaleFactor,c=t.containerWidth/i.width*t.xScaleFactor,u=0;u<i.heightElements.length;u++)s["y"+u]=i.heightElements[u]*l;for(var p=0;p<i.widthElements.length;p++)s["x"+p]=i.widthElements[p]*c}return a=i.d,o={mx:n,my:r,e:s},String(a).replace(d,function(e,t){return n=e,a=r=o,t.replace(m,function(e,t,n,r,i){t=t||r,a&&(t in a&&(a=a[t]),"function"==typeof a&&i&&(a=a()))}),a=(null==a||a==r?n:a)+"";var n,r,a})}};var d=/\{([^}]+)\}/g,m=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g},{"core-js/modules/es.string.replace":188}],83:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r,o=e("min-dash"),s=(r=e("diagram-js/lib/util/Text"))&&r.__esModule?r:{default:r};var l=12,c=1.2,u=30;function i(e){var r=(0,o.assign)({fontFamily:"Arial, sans-serif",fontSize:l,fontWeight:"normal",lineHeight:c},e&&e.defaultStyle||{}),t=parseInt(r.fontSize,10)-1,i=(0,o.assign)({},r,{fontSize:t},e&&e.externalStyle||{}),a=new s.default({style:r});this.getExternalLabelBounds=function(e,t){var n=a.getDimensions(t,{box:{width:90,height:30,x:e.width/2+e.x,y:e.height/2+e.y},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,t){var n=a.getDimensions(t,{box:e,style:r,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(u,Math.round(n.height))}},this.createText=function(e,t){return a.createText(e,t||{})},this.getDefaultStyle=function(){return r},this.getExternalStyle=function(){return i}}i.$inject=["config.textRenderer"]},{"diagram-js/lib/util/Text":240,"min-dash":256}],84:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("./BpmnRenderer")),i=o(e("./TextRenderer")),a=o(e("./PathMap"));function o(e){return e&&e.__esModule?e:{default:e}}var s={__init__:["bpmnRenderer"],bpmnRenderer:["type",r.default],textRenderer:["type",i.default],pathMap:["type",a.default]};n.default=s},{"./BpmnRenderer":81,"./PathMap":82,"./TextRenderer":83}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=e("min-dash"),y=e("../util/ModelUtil"),b=e("../util/LabelUtil"),x=e("diagram-js/lib/layout/LayoutUtil"),w=e("../util/DiUtil"),E=e("./Util");function k(e,t){return(0,r.assign)({id:e.id,type:e.$type,businessObject:e},t)}function o(e,t,n,r){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:(0,E.elementToString)(n),referenced:(0,E.elementToString)(t),property:r}))}function i(e,t,n,r,i,a){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=r,this._translate=i,this._textRenderer=a}i.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],i.prototype.add=function(e,t){var n,r,i,a,o,s,l,c,u,p,d=e.di,m=this._translate;if((0,y.is)(d,"bpmndi:BPMNPlane"))n=this._elementFactory.createRoot(k(e)),this._canvas.setRootElement(n);else if((0,y.is)(d,"bpmndi:BPMNShape")){var f=!(0,w.isExpanded)(e);r=t&&(t.hidden||t.collapsed);var h=e.di.bounds;n=this._elementFactory.createShape(k(e,{collapsed:f,hidden:r,x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height)})),(0,y.is)(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,n),(0,y.is)(e,"bpmn:Lane")&&(i=0),(0,y.is)(e,"bpmn:DataStoreReference")&&(l=t,c=(0,x.getMid)(h),u=c.x,p=c.y,u>=l.x&&u<=l.x+l.width&&p>=l.y&&p<=l.y+l.height||(t=this._canvas.getRootElement())),this._canvas.addShape(n,t,i)}else{if(!(0,y.is)(d,"bpmndi:BPMNEdge"))throw new Error(m("unknown di {di} for element {semantic}",{di:(0,E.elementToString)(d),semantic:(0,E.elementToString)(e)}));var g=this._getSource(e),v=this._getTarget(e);r=t&&(t.hidden||t.collapsed),n=this._elementFactory.createConnection(k(e,{hidden:r,source:g,target:v,waypoints:(a=g,o=v,!(s=e.di.waypoint)||s.length<2?[(0,x.getMid)(a),(0,x.getMid)(o)]:s.map(function(e){return{x:e.x,y:e.y}}))})),(0,y.is)(e,"bpmn:DataAssociation")&&(t=null),(0,y.is)(e,"bpmn:SequenceFlow")&&(i=0),this._canvas.addConnection(n,t,i)}return(0,b.isLabelExternal)(e)&&e.name&&this.addLabel(e,n),this._eventBus.fire("bpmnElement.added",{element:n}),n},i.prototype._attachBoundary=function(e,t){var n=this._translate,r=e.attachedToRef;if(!r)throw new Error(n("missing {semantic}#attachedToRef",{semantic:(0,E.elementToString)(e)}));var i=this._elementRegistry.get(r.id),a=i&&i.attachers;if(!i)throw o(n,e,r,"attachedToRef");t.host=i,a||(i.attachers=a=[]),-1===a.indexOf(t)&&a.push(t)},i.prototype.addLabel=function(e,t){var n,r,i;return n=(0,b.getExternalLabelBounds)(e,t),(r=e.name)&&(n=this._textRenderer.getExternalLabelBounds(n,r)),i=this._elementFactory.createLabel(k(e,{id:e.id+"_label",labelTarget:t,type:"label",hidden:t.hidden||!e.name,x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)})),this._canvas.addShape(i,t.parent)},i.prototype._getEnd=function(e,t){var n,r,i=e.$type,a=this._translate;if(r=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===i&&(r=r&&r[0]),("source"===t&&"bpmn:DataOutputAssociation"===i||"target"===t&&"bpmn:DataInputAssociation"===i)&&(r=e.$parent),n=r&&this._getElement(r))return n;throw r?o(a,e,r,t+"Ref"):new Error(a("{semantic}#{side} Ref not specified",{semantic:(0,E.elementToString)(e),side:t}))},i.prototype._getSource=function(e){return this._getEnd(e,"source")},i.prototype._getTarget=function(e){return this._getEnd(e,"target")},i.prototype._getElement=function(e){return this._elementRegistry.get(e.id)}},{"../util/DiUtil":90,"../util/LabelUtil":91,"../util/ModelUtil":92,"./Util":88,"diagram-js/lib/layout/LayoutUtil":217,"min-dash":256}],86:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(d,m){var f={},h=[];function g(t,n){return function(e){t(e,n)}}function r(e){f[e.id]=e}function o(t,e){try{var n=t.di&&function(e,t){if(e.gfx)throw new Error(m("already rendered {element}",{element:(0,M.elementToString)(e)}));return d.element(e,t)}(t,e);return r(t),n}catch(e){v(e.message,{element:t,error:e}),console.error(m("failed to import {element}",{element:(0,M.elementToString)(t)})),console.error(e)}}function v(e,t){d.error(e,t)}function y(e){var t=e.bpmnElement;t?t.di?v(m("multiple DI elements defined for {element}",{element:(0,M.elementToString)(t)}),{element:t}):(D.bind(t,"di"),t.di=e):v(m("no bpmnElement referenced in {element}",{element:(0,M.elementToString)(e)}),{element:e})}function b(e){var t;y(t=e.plane),(0,T.forEach)(t.planeElement,n)}function n(e){y(e)}function x(){for(;h.length;)h.shift()()}function w(e,t){A(e,t),c(e.ioSpecification,t),k(e.artifacts,t),r(e)}function E(e,t){o(e,t)}function s(e,t){o(e,t)}function i(e,t){o(e,t)}function a(e,t){o(e,t)}function l(e,t){o(e,t)}function k(e,t){(0,T.forEach)(e,function(e){I(e,"bpmn:Association")?h.push(function(){l(e,t)}):l(e,t)})}function c(e,t){e&&((0,T.forEach)(e.dataInputs,g(i,t)),(0,T.forEach)(e.dataOutputs,g(a,t)))}function u(e,t){A(e,t),k(e.artifacts,t)}function p(e,t){o(e,t)}function S(t,r){h.push(function(){var n,e=o(t,r);t.childLaneSet&&C(t.childLaneSet,e||r),n=t,(0,T.forEach)(n.flowNodeRef,function(e){var t=e.get("lanes");t&&t.push(n)})})}function C(e,t){(0,T.forEach)(e.lanes,g(S,t))}function A(e,t){var n,i,r,a;n=e.flowElements,i=t,(0,T.forEach)(n,function(e){var t,n,r;I(e,"bpmn:SequenceFlow")?h.push(function(){o(e,i)}):I(e,"bpmn:BoundaryEvent")?h.unshift(function(){o(e,i)}):I(e,"bpmn:FlowNode")?(r=o(t=e,n=i),I(t,"bpmn:SubProcess")&&u(t,r||n),I(t,"bpmn:Activity")&&c(t.ioSpecification,n),h.push(function(){(0,T.forEach)(t.dataInputAssociations,g(s,n)),(0,T.forEach)(t.dataOutputAssociations,g(s,n))})):I(e,"bpmn:DataObject")||(I(e,"bpmn:DataStoreReference")||I(e,"bpmn:DataObjectReference")?p(e,i):v(m("unrecognized flowElement {element} in context {context}",{element:(0,M.elementToString)(e),context:i?(0,M.elementToString)(i.businessObject):"null"}),{element:e,context:i}))}),e.laneSets&&(r=e.laneSets,a=t,(0,T.forEach)(r,g(C,a)))}function _(e,t){var n=o(e,t),r=e.processRef;r&&w(r,n||t)}return{handleDeferred:x,handleDefinitions:function(e,t){var n=e.diagrams;if(t&&-1===n.indexOf(t))throw new Error(m("diagram not part of bpmn:Definitions"));if(!t&&n&&n.length&&(t=n[0]),!t)throw new Error(m("no diagram to display"));b(t);var r=t.plane;if(!r)throw new Error(m("no plane for {element}",{element:(0,M.elementToString)(t)}));var i,a=r.bpmnElement;if(!a){if(i=e,!(a=(0,T.find)(i.rootElements,function(e){return I(e,"bpmn:Process")||I(e,"bpmn:Collaboration")})))throw new Error(m("no process or collaboration to display"));v(m("correcting missing bpmnElement on {plane} to {rootElement}",{plane:(0,M.elementToString)(r),rootElement:(0,M.elementToString)(a)})),r.bpmnElement=a,y(r)}var o,s,l,c,u,p=(o=a,s=r,d.root(o,s));if(I(a,"bpmn:Process"))w(a,p);else{if(!I(a,"bpmn:Collaboration"))throw new Error(m("unsupported bpmnElement for {plane}: {rootElement}",{plane:(0,M.elementToString)(r),rootElement:(0,M.elementToString)(a)}));u=a,(0,T.forEach)(u.participants,g(_)),k(u.artifacts),h.push(function(){var e,t;e=u.messageFlows,(0,T.forEach)(e,g(E,t))}),l=e.rootElements,c=p,(0,T.filter)(l,function(e){return!f[e.id]&&I(e,"bpmn:Process")&&e.laneSets}).forEach(g(w,c))}x()},handleSubProcess:u,registerDi:y}};var r,T=e("min-dash"),i=(r=e("object-refs"))&&r.__esModule?r:{default:r},M=e("./Util");var D=new i.default({name:"bpmnElement",enumerable:!0},{name:"di",configurable:!0});function I(e,t){return e.$instanceOf(t)}},{"./Util":88,"min-dash":256,"object-refs":261}],87:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.importBpmnDiagram=function(e,t,n,r){(0,u.isFunction)(n)&&(r=n,n=null);var i,a,o,s,l=[];try{i=e.get("bpmnImporter"),a=e.get("eventBus"),o=e.get("translate"),a.fire("import.render.start",{definitions:t}),function(e,t){var n={root:function(e){return i.add(e)},element:function(e,t){return i.add(e,t)},error:function(e,t){l.push({message:e,context:t})}};new c.default(n,o).handleDefinitions(e,t)}(t,n),a.fire("import.render.complete",{error:s,warnings:l})}catch(e){s=e}r(s,l)};var r,c=(r=e("./BpmnTreeWalker"))&&r.__esModule?r:{default:r},u=e("min-dash")},{"./BpmnTreeWalker":86,"min-dash":256}],88:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.elementToString=function(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}},{}],89:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("diagram-js/lib/i18n/translate")),i=a(e("./BpmnImporter"));function a(e){return e&&e.__esModule?e:{default:e}}var o={__depends__:[r.default],bpmnImporter:["type",i.default]};n.default=o},{"./BpmnImporter":85,"diagram-js/lib/i18n/translate":215}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isExpanded=function(e){if((0,i.is)(e,"bpmn:CallActivity"))return!1;if((0,i.is)(e,"bpmn:SubProcess"))return!!(0,i.getBusinessObject)(e).di.isExpanded;if((0,i.is)(e,"bpmn:Participant"))return!!(0,i.getBusinessObject)(e).processRef;return!0},n.isInterrupting=function(e){return e&&!1!==(0,i.getBusinessObject)(e).isInterrupting},n.isEventSubProcess=function(e){return e&&!!(0,i.getBusinessObject)(e).triggeredByEvent},n.hasEventDefinition=r,n.hasErrorEventDefinition=function(e){return r(e,"bpmn:ErrorEventDefinition")},n.hasEscalationEventDefinition=function(e){return r(e,"bpmn:EscalationEventDefinition")},n.hasCompensateEventDefinition=function(e){return r(e,"bpmn:CompensateEventDefinition")};var i=e("./ModelUtil"),a=e("min-dash");function r(e,t){var n=(0,i.getBusinessObject)(e),r=!1;return n.eventDefinitions&&(0,a.forEach)(n.eventDefinitions,function(e){(0,i.is)(e,t)&&(r=!0)}),r}},{"./ModelUtil":92,"min-dash":256}],91:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isLabelExternal=function(e){return(0,r.is)(e,"bpmn:Event")||(0,r.is)(e,"bpmn:Gateway")||(0,r.is)(e,"bpmn:DataStoreReference")||(0,r.is)(e,"bpmn:DataObjectReference")||(0,r.is)(e,"bpmn:DataInput")||(0,r.is)(e,"bpmn:DataOutput")||(0,r.is)(e,"bpmn:SequenceFlow")||(0,r.is)(e,"bpmn:MessageFlow")},n.hasExternalLabel=function(e){return a(e.label)},n.getFlowLabelPosition=i,n.getWaypointsMid=c,n.getExternalLabelMid=u,n.getExternalLabelBounds=function(e,t){var n,r,i,a=e.di.label;a&&a.bounds?(i=a.bounds,r={width:Math.max(s.width,i.width),height:i.height},n={x:i.x+i.width/2,y:i.y+i.height/2}):(n=u(t),r=s);return(0,o.assign)({x:n.x-r.width/2,y:n.y-r.height/2},r)},n.isLabel=a,n.FLOW_LABEL_INDENT=n.DEFAULT_LABEL_SIZE=void 0;var o=e("min-dash"),r=e("./ModelUtil"),s={width:90,height:20};n.DEFAULT_LABEL_SIZE=s;var l=15;function i(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(.01+t)],i=c(e),a=Math.atan((r.y-n.y)/(r.x-n.x)),o=i.x,s=i.y;return Math.abs(a)<Math.PI/2?s-=l:o+=l,{x:o,y:s}}function c(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(.01+t)];return{x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2}}function u(e){return e.waypoints?i(e.waypoints):{x:e.x+e.width/2,y:e.y+e.height+s.height/2}}function a(e){return e&&e.labelTarget}n.FLOW_LABEL_INDENT=l},{"./ModelUtil":92,"min-dash":256}],92:[function(e,t,n){"use strict";function r(e){return e&&e.businessObject||e}Object.defineProperty(n,"__esModule",{value:!0}),n.is=function(e,t){var n=r(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)},n.getBusinessObject=r},{}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.open=function(){o||(o=(0,r.domify)(s),r.delegate.bind(o,".backdrop","click",function(e){document.body.removeChild(o)}));document.body.appendChild(o)},n.BPMNIO_IMG=void 0;var r=e("min-dom"),i='<img width="52" height="52" src="'+("data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 960"><path fill="#fff" d="M960 60v839c0 33-27 61-60 61H60c-33 0-60-27-60-60V60C0 27 27 0 60 0h839c34 0 61 27 61 60z"/><path fill="#52b415" d="M217 548a205 205 0 0 0-144 58 202 202 0 0 0-4 286 202 202 0 0 0 285 3 200 200 0 0 0 48-219 203 203 0 0 0-185-128zM752 6a206 206 0 0 0-192 285 206 206 0 0 0 269 111 207 207 0 0 0 111-260A204 204 0 0 0 752 6zM62 0A62 62 0 0 0 0 62v398l60 46a259 259 0 0 1 89-36c5-28 10-57 14-85l99 2 12 85a246 246 0 0 1 88 38l70-52 69 71-52 68c17 30 29 58 35 90l86 14-2 100-86 12a240 240 0 0 1-38 89l43 58h413c37 0 60-27 60-61V407a220 220 0 0 1-44 40l21 85-93 39-45-76a258 258 0 0 1-98 1l-45 76-94-39 22-85a298 298 0 0 1-70-69l-86 22-38-94 76-45a258 258 0 0 1-1-98l-76-45 40-94 85 22a271 271 0 0 1 41-47z"/></svg>'))+'" />';function a(e){return e.join(";")}n.BPMNIO_IMG=i;var o,s='<div class="bjs-powered-by-lightbox" style="'+a(["z-index: 1001","position: fixed","top: 0","left: 0","right: 0","bottom: 0"])+'"><div class="backdrop" style="'+a(["width: 100%","height: 100%","background: rgba(0,0,0,0.2)"])+'"></div><div class="notice" style="'+a(["position: absolute","left: 50%","top: 40%","margin: 0 -130px","width: 260px","padding: 10px","background: white","border: solid 1px #AAA","border-radius: 3px","font-family: Helvetica, Arial, sans-serif","font-size: 14px","line-height: 1.2em"])+'"><a href="http://bpmn.io" target="_blank" style="float: left; margin-right: 10px">'+i+'</a>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="http://bpmn.io" target="_blank">bpmn.io</a>.</div></div>'},{"min-dom":257}],94:[function(e,t,n){"use strict";var r=e("hat");function i(e){if(!(this instanceof i))return new i(e);e=e||[128,36,1],this._seed=e.length?r.rack(e[0],e[1],e[2]):e}(t.exports=i).prototype.next=function(e){return this._seed(e||!0)},i.prototype.nextPrefixed=function(e,t){for(var n;n=e+this.next(!0),this.assigned(n););return this.claim(n,t),n},i.prototype.claim=function(e,t){this._seed.set(e,t||!0)},i.prototype.assigned=function(e){return this._seed.get(e)||!1},i.prototype.unclaim=function(e){delete this._seed.hats[e]},i.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)}},{hat:253}],95:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i.default}});var r,i=(r=e("./lib/simple"))&&r.__esModule?r:{default:r}},{"./lib/simple":97}],96:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var r,o=e("min-dash"),i=(r=e("moddle"))&&r.__esModule?r:{default:r},s=e("moddle-xml");function a(e,t){i.default.call(this,e,t)}(a.prototype=Object.create(i.default.prototype)).fromXML=function(e,t,n,r){(0,o.isString)(t)||(r=n,n=t,t="bpmn:Definitions"),(0,o.isFunction)(n)&&(r=n,n={});var i=new s.Reader((0,o.assign)({model:this,lax:!0},n)),a=i.handler(t);i.fromXML(e,a,r)},a.prototype.toXML=function(e,t,n){(0,o.isFunction)(t)&&(n=t,t={});var r,i,a=new s.Writer(t);try{r=a.toXML(e)}catch(e){i=e}return n(i,r)}},{"min-dash":256,moddle:102,"moddle-xml":98}],97:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n=(0,r.assign)({},p,e);return new i.default(n,t)};var r=e("min-dash"),i=u(e("./bpmn-moddle")),a=u(e("../resources/bpmn/json/bpmn.json")),o=u(e("../resources/bpmn/json/bpmndi.json")),s=u(e("../resources/bpmn/json/dc.json")),l=u(e("../resources/bpmn/json/di.json")),c=u(e("../resources/bpmn-io/json/bioc.json"));function u(e){return e&&e.__esModule?e:{default:e}}var p={bpmn:a.default,bpmndi:o.default,dc:s.default,di:l.default,bioc:c.default}},{"../resources/bpmn-io/json/bioc.json":111,"../resources/bpmn/json/bpmn.json":112,"../resources/bpmn/json/bpmndi.json":113,"../resources/bpmn/json/dc.json":114,"../resources/bpmn/json/di.json":115,"./bpmn-moddle":96,"min-dash":256}],98:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Reader",{enumerable:!0,get:function(){return r.Reader}}),Object.defineProperty(n,"Writer",{enumerable:!0,get:function(){return i.Writer}});var r=e("./lib/read"),i=e("./lib/write")},{"./lib/read":100,"./lib/write":101}],99:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasLowerCaseAlias=function(e){return e.xml&&"lowerCase"===e.xml.tagAlias},n.serializeAsType=function(e){return i(e)===r},n.serializeAsProperty=function(e){return"property"===i(e)},n.XSI_TYPE=n.DEFAULT_NS_MAP=void 0;n.DEFAULT_NS_MAP={xsi:"http://www.w3.org/2001/XMLSchema-instance"};var r="xsi:type";function i(e){return e.xml&&e.xml.serialize}n.XSI_TYPE=r},{}],100:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Context=y,n.ElementHandler=A,n.Reader=m;var r,x=e("min-dash"),v=e("saxen"),i=(r=e("moddle"))&&r.__esModule?r:{default:r},w=e("moddle/lib/ns"),c=e("moddle/lib/types"),E=e("./common");function k(e,t){return(0,E.hasLowerCaseAlias)(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function S(e){return new Error(e)}function C(e){return e.$descriptor}function y(e){(0,x.assign)(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw S("expected element");var t,n=this.elementsById,r=C(e).idProperty;if(r&&(t=e.get(r.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw S("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function a(){}function b(){}function o(){}function s(e,t){this.property=e,this.context=t}function l(e,t){this.element=t,this.propertyDesc=e}function u(){}function A(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function p(e,t,n){A.call(this,e,t,n)}function d(e,t,n){this.model=e,this.context=n}function m(e){e instanceof i.default&&(e={model:e}),(0,x.assign)(this,{lax:!1},e)}a.prototype.handleEnd=function(){},a.prototype.handleText=function(){},a.prototype.handleNode=function(){},(b.prototype=Object.create(a.prototype)).handleNode=function(){return this},(o.prototype=Object.create(a.prototype)).handleText=function(e){this.body=(this.body||"")+e},(s.prototype=Object.create(o.prototype)).handleNode=function(e){if(this.element)throw S("expected no sub nodes");return this.element=this.createReference(e),this},s.prototype.handleEnd=function(){this.element.id=this.body},s.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},(l.prototype=Object.create(o.prototype)).handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=(0,c.coerceType)(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},(u.prototype=Object.create(o.prototype)).handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},(A.prototype=Object.create(u.prototype)).addReference=function(e){this.context.addReference(e)},A.prototype.handleText=function(e){if(!C(this.element).bodyProperty)throw S("unexpected body text <"+e+">");o.prototype.handleText.call(this,e)},A.prototype.handleEnd=function(){var e=this.body,t=this.element,n=C(t).bodyProperty;n&&void 0!==e&&(e=(0,c.coerceType)(n.type,e),t.set(n.name,e))},A.prototype.createElement=function(e){var i,t=e.attributes,n=this.type,a=C(n),o=this.context,s=new n({}),l=this.model;return(0,x.forEach)(t,function(e,t){var n,r=a.propertiesByName[t];r&&r.isReference?r.isMany?(n=e.split(" "),(0,x.forEach)(n,function(e){o.addReference({element:s,property:r.ns.name,id:e})})):o.addReference({element:s,property:r.ns.name,id:e}):(r?e=(0,c.coerceType)(r.type,e):"xmlns"!==t&&(i=(0,w.parseName)(t,a.ns.prefix),l.getPackage(i.prefix)&&o.addWarning({message:"unknown attribute <"+t+">",element:s,property:t,value:e})),s.set(t,e))}),s},A.prototype.getPropertyForNode=function(e){var t,n,r,i,a,o,s,l,c,u,p,d=e.name,m=(0,w.parseName)(d),f=this.type,h=this.model,g=C(f),v=m.name,y=g.propertiesByName[v];if(y)return(0,E.serializeAsType)(y)&&(t=e.attributes[E.XSI_TYPE])?(r=t,i=h,u=(0,w.parseName)(r),p=i.getPackage(u.prefix),o=p,s=(a=u).name,l=a.localName,t=(c=o.xml&&o.xml.typePrefix)&&0===l.indexOf(c)?a.prefix+":"+l.slice(c.length):s,n=h.getType(t),(0,x.assign)({},y,{effectiveType:C(n).name})):y;var b=h.getPackage(m.prefix);if(b){if(t=k(m,b),n=h.getType(t),y=(0,x.find)(g.properties,function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)}))return(0,x.assign)({},y,{effectiveType:C(n).name})}else if(y=(0,x.find)(g.properties,function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type}))return y;throw S("unrecognized element <"+m.name+">")},A.prototype.toString=function(){return"ElementDescriptor["+C(this.type).name+"]"},A.prototype.valueHandler=function(e,t){return new l(e,t)},A.prototype.referenceHandler=function(e){return new s(e,this.context)},A.prototype.handler=function(e){return new("Element"===e?d:A)(this.model,e,this.context)},A.prototype.handleChild=function(e){var t,n,r,i;if(t=this.getPropertyForNode(e),r=this.element,n=t.effectiveType||t.type,(0,c.isSimple)(n))return this.valueHandler(t,r);var a=(i=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==a&&(t.isMany?r.get(t.name).push(a):r.set(t.name,a),t.isReference?((0,x.assign)(a,{element:r}),this.context.addReference(a)):a.$parent=r),i},(p.prototype=Object.create(A.prototype)).createElement=function(e){var t=e.name,n=(0,w.parseName)(t),r=this.model,i=this.type,a=r.getPackage(n.prefix),o=a&&k(n,a)||t;if(!i.hasType(o))throw S("unexpected element <"+e.originalName+">");return A.prototype.createElement.call(this,e)},(d.prototype=Object.create(u.prototype)).createElement=function(e){var t=e.name,n=(0,w.parseName)(t).prefix,r=e.ns[n+"$uri"],i=e.attributes;return this.model.createAny(t,r,i)},d.prototype.handleChild=function(e){var t=new d(this.model,0,this.context).handleNode(e),n=this.element,r=t.element;return void 0!==r&&((n.$children=n.$children||[]).push(r),r.$parent=n),t},d.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},m.prototype.fromXML=function(n,e,r){var i=e.rootHandler;e instanceof A?(i=e,e={}):"string"==typeof e?(i=this.handler(e),e={}):"string"==typeof i&&(i=this.handler(i));var t,a=this.model,o=this.lax,c=new y((0,x.assign)({},e,{rootHandler:i})),s=new v.Parser({proxy:!0}),l=(t=[],Object.defineProperty(t,"peek",{value:function(){return this[this.length-1]}}),t);function u(e,t,n){var r=t(),i=r.line,a=r.column,o=r.data;"<"===o.charAt(0)&&-1!==o.indexOf(" ")&&(o=o.slice(0,o.indexOf(" "))+">");var s="unparsable content "+(o?o+" ":"")+"detected\n\tline: "+i+"\n\tcolumn: "+a+"\n\tnested error: "+e.message;if(n)return c.addWarning({message:s,error:e}),!0;throw S(s)}function p(e,t){return u(e,t,!0)}i.context=c,l.push(i);var d=/^<\?xml /i,m=/ encoding="([^"]+)"/i,f=/^utf-8$/i;function h(e,t){try{l.peek().handleText(e)}catch(e){p(e,t)}}var g=a.getPackages().reduce(function(e,t){return e[t.uri]=t.prefix,e},{});s.ns(g).on("openTag",function(e,r,t,n){var i=e.attrs||{},a=Object.keys(i).reduce(function(e,t){var n=r(i[t]);return e[t]=n,e},{});!function(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){u(e,t,o)&&l.push(new b)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},n)}).on("question",function(e){if(d.test(e)){var t=m.exec(e),n=t&&t[1];n&&!f.test(n)&&c.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}}).on("closeTag",function(){l.pop().handleEnd()}).on("cdata",h).on("text",function(e,t,n){var r,i;r=t(e),i=n,(r=r.trim())&&h(r,i)}).on("error",u).on("warn",p),setTimeout(function(){var t;try{s.parse(n),function(){var e,t,n=c.elementsById,r=c.references;for(e=0;t=r[e];e++){var i=t.element,a=n[t.id],o=C(i).propertiesByName[t.property];if(a||c.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),o.isMany){var s=i.get(o.name),l=s.indexOf(t);-1===l&&(l=s.length),a?s[l]=a:s.splice(l,1)}else i.set(o.name,a)}}()}catch(e){t=e}var e=i.element;t||e||(t=S("failed to parse document as <"+i.type.$descriptor.name+">")),r(t,t?void 0:e,c)},0)},m.prototype.handler=function(e){return new p(this.model,e)}},{"./common":99,"min-dash":256,moddle:102,"moddle/lib/ns":107,"moddle/lib/types":110,saxen:265}],101:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0}),n.Namespaces=o,n.Writer=function(i){return i=(0,u.assign)({format:!1,preamble:!0},i||{}),{toXML:function(e,t){var n=t||new E,r=new k(n,i.format);i.preamble&&r.append(a);if((new x).build(e).serializeTo(r),!t)return n.value}}};var u=e("min-dash"),l=e("moddle/lib/types"),s=e("moddle/lib/ns"),c=e("./common"),a='<?xml version="1.0" encoding="UTF-8"?>\n',r=/<|>|'|"|&|\n\r|\n/g,i=/<|>|&/g;function o(t){var n={},r={},i={},a=[],o=[];this.byUri=function(e){return r[e]||t&&t.byUri(e)},this.add=function(e,t){r[e.uri]=e,t?a.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return n[e||"xmlns"]},this.mapPrefix=function(e,t){n[e||"xmlns"]=t},this.logUsed=function(e){var t=e.uri;i[t]=this.byUri(t)},this.getUsed=function(e){return[].concat(a,o).filter(function(e){return i[e.uri]})}}function p(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function d(e){return(0,u.isString)(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function m(e,t){return t.isGeneric?(0,u.assign)({localName:t.ns.localName},e):(0,u.assign)({localName:(n=t.ns.localName,r=t.$pkg,(0,c.hasLowerCaseAlias)(r)?(i=n).charAt(0).toLowerCase()+i.slice(1):n)},e);var n,r,i}var f={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},h={"<":"lt",">":"gt","&":"amp"};function g(e,t,n){return(e=(0,u.isString)(e)?e:""+e).replace(t,function(e){return"&"+n[e]+";"})}function v(e){this.tagName=e}function y(){}function b(e){this.tagName=e}function x(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function w(e,t){x.call(this,e,t)}function E(){this.value="",this.write=function(e){this.value+=e}}function k(t,e){var n=[""];this.append=function(e){return t.write(e),this},this.appendNewLine=function(){return e&&t.write("\n"),this},this.appendIndent=function(){return e&&t.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}v.prototype.build=function(e){return this.element=e,this},v.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()},y.prototype.serializeValue=y.prototype.serializeTo=function(e){e.append(this.escape?g(this.value,i,h):this.value)},y.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(i)&&(this.escape=!0),this},p(b,y),b.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()},x.prototype.build=function(e){var t,n,r,i,a,o,s=(this.element=e).$descriptor,l=this.propertyDescriptor,c=s.isGeneric;return t=c?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=l?this.nsPropertyTagName(l):this.nsTagName(s),this.tagName=this.addTagName(this.ns),c||(o=(a=e).$descriptor,n=(0,u.filter)(o.properties,function(e){var t=e.name;if(e.isVirtual)return!1;if(!a.hasOwnProperty(t))return!1;var n=a[t];return n!==e.default&&null!==n&&(!e.isMany||n.length)}),this.parseAttributes((i=n,(0,u.filter)(i,function(e){return e.isAttr}))),this.parseContainments((r=n,(0,u.filter)(r,function(e){return!e.isAttr})))),this.parseGenericAttributes(e,t),this},x.prototype.nsTagName=function(e){return m(this.logNamespaceUsed(e.ns),e)},x.prototype.nsPropertyTagName=function(e){var t,n,r=this.logNamespaceUsed(e.ns);return t=r,n=e,(0,u.assign)({localName:n.ns.localName},t)},x.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},x.prototype.nsAttributeName=function(e){var t;if(t=(0,u.isString)(e)?(0,s.parseName)(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:(0,u.assign)({localName:t.localName},n)},x.prototype.parseGeneric=function(n){var r=this,i=this.body,a=[];return(0,u.forEach)(n,function(e,t){"$body"===t?i.push((new y).build({type:"String"},e)):"$children"===t?(0,u.forEach)(e,function(e){i.push(new x(r).build(e))}):0!==t.indexOf("$")&&r.parseNsAttribute(n,t,e)&&a.push({name:t,value:e})}),a},x.prototype.parseNsAttribute=function(e,t,n){var r,i=e.$model,a=(0,s.parseName)(t);if("xmlns"===a.prefix&&(r={prefix:a.localName,uri:n}),a.prefix||"xmlns"!==a.localName||(r={uri:n}),!r)return{name:t,value:n};if(i&&i.getPackage(n))this.logNamespace(r,!0,!0);else{var o=this.logNamespaceUsed(r,!0);this.getNamespaces().logUsed(o)}},x.prototype.parseNsAttributes=function(r,e){var i=this,t=r.$attrs,a=[];return(0,u.forEach)(t,function(e,t){var n=i.parseNsAttribute(r,t,e);n&&a.push(n)}),a},x.prototype.parseGenericAttributes=function(n,e){var r=this;(0,u.forEach)(e,function(t){if(t.name!==c.XSI_TYPE)try{r.addAttribute(r.nsAttributeName(t.name),t.value)}catch(e){console.warn("missing namespace information for ",t.name,"=",t.value,"on",n,e)}})},x.prototype.parseContainments=function(e){var a=this,o=this.body,s=this.element;(0,u.forEach)(e,function(n){var e=s.get(n.name),t=n.isReference;if(n.isMany||(e=[e]),n.isBody)o.push((new y).build(n,e[0]));else if((0,l.isSimple)(n.type))(0,u.forEach)(e,function(e){o.push(new b(a.addTagName(a.nsPropertyTagName(n))).build(n,e))});else if(t)(0,u.forEach)(e,function(e){o.push(new v(a.addTagName(a.nsPropertyTagName(n))).build(e))});else{var r=(0,c.serializeAsType)(n),i=(0,c.serializeAsProperty)(n);(0,u.forEach)(e,function(e){var t;t=r?new w(a,n):i?new x(a,n):new x(a),o.push(t.build(e))})}})},x.prototype.getNamespaces=function(e){var t,n=this.namespaces,r=this.parent;return n||(t=r&&r.getNamespaces(),e||!t?this.namespaces=n=new o(t):n=t),n},x.prototype.logNamespace=function(e,t,n){var r=this.getNamespaces(n),i=e.uri,a=e.prefix;return r.byUri(i)||r.add(e,t),r.mapPrefix(a,i),e},x.prototype.logNamespaceUsed=function(e,t){var n,r,i,a=this.element.$model,o=this.getNamespaces(t),s=e.prefix,l=e.uri;if(!s&&!l)return{localName:e.localName};if(i=c.DEFAULT_NS_MAP[s]||a&&(a.getPackage(s)||{}).uri,!(l=l||i||o.uriByPrefix(s)))throw new Error("no namespace uri given for prefix <"+s+">");if(!(e=o.byUri(l))){for(n=s,r=1;o.uriByPrefix(n);)n=s+"_"+r++;e=this.logNamespace({prefix:n,uri:l},i===l)}return s&&o.mapPrefix(s,l),e},x.prototype.parseAttributes=function(e){var r=this,i=this.element;(0,u.forEach)(e,function(e){var t=i.get(e.name);if(e.isReference)if(e.isMany){var n=[];(0,u.forEach)(t,function(e){n.push(e.id)}),t=n.join(" ")}else t=t.id;r.addAttribute(r.nsAttributeName(e),t)})},x.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),d(e)},x.prototype.addAttribute=function(e,t){var n=this.attrs;(0,u.isString)(t)&&(t=g(t,r,f)),n.push({name:e,value:t})},x.prototype.serializeAttributes=function(t){var e,n=this.attrs,r=this.namespaces;r&&(e=r,n=(0,u.map)(e.getUsed(),function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}).concat(n)),(0,u.forEach)(n,function(e){t.append(" ").append(d(e.name)).append('="').append(e.value).append('"')})},x.prototype.serializeTo=function(t){var e=this.body[0],n=e&&e.constructor!==y;t.appendIndent().append("<"+this.tagName),this.serializeAttributes(t),t.append(e?">":" />"),e&&(n&&t.appendNewLine().indent(),(0,u.forEach)(this.body,function(e){e.serializeTo(t)}),n&&t.unindent().appendIndent(),t.append("</"+this.tagName+">")),t.appendNewLine()},p(w,x),w.prototype.parseNsAttributes=function(e){var t=x.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var r=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var i=e.$model.getPackage(r.uri),a=i.xml&&i.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(c.XSI_TYPE),(r.prefix?r.prefix+":":"")+a+n.ns.localName),t},w.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri}},{"./common":99,"core-js/modules/es.string.replace":188,"min-dash":256,"moddle/lib/ns":107,"moddle/lib/types":110}],102:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i.default}});var r,i=(r=e("./lib/moddle"))&&r.__esModule?r:{default:r}},{"./lib/moddle":106}],103:[function(e,t,n){"use strict";function r(){}Object.defineProperty(n,"__esModule",{value:!0}),(n.default=r).prototype.get=function(e){return this.$model.properties.get(this,e)},r.prototype.set=function(e,t){this.$model.properties.set(this,e,t)}},{}],104:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var a=e("min-dash"),l=e("./ns");function r(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}r.prototype.build=function(){return(0,a.pick)(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},r.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var r=this.properties;void 0!==t?r.splice(t,0,e):r.push(e)},r.prototype.replaceProperty=function(e,t,n){var r=e.ns,i=this.properties,a=this.propertiesByName,o=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=i.indexOf(e);if(-1===s)throw new Error("property <"+r.name+"> not found in property list");i.splice(s,1),this.addProperty(t,n?void 0:s,o),a[r.name]=a[r.localName]=t},r.prototype.redefineProperty=function(e,t,n){var r=e.ns.prefix,i=t.split("#"),a=(0,l.parseName)(i[0],r),o=(0,l.parseName)(i[1],a.prefix).name,s=this.propertiesByName[o];if(!s)throw new Error("refined property <"+o+"> not found");this.replaceProperty(s,e,n),delete e.redefines},r.prototype.addNamedProperty=function(e,t){var n=e.ns,r=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),r[n.name]=r[n.localName]=e},r.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},r.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},r.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},r.prototype.assertNotDefined=function(e,t){var n=e.name,r=this.propertiesByName[n];if(r)throw new Error("property <"+n+"> already defined; override of <"+r.definedBy.ns.name+"#"+r.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},r.prototype.hasProperty=function(e){return this.propertiesByName[e]},r.prototype.addTrait=function(r,i){var e=this.allTypesByName,t=this.allTypes,n=r.name;n in e||((0,a.forEach)(r.properties,(0,a.bind)(function(e){e=(0,a.assign)({},e,{name:e.ns.localName,inherited:i}),Object.defineProperty(e,"definedBy",{value:r});var t=e.replaces,n=e.redefines;t||n?this.redefineProperty(e,t||n,t):(e.isBody&&this.setBodyProperty(e),e.isId&&this.setIdProperty(e),this.addProperty(e))},this)),t.push(r),e[n]=r)}},{"./ns":107,"min-dash":256}],105:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r,o=e("min-dash"),s=(r=e("./base"))&&r.__esModule?r:{default:r};function i(e,t){this.model=e,this.properties=t}i.prototype.createType=function(e){var t=this.model,n=this.properties,r=Object.create(s.default.prototype);(0,o.forEach)(e.properties,function(e){e.isMany||void 0===e.default||(r[e.name]=e.default)}),n.defineModel(r,t),n.defineDescriptor(r,e);var i=e.ns.name;function a(e){n.define(this,"$type",{value:i,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),(0,o.forEach)(e,(0,o.bind)(function(e,t){this.set(t,e)},this))}return a.prototype=r,a.hasType=r.$instanceOf=this.model.hasType,n.defineModel(a,t),n.defineDescriptor(a,e),a}},{"./base":103,"min-dash":256}],106:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var o=e("min-dash"),r=l(e("./factory")),i=l(e("./registry")),a=l(e("./properties")),s=e("./ns");function l(e){return e&&e.__esModule?e:{default:e}}function c(e){this.properties=new a.default(this),this.factory=new r.default(this,this.properties),this.registry=new i.default(e,this.properties),this.typeCache={}}c.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},c.prototype.getType=function(e){var t=this.typeCache,n=(0,o.isString)(e)?e:e.ns.name,r=t[n];return r||(e=this.registry.getEffectiveDescriptor(n),r=t[n]=this.factory.createType(e)),r},c.prototype.createAny=function(e,t,n){var r=(0,s.parseName)(e),i={$type:e,$instanceOf:function(e){return e===this.$type}},a={name:e,isGeneric:!0,ns:{prefix:r.prefix,localName:r.localName,uri:t}};return this.properties.defineDescriptor(i,a),this.properties.defineModel(i,this),this.properties.define(i,"$parent",{enumerable:!1,writable:!0}),(0,o.forEach)(n,function(e,t){(0,o.isObject)(e)&&void 0!==e.value?i[e.name]=e.value:i[t]=e}),i},c.prototype.getPackage=function(e){return this.registry.getPackage(e)},c.prototype.getPackages=function(){return this.registry.getPackages()},c.prototype.getElementDescriptor=function(e){return e.$descriptor},c.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},c.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},c.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]}},{"./factory":105,"./ns":107,"./properties":108,"./registry":109,"min-dash":256}],107:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseName=function(e,t){var n,r,i=e.split(/:/);if(1===i.length)n=e,r=t;else{if(2!==i.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=i[1],r=i[0]}return{name:e=(r?r+":":"")+n,prefix:r,localName:n}}},{}],108:[function(e,t,n){"use strict";function r(e){this.model=e}function a(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}Object.defineProperty(n,"__esModule",{value:!0}),(n.default=r).prototype.set=function(e,t,n){var r=this.model.getPropertyDescriptor(e,t),i=r&&r.name;void 0===n?r?delete e[i]:delete e.$attrs[t]:r?i in e?e[i]=n:a(e,r,n):e.$attrs[t]=n},r.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var r=n.name;return!e[r]&&n.isMany&&a(e,n,[]),e[r]},r.prototype.define=function(e,t,n){Object.defineProperty(e,t,n)},r.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},r.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})}},{}],109:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var r,s=e("min-dash"),l=e("./types"),i=(r=e("./descriptor-builder"))&&r.__esModule?r:{default:r},c=e("./ns");function a(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,(0,s.forEach)(e,(0,s.bind)(this.registerPackage,this))}function o(e,t,n){var r=t[n];if(r in e)throw new Error("package with "+n+" <"+r+"> already defined")}a.prototype.getPackage=function(e){return this.packageMap[e]},a.prototype.getPackages=function(){return this.packages},a.prototype.registerPackage=function(t){t=(0,s.assign)({},t);var e=this.packageMap;o(e,t,"prefix"),o(e,t,"uri"),(0,s.forEach)(t.types,(0,s.bind)(function(e){this.registerType(e,t)},this)),e[t.uri]=e[t.prefix]=t,this.packages.push(t)},a.prototype.registerType=function(e,t){e=(0,s.assign)({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:(0,s.assign)(e.meta||{})});var r=(0,c.parseName)(e.name,t.prefix),n=r.name,i={};(0,s.forEach)(e.properties,(0,s.bind)(function(e){var t=(0,c.parseName)(e.name,r.prefix),n=t.name;(0,l.isBuiltIn)(e.type)||(e.type=(0,c.parseName)(e.type,t.prefix).name),(0,s.assign)(e,{ns:t,name:n}),i[n]=e},this)),(0,s.assign)(e,{ns:r,name:n,propertiesByName:i}),(0,s.forEach)(e.extends,(0,s.bind)(function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(n)},this)),this.definePackage(e,t),this.typeMap[n]=e},a.prototype.mapTypes=function(r,i,e){var t=(0,l.isBuiltIn)(r.name)?{name:r.name}:this.typeMap[r.name],a=this;function n(e){return o(e,!0)}function o(e,t){var n=(0,c.parseName)(e,(0,l.isBuiltIn)(e)?"":r.prefix);a.mapTypes(n,i,t)}if(!t)throw new Error("unknown type <"+r.name+">");(0,s.forEach)(t.superClass,e?n:o),i(t,!e),(0,s.forEach)(t.traits,n)},a.prototype.getEffectiveDescriptor=function(e){var t=(0,c.parseName)(e),n=new i.default(t);this.mapTypes(t,function(e,t){n.addTrait(e,t)});var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r},a.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})}},{"./descriptor-builder":104,"./ns":107,"./types":110,"min-dash":256}],110:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.coerceType=function(e,t){var n=i[e];return n?n(t):t},n.isBuiltIn=function(e){return!!r[e]},n.isSimple=function(e){return!!i[e]};var r={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},i={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e,10)}}},{}],111:[function(e,t,n){t.exports={name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}},{}],112:[function(e,t,n){t.exports={name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",type:"LaneSet",isMany:!0,replaces:"FlowElementsContainer#laneSets"},{name:"flowElements",type:"FlowElement",isMany:!0,replaces:"FlowElementsContainer#flowElements"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"assignment",type:"Assignment",isMany:!0},{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",type:"String",isBody:!0}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",type:"String",isAttr:!0},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isVirtual:!0,isMany:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],prefix:"bpmn",xml:{tagAlias:"lowerCase",typePrefix:"t"}}},{}],113:[function(e,t,n){t.exports={name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[],prefix:"bpmndi"}},{}],114:[function(e,t,n){t.exports={name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],prefix:"dc",associations:[]}},{}],115:[function(e,t,n){t.exports={name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0}]},{name:"Extension",properties:[{name:"values",type:"Element",isMany:!0}]}],associations:[],prefix:"di",xml:{tagAlias:"lowerCase"}}},{}],116:[function(e,t,n){"use strict";var r=e("inherits"),i=e("./Viewer");function a(e){i.call(this,e)}r(a,i),(t.exports=a).prototype._navigationModules=[e("diagram-js/lib/navigation/zoomscroll").default,e("diagram-js/lib/navigation/movecanvas").default],a.prototype._modules=[].concat(a.prototype._modules,a.prototype._navigationModules)},{"./Viewer":117,"diagram-js/lib/navigation/movecanvas":222,"diagram-js/lib/navigation/zoomscroll":225,inherits:255}],117:[function(e,t,n){"use strict";var s=e("min-dash").assign,l=e("min-dash").omit,r=e("min-dash").isNumber,i=e("inherits"),a=e("min-dom").domify,c=e("min-dom").query,o=e("min-dom").remove,u=e("tiny-svg").innerSVG,p=e("diagram-js").default,d=e("cmmn-moddle").default,m=e("./import/Importer");var f={width:"100%",height:"100%",position:"relative"};function h(e){return e+(r(e)?"px":"")}function g(e){var t,n,r;e=s({},f,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),t=this._container,n=v.BPMNIO_IMG,r=a('<a href="http://bpmn.io" target="_blank" class="cjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100">'+n+"</a>"),t.appendChild(r),y.bind(r,"click",function(e){v.open(),e.preventDefault()}),this._init(this._container,this._moddle,e)}i(g,p),(t.exports=g).prototype.importXML=function(e,o){o=o||function(){};var s=this;e=this._emit("import.parse.start",{xml:e})||e,this._moddle.fromXML(e,"cmmn:Definitions",function(e,t,n){t=s._emit("import.parse.complete",{error:e,definitions:t,context:n})||t;var r,i,a=n.warnings;if(e)return(i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec((r=e).message))&&(r.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid CMMN 1.1 diagram file"+i[2]),e=r,s._emit("import.done",{error:e,warnings:a}),o(e,a);s.importDefinitions(t,function(e,t){var n=[].concat(a,t||[]);s._emit("import.done",{error:e,warnings:n}),o(e,n)})})},g.prototype.saveXML=function(e,n){n||(n=e,e={});var r=this,t=this._definitions;if(!t)return n(new Error("no definitions loaded"));t=this._emit("saveXML.start",{definitions:t})||t,this._moddle.toXML(t,e,function(e,t){try{t=r._emit("saveXML.serialized",{error:e,xml:t})||t,r._emit("saveXML.done",{error:e,xml:t})}catch(e){console.error("error in saveXML life-cycle listener",e)}n(e,t)})},g.prototype.saveSVG=function(e,t){t||(t=e,e={});var n=this.get("canvas"),r=n.getDefaultLayer(),i=c("defs",n._svg),a=u(r),o=i&&i.outerHTML||"",s=r.getBBox();t(null,'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with cmmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+s.width+'" height="'+s.height+'" viewBox="'+s.x+" "+s.y+" "+s.width+" "+s.height+'" version="1.1">'+o+a+"</svg>")},g.prototype.importDefinitions=function(e,t){try{this._definitions&&this.clear(),this._definitions=e,m.importCmmnDiagram(this,e,t)}catch(e){t(e)}},g.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=c(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},g.prototype.getDefinitions=function(){return this._definitions},g.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},g.prototype.getModules=function(){return this._modules},g.prototype.destroy=function(){p.prototype.destroy.call(this),o(this._container)},g.prototype.on=function(e,t,n,r){return this.get("eventBus").on(e,t,n,r)},g.prototype.off=function(e,t){this.get("eventBus").off(e,t)},g.prototype._init=function(e,t,n){var r=n.modules||this.getModules(),i=n.additionalModules||[],a=[].concat([{cmmnjs:["value",this],moddle:["value",t]}],r,i),o=s(l(n,"additionalModules"),{canvas:s({},n.canvas,{container:e}),modules:a});p.call(this,o),n&&n.container&&this.attachTo(n.container)},g.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},g.prototype._createContainer=function(e){var t=a('<div class="cjs-container"></div>');return s(t.style,{width:h(e.width),height:h(e.height),position:e.position}),t},g.prototype._createModdle=function(e){var t=s({},this._moddleExtensions,e.moddleExtensions);return new d(t)},g.prototype._modules=[e("./core"),e("diagram-js/lib/features/selection").default,e("diagram-js/lib/features/overlays").default];var v=e("./util/PoweredByUtil"),y=e("min-dom").event},{"./core":119,"./import/Importer":126,"./util/PoweredByUtil":132,"cmmn-moddle":133,"diagram-js":189,"diagram-js/lib/features/overlays":210,"diagram-js/lib/features/selection":214,inherits:255,"min-dash":256,"min-dom":257,"tiny-svg":266}],118:[function(e,t,n){"use strict";var r=e("../util/ModelUtil"),i=r.getDefinition,a=r.getSentry,o=e("../features/modeling/util/ModelingUtil").isAny,s=e("min-dash").forEach,l=e("min-dash").isArray;function c(e,t){this._items={},this._referencedBy={},this._elementRegistry=e,this._eventBus=t,this._init()}function u(e){return i(e)||a(e)}function p(e){return o(e,["cmmn:PlanItemDefinition","cmmn:Sentry","cmmn:CaseFileItemDefinition"])}c.$inject=["elementRegistry","eventBus"],(t.exports=c).prototype._init=function(e){var t=this._eventBus;t.on("diagram.destroy",500,this._clear,this),t.on("diagram.clear",500,this._clear,this)},c.prototype._clear=function(){this._items={},this._referencedBy={}},c.prototype.add=function(e){var t=this._items,n=e.id,r=this._referencedBy,i=u(e),a=i&&i.id;t[n]=e,i&&(r[a]=r[a]||[],-1===r[a].indexOf(e)&&r[a].push(e))},c.prototype.remove=function(e){var t=this._items,n=e.id,r=this._referencedBy,i=u(e),a=i&&i.id;if(delete t[n],i){var o=r[a]||[],s=o.indexOf(e);-1!==s&&o.splice(s,1),o.length||delete r[a]}},c.prototype.updateId=function(e,t){var n,r;"string"==typeof e&&(e=this.get(e)),n=p(e)?this._referencedBy:this._items,e&&(r=n[e.id],delete n[e.id],n[t]=r)},c.prototype.updateReference=function(e,t){var n=this._referencedBy,r=u(e),i=r&&r.id;if(r){var a=n[i]||[],o=a.indexOf(e);-1!==o&&a.splice(o,1),a.length||delete n[i]}if(t){var s=t.id;s&&(n[s]=n[s]||[],-1===n[s].indexOf(e)&&n[s].push(e))}},c.prototype.get=function(e){return this._items[e]},c.prototype.filter=function(n){var r=[];return this.forEach(function(e,t){n(e,t)&&r.push(e)}),r},c.prototype.getAll=function(){return this.filter(function(e){return e})},c.prototype.forEach=function(t){var e=this._items;s(e,function(e){return t(e,u(e))})},c.prototype.getReferences=function(e){var t=e.id||e;return(this._referencedBy[t]||[]).slice()},c.prototype.getShape=function(e){var t=e.id||e;return this._elementRegistry&&this._elementRegistry.get(t)},c.prototype.getShapes=function(e){var t=[],n=this;function r(e){e&&t.push(e)}if(l(e))s(e,function(e){r(n.getShape(e))});else if(p(e)){var i=n.getReferences(e);s(i,function(e){r(n.getShape(e))})}else r(n.getShape(e));return t}},{"../features/modeling/util/ModelingUtil":123,"../util/ModelUtil":131,"min-dash":256}],119:[function(e,t,n){"use strict";t.exports={__depends__:[e("../draw"),e("../import")],itemRegistry:["type",e("./ItemRegistry")]}},{"../draw":122,"../import":128,"./ItemRegistry":118}],120:[function(e,t,n){"use strict";var r=e("inherits"),k=e("min-dash").isArray,S=e("min-dash").isObject,C=e("min-dash").assign,A=e("diagram-js/lib/draw/BaseRenderer").default,_=e("diagram-js/lib/util/Text").default,i=e("../util/DiUtil"),a=e("../util/ModelUtil"),T=i.isStandardEventVisible,M=i.isPlanningTableCollapsed,D=i.isCollapsed,I=a.isCasePlanModel,R=a.getBusinessObject,N=a.getDefinition,P=a.isRequired,$=a.isRepeatable,O=a.isManualActivation,L=a.isAutoComplete,F=a.hasPlanningTable,j=a.getName,B=a.is,V=a.getStandardEvent,U=e("min-dom").query,z=e("tiny-svg").append,q=e("tiny-svg").attr,H=e("tiny-svg").classes,G=e("tiny-svg").create,W=e("diagram-js/lib/util/SvgTransformUtil").translate,K=e("diagram-js/lib/util/RenderUtil").createLine;function o(e,r,s){A.call(this,e);var m=20,i=new _({style:{fontFamily:"Arial, sans-serif",fontSize:"12px"},size:{width:100}}),c={};function a(e){return c[e]}function t(l){function e(e,t){var n=C({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},t.attrs),r=t.ref||{x:0,y:0},i=t.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var a=G("marker");q(t.element,n),z(a,t.element),q(a,{id:e,viewBox:"0 0 20 20",refX:r.x,refY:r.y,markerWidth:20*i,markerHeight:20*i,orient:"auto"});var o,s=U("defs",l);return s||(s=G("defs"),z(l,s)),z(s,a),o=a,void(c[e]=o)}var t=G("path");q(t,{d:"M 11 5 L 1 10 L 11 15"}),e("association-start",{element:t,attrs:{fill:"none",stroke:"black",strokeWidth:1.5},ref:{x:1,y:10},scale:.5});var n=G("path");q(n,{d:"M 1 5 L 11 10 L 1 15"}),e("association-end",{element:n,attrs:{fill:"none",stroke:"black",strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}function l(e,t,n){return k(t)||(n=t,t=[]),r.style(t||[],C(n,e||{}))}function o(e,t,n,r,i){S(r)&&(i=r,r=0),r=r||0,i=l(i,{stroke:"black",strokeWidth:2,fill:"white"});var a=t/2,o=n/2,s=G("circle");return q(s,{cx:a,cy:o,r:Math.round((t+n)/4-r)}),q(s,i),z(e,s),s}function u(e,t,n,r,i,a){S(i)&&(a=i,i=0),i=i||0,a=l(a,{stroke:"black",strokeWidth:2,fill:"white"});var o=G("rect");return q(o,{x:i,y:i,width:t-2*i,height:n-2*i,rx:r,ry:r}),q(o,a),z(e,o),o}function n(e,t,n,r){var i=t/2,a=n/2,o=[{x:i,y:0},{x:t,y:a},{x:i,y:n},{x:0,y:a}].map(function(e){return e.x+","+e.y}).join(" ");r=l(r,{stroke:"black",strokeWidth:2,fill:"white"});var s=G("polygon");return q(s,{points:o}),q(s,r),z(e,s),s}function p(e,t,n){n=l(n,["no-fill"],{strokeWidth:2,stroke:"black"});var r=G("path");return q(r,{d:t}),q(r,n),z(e,r),r}function f(e,t,n){var r=t.map(function(e){return e.x+","+e.y}).join(" "),i=G("polygon");return q(i,{points:r}),q(i,n),z(e,i),i}function d(e){for(var t=e.waypoints,n="m "+t[0].x+","+t[0].y,r=1;r<t.length;r++)n+="L"+t[r].x+","+t[r].y+" ";return n}function h(e,t,n){var r=i.createText(t||"",n);return H(r).add("djs-label"),z(e,r),r}function g(e,t,n){return h(e,j(t),{box:t,align:n,padding:5})}function v(e){return y[e]}var y={"cmmn:PlanItem":function(e,t){return v(N(t).$type)(e,t)},"cmmn:DiscretionaryItem":function(e,t){var n=N(t),r={strokeDasharray:"10, 12"};return B(n,"cmmn:Task")&&C(r,{strokeDasharray:"12, 12.4",strokeDashoffset:13.6}),v(n.$type)(e,t,r)},"cmmn:Stage":function(e,t,n){var r,i,a,o,s,l,c,u,p,d;return n=C({fillOpacity:.95},n),I(t)?y["cmmn:CasePlanModel"](e,t):(i=e,a=t.width,o=t.height,c=[{x:s=(s=m)||20,y:o},{x:0,y:o-s},{x:0,y:s},{x:s,y:0},{x:a-s,y:0},{x:a,y:s},{x:a,y:o-s},{x:a-s,y:o}],(l=(l=n)||{}).fill="white",l.stroke="black",l.strokeWidth=2,r=f(i,c,l),D(t)?g(e,t,"center-middle"):(p="left-top",d=h(e,j(u=t),{box:u,align:p,padding:5}),W(d,m,0)),w(e,t),x(e,t),r)},"cmmn:PlanFragment":function(e,t){var n=u(e,t.width,t.height,10,{strokeDasharray:"10, 12",fillOpacity:.95});return g(e,t,D(t)?"center-middle":"left-top"),x(e,t),n},"cmmn:CasePlanModel":function(e,t){var n,r,i,a=u(e,t.width,t.height,0,{fillOpacity:.95});return function(e,t){var n=R(t),r=t.width/2-60,i=h(e,n.name,{box:{height:18,width:r},align:"left-top"}),a=i.getBBox().width,o=a+40;a<60&&(o=100);var s=f(e,[{x:10,y:0},{x:20,y:-18},{x:o,y:-18},{x:o+10,y:0}],{fill:"white",stroke:"black",strokeWidth:2,fillOpacity:.95,"pointer-events":"all"});i.parentNode.insertBefore(s,i),W(i,25,-13)}(e,t),w(e,t),n=e,i=R(r=t),L(i)&&E("AutoCompleteMarker",n,r,-7),a},"cmmn:Milestone":function(e,t,n){var r=u(e,t.width,t.height,24,n);return g(e,t,"center-middle"),b(e,t),r},"cmmn:EventListener":function(e,t,n){var r=o(e,t.width,t.height,n);return(n=n||{}).strokeWidth=2,o(e,t.width,t.height,.1*t.height,n),r},"cmmn:TimerEventListener":function(e,t,n){var r=v("cmmn:EventListener")(e,t,n);p(e,s.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,strokeLinecap:"square"});for(var i=0;i<12;i++){var a=s.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),o=t.width/2;p(e,a,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*i+","+t.height/2+","+o+")"})}return r},"cmmn:UserEventListener":function(e,t,n){var r=v("cmmn:EventListener")(e,t,n);return p(e,s.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:20,y:15}}),{strokeWidth:.5,fill:"none"}),p(e,s.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:20,y:15}}),{strokeWidth:.5,fill:"none"}),p(e,s.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:20,y:15}}),{strokeWidth:.5,fill:"black"}),r},"cmmn:Task":function(e,t,n){var r=u(e,t.width,t.height,10,n);return g(e,t,"center-middle"),b(e,t),r},"cmmn:HumanTask":function(e,t,n){var r=v("cmmn:Task")(e,t,n);if(t.businessObject.definitionRef.isBlocking){p(e,s.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:"none"}),p(e,s.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:"none"}),p(e,s.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:"black"})}else{p(e,s.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:1.25,fill:"white",stroke:"black"})}return w(e,t),r},"cmmn:CaseTask":function(e,t,n){var r=v("cmmn:Task")(e,t,n);return p(e,s.getScaledPath("TASK_TYPE_FOLDER",{abspos:{x:7,y:7}}),{strokeWidth:1.25,fill:"white",stroke:"black"}),r},"cmmn:ProcessTask":function(e,t,n){var r=v("cmmn:Task")(e,t,n);return p(e,s.getScaledPath("TASK_TYPE_CHEVRON",{abspos:{x:5,y:5}}),{strokeWidth:1.25,fill:"white",stroke:"black"}),r},"cmmn:DecisionTask":function(e,t,n){var r=v("cmmn:Task")(e,t,n);return p(e,s.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),{strokeWidth:1,fill:"000"}),p(e,s.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),{strokeWidth:1}),r},"cmmn:CaseFileItem":function(e,t){return p(e,s.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:"white"})},"cmmn:TextAnnotation":function(e,t){var n=u(e,t.width,t.height,0,0,{fill:"none",stroke:"none"});return p(e,s.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}})),h(e,R(t).text||"",{box:t,align:"left-middle",padding:5}),n},"cmmn:Association":function(e,t,n){var r=R(t);return n=C({strokeDasharray:"0.5, 5",strokeLinecap:"round",strokeLinejoin:"round"},n||{}),"One"!==r.associationDirection&&"Both"!==r.associationDirection||(n.markerEnd=a("association-end")),"Both"===r.associationDirection&&(n.markerStart=a("association-start")),function(e,t,n){n=l(n,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"});var r=K(t,n);return z(e,r),r}(e,t.waypoints,n)},StageMarker:function(e,t){var n=u(e,14,14,0,{strokeWidth:1,stroke:"black"});W(n,t.width/2-7,t.height-17);var r=D(t)?"MARKER_STAGE_COLLAPSED":"MARKER_STAGE_EXPANDED";p(e,s.getScaledPath(r,{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7)/t.width,my:(t.height-17)/t.height}}))},RequiredMarker:function(e,t,n){p(e,s.getScaledPath("MARKER_REQUIRED",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n)/t.width,my:(t.height-17)/t.height}}),{strokeWidth:3})},AutoCompleteMarker:function(e,t,n){var r=u(e,11,14,0,{strokeWidth:1,stroke:"black",fill:"black"});W(r,t.width/2+n+2,t.height-17)},ManualActivationMarker:function(e,t,n){p(e,s.getScaledPath("MARKER_MANUAL_ACTIVATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n)/t.width,my:(t.height-17)/t.height}}),{strokeWidth:1})},RepetitionMarker:function(e,t,n){p(e,s.getScaledPath("MARKER_REPEATABLE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n)/t.width,my:(t.height-17)/t.height}}))},PlanningTableMarker:function(e,t){var n=u(e,30,24,0,{strokeWidth:1.5,stroke:"black"});W(n,t.width/2-15,-17);var r=M(t)?"MARKER_PLANNING_TABLE_COLLAPSED":"MARKER_PLANNING_TABLE_EXPANDED";p(e,s.getScaledPath(r,{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-15)/t.width,my:-17/t.height}}),{strokeWidth:1.5})},"cmmn:OnPart":function(e,t){return p(e,d(t),{strokeDasharray:"10, 5, 2, 5, 2, 5",strokeWidth:1.5})},"cmmn:PlanItemOnPart":function(e,t){return v("cmmn:OnPart")(e,t)},"cmmn:CaseFileItemOnPart":function(e,t){return v("cmmn:OnPart")(e,t)},"cmmn:EntryCriterion":function(e,t){return n(e,t.width,t.height,{fill:"white"})},"cmmn:ExitCriterion":function(e,t){return n(e,t.width,t.height,{fill:"black"})},"cmmndi:CMMNEdge":function(e,t){var n=R(t);return n.cmmnElementRef?v(n.cmmnElementRef.$type)(e,t):p(e,d(t),{strokeDasharray:"3, 5",strokeWidth:1})},label:function(e,t){var n,r=function(e,t){var n=j(t),r=!1,i=V(t);if(i){var a=T(t);i="["+i+"]",n?a&&(n=n+" "+i):(n=i,t.hidden=r=!a)}var o={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return t.hidden=t.labelTarget.hidden||r||!n,h(e,n,{box:o,style:{fontSize:"11px"}})}(e,t);try{n=r.getBBox()}catch(e){n={width:0,height:0,x:0}}return t.x=Math.ceil(t.x+t.width/2)-Math.ceil(n.width/2),t.width=Math.ceil(n.width),t.height=Math.ceil(n.height),q(r,{transform:"translate("+-1*n.x+",0)"}),r}};function b(e,t){var n=R(t),r=[];P(n)&&r.push({marker:"RequiredMarker",width:1}),O(n)&&r.push({marker:"ManualActivationMarker",width:14}),$(n)&&r.push({marker:"RepetitionMarker",width:14}),r.length&&(1===r.length?E(r[0].marker,e,t,r[0].width/2*-1):2===r.length?(E(r[0].marker,e,t,-1*r[0].width-3),E(r[1].marker,e,t,3)):3===r.length&&(E(r[1].marker,e,t,r[1].width/2*-1),E(r[0].marker,e,t,r[1].width/2*-1-6-r[0].width),E(r[2].marker,e,t,r[1].width/2+6)))}function x(e,t){var n=R(t);E("StageMarker",e,t,-7);var r=[];P(n)&&r.push({marker:"RequiredMarker",width:1}),L(n)&&r.push({marker:"AutoCompleteMarker",width:14}),r.length&&(1===r.length?E(r[0].marker,e,t,-1*r[0].width-7-6):2===r.length&&(E(r[0].marker,e,t,-1*r[1].width-7-6- -1*r[0].width-6),E(r[1].marker,e,t,-1*r[1].width-7-6)));var i=[];O(n)&&i.push({marker:"ManualActivationMarker",width:14}),$(n)&&i.push({marker:"RepetitionMarker",width:14}),i.length&&(1===i.length?E(i[0].marker,e,t,13):2===i.length&&(E(i[0].marker,e,t,13),E(i[1].marker,e,t,13+i[0].width+6)))}function w(e,t){F(t)&&E("PlanningTableMarker",e,t)}function E(e,t,n,r){v(e)(t,n,r)}this.canRender=function(e){return B(e,"cmmn:CMMNElement")||B(e,"cmmndi:CMMNEdge")},this.drawShape=function(e,t){var n=y[t.type];return n?n(e,t):A.prototype.drawShape.apply(this,[e,t])},this.drawConnection=function(e,t){var n=t.type,r=y[n];return r?r(e,t):A.prototype.drawConnection.apply(this,[e,t])},e.on("canvas.init",function(e){t(e.svg)})}r(o,A),o.$inject=["eventBus","styles","pathMap"],t.exports=o},{"../util/DiUtil":129,"../util/ModelUtil":131,"diagram-js/lib/draw/BaseRenderer":197,"diagram-js/lib/util/RenderUtil":238,"diagram-js/lib/util/SvgTransformUtil":239,"diagram-js/lib/util/Text":240,inherits:255,"min-dash":256,"min-dom":257,"tiny-svg":266}],121:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),t.exports=function(){var e="m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5",t="m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005",n="m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z";this.pathMap={TASK_TYPE_FOLDER:{d:"m {mx},{my} l18,0 l0,12 l-18,0 l0,-12 m 2,0 l3,-4 l5,0 l3,4"},TASK_TYPE_CHEVRON:{d:"m {mx},{my} l15,0 l6,6 l-6,6 l-15,0 l6,-6 l-6,-6"},TASK_TYPE_USER_1:{d:e},TASK_TYPE_USER_2:{d:t},TASK_TYPE_USER_3:{d:n},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_USER_1:{d:e,height:36,width:36,heightElements:[],widthElements:[]},EVENT_USER_2:{d:t,height:36,width:36,heightElements:[],widthElements:[]},EVENT_USER_3:{d:n,height:36,width:36,heightElements:[],widthElements:[]},MARKER_STAGE_EXPANDED:{d:"m{mx},{my} m 2,7 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_STAGE_COLLAPSED:{d:"m{mx},{my} m 2,7 l 10,0 m -5,-5 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_REQUIRED:{d:"m{mx},{my} l 0,9 m 0,2 l0,3",height:14,width:3,heightElements:[],widthElements:[]},MARKER_MANUAL_ACTIVATION:{d:"m{mx}, {my} l 14,7 l -14,7 l 0,-14 z",height:14,width:14,heightElements:[],widthElements:[]},MARKER_REPEATABLE:{d:"m{mx},{my} m 3,0 l 0,14 m 6,-14 l 0,14 m -10,-10 l 14,0 m -14,6 l 14,0",height:14,width:14,heightElements:[],widthElements:[]},MARKER_PLANNING_TABLE_EXPANDED:{d:"m{mx},{my} m 0,12 l 30,0 m -20,-12 l 0, 24 m 10, -24 l 0, 24 m -10, -6 l 10,0",height:24,width:30,heightElements:[],widthElements:[]},MARKER_PLANNING_TABLE_COLLAPSED:{d:"m{mx},{my} m 0,12 l 30,0 m -20,-12 l 0, 24 m 10, -24 l 0, 24 m -10, -6 l 10,0 m -5, -6 l 0,12",height:10,width:10,heightElements:[],widthElements:[]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,r,i=this.pathMap[e];r=t.abspos?(n=t.abspos.x,t.abspos.y):(n=t.containerWidth*t.position.mx,t.containerHeight*t.position.my);var a,o,s={};if(t.position){for(var l=t.containerHeight/i.height*t.yScaleFactor,c=t.containerWidth/i.width*t.xScaleFactor,u=0;u<i.heightElements.length;u++)s["y"+u]=i.heightElements[u]*l;for(var p=0;p<i.widthElements.length;p++)s["x"+p]=i.widthElements[p]*c}return a=i.d,o={mx:n,my:r,e:s},String(a).replace(d,function(e,t){return n=e,a=r=o,t.replace(m,function(e,t,n,r,i){t=t||r,a&&(t in a&&(a=a[t]),"function"==typeof a&&i&&(a=a()))}),a=(null==a||a==r?n:a)+"";var n,r,a})}};var d=/\{([^}]+)\}/g,m=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g},{"core-js/modules/es.string.replace":188}],122:[function(e,t,n){"use strict";t.exports={__init__:["cmmnRenderer"],cmmnRenderer:["type",e("./CmmnRenderer")],pathMap:["type",e("./PathMap")]}},{"./CmmnRenderer":120,"./PathMap":121}],123:[function(e,t,n){"use strict";var r=e("min-dash").some,i=e("../../../util/ModelUtil"),a=i.is,o=i.getBusinessObject,s=e("diagram-js/lib/model");function l(e,t){return e===t}function c(e){return u(o(e),"cmmn:Case")}function u(e,t){for("string"==typeof t&&(t=[t]);e=e.$parent||e.parent;){if(!t)return e;if(p(e,t))return e}return null}function p(t,e){return r(e,function(e){return a(t,e)})}t.exports.isSame=l,t.exports.isSameCase=function(e,t){return l(c(e),c(t))},t.exports.getCase=c,t.exports.getParents=function(e,t){var n=[];for("string"==typeof t&&(t=[t]);e;)!(e=e.$parent||e.parent)||t&&!p(e,t)||n.push(e);return n},t.exports.getParent=u,t.exports.isAny=p,t.exports.isLabel=function(e){return e instanceof s.Label}},{"../../../util/ModelUtil":131,"diagram-js/lib/model":218,"min-dash":256}],124:[function(e,t,n){"use strict";var r=e("min-dash").assign,u=e("min-dash").map,i=e("../util/LabelUtil"),p=e("../util/ModelUtil").is,d=i.hasExternalLabel,a=i.getExternalLabelBounds,m=e("../util/DiUtil").isCollapsed,f=e("./Util").elementToString;function h(e,t){return r({id:e.id,type:e.$type,businessObject:e},t)}function o(e,t,n){return new Error("element "+f(t)+" referenced by "+f(e)+"#"+n+" not yet drawn")}function s(e,t,n,r){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=r}s.$inject=["eventBus","canvas","elementFactory","elementRegistry"],(t.exports=s).prototype.root=function(e){var t=this._elementFactory.createRoot(h(e));return this._canvas.setRootElement(t),t},s.prototype.add=function(e,t){var n,r,i=e.di;if(i&&p(i,"cmmndi:CMMNShape")&&!this._getElement(e)){var a=m(e);r=t&&(t.hidden||t.collapsed);var o=e.di.bounds;n=this._elementFactory.createShape(h(e,{collapsed:a,hidden:r,x:Math.round(o.x),y:Math.round(o.y),width:Math.round(o.width),height:Math.round(o.height)})),p(e,"cmmn:Criterion")&&this._attachCriterion(e,n),this._canvas.addShape(n,t)}else{if(!(i&&p(i,"cmmndi:CMMNEdge")||p(e,"cmmndi:CMMNEdge")))throw new Error("unknown di "+f(i)+" for element "+f(e));var s=this._getSource(e),l=this._getTarget(e);r=t&&(t.hidden||t.collapsed)||s&&s.hidden||l&&l.hidden;var c=(e.di||{}).waypoint||e.waypoint;n=this._elementFactory.createConnection(h(e,{hidden:r,source:s,target:l,waypoints:u(c,function(e){return{x:e.x,y:e.y}})})),this._canvas.addConnection(n,t)}return d(e)&&this.addLabel(e,n),this._eventBus.fire("cmmnElement.added",{element:n}),n},s.prototype._attachCriterion=function(e,t){var n=e.$parent;if(!n)throw new Error("missing "+f(e)+"$parent");var r=this._elementRegistry.get(n.id),i=r&&r.attachers;if(!r)throw o(e,n,"criterion");t.host=r,i||(r.attachers=i=[]),-1===i.indexOf(t)&&i.push(t)},s.prototype.addLabel=function(e,t){var n=a(e,t),r=this._elementFactory.createLabel(h(e,{id:e.id+"_label",labelTarget:t,type:"label",hidden:t.hidden,x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)}));return this._canvas.addShape(r,t.parent)},s.prototype._getSource=function(e){var t=e.cmmnElementRef;if(t){if(p(t,"cmmn:OnPart"))return t.exitCriterionRef?this._getEnd(t,"exitCriterionRef"):this._getEnd(t,"sourceRef");if(p(t,"cmmn:Association"))return this._getEnd(t,"sourceRef")}if(p(e,"cmmndi:CMMNEdge"))return this._getEnd(e,"sourceCMMNElementRef")},s.prototype._getTarget=function(e){var t=e.cmmnElementRef;return t&&p(t,"cmmn:Association")?this._getEnd(t,"targetRef"):this._getEnd(e,"targetCMMNElementRef")},s.prototype._getEnd=function(e,t){var n=e[t],r=n&&this._getElement(n);if(r)return r;throw n?o(e,n,t):new Error(f(e)+"#"+t+"Ref not specified")},s.prototype._getElement=function(e){return this._elementRegistry.get(e.id)}},{"../util/DiUtil":129,"../util/LabelUtil":130,"../util/ModelUtil":131,"./Util":127,"min-dash":256}],125:[function(e,t,n){"use strict";var S=e("min-dash").forEach,C=e("min-dash").filter,r=e("object-refs"),A=e("./Util").elementToString,_=e("../util/ModelUtil").is,T=e("diagram-js/lib/util/Collections"),M=new r({name:"cmmnElement",enumerable:!0},{name:"di"});t.exports=function(l){var c=[],u=[],a={},p=[],n={},d=[],m=[];function o(e,t){return l.element(e,t)}function f(t,e){try{return l.addItem(t),t.di&&o(t,e)}catch(e){s(e.message,{element:t,error:e}),console.error("failed to import "+A(t)),console.error(e)}}function s(e,t){l.error(e,t)}function h(t,n){return function(e){t(e,n)}}function t(t){var e=t.cmmnElementRef;if(e&&!_(t,"cmmndi:CMMNEdge"))if(e.di)s("multiple DI elements defined for "+A(e),{element:e});else{var n=function(e){for(;e&&!_(e,"cmmn:Case");)e=e.$parent;return e}(e);n&&-1===p.indexOf(n)&&p.push(n),(_(e,"cmmn:TextAnnotation")||_(e,"cmmn:CaseFileItem"))&&d.push(e),M.bind(e,"di"),e.di=t}else if(_(t,"cmmndi:CMMNEdge")){var r=!0;if(!function(e){if(_(e.cmmnElementRef,"cmmn:Association"))return e.cmmnElementRef.targetRef;return e.targetCMMNElementRef}(t)&&(r=!1,s("no target referenced in "+A(t),{element:t})),function(e){if(_(e.cmmnElementRef,"cmmn:OnPart"))return e.cmmnElementRef.exitCriterionRef||e.cmmnElementRef.sourceRef;if(_(e.cmmnElementRef,"cmmn:Association"))return e.cmmnElementRef.sourceRef;return e.sourceCMMNElementRef}(t)||(r=!1,s("no source referenced in "+A(t),{element:t})),r)if(_(e,"cmmn:Association"))m.push(t);else if(e)u.push(function(e){o(t,e)});else{var i=t.sourceCMMNElementRef;a[i.id]=a[i.id]||[],a[i.id].push(t)}}else s("no cmmnElement referenced in "+A(t),{element:t})}function g(e){var t;t=e.diagramElements,S(t,r)}function r(e){t(e)}function v(e,t){var n,r;n=e.planItems,S(n,h(i,t)),_(e,"cmmn:Stage")&&(r=t,y(e.planningTable,r))}function y(e,t){e&&S(e.tableItems,function(e){_(e,"cmmn:DiscretionaryItem")?function(e,t){if(function(e){return n[e.id]}(e))return;(function(e){n[e.id]=e})(e),i(e,t)}(e,t):_(e,"cmmn:PlanningTable")&&y(e,t)})}function i(e,t){var n=f(e,t);S(e.exitCriteria,h(b,t)),S(e.entryCriteria,h(b,t));var r=e.definitionRef;if(_(r,"cmmn:PlanFragment"))v(r,n),x(e,n);else if(_(r,"cmmn:HumanTask")){y(r.planningTable,t);var i=a[e.id];S(i,h(k,t)),delete a[e.id]}}function b(e,t){c.unshift(function(){f(e,t)})}function x(e,t){if(e.di&&e.di.bounds){var n=(r=d,i=e.di.bounds,C(r,function(e){return e.di.bounds.x>i.x&&e.di.bounds.x<i.x+i.width&&e.di.bounds.y>i.y&&e.di.bounds.y<i.y+i.height}));S(n,function(e){T.remove(d,e),w(e,t)})}var r,i}function w(e,t){_(e,"cmmn:TextAnnotation")?f(e,t):_(e,"cmmn:CaseFileItem")&&f(e,t)}function E(e,t){o(e,t)}function k(e,t){c.push(function(){o(e,t)})}return{handleDefinitions:function(e,t){var n=e.CMMNDI;if(n){var r=n.diagrams;if(t&&-1===r.indexOf(t))throw new Error("diagram not part of cmmn:Definitions");!t&&r&&r.length&&(t=r[0]),g(t);var i,a,o,s=(a=i=t,l.root(i,a));o=s,S(p,function(e){!function(e,t){var n,r=e.casePlanModel;r&&(n=function(e,t){var n=f(e,t);return S(e.exitCriteria,h(b,n)),v(e,n),x(e,n),n}(r,t));(function(e){S(e,function(e){e()})})(c),S(u,function(e){e(n)})}(e,o),c=[],u=[]}),S(d,h(w)),S(m,h(E))}}}}},{"../util/ModelUtil":131,"./Util":127,"diagram-js/lib/util/Collections":227,"min-dash":256,"object-refs":261}],126:[function(e,t,n){"use strict";var c=e("./CmmnTreeWalker");t.exports.importCmmnDiagram=function(e,t,n){var r,i,a=e.get("cmmnImporter"),o=e.get("eventBus"),s=e.get("itemRegistry"),l=[];o.fire("import.render.start",{definitions:t});try{i=t,new c({root:function(e){return a.root(e)},element:function(e,t){return a.add(e,t)},error:function(e,t){l.push({message:e,context:t})},addItem:function(e){s.add(e)}}).handleDefinitions(i)}catch(e){r=e}o.fire("import.render.complete",{error:r,warnings:l}),n(r,l)}},{"./CmmnTreeWalker":125}],127:[function(e,t,n){"use strict";t.exports.elementToString=function(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}},{}],128:[function(e,t,n){"use strict";t.exports={cmmnImporter:["type",e("./CmmnImporter")]}},{"./CmmnImporter":124}],129:[function(e,t,n){"use strict";var r=e("./ModelUtil").is,i=e("./ModelUtil").getBusinessObject,a=e("./ModelUtil").isCasePlanModel;t.exports.isCollapsed=function(e){if(!a(e)){var t=(e=i(e)).definitionRef;if(r(t,"cmmn:PlanFragment"))return!!(e&&e.di&&e.di.isCollapsed)}return!1},t.exports.isPlanningTableCollapsed=function(e){return e=i(e),!!(r(e,"cmmn:Stage")||e.definitionRef&&(r(e.definitionRef,"cmmn:Stage")||r(e.definitionRef,"cmmn:HumanTask")))&&(e.di&&e.di.isPlanningTableCollapsed)},t.exports.isStandardEventVisible=function(e){var t=(e=i(e)).cmmnElementRef;return!(!r(t,"cmmn:OnPart")||!e.isStandardEventVisible)}},{"./ModelUtil":131}],130:[function(e,t,n){"use strict";var r=e("../util/ModelUtil").is,o=e("min-dash").assign,s=t.exports.DEFAULT_LABEL_SIZE={width:90,height:20};t.exports.hasExternalLabel=function(e){return(r(e,"cmmn:PlanItem")||r(e,"cmmn:DiscretionaryItem"))&&(e=e.definitionRef),r(e,"cmmndi:CMMNEdge")&&e.cmmnElementRef&&r(e.cmmnElementRef,"cmmn:OnPart")&&(e=e.cmmnElementRef),r(e,"cmmn:EventListener")||r(e,"cmmn:OnPart")||r(e,"cmmn:CaseFileItem")};var i=t.exports.getWaypointsMid=function(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(.01+t)];return{x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2}},l=t.exports.getExternalLabelMid=function(e){var t=e.businessObject,n=t.di;return!n&&r(t,"cmmndi:CMMNEdge")&&t.cmmnElementRef&&(n=t),t&&n&&n.waypoint?i(n.waypoint):{x:e.x+e.width/2,y:e.y+e.height+s.height/2}};t.exports.getExternalLabelBounds=function(e,t){var n,r,i,a=(e.di||e).label;return a&&a.bounds?(i=a.bounds,r={width:Math.max(s.width,i.width),height:i.height},n={x:i.x+i.width/2,y:i.y+i.height/2}):(n=l(t),r=s),o({x:n.x-r.width/2,y:n.y-r.height/2},r)};var a=t.exports.hasLabelBounds=function(e){return e&&e.di&&e.di.label&&e.di.label.bounds};t.exports.getLabelBounds=function(e){if(a(e))return e.di.label.bounds}},{"../util/ModelUtil":131,"min-dash":256}],131:[function(e,t,n){"use strict";function r(e,t){return n=i(e),r=t,!(!n||"function"!=typeof n.$instanceOf||!n.$instanceOf(r));var n,r}function i(e){return e&&e.businessObject?e.businessObject:e}function a(e){return r(e=i(e),"cmmn:Stage")&&e.$parent&&r(e.$parent,"cmmn:Case")}function o(e){var t=i(e);return r(e,"cmmn:PlanItemDefinition")||r(e,"cmmn:CaseFileItemDefinition")?t:t&&t.definitionRef}function s(e){var t=o(e);return t&&t.defaultControl}function l(e){return(e=i(e))&&e.itemControl}function c(e,t){var n=l(e),r=s(e);return n&&n[t]?n[t]:r&&r[t]}function u(e){if(r(e=i(e),"cmmn:CaseFileItem"))return["addChild","addReference","create","delete","removeChild","removeReference","replace","update"];if(r(e,"cmmn:PlanItem")||r(e,"cmmn:DiscretionaryItem")){var t=o(e);return r(t,"cmmn:EventListener")||r(t,"cmmn:Milestone")?["create","occur","resume","suspend","terminate"]:["complete","create","disable","enable","exit","fault","manualStart","parentResume","parentSuspend","reactivate","reenable","resume","start","suspend","terminate"]}return a(e)?["close","complete","create","fault","reactivate","suspend","terminate"]:[]}t.exports.is=r,t.exports.getBusinessObject=i,t.exports.isCasePlanModel=a,t.exports.getDefinition=o,t.exports.getDefaultControl=s,t.exports.getItemControl=l,t.exports.isRequired=function(e){return!!c(e,"requiredRule")},t.exports.isRepeatable=function(e){return!!c(e,"repetitionRule")},t.exports.isManualActivation=function(e){return!!c(e,"manualActivationRule")},t.exports.isAutoComplete=function(e){var t=o(e=i(e));return e.autoComplete||t&&t.autoComplete},t.exports.hasPlanningTable=function(e){return(e=i(e)).planningTable||o(e)&&o(e).planningTable},t.exports.getName=function(e){r(e=i(e),"cmmndi:CMMNEdge")&&e.cmmnElementRef&&(e=e.cmmnElementRef);var t=e.name;return t||e.definitionRef&&(t=e.definitionRef.name),t},t.exports.getSentry=function(e){var t=i(e);return r(t,"cmmn:Sentry")?t:t&&t.sentryRef},t.exports.getStandardEvent=function(e){return(e=i(e)).cmmnElementRef&&e.cmmnElementRef.standardEvent},t.exports.getStandardEvents=function(e){return r(e,"cmmndi:CMMNEdge")&&(e=i(e).cmmnElementRef),r(e,"cmmn:OnPart")?r(e.exitCriterionRef,"cmmn:ExitCriterion")?["exit"]:u(e.sourceRef):[]},t.exports.getTransitions=u},{}],132:[function(e,t,n){"use strict";var r=e("min-dom").domify,i=e("min-dom").delegate,a='<img width="52" height="52" src="'+("data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 960"><path fill="#fff" d="M960 60v839c0 33-27 61-60 61H60c-33 0-60-27-60-60V60C0 27 27 0 60 0h839c34 0 61 27 61 60z"/><path fill="#52b415" d="M217 548a205 205 0 0 0-144 58 202 202 0 0 0-4 286 202 202 0 0 0 285 3 200 200 0 0 0 48-219 203 203 0 0 0-185-128zM752 6a206 206 0 0 0-192 285 206 206 0 0 0 269 111 207 207 0 0 0 111-260A204 204 0 0 0 752 6zM62 0A62 62 0 0 0 0 62v398l60 46a259 259 0 0 1 89-36c5-28 10-57 14-85l99 2 12 85a246 246 0 0 1 88 38l70-52 69 71-52 68c17 30 29 58 35 90l86 14-2 100-86 12a240 240 0 0 1-38 89l43 58h413c37 0 60-27 60-61V407a220 220 0 0 1-44 40l21 85-93 39-45-76a258 258 0 0 1-98 1l-45 76-94-39 22-85a298 298 0 0 1-70-69l-86 22-38-94 76-45a258 258 0 0 1-1-98l-76-45 40-94 85 22a271 271 0 0 1 41-47z"/></svg>'))+'" />';function o(e){return e.join(";")}var s,l='<div class="bjs-powered-by-lightbox" style="'+o(["z-index: 1001","position: fixed","top: 0","left: 0","right: 0","bottom: 0"])+'"><div class="backdrop" style="'+o(["width: 100%","height: 100%","background: rgba(0,0,0,0.2)"])+'"></div><div class="notice" style="'+o(["position: absolute","left: 50%","top: 40%","margin: 0 -130px","width: 260px","padding: 10px","background: white","border: solid 1px #AAA","border-radius: 3px","font-family: Helvetica, Arial, sans-serif","font-size: 14px","line-height: 1.2em"])+'"><a href="http://bpmn.io" target="_blank" style="float: left; margin-right: 10px">'+a+'</a>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="http://bpmn.io" target="_blank">bpmn.io</a>.</div></div>';t.exports.open=function(){s||(s=r(l),i.bind(s,".backdrop","click",function(e){document.body.removeChild(s)})),document.body.appendChild(s)},t.exports.BPMNIO_IMG=a},{"min-dom":257}],133:[function(e,t,n){arguments[4][95][0].apply(n,arguments)},{"./lib/simple":135,dup:95}],134:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var r,o=e("min-dash"),i=(r=e("moddle"))&&r.__esModule?r:{default:r},s=e("moddle-xml");function a(e,t){i.default.call(this,e,t)}(a.prototype=Object.create(i.default.prototype)).fromXML=function(e,t,n,r){(0,o.isString)(t)||(r=n,n=t,t="cmmn:Definitions"),(0,o.isFunction)(n)&&(r=n,n={});var i=new s.Reader((0,o.assign)({model:this,lax:!0},n)),a=i.handler(t);i.fromXML(e,a,r)},a.prototype.toXML=function(e,t,n){(0,o.isFunction)(t)&&(n=t,t={});var r,i,a=new s.Writer(t);try{r=a.toXML(e)}catch(e){i=e}return n(i,r)}},{"min-dash":256,moddle:140,"moddle-xml":136}],135:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n=(0,r.assign)({},u,e);return new i.default(n,t)};var r=e("min-dash"),i=c(e("./cmmn-moddle")),a=c(e("../resources/cmmn/json/cmmn.json")),o=c(e("../resources/cmmn/json/cmmndi.json")),s=c(e("../resources/cmmn/json/dc.json")),l=c(e("../resources/cmmn/json/di.json"));function c(e){return e&&e.__esModule?e:{default:e}}var u={cmmn:a.default,cmmndi:o.default,dc:s.default,di:l.default}},{"../resources/cmmn/json/cmmn.json":149,"../resources/cmmn/json/cmmndi.json":150,"../resources/cmmn/json/dc.json":151,"../resources/cmmn/json/di.json":152,"./cmmn-moddle":134,"min-dash":256}],136:[function(e,t,n){arguments[4][98][0].apply(n,arguments)},{"./lib/read":138,"./lib/write":139,dup:98}],137:[function(e,t,n){arguments[4][99][0].apply(n,arguments)},{dup:99}],138:[function(e,t,n){arguments[4][100][0].apply(n,arguments)},{"./common":137,dup:100,"min-dash":256,moddle:140,"moddle/lib/ns":145,"moddle/lib/types":148,saxen:265}],139:[function(e,t,n){arguments[4][101][0].apply(n,arguments)},{"./common":137,"core-js/modules/es.string.replace":188,dup:101,"min-dash":256,"moddle/lib/ns":145,"moddle/lib/types":148}],140:[function(e,t,n){arguments[4][102][0].apply(n,arguments)},{"./lib/moddle":144,dup:102}],141:[function(e,t,n){arguments[4][103][0].apply(n,arguments)},{dup:103}],142:[function(e,t,n){arguments[4][104][0].apply(n,arguments)},{"./ns":145,dup:104,"min-dash":256}],143:[function(e,t,n){arguments[4][105][0].apply(n,arguments)},{"./base":141,dup:105,"min-dash":256}],144:[function(e,t,n){arguments[4][106][0].apply(n,arguments)},{"./factory":143,"./ns":145,"./properties":146,"./registry":147,dup:106,"min-dash":256}],145:[function(e,t,n){arguments[4][107][0].apply(n,arguments)},{dup:107}],146:[function(e,t,n){arguments[4][108][0].apply(n,arguments)},{dup:108}],147:[function(e,t,n){arguments[4][109][0].apply(n,arguments)},{"./descriptor-builder":142,"./ns":145,"./types":148,dup:109,"min-dash":256}],148:[function(e,t,n){arguments[4][110][0].apply(n,arguments)},{dup:110}],149:[function(e,t,n){t.exports={name:"CMMN",uri:"http://www.omg.org/spec/CMMN/20151109/MODEL",types:[{name:"ApplicabilityRule",superClass:["CMMNElement"],properties:[{name:"condition",type:"Expression",xml:{serialize:"property"}},{name:"contextRef",type:"CaseFileItem",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["CMMNElement"]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"CMMNElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"CMMNElement",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"ManualActivationRule",superClass:["CMMNElement"],properties:[{name:"condition",type:"Expression",xml:{serialize:"property"}},{name:"name",isAttr:!0,type:"String"},{name:"contextRef",type:"CaseFileItem",isAttr:!0,isReference:!0}]},{name:"Case",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"caseFileModel",type:"CaseFile",xml:{serialize:"property"}},{name:"casePlanModel",type:"Stage",xml:{serialize:"property"}},{name:"caseRoles",type:"CaseRoles"},{name:"input",type:"CaseParameter",isMany:!0,xml:{serialize:"property"}},{name:"output",type:"CaseParameter",isMany:!0,xml:{serialize:"property"}}]},{name:"CaseFile",superClass:["CMMNElement"],properties:[{name:"caseFileItems",type:"CaseFileItem",isMany:!0}]},{name:"CaseFileItem",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"multiplicity",type:"String",isAttr:!0,default:"Unspecified"},{name:"definitionRef",type:"CaseFileItemDefinition",isAttr:!0,isReference:!0},{name:"sourceRef",type:"CaseFileItem",isAttr:!0,isReference:!0},{name:"targetRefs",type:"CaseFileItem",isAttr:!0,isReference:!0,isMany:!0},{name:"children",type:"Children",xml:{serialize:"property"}}]},{name:"CaseFileItemDefinition",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"definitionType",type:"String",default:"http://www.omg.org/spec/CMMN/DefinitionType/Unspecified",isAttr:!0},{name:"properties",type:"Property",isMany:!0},{name:"structureRef",type:"String",isAttr:!0},{name:"importRef",type:"Import",isAttr:!0,isReference:!0}]},{name:"CaseFileItemOnPart",superClass:["OnPart"],properties:[{name:"standardEvent",type:"String"},{name:"sourceRef",type:"CaseFileItem",isAttr:!0,isReference:!0}]},{name:"CaseParameter",superClass:["Parameter"],properties:[{name:"bindingRef",type:"CaseFileItem",isAttr:!0,isReference:!0},{name:"bindingRefinement",type:"Expression",xml:{serialize:"property"}}]},{name:"CaseRoles",superClass:["Parameter"],properties:[{name:"role",type:"Role",isMany:!0}]},{name:"CaseTask",superClass:["Task"],properties:[{name:"parameterMapping",type:"ParameterMapping",isMany:!0},{name:"caseRefExpression",type:"Expression",xml:{serialize:"property"}},{name:"caseRef",type:"String",isAttr:!0}]},{name:"Children",superClass:["CMMNElement"],properties:[{name:"caseFileItems",type:"CaseFileItem",isMany:!0}]},{name:"CMMNElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionElements",type:"ExtensionElements"},{name:"extensionDefinitions",type:"ExtensionDefinition",isReference:!0,isMany:!0}]},{name:"Definitions",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",type:"String",isAttr:!0},{name:"expressionLanguage",type:"String",isAttr:!0,default:"http://www.w3.org/1999/XPath"},{name:"exporter",isAttr:!0,type:"String"},{name:"exporterVersion",isAttr:!0,type:"String"},{name:"author",isAttr:!0,type:"String"},{name:"creationDate",type:"DateTime",isAttr:!0},{name:"imports",type:"Import",isMany:!0},{name:"caseFileItemDefinitions",type:"CaseFileItemDefinition",isMany:!0},{name:"cases",type:"Case",isMany:!0},{name:"processes",type:"Process",isMany:!0},{name:"decisions",type:"Decision",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"relationships",type:"Relationship",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"CMMNDI",type:"cmmndi:CMMNDI"}]},{name:"DiscretionaryItem",superClass:["TableItem"],properties:[{name:"itemControl",type:"PlanItemControl",xml:{serialize:"property"}},{name:"definitionRef",type:"PlanItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"entryCriteria",type:"EntryCriterion",isMany:!0},{name:"exitCriteria",type:"ExitCriterion",isMany:!0}]},{name:"EventListener",superClass:["PlanItemDefinition"]},{name:"Expression",superClass:["CMMNElement"],properties:[{name:"language",type:"String",isAttr:!0},{name:"body",isBody:!0,type:"String"}]},{name:"HumanTask",superClass:["Task"],properties:[{name:"planningTable",type:"PlanningTable"},{name:"performerRef",type:"Role",isAttr:!0,isReference:!0}]},{name:"IfPart",superClass:["CMMNElement"],properties:[{name:"contextRef",type:"CaseFileItem",isAttr:!0,isReference:!0},{name:"condition",type:"Expression",xml:{serialize:"property"}}]},{name:"Import",properties:[{name:"location",isAttr:!0,type:"String"},{name:"namespace",type:"String",isAttr:!0},{name:"importType",isAttr:!0,type:"String"}]},{name:"Milestone",superClass:["PlanItemDefinition"]},{name:"On",isAbstract:!0,superClass:["CMMNElement"]},{name:"OnPart",isAbstract:!0,superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"Parameter",isAbstract:!0,superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ParameterMapping",properties:[{name:"sourceRef",type:"Parameter",isAttr:!0,isReference:!0},{name:"targetRef",type:"Parameter",isAttr:!0,isReference:!0},{name:"transformation",type:"Expression",xml:{serialize:"property"}}]},{name:"PlanFragment",superClass:["PlanItemDefinition"],properties:[{name:"planItems",type:"PlanItem",isMany:!0},{name:"sentries",type:"Sentry",isMany:!0}]},{name:"PlanItem",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"definitionRef",type:"PlanItemDefinition",isAttr:!0,isReference:!0},{name:"itemControl",type:"PlanItemControl",xml:{serialize:"property"}},{name:"entryCriteria",type:"EntryCriterion",isMany:!0},{name:"exitCriteria",type:"ExitCriterion",isMany:!0}]},{name:"PlanItemControl",superClass:["CMMNElement"],properties:[{name:"repetitionRule",type:"RepetitionRule"},{name:"requiredRule",type:"RequiredRule"},{name:"manualActivationRule",type:"ManualActivationRule"}]},{name:"PlanItemDefinition",isAbstract:!0,superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"defaultControl",type:"PlanItemControl",xml:{serialize:"property"}}]},{name:"PlanItemOnPart",superClass:["OnPart"],properties:[{name:"standardEvent",type:"String"},{name:"sourceRef",type:"PlanItem",isAttr:!0,isReference:!0},{name:"exitCriterionRef",type:"ExitCriterion",isAttr:!0,isReference:!0}]},{name:"PlanningTable",superClass:["TableItem"],properties:[{name:"tableItems",type:"TableItem",isMany:!0},{name:"applicabilityRules",type:"ApplicabilityRule",isMany:!0}]},{name:"Process",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"implementationType",type:"String",isAttr:!0,default:"http://www.omg.org/spec/CMMN/ProcessType/Unspecified"},{name:"externalRef",type:"String",isAttr:!0},{name:"input",type:"ProcessParameter",isMany:!0,xml:{serialize:"property"}},{name:"output",type:"ProcessParameter",isMany:!0,xml:{serialize:"property"}}]},{name:"ProcessParameter",superClass:["Parameter"]},{name:"ProcessTask",superClass:["Task"],properties:[{name:"parameterMapping",type:"ParameterMapping",isMany:!0},{name:"processRefExpression",type:"Expression",xml:{serialize:"property"}},{name:"processRef",type:"String",isAttr:!0}]},{name:"Property",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",type:"String",isAttr:!0,default:"http://www.omg.org/spec/CMMN/PropertyType/Unspecified"}]},{name:"RepetitionRule",superClass:["CMMNElement"],properties:[{name:"condition",type:"Expression",xml:{serialize:"property"}},{name:"name",isAttr:!0,type:"String"},{name:"contextRef",type:"CaseFileItem",isAttr:!0,isReference:!0}]},{name:"RequiredRule",superClass:["CMMNElement"],properties:[{name:"condition",type:"Expression",xml:{serialize:"property"}},{name:"name",isAttr:!0,type:"String"},{name:"contextRef",type:"CaseFileItem",isAttr:!0,isReference:!0}]},{name:"Role",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"Sentry",superClass:["CMMNElement"],properties:[{name:"onParts",type:"OnPart",isMany:!0},{name:"ifPart",type:"IfPart"},{name:"name",isAttr:!0,type:"String"}]},{name:"Stage",superClass:["PlanFragment"],properties:[{name:"planningTable",type:"PlanningTable"},{name:"planItemDefinitions",type:"PlanItemDefinition",isMany:!0},{name:"autoComplete",isAttr:!0,type:"Boolean"},{name:"exitCriteria",type:"ExitCriterion",isMany:!0}]},{name:"TableItem",isAbstract:!0,superClass:["CMMNElement"],properties:[{name:"authorizedRoleRefs",type:"Role",isAttr:!0,isReference:!0,isMany:!0},{name:"applicabilityRuleRefs",type:"ApplicabilityRule",isAttr:!0,isReference:!0,isMany:!0}]},{name:"Task",superClass:["PlanItemDefinition"],properties:[{name:"input",type:"CaseParameter",isMany:!0,xml:{serialize:"property"}},{name:"output",type:"CaseParameter",isMany:!0,xml:{serialize:"property"}},{name:"isBlocking",isAttr:!0,default:!0,type:"Boolean"}]},{name:"TimerEventListener",superClass:["EventListener"],properties:[{name:"timerExpression",type:"Expression",xml:{serialize:"property"}},{name:"timerStart",type:"StartTrigger"}]},{name:"UserEventListener",superClass:["EventListener"],properties:[{name:"authorizedRoleRefs",type:"Role",isMany:!0,isAttr:!0}]},{name:"DateTime",superClass:[]},{name:"StartTrigger",isAbstract:!0,superClass:["CMMNElement"]},{name:"PlanItemStartTrigger",superClass:["StartTrigger"],properties:[{name:"standardEvent",type:"String",isAttr:!0},{name:"sourceRef",type:"PlanItem",isAttr:!0,isReference:!0}]},{name:"CaseFileItemStartTrigger",superClass:["StartTrigger"],properties:[{name:"standardEvent",type:"String",isAttr:!0},{name:"sourceRef",type:"CaseFileItem",isAttr:!0,isReference:!0}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition"}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",isAttr:!0,default:!1,type:"Boolean"}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Relationship",properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,type:"Element"},{name:"target",isMany:!0,type:"Element"}]},{name:"Documentation",superClass:["CMMNElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"DecisionTask",superClass:["Task"],properties:[{name:"mappings",type:"ParameterMapping",isMany:!0},{name:"decisionRef",type:"String",isAttr:!0},{name:"decisionRefExpression",type:"Expression",xml:{serialize:"property"}}]},{name:"Decision",superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"implementationType",type:"String",isAttr:!0,default:"http://www.omg.org/spec/CMMN/DecisionType/Unspecified"},{name:"input",type:"DecisionParameter",isMany:!0,xml:{serialize:"property"}},{name:"output",type:"DecisionParameter",isMany:!0,xml:{serialize:"property"}},{name:"externalRef",type:"String",isAttr:!0}]},{name:"DecisionParameter",superClass:["Parameter"]},{name:"Criterion",isAbstract:!0,superClass:["CMMNElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sentryRef",type:"Sentry",isAttr:!0,isReference:!0}]},{name:"EntryCriterion",superClass:["Criterion"]},{name:"ExitCriterion",superClass:["Criterion"]}],emumerations:[{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"CaseFileItemTransition",literalValues:[{name:"addChild"},{name:"addReference"},{name:"create"},{name:"delete"},{name:"removeChild"},{name:"removeReference"},{name:"replace"},{name:"update"}]},{name:"MultiplicityEnum",literalValues:[{name:"ZeroOrOne"},{name:"ZeroOrMore"},{name:"ExactlyOne"},{name:"OneOrMore"},{name:"Unspecified"},{name:"Unknown"}]},{name:"PlanItemTransition",literalValues:[{name:"close"},{name:"complete"},{name:"create"},{name:"disable"},{name:"enable"},{name:"exit"},{name:"fault"},{name:"manualStart"},{name:"occur"},{name:"parentResume"},{name:"parentSuspend"},{name:"reactivate"},{name:"reenable"},{name:"resume"},{name:"start"},{name:"suspend"},{name:"terminate"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]}],associations:[],xml:{tagAlias:"lowerCase",typePrefix:"t"},prefix:"cmmn"}},{}],150:[function(e,t,n){t.exports={name:"CMMNDI",uri:"http://www.omg.org/spec/CMMN/20151109/CMMNDI",types:[{name:"CMMNDI",properties:[{name:"diagrams",type:"CMMNDiagram",isMany:!0},{name:"styles",type:"CMMNStyle",isMany:!0}]},{name:"CMMNDiagram",properties:[{name:"cmmnElementRef",isAttr:!0,type:"cmmn:CMMNElement",isReference:!0},{name:"Size",type:"dc:Dimension",xml:{serialize:"xsi:type"}},{name:"diagramElements",type:"CMMNDiagramElement",isMany:!0}],superClass:["di:Diagram"]},{name:"CMMNDiagramElement",superClass:["di:DiagramElement"]},{name:"CMMNShape",properties:[{name:"cmmnElementRef",isAttr:!0,isReference:!0,type:"cmmn:CMMNElement"},{name:"label",type:"CMMNLabel"},{name:"isCollapsed",isAttr:!0,type:"Boolean"},{name:"isPlanningTableCollapsed",isAttr:!0,type:"Boolean"}],superClass:["CMMNDiagramElement","di:Shape"]},{name:"CMMNEdge",properties:[{name:"label",type:"CMMNLabel"},{name:"cmmnElementRef",isAttr:!0,isReference:!0,type:"cmmn:CMMNElement"},{name:"sourceCMMNElementRef",isAttr:!0,isReference:!0,type:"cmmn:CMMNElement"},{name:"targetCMMNElementRef",isAttr:!0,isReference:!0,type:"cmmn:CMMNElement"},{name:"isStandardEventVisible",type:"Boolean",isAttr:!0}],superClass:["CMMNDiagramElement","di:Edge"]},{name:"CMMNLabel",superClass:["di:Shape"]},{name:"CMMNStyle",properties:[{name:"FillColor",type:"dc:Color",xml:{serialize:"xsi:type"}},{name:"StrokeColor",type:"dc:Color",xml:{serialize:"xsi:type"}},{name:"FontColor",type:"dc:Color",xml:{serialize:"xsi:type"}},{name:"fontFamily",type:"String",isAttr:!0},{name:"fontSize",type:"Real",isAttr:!0},{name:"fontItalic",type:"Boolean",isAttr:!0},{name:"fontBold",type:"Boolean",isAttr:!0},{name:"fontUnderline",type:"Boolean",isAttr:!0},{name:"fontStrikeThrough",type:"Boolean",isAttr:!0}],superClass:["di:Style"]}],associations:[],prefix:"cmmndi"}},{}],151:[function(e,t,n){t.exports={name:"DC",uri:"http://www.omg.org/spec/CMMN/20151109/DC",types:[{name:"rgb"},{name:"Real"},{name:"Color",properties:[{name:"red",type:"rgb",isAttr:!0},{name:"green",type:"rgb",isAttr:!0},{name:"blue",type:"rgb",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",isAttr:!0},{name:"y",type:"Real",isAttr:!0}]},{name:"Dimension",properties:[{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",isAttr:!0},{name:"y",type:"Real",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],prefix:"dc",associations:[]}},{}],152:[function(e,t,n){t.exports={name:"DI",uri:"http://www.omg.org/spec/CMMN/20151109/DI",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"extension",type:"Extension"},{name:"style",type:"Style"},{name:"sharedStyle",type:"Style",isReference:!0,isAttr:!0},{name:"id",type:"String",isAttr:!0,isId:!0}]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"waypoint",isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"name",type:"String",isAttr:!0},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,default:300,type:"double"}]},{name:"Shape",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"extension",type:"Extension"},{name:"id",type:"String",isAttr:!0,isId:!0}]},{name:"Extension",properties:[{name:"values",type:"Element",isMany:!0}]}],associations:[],prefix:"di",xml:{tagAlias:"lowerCase"}}},{}],153:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt;t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"../internals/string-multibyte":181}],154:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},{"../internals/is-object":168}],155:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],156:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],157:[function(e,t,n){var r=e("../internals/fails");t.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"../internals/fails":159}],158:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/is-object"),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}},{"../internals/global":162,"../internals/is-object":168}],159:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],160:[function(e,t,n){"use strict";var p=e("../internals/hide"),d=e("../internals/redefine"),m=e("../internals/fails"),f=e("../internals/well-known-symbol"),h=e("../internals/regexp-exec"),g=f("species"),v=!m(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),y=!m(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(n,e,t,r){var i=f(n),a=!m(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),o=a&&!m(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[g]=function(){return t}),t[i](""),!e});if(!a||!o||"replace"===n&&!v||"split"===n&&!y){var s=/./[i],l=t(i,""[n],function(e,t,n,r,i){return t.exec===h?a&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),c=l[0],u=l[1];d(String.prototype,n,c),d(RegExp.prototype,i,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}),r&&p(RegExp.prototype[i],"sham",!0)}}},{"../internals/fails":159,"../internals/hide":165,"../internals/redefine":173,"../internals/regexp-exec":175,"../internals/well-known-symbol":187}],161:[function(e,t,n){var r=e("../internals/shared");t.exports=r("native-function-to-string",Function.toString)},{"../internals/shared":180}],162:[function(e,r,t){(function(e){function t(e){return e&&e.Math==Math&&e}var n="object";r.exports=t(typeof globalThis==n&&globalThis)||t(typeof window==n&&window)||t(typeof self==n&&self)||t(typeof e==n&&e)||Function("return this")()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],163:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],164:[function(e,t,n){t.exports={}},{}],165:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":156,"../internals/descriptors":157,"../internals/object-define-property":172}],166:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/document-create-element");t.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":157,"../internals/document-create-element":158,"../internals/fails":159}],167:[function(e,t,n){var r,i,a,o=e("../internals/native-weak-map"),s=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/hide"),u=e("../internals/has"),p=e("../internals/shared-key"),d=e("../internals/hidden-keys"),m=s.WeakMap;if(o){var f=new m,h=f.get,g=f.has,v=f.set;r=function(e,t){return v.call(f,e,t),t},i=function(e){return h.call(f,e)||{}},a=function(e){return g.call(f,e)}}else{var y=p("state");d[y]=!0,r=function(e,t){return c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}t.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(n){return function(e){var t;if(!l(e)||(t=i(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}}},{"../internals/global":162,"../internals/has":163,"../internals/hidden-keys":164,"../internals/hide":165,"../internals/is-object":168,"../internals/native-weak-map":171,"../internals/shared-key":179}],168:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],169:[function(e,t,n){t.exports=!1},{}],170:[function(e,t,n){var r=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},{"../internals/fails":159}],171:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/function-to-string"),a=r.WeakMap;t.exports="function"==typeof a&&/native code/.test(i.call(a))},{"../internals/function-to-string":161,"../internals/global":162}],172:[function(e,t,n){var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),a=e("../internals/an-object"),o=e("../internals/to-primitive"),s=Object.defineProperty;n.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":154,"../internals/descriptors":157,"../internals/ie8-dom-define":166,"../internals/to-primitive":185}],173:[function(e,t,n){var s=e("../internals/global"),r=e("../internals/shared"),l=e("../internals/hide"),c=e("../internals/has"),u=e("../internals/set-global"),i=e("../internals/function-to-string"),a=e("../internals/internal-state"),o=a.get,p=a.enforce,d=String(i).split("toString");r("inspectSource",function(e){return i.call(e)}),(t.exports=function(e,t,n,r){var i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,o=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||c(n,"name")||l(n,"name",t),p(n).source=d.join("string"==typeof t?t:"")),e!==s?(i?!o&&e[t]&&(a=!0):delete e[t],a?e[t]=n:l(e,t,n)):a?e[t]=n:u(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||i.call(this)})},{"../internals/function-to-string":161,"../internals/global":162,"../internals/has":163,"../internals/hide":165,"../internals/internal-state":167,"../internals/set-global":178,"../internals/shared":180}],174:[function(e,t,n){var i=e("./classof-raw"),a=e("./regexp-exec");t.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},{"./classof-raw":155,"./regexp-exec":175}],175:[function(e,t,n){"use strict";var r,i,a=e("./regexp-flags"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c=(r=/a/,i=/b*/g,o.call(r,"a"),o.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,i;return u&&(n=new RegExp("^"+this.source+"$(?!\\s)",a.call(this))),c&&(t=this.lastIndex),r=o.call(this,e),c&&r&&(this.lastIndex=this.global?r.index+r[0].length:t),u&&r&&1<r.length&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),t.exports=l},{"./regexp-flags":176}],176:[function(e,t,n){"use strict";var r=e("../internals/an-object");t.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"../internals/an-object":154}],177:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],178:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/hide");t.exports=function(t,n){try{i(r,t,n)}catch(e){r[t]=n}return n}},{"../internals/global":162,"../internals/hide":165}],179:[function(e,t,n){var r=e("../internals/shared"),i=e("../internals/uid"),a=r("keys");t.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":180,"../internals/uid":186}],180:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/set-global"),a=e("../internals/is-pure"),o="__core-js_shared__",s=r[o]||i(o,{});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"../internals/global":162,"../internals/is-pure":169,"../internals/set-global":178}],181:[function(e,t,n){function r(s){return function(e,t){var n,r,i=String(c(e)),a=l(t),o=i.length;return a<0||o<=a?s?"":void 0:(n=i.charCodeAt(a))<55296||56319<n||a+1===o||(r=i.charCodeAt(a+1))<56320||57343<r?s?i.charAt(a):n:s?i.slice(a,a+2):r-56320+(n-55296<<10)+65536}}var l=e("../internals/to-integer"),c=e("../internals/require-object-coercible");t.exports={codeAt:r(!1),charAt:r(!0)}},{"../internals/require-object-coercible":177,"../internals/to-integer":182}],182:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?i:r)(e)}},{}],183:[function(e,t,n){var r=e("../internals/to-integer"),i=Math.min;t.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},{"../internals/to-integer":182}],184:[function(e,t,n){var r=e("../internals/require-object-coercible");t.exports=function(e){return Object(r(e))}},{"../internals/require-object-coercible":177}],185:[function(e,t,n){var i=e("../internals/is-object");t.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":168}],186:[function(e,t,n){var r=0,i=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+i).toString(36)}},{}],187:[function(e,t,n){var r=e("../internals/global"),i=e("../internals/shared"),a=e("../internals/uid"),o=e("../internals/native-symbol"),s=r.Symbol,l=i("wks");t.exports=function(e){return l[e]||(l[e]=o&&s[e]||(o?s:a)("Symbol."+e))}},{"../internals/global":162,"../internals/native-symbol":170,"../internals/shared":180,"../internals/uid":186}],188:[function(e,t,n){"use strict";var r=e("../internals/fix-regexp-well-known-symbol-logic"),S=e("../internals/an-object"),d=e("../internals/to-object"),C=e("../internals/to-length"),A=e("../internals/to-integer"),a=e("../internals/require-object-coercible"),_=e("../internals/advance-string-index"),T=e("../internals/regexp-exec-abstract"),M=Math.max,D=Math.min,m=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,function(i,w,E){return[function(e,t){var n=a(this),r=null==e?void 0:e[i];return void 0!==r?r.call(e,n,t):w.call(String(n),e,t)},function(e,t){var n=E(w,e,this,t);if(n.done)return n.value;var r=S(e),i=String(this),a="function"==typeof t;a||(t=String(t));var o=r.global;if(o){var s=r.unicode;r.lastIndex=0}for(var l=[];;){var c=T(r,i);if(null===c)break;if(l.push(c),!o)break;""===String(c[0])&&(r.lastIndex=_(i,C(r.lastIndex),s))}for(var u,p="",d=0,m=0;m<l.length;m++){c=l[m];for(var f=String(c[0]),h=M(D(A(c.index),i.length),0),g=[],v=1;v<c.length;v++)g.push(void 0===(u=c[v])?u:String(u));var y=c.groups;if(a){var b=[f].concat(g,h,i);void 0!==y&&b.push(y);var x=String(t.apply(void 0,b))}else x=k(f,i,h,g,y,t);d<=h&&(p+=i.slice(d,h)+x,d=h+f.length)}return p+i.slice(d)}];function k(a,o,s,l,c,e){var u=s+a.length,p=l.length,t=h;return void 0!==c&&(c=d(c),t=f),w.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,s);case"'":return o.slice(u);case"<":n=c[t.slice(1,-1)];break;default:var r=+t;if(0==r)return e;if(p<r){var i=m(r/10);return 0===i?e:i<=p?void 0===l[i-1]?t.charAt(1):l[i-1]+t.charAt(1):e}n=l[r-1]}return void 0===n?"":n})}})},{"../internals/advance-string-index":153,"../internals/an-object":154,"../internals/fix-regexp-well-known-symbol-logic":160,"../internals/regexp-exec-abstract":174,"../internals/require-object-coercible":177,"../internals/to-integer":182,"../internals/to-length":183,"../internals/to-object":184}],189:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i.default}});var r,i=(r=e("./lib/Diagram"))&&r.__esModule?r:{default:r}},{"./lib/Diagram":190}],190:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r,o=e("didi"),i=(r=e("./core"))&&r.__esModule?r:{default:r};function a(e){var r=[],i=[];function a(e){return 0<=r.indexOf(e)}e.forEach(function e(t){var n;a(t)||((t.__depends__||[]).forEach(e),a(t)||(n=t,r.push(n),(t.__init__||[]).forEach(function(e){i.push(e)})))});var t=new o.Injector(r);return i.forEach(function(e){try{t["string"==typeof e?"get":"invoke"](e)}catch(e){throw console.error("Failed to instantiate component"),console.error(e.stack),e}}),t}function s(e,t){var n;this.injector=t=t||a([{config:["value",n=(n=e)||{}]},i.default].concat(n.modules||[])),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}s.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},s.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")}},{"./core":196,didi:241}],191:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var p=e("min-dash"),a=e("../util/Collections"),r=e("../util/Elements"),c=e("tiny-svg");function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){return Math.round(e*t)/t}function l(e){return(0,p.isNumber)(e)?e+"px":e}function d(e,t,n){var r=(0,c.create)("g");(0,c.classes)(r).add(t);var i=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(r,e.childNodes[i]||null),r}var o={shape:["x","y","width","height"],connection:["waypoints"]};function s(e,t,n,r){this._eventBus=t,this._elementRegistry=r,this._graphicsFactory=n,this._init(e||{})}function m(e,t){var n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}s.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],s.prototype._init=function(e){var t,n,r,i=this._eventBus,a=this._container=(t=e,n=(t=(0,p.assign)({},{width:"100%",height:"100%"},t)).container||document.body,(r=document.createElement("div")).setAttribute("class","djs-container"),(0,p.assign)(r.style,{position:"relative",overflow:"hidden",width:l(t.width),height:l(t.height)}),n.appendChild(r),r),o=this._svg=(0,c.create)("svg");(0,c.attr)(o,{width:"100%",height:"100%"}),(0,c.append)(a,o);var s=this._viewport=d(o,"viewport");!(this._layers={})!==e.deferUpdate&&(this._viewboxChanged=(0,p.debounce)((0,p.bind)(this._viewboxChanged,this),300)),i.on("diagram.init",function(){i.fire("canvas.init",{svg:o,viewport:s})},this),i.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed"],function(){delete this._cachedViewbox},this),i.on("diagram.destroy",500,this._destroy,this),i.on("diagram.clear",500,this._clear,this)},s.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._rootElement,delete this._viewport},s.prototype._clear=function(){var n=this;this._elementRegistry.getAll().forEach(function(e){var t=(0,r.getType)(e);"root"===t?n.setRootElement(null,!0):n._removeElement(e,t)}),delete this._cachedViewbox},s.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},s.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");var n=this._layers[e];if(n=n||(this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},s.prototype._createLayer=function(e,n){n=n||0;var t=(0,p.reduce)(this._layers,function(e,t){return n>=t.index&&e++,e},0);return{group:d(this._viewport,"layer-"+e,t),index:n}},s.prototype.getContainer=function(){return this._container},s.prototype._updateMarker=function(e,t,n){var r;e.id||(e=this._elementRegistry.get(e)),(r=this._elementRegistry._elements[e.id])&&((0,p.forEach)([r.gfx,r.secondaryGfx],function(e){e&&(n?(0,c.classes)(e).add(t):(0,c.classes)(e).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:r.gfx,marker:t,add:!!n}))},s.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},s.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},s.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));var n=this.getGraphics(e);return(0,c.classes)(n).has(t)},s.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},s.prototype.getRootElement=function(){return this._rootElement||this.setRootElement({id:"__implicitroot",children:[]}),this._rootElement},s.prototype.setRootElement=function(e,t){e&&this._ensureValid("root",e);var n=this._rootElement,r=this._elementRegistry,i=this._eventBus;if(n){if(!t)throw new Error("rootElement already set, need to specify override");i.fire("root.remove",{element:n}),i.fire("root.removed",{element:n}),r.remove(n)}if(e){var a=this.getDefaultLayer();i.fire("root.add",{element:e}),r.add(e,a,this._svg),i.fire("root.added",{element:e,gfx:a})}return this._rootElement=e},s.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element with id "+t.id+" already exists");var n=o[e];if(!(0,p.every)(n,function(e){return void 0!==t[e]}))throw new Error("must supply { "+n.join(", ")+" } with "+e)},s.prototype._setParent=function(e,t,n){(0,a.add)(t.children,e,n),e.parent=t},s.prototype._addElement=function(e,t,n,r){n=n||this.getRootElement();var i=this._eventBus,a=this._graphicsFactory;this._ensureValid(e,t),i.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,r);var o=a.create(e,t,r);return this._elementRegistry.add(t,o),a.update(e,t,o),i.fire(e+".added",{element:t,gfx:o}),t},s.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},s.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},s.prototype._removeElement=function(e,t){var n=this._elementRegistry,r=this._graphicsFactory,i=this._eventBus;if(e=n.get(e.id||e))return i.fire(t+".remove",{element:e}),r.remove(e),(0,a.remove)(e.parent&&e.parent.children,e),e.parent=null,i.fire(t+".removed",{element:e}),n.remove(e),e},s.prototype.removeShape=function(e){return this._removeElement(e,"shape")},s.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},s.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},s.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},s.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},s.prototype.viewbox=function(t){if(void 0===t&&this._cachedViewbox)return this._cachedViewbox;var e,n,r,i,a,o,s=this._viewport,l=this.getSize();return t?(this._changeViewbox(function(){i=Math.min(l.width/t.width,l.height/t.height);var e=this._svg.createSVGMatrix().scale(i).translate(-t.x,-t.y);(0,c.transform)(s,e)}),t):(e=this.getDefaultLayer().getBBox(),n=(r=(0,c.transform)(s))?r.matrix:(0,c.createMatrix)(),i=u(n.a,1e3),a=u(-n.e||0,1e3),o=u(-n.f||0,1e3),t=this._cachedViewbox={x:a?a/i:0,y:o?o/i:0,width:l.width/i,height:l.height/i,scale:i,inner:{width:e.width,height:e.height,x:e.x,y:e.y},outer:l})},s.prototype.scroll=function(e){var t=this._viewport,n=t.getCTM();return e&&this._changeViewbox(function(){e=(0,p.assign)({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),m(t,n)}),{x:n.e,y:n.f}},s.prototype.zoom=function(e,t){return e?"fit-viewport"===e?this._fitViewport(t):(this._changeViewbox(function(){"object"!==i(t)&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),r=this._setZoom(e,t)}),u(r.a,1e3)):this.viewbox(e).scale;var n,r},s.prototype._fitViewport=function(e){var t,n,r=this.viewbox(),i=r.outer,a=r.inner;return n=0<=a.x&&0<=a.y&&a.x+a.width<=i.width&&a.y+a.height<=i.height&&!e?{x:0,y:0,width:Math.max(a.width+a.x,i.width),height:Math.max(a.height+a.y,i.height)}:(t=Math.min(1,i.width/a.width,i.height/a.height),{x:a.x+(e?a.width/2-i.width/t/2:0),y:a.y+(e?a.height/2-i.height/t/2:0),width:i.width/t,height:i.height/t}),this.viewbox(n),this.viewbox(!1).scale},s.prototype._setZoom=function(e,t){var n,r,i,a,o=this._svg,s=this._viewport,l=o.createSVGMatrix(),c=o.createSVGPoint(),u=(r=s.getCTM()).a;return a=t?(n=(0,p.assign)(c,t).matrixTransform(r.inverse()),i=l.translate(n.x,n.y).scale(1/u*e).translate(-n.x,-n.y),r.multiply(i)):l.scale(e),m(this._viewport,a),a},s.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},s.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();e.waypoints?t=this.getGraphics(e).getBBox():t=e;return{x:t.x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},s.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")}},{"../util/Collections":227,"../util/Elements":229,"min-dash":256,"tiny-svg":266}],192:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var r=e("../model"),i=e("min-dash");function a(){this._uid=12}a.prototype.createRoot=function(e){return this.create("root",e)},a.prototype.createLabel=function(e){return this.create("label",e)},a.prototype.createShape=function(e){return this.create("shape",e)},a.prototype.createConnection=function(e){return this.create("connection",e)},a.prototype.create=function(e,t){return(t=(0,i.assign)({},t||{})).id||(t.id=e+"_"+this._uid++),(0,r.create)(e,t)}},{"../model":218,"min-dash":256}],193:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var i=e("tiny-svg"),a="data-element-id";function r(e){this._elements={},this._eventBus=e}r.$inject=["eventBus"],r.prototype.add=function(e,t,n){var r=e.id;this._validateId(r),(0,i.attr)(t,a,r),n&&(0,i.attr)(n,a,r),this._elements[r]={element:e,gfx:t,secondaryGfx:n}},r.prototype.remove=function(e){var t=this._elements,n=e.id||e,r=n&&t[n];r&&((0,i.attr)(r.gfx,a,""),r.secondaryGfx&&(0,i.attr)(r.secondaryGfx,a,""),delete t[n])},r.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),r=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,r)},r.prototype.get=function(e){var t;t="string"==typeof e?e:e&&(0,i.attr)(e,a);var n=this._elements[t];return n&&n.element},r.prototype.filter=function(n){var r=[];return this.forEach(function(e,t){n(e,t)&&r.push(e)}),r},r.prototype.getAll=function(){return this.filter(function(e){return e})},r.prototype.forEach=function(i){var a=this._elements;Object.keys(a).forEach(function(e){var t=a[e],n=t.element,r=t.gfx;return i(n,r)})},r.prototype.getGraphics=function(e,t){var n=e.id||e,r=this._elements[n];return r&&(t?r.secondaryGfx:r.gfx)},r.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")}},{"tiny-svg":266}],194:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var o=e("min-dash");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=Array.prototype.slice;function r(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function c(){}r.prototype.on=function(e,t,n,r){if(e=(0,o.isArray)(e)?e:[e],(0,o.isFunction)(t)&&(r=n,n=t,t=1e3),!(0,o.isNumber)(t))throw new Error("priority must be a number");var i=n;r&&((i=(0,o.bind)(n,r)).__fn=n.__fn||n);var a=this;e.forEach(function(e){a._addListener(e,{priority:t,callback:i,next:null})})},r.prototype.once=function(t,e,n,r){var i=this;if((0,o.isFunction)(e)&&(r=n,n=e,e=1e3),!(0,o.isNumber)(e))throw new Error("priority must be a number");function a(){var e=n.apply(r,arguments);return i.off(t,a),e}a.__fn=n,this.on(t,e,a)},r.prototype.off=function(e,t){e=(0,o.isArray)(e)?e:[e];var n=this;e.forEach(function(e){n._removeListener(e,t)})},r.prototype.createEvent=function(e){var t=new c;return t.init(e),t},r.prototype.fire=function(e,t){var n,r,i,a;if(a=l.call(arguments),"object"===s(e)&&(e=(n=e).type),!e)throw new Error("no event type specified");if(r=this._listeners[e]){n=t instanceof c?t:this.createEvent(t);var o=(a[0]=n).type;e!==o&&(n.type=e);try{i=this._invokeListeners(n,a,r)}finally{e!==o&&(n.type=o)}return void 0===i&&n.defaultPrevented&&(i=!1),i}},r.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},r.prototype._destroy=function(){this._listeners={}},r.prototype._invokeListeners=function(e,t,n){for(var r;n&&!e.cancelBubble;)r=this._invokeListener(e,t,n),n=n.next;return r},r.prototype._invokeListener=function(e,t,n){var r,i,a;try{i=n.callback,a=t,void 0!==(r=i.apply(null,a))&&(e.returnValue=r,e.stopPropagation()),!1===r&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener"),console.error(e.stack),e}return r},r.prototype._addListener=function(e,t){var n,r=this._getListeners(e);if(r){for(;r;){if(r.priority<t.priority)return t.next=r,void(n?n.next=t:this._setListeners(e,t));r=(n=r).next}n.next=t}else this._setListeners(e,t)},r.prototype._getListeners=function(e){return this._listeners[e]},r.prototype._setListeners=function(e,t){this._listeners[e]=t},r.prototype._removeListener=function(e,t){var n,r,i,a=this._getListeners(e);if(t)for(;a;)n=a.next,(i=a.callback)!==t&&i.__fn!==t||(r?r.next=n:this._setListeners(e,n)),r=a,a=n;else this._setListeners(e,null)},c.prototype.stopPropagation=function(){this.cancelBubble=!0},c.prototype.preventDefault=function(){this.defaultPrevented=!0},c.prototype.init=function(e){(0,o.assign)(this,e||{})}},{"min-dash":256}],195:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var a=e("min-dash"),r=e("../util/GraphicsUtil"),i=e("../util/SvgTransformUtil"),o=e("min-dom"),s=e("tiny-svg");function l(e,t){this._eventBus=e,this._elementRegistry=t}function c(e,t,n){t.insertBefore(e,n||t.firstChild)}l.$inject=["eventBus","elementRegistry"],l.prototype._getChildren=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=(0,r.getChildren)(n))||(t=(0,s.create)("g"),(0,s.classes)(t).add("djs-children"),(0,s.append)(n.parentNode,t)):t=n,t},l.prototype._clear=function(e){var t=(0,r.getVisual)(e);return(0,o.clear)(t),t},l.prototype._createContainer=function(e,t,n){var r=(0,s.create)("g");(0,s.classes)(r).add("djs-group"),void 0!==n?c(r,t,t.childNodes[n]):(0,s.append)(t,r);var i=(0,s.create)("g");(0,s.classes)(i).add("djs-element"),(0,s.classes)(i).add("djs-"+e),(0,s.append)(r,i);var a=(0,s.create)("g");return(0,s.classes)(a).add("djs-visual"),(0,s.append)(i,a),i},l.prototype.create=function(e,t,n){var r=this._getChildren(t.parent);return this._createContainer(e,r,n)},l.prototype.updateContainments=function(e){var t,r=this,i=this._elementRegistry;t=(0,a.reduce)(e,function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e},{}),(0,a.forEach)(t,function(e){var t=e.children;if(t){var n=r._getChildren(e);(0,a.forEach)(t.slice().reverse(),function(e){c(i.getGraphics(e).parentNode,n)})}})},l.prototype.drawShape=function(e,t){return this._eventBus.fire("render.shape",{gfx:e,element:t})},l.prototype.getShapePath=function(e){return this._eventBus.fire("render.getShapePath",e)},l.prototype.drawConnection=function(e,t){return this._eventBus.fire("render.connection",{gfx:e,element:t})},l.prototype.getConnectionPath=function(e){return this._eventBus.fire("render.getConnectionPath",e)},l.prototype.update=function(e,t,n){if(t.parent){var r=this._clear(n);if("shape"===e)this.drawShape(r,t),(0,i.translate)(n,t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(r,t)}t.hidden?(0,s.attr)(n,"display","none"):(0,s.attr)(n,"display","block")}},l.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);(0,s.remove)(t.parentNode)}},{"../util/GraphicsUtil":232,"../util/SvgTransformUtil":239,"min-dash":256,"min-dom":257,"tiny-svg":266}],196:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(e("../draw")),i=c(e("./Canvas")),a=c(e("./ElementRegistry")),o=c(e("./ElementFactory")),s=c(e("./EventBus")),l=c(e("./GraphicsFactory"));function c(e){return e&&e.__esModule?e:{default:e}}var u={__depends__:[r.default],__init__:["canvas"],canvas:["type",i.default],elementRegistry:["type",a.default],elementFactory:["type",o.default],eventBus:["type",s.default],graphicsFactory:["type",l.default]};n.default=u},{"../draw":200,"./Canvas":191,"./ElementFactory":192,"./ElementRegistry":193,"./EventBus":194,"./GraphicsFactory":195}],197:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=1e3;function i(e,t){var a=this;t=t||r,e.on(["render.shape","render.connection"],t,function(e,t){var n=e.type,r=t.element,i=t.gfx;if(a.canRender(r))return"render.shape"===n?a.drawShape(i,r):a.drawConnection(i,r)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(e,t){if(a.canRender(t))return"render.getShapePath"===e.type?a.getShapePath(t):a.getConnectionPath(t)})}i.prototype.canRender=function(){},i.prototype.drawShape=function(){},i.prototype.drawConnection=function(){},i.prototype.getShapePath=function(){},i.prototype.getConnectionPath=function(){}},{}],198:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var r=s(e("inherits")),i=s(e("./BaseRenderer")),a=e("../util/RenderUtil"),o=e("tiny-svg");function s(e){return e&&e.__esModule?e:{default:e}}var l=1;function c(e,t){i.default.call(this,e,l),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2})}(0,r.default)(c,i.default),c.prototype.canRender=function(){return!0},c.prototype.drawShape=function(e,t){var n=(0,o.create)("rect");return(0,o.attr)(n,{x:0,y:0,width:t.width||0,height:t.height||0}),(0,o.attr)(n,this.SHAPE_STYLE),(0,o.append)(e,n),n},c.prototype.drawConnection=function(e,t){var n=(0,a.createLine)(t.waypoints,this.CONNECTION_STYLE);return(0,o.append)(e,n),n},c.prototype.getShapePath=function(e){var t=e.x,n=e.y,r=e.width,i=[["M",t,n],["l",r,0],["l",0,e.height],["l",-r,0],["z"]];return(0,a.componentsToPath)(i)},c.prototype.getConnectionPath=function(e){var t,n,r=e.waypoints,i=[];for(t=0;n=r[t];t++)n=n.original||n,i.push([0===t?"M":"L",n.x,n.y]);return(0,a.componentsToPath)(i)},c.$inject=["eventBus","styles"]},{"../util/RenderUtil":238,"./BaseRenderer":197,inherits:255,"tiny-svg":266}],199:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var r={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},i=this;this.cls=function(e,t,n){var r=this.style(t,n);return(0,a.assign)(r,{class:e})},this.style=function(e,t){(0,a.isArray)(e)||t||(t=e,e=[]);var n=(0,a.reduce)(e,function(e,t){return(0,a.assign)(e,r[t]||{})},{});return t?(0,a.assign)(n,t):n},this.computeStyle=function(e,t,n){return(0,a.isArray)(t)||(n=t,t=[]),i.style(t||[],(0,a.assign)({},n,e||{}))}};var a=e("min-dash")},{"min-dash":256}],200:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./DefaultRenderer")),i=a(e("./Styles"));function a(e){return e&&e.__esModule?e:{default:e}}var o={__init__:["defaultRenderer"],defaultRenderer:["type",r.default],styles:["type",i.default]};n.default=o},{"./DefaultRenderer":198,"./Styles":199}],201:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var f=e("min-dash"),h=e("min-dom"),g=e("../../util/Mouse"),v=e("tiny-svg"),y=e("../../util/RenderUtil");function b(e){return!0}var x=500;function r(o,s,e){var i=e.cls("djs-hit",["no-fill","no-border"],{stroke:"white",strokeWidth:15});function a(e,t,n){var r,i,a;r=t,(p[e]||g.isPrimaryButton)(r)&&(n?a=s.getGraphics(n):(i=t.delegateTarget||t.target)&&(a=i,n=s.get(a)),a&&n&&!1===o.fire(e,{element:n,gfx:a,originalEvent:t})&&(t.stopPropagation(),t.preventDefault()))}var l={};function c(e){return l[e]}var u={mouseover:"element.hover",mouseout:"element.out",click:"element.click",dblclick:"element.dblclick",mousedown:"element.mousedown",mouseup:"element.mouseup",contextmenu:"element.contextmenu"},p={"element.contextmenu":b};var d="svg, .djs-element";function r(e,t,n,r){var i=l[n]=function(e){a(n,e)};r&&(p[n]=r),i.$delegate=h.delegate.bind(e,d,t,i)}function m(e,t,n){var r=c(n);r&&h.delegate.unbind(e,t,r.$delegate)}o.on("canvas.destroy",function(e){var n;n=e.svg,(0,f.forEach)(u,function(e,t){m(n,t,e)})}),o.on("canvas.init",function(e){var n;n=e.svg,(0,f.forEach)(u,function(e,t){r(n,t,e)})}),o.on(["shape.added","connection.added"],function(e){var t,n=e.element,r=e.gfx;n.waypoints?t=(0,y.createLine)(n.waypoints):(t=(0,v.create)("rect"),(0,v.attr)(t,{x:0,y:0,width:n.width,height:n.height})),(0,v.attr)(t,i),(0,v.append)(r,t)}),o.on("shape.changed",x,function(e){var t=e.element,n=e.gfx,r=(0,h.query)(".djs-hit",n);(0,v.attr)(r,{width:t.width,height:t.height})}),o.on("connection.changed",function(e){var t=e.element,n=e.gfx,r=(0,h.query)(".djs-hit",n);(0,y.updateLine)(r,t.waypoints)}),this.fire=a,this.triggerMouseEvent=function(e,t,n){var r=u[e];if(!r)throw new Error("unmapped DOM event name <"+e+">");return a(r,t,n)},this.mouseHandler=c,this.registerEvent=r,this.unregisterEvent=m}r.$inject=["eventBus","elementRegistry","styles"]},{"../../util/Mouse":235,"../../util/RenderUtil":238,"min-dash":256,"min-dom":257,"tiny-svg":266}],202:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={__init__:["interactionEvents"],interactionEvents:["type",((r=e("./InteractionEvents"))&&r.__esModule?r:{default:r}).default]};n.default=i},{"./InteractionEvents":201}],203:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r=e("min-dash"),i=e("min-dom"),a=e("./KeyboardUtil"),o="keyboard.keydown";function s(e,t){var n=this;this._config=e||{},this._eventBus=t,this._keyHandler=this._keyHandler.bind(this),t.on("diagram.destroy",function(){n._fire("destroy"),n.unbind()}),t.on("diagram.init",function(){n._fire("init")}),t.on("attach",function(){e&&e.bindTo&&n.bind(e.bindTo)}),t.on("detach",function(){n.unbind()})}s.$inject=["config.keyboard","eventBus"],s.prototype._keyHandler=function(e){var t=e.target;if(!(n=t)||!(0,i.matches)(n,"input, textarea")&&"true"!==n.contentEditable){var n,r={keyEvent:e};this._eventBus.fire(o,r)&&e.preventDefault()}},s.prototype.bind=function(e){this.unbind(),this._node=e,i.event.bind(e,"keydown",this._keyHandler,!0),this._fire("bind")},s.prototype.getBinding=function(){return this._node},s.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),i.event.unbind(e,"keydown",this._keyHandler,!0)),this._node=null},s.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},s.prototype.addListener=function(e,t){(0,r.isFunction)(e)&&(t=e,e=1e3),this._eventBus.on(o,e,t)},s.prototype.hasModifier=a.hasModifier,s.prototype.isCmd=a.isCmd,s.prototype.isShift=a.isShift,s.prototype.isKey=a.isKey},{"./KeyboardUtil":205,"min-dash":256,"min-dom":257}],204:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var i=e("./KeyboardUtil"),a=500;function r(e,n){var r=this;e.on("editorActions.init",a,function(e){var t=e.editorActions;r.registerBindings(n,t)})}r.$inject=["eventBus","keyboard"],r.prototype.registerBindings=function(n,r){function e(e,t){r.isRegistered(e)&&n.addListener(t)}e("undo",function(e){var t=e.keyEvent;if((0,i.isCmd)(t)&&!(0,i.isShift)(t)&&(0,i.isKey)(["z","Z"],t))return r.trigger("undo"),!0}),e("redo",function(e){var t=e.keyEvent;if((0,i.isCmd)(t)&&((0,i.isKey)(["y","Y"],t)||(0,i.isKey)(["z","Z"],t)&&(0,i.isShift)(t)))return r.trigger("redo"),!0}),e("copy",function(e){var t=e.keyEvent;if((0,i.isCmd)(t)&&(0,i.isKey)(["c","C"],t))return r.trigger("copy"),!0}),e("paste",function(e){var t=e.keyEvent;if((0,i.isCmd)(t)&&(0,i.isKey)(["v","V"],t))return r.trigger("paste"),!0}),e("stepZoom",function(e){var t=e.keyEvent;if((0,i.isKey)(["+","Add"],t)&&(0,i.isCmd)(t))return r.trigger("stepZoom",{value:1}),!0}),e("stepZoom",function(e){var t=e.keyEvent;if((0,i.isKey)(["-","Subtract"],t)&&(0,i.isCmd)(t))return r.trigger("stepZoom",{value:-1}),!0}),e("zoom",function(e){var t=e.keyEvent;if((0,i.isKey)("0",t)&&(0,i.isCmd)(t))return r.trigger("zoom",{value:1}),!0}),e("removeSelection",function(e){var t=e.keyEvent;if((0,i.isKey)(["Delete","Del"],t))return r.trigger("removeSelection"),!0})}},{"./KeyboardUtil":205}],205:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},n.isCmd=function(e){if(e.altKey)return!1;return e.ctrlKey||e.metaKey},n.isKey=function(e,t){return-1<(e=(0,r.isArray)(e)?e:[e]).indexOf(t.key)},n.isShift=function(e){return e.shiftKey};var r=e("min-dash")},{"min-dash":256}],206:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("./Keyboard")),i=a(e("./KeyboardBindings"));function a(e){return e&&e.__esModule?e:{default:e}}var o={__init__:["keyboard","keyboardBindings"],keyboard:["type",r.default],keyboardBindings:["type",i.default]};n.default=o},{"./Keyboard":203,"./KeyboardBindings":204}],207:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=e("../../util/Elements"),o=e("tiny-svg"),s=e("min-dom"),l=e("min-dash"),c=500;function i(e,t,n){this.offset=6;var r=t.cls("djs-outline",["no-fill"]),i=this;function a(e){var t=(0,o.create)("rect");return(0,o.attr)(t,(0,l.assign)({x:10,y:10,width:100,height:100},r)),(0,o.append)(e,t),t}e.on(["shape.added","shape.changed"],c,function(e){var t=e.element,n=e.gfx,r=(0,s.query)(".djs-outline",n);r=r||a(n),i.updateShapeOutline(r,t)}),e.on(["connection.added","connection.changed"],function(e){var t=e.element,n=e.gfx,r=(0,s.query)(".djs-outline",n);r=r||a(n),i.updateConnectionOutline(r,t)})}i.prototype.updateShapeOutline=function(e,t){(0,o.attr)(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},i.prototype.updateConnectionOutline=function(e,t){var n=(0,r.getBBox)(t);(0,o.attr)(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},i.$inject=["eventBus","styles","elementRegistry"]},{"../../util/Elements":229,"min-dash":256,"min-dom":257,"tiny-svg":266}],208:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={__init__:["outline"],outline:["type",((r=e("./Outline"))&&r.__esModule?r:{default:r}).default]};n.default=i},{"./Outline":207}],209:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r,l=e("min-dash"),o=e("min-dom"),c=e("../../util/Elements");var s=new(((r=e("../../util/IdGenerator"))&&r.__esModule?r:{default:r}).default)("ov");function i(e,t,n,r){var i,a;this._eventBus=t,this._canvas=n,this._elementRegistry=r,this._ids=s,this._overlayDefaults=(0,l.assign)({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(i=n.getContainer(),a=(0,o.domify)('<div class="djs-overlay-container" style="position: absolute; width: 0; height: 0;" />'),i.insertBefore(a,i.firstChild),a),this._init()}function u(e,t,n){(0,l.assign)(e.style,{left:t+"px",top:n+"px"})}function p(e,t){e.style.display=!1===t?"none":""}function d(t,n){t.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(e){t.style[e+"transform"]=n})}i.$inject=["config.overlays","eventBus","canvas","elementRegistry"],i.prototype.get=function(e){if((0,l.isString)(e)&&(e={id:e}),(0,l.isString)(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?(0,l.filter)(t.overlays,(0,l.matchPattern)({type:e.type})):t.overlays.slice():[]}return e.type?(0,l.filter)(this._overlays,(0,l.matchPattern)({type:e.type})):e.id?this._overlays[e.id]:null},i.prototype.add=function(e,t,n){if((0,l.isObject)(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var r=this._ids.next();return n=(0,l.assign)({},this._overlayDefaults,n,{id:r,type:t,element:e,html:n.html}),this._addOverlay(n),r},i.prototype.remove=function(e){var t=this.get(e)||[];(0,l.isArray)(t)||(t=[t]);var r=this;(0,l.forEach)(t,function(e){var t=r._getOverlayContainer(e.element,!0);if(e&&((0,o.remove)(e.html),(0,o.remove)(e.htmlContainer),delete e.htmlContainer,delete e.element,delete r._overlays[e.id]),t){var n=t.overlays.indexOf(e);-1!==n&&t.overlays.splice(n,1)}})},i.prototype.show=function(){p(this._overlayRoot)},i.prototype.hide=function(){p(this._overlayRoot,!1)},i.prototype.clear=function(){this._overlays={},this._overlayContainers=[],(0,o.clear)(this._overlayRoot)},i.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,r=t.x,i=t.y;if(t.waypoints){var a=(0,c.getBBox)(t);r=a.x,i=a.y}u(n,r,i),(0,o.attr)(e.html,"data-container-id",t.id)},i.prototype._updateOverlay=function(e){var t,n,r=e.position,i=e.htmlContainer,a=e.element,o=r.left,s=r.top;void 0!==r.right&&(t=a.waypoints?(0,c.getBBox)(a).width:a.width,o=-1*r.right+t);void 0!==r.bottom&&(n=a.waypoints?(0,c.getBBox)(a).height:a.height,s=-1*r.bottom+n);u(i,o||0,s||0)},i.prototype._createOverlayContainer=function(e){var t=(0,o.domify)('<div class="djs-overlays" style="position: absolute" />');this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},i.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";d(this._overlayRoot,n)},i.prototype._getOverlayContainer=function(t,e){var n=(0,l.find)(this._overlayContainers,function(e){return e.element===t});return n||e?n:this._createOverlayContainer(t)},i.prototype._addOverlay=function(e){var t,n,r=e.id,i=e.element,a=e.html;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),(0,l.isString)(a)&&(a=(0,o.domify)(a)),n=this._getOverlayContainer(i),(t=(0,o.domify)('<div class="djs-overlay" data-overlay-id="'+r+'" style="position: absolute">')).appendChild(a),e.type&&(0,o.classes)(t).add("djs-overlay-"+e.type),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[r]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},i.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,r=n&&n.minZoom,i=n&&n.maxZoom,a=e.htmlContainer,o=!0;n&&(((0,l.isDefined)(r)&&r>t.scale||(0,l.isDefined)(i)&&i<t.scale)&&(o=!1),p(a,o)),this._updateOverlayScale(e,t)},i.prototype._updateOverlayScale=function(e,t){var n,r,i,a=e.scale,o=e.htmlContainer,s="";!0!==a&&(r=!1===a?n=1:(n=a.min,a.max),(0,l.isDefined)(n)&&t.scale<n&&(i=(1/t.scale||1)*n),(0,l.isDefined)(r)&&t.scale>r&&(i=(1/t.scale||1)*r)),(0,l.isDefined)(i)&&(s="scale("+i+","+i+")"),d(o,s)},i.prototype._updateOverlaysVisibilty=function(t){var n=this;(0,l.forEach)(this._overlays,function(e){n._updateOverlayVisibilty(e,t)})},i.prototype._init=function(){var e=this._eventBus,a=this;e.on("canvas.viewbox.changing",function(e){a.hide()}),e.on("canvas.viewbox.changed",function(e){var t;t=e.viewbox,a._updateRoot(t),a._updateOverlaysVisibilty(t),a.show()}),e.on(["shape.remove","connection.remove"],function(e){var t=e.element,n=a.get({element:t});(0,l.forEach)(n,function(e){a.remove(e.id)});var r=a._getOverlayContainer(t);if(r){(0,o.remove)(r.html);var i=a._overlayContainers.indexOf(r);-1!==i&&a._overlayContainers.splice(i,1)}}),e.on("element.changed",500,function(e){var t=e.element,n=a._getOverlayContainer(t,!0);n&&((0,l.forEach)(n.overlays,function(e){a._updateOverlay(e)}),a._updateOverlayContainer(n))}),e.on("element.marker.update",function(e){var t=a._getOverlayContainer(e.element,!0);t&&(0,o.classes)(t.html)[e.add?"add":"remove"](e.marker)}),e.on("diagram.clear",this.clear,this)}},{"../../util/Elements":229,"../../util/IdGenerator":233,"min-dash":256,"min-dom":257}],210:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={__init__:["overlays"],overlays:["type",((r=e("./Overlays"))&&r.__esModule?r:{default:r}).default]};n.default=i},{"./Overlays":209}],211:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var i=e("min-dash");function r(e){this._eventBus=e,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],function(e){var t=e.element;n.deselect(t)}),e.on(["diagram.clear"],function(e){n.select(null)})}r.$inject=["eventBus"],r.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var r=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:r,newSelection:t})}},r.prototype.get=function(){return this._selectedElements},r.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},r.prototype.select=function(e,t){var n=this._selectedElements,r=n.slice();(0,i.isArray)(e)||(e=e?[e]:[]),t?(0,i.forEach)(e,function(e){-1===n.indexOf(e)&&n.push(e)}):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:r,newSelection:n})}},{"min-dash":256}],212:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var s=e("../../util/Mouse"),i=e("min-dash");function r(e,a,o,r){e.on("create.end",500,function(e){e.context.canExecute&&a.select(e.context.shape)}),e.on("connect.end",500,function(e){e.context.canExecute&&e.context.target&&a.select(e.context.target)}),e.on("shape.move.end",500,function(e){var t=e.previousSelection||[],n=r.get(e.context.shape.id);(0,i.find)(t,function(e){return n.id===e.id})||a.select(n)}),e.on("element.click",function(e){var t=e.element;t===o.getRootElement()&&(t=null);var n=a.isSelected(t),r=1<a.get().length,i=(0,s.hasPrimaryModifier)(e);if(n&&r)return i?a.deselect(t):a.select(t);n?a.deselect(t):a.select(t,i)})}r.$inject=["eventBus","selection","canvas","elementRegistry"]},{"../../util/Mouse":235,"min-dash":256}],213:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var o=e("min-dash"),s="hover",l="selected";function r(e,n,t,r){function i(e,t){n.addMarker(e,t)}function a(e,t){n.removeMarker(e,t)}this._multiSelectionBox=null,e.on("element.hover",function(e){i(e.element,s)}),e.on("element.out",function(e){a(e.element,s)}),e.on("selection.changed",function(e){var t=e.oldSelection,n=e.newSelection;(0,o.forEach)(t,function(e){-1===n.indexOf(e)&&a(e,l)}),(0,o.forEach)(n,function(e){-1===t.indexOf(e)&&i(e,l)})})}r.$inject=["eventBus","canvas","selection","styles"]},{"min-dash":256}],214:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=l(e("../interaction-events")),i=l(e("../outline")),a=l(e("./Selection")),o=l(e("./SelectionVisuals")),s=l(e("./SelectionBehavior"));function l(e){return e&&e.__esModule?e:{default:e}}var c={__init__:["selectionVisuals","selectionBehavior"],__depends__:[r.default,i.default],selection:["type",a.default],selectionVisuals:["type",o.default],selectionBehavior:["type",s.default]};n.default=c},{"../interaction-events":202,"../outline":208,"./Selection":211,"./SelectionBehavior":212,"./SelectionVisuals":213}],215:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={translate:["value",((r=e("./translate"))&&r.__esModule?r:{default:r}).default]};n.default=i},{"./translate":216}],216:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(e,t){return n[t]||"{"+t+"}"})}},{"core-js/modules/es.string.replace":188}],217:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.roundBounds=function(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}},n.roundPoint=o,n.asTRBL=d,n.asBounds=function(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}},n.getMid=function(e){return o({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})},n.getOrientation=function(e,t,n){n=n||0,(0,p.isObject)(n)||(n={x:n,y:n});var r=d(e),i=d(t),a=r.bottom+n.y<=i.top,o=r.left-n.x>=i.right,s=r.top-n.y>=i.bottom,l=r.right+n.x<=i.left,c=a?"top":s?"bottom":null,u=l?"left":o?"right":null;return u&&c?c+"-"+u:u||c||"intersect"},n.getElementLineIntersection=function(e,t,n){var r=s(e,t);{if(1===r.length)return o(r[0]);if(2===r.length&&(0,i.pointDistance)(r[0],r[1])<1)return o(r[0]);if(1<r.length)return o((r=(0,p.sortBy)(r,function(e){var t=Math.floor(100*e.t2)||1;return t=((t=100-t)<10?"0":"")+t,e.segment2+"#"+t}))[n?0:r.length-1])}return null},n.getIntersections=s;var r,p=e("min-dash"),i=e("../util/Geometry"),a=(r=e("path-intersection"))&&r.__esModule?r:{default:r};function o(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function d(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function s(e,t){return(0,a.default)(e,t)}},{"../util/Geometry":231,"min-dash":256,"path-intersection":264}],218:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Base=d,n.Shape=m,n.Root=f,n.Label=h,n.Connection=g,n.create=function(e,t){var n=v[e];if(n)return(0,r.assign)(new n,t);throw new Error("unknown type: <"+e+">")};var r=e("min-dash"),i=o(e("inherits")),a=o(e("object-refs"));function o(e){return e&&e.__esModule?e:{default:e}}var s=new a.default({name:"children",enumerable:!0,collection:!0},{name:"parent"}),l=new a.default({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),c=new a.default({name:"attachers",collection:!0},{name:"host"}),u=new a.default({name:"outgoing",collection:!0},{name:"source"}),p=new a.default({name:"incoming",collection:!0},{name:"target"});function d(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),s.bind(this,"parent"),l.bind(this,"labels"),u.bind(this,"outgoing"),p.bind(this,"incoming")}function m(){d.call(this),s.bind(this,"children"),c.bind(this,"host"),c.bind(this,"attachers")}function f(){m.call(this)}function h(){m.call(this),l.bind(this,"labelTarget")}function g(){d.call(this),u.bind(this,"source"),p.bind(this,"target")}(0,i.default)(m,d),(0,i.default)(f,m),(0,i.default)(h,m),(0,i.default)(g,d);var v={connection:g,shape:m,label:h,root:f}},{inherits:255,"min-dash":256,"object-refs":261}],219:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=e("min-dash"),s={moveSpeed:50,moveSpeedAccelerated:200};function i(e,a,i){var o=this;this._config=(0,r.assign)({},s,e||{}),a.addListener(function(e){var t=e.keyEvent,n=o._config;if(!a.isCmd(t))return;if(a.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],t)){var r,i=a.isShift(t)?n.moveSpeedAccelerated:n.moveSpeed;switch(t.key){case"ArrowLeft":case"Left":r="left";break;case"ArrowUp":case"Up":r="up";break;case"ArrowRight":case"Right":r="right";break;case"ArrowDown":case"Down":r="down"}return o.moveCanvas({speed:i,direction:r}),!0}}),this.moveCanvas=function(e){var t=0,n=0,r=e.speed/Math.min(Math.sqrt(i.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":n=r;break;case"right":t=-r;break;case"down":n=-r}i.scroll({dx:t,dy:n})}}i.$inject=["config.keyboardMove","keyboard","canvas"]},{"min-dash":256}],220:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("../../features/keyboard")),i=a(e("./KeyboardMove"));function a(e){return e&&e.__esModule?e:{default:e}}var o={__depends__:[r.default],__init__:["keyboardMove"],keyboardMove:["type",i.default]};n.default=o},{"../../features/keyboard":206,"./KeyboardMove":219}],221:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var c=e("../../util/Cursor"),u=e("../../util/ClickTrap"),p=e("../../util/PositionUtil"),r=e("min-dom"),d=e("../../util/Event"),m=15;function i(o,s){var l;function t(e){var t,n=l.start,r=(0,d.toPoint)(e),i=(0,p.delta)(r,n);if(!l.dragging&&(t=i,Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2))>m)&&(l.dragging=!0,(0,u.install)(o),(0,c.set)("grab")),l.dragging){var a=l.last||l.start;i=(0,p.delta)(r,a),s.scroll({dx:i.x,dy:i.y}),l.last=r}e.preventDefault()}function n(e){r.event.unbind(document,"mousemove",t),r.event.unbind(document,"mouseup",n),(l=null,c.unset)()}o.on("element.mousedown",500,function(e){return function(e){if((0,r.closest)(e.target,".djs-draggable"))return;if(e.button||e.ctrlKey||e.shiftKey||e.altKey)return;return l={start:(0,d.toPoint)(e)},r.event.bind(document,"mousemove",t),r.event.bind(document,"mouseup",n),!0}(e.originalEvent)})}i.$inject=["eventBus","canvas"]},{"../../util/ClickTrap":226,"../../util/Cursor":228,"../../util/Event":230,"../../util/PositionUtil":237,"min-dom":257}],222:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={__init__:["moveCanvas"],moveCanvas:["type",((r=e("./MoveCanvas"))&&r.__esModule?r:{default:r}).default]};n.default=i},{"./MoveCanvas":221}],223:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var l=e("min-dom"),c=e("./ZoomUtil"),u=e("../../util/Math"),i=e("min-dash"),p=Math.sign||function(e){return 0<=e?1:-1},d={min:.2,max:4},a=.75;function r(t,e,n){t=t||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=(0,i.bind)(this._handleWheel,this),this._totalDelta=0,this._scale=t.scale||a;var r=this;e.on("canvas.init",function(e){r._init(!1!==t.enabled)})}r.$inject=["config.zoomScroll","eventBus","canvas"],r.prototype.scroll=function(e){this._canvas.scroll(e)},r.prototype.reset=function(){this._canvas.zoom("fit-viewport")},r.prototype.zoom=function(e,t){var n=(0,c.getStepSize)(d,20);this._totalDelta+=e,.1<Math.abs(this._totalDelta)&&(this._zoom(e,t,n),this._totalDelta=0)},r.prototype._handleWheel=function(e){if(!(0,l.closest)(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,r=e.ctrlKey,i=e.shiftKey,a=-1*this._scale;if(a*=r?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,r){var o=t.getBoundingClientRect(),s={x:e.clientX-o.left,y:e.clientY-o.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*p(e.deltaY)*a,this.zoom(n,s)}else n=i?{dx:a*e.deltaY,dy:0}:{dx:a*e.deltaX,dy:a*e.deltaY},this.scroll(n)}},r.prototype.stepZoom=function(e,t){var n=(0,c.getStepSize)(d,10);this._zoom(e,t,n)},r.prototype._zoom=function(e,t,n){var r=this._canvas,i=0<e?1:-1,a=(0,u.log10)(r.zoom()),o=Math.round(a/n)*n;o+=n*i;var s=Math.pow(10,o);r.zoom((0,c.cap)(d,s),t)},r.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,r=this._enabled;return void 0===e&&(e=!r),r!==e&&l.event[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e},r.prototype._init=function(e){this.toggle(e)}},{"../../util/Math":234,"./ZoomUtil":224,"min-dash":256,"min-dom":257}],224:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStepSize=function(e,t){var n=(0,i.log10)(e.min),r=(0,i.log10)(e.max);return(Math.abs(n)+Math.abs(r))/t},n.cap=function(e,t){return Math.max(e.min,Math.min(e.max,t))};var i=e("../../util/Math")},{"../../util/Math":234}],225:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={__init__:["zoomScroll"],zoomScroll:["type",((r=e("./ZoomScroll"))&&r.__esModule?r:{default:r}).default]};n.default=i},{"./ZoomScroll":223}],226:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.install=function(e,t){function n(){return!1}return t=t||"element.click",e.once(t,r,n),function(){e.off(t,n)}};var r=5e3},{}],227:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.remove=function(e,t){if(!e||!t)return-1;var n=e.indexOf(t);-1!==n&&e.splice(n,1);return n},n.add=function(e,t,n){if(!e||!t)return;"number"!=typeof n&&(n=-1);var r=e.indexOf(t);if(-1!==r){if(r===n)return;if(-1===n)return;e.splice(r,1)}-1!==n?e.splice(n,0,t):e.push(t)},n.indexOf=function(e,t){return e&&t?e.indexOf(t):-1}},{}],228:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.set=a,n.unset=function(){a(null)},n.has=function(e){return(0,r.classes)(document.body).has("djs-cursor-"+e)};var r=e("min-dom"),i=/^djs-cursor-.*$/;function a(e){var t=(0,r.classes)(document.body);t.removeMatching(i),e&&t.add("djs-cursor-"+e)}},{"min-dom":257}],229:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.add=l,n.eachElement=c,n.selfAndChildren=r,n.selfAndDirectChildren=function(e,t){return r(e,!t,1)},n.selfAndAllChildren=function(e,t){return r(e,!t,-1)},n.getClosure=function(e,t,n){(0,p.isUndefined)(t)&&(t=!0);(0,p.isObject)(t)&&(n=t,t=!0);var r=u((n=n||{}).allShapes),i=u(n.allConnections),a=u(n.enclosedElements),o=u(n.enclosedConnections),s=u(n.topLevel,t&&(0,p.groupBy)(e,function(e){return e.id}));function l(e){s[e.source.id]&&s[e.target.id]&&(s[e.id]=[e]),r[e.source.id]&&r[e.target.id]&&(o[e.id]=a[e.id]=e),i[e.id]=e}return c(e,function(e){{if(!(a[e.id]=e).waypoints)return r[e.id]=e,(0,p.forEach)(e.incoming,l),(0,p.forEach)(e.outgoing,l),e.children;o[e.id]=i[e.id]=e}}),{allShapes:r,allConnections:i,topLevel:s,enclosedConnections:o,enclosedElements:a}},n.getBBox=d,n.getEnclosedElements=function(e,n){var r={};return(0,p.forEach)(e,function(e){var t=e;t.waypoints&&(t=d(t)),!(0,p.isNumber)(n.y)&&t.x>n.x&&(r[e.id]=e),!(0,p.isNumber)(n.x)&&t.y>n.y&&(r[e.id]=e),t.x>n.x&&t.y>n.y&&(!((0,p.isNumber)(n.width)&&(0,p.isNumber)(n.height)&&t.width+t.x<n.width+n.x&&t.height+t.y<n.height+n.y)&&(0,p.isNumber)(n.width)&&(0,p.isNumber)(n.height)||(r[e.id]=e))}),r},n.getType=function(e){if("waypoints"in e)return"connection";if("x"in e)return"shape";return"root"};var p=e("min-dash");function l(e,t,n){var r=!n||-1===e.indexOf(t);return r&&e.push(t),r}function c(e,r,i){i=i||0,(0,p.isArray)(e)||(e=[e]),(0,p.forEach)(e,function(e,t){var n=r(e,t,i);(0,p.isArray)(n)&&n.length&&c(n,r,i+1)})}function r(e,i,a){var o=[],s=[];return c(e,function(e,t,n){l(o,e,i);var r=e.children;if((-1===a||n<a)&&r&&l(s,r,i))return r}),o}function d(e,o){var s,l,c,u;return o=!!o,(0,p.isArray)(e)||(e=[e]),(0,p.forEach)(e,function(e){var t=e;e.waypoints&&!o&&(t=d(e.waypoints,!0));var n=t.x,r=t.y,i=t.height||0,a=t.width||0;(n<s||void 0===s)&&(s=n),(r<l||void 0===l)&&(l=r),(c<n+a||void 0===c)&&(c=n+a),(u<r+i||void 0===u)&&(u=r+i)}),{x:s,y:l,height:u-l,width:c-s}}function u(e,t){return(0,p.assign)({},e||{},t||{})}},{"min-dash":256}],230:[function(e,t,n){"use strict";function r(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function i(e){return e.originalEvent||e.srcEvent}Object.defineProperty(n,"__esModule",{value:!0}),n.getOriginal=i,n.stopPropagation=function(e,t){r(e),r(i(e))},n.toPoint=function(e){e.pointers&&e.pointers.length&&(e=e.pointers[0]);e.touches&&e.touches.length&&(e=e.touches[0]);return e?{x:e.clientX,y:e.clientY}:null}},{}],231:[function(e,t,n){"use strict";function o(e,t){return e&&t?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):-1}Object.defineProperty(n,"__esModule",{value:!0}),n.pointDistance=o,n.pointsOnLine=function(e,t,n,r){void 0===r&&(r=5);if(!e||!t||!n)return!1;var i=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),a=o(e,t);return Math.abs(i/a)<=r},n.pointsAligned=function(e,t){if(Math.abs(e.x-t.x)<=r)return"h";if(Math.abs(e.y-t.y)<=r)return"v";return!1},n.pointInRect=function(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n},n.getMidPoint=function(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}};var r=2},{}],232:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getVisual=function(e){return(0,r.query)(".djs-visual",e)},n.getChildren=function(e){return e.parentNode.childNodes[1]};var r=e("min-dom")},{"min-dom":257}],233:[function(e,t,n){"use strict";function r(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Object.defineProperty(n,"__esModule",{value:!0}),(n.default=r).prototype.next=function(){return this._prefix+ ++this._counter}},{}],234:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.log10=function(e){return Math.log(e)/Math.log(10)},Object.defineProperty(n,"substract",{enumerable:!0,get:function(){return r.delta}});var r=e("./PositionUtil")},{"./PositionUtil":237}],235:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isPrimaryButton=a,n.hasPrimaryModifier=function(e){var t=(0,r.getOriginal)(e)||e;if(!a(e))return!1;return(0,i.isMac)()?t.metaKey:t.ctrlKey},n.hasSecondaryModifier=function(e){var t=(0,r.getOriginal)(e)||e;return a(e)&&t.shiftKey},Object.defineProperty(n,"isMac",{enumerable:!0,get:function(){return i.isMac}});var r=e("./Event"),i=e("./Platform");function a(e){return!((0,r.getOriginal)(e)||e).button}},{"./Event":230,"./Platform":236}],236:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isMac=function(){return/mac/i.test(navigator.platform)}},{}],237:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.center=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},n.delta=function(e,t){return{x:e.x-t.x,y:e.y-t.y}}},{}],238:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0}),n.componentsToPath=function(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")},n.toSVGPoints=i,n.createLine=function(e,t){var n=(0,r.create)("polyline");(0,r.attr)(n,{points:i(e)}),t&&(0,r.attr)(n,t);return n},n.updateLine=function(e,t){return(0,r.attr)(e,{points:i(t)}),e};var r=e("tiny-svg");function i(e){for(var t,n="",r=0;t=e[r];r++)n+=t.x+","+t.y+" ";return n}},{"core-js/modules/es.string.replace":188,"tiny-svg":266}],239:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.transform=function(e,t,n,r,i){var a=(0,l.createTransform)();a.setTranslate(t,n);var o=(0,l.createTransform)();o.setRotate(r,0,0);var s=(0,l.createTransform)();s.setScale(i||1,i||1),(0,l.transform)(e,[a,o,s])},n.translate=function(e,t,n){var r=(0,l.createTransform)();r.setTranslate(t,n),(0,l.transform)(e,r)},n.rotate=function(e,t){var n=(0,l.createTransform)();n.setRotate(t,0,0),(0,l.transform)(e,n)},n.scale=function(e,t){var n=(0,l.createTransform)();n.setScale(t,t),(0,l.transform)(e,n)};var l=e("tiny-svg")},{"tiny-svg":266}],240:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var w=e("min-dash"),E=e("tiny-svg"),r=0,i={width:150,height:50};function o(e,t){var n;t.textContent=e;try{var r,i=""===e;return t.textContent=i?"dummy":e,r={width:(n=t.getBBox()).width+2*n.x,height:n.height},i&&(r.width=0),r}catch(e){return{width:0,height:0}}}function k(e,t,n){for(var r,i=e.shift(),a=i;;){if((r=o(a,n)).width=a?r.width:0," "===a||""===a||r.width<Math.round(t)||a.length<2)return s(e,a,i,r);a=l(a,r.width,t)}}function s(e,t,n,r){if(t.length<n.length){var i=n.slice(t.length).trim();e.unshift(i)}return{width:r.width,height:r.height,text:t}}function l(e,t,n){var r=Math.max(e.length*(n/t),1),i=function(e,t){var n,r=e.split(/(\s|-)/g),i=[],a=0;if(1<r.length)for(;n=r.shift();){if(!(n.length+a<t)){"-"===n&&i.pop();break}i.push(n),a+=n.length}return i.join("")}(e,r);return i=i||e.slice(0,Math.max(Math.round(r-1),1))}function a(e){this._config=(0,w.assign)({},{size:i,padding:r,style:{},align:"center-top"},e||{})}a.prototype.createText=function(e,t){return this.layoutText(e,t).element},a.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},a.prototype.layoutText=function(e,t){var n,r,i,a=(0,w.assign)({},this._config.size,t.box),o=(0,w.assign)({},this._config.style,t.style),s=(r=t.align||this._config.align,{horizontal:(i=r.split("-"))[0]||"center",vertical:i[1]||"top"}),l=(n=void 0!==t.padding?t.padding:this._config.padding,(0,w.isObject)(n)?(0,w.assign)({top:0,left:0,right:0,bottom:0},n):{top:n,left:n,right:n,bottom:n}),c=t.fitBox||!1,u=function(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}(o),p=e.split(/\r?\n/g),d=[],m=a.width-l.left-l.right,f=(0,E.create)("text");(0,E.attr)(f,{x:0,y:0}),(0,E.attr)(f,o);var h,g=((h=document.getElementById("helper-svg"))||(h=(0,E.create)("svg"),(0,E.attr)(h,{id:"helper-svg",width:0,height:0,style:"visibility: hidden; position: fixed"}),document.body.appendChild(h)),h);for((0,E.append)(g,f);p.length;)d.push(k(p,m,f));"middle"===s.vertical&&(l.top=l.bottom=0);var v=(0,w.reduce)(d,function(e,t,n){return e+(u||t.height)},0)+l.top+l.bottom,y=(0,w.reduce)(d,function(e,t,n){return t.width>e?t.width:e},0),b=l.top;"middle"===s.vertical&&(b+=(a.height-v)/2),b-=(u||d[0].height)/4;var x=(0,E.create)("text");return(0,E.attr)(x,o),(0,w.forEach)(d,function(e){var t;switch(b+=u||e.height,s.horizontal){case"left":t=l.left;break;case"right":t=(c?y:m)-l.right-e.width;break;default:t=Math.max(((c?y:m)-e.width)/2+l.left,0)}var n=(0,E.create)("tspan");(0,E.attr)(n,{x:t,y:b}),n.textContent=e.text,(0,E.append)(x,n)}),(0,E.remove)(f),{dimensions:{width:y,height:v},element:x}}},{"min-dash":256,"tiny-svg":266}],241:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0});var i=/^class /;function p(e){return"[object Array]"===Object.prototype.toString.call(e)}function g(){var e=Array.prototype.slice.call(arguments);1===e.length&&p(e[0])&&(e=e[0]);var t=e.pop();return t.$inject=e,t}var a=/constructor\s*[^(]*\(\s*([^)]*)\)/m,o=/^function\s*[^(]*\(\s*([^)]*)\)/m,s=/\/\*([^*]*)\*\//m;function v(e){if("function"!=typeof e)throw new Error('Cannot annotate "'+e+'". Expected a function!');var t,n=e.toString().match((t=e,i.test(t.toString())?a:o));return n&&n[1]&&n[1].split(",").map(function(e){return(n=e.match(s))?n[1].trim():e.trim()})||[]}function y(){var n=[];this.factory=function(e,t){return n.push([e,"factory",t]),this},this.value=function(e,t){return n.push([e,"value",t]),this},this.type=function(e,t){return n.push([e,"type",t]),this},this.forEach=function(e){n.forEach(e)}}var b="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)};function x(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function w(e,t){return Object.hasOwnProperty.call(e,t)}n.annotate=g,n.Module=y,n.Injector=function d(e,i){i=i||{get:function(e,t){if(s.push(e),!1===t)return null;throw c('No provider for "'+e+'"!')}};function a(e,t){if(!f[e]&&-1!==e.indexOf(".")){for(var n=e.split("."),r=a(n.shift());n.length;)r=r[n.shift()];return r}if(w(l,e))return l[e];if(w(f,e)){if(-1!==s.indexOf(e))throw s.push(e),c("Cannot resolve circular dependency!");return s.push(e),l[e]=f[e][0](f[e][1]),s.pop(),l[e]}return i.get(e,t)}function o(e,t){var n=1<arguments.length&&void 0!==t?t:{};if("function"!=typeof e){if(!p(e))throw new Error('Cannot invoke "'+e+'". Expected a function!');e=g(e.slice())}return{fn:e,dependencies:(e.$inject||v(e)).map(function(e){return w(n,e)?n[e]:a(e)})}}function t(e){var t=o(e),n=t.dependencies,r=t.fn;return new(Function.prototype.bind.apply(r,[null].concat(x(n))))}function n(e,t,n){var r=o(e,n),i=r.dependencies,a=r.fn;return a.call.apply(a,[t].concat(x(i)))}function m(t){return g(function(e){return t.get(e)})}var s=[],f=this._providers=Object.create(i._providers||null),l=this._instances=Object.create(null),h=l.injector=this,c=function(e){var t=s.join(" -> ");return s.length=0,new Error(t?e+" (Resolving: "+t+")":e)},u={factory:n,type:t,value:function(e){return e}};e.forEach(function(r){function i(e,t){return"value"!==e&&p(t)&&(t=g(t.slice())),t}if(r instanceof y)r.forEach(function(e){var t=e[0],n=e[1],r=e[2];f[t]=[u[n],i(n,r),n]});else if("object"===(void 0===r?"undefined":b(r)))if(r.__exports__){var e=Object.keys(r).reduce(function(e,t){return"__"!==t.substring(0,2)&&(e[t]=r[t]),e},Object.create(null)),t=new d((r.__modules__||[]).concat([e]),h),n=g(function(e){return t.get(e)});r.__exports__.forEach(function(e){f[e]=[n,e,"private",t]})}else Object.keys(r).forEach(function(e){if("private"!==r[e][2]){var t=r[e][0],n=r[e][1];f[e]=[u[t],i(t,n),t]}else f[e]=r[e]})}),this.get=a,this.invoke=n,this.instantiate=t,this.createChild=function(e,t){if(t&&t.length){var n,r,i,a,o=Object.create(null),s=Object.create(null),l=[],c=[],u=[];for(var p in f)n=f[p],-1!==t.indexOf(p)&&("private"===n[2]?-1===(r=l.indexOf(n[3]))?(i=n[3].createChild([],t),a=m(i),l.push(n[3]),c.push(i),u.push(a),o[p]=[a,p,"private",i]):o[p]=[u[r],p,"private",c[r]]:o[p]=[n[2],n[1]],s[p]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||t.forEach(function(e){-1!==n[1].$scope.indexOf(e)&&(o[p]=[n[2],n[1]],s[e]=!0)});t.forEach(function(e){if(!s[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')}),e.unshift(o)}return new d(e,h)}}},{}],242:[function(e,t,n){"use strict";var o=e("min-dash"),r=e("moddle"),s=e("moddle-xml");function i(e,t){r.Moddle.call(this,e,t)}(i.prototype=Object.create(r.Moddle.prototype)).fromXML=function(e,t,n,r){o.isString(t)||(r=n,n=t,t="dmn:Definitions"),o.isFunction(n)&&(r=n,n={});var i=new s.Reader(o.assign({model:this,lax:!0},n)),a=i.handler(t);i.fromXML(e,a,r)},i.prototype.toXML=function(e,t,n){o.isFunction(t)&&(n=t,t={});var r,i,a=new s.Writer(t);try{r=a.toXML(e)}catch(e){i=e}return n(i,r)};var a={dc:{name:"DC",prefix:"dc",uri:"http://www.omg.org/spec/DMN/20180521/DC/",types:[{name:"Dimension",properties:[{name:"width",isAttr:!0,type:"Real"},{name:"height",isAttr:!0,type:"Real"}]},{name:"Bounds",properties:[{name:"height",isAttr:!0,type:"Real"},{name:"width",isAttr:!0,type:"Real"},{name:"x",isAttr:!0,type:"Real"},{name:"y",isAttr:!0,type:"Real"}]},{name:"Point",properties:[{name:"x",isAttr:!0,type:"Real"},{name:"y",isAttr:!0,type:"Real"}]},{name:"Color",properties:[{name:"red",type:"UML_Standard_Profile.mdzip:eee_1045467100323_917313_65"},{name:"green",type:"UML_Standard_Profile.mdzip:eee_1045467100323_917313_65"},{name:"blue",type:"UML_Standard_Profile.mdzip:eee_1045467100323_917313_65"}]}],associations:[],enumerations:[{name:"AlignmentKind",literalValues:[{name:"start"},{name:"center"},{name:"end"}]}]},di:{name:"DI",prefix:"di",uri:"http://www.omg.org/spec/DMN/20180521/DI/",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"style",isReference:!0,type:"Style",xml:{serialize:"property"}},{name:"sharedStyle",isReference:!0,isVirtual:!0,type:"Style"}]},{name:"Diagram",superClass:["DiagramElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"}]},{name:"Shape",isAbstract:!0,properties:[{name:"bounds",type:"dc:Bounds"}],superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,properties:[{name:"waypoint",type:"dc:Point",isMany:!0,xml:{serialize:"property"}}],superClass:["DiagramElement"]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]}],associations:[],enumerations:[],xml:{tagAlias:"lowerCase"}},dmn:{name:"DMN",prefix:"dmn",uri:"https://www.omg.org/spec/DMN/20191111/MODEL/",types:[{name:"AuthorityRequirement",superClass:["DMNElement"],properties:[{name:"requiredAuthority",type:"DMNElementReference",xml:{serialize:"property"}},{name:"requiredDecision",type:"DMNElementReference",xml:{serialize:"property"}},{name:"requiredInput",type:"DMNElementReference",xml:{serialize:"property"}},{name:"bkm",type:"BusinessKnowledgeModel",isAttr:!0,isReference:!0},{name:"decision",type:"Decision",isAttr:!0,isReference:!0},{name:"knowledgeSource",type:"KnowledgeSource",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["NamedElement"],properties:[{name:"typeRef",type:"String",xml:{serialize:"property"}},{name:"allowedValues",type:"UnaryTests",xml:{serialize:"property"}},{name:"typeLanguage",type:"String",isAttr:!0},{name:"definitions",type:"Definitions",isAttr:!0,isReference:!0},{name:"itemComponent",type:"ItemDefinition",isMany:!0,xml:{serialize:"property"}},{name:"containingDefinition",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"isCollection",isAttr:!0,type:"Boolean"}]},{name:"Definitions",superClass:["NamedElement"],properties:[{name:"import",type:"Import",isMany:!0},{name:"itemDefinition",type:"ItemDefinition",isMany:!0,xml:{serialize:"property"}},{name:"drgElement",type:"DRGElement",isMany:!0},{name:"artifact",type:"Artifact",isMany:!0},{name:"elementCollection",type:"ElementCollection",isMany:!0,xml:{serialize:"property"}},{name:"businessContextElement",type:"BusinessContextElement",isMany:!0},{name:"performanceIndicator",type:"PerformanceIndicator",isMany:!0},{name:"organizationUnit",type:"OrganizationUnit",isMany:!0},{name:"namespace",type:"String",isAttr:!0},{name:"expressionLanguage",type:"String",isAttr:!0},{name:"typeLanguage",type:"String",isAttr:!0},{name:"exporter",isAttr:!0,type:"String"},{name:"exporterVersion",isAttr:!0,type:"String"},{name:"dmnDI",type:"dmndi:DMNDI"}]},{name:"KnowledgeSource",superClass:["DRGElement"],properties:[{name:"authorityRequirement",type:"AuthorityRequirement",isMany:!0,xml:{serialize:"property"}},{name:"type",type:"String",xml:{serialize:"property"}},{name:"owner",type:"DMNElementReference",xml:{serialize:"property"}},{name:"locationURI",type:"String",isAttr:!0}]},{name:"DecisionRule",superClass:["DMNElement"],properties:[{name:"inputEntry",type:"UnaryTests",isMany:!0,xml:{serialize:"property"}},{name:"outputEntry",type:"LiteralExpression",isMany:!0,xml:{serialize:"property"}},{name:"annotationEntry",type:"RuleAnnotation",isMany:!0,xml:{serialize:"property"}},{name:"decisionTable",type:"DecisionTable",isAttr:!0,isReference:!0}]},{name:"Expression",isAbstract:!0,superClass:["DMNElement"],properties:[{name:"binding",type:"Binding",isAttr:!0,isReference:!0},{name:"decision",type:"Decision",isAttr:!0,isReference:!0},{name:"list",type:"List",isAttr:!0,isReference:!0},{name:"contextEntry",type:"ContextEntry",isAttr:!0,isReference:!0},{name:"functionDefinition",type:"FunctionDefinition",isAttr:!0,isReference:!0},{name:"caller",type:"Invocation",isAttr:!0,isReference:!0},{name:"typeRef",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isVirtual:!0,isReference:!0}]},{name:"InformationItem",superClass:["NamedElement"],properties:[{name:"decisionOutput",type:"Decision",isAttr:!0,isReference:!0},{name:"binding",type:"Binding",isReference:!0,isMany:!0},{name:"bkm",type:"BusinessKnowledgeModel",isAttr:!0,isReference:!0},{name:"contextEntry",type:"ContextEntry",isAttr:!0,isReference:!0},{name:"functionDefinition",type:"FunctionDefinition",isAttr:!0,isReference:!0},{name:"relation",type:"Relation",isAttr:!0,isReference:!0},{name:"inputData",type:"InputData",isAttr:!0,isReference:!0},{name:"typeRef",isAttr:!0,type:"String"},{name:"valueExpression",type:"Expression",isVirtual:!0,isReference:!0},{name:"type",type:"ItemDefinition",isVirtual:!0,isReference:!0},{name:"literalExpression",type:"LiteralExpression",isReference:!0},{name:"invocation",type:"Invocation",isReference:!0},{name:"decisionTable",type:"DecisionTable",isReference:!0},{name:"context",type:"Context",isReference:!0},{name:"list",type:"List",isReference:!0}]},{name:"Decision",superClass:["DRGElement"],properties:[{name:"question",type:"String",xml:{serialize:"property"}},{name:"allowedAnswers",type:"String",xml:{serialize:"property"}},{name:"variable",type:"InformationItem",xml:{serialize:"property"}},{name:"informationRequirement",type:"InformationRequirement",isMany:!0,xml:{serialize:"property"}},{name:"knowledgeRequirement",type:"KnowledgeRequirement",isMany:!0,xml:{serialize:"property"}},{name:"authorityRequirement",type:"AuthorityRequirement",isMany:!0,xml:{serialize:"property"}},{name:"supportedObjective",isMany:!0,type:"DMNElementReference",xml:{serialize:"property"}},{name:"impactedPerformanceIndicator",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"decisionMaker",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"decisionOwner",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"usingProcess",isMany:!0,type:"DMNElementReference",xml:{serialize:"property"}},{name:"usingTask",isMany:!0,type:"DMNElementReference",xml:{serialize:"property"}},{name:"literalExpression",type:"LiteralExpression"},{name:"invocation",type:"Invocation"},{name:"decisionTable",type:"DecisionTable"},{name:"context",type:"Context"},{name:"functionDefinition",type:"FunctionDefinition"},{name:"relation",type:"Relation"},{name:"list",type:"List"},{name:"decisionLogic",type:"Expression"},{name:"requiresInformation",type:"InformationRequirement",isReference:!0,isMany:!0}]},{name:"Invocation",superClass:["Expression"],properties:[{name:"literalExpression",type:"LiteralExpression"},{name:"invocation",type:"Invocation"},{name:"decisionTable",type:"DecisionTable"},{name:"context",type:"Context"},{name:"functionDefinition",type:"FunctionDefinition"},{name:"relation",type:"Relation"},{name:"list",type:"List"},{name:"binding",type:"Binding",isMany:!0,xml:{serialize:"property"}},{name:"calledFunction",type:"Expression"}]},{name:"OrganisationalUnit",superClass:["BusinessContextElement"],properties:[{name:"decisionMade",type:"Decision",isReference:!0,isMany:!0},{name:"decisionOwned",type:"Decision",isReference:!0,isMany:!0}]},{name:"Import",superClass:["NamedElement"],properties:[{name:"importType",type:"String",isAttr:!0},{name:"locationURI",type:"String",isAttr:!0},{name:"namespace",type:"String",isAttr:!0},{name:"definitions",type:"Definitions",isAttr:!0,isReference:!0}]},{name:"InformationRequirement",superClass:["DMNElement"],properties:[{name:"requiredDecision",type:"DMNElementReference",xml:{serialize:"property"}},{name:"requiredInput",type:"DMNElementReference",xml:{serialize:"property"}},{name:"decision",type:"Decision",isAttr:!0,isReference:!0}]},{name:"ElementCollection",superClass:["NamedElement"],properties:[{name:"drgElement",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"definitions",type:"Definitions",isAttr:!0,isReference:!0}]},{name:"DRGElement",isAbstract:!0,superClass:["NamedElement"],properties:[{name:"definitions",type:"Definitions",isAttr:!0,isReference:!0}]},{name:"InputData",superClass:["DRGElement"],properties:[{name:"variable",type:"InformationItem",xml:{serialize:"property"}},{name:"requiresInformation",type:"InformationRequirement",isReference:!0,isMany:!0}]},{name:"DMNElement",isAbstract:!0,properties:[{name:"description",type:"String",xml:{serialize:"property"}},{name:"extensionElements",type:"ExtensionElements",xml:{serialize:"property"}},{name:"id",type:"String",isAttr:!0,isId:!0},{name:"extensionAttribute",type:"ExtensionAttribute",isMany:!0},{name:"label",isAttr:!0,type:"String"}]},{name:"InputClause",superClass:["DMNElement"],properties:[{name:"inputExpression",type:"LiteralExpression",xml:{serialize:"property"}},{name:"inputValues",type:"UnaryTests",xml:{serialize:"property"}},{name:"decisionTable",type:"DecisionTable",isAttr:!0,isReference:!0}]},{name:"DecisionTable",superClass:["Expression"],properties:[{name:"input",type:"InputClause",isMany:!0,xml:{serialize:"property"}},{name:"output",type:"OutputClause",isMany:!0,xml:{serialize:"property"}},{name:"annotation",type:"RuleAnnotationClause",isMany:!0,xml:{serialize:"property"}},{name:"rule",type:"DecisionRule",isMany:!0,xml:{serialize:"property"}},{name:"hitPolicy",type:"HitPolicy",isAttr:!0,default:"UNIQUE"},{name:"aggregation",type:"BuiltinAggregator",isAttr:!0},{name:"preferredOrientation",type:"DecisionTableOrientation",isAttr:!0},{name:"outputLabel",isAttr:!0,type:"String"}]},{name:"LiteralExpression",superClass:["Expression"],properties:[{name:"expressionLanguage",type:"String",isAttr:!0},{name:"text",type:"String",xml:{serialize:"property"}},{name:"ruleOutput",type:"DecisionRule",isAttr:!0,isReference:!0},{name:"output",type:"OutputClause",isAttr:!0,isReference:!0},{name:"expressionInput",type:"InputClause",isAttr:!0,isReference:!0},{name:"importedValues",type:"ImportedValues",xml:{serialize:"property"}}]},{name:"Binding",properties:[{name:"parameter",type:"InformationItem",xml:{serialize:"property"}},{name:"invocation",type:"Invocation",isAttr:!0,isReference:!0},{name:"literalExpression",type:"LiteralExpression"},{name:"decisionTable",type:"DecisionTable"},{name:"context",type:"Context"},{name:"functionDefinition",type:"FunctionDefinition"},{name:"relation",type:"Relation"},{name:"list",type:"List"},{name:"bindingFormula",type:"Expression"}]},{name:"KnowledgeRequirement",superClass:["DMNElement"],properties:[{name:"requiredKnowledge",type:"DMNElementReference",xml:{serialize:"property"}},{name:"bkm",type:"BusinessKnowledgeModel",isAttr:!0,isReference:!0},{name:"decision",type:"Decision",isAttr:!0,isReference:!0}]},{name:"BusinessKnowledgeModel",superClass:["Invocable"],properties:[{name:"encapsulatedLogic",type:"FunctionDefinition",xml:{serialize:"property"}},{name:"knowledgeRequirement",type:"KnowledgeRequirement",isMany:!0,xml:{serialize:"property"}},{name:"authorityRequirement",type:"AuthorityRequirement",isMany:!0,xml:{serialize:"property"}},{name:"parameter",type:"InformationItem",isMany:!0},{name:"encapsulatedDecisions",type:"ElementCollection",isAttr:!0,isReference:!0}]},{name:"BusinessContextElement",isAbstract:!0,superClass:["NamedElement"],properties:[{name:"URI",type:"String",isAttr:!0},{name:"definitions",type:"Definitions",isAttr:!0,isReference:!0}]},{name:"PerformanceIndicator",superClass:["BusinessContextElement"],properties:[{name:"impactingDecision",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}}]},{name:"FunctionDefinition",superClass:["Expression"],properties:[{name:"formalParameter",type:"InformationItem",isMany:!0,xml:{serialize:"property"}},{name:"literalExpression",type:"LiteralExpression"},{name:"invocation",type:"Invocation"},{name:"decisionTable",type:"DecisionTable"},{name:"context",type:"Context"},{name:"functionDefinition",type:"FunctionDefinition"},{name:"relation",type:"Relation"},{name:"list",type:"List"},{name:"body",type:"Expression"},{name:"bkm",type:"BusinessKnowledgeModel",isAttr:!0,isReference:!0},{name:"kind",type:"FunctionKind",isAttr:!0}]},{name:"Context",superClass:["Expression"],properties:[{name:"contextEnrty",type:"ContextEntry",isMany:!0}]},{name:"ContextEntry",superClass:["DMNElement"],properties:[{name:"variable",type:"InformationItem",xml:{serialize:"property"}},{name:"context",type:"Context",isAttr:!0,isReference:!0},{name:"literalExpression",type:"LiteralExpression"},{name:"invocation",type:"Invocation"},{name:"decisionTable",type:"DecisionTable"},{name:"functionDefinition",type:"FunctionDefinition"},{name:"relation",type:"Relation"},{name:"list",type:"List"},{name:"value",type:"Expression"}]},{name:"List",superClass:["Expression"],properties:[{name:"relation",type:"Relation",isAttr:!0,isReference:!0},{name:"literalExpression",type:"LiteralExpression",isMany:!0},{name:"invocation",type:"Invocation",isMany:!0},{name:"decisionTable",type:"DecisionTable",isMany:!0},{name:"context",type:"Context",isMany:!0},{name:"functionDefinition",type:"FunctionDefinition",isMany:!0},{name:"list",type:"List",isMany:!0},{name:"element",type:"Expression",isMany:!0}]},{name:"Relation",superClass:["Expression"],properties:[{name:"column",type:"InformationItem",isMany:!0,xml:{serialize:"property"}},{name:"row",type:"List",isMany:!0,xml:{serialize:"property"}}]},{name:"OutputClause",superClass:["DMNElement"],properties:[{name:"outputValues",type:"UnaryTests",xml:{serialize:"property"}},{name:"defaultOutputEntry",type:"LiteralExpression",xml:{serialize:"property"}},{name:"name",isAttr:!0,type:"String"},{name:"outputDefinition",type:"ItemDefinition",isVirtual:!0,isReference:!0},{name:"typeRef",isAttr:!0,type:"String"}]},{name:"UnaryTests",superClass:["Expression"],properties:[{name:"text",type:"String",xml:{serialize:"property"}},{name:"expressionLanguage",type:"String",isAttr:!0},{name:"ruleInput",type:"DecisionRule",isAttr:!0,isReference:!0},{name:"allowedInItemDefinition",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"input",type:"InputClause",isAttr:!0,isReference:!0},{name:"output",type:"OutputClause",isAttr:!0,isReference:!0}]},{name:"NamedElement",isAbstract:!0,superClass:["DMNElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ImportedValues",superClass:["Import"],properties:[{name:"importedElement",type:"String",xml:{serialize:"property"}},{name:"expressionLanguage",type:"String",isAttr:!0}]},{name:"DecisionService",superClass:["Invocable"],properties:[{name:"outputDecision",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"encapsulatedDecision",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"inputDecision",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}},{name:"inputData",type:"DMNElementReference",isMany:!0,xml:{serialize:"property"}}]},{name:"ExtensionElements",properties:[{name:"element",type:"DMNElement",isAttr:!0,isReference:!0},{name:"values",type:"Element",isMany:!0}]},{name:"ExtensionAttribute",properties:[{name:"element",type:"DMNElement",isAttr:!0,isReference:!0},{name:"value",type:"Element"},{name:"valueRef",type:"Element",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Element",isAbstract:!0,properties:[{name:"extensionAttribute",type:"ExtensionAttribute",isAttr:!0,isReference:!0},{name:"elements",type:"ExtensionElements",isAttr:!0,isReference:!0}]},{name:"Artifact",isAbstract:!0,superClass:["DMNElement"],properties:[{name:"definitions",type:"Definitions",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"sourceRef",type:"DMNElementReference",xml:{serialize:"property"}},{name:"targetRef",type:"DMNElementReference",xml:{serialize:"property"}},{name:"associationDirection",type:"AssociationDirection",isAttr:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String",xml:{serialize:"property"}},{name:"textFormat",isAttr:!0,type:"String",default:"text/plain"}]},{name:"RuleAnnotationClause",properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"RuleAnnotation",properties:[{name:"text",type:"String",xml:{serialize:"property"}},{name:"ruleAnnotation",type:"DecisionRule",isAttr:!0,isReference:!0}]},{name:"Invocable",isAbstract:!0,superClass:["DRGElement"],properties:[{name:"variable",type:"InformationItem",xml:{serialize:"property"}}]},{name:"Group",superClass:["Artifact"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"FunctionItem",superClass:["DMNElement"],properties:[{name:"outputTypeRef",isAttr:!0,type:"String"},{name:"outputType",type:"ItemDefinition",isVirtual:!0,isReference:!0}]},{name:"DMNElementReference",properties:[{isAttr:!0,name:"href",type:"String"}]}],enumerations:[{name:"HitPolicy",literalValues:[{name:"UNIQUE"},{name:"FIRST"},{name:"PRIORITY"},{name:"ANY"},{name:"COLLECT"},{name:"RULE ORDER"},{name:"OUTPUT ORDER"}]},{name:"BuiltinAggregator",literalValues:[{name:"SUM"},{name:"COUNT"},{name:"MIN"},{name:"MAX"}]},{name:"DecisionTableOrientation",literalValues:[{name:"Rule-as-Row"},{name:"Rule-as-Column"},{name:"CrossTable"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"FunctionKind",literalValues:[{name:"FEEL"},{name:"Java"},{name:"PMML"}]}],associations:[],xml:{tagAlias:"lowerCase"}},dmndi:{name:"DMNDI",prefix:"dmndi",uri:"https://www.omg.org/spec/DMN/20191111/DMNDI/",types:[{name:"DMNDI",properties:[{name:"diagrams",type:"DMNDiagram",isMany:!0},{name:"styles",type:"DMNStyle",isMany:!0}]},{name:"DMNStyle",superClass:["di:Style"],properties:[{name:"fillColor",type:"dc:Color",isAttr:!0},{name:"strokeColor",type:"dc:Color",isAttr:!0},{name:"fontColor",type:"dc:Color",isAttr:!0},{name:"fontSize",isAttr:!0,type:"Real"},{name:"fontFamily",isAttr:!0,type:"String"},{name:"fontItalic",isAttr:!0,type:"Boolean"},{name:"fontBold",isAttr:!0,type:"Boolean"},{name:"fontUnderline",isAttr:!0,type:"Boolean"},{name:"fontStrikeThrough",isAttr:!0,type:"Boolean"},{name:"labelHorizontalAlignment",type:"dc:AlignmentKind",isAttr:!0},{name:"labelVerticalAlignment",type:"dc:AlignmentKind",isAttr:!0}]},{name:"DMNDiagram",superClass:["di:Diagram"],properties:[{name:"dmnElementRef",type:"DMN:DMNElement",isAttr:!0,isReference:!0},{name:"size",type:"Size"},{name:"localStyle",type:"DMNStyle",isVirtual:!0},{name:"sharedStyle",type:"DMNStyle",isVirtual:!0,isReference:!0,redefines:"di:DiagramElement#sharedStyle"},{name:"diagramElements",type:"DMNDiagramElement",isMany:!0}]},{name:"DMNDiagramElement",isAbstract:!0,superClass:["di:DiagramElement"],properties:[{name:"dmnElementRef",type:"DMN:DMNElement",isAttr:!0,isReference:!0},{name:"sharedStyle",type:"DMNStyle",isVirtual:!0,isReference:!0,redefines:"di:DiagramElement#sharedStyle"},{name:"localStyle",type:"DMNStyle",isVirtual:!0},{name:"label",type:"DMNLabel"}]},{name:"DMNLabel",superClass:["di:Shape"],properties:[{name:"text",type:"Text"}]},{name:"DMNShape",superClass:["di:Shape","DMNDiagramElement"],properties:[{name:"isListedInputData",isAttr:!0,type:"Boolean"},{name:"decisionServiceDividerLine",type:"DMNDecisionServiceDividerLine"},{name:"isCollapsed",isAttr:!0,type:"Boolean"}]},{name:"DMNEdge",superClass:["di:Edge","DMNDiagramElement"],properties:[{name:"sourceElement",type:"DMNDiagramElement",isAttr:!0,isReference:!0},{name:"targetElement",type:"DMNDiagramElement",isAttr:!0,isReference:!0}]},{name:"DMNDecisionServiceDividerLine",superClass:["di:Edge"]},{name:"Text",properties:[{name:"text",isBody:!0,type:"String"}]},{name:"Size",superClass:["dc:Dimension"]}],associations:[],enumerations:[]}};t.exports=function(e,t){return new i(o.assign({},a,e),t)}},{"min-dash":256,moddle:259,"moddle-xml":258}],243:[function(e,t,n){"use strict";function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace"),function(S){function i(){return A.createDocumentFragment()}function e(e){return A.createElement(e)}function C(e,t){if(!e)throw new Error("Failed to construct "+t+": 1 argument required, but only 0 present.")}function r(e){if(1===e.length)return a(e[0]);for(var t=i(),n=N.call(e),r=0;r<e.length;r++)t.appendChild(a(n[r]));return t}function a(e){return"object"===F(e)?e:A.createTextNode(e)}for(var t,n,o,s,l,A=S.document,c=Object.prototype.hasOwnProperty,u=Object.defineProperty||function(e,t,n){return c.call(n,"value")?e[t]=n.value:(c.call(n,"get")&&e.__defineGetter__(t,n.get),c.call(n,"set")&&e.__defineSetter__(t,n.set)),e},p=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},d=function(e){var t=void 0===e.className,n=t?e.getAttribute("class")||"":e.className,r=t||"object"===F(n),i=(!r||t?n:n.baseVal).replace(f,"");i.length&&R.push.apply(this,i.split(h)),this._isSVG=r,this._=e},m={get:function(){return new d(this)},set:function(){}},f=/^\s+|\s+$/g,h=/\s+/,g="classList",v=function(e,t){return this.contains(e)?t||this.remove(e):void 0!==t&&!t||(t=!0,this.add(e)),!!t},y=S.DocumentFragment&&DocumentFragment.prototype,b=S.Node,x=(b||Element).prototype,w=S.CharacterData||b,E=w&&w.prototype,k=S.DocumentType,_=k&&k.prototype,T=(S.Element||b||S.HTMLElement).prototype,M=S.HTMLSelectElement||e("select").constructor,D=M.prototype.remove,I=S.SVGElement,R=["matches",T.matchesSelector||T.webkitMatchesSelector||T.khtmlMatchesSelector||T.mozMatchesSelector||T.msMatchesSelector||T.oMatchesSelector||function(e){var t=this.parentNode;return!!t&&-1<p.call(t.querySelectorAll(e),this)},"closest",function(e){for(var t,n=this;(t=n&&n.matches)&&!n.matches(e);)n=n.parentNode;return t?n:null},"prepend",function(){var e=this.firstChild,t=r(arguments);e?this.insertBefore(t,e):this.appendChild(t)},"append",function(){this.appendChild(r(arguments))},"before",function(){var e=this.parentNode;e&&e.insertBefore(r(arguments),this)},"after",function(){var e=this.parentNode,t=this.nextSibling,n=r(arguments);e&&(t?e.insertBefore(n,t):e.appendChild(n))},"toggleAttribute",function(e,t){var n=this.hasAttribute(e);return 1<arguments.length?n&&!t?this.removeAttribute(e):t&&!n&&this.setAttribute(e,""):n?this.removeAttribute(e):this.setAttribute(e,""),this.hasAttribute(e)},"replace",function(){this.replaceWith.apply(this,arguments)},"replaceWith",function(){var e=this.parentNode;e&&e.replaceChild(r(arguments),this)},"remove",function(){var e=this.parentNode;e&&e.removeChild(this)}],N=R.slice,P=R.length;P;P-=2)if((n=R[P-2])in T||(T[n]=R[P-1]),"remove"!==n||D._dom4||((M.prototype[n]=function(){return 0<arguments.length?D.apply(this,arguments):T.remove.call(this)})._dom4=!0),/^(?:before|after|replace|replaceWith|remove)$/.test(n)&&(!w||n in E||(E[n]=R[P-1]),!k||n in _||(_[n]=R[P-1])),/^(?:append|prepend)$/.test(n))if(y)n in y||(y[n]=R[P-1]);else try{i().constructor.prototype[n]=R[P-1]}catch(e){}var $,O;e("a").matches("a")||(T[n]=($=T[n],function(e){return $.call(this.parentNode?this:i().appendChild(this),e)})),d.prototype={length:0,add:function(){for(var e,t=0;t<arguments.length;t++)e=arguments[t],this.contains(e)||R.push.call(this,n);this._isSVG?this._.setAttribute("class",""+this):this._.className=""+this},contains:(O=[].indexOf||function(e){for(P=this.length;P--&&this[P]!==e;);return P},function(e){return-1<(P=O.call(this,n=function(e){if(!e)throw"SyntaxError";if(h.test(e))throw"InvalidCharacterError";return e}(e)))}),item:function(e){return this[e]||null},remove:function(){for(var e,t=0;t<arguments.length;t++)e=arguments[t],this.contains(e)&&R.splice.call(this,P,1);this._isSVG?this._.setAttribute("class",""+this):this._.className=""+this},toggle:v,toString:function(){return R.join.call(this," ")}},!I||g in I.prototype||u(I.prototype,g,m),g in A.documentElement?((s=e("div")[g]).add("a","b","a"),"a b"!=s&&("add"in(o=s.constructor.prototype)||(o=S.TemporaryTokenList.prototype),l=function(t){return function(){for(var e=0;e<arguments.length;)t.call(this,arguments[e++])}},o.add=l(o.add),o.remove=l(o.remove),o.toggle=v)):u(T,g,m),"contains"in x||u(x,"contains",{value:function(e){for(;e&&e!==this;)e=e.parentNode;return this===e}}),"head"in A||u(A,"head",{get:function(){return t=t||A.getElementsByTagName("head")[0]}}),function(){for(var n,e=S.requestAnimationFrame,t=S.cancelAnimationFrame,r=["o","ms","moz","webkit"],i=r.length;!t&&i--;)e=e||S[r[i]+"RequestAnimationFrame"],t=S[r[i]+"CancelAnimationFrame"]||S[r[i]+"CancelRequestAnimationFrame"];t=t||(e?(n=e,e=function(e){var t=!0;return n(function(){t&&e.apply(this,arguments)}),function(){t=!1}},function(e){e()}):(e=function(e){return setTimeout(e,15,15)},function(e){clearTimeout(e)})),S.requestAnimationFrame=e,S.cancelAnimationFrame=t}();try{new S.CustomEvent("?")}catch(e){S.CustomEvent=function(r,i){function a(e,t,n,r){this.initEvent(e,t,n),this.detail=r}return function(e,t){var n=A.createEvent(r);if("string"!=typeof e)throw new Error("An event name must be provided");return"Event"==r&&(n.initCustomEvent=a),null==t&&(t=i),n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(S.CustomEvent?"CustomEvent":"Event",{bubbles:!1,cancelable:!1,detail:null})}try{new Event("_")}catch(e){e=function(e){function t(e,t){C(arguments.length,"Event");var n=A.createEvent("Event");return t=t||{},n.initEvent(e,!!t.bubbles,!!t.cancelable),n}return t.prototype=e.prototype,t}(S.Event||function(){}),u(S,"Event",{value:e}),Event!==e&&(Event=e)}try{new KeyboardEvent("_",{})}catch(e){e=function(e){var x,w=0,E={char:"",key:"",location:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,altGraphKey:!1,repeat:!1,locale:navigator.language,detail:0,bubbles:!1,cancelable:!1,keyCode:0,charCode:0,which:0};try{var t=A.createEvent("KeyboardEvent");t.initKeyboardEvent("keyup",!1,!1,S,"+",3,!0,!1,!0,!1,!1),w="+"==(t.keyIdentifier||t.key)&&3==(t.keyLocation||t.location)&&(t.ctrlKey?t.altKey?1:3:t.shiftKey?2:4)||9}catch(e){}function k(e,t,n){try{t[e]=n[e]}catch(e){}}function n(e,t){C(arguments.length,"KeyboardEvent"),t=function(e,t){for(var n in t)t.hasOwnProperty(n)&&!t.hasOwnProperty.call(e,n)&&(e[n]=t[n]);return e}(t||{},E);var n,r=A.createEvent(x),i=t.ctrlKey,a=t.shiftKey,o=t.altKey,s=t.metaKey,l=t.altGraphKey,c=3<w?function(e){for(var t=[],n=["ctrlKey","Control","shiftKey","Shift","altKey","Alt","metaKey","Meta","altGraphKey","AltGraph"],r=0;r<n.length;r+=2)e[n[r]]&&t.push(n[r+1]);return t.join(" ")}(t):null,u=String(t.key),p=String(t.char),d=t.location,m=t.keyCode||(t.keyCode=u)&&u.charCodeAt(0)||0,f=t.charCode||(t.charCode=p)&&p.charCodeAt(0)||0,h=t.bubbles,g=t.cancelable,v=t.repeat,y=t.locale,b=t.view||S;if(t.which||(t.which=t.keyCode),"initKeyEvent"in r)r.initKeyEvent(e,h,g,b,i,o,a,s,m,f);else if(0<w&&"initKeyboardEvent"in r){switch(n=[e,h,g,b],w){case 1:n.push(u,d,i,a,o,s,l);break;case 2:n.push(i,o,a,s,m,f);break;case 3:n.push(u,d,i,o,a,s,l);break;case 4:n.push(u,d,c,v,y);break;default:n.push(char,u,d,c,v,y)}r.initKeyboardEvent.apply(r,n)}else r.initEvent(e,h,g);for(u in r)E.hasOwnProperty(u)&&r[u]!==t[u]&&k(u,r,t);return r}return x=0<w?"KeyboardEvent":"Event",n.prototype=e.prototype,n}(S.KeyboardEvent||function(){}),u(S,"KeyboardEvent",{value:e}),KeyboardEvent!==e&&(KeyboardEvent=e)}try{new MouseEvent("_",{})}catch(e){e=function(e){function t(e,t){C(arguments.length,"MouseEvent");var n=A.createEvent("MouseEvent");return t=t||{},n.initMouseEvent(e,!!t.bubbles,!!t.cancelable,t.view||S,t.detail||1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,!!t.ctrlKey,!!t.altKey,!!t.shiftKey,!!t.metaKey,t.button||0,t.relatedTarget||null),n}return t.prototype=e.prototype,t}(S.MouseEvent||function(){}),u(S,"MouseEvent",{value:e}),MouseEvent!==e&&(MouseEvent=e)}function L(e){var n=e.querySelectorAll;e.querySelectorAll=function(e){var t=n.call(this,e);return t.forEach=Array.prototype.forEach,t}}A.querySelectorAll("*").forEach||(L(A),L(Element.prototype));try{A.querySelector(":scope *")}catch(e){!function(){var i="data-scope-"+(1e9*Math.random()>>>0),e=Element.prototype,t=e.querySelector,n=e.querySelectorAll;function r(e,t,n){e.setAttribute(i,null);var r=t.call(e,String(n).replace(/(^|,\s*)(:scope([ >]|$))/g,function(e,t,n,r){return t+"["+i+"]"+(r||" ")}));return e.removeAttribute(i),r}e.querySelector=function(e){return r(this,t,e)},e.querySelectorAll=function(e){return r(this,n,e)}}()}}(window),function(e){var r,t,i,a,n=e.WeakMap||(t=0,a=i=!1,s.prototype.handleEvent=function(e){i=!0,a?e.currentTarget.removeEventListener(e.type,this,!1):r=this.value},l.prototype={constructor:l,delete:function(e){return o(e,this.__ce__,!0),i},get:function(e){o(e,this.__ce__,!1);var t=r;return r=void 0,t},has:function(e){return o(e,this.__ce__,!1),i},set:function(e,t){return o(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new s(t),!1),this}},l);function o(e,t,n){a=n,i=!1,r=void 0,e.dispatchEvent(t)}function s(e){this.value=e}function l(){t++,this.__ce__=new h("@DOMMap:"+t+Math.random())}function u(){}function p(e,t,n){function r(e){r.once&&(e.currentTarget.removeEventListener(e.type,t,r),r.removed=!0),r.passive&&(e.preventDefault=p.preventDefault),"function"==typeof r.callback?r.callback.call(this,e):r.callback&&r.callback.handleEvent(e),r.passive&&delete e.preventDefault}return r.type=e,r.callback=t,r.capture=!!n.capture,r.passive=!!n.passive,r.once=!!n.once,r.removed=!1,r}u.prototype=(Object.create||Object)(null),p.preventDefault=function(){};function c(){b++}function d(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")}var m,f,h=e.CustomEvent,g=e.dispatchEvent,v=e.addEventListener,y=e.removeEventListener,b=0,x=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t};try{v("_",c,{once:!0}),g(new h("_")),g(new h("_")),y("_",c,{once:!0})}catch(e){}1!==b&&(f=new n,m=function(e){if(e){var l,c,t=e.prototype;t.addEventListener=(l=t.addEventListener,function(e,t,n){if(n&&"boolean"!=typeof n){var r,i,a,o=f.get(this),s=d(n);o||f.set(this,o=new u),e in o||(o[e]={handler:[],wrap:[]}),i=o[e],(r=x.call(i.handler,t))<0?(r=i.handler.push(t)-1,i.wrap[r]=a=new u):a=i.wrap[r],s in a||(a[s]=p(e,t,n),l.call(this,e,a[s],a[s].capture))}else l.call(this,e,t,n)}),t.removeEventListener=(c=t.removeEventListener,function(e,t,n){if(n&&"boolean"!=typeof n){var r,i,a,o,s=f.get(this);if(s&&e in s&&(a=s[e],-1<(i=x.call(a.handler,t))&&(r=d(n))in(o=a.wrap[i]))){for(r in c.call(this,e,o[r],o[r].capture),delete o[r],o)return;a.handler.splice(i,1),a.wrap.splice(i,1),0===a.handler.length&&delete s[e]}}else c.call(this,e,t,n)})}},e.EventTarget?m(EventTarget):(m(e.Text),m(e.Element||e.HTMLElement),m(e.HTMLDocument),m(e.Window||{prototype:e}),m(e.XMLHttpRequest)))}(self)},{"core-js/modules/es.string.replace":188}],244:[function(e,t,n){"use strict";function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace");var r=e("./util").buildOptions,i={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},a=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function o(e){this.options=r(e,i,a),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.options.cdataTagName?this.isCDATA=h:this.isCDATA=function(){return!1},this.replaceCDATAstr=s,this.replaceCDATAarr=l,this.options.format?(this.indentate=m,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=d,this.buildObjNode=u):(this.buildTextNode=p,this.buildObjNode=c),this.buildTextValNode=p,this.buildObjectNode=c}function s(e,t){return e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function l(e,t){if(e=this.options.tagValueProcessor(""+e),""===this.options.cdataPositionChar||""===e)return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(var n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function c(e,t,n,r){return n&&!e.includes("<")?this.indentate(r)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(r)+"<"+t+n+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}function u(e,t,n,r){return""!==e?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function p(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function d(e,t,n,r){return""!==e?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function m(e){return this.options.indentBy.repeat(e)}function f(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}function h(e){return e===this.options.cdataTagName}o.prototype.parse=function(e){return this.j2x(e,0).val},o.prototype.j2x=function(e,t){for(var n="",r="",i=Object.keys(e),a=i.length,o=0;o<a;o++){var s=i[o];if(void 0!==e[s])if(null===e[s])r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)r+=this.buildTextNode(e[s],s,"",t);else if("object"!==v(e[s])){var l=this.isAttribute(s);l?n+=" "+l+'="'+this.options.attrValueProcessor(""+e[s])+'"':this.isCDATA(s)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[s]):r+=this.replaceCDATAstr("",e[s]):s===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[s])):r+=this.buildTextNode(e[s],s,"",t)}else if(Array.isArray(e[s]))if(this.isCDATA(s))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[s]):r+=this.replaceCDATAarr("",e[s]);else for(var c=e[s].length,u=0;u<c;u++){var p=e[s][u];if(void 0!==p)if(null===p)r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"===v(p)){var d=this.j2x(p,t+1);r+=this.buildObjNode(d.val,s,d.attrStr,t)}else r+=this.buildTextNode(p,s,"",t)}else if(this.options.attrNodeName&&s===this.options.attrNodeName)for(var m=Object.keys(e[s]),f=m.length,h=0;h<f;h++)n+=" "+m[h]+'="'+this.options.attrValueProcessor(""+e[s][m[h]])+'"';else{var g=this.j2x(e[s],t+1);r+=this.buildObjNode(g.val,s,g.attrStr,t)}}return{attrStr:n,val:r}},t.exports=o},{"./util":249,"core-js/modules/es.string.replace":188}],245:[function(e,t,n){"use strict";function r(e){return String.fromCharCode(e)}function g(e,t,n){if("string"==typeof t)return e&&e[0]&&void 0!==e[0].val?y(e[0].val,t):y(e,t);var r=void 0===(i=e)?v.missingChar:null===i?v.nilChar:!(i.child&&0===Object.keys(i.child).length&&(!i.attrsMap||0===Object.keys(i.attrsMap).length))||v.emptyChar;if(!0!==r)return r;var i,a="";if(Array.isArray(t)){a+=v.arrStart;var o=t[0],s=e.length;if("string"==typeof o)for(var l=0;l<s;l++){var c=y(e[l].val,o);a=b(a,c)}else for(var u=0;u<s;u++){var p=g(e[u],o,n);a=b(a,p)}a+=v.arrayEnd}else{a+=v.objStart;var d=Object.keys(t);for(var m in Array.isArray(e)&&(e=e[0]),d){var f=d[m],h=void 0;h=!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[f]?g(e.attrsMap[f],t[f],n):f===n.textNodeName?g(e.val,t[f],n):g(e.child[f],t[f],n),a=b(a,h)}}return a}var v={nilChar:r(176),missingChar:r(201),nilPremitive:r(175),missingPremitive:r(200),emptyChar:r(178),emptyValue:r(177),boundryChar:r(179),objStart:r(198),arrStart:r(204),arrayEnd:r(185)},i=[v.nilChar,v.nilPremitive,v.missingChar,v.missingPremitive,v.boundryChar,v.emptyChar,v.emptyValue,v.arrayEnd,v.objStart,v.arrStart],y=function(e){switch(e){case void 0:return v.missingPremitive;case null:return v.nilPremitive;case"":return v.emptyValue;default:return e}},b=function(e,t){return a(t[0])||a(e[e.length-1])||(e+=v.boundryChar),e+t},a=function(e){return-1!==i.indexOf(e)};var o=e("./xmlstr2xmlnode"),s=e("./util").buildOptions;n.convert2nimn=function(e,t,n){return n=s(n,o.defaultOptions,o.props),g(e,t,n)}},{"./util":249,"./xmlstr2xmlnode":252}],246:[function(e,t,n){"use strict";function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=e("./util");n.convertToJson=function e(t,n){var r={};if(!(t.child&&!u.isEmptyObject(t.child)||t.attrsMap&&!u.isEmptyObject(t.attrsMap)))return u.isExist(t.val)?t.val:"";u.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==n.cdataPositionChar)&&("strict"===n.arrayMode?r[n.textNodeName]=[t.val]:r[n.textNodeName]=t.val),u.merge(r,t.attrsMap,n.arrayMode);for(var i=Object.keys(t.child),a=0;a<i.length;a++){var o=i[a];if(t.child[o]&&1<t.child[o].length)for(var s in r[o]=[],t.child[o])r[o].push(e(t.child[o][s],n));else if(!0===n.arrayMode){var l=e(t.child[o][0],n);"object"===c(l)?r[o]=[l]:r[o]=l}else"strict"===n.arrayMode?r[o]=[e(t.child[o][0],n)]:r[o]=e(t.child[o][0],n)}return r}},{"./util":249}],247:[function(e,t,n){"use strict";var c=e("./util"),r=e("./util").buildOptions,i=e("./xmlstr2xmlnode"),a=function e(t,n){for(var r,i="{",a=Object.keys(t.child),o=0;o<a.length;o++){var s=a[o];if(t.child[s]&&1<t.child[s].length){for(var l in i+='"'+s+'" : [ ',t.child[s])i+=e(t.child[s][l],n)+" , ";i=i.substr(0,i.length-1)+" ] "}else i+='"'+s+'" : '+e(t.child[s][0],n)+" ,"}return c.merge(i,t.attrsMap),c.isEmptyObject(i)?c.isExist(t.val)?t.val:"":(c.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==n.cdataPositionChar)&&(i+='"'+n.textNodeName+'" : '+(!0!==(r=t.val)&&!1!==r&&isNaN(r)?'"'+r+'"':r)),","===i[i.length-1]&&(i=i.substr(0,i.length-2)),i+"}")};n.convertToJsonString=function(e,t){return(t=r(t,i.defaultOptions,i.props)).indentBy=t.indentBy||"",a(e,t,0)}},{"./util":249,"./xmlstr2xmlnode":252}],248:[function(e,t,r){"use strict";var i=e("./node2json"),a=e("./xmlstr2xmlnode"),o=e("./xmlstr2xmlnode"),s=e("./util").buildOptions,l=e("./validator");r.parse=function(e,t,n){if(n){!0===n&&(n={});var r=l.validate(e,n);if(!0!==r)throw Error(r.err.msg)}return t=s(t,o.defaultOptions,o.props),i.convertToJson(a.getTraversalObj(e,t),t)},r.convertTonimn=e("../src/nimndata").convert2nimn,r.getTraversalObj=a.getTraversalObj,r.convertToJson=i.convertToJson,r.convertToJsonString=e("./node2json_str").convertToJsonString,r.validate=l.validate,r.j2xParser=e("./json2xml"),r.parseToNimn=function(e,t,n){return r.convertTonimn(r.getTraversalObj(e,n),t,n)}},{"../src/nimndata":245,"./json2xml":244,"./node2json":246,"./node2json_str":247,"./util":249,"./validator":250,"./xmlstr2xmlnode":252}],249:[function(e,t,n){"use strict";var r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+r+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",a=new RegExp("^"+i+"$");n.isExist=function(e){return void 0!==e},n.isEmptyObject=function(e){return 0===Object.keys(e).length},n.merge=function(e,t,n){if(t)for(var r=Object.keys(t),i=r.length,a=0;a<i;a++)e[r[a]]="strict"===n?[t[r[a]]]:t[r[a]]},n.getValue=function(e){return n.isExist(e)?e:""},n.buildOptions=function(e,t,n){var r={};if(!e)return t;for(var i=0;i<n.length;i++)void 0!==e[n[i]]?r[n[i]]=e[n[i]]:r[n[i]]=t[n[i]];return r},n.isName=function(e){var t=a.exec(e);return!(null==t)},n.getAllMatches=function(e,t){for(var n=[],r=t.exec(e);r;){for(var i=[],a=r.length,o=0;o<a;o++)i.push(r[o]);n.push(i),r=t.exec(e)}return n},n.nameRegexp=i},{}],250:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var h=e("./util"),g={allowBooleanAttributes:!1},v=["allowBooleanAttributes"];function y(e,t){for(var n=t;t<e.length;t++)if("?"==e[t]||" "==e[t]){var r=e.substr(n,t-n);if(5<t&&"xml"===r)return k("InvalidXml","XML declaration allowed only at the start of the document.",S(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function b(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){var n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&0===--n)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}n.validate=function(e,t){t=h.buildOptions(t,g,v);var n,r=[],i=!1,a=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(var o=0;o<e.length;o++){if("<"!==e[o]){if(" "===e[o]||"\t"===e[o]||"\n"===e[o]||"\r"===e[o])continue;return k("InvalidChar","char '".concat(e[o],"' is not expected."),S(e,o))}if("?"===e[++o]){if((o=y(e,++o)).err)return o}else{if("!"===e[o]){o=b(e,o);continue}var s=!1;"/"===e[o]&&(s=!0,o++);for(var l="";o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)l+=e[o];if("/"===(l=l.trim())[l.length-1]&&(l=l.substring(0,l.length-1),o--),n=l,!h.isName(n)){return k("InvalidTag",0===l.trim().length?"There is an unnecessary space between tag name and backward slash '</ ..'.":"Tag '".concat(l,"' is an invalid name."),S(e,o))}var c=x(e,o);if(!1===c)return k("InvalidAttr","Attributes for '".concat(l,"' have open quote."),S(e,o));var u=c.value;if(o=c.index,"/"===u[u.length-1]){var p=w(u=u.substring(0,u.length-1),t);if(!0!==p)return k(p.err.code,p.err.msg,S(e,o-u.length+p.err.line));i=!0}else if(s){if(!c.tagClosed)return k("InvalidTag","Closing tag '".concat(l,"' doesn't have proper closing."),S(e,o));if(0<u.trim().length)return k("InvalidTag","Closing tag '".concat(l,"' can't have attributes or invalid starting."),S(e,o));var d=r.pop();if(l!==d)return k("InvalidTag","Closing tag '".concat(d,"' is expected inplace of '").concat(l,"'."),S(e,o));0==r.length&&(a=!0)}else{var m=w(u,t);if(!0!==m)return k(m.err.code,m.err.msg,S(e,o-u.length+m.err.line));if(!0===a)return k("InvalidXml","Multiple possible root nodes found.",S(e,o));r.push(l),i=!0}for(o++;o<e.length;o++)if("<"!==e[o]){if("&"===e[o]){var f=E(e,o);if(-1==f)return k("InvalidChar","char '&' is not expected.",S(e,o));o=f}}else{if("!"!==e[o+1])break;o=b(e,++o)}"<"===e[o]&&o--}}return i?!(0<r.length)||k("InvalidXml","Invalid '".concat(JSON.stringify(r,null,4).replace(/\r?\n/g,""),"' found."),1):k("InvalidXml","Start tag expected.",1)};var a='"',o="'";function x(e,t){for(var n="",r="",i=!1;t<e.length;t++){if(e[t]===a||e[t]===o)if(""===r)r=e[t];else{if(r!==e[t])continue;r=""}else if(">"===e[t]&&""===r){i=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:i}}var s=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function w(e,t){for(var n,r=h.getAllMatches(e,s),i={},a=0;a<r.length;a++){if(0===r[a][1].length)return k("InvalidAttr","Attribute '".concat(r[a][2],"' has no space in starting."),l(e,r[a][0]));if(void 0===r[a][3]&&!t.allowBooleanAttributes)return k("InvalidAttr","boolean attribute '".concat(r[a][2],"' is not allowed."),l(e,r[a][0]));var o=r[a][2];if(n=o,!h.isName(n))return k("InvalidAttr","Attribute '".concat(o,"' is an invalid name."),l(e,r[a][0]));if(i.hasOwnProperty(o))return k("InvalidAttr","Attribute '".concat(o,"' is repeated."),l(e,r[a][0]));i[o]=1}return!0}function E(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){var n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);for(var n=0;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function k(e,t,n){return{err:{code:e,msg:t,line:n}}}function S(e,t){return e.substring(0,t).split(/\r?\n/).length}function l(e,t){return e.indexOf(t)+t.length}},{"./util":249,"core-js/modules/es.string.replace":188}],251:[function(e,t,n){"use strict";t.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(e){Array.isArray(this.child[e.tagname])?this.child[e.tagname].push(e):this.child[e.tagname]=[e]}}},{}],252:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var p=e("./util"),d=e("./util").buildOptions,m=e("./xmlNode"),f={OPENING:1,CLOSING:2,SELF:3,CDATA:4},h="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,p.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var g={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e},stopNodes:[]};n.defaultOptions=g;var v=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];n.props=v;function y(e,t,n){var r=e[7]||n,i=e[12];return i&&(t.trimValues&&(i=i.trim()),i=c(i=t.tagValueProcessor(i,r),t.parseNodeValue,t.parseTrueNumberOnly)),i}function b(e){return"]]>"===e[4]?f.CDATA:"/"===e[10]?f.CLOSING:void 0!==e[8]&&"/"===e[8].substr(e[8].length-1)?f.SELF:f.OPENING}function l(e,t){if(t.ignoreNameSpace){var n=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===n[0])return"";2===n.length&&(e=r+n[1])}return e}function c(e,t,n){var r;return t&&"string"==typeof e?(""===e.trim()||isNaN(e)?r="true"===e||"false"!==e&&e:(-1!==e.indexOf("0x")?r=Number.parseInt(e,16):-1!==e.indexOf(".")?(r=Number.parseFloat(e),e=e.replace(/0+$/,"")):r=Number.parseInt(e,10),n&&(r=String(r)===e?r:e)),r):p.isExist(e)?e:""}var u=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function x(e,t){if(!t.ignoreAttributes&&"string"==typeof e){e=e.replace(/\r?\n/g," ");for(var n=p.getAllMatches(e,u),r=n.length,i={},a=0;a<r;a++){var o=l(n[a][1],t);o.length&&(void 0!==n[a][4]?(t.trimValues&&(n[a][4]=n[a][4].trim()),n[a][4]=t.attrValueProcessor(n[a][4],o),i[t.attributeNamePrefix+o]=c(n[a][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+o]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){var s={};return s[t.attrNodeName]=i,s}return i}}n.getTraversalObj=function(e,t){t=d(t,g,v),e=e.replace(/<!--[\s\S]*?-->/g,"");for(var n=new m("!xml"),r=n,i=new RegExp(h,"g"),a=i.exec(e),o=i.exec(e);a;){var s=b(a);if(s===f.CLOSING)r.parent&&a[12]&&(r.parent.val=p.getValue(r.parent.val)+""+y(a,t,r.parent.tagname)),t.stopNodes.length&&t.stopNodes.includes(r.tagname)&&(r.child=[],null==r.attrsMap&&(r.attrsMap={}),r.val=e.substr(r.startIndex+1,a.index-r.startIndex-1)),r=r.parent;else if(s===f.CDATA)if(t.cdataTagName){var l=new m(t.cdataTagName,r,a[3]);l.attrsMap=x(a[8],t),r.addChild(l),r.val=p.getValue(r.val)+t.cdataPositionChar,a[12]&&(r.val+=y(a,t))}else r.val=(r.val||"")+(a[3]||"")+y(a,t);else if(s===f.SELF){r&&a[12]&&(r.val=p.getValue(r.val)+""+y(a,t));var c=new m(t.ignoreNameSpace?a[7]:a[5],r,"");a[8]&&0<a[8].length&&(a[8]=a[8].substr(0,a[8].length-1)),c.attrsMap=x(a[8],t),r.addChild(c)}else{var u=new m(t.ignoreNameSpace?a[7]:a[5],r,y(a,t));t.stopNodes.length&&t.stopNodes.includes(u.tagname)&&(u.startIndex=a.index+a[1].length),u.attrsMap=x(a[8],t),r.addChild(u),r=u}a=o,o=i.exec(e)}return n}},{"./util":249,"./xmlNode":251,"core-js/modules/es.string.replace":188}],253:[function(e,t,n){"use strict";var l=t.exports=function(e,t){if(t=t||16,void 0===e&&(e=128),e<=0)return"0";for(var n=Math.log(Math.pow(2,e))/Math.log(t),r=2;n===1/0;r*=2)n=Math.log(Math.pow(2,e/r))/Math.log(t)*r;var i=n-Math.floor(n),a="";for(r=0;r<Math.floor(n);r++){a=Math.floor(Math.random()*t).toString(t)+a}if(i){var o=Math.pow(t,i);a=Math.floor(Math.random()*o).toString(t)+a}var s=parseInt(a,t);return s!==1/0&&s>=Math.pow(2,e)?l(e,t):a};l.rack=function(r,i,a){function n(e){var t=0;do{if(10<t++){if(!a)throw new Error("too many ID collisions, use more bits");r+=a}var n=l(r,i)}while(Object.hasOwnProperty.call(o,n));return o[n]=e,n}var o=n.hats={};return n.get=function(e){return n.hats[e]},n.set=function(e,t){return n.hats[e]=t,n},n.bits=r||128,n.base=i||16,n}},{}],254:[function(e,t,n){"use strict";var r,i=(function(e){var l=e.exports=function(e,t){if(t=t||16,void 0===e&&(e=128),e<=0)return"0";for(var n=Math.log(Math.pow(2,e))/Math.log(t),r=2;n===1/0;r*=2)n=Math.log(Math.pow(2,e/r))/Math.log(t)*r;var i=n-Math.floor(n),a="";for(r=0;r<Math.floor(n);r++){a=Math.floor(Math.random()*t).toString(t)+a}if(i){var o=Math.pow(t,i);a=Math.floor(Math.random()*o).toString(t)+a}var s=parseInt(a,t);return s!==1/0&&s>=Math.pow(2,e)?l(e,t):a};l.rack=function(r,i,a){function n(e){var t=0;do{if(10<t++){if(!a)throw new Error("too many ID collisions, use more bits");r+=a}var n=l(r,i)}while(Object.hasOwnProperty.call(o,n));return o[n]=e,n}var o=n.hats={};return n.get=function(e){return n.hats[e]},n.set=function(e,t){return n.hats[e]=t,n},n.bits=r||128,n.base=i||16,n}}(r={exports:{}}),r.exports);function a(e){if(!(this instanceof a))return new a(e);e=e||[128,36,1],this._seed=e.length?i.rack(e[0],e[1],e[2]):e}a.prototype.next=function(e){return this._seed(e||!0)},a.prototype.nextPrefixed=function(e,t){for(var n;n=e+this.next(!0),this.assigned(n););return this.claim(n,t),n},a.prototype.claim=function(e,t){this._seed.set(e,t||!0)},a.prototype.assigned=function(e){return this._seed.get(e)||!1},a.prototype.unclaim=function(e){delete this._seed.hats[e]},a.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)},t.exports=a},{}],255:[function(e,t,n){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],256:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.prototype.toString,i=Object.prototype.hasOwnProperty;function a(e){return void 0===e}function o(e){return"[object Array]"===r.call(e)}function s(e){return"[object Object]"===r.call(e)}function l(e){var t=r.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function c(e){if(!o(e))throw new Error("must supply array")}function u(e,t){return i.call(e,t)}function p(e,n){var r;return n=w(n),d(e,function(e,t){if(n(e,t))return r=e,!1}),r}function d(e,t){var n;if(!a(e)){var r=o(e)?k:E;for(var i in e)if(u(e,i)&&!1===t(n=e[i],r(i)))return n}}function m(e,n,r){return d(e,function(e,t){r=n(r,e,t)}),r}function f(e,r){return!!m(e,function(e,t,n){return e&&r(t,n)},!0)}function h(e,n){var r=[];return d(e,function(e,t){r.push(n(e,t))}),r}function g(e){return e&&Object.keys(e)||[]}function v(e,r){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return r=x(r),d(e,function(e){var t=r(e)||"_",n=i[t];(n=n||(i[t]=[])).push(e)}),i}function y(t){t=x(t);for(var n={},e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return d(r,function(e){return v(e,t,n)}),h(n,function(e,t){return e[0]})}var b=y;function x(t){return l(t)?t:function(e){return e[t]}}function w(t){return l(t)?t:function(e){return e===t}}function E(e){return e}function k(e){return Number(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.flatten=function(e){return Array.prototype.concat.apply([],e)},n.find=p,n.findIndex=function(e,n){n=w(n);var r=o(e)?-1:void 0;return d(e,function(e,t){if(n(e,t))return r=t,!1}),r},n.filter=function(e,n){var r=[];return d(e,function(e,t){n(e,t)&&r.push(e)}),r},n.forEach=d,n.without=function(e,n){return a(e)?[]:(c(e),n=w(n),e.filter(function(e,t){return!n(e,t)}))},n.reduce=m,n.every=f,n.some=function(e,t){return!!p(e,t)},n.map=h,n.keys=g,n.size=function(e){return g(e).length},n.values=function(e){return h(e,function(e){return e})},n.groupBy=v,n.uniqueBy=y,n.unionBy=b,n.sortBy=function(e,a){a=x(a);var o=[];return d(e,function(e,t){for(var n=a(e,t),r={d:n,v:e},i=0;i<o.length;i++){if(n<o[i].d)return void o.splice(i,0,r)}o.push(r)}),h(o,function(e){return e.v})},n.matchPattern=function(e){return function(n){return f(e,function(e,t){return n[t]===e})}},n.debounce=function(n,r){var i,a,o,s;function t(){var e=Date.now(),t=s+r-e;if(0<t)return l(t);n.apply(o,a),i=s=a=o=void 0}function l(e){i=setTimeout(t,e)}return function(){s=Date.now();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a=t,o=this,i||l(r)}},n.throttle=function(e,t){var n=!1;return function(){n||(e.apply(void 0,arguments),n=!0,setTimeout(function(){n=!1},t))}},n.bind=function(e,t){return e.bind(t)},n.isUndefined=a,n.isDefined=function(e){return void 0!==e},n.isNil=function(e){return null==e},n.isArray=o,n.isObject=s,n.isNumber=function(e){return"[object Number]"===r.call(e)},n.isFunction=l,n.isString=function(e){return"[object String]"===r.call(e)},n.ensureArray=c,n.has=u,n.assign=function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return S.apply(void 0,[e].concat(n))},n.pick=function(t,e){var n={},r=Object(t);return d(e,function(e){e in r&&(n[e]=t[e])}),n},n.omit=function(e,n){var r={};return d(Object(e),function(e,t){-1===n.indexOf(t)&&(r[t]=e)}),r},n.merge=function r(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.length&&d(t,function(e){e&&s(e)&&d(e,function(e,t){if("__proto__"!==t){var n=i[t];s(e)?(s(n)||(n={}),i[t]=r(n,e)):i[t]=e}})}),i}},{}],257:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0});function r(e,t){if(i)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}var i=[].indexOf,a=/\s+/,o=Object.prototype.toString;function s(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}s.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},s.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},s.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},s.prototype.toggle=function(e,t){return this.list?void 0!==t&&t===this.list.toggle(e,t)||this.list.toggle(e):void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this},s.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(a);return""===e[0]&&e.shift(),e},s.prototype.has=s.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)};var l=Element.prototype,c=l.matchesSelector||l.webkitMatchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector,u=function(e,t){if(c)return c.call(e,t);for(var n=e.parentNode.querySelectorAll(t),r=0;r<n.length;++r)if(n[r]==e)return!0;return!1};function p(e,t,n){for(var r=n?e:e.parentNode;r&&r!==document;){if(u(r,t))return r;r=r.parentNode}}function d(e,t){if("string"!=typeof e)throw new TypeError("String expected");t=t||document;var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var r=n[1];if("body"==r){return(i=t.createElement("html")).innerHTML=e,i.removeChild(i.lastChild)}var i,a=w[r]||w._default,o=a[0],s=a[1],l=a[2];for((i=t.createElement("div")).innerHTML=s+e+l;o--;)i=i.lastChild;if(i.firstChild==i.lastChild)return i.removeChild(i.firstChild);for(var c=t.createDocumentFragment();i.firstChild;)c.appendChild(i.removeChild(i.firstChild));return c}var m,f=window.addEventListener?"addEventListener":"attachEvent",h=window.removeEventListener?"removeEventListener":"detachEvent",g="addEventListener"!=f?"on":"",v={bind:function(e,t,n,r){return e[f](g+t,n,r||!1),n},unbind:function(e,t,n,r){return e[h](g+t,n,r||!1),n}},y=["focus","blur"],b={bind:function(n,r,e,i,t){return-1!==y.indexOf(e)&&(t=!0),v.bind(n,e,function(e){var t=e.target||e.srcElement;e.delegateTarget=p(t,r,!0),e.delegateTarget&&i.call(n,e)},t)},unbind:function(e,t,n,r){-1!==y.indexOf(t)&&(r=!0),v.unbind(e,t,n,r)}},x=!1;"undefined"!=typeof document&&((m=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',x=!m.getElementsByTagName("link").length,m=void 0);var w={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:x?[1,"X<div>","</div>"]:[0,"",""]};w.td=w.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],w.option=w.optgroup=[1,'<select multiple="multiple">',"</select>"],w.thead=w.tbody=w.colgroup=w.caption=w.tfoot=[1,"<table>","</table>"],w.polyline=w.ellipse=w.polygon=w.circle=w.text=w.line=w.path=w.rect=w.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function E(e,t){if(!e||1!==e.nodeType)return!1;if(S)return S.call(e,t);for(var n=e.parentNode.querySelectorAll(t),r=0;r<n.length;r++)if(n[r]==e)return!0;return!1}var k="undefined"!=typeof Element?Element.prototype:{},S=k.matches||k.matchesSelector||k.webkitMatchesSelector||k.mozMatchesSelector||k.msMatchesSelector||k.oMatchesSelector;n.attr=function(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)},n.classes=function(e){return new s(e)},n.clear=function(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e},n.closest=p,n.delegate=b,n.domify=d,n.event=v,n.matches=E,n.query=function(e,t){return(t=t||document).querySelector(e)},n.queryAll=function(e,t){return(t=t||document).querySelectorAll(e)},n.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)}},{"core-js/modules/es.string.replace":188}],258:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0});var x=e("min-dash"),v=e("saxen"),w=e("moddle");function i(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var c={xsi:"http://www.w3.org/2001/XMLSchema-instance"},E="xsi:type";function l(e){return e.xml&&e.xml.serialize}function k(e){return l(e)===E}function S(e,t){return i(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function C(e){return new Error(e)}function A(e){return e.$descriptor}function y(e){x.assign(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw C("expected element");var t,n=this.elementsById,r=A(e).idProperty;if(r&&(t=e.get(r.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw C("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function r(){}function b(){}function a(){}function o(e,t){this.property=e,this.context=t}function s(e,t){this.element=t,this.propertyDesc=e}function u(){}function _(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function p(e,t,n){_.call(this,e,t,n)}function d(e,t,n){this.model=e,this.context=n}function m(e){e instanceof w.Moddle&&(e={model:e}),x.assign(this,{lax:!1},e)}r.prototype.handleEnd=function(){},r.prototype.handleText=function(){},r.prototype.handleNode=function(){},(b.prototype=Object.create(r.prototype)).handleNode=function(){return this},(a.prototype=Object.create(r.prototype)).handleText=function(e){this.body=(this.body||"")+e},(o.prototype=Object.create(a.prototype)).handleNode=function(e){if(this.element)throw C("expected no sub nodes");return this.element=this.createReference(e),this},o.prototype.handleEnd=function(){this.element.id=this.body},o.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},(s.prototype=Object.create(a.prototype)).handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=w.coerceType(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},(u.prototype=Object.create(a.prototype)).handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},(_.prototype=Object.create(u.prototype)).addReference=function(e){this.context.addReference(e)},_.prototype.handleText=function(e){if(!A(this.element).bodyProperty)throw C("unexpected body text <"+e+">");a.prototype.handleText.call(this,e)},_.prototype.handleEnd=function(){var e=this.body,t=this.element,n=A(t).bodyProperty;n&&void 0!==e&&(e=w.coerceType(n.type,e),t.set(n.name,e))},_.prototype.createElement=function(e){var i,t=e.attributes,n=this.type,a=A(n),o=this.context,s=new n({}),l=this.model;return x.forEach(t,function(e,t){var n,r=a.propertiesByName[t];r&&r.isReference?r.isMany?(n=e.split(" "),x.forEach(n,function(e){o.addReference({element:s,property:r.ns.name,id:e})})):o.addReference({element:s,property:r.ns.name,id:e}):(r?e=w.coerceType(r.type,e):"xmlns"!==t&&(i=w.parseNameNS(t,a.ns.prefix),l.getPackage(i.prefix)&&o.addWarning({message:"unknown attribute <"+t+">",element:s,property:t,value:e})),s.set(t,e))}),s},_.prototype.getPropertyForNode=function(e){var t,n,r,i,a,o,s,l,c,u,p,d=e.name,m=w.parseNameNS(d),f=this.type,h=this.model,g=A(f),v=m.name,y=g.propertiesByName[v];if(y&&!y.isAttr)return k(y)&&(t=e.attributes[E])?(r=t,i=h,u=w.parseNameNS(r),p=i.getPackage(u.prefix),o=p,s=(a=u).name,l=a.localName,t=(c=o.xml&&o.xml.typePrefix)&&0===l.indexOf(c)?a.prefix+":"+l.slice(c.length):s,n=h.getType(t),x.assign({},y,{effectiveType:A(n).name})):y;var b=h.getPackage(m.prefix);if(b){if(t=S(m,b),n=h.getType(t),y=x.find(g.properties,function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)}))return x.assign({},y,{effectiveType:A(n).name})}else if(y=x.find(g.properties,function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type}))return y;throw C("unrecognized element <"+m.name+">")},_.prototype.toString=function(){return"ElementDescriptor["+A(this.type).name+"]"},_.prototype.valueHandler=function(e,t){return new s(e,t)},_.prototype.referenceHandler=function(e){return new o(e,this.context)},_.prototype.handler=function(e){return new("Element"===e?d:_)(this.model,e,this.context)},_.prototype.handleChild=function(e){var t,n,r,i;if(t=this.getPropertyForNode(e),r=this.element,n=t.effectiveType||t.type,w.isSimpleType(n))return this.valueHandler(t,r);var a=(i=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==a&&(t.isMany?r.get(t.name).push(a):r.set(t.name,a),t.isReference?(x.assign(a,{element:r}),this.context.addReference(a)):a.$parent=r),i},(p.prototype=Object.create(_.prototype)).createElement=function(e){var t=e.name,n=w.parseNameNS(t),r=this.model,i=this.type,a=r.getPackage(n.prefix),o=a&&S(n,a)||t;if(!i.hasType(o))throw C("unexpected element <"+e.originalName+">");return _.prototype.createElement.call(this,e)},(d.prototype=Object.create(u.prototype)).createElement=function(e){var t=e.name,n=w.parseNameNS(t).prefix,r=e.ns[n+"$uri"],i=e.attributes;return this.model.createAny(t,r,i)},d.prototype.handleChild=function(e){var t=new d(this.model,0,this.context).handleNode(e),n=this.element,r=t.element;return void 0!==r&&((n.$children=n.$children||[]).push(r),r.$parent=n),t},d.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},m.prototype.fromXML=function(n,e,r){var i=e.rootHandler;e instanceof _?(i=e,e={}):"string"==typeof e?(i=this.handler(e),e={}):"string"==typeof i&&(i=this.handler(i));var t,a=this.model,o=this.lax,c=new y(x.assign({},e,{rootHandler:i})),s=new v.Parser({proxy:!0}),l=(t=[],Object.defineProperty(t,"peek",{value:function(){return this[this.length-1]}}),t);function u(e,t,n){var r=t(),i=r.line,a=r.column,o=r.data;"<"===o.charAt(0)&&-1!==o.indexOf(" ")&&(o=o.slice(0,o.indexOf(" "))+">");var s="unparsable content "+(o?o+" ":"")+"detected\n\tline: "+i+"\n\tcolumn: "+a+"\n\tnested error: "+e.message;if(n)return c.addWarning({message:s,error:e}),!0;throw C(s)}function p(e,t){return u(e,t,!0)}i.context=c,l.push(i);var d=/^<\?xml /i,m=/ encoding="([^"]+)"/i,f=/^utf-8$/i;function h(e,t){try{l.peek().handleText(e)}catch(e){p(e,t)}}var g=a.getPackages().reduce(function(e,t){return e[t.uri]=t.prefix,e},{});s.ns(g).on("openTag",function(e,r,t,n){var i=e.attrs||{},a=Object.keys(i).reduce(function(e,t){var n=r(i[t]);return e[t]=n,e},{});!function(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){u(e,t,o)&&l.push(new b)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},n)}).on("question",function(e){if(d.test(e)){var t=m.exec(e),n=t&&t[1];n&&!f.test(n)&&c.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}}).on("closeTag",function(){l.pop().handleEnd()}).on("cdata",h).on("text",function(e,t,n){var r,i;r=t(e),i=n,(r=r.trim())&&h(r,i)}).on("error",u).on("warn",p),setTimeout(function(){var t;try{s.parse(n),function(){var e,t,n=c.elementsById,r=c.references;for(e=0;t=r[e];e++){var i=t.element,a=n[t.id],o=A(i).propertiesByName[t.property];if(a||c.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),o.isMany){var s=i.get(o.name),l=s.indexOf(t);-1===l&&(l=s.length),a?s[l]=a:s.splice(l,1)}else i.set(o.name,a)}}()}catch(e){t=e}var e=i.element;t||e||(t=C("failed to parse document as <"+i.type.$descriptor.name+">")),r(t,t?void 0:e,c)},0)},m.prototype.handler=function(e){return new p(this.model,e)};var f=/<|>|'|"|&|\n\r|\n/g,h=/<|>|&/g;function g(t){var n={},r={},i={},a=[],o=[];this.byUri=function(e){return r[e]||t&&t.byUri(e)},this.add=function(e,t){r[e.uri]=e,t?a.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return n[e||"xmlns"]},this.mapPrefix=function(e,t){n[e||"xmlns"]=t},this.logUsed=function(e){var t=e.uri;i[t]=this.byUri(t)},this.getUsed=function(e){return[].concat(a,o).filter(function(e){return i[e.uri]})}}function T(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function M(e){return x.isString(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function D(e,t){return t.isGeneric?x.assign({localName:t.ns.localName},e):x.assign({localName:(n=t.ns.localName,i(t.$pkg)?(r=n).charAt(0).toLowerCase()+r.slice(1):n)},e);var n,r}var I={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},R={"<":"lt",">":"gt","&":"amp"};function N(e,t,n){return(e=x.isString(e)?e:""+e).replace(t,function(e){return"&"+n[e]+";"})}function P(e){this.tagName=e}function $(){}function O(e){this.tagName=e}function L(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function F(e,t){L.call(this,e,t)}function j(){this.value="",this.write=function(e){this.value+=e}}function B(t,e){var n=[""];this.append=function(e){return t.write(e),this},this.appendNewLine=function(){return e&&t.write("\n"),this},this.appendIndent=function(){return e&&t.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}P.prototype.build=function(e){return this.element=e,this},P.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()},$.prototype.serializeValue=$.prototype.serializeTo=function(e){e.append(this.escape?N(this.value,h,R):this.value)},$.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(h)&&(this.escape=!0),this},T(O,$),O.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()},L.prototype.build=function(e){var t,n,r,i,a,o,s=(this.element=e).$descriptor,l=this.propertyDescriptor,c=s.isGeneric;return t=c?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=l?this.nsPropertyTagName(l):this.nsTagName(s),this.tagName=this.addTagName(this.ns),c||(o=(a=e).$descriptor,n=x.filter(o.properties,function(e){var t=e.name;if(e.isVirtual)return!1;if(!a.hasOwnProperty(t))return!1;var n=a[t];return n!==e.default&&null!==n&&(!e.isMany||n.length)}),this.parseAttributes((i=n,x.filter(i,function(e){return e.isAttr}))),this.parseContainments((r=n,x.filter(r,function(e){return!e.isAttr})))),this.parseGenericAttributes(e,t),this},L.prototype.nsTagName=function(e){return D(this.logNamespaceUsed(e.ns),e)},L.prototype.nsPropertyTagName=function(e){var t,n,r=this.logNamespaceUsed(e.ns);return t=r,n=e,x.assign({localName:n.ns.localName},t)},L.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},L.prototype.nsAttributeName=function(e){var t;if(t=x.isString(e)?w.parseNameNS(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:x.assign({localName:t.localName},n)},L.prototype.parseGeneric=function(n){var r=this,i=this.body,a=[];return x.forEach(n,function(e,t){"$body"===t?i.push((new $).build({type:"String"},e)):"$children"===t?x.forEach(e,function(e){i.push(new L(r).build(e))}):0!==t.indexOf("$")&&r.parseNsAttribute(n,t,e)&&a.push({name:t,value:e})}),a},L.prototype.parseNsAttribute=function(e,t,n){var r,i=e.$model,a=w.parseNameNS(t);if("xmlns"===a.prefix&&(r={prefix:a.localName,uri:n}),a.prefix||"xmlns"!==a.localName||(r={uri:n}),!r)return{name:t,value:n};if(i&&i.getPackage(n))this.logNamespace(r,!0,!0);else{var o=this.logNamespaceUsed(r,!0);this.getNamespaces().logUsed(o)}},L.prototype.parseNsAttributes=function(r,e){var i=this,t=r.$attrs,a=[];return x.forEach(t,function(e,t){var n=i.parseNsAttribute(r,t,e);n&&a.push(n)}),a},L.prototype.parseGenericAttributes=function(n,e){var r=this;x.forEach(e,function(t){if(t.name!==E)try{r.addAttribute(r.nsAttributeName(t.name),t.value)}catch(e){console.warn("missing namespace information for ",t.name,"=",t.value,"on",n,e)}})},L.prototype.parseContainments=function(e){var a=this,o=this.body,s=this.element;x.forEach(e,function(n){var e=s.get(n.name),t=n.isReference;if(n.isMany||(e=[e]),n.isBody)o.push((new $).build(n,e[0]));else if(w.isSimpleType(n.type))x.forEach(e,function(e){o.push(new O(a.addTagName(a.nsPropertyTagName(n))).build(n,e))});else if(t)x.forEach(e,function(e){o.push(new P(a.addTagName(a.nsPropertyTagName(n))).build(e))});else{var r=k(n),i="property"===l(n);x.forEach(e,function(e){var t;t=r?new F(a,n):i?new L(a,n):new L(a),o.push(t.build(e))})}})},L.prototype.getNamespaces=function(e){var t,n=this.namespaces,r=this.parent;return n||(t=r&&r.getNamespaces(),e||!t?this.namespaces=n=new g(t):n=t),n},L.prototype.logNamespace=function(e,t,n){var r=this.getNamespaces(n),i=e.uri,a=e.prefix;return r.byUri(i)||r.add(e,t),r.mapPrefix(a,i),e},L.prototype.logNamespaceUsed=function(e,t){var n,r,i,a=this.element.$model,o=this.getNamespaces(t),s=e.prefix,l=e.uri;if(!s&&!l)return{localName:e.localName};if(i=c[s]||a&&(a.getPackage(s)||{}).uri,!(l=l||i||o.uriByPrefix(s)))throw new Error("no namespace uri given for prefix <"+s+">");if(!(e=o.byUri(l))){for(n=s,r=1;o.uriByPrefix(n);)n=s+"_"+r++;e=this.logNamespace({prefix:n,uri:l},i===l)}return s&&o.mapPrefix(s,l),e},L.prototype.parseAttributes=function(e){var r=this,i=this.element;x.forEach(e,function(e){var t=i.get(e.name);if(e.isReference)if(e.isMany){var n=[];x.forEach(t,function(e){n.push(e.id)}),t=n.join(" ")}else t=t.id;r.addAttribute(r.nsAttributeName(e),t)})},L.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),M(e)},L.prototype.addAttribute=function(e,t){var n=this.attrs;x.isString(t)&&(t=N(t,f,I)),n.push({name:e,value:t})},L.prototype.serializeAttributes=function(t){var e,n=this.attrs,r=this.namespaces;r&&(e=r,n=x.map(e.getUsed(),function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}).concat(n)),x.forEach(n,function(e){t.append(" ").append(M(e.name)).append('="').append(e.value).append('"')})},L.prototype.serializeTo=function(t){var e=this.body[0],n=e&&e.constructor!==$;t.appendIndent().append("<"+this.tagName),this.serializeAttributes(t),t.append(e?">":" />"),e&&(n&&t.appendNewLine().indent(),x.forEach(this.body,function(e){e.serializeTo(t)}),n&&t.unindent().appendIndent(),t.append("</"+this.tagName+">")),t.appendNewLine()},T(F,L),F.prototype.parseNsAttributes=function(e){var t=L.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var r=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var i=e.$model.getPackage(r.uri),a=i.xml&&i.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(E),(r.prefix?r.prefix+":":"")+a+n.ns.localName),t},F.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},n.Reader=m,n.Writer=function(i){return i=x.assign({format:!1,preamble:!0},i||{}),{toXML:function(e,t){var n=t||new j,r=new B(n,i.format);if(i.preamble&&r.append('<?xml version="1.0" encoding="UTF-8"?>\n'),(new L).build(e).serializeTo(r),!t)return n.value}}}},{"core-js/modules/es.string.replace":188,"min-dash":256,moddle:259,saxen:265}],259:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=e("min-dash");function o(){}function r(e,t){this.model=e,this.properties=t}o.prototype.get=function(e){return this.$model.properties.get(this,e)},o.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},r.prototype.createType=function(e){var t=this.model,n=this.properties,r=Object.create(o.prototype);s.forEach(e.properties,function(e){e.isMany||void 0===e.default||(r[e.name]=e.default)}),n.defineModel(r,t),n.defineDescriptor(r,e);var i=e.ns.name;function a(e){n.define(this,"$type",{value:i,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),s.forEach(e,s.bind(function(e,t){this.set(t,e)},this))}return a.prototype=r,a.hasType=r.$instanceOf=this.model.hasType,n.defineModel(a,t),n.defineDescriptor(a,e),a};var i={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},a={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e,10)}};function l(e){return!!i[e]}function c(e,t){var n,r,i=e.split(/:/);if(1===i.length)n=e,r=t;else{if(2!==i.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=i[1],r=i[0]}return{name:e=(r?r+":":"")+n,prefix:r,localName:n}}function u(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function p(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,s.forEach(e,s.bind(this.registerPackage,this))}function d(e,t,n){var r=t[n];if(r in e)throw new Error("package with "+n+" <"+r+"> already defined")}function m(e){this.model=e}function f(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function h(e){this.properties=new m(this),this.factory=new r(this,this.properties),this.registry=new p(e,this.properties),this.typeCache={}}u.prototype.build=function(){return s.pick(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},u.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var r=this.properties;void 0!==t?r.splice(t,0,e):r.push(e)},u.prototype.replaceProperty=function(e,t,n){var r=e.ns,i=this.properties,a=this.propertiesByName,o=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=i.indexOf(e);if(-1===s)throw new Error("property <"+r.name+"> not found in property list");i.splice(s,1),this.addProperty(t,n?void 0:s,o),a[r.name]=a[r.localName]=t},u.prototype.redefineProperty=function(e,t,n){var r=e.ns.prefix,i=t.split("#"),a=c(i[0],r),o=c(i[1],a.prefix).name,s=this.propertiesByName[o];if(!s)throw new Error("refined property <"+o+"> not found");this.replaceProperty(s,e,n),delete e.redefines},u.prototype.addNamedProperty=function(e,t){var n=e.ns,r=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),r[n.name]=r[n.localName]=e},u.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},u.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},u.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},u.prototype.assertNotDefined=function(e,t){var n=e.name,r=this.propertiesByName[n];if(r)throw new Error("property <"+n+"> already defined; override of <"+r.definedBy.ns.name+"#"+r.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},u.prototype.hasProperty=function(e){return this.propertiesByName[e]},u.prototype.addTrait=function(r,i){var e=this.allTypesByName,t=this.allTypes,n=r.name;n in e||(s.forEach(r.properties,s.bind(function(e){e=s.assign({},e,{name:e.ns.localName,inherited:i}),Object.defineProperty(e,"definedBy",{value:r});var t=e.replaces,n=e.redefines;t||n?this.redefineProperty(e,t||n,t):(e.isBody&&this.setBodyProperty(e),e.isId&&this.setIdProperty(e),this.addProperty(e))},this)),t.push(r),e[n]=r)},p.prototype.getPackage=function(e){return this.packageMap[e]},p.prototype.getPackages=function(){return this.packages},p.prototype.registerPackage=function(t){t=s.assign({},t);var e=this.packageMap;d(e,t,"prefix"),d(e,t,"uri"),s.forEach(t.types,s.bind(function(e){this.registerType(e,t)},this)),e[t.uri]=e[t.prefix]=t,this.packages.push(t)},p.prototype.registerType=function(e,t){var r=c((e=s.assign({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:s.assign(e.meta||{})})).name,t.prefix),n=r.name,i={};s.forEach(e.properties,s.bind(function(e){var t=c(e.name,r.prefix),n=t.name;l(e.type)||(e.type=c(e.type,t.prefix).name),s.assign(e,{ns:t,name:n}),i[n]=e},this)),s.assign(e,{ns:r,name:n,propertiesByName:i}),s.forEach(e.extends,s.bind(function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(n)},this)),this.definePackage(e,t),this.typeMap[n]=e},p.prototype.mapTypes=function(r,i,e){var t=l(r.name)?{name:r.name}:this.typeMap[r.name],a=this;function n(e){return o(e,!0)}function o(e,t){var n=c(e,l(e)?"":r.prefix);a.mapTypes(n,i,t)}if(!t)throw new Error("unknown type <"+r.name+">");s.forEach(t.superClass,e?n:o),i(t,!e),s.forEach(t.traits,n)},p.prototype.getEffectiveDescriptor=function(e){var t=c(e),n=new u(t);this.mapTypes(t,function(e,t){n.addTrait(e,t)});var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r},p.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},m.prototype.set=function(e,t,n){var r=this.model.getPropertyDescriptor(e,t),i=r&&r.name;void 0===n?r?delete e[i]:delete e.$attrs[t]:r?i in e?e[i]=n:f(e,r,n):e.$attrs[t]=n},m.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var r=n.name;return!e[r]&&n.isMany&&f(e,n,[]),e[r]},m.prototype.define=function(e,t,n){Object.defineProperty(e,t,n)},m.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},m.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},h.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},h.prototype.getType=function(e){var t=this.typeCache,n=s.isString(e)?e:e.ns.name,r=t[n];return r||(e=this.registry.getEffectiveDescriptor(n),r=t[n]=this.factory.createType(e)),r},h.prototype.createAny=function(e,t,n){var r=c(e),i={$type:e,$instanceOf:function(e){return e===this.$type}},a={name:e,isGeneric:!0,ns:{prefix:r.prefix,localName:r.localName,uri:t}};return this.properties.defineDescriptor(i,a),this.properties.defineModel(i,this),this.properties.define(i,"$parent",{enumerable:!1,writable:!0}),s.forEach(n,function(e,t){s.isObject(e)&&void 0!==e.value?i[e.name]=e.value:i[t]=e}),i},h.prototype.getPackage=function(e){return this.registry.getPackage(e)},h.prototype.getPackages=function(){return this.registry.getPackages()},h.prototype.getElementDescriptor=function(e){return e.$descriptor},h.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},h.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},h.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]},n.Moddle=h,n.coerceType=function(e,t){var n=a[e];return n?n(t):t},n.isBuiltInType=l,n.isSimpleType=function(e){return!!a[e]},n.parseNameNS=c},{"min-dash":256}],260:[function(e,u,t){"use strict";e("core-js/modules/es.string.replace"),function(e,r){if(e){for(var i,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},n={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},t=1;t<20;++t)a[111+t]="f"+t;for(t=0;t<=9;++t)a[t+96]=t.toString();w.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},w.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},w.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},w.prototype.reset=function(){return this._callbacks={},this._directMap={},this},w.prototype.stopCallback=function(e,t){if(-1<(" "+t.className+" ").indexOf(" mousetrap "))return!1;if(function e(t,n){return null!==t&&t!==r&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},w.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},w.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);i=null},(w.init=function(){var t=w(r);for(var e in t)"_"!==e.charAt(0)&&(w[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))})(),e.Mousetrap=w,void 0!==u&&u.exports&&(u.exports=w)}function o(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function y(e){if("keypress"!=e.type)return a[e.which]?a[e.which]:n[e.which]?n[e.which]:String.fromCharCode(e.which).toLowerCase();var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}function b(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function c(e,t,n){return"keypress"==(n=n||(function(){if(!i)for(var e in i={},a)95<e&&e<112||a.hasOwnProperty(e)&&(i[a[e]]=e);return i}()[e]?"keydown":"keypress"))&&t.length&&(n="keydown"),n}function x(e,t){var n,r,i,a,o=[];for(n="+"===(a=e)?["+"]:(a=a.replace(/\+{2}/g,"+plus")).split("+"),i=0;i<n.length;++i)r=n[i],l[r]&&(r=l[r]),t&&"keypress"!=t&&s[r]&&(r=s[r],o.push("shift")),b(r)&&o.push(r);return{key:r,modifiers:o,action:t=c(r,o,t)}}function w(e){var f=this;if(e=e||r,!(f instanceof w))return new w(e);f.target=e,f._callbacks={},f._directMap={};var l,h={},c=!1,u=!1,p=!1;function d(e){e=e||{};var t,n=!1;for(t in h)e[t]?n=!0:h[t]=0;n||(p=!1)}function m(e,t,n,r,i,a){var o,s,l,c,u=[],p=n.type;if(!f._callbacks[e])return[];for("keyup"==p&&b(e)&&(t=[e]),o=0;o<f._callbacks[e].length;++o)if(s=f._callbacks[e][o],(r||!s.seq||h[s.seq]==s.level)&&p==s.action&&("keypress"==p&&!n.metaKey&&!n.ctrlKey||(l=t,c=s.modifiers,l.sort().join(",")===c.sort().join(",")))){var d=!r&&s.combo==i,m=r&&s.seq==r&&s.level==a;(d||m)&&f._callbacks[e].splice(o,1),u.push(s)}return u}function g(e,t,n,r){var i,a;f.stopCallback(t,t.target||t.srcElement,n,r)||!1===e(t,n)&&((a=t).preventDefault?a.preventDefault():a.returnValue=!1,(i=t).stopPropagation?i.stopPropagation():i.cancelBubble=!0)}function t(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t,n,r=y(e);r&&("keyup"!=e.type||c!==r?f.handleKey(r,(n=[],(t=e).shiftKey&&n.push("shift"),t.altKey&&n.push("alt"),t.ctrlKey&&n.push("ctrl"),t.metaKey&&n.push("meta"),n),e):c=!1)}function s(t,e,n,r){function i(e){return function(){p=e,++h[t],clearTimeout(l),l=setTimeout(d,1e3)}}function a(e){g(n,e,t),"keyup"!==r&&(c=y(e)),setTimeout(d,10)}for(var o=h[t]=0;o<e.length;++o){var s=o+1===e.length?a:i(r||x(e[o+1]).action);v(e[o],s,r,t,o)}}function v(e,t,n,r,i){f._directMap[e+":"+n]=t;var a,o=(e=e.replace(/\s+/g," ")).split(" ");1<o.length?s(e,o,t,n):(a=x(e,n),f._callbacks[a.key]=f._callbacks[a.key]||[],m(a.key,a.modifiers,{type:a.action},r,e,i),f._callbacks[a.key][r?"unshift":"push"]({callback:t,modifiers:a.modifiers,action:a.action,seq:r,level:i,combo:e}))}f._handleKey=function(e,t,n){var r,i=m(e,t,n),a={},o=0,s=!1;for(r=0;r<i.length;++r)i[r].seq&&(o=Math.max(o,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=o)continue;s=!0,a[i[r].seq]=1,g(i[r].callback,n,i[r].combo,i[r].seq)}else s||g(i[r].callback,n,i[r].combo);var l="keypress"==n.type&&u;n.type!=p||b(e)||l||d(a),u=s&&"keydown"==n.type},f._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},o(e,"keypress",t),o(e,"keydown",t),o(e,"keyup",t)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},{"core-js/modules/es.string.replace":188}],261:[function(e,t,n){"use strict";t.exports=e("./lib/refs"),t.exports.Collection=e("./lib/collection")},{"./lib/collection":262,"./lib/refs":263}],262:[function(e,t,n){"use strict";t.exports.extend=function(e,r,t,i){var a=t.inverse;return Object.defineProperty(e,"remove",{value:function(e){var t=this.indexOf(e);return-1!==t&&(this.splice(t,1),r.unset(e,a,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,t){var n=this.indexOf(e);if(void 0===t){if(-1!==n)return;t=this.length}-1!==n&&this.splice(n,1),this.splice(t,0,e),-1===n&&r.set(e,a,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e},t.exports.isExtended=function(e){return!0===e.__refs_collection}},{}],263:[function(e,t,n){"use strict";var i=e("./collection");function s(t,n,r){var e=i.extend(r[n.name]||[],t,n,r);Object.defineProperty(r,n.name,{enumerable:n.enumerable,value:e}),e.length&&e.forEach(function(e){t.set(e,n.inverse,r)})}function r(e,t){if(!(this instanceof r))return new r(e,t);(e.inverse=t).inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}r.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}var n,r,i,a,o;t.collection?s(this,t,e):(n=this,i=e,a=(r=t).inverse,o=i[r.name],Object.defineProperty(i,r.name,{configurable:r.configurable,enumerable:r.enumerable,get:function(){return o},set:function(e){if(e!==o){var t=o;o=null,t&&n.unset(t,a,i),o=e,n.set(o,a,i)}}}))},r.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return i.isExtended(n)||s(this,t,e),n},r.prototype.ensureBound=function(e,t){var n,r;n=e,r=t,Object.prototype.hasOwnProperty.call(n,r.name||r)||this.bind(e,t)},r.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},r.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)},t.exports=r},{"./collection":262}],264:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace");var l="hasOwnProperty",i=/,?([a-z]),?/gi,x=parseFloat,q=Math,H=q.PI,E=q.min,k=q.max,y=q.pow,G=q.abs,b=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,w=/(-?\d*\.?\d*(?:e[-+]?\\d+)?)[\s]*,?[\s]*/gi;function S(e,t){return"finite"==(t=String.prototype.toLowerCase.call(t))?isFinite(e):"array"==t&&(e instanceof Array||Array.isArray&&Array.isArray(e))||("null"==t&&null===e||t==r(e)&&null!==e||"object"==t&&e===Object(e)||Object.prototype.toString.call(e).slice(8,-1).toLowerCase()==t)}function C(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)e[l](n)&&(t[n]=C(e[n]));return t}function W(a,o,s){return function e(){var t=Array.prototype.slice.call(arguments,0),n=t.join("␀"),r=e.cache=e.cache||{},i=e.count=e.count||[];return r[l](n)?function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}(i,n):(1e3<=i.length&&delete r[i.shift()],i.push(n),r[n]=a.apply(o,t)),s?s(r[n]):r[n]}}function A(t){var n=A.ps=A.ps||{};return n[t]?n[t].sleep=100:n[t]={sleep:100},setTimeout(function(){for(var e in n)n[l](e)&&e!=t&&(n[e].sleep--,n[e].sleep||delete n[e])}),n[t]}function _(e,t,n,r){return null==e&&(e=t=n=r=0),null==t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:q.min(n,r)/2,r2:q.max(n,r)/2,r0:q.sqrt(n*n+r*r)/2,path:function(e,t,n,r,i){if(i)return[["M",+e+ +i,t],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.toString=T,a}(e,t,n,r),vb:[e,t,n,r].join(" ")}}function T(){return this.join(",").replace(i,"$1")}function M(e){var t=C(e);return t.toString=T,t}function D(e,t,n,r,i,a,o,s,l){var c=1-l,u=y(c,3),p=y(c,2),d=l*l,m=d*l,f=e+2*l*(n-e)+d*(i-2*n+e),h=t+2*l*(r-t)+d*(a-2*r+t),g=n+2*l*(i-n)+d*(o-2*i+n),v=r+2*l*(a-r)+d*(s-2*a+r);return{x:u*e+3*p*l*n+3*c*l*l*i+m*o,y:u*t+3*p*l*r+3*c*l*l*a+m*s,m:{x:f,y:h},n:{x:g,y:v},start:{x:c*e+l*n,y:c*t+l*r},end:{x:c*i+l*o,y:c*a+l*s},alpha:90-180*q.atan2(f-g,h-v)/H}}function I(e,t,n,r,i,a,o,s){S(e,"array")||(e=[e,t,n,r,i,a,o,s]);var l=function(e,t,n,r,i,a,o,s){for(var l,c,u,p,d,m,f,h,g=[],v=[[],[]],y=0;y<2;++y)if(u=0==y?(c=6*e-12*n+6*i,l=-3*e+9*n-9*i+3*o,3*n-3*e):(c=6*t-12*r+6*a,l=-3*t+9*r-9*a+3*s,3*r-3*t),G(l)<1e-12){if(G(c)<1e-12)continue;0<(p=-u/c)&&p<1&&g.push(p)}else f=c*c-4*u*l,h=q.sqrt(f),f<0||(0<(d=(-c+h)/(2*l))&&d<1&&g.push(d),0<(m=(-c-h)/(2*l))&&m<1&&g.push(m));var b,x=g.length,w=x;for(;x--;)p=g[x],b=1-p,v[0][x]=b*b*b*e+3*b*b*p*n+3*b*p*p*i+p*p*p*o,v[1][x]=b*b*b*t+3*b*b*p*r+3*b*p*p*a+p*p*p*s;return v[0][w]=e,v[1][w]=t,v[0][w+1]=o,v[1][w+1]=s,v[0].length=v[1].length=w+2,{min:{x:E.apply(0,v[0]),y:E.apply(0,v[1])},max:{x:k.apply(0,v[0]),y:k.apply(0,v[1])}}}.apply(null,e);return _(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function R(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function N(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}function P(e,t,n,r,i,a,o,s,l){null==l&&(l=1);for(var c=(l=1<l?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,m=0;m<12;m++){var f=c*u[m]+c,h=N(f,e,n,i,o),g=N(f,t,r,a,s),v=h*h+g*g;d+=p[m]*q.sqrt(v)}return c*d}function $(e,t,n,r,i,a,o,s){if(!(k(e,n)<E(i,o)||E(e,n)>k(i,o)||k(t,r)<E(a,s)||E(t,r)>k(a,s))){var l=(e-n)*(a-s)-(t-r)*(i-o);if(l){var c=((e*r-t*n)*(i-o)-(e-n)*(i*s-a*o))/l,u=((e*r-t*n)*(a-s)-(t-r)*(i*s-a*o))/l,p=+c.toFixed(2),d=+u.toFixed(2);if(!(p<+E(e,n).toFixed(2)||p>+k(e,n).toFixed(2)||p<+E(i,o).toFixed(2)||p>+k(i,o).toFixed(2)||d<+E(t,r).toFixed(2)||d>+k(t,r).toFixed(2)||d<+E(a,s).toFixed(2)||d>+k(a,s).toFixed(2)))return{x:c,y:u}}}}function O(e,t,n){var r,i,a=I(e),o=I(t);if(i=o,r=_(r=a),!(R(i=_(i),r.x,r.y)||R(i,r.x2,r.y)||R(i,r.x,r.y2)||R(i,r.x2,r.y2)||R(r,i.x,i.y)||R(r,i.x2,i.y)||R(r,i.x,i.y2)||R(r,i.x2,i.y2)||(r.x<i.x2&&r.x>i.x||i.x<r.x2&&i.x>r.x)&&(r.y<i.y2&&r.y>i.y||i.y<r.y2&&i.y>r.y)))return n?0:[];for(var s=~~(P.apply(0,e)/5),l=~~(P.apply(0,t)/5),c=[],u=[],p={},d=n?0:[],m=0;m<1+s;m++){var f=D.apply(0,e.concat(m/s));c.push({x:f.x,y:f.y,t:m/s})}for(m=0;m<1+l;m++)f=D.apply(0,t.concat(m/l)),u.push({x:f.x,y:f.y,t:m/l});for(m=0;m<s;m++)for(var h=0;h<l;h++){var g=c[m],v=c[m+1],y=u[h],b=u[h+1],x=G(v.x-g.x)<.01?"y":"x",w=G(b.x-y.x)<.01?"y":"x",E=$(g.x,g.y,v.x,v.y,y.x,y.y,b.x,b.y);if(E){if(p[E.x.toFixed(0)]==E.y.toFixed(0))continue;p[E.x.toFixed(0)]=E.y.toFixed(0);var k=g.t+G((E[x]-g[x])/(v[x]-g[x]))*(v.t-g.t),S=y.t+G((E[w]-y[w])/(b[w]-y[w]))*(b.t-y.t);0<=k&&k<=1&&0<=S&&S<=1&&(n?d++:d.push({x:E.x,y:E.y,t1:k,t2:S}))}}return d}function L(e,t,n,r,i){if(null==i&&null==r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!=i)var a=Math.PI/180,o=e+n*Math.cos(-r*a),s=e+n*Math.cos(-i*a),l=[["M",o,t+n*Math.sin(-r*a)],["A",n,n,0,+(180<i-r),0,s,t+n*Math.sin(-i*a)]];else l=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return l.toString=T,l}function F(e){var t=A(e);if(t.abs)return M(t.abs);if(S(e,"array")&&S(e&&e[0],"array")||(e=function(e){if(!e)return null;var t=A(e);if(t.arr)return C(t.arr);var a={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},o=[];return S(e,"array")&&S(e[0],"array")&&(o=C(e)),o.length||String(e).replace(b,function(e,t,n){var r=[],i=t.toLowerCase();if(n.replace(w,function(e,t){t&&r.push(+t)}),"m"==i&&2<r.length&&(o.push([t].concat(r.splice(0,2))),i="l",t="m"==t?"l":"L"),"o"==i&&1==r.length&&o.push([t,r[0]]),"r"==i)o.push([t].concat(r));else for(;r.length>=a[i]&&(o.push([t].concat(r.splice(0,a[i]))),a[i]););}),o.toString=A.toString,t.arr=C(o),o}(e)),!e||!e.length)return[["M",0,0]];var n,r=[],i=0,a=0,o=0,s=0,l=0;"M"==e[0][0]&&(o=i=+e[0][1],s=a=+e[0][2],l++,r[0]=["M",i,a]);for(var c,u,p=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),d=l,m=e.length;d<m;d++){if(r.push(c=[]),(n=(u=e[d])[0])!=n.toUpperCase())switch(c[0]=n.toUpperCase(),c[0]){case"A":c[1]=u[1],c[2]=u[2],c[3]=u[3],c[4]=u[4],c[5]=u[5],c[6]=+u[6]+i,c[7]=+u[7]+a;break;case"V":c[1]=+u[1]+a;break;case"H":c[1]=+u[1]+i;break;case"R":for(var f=[i,a].concat(u.slice(1)),h=2,g=f.length;h<g;h++)f[h]=+f[h]+i,f[++h]=+f[h]+a;r.pop(),r=r.concat(V(f,p));break;case"O":r.pop(),(f=L(i,a,u[1],u[2])).push(f[0]),r=r.concat(f);break;case"U":r.pop(),r=r.concat(L(i,a,u[1],u[2],u[3])),c=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+u[1]+i,s=+u[2]+a;default:for(h=1,g=u.length;h<g;h++)c[h]=+u[h]+(h%2?i:a)}else if("R"==n)f=[i,a].concat(u.slice(1)),r.pop(),r=r.concat(V(f,p)),c=["R"].concat(u.slice(-2));else if("O"==n)r.pop(),(f=L(i,a,u[1],u[2])).push(f[0]),r=r.concat(f);else if("U"==n)r.pop(),r=r.concat(L(i,a,u[1],u[2],u[3])),c=["U"].concat(r[r.length-1].slice(-2));else for(var v=0,y=u.length;v<y;v++)c[v]=u[v];if("O"!=(n=n.toUpperCase()))switch(c[0]){case"Z":i=+o,a=+s;break;case"H":i=c[1];break;case"V":a=c[1];break;case"M":o=c[c.length-2],s=c[c.length-1];default:i=c[c.length-2],a=c[c.length-1]}}return r.toString=T,t.abs=M(r),r}function j(e,t,n,r){return[e,t,n,r,n,r]}function B(e,t,n,r,i,a){return[1/3*e+2/3*n,1/3*t+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]}function V(e,t){for(var n=[],r=0,i=e.length;r<i-2*!t;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4==r?a[3]={x:+e[0],y:+e[1]}:i-2==r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4==r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}function U(e,t){var n=!t&&A(e);if(!t&&n.curve)return M(n.curve);for(var a=F(e),o=t&&F(t),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(function e(t,n,r,i,a,o,s,l,c,u){var p,d=120*H/180,m=H/180*(+a||0),f=[],h=W(function(e,t,n){return{x:e*q.cos(n)-t*q.sin(n),y:e*q.sin(n)+t*q.cos(n)}});if(u)S=u[0],C=u[1],E=u[2],k=u[3];else{t=(p=h(t,n,-m)).x,n=p.y;var g=(t-(l=(p=h(l,c,-m)).x))/2,v=(n-(c=p.y))/2,y=g*g/(r*r)+v*v/(i*i);1<y&&(r*=y=q.sqrt(y),i*=y);var b=r*r,x=i*i,w=(o==s?-1:1)*q.sqrt(G((b*x-b*v*v-x*g*g)/(b*v*v+x*g*g))),E=w*r*v/i+(t+l)/2,k=w*-i*g/r+(n+c)/2,S=q.asin(((n-k)/i).toFixed(9)),C=q.asin(((c-k)/i).toFixed(9));(S=t<E?H-S:S)<0&&(S=2*H+S),(C=l<E?H-C:C)<0&&(C=2*H+C),s&&C<S&&(S-=2*H),!s&&S<C&&(C-=2*H)}var A=C-S;if(G(A)>d){var _=C,T=l,M=c;C=S+d*(s&&S<C?1:-1),f=e(l=E+r*q.cos(C),c=k+i*q.sin(C),r,i,a,0,s,T,M,[C,_,E,k])}A=C-S;var D=q.cos(S),I=q.sin(S),R=q.cos(C),N=q.sin(C),P=q.tan(A/4),$=4/3*r*P,O=4/3*i*P,L=[t,n],F=[t+$*I,n-O*D],j=[l+$*N,c-O*R],B=[l,c];if(F[0]=2*L[0]-F[0],F[1]=2*L[1]-F[1],u)return[F,j,B].concat(f);for(var V=[],U=0,z=(f=[F,j,B].concat(f).join().split(",")).length;U<z;U++)V[U]=U%2?h(f[U-1],f[U],m).y:h(f[U],f[U+1],m).x;return V}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":i="C"==n||"S"==n?(r=2*t.x-t.bx,2*t.y-t.by):(r=t.x,t.y),e=["C",r,i].concat(e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"].concat(B(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(B(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(j(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(j(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(j(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(j(t.x,t.y,t.X,t.Y))}return e},l=function(e,t){if(7<e[t].length){e[t].shift();for(var n=e[t];n.length;)u[t]="A",o&&(p[t]="A"),e.splice(t++,0,["C"].concat(n.splice(0,6)));e.splice(t,1),h=k(a.length,o&&o.length||0)}},c=function(e,t,n,r,i){e&&t&&"M"==e[i][0]&&"M"!=t[i][0]&&(t.splice(i,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=e[i][1],n.y=e[i][2],h=k(a.length,o&&o.length||0))},u=[],p=[],d="",m="",f=0,h=k(a.length,o&&o.length||0);f<h;f++){a[f]&&(d=a[f][0]),"C"!=d&&(u[f]=d,f&&(m=u[f-1])),a[f]=s(a[f],r,m),"A"!=u[f]&&"C"==d&&(u[f]="C"),l(a,f),o&&(o[f]&&(d=o[f][0]),"C"!=d&&(p[f]=d,f&&(m=p[f-1])),o[f]=s(o[f],i,m),"A"!=p[f]&&"C"==d&&(p[f]="C"),l(o,f)),c(a,o,r,i,f),c(o,a,i,r,f);var g=a[f],v=o&&o[f],y=g.length,b=o&&v.length;r.x=g[y-2],r.y=g[y-1],r.bx=x(g[y-4])||r.x,r.by=x(g[y-3])||r.y,i.bx=o&&(x(v[b-4])||i.x),i.by=o&&(x(v[b-3])||i.y),i.x=o&&v[b-2],i.y=o&&v[b-1]}return o||(n.curve=M(a)),o?[a,o]:a}t.exports=function(e,t,n){e=U(e),t=U(t);for(var r,i,a,o,s,l,c,u,p,d,m=n?0:[],f=0,h=e.length;f<h;f++){var g=e[f];if("M"==g[0])r=s=g[1],i=l=g[2];else{i="C"==g[0]?(r=(p=[r,i].concat(g.slice(1)))[6],p[7]):(p=[r,i,r,i,s,l,s,l],r=s,l);for(var v=0,y=t.length;v<y;v++){var b=t[v];if("M"==b[0])a=c=b[1],o=u=b[2];else{o="C"==b[0]?(a=(d=[a,o].concat(b.slice(1)))[6],d[7]):(d=[a,o,a,o,c,u,c,u],a=c,u);var x=O(p,d,n);if(n)m+=x;else{for(var w=0,E=x.length;w<E;w++)x[w].segment1=f,x[w].segment2=v,x[w].bez1=p,x[w].bez2=d;m=m.concat(x)}}}}}return m}},{"core-js/modules/es.string.replace":188}],265:[function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0});var i=String.fromCharCode,o=Object.prototype.hasOwnProperty,r=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,s={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function l(e,t,n,r){return r?o.call(s,r)?s[r]:"&"+r+";":i(t||parseInt(n,16))}function L(e){return 3<e.length&&-1!==e.indexOf("&")?e.replace(r,l):e}Object.keys(s).forEach(function(e){s[e.toUpperCase()]=s[e]});var c="http://www.w3.org/2001/XMLSchema-instance",u="xsi",F="xsi:type",j="non-whitespace outside of root node";function p(e){return new Error(e)}function B(e){return"missing namespace for prefix <"+e+">"}function V(e){return{get:e,enumerable:!0}}function U(e){var t,n={};for(t in e)n[t]=e[t];return n}function z(e){return e+"$uri"}function d(){return{line:0,column:0}}function m(e){throw e}n.Parser=function e(t){if(!this)return new e(t);var v,k,S,C,n,A,_,T,M,D=t&&t.proxy,r=m,I=d,R=!1,N=!1,i=null,P=!1;function $(e){e instanceof Error||(e=p(e)),r(i=e,I)}function O(e){n&&(e instanceof Error||(e=p(e)),n(e,I))}this.on=function(e,t){if("function"!=typeof t)throw p("required args <name, cb>");switch(e){case"openTag":k=t;break;case"text":v=t;break;case"closeTag":S=t;break;case"error":r=t;break;case"warn":n=t;break;case"cdata":C=t;break;case"attention":T=t;break;case"question":_=t;break;case"comment":A=t;break;default:throw p("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!==a(e))throw p("required args <nsMap={}>");var t,n={};for(t in e)n[t]=e[t];return n[c]=u,N=!0,M=n,this},this.parse=function(e){if("string"!=typeof e)throw p("required args <xml=string>");return i=null,function(o){var e,t,n,r,i,a,s,l,c,y,u=N?[]:null,b=N?function(e){var t,n,r={};for(t in e)r[n=e[t]]=n,r[z(n)]=t;return r}(M):null,p=[],x=0,d=!1,m=!1,f=0,h=0,w="",E=0;function g(){if(null!==y)return y;var e,t,n,r,i,a,o,s,l,c,u,p=N&&b.xmlns,d=N&&R?[]:null,m=E,f=w,h=f.length,g={},v={};e:for(;m<h;m++)if(l=!1,!(32===(c=f.charCodeAt(m))||c<14&&8<c)){for((c<65||122<c||90<c&&c<97)&&95!==c&&58!==c&&(O("illegal first char attribute name"),l=!0),u=m+1;u<h;u++)if(!(96<(c=f.charCodeAt(u))&&c<123||64<c&&c<91||47<c&&c<59||46===c||45===c||95===c)){if(32===c||c<14&&8<c){O("missing attribute value"),m=u;continue e}if(61===c)break;O("illegal attribute name char"),l=!0}if("xmlns:xmlns"===(s=f.substring(m,u))&&(O("illegal declaration of xmlns"),l=!0),34===(c=f.charCodeAt(u+1)))-1===(u=f.indexOf('"',m=u+2))&&-1!==(u=f.indexOf("'",m))&&(O("attribute value quote missmatch"),l=!0);else if(39===c)-1===(u=f.indexOf("'",m=u+2))&&-1!==(u=f.indexOf('"',m))&&(O("attribute value quote missmatch"),l=!0);else for(O("missing attribute value quotes"),l=!0,u+=1;u<h&&!(32===(c=f.charCodeAt(u+1))||c<14&&8<c);u++);for(-1===u&&(O("missing closing quotes"),u=h,l=!0),l||(a=f.substring(m,u)),m=u;u+1<h&&!(32===(c=f.charCodeAt(u+1))||c<14&&8<c);u++)m===u&&(O("illegal character after attribute end"),l=!0);if(m=u+1,!l)if(s in v)O("attribute <"+s+"> already defined");else if(v[s]=!0,N)if(R){if(null!==(i="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=L(a),t=z(i),!(o=M[e])){if("xmlns"===i||t in b&&b[t]!==e)for(;o="ns"+x++,void 0!==b[o];);else o=i;M[e]=o}b[i]!==o&&(r||(b=U(b),r=!0),b[i]=o,"xmlns"===i&&(b[z(o)]=e,p=o),b[t]=e),g[s]=a;continue}d.push(s,a)}else-1!==(c=s.indexOf(":"))?(n=b[s.substring(0,c)])?((s=p===n?s.substr(c+1):n+s.substr(c))===F&&(a=-1!==(c=a.indexOf(":"))?(n=a.substring(0,c),(n=b[n]||n)+a.substring(c)):p+":"+a),g[s]=a):O(B(s.substring(0,c))):g[s]=a;else g[s]=a}if(R)for(m=0,h=d.length;m<h;m++){if(s=d[m++],a=d[m],-1!==(c=s.indexOf(":"))){if(!(n=b[s.substring(0,c)])){O(B(s.substring(0,c)));continue}(s=p===n?s.substr(c+1):n+s.substr(c))===F&&(a=-1!==(c=a.indexOf(":"))?(n=a.substring(0,c),(n=b[n]||n)+a.substring(c)):p+":"+a)}g[s]=a}return y=g}for(I=function(){for(var e,t=/(\r\n|\r|\n)/g,n=0,r=0,i=0,a=h;i<=f&&(e=t.exec(o))&&(a=e[0].length+e.index,!(f<a));)n+=1,i=a;return{data:-1==f?(r=a,o.substring(h)):0===h?(console.log(f-i),o.substring(h,f)):(r=f-i,-1==h?o.substring(f):o.substring(f,h+1)),line:n,column:r}},D&&(c=Object.create({},{name:V(function(){return s}),originalName:V(function(){return l}),attrs:V(g),ns:V(function(){return b})}));-1!==h;){if(-1===(f=60===o.charCodeAt(h)?h:o.indexOf("<",h)))return p.length?$("unexpected end of file"):0===h?$("missing start tag"):h<o.length&&o.substring(h).trim()&&O(j);if(h!==f)if(p.length){if(v&&(v(o.substring(h,f),L,I),P))return}else if(o.substring(h,f).trim()&&(O(j),P))return;if(33!==(i=o.charCodeAt(f+1)))if(63!==i){if(-1==(h=o.indexOf(">",f+1)))return $("unclosed tag");if(y={},47===i){if(m=!(d=!1),!p.length)return $("missing open tag");if(t=s=p.pop(),r=f+2+t.length,o.substring(f+2,r)!==t)return $("closing tag mismatch");for(;r<h;r++)if(!(32===(i=o.charCodeAt(r))||8<i&&i<14))return $("close tag")}else{if(m=47===o.charCodeAt(h-1)?(t=s=o.substring(f+1,h-1),d=!0):(t=s=o.substring(f+1,h),!(d=!0)),!(96<i&&i<123||64<i&&i<91||95===i||58===i))return $("illegal first char nodeName");for(r=1,n=t.length;r<n;r++)if(!(96<(i=t.charCodeAt(r))&&i<123||64<i&&i<91||47<i&&i<59||45===i||95===i||46==i)){if(32===i||i<14&&8<i){s=t.substring(0,r),y=null;break}return $("invalid nodeName")}m||p.push(s)}if(N){if(e=b,d&&(m||u.push(e),null===y&&(R=-1!==t.indexOf("xmlns",r))&&(E=r,w=t,g(),R=!1)),-1!==(i=(l=s).indexOf(":"))){if(!(a=b[s.substring(0,i)]))return $("missing namespace on <"+l+">");s=s.substr(i+1)}else a=b.xmlns;a&&(s=a+":"+s)}if(d&&(E=r,w=t,k&&(D?k(c,L,m,I):k(s,g,L,m,I),P)))return;if(m){if(S&&(S(D?c:s,L,d,I),P))return;N&&(b=d?e:u.pop())}h+=1}else{if(-1===(h=o.indexOf("?>",f)))return $("unclosed question");if(_&&(_(o.substring(f,h+2),I),P))return;h+=2}else{if(91===(i=o.charCodeAt(f+2))&&"CDATA["===o.substr(f+3,6)){if(-1===(h=o.indexOf("]]>",f)))return $("unclosed cdata");if(C&&(C(o.substring(f+9,h),I),P))return;h+=3;continue}if(45===i&&45===o.charCodeAt(f+3)){if(-1===(h=o.indexOf("--\x3e",f)))return $("unclosed comment");if(A&&(A(o.substring(f+4,h),L,I),P))return;h+=3;continue}if(-1===(h=o.indexOf(">",f+1)))return $("unclosed tag");if(T&&(T(o.substring(f,h+1),L,I),P))return;h+=1}}}(e),I=d,P=!1,i},this.stop=function(){P=!0}},n.decode=L},{"core-js/modules/es.string.replace":188}],266:[function(e,t,n){"use strict";function r(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}function o(e,t){return t.appendChild(r(e,t))}e("core-js/modules/es.string.replace"),Object.defineProperty(n,"__esModule",{value:!0});var a=2,s={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":a,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":a,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function l(e,t,n){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=s[r];i?(i===a&&"number"==typeof n&&(n=String(n)+"px"),e.style[r]=n):e.setAttributeNS(null,t,n)}function i(e,t,n){if("string"==typeof t){if(void 0===n)return r=e,s[i=t]?r.style[i]:r.getAttributeNS(null,i);l(e,t,n)}else!function(e,t){var n,r,i=Object.keys(t);for(n=0;r=i[n];n++)l(e,r,t[r])}(e,t);var r,i;return e}function c(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}var u=/\s+/,p=Object.prototype.toString;function d(e){return void 0!==e}function m(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function f(e){var t=e.parentNode;return t&&t.removeChild(e),e}function h(e){for(var t;t=e.firstChild;)f(t);return e}m.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~c(t,e)||t.push(e),d(this.el.className.baseVal)?this.el.className.baseVal=t.join(" "):this.el.className=t.join(" "),this},m.prototype.remove=function(e){if("[object RegExp]"===p.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=c(t,e);return~n&&t.splice(n,1),this.el.className.baseVal=t.join(" "),this},m.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},m.prototype.toggle=function(e,t){return this.list?d(t)&&t===this.list.toggle(e,t)||this.list.toggle(e):d(t)?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this},m.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(u);return""===e[0]&&e.shift(),e},m.prototype.has=m.prototype.contains=function(e){return this.list?this.list.contains(e):!!~c(this.array(),e)};var g={svg:"http://www.w3.org/2000/svg"},v='<svg xmlns="'+g.svg+'"';function y(e){var t=!1;"<svg"===e.substring(0,4)?-1===e.indexOf(g.svg)&&(e=v+e.substring(4)):(e=v+">"+e+"</svg>",t=!0);var n,r,i=(n=e,(r=new DOMParser).async=!1,r.parseFromString(n,"text/xml"));if(!t)return i;for(var a=document.createDocumentFragment(),o=i.firstChild;o.firstChild;)a.appendChild(o.firstChild);return a}function b(e,t){var n;return n="<"===e.charAt(0)?(n=y(e).firstChild,document.importNode(n,!0)):document.createElementNS(g.svg,e),t&&i(n,t),n}var x=b("svg");function w(e,t){var n,r,i=Object.keys(t);for(n=0;r=i[n];n++)e[r]=t[r];return e}var E=/([&<>]{1})/g,k=/([\n\r"]{1})/g,S={"&":"&","<":"<",">":">",'"':"'"};function C(e,t){return e.replace(t,function(e,t){return S[t]||t})}function A(e,t){var n,r,i,a,o;switch(e.nodeType){case 3:t.push(C(e.textContent,E));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,r=(i=e.attributes).length;n<r;++n)a=i.item(n),t.push(" ",a.name,'="',C(a.value,k),'"');if(e.hasChildNodes()){for(t.push(">"),n=0,r=(o=e.childNodes).length;n<r;++n)A(o.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("\x3c!--",C(e.nodeValue,E),"--\x3e");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function _(e,t){var n=y(t);if(h(e),t){"#document-fragment"!==n.nodeName&&(n=n.documentElement);for(var r,i=(r=n.childNodes,Array.prototype.slice.call(r)),a=0;a<i.length;a++)o(i[a],e)}}function T(e,t){return t.insertBefore(r(e,t),t.firstChild||null)}n.append=function(e,t){return o(t,e),e},n.appendTo=o,n.attr=i,n.classes=function(e){return new m(e)},n.clear=h,n.clone=function(e){return e.cloneNode(!0)},n.create=b,n.innerSVG=function(e,t){if(void 0===t)return function(e){for(var t=e.firstChild,n=[];t;)A(t,n),t=t.nextSibling;return n.join("")}(e);try{_(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e},n.prepend=function(e,t){return T(t,e),e},n.prependTo=T,n.remove=f,n.replace=function(e,t){return e.parentNode.replaceChild(r(t,e),e),t},n.transform=function(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,r,i,a;for(e.clear(),n=0;r=t[n];n++)e.appendItem((i=e,(a=r)instanceof SVGMatrix?i.createSVGTransformFromMatrix(a):a))}(n,t)),n.consolidate()},n.on=function(e,t,n,r){e.addEventListener(t,n,r)},n.off=function(e,t,n,r){e.removeEventListener(t,n,r)},n.createPoint=function(e,t){var n=x.createSVGPoint();switch(arguments.length){case 0:return n;case 2:e={x:e,y:t}}return w(n,e)},n.createMatrix=function(e,t,n,r,i,a){var o=x.createSVGMatrix();switch(arguments.length){case 0:return o;case 1:return w(o,e);case 6:return w(o,{a:e,b:t,c:n,d:r,e:i,f:a})}},n.createTransform=function(e){return e?x.createSVGTransformFromMatrix(e):x.createSVGTransform()},n.select=function(e,t){return e.querySelector(t)},n.selectAll=function(e,t){var n=e.querySelectorAll(t);return[].map.call(n,function(e){return e})}},{"core-js/modules/es.string.replace":188}],267:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'\x3c!-- CE # camunda-bpm-webapp/ui/common/scripts/module/components/cam-pagination.html --\x3e\r\n<ul uib-pagination ng-if="Pagination.total > Pagination.pages.size"\r\n class="pagination-sm"\r\n\r\n page="Pagination.pages.current"\r\n ng-model="Pagination.pages.current"\r\n\r\n total-items="Pagination.total"\r\n items-per-page="Pagination.pages.size"\r\n\r\n max-size="7"\r\n boundary-links="true"></ul>\r\n\x3c!-- CE / camunda-bpm-webapp/ui/common/scripts/module/components/cam-pagination.html --\x3e\r\n',controller:"CamPaginationController as Pagination",scope:{total:"=",onPaginationChange:"&camPagination"}}}},{}],268:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",transclude:!0,template:'<div cam-widget-search\r\n cam-widget-search-total="Searchable.pages.total"\r\n cam-widget-search-size="Searchable.pages.size"\r\n cam-widget-search-valid-searches="Searchable.config.searches"\r\n cam-widget-search-translations="Searchable.config.tooltips"\r\n cam-widget-search-types="Searchable.config.types"\r\n cam-widget-search-id="{{searchId}}"\r\n cam-widget-search-operators="Searchable.config.operators"\r\n cam-widget-search-storage-group="Searchable.storageGroup"\r\n cam-widget-search-mode="filter">\r\n</div>\r\n<div cam-widget-loader\r\n text-error="{{Searchable.loadingError}}"\r\n text-empty="{{Searchable.textEmpty}}"\r\n loading-state="{{Searchable.loadingState}}">\r\n\r\n <div ng-transclude></div>\r\n\r\n <ul uib-pagination ng-if="Searchable.pages.total > Searchable.pages.size"\r\n class="pagination-sm"\r\n page="Searchable.pages.current"\r\n ng-model="Searchable.pages.current"\r\n total-items="Searchable.pages.total"\r\n items-per-page="Searchable.pages.size"\r\n max-size="7"\r\n boundary-links="true">\r\n </ul>\r\n</div>\r\n',controller:"CamPaginationSearchIntegrationController as Searchable",scope:{config:"=",loadingState:"=",loadingError:"@",arrayTypes:"=?",variableTypes:"=?",buildCustomQuery:"&",onSearchChange:"&",textEmpty:"@",storageGroup:"=",searchId:"@?",blocked:"="}}}},{}],269:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'<ul class="nav nav-tabs"\r\n ng-if="Tabs.providers.length > 1">\r\n <li ng-repeat="tabProvider in Tabs.providers"\r\n ng-class="{ active: Tabs.isSelected(tabProvider) }">\r\n <a href ng-click="Tabs.selectTab(tabProvider)">{{ tabProvider.label | translate }}</a>\r\n </li>\r\n</ul>\r\n\r\n<h4 ng-if="Tabs.providers.length === 1">{{ Tabs.providers[0].label | translate }}:</h4>\r\n\r\n<div class="ctn-tabbed-content ctn-scroll"\r\n ng-if="Tabs.providers.length">\r\n <view provider="Tabs.selected"\r\n vars="Tabs.vars" />\r\n</div>\r\n',controller:"CamTabsController as Tabs",scope:{providerParams:"=camTabs",tabsApi:"=?",vars:"=?",varsValues:"=?"}}}},{}],270:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'\x3c!-- # CE - ui/common/scripts/module/components/cam-toolbar.html --\x3e\r\n<div class="ctn-toolbar">\r\n \x3c!-- Toolbar actions are provided by plugins --\x3e\r\n <span ng-repeat="provider in providers">\r\n <view provider="provider"\r\n vars="vars" />\r\n </span>\r\n</div>\r\n\x3c!-- / CE - ui/common/scripts/module/components/cam-toolbar.html --\x3e\r\n',scope:{providers:"=camToolbar",vars:"=?"}}}},{}],271:[function(e,t,n){"use strict";var s=e("../../../../../camunda-commons-ui/vendor/angular");function r(e,t,n,r,i){this.searchWidgetUtils=n,this.search=r,this.lastSearchQueryString=null,this.locationChange=!0,e.$on("$destroy",function(){r("page",null)}),i(e,this,["config","arrayTypes","variableTypes","onSearchChange","buildCustomQuery","loadingError","loadingState","textEmpty","storageGroup","blocked"]),this.arrayTypes=s.isArray(this.arrayTypes)?this.arrayTypes:[],this.variableTypes=s.isArray(this.variableTypes)?this.variableTypes:[],this.pages={size:50,total:0,current:this.getCurrentPageFromSearch()};var a=function(){return this.pages.current}.bind(this);e.$watch(a,this.onPageChange.bind(this)),e.$on("$locationChangeSuccess",this.onLocationChange.bind(this)),e.$watch("config.searches",this.updateQuery.bind(this),!0),e.$watch("blocked",this.onBlockedChange.bind(this));var o=t.$on("cam-common:cam-searchable:query-force-change",this.onForcedRefresh.bind(this));e.$on("$destroy",function(){o()})}function i(e){return e&&e.map(function(e){return n=(t=e).value&&t.value.value,r=t.type&&t.type.value.value,i=t.operator&&t.operator.value.key,a=t.name&&t.name.value,{value:n,type:r,operator:i,name:a};var t,n,r,i,a})}t.exports=["$scope","$rootScope","searchWidgetUtils","search","exposeScopeProperties",r],r.prototype.onForcedRefresh=function(){this.resetPage(),this.executeQueries()},r.prototype.onBlockedChange=function(e,t){!e&&t&&this.query&&this.executeQueries()},r.prototype.getSearchQueryString=function(){return this.search().searchQuery},r.prototype.hasSearchQueryStringChanged=function(){var e=this.getSearchQueryString();return e!==this.lastSearchQueryString&&(this.lastSearchQueryString||"[]"!==e)},r.prototype.onPageChange=function(e,t){var n=this.getCurrentPageFromSearch();e!=t&&e!==n&&(this.search("page",e&&1!=e?e:null),this.hasSearchQueryStringChanged()||this.executeQueries())},r.prototype.onLocationChange=function(){var e=this.getCurrentPageFromSearch();+this.pages.current!=+e&&(this.pages.current=e,this.hasSearchQueryStringChanged()?this.locationChange=!0:this.executeQueries())},r.prototype.getCurrentPageFromSearch=function(){return+this.search().page||1},r.prototype.updateQuery=function(e,t){this.areSearchesDifferent(e,t)&&(this.query=this.buildCustomQuery&&this.buildCustomQuery(e)||this.createQuery(e),this.locationChange||this.resetPage(),this.lastSearchQueryString=this.getSearchQueryString(),this.executeQueries())},r.prototype.resetPage=function(){var e=this.search();this.pages.current=1,e.page=1,this.search.updateSilently(e,!0)},r.prototype.executeQueries=function(){this.query&&!this.blocked&&(this.locationChange=!1,this.onSearchChange({query:s.copy(this.query),pages:s.copy(this.pages)}).then(function(e){this.pages.total=e}.bind(this)))},r.prototype.createQuery=function(e){return this.searchWidgetUtils.createSearchQueryForSearchWidget(e,this.arrayTypes,this.variableTypes)},r.prototype.areSearchesDifferent=function(e,t){var n=i(e),r=i(t);return!s.equals(n,r)}},{"../../../../../camunda-commons-ui/vendor/angular":72}],272:[function(e,t,n){"use strict";t.exports=["$scope","search","paginationUtils","exposeScopeProperties",function(e,t,n,r){n.initializePaginationInController(e,t,function(){e.onPaginationChange({pages:e.pages})}),r(e,this,["total","pages"]),e.onPaginationChange({pages:e.pages})}]},{}],273:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular");function i(e,t,n){this.providers=this.getProviders(n,e),this.selected=this.providers[0],this.search=t,this.initializeVars(e),e.$on("$locationChangeSuccess",this.onLocationChange.bind(this)),this.onLocationChange()}function a(e,t){return(t.priority||0)-(e.priority||0)}t.exports=["$scope","search","Views",i],i.prototype.initializeVars=function(e){this.vars=e.vars||{read:["tabsApi"]},e.varsValues&&r.extend(e,e.varsValues)},i.prototype.getProviders=function(e,t){return e.getProviders(t.providerParams).sort(a)},i.prototype.onLocationChange=function(){var t=this.search();this.isTabSelectionChangedInUrl(t)?this.selected=this.providers.filter(function(e){return e.id===t.tab})[0]:t.tab||(this.selected=this.providers[0])},i.prototype.isTabSelectionChangedInUrl=function(e){return r.isString(e.tab)&&(!this.selected||e.tab!==this.selected.id)},i.prototype.selectTab=function(e){var t=this.search(),n={tab:e.id};this.selected=e,this.search.updateSilently(r.extend(t,n))},i.prototype.isSelected=function(e){return this.selected===e}},{"../../../../../camunda-commons-ui/vendor/angular":72}],274:[function(e,t,n){"use strict";function r(){this._hovered=null,this._listeners=[]}(t.exports=r).prototype.hoverTitle=function(e){this._hovered=e,this._fireListeners()},r.prototype.cleanHover=function(){this._hovered=null,this._fireListeners()},r.prototype.addHoverListener=function(e,t){var n={title:e,listener:t};return this._listeners.push(n),this._fireEntry(n),function(){this._listeners=this._listeners.filter(function(e){return e.listener!==t})}.bind(this)},r.prototype._fireListeners=function(){this._listeners.forEach(this._fireEntry.bind(this))},r.prototype._fireEntry=function(e){e.listener(e.title===this._hovered)}},{}],275:[function(e,t,n){"use strict";t.exports=["readFiles",function(r){return{restrict:"A",scope:{onChange:"&camFile"},link:function(n,e){e[0].addEventListener("change",function(t){n.$apply(function(){r(e[0].files).then(function(e){n.onChange({$event:t,files:e})})})})}}}]},{}],276:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",transclude:!0,scope:!0,controller:"HoverAreaController as HoverArea",link:function(e,t,n,r,i){i(function(e){t.empty(),t.append(e)})}}}},{}],277:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",require:"^camHoverArea",link:function(e,t,n,r){t.on("mouseenter",function(){e.$apply(function(){r.hoverTitle(n.camHoverTrigger)})}),t.on("mouseleave",function(){e.$apply(r.cleanHover.bind(r))})}}}},{}],278:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",require:"^camHoverArea",link:function(e,t,n,r){var i,a=n.hoverClass||"hovered";function o(){i&&i()}n.$observe("camHoverableTitle",function(e){o(),i=r.addHoverListener(e,function(e){e?t.addClass(a):t.removeClass(a)})}),t.on("$destroy",o)}}}},{}],279:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'<span cam-widget-inline-field\r\n class="set-value"\r\n type="{{type}}"\r\n change="onChange()"\r\n value="property">\r\n <span ng-show="property == null" class="null-value">{{ \'TIME_TO_LIVE_NULL\' | translate }}</span>\r\n <span ng-show="property != null">\r\n {{format({property: property}) || property}}\r\n <button type="button" class="btn btn-link btn-xs" ng-click="remove($event)">\r\n <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>\r\n </button>\r\n </span>\r\n</span>\r\n',scope:{property:"=camInlinePanelProperty",format:"&",onChange:"&",onRemove:"&",type:"@"},link:function(t){t.remove=function(e){e.preventDefault(),e.stopPropagation(),t.onRemove()}}}}},{}],280:[function(e,t,n){"use strict";t.exports=function(){return{replace:!1,restrict:"A",scope:{column:"@sortByProperty"},transclude:!0,require:"^^camSortableTableHeader",template:'<span ng-transclude></span>\r\n<a ng-click="changeOrder(column)">\r\n <span class="glyphicon" ng-class="orderClass(column)"></span>\r\n</a>',link:function(e,t,n,r){e.orderClass=function(e){var t=r.getSorting();return"glyphicon-"+{none:"minus",desc:"chevron-down",asc:"chevron-up"}[(e=e||t.sortBy)===t.sortBy?t.sortOrder:"none"]},e.changeOrder=function(e){r.changeOrder(e)}}}}},{}],281:[function(e,t,n){"use strict";function s(){}t.exports=function(){return{replace:!1,restrict:"A",scope:{onSortInitialized:"&",onSortChange:"&",sortBy:"@defaultSortBy",sortOrder:"@defaultSortOrder",sortingId:"@"},controller:["$scope","localConf",function(e,n){var r=e.sortingId,t={sortBy:e.sortBy,sortOrder:e.sortOrder},i=e.onSortInitialized||s,a=e.onSortChange||s,o=n.get(r,t);i({sorting:o}),this.changeOrder=function(e){var t;o.sortBy=e,o.sortOrder="desc"===o.sortOrder?"asc":"desc",t=o,n.set(r,t),a({sorting:o})},this.getSorting=function(){return o}}]}}},{}],282:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'\x3c!-- CE ui/common/scripts/module/external-tasks-common/components/external-task-activity-link.html --\x3e\r\n<a ng-href="{{Link.getLink()}}">\r\n {{Link.getActivityName()}}\r\n</a>\r\n\x3c!-- / CE ui/common/scripts/module/external-tasks-common/components/external-task-activity-link.html --\x3e\r\n',controller:"ExternalTaskActivityLinkController as Link",scope:{activityId:"=externalTaskActivityLink",bpmnElements:"=",searchQueryType:"=?"}}}},{}],283:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'<a ng-href="{{Link.getStacktraceUrl()}}" target="_blank" ng-transclude></a>\r\n',transclude:!0,controller:"ExternalTaskErrorMessageLinkController as Link",scope:{taskId:"=externalTaskErrorMessageLink",historic:"=?"}}}},{}],284:[function(e,t,n){"use strict";t.exports=function(){return{restrict:"A",template:'\x3c!-- # EE - ui/common/scripts/module/external-tasks-common/components/external-tasks-tab.html --\x3e\r\n<div cam-widget-loader\r\n loading-state="{{ TasksTab.loadingState }}"\r\n text-empty="{{ \'PLUGIN_EXTERNAL_TASK_NO_EXTERNAL_TASK_FOR_THIS_PROCESS\' | translate }}">\r\n\r\n \x3c!-- transclustion target --\x3e\r\n <div ng-transclude></div>\r\n \x3c!-- / transclustion target --\x3e\r\n\r\n <div cam-pagination="TasksTab.onPaginationChange(pages)" total="TasksTab.total" >\r\n </div>\r\n</div>\r\n\x3c!-- / EE - ui/common/scripts/module/external-tasks-common/components/external-tasks-tab.html --\x3e\r\n',transclude:!0,controller:"ExternalTasksTabController as TasksTab",scope:{onLoad:"&externalTasksTab",processData:"="}}}},{}],285:[function(e,t,n){"use strict";var r=e("../../../../../../camunda-commons-ui/vendor/angular");function i(e,t,n,r,i,a){t(e,this,["activityId","bpmnElements","searchQueryType"]),this.search=n,this.params=i,this.path=r.path(),this.searchWidgetUtils=a}t.exports=["$scope","exposeScopeProperties","search","$location","params","searchWidgetUtils",i],i.prototype.getLink=function(){var e=r.copy(this.search()),t=JSON.parse(e.searchQuery||"[]");return this.searchQueryType?e.searchQuery=JSON.stringify(this.searchWidgetUtils.replaceActivitiesInSearchQuery(t,this.searchQueryType,[this.activityId])):e.activityIds=this.activityId,"#"+this.path+"?"+this.params(e)},i.prototype.getActivityName=function(){var e=this.activityId;return this.bpmnElements[e]&&this.bpmnElements[e].name?this.bpmnElements[e].name:e}},{"../../../../../../camunda-commons-ui/vendor/angular":72}],286:[function(e,t,n){"use strict";function r(e,t,n){n(e,this,["taskId","historic"]),this.Uri=t}t.exports=["$scope","Uri","exposeScopeProperties",r],r.prototype.getStacktraceUrl=function(){var e="engine://engine/:engine/external-task/"+this.taskId+"/errorDetails";return this.historic&&(e="engine://engine/:engine/history/external-task-log/"+this.taskId+"/error-details"),this.Uri.appUri(e)}},{}],287:[function(e,t,n){"use strict";var r=e("../../../../../../camunda-commons-ui/vendor/angular");function i(e,t,n){t(e,this,["onLoad"]),e.$on("$destroy",function(){n("page",null)}),e.processData.newChild(e).observe("filter",this.onFilterChanged.bind(this))}function a(e){return e&&e.activityIds&&e.activityIds.length?e.activityIds:null}t.exports=["$scope","exposeScopeProperties","search",i],(t.exports.ExternalTasksTabController=i).prototype.onFilterChanged=function(e){this.isFilterChanged(e)&&(this.filter=e,this.pages&&this.loadTasks())},i.prototype.isFilterChanged=function(e){var t=a(this.filter),n=a(e);return!this.filter||!r.equals(t,n)},i.prototype.onPaginationChange=function(e){this.pages=e,this.filter&&this.loadTasks()},i.prototype.loadTasks=function(){this.loadingState="LOADING",this.onLoad({pages:r.copy(this.pages),activityIds:a(this.filter)}).then(function(e){this.total=e.count,e.list?this.loadingState="LOADED":this.loadingState="EMPTY"}.bind(this))}},{"../../../../../../camunda-commons-ui/vendor/angular":72}],288:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./services/observe-bpmn-elements"),a=e("./components/external-task-activity-link"),o=e("./components/external-tasks-tab"),s=e("./components/external-task-error-message-link"),l=e("./controllers/external-task-activity-link-controller"),c=e("./controllers/external-tasks-tab-controller"),u=e("./controllers/external-task-error-message-link-controller"),p=r.module("cam-common.external-tasks-common",[]);p.factory("observeBpmnElements",i),p.directive("externalTaskActivityLink",a),p.directive("externalTasksTab",o),p.directive("externalTaskErrorMessageLink",s),p.controller("ExternalTaskActivityLinkController",l),p.controller("ExternalTasksTabController",c),p.controller("ExternalTaskErrorMessageLinkController",u),t.exports=p},{"../../../../../camunda-commons-ui/vendor/angular":72,"./components/external-task-activity-link":282,"./components/external-task-error-message-link":283,"./components/external-tasks-tab":284,"./controllers/external-task-activity-link-controller":285,"./controllers/external-task-error-message-link-controller":286,"./controllers/external-tasks-tab-controller":287,"./services/observe-bpmn-elements":289}],289:[function(e,t,n){"use strict";t.exports=function(){return function(e,t){t.processData.newChild(e).observe("bpmnElements",function(e){t.bpmnElements=e})}}},{}],290:[function(e,t,n){"use strict";var r=e("../../../../camunda-commons-ui/vendor/angular"),i=e("./services/is-module-available"),a=e("./services/expose-scope-properties"),o=e("./services/loaders"),s=e("./services/integrate-activity-instance-filter"),l=e("./services/params"),c=e("./services/create-list-query-function"),u=e("./services/create-is-search-query-changed-function"),p=e("./services/read-files"),d=e("./services/upload"),m=e("./services/get-deployment-url"),f=e("./services/is-file-upload-supported"),h=e("./services/get"),g=e("./components/cam-toolbar"),v=e("./components/cam-pagination"),y=e("./components/cam-searchable-area"),b=e("./components/cam-tabs"),x=e("./directives/cam-hover-area"),w=e("./directives/cam-hover-trigger"),E=e("./directives/cam-hoverable-title"),k=e("./directives/cam-file"),S=e("./directives/cam-inline-panel-property"),C=e("./directives/cam-sortable-table-header"),A=e("./directives/cam-sortable-table-column"),_=e("./controllers/hover-area"),T=e("./controllers/cam-pagination"),M=e("./controllers/cam-tabs"),D=e("./controllers/cam-pagination-search-integration"),I=e("../util/routeUtil"),R=e("../util/pagination-utils"),N=e("../util/search-widget-utils"),P=e("./external-tasks-common"),$=r.module("cam-common",[P.name]);$.factory("isModuleAvailable",i),$.factory("exposeScopeProperties",a),$.factory("Loaders",o),$.factory("integrateActivityInstanceFilter",s),$.factory("params",l),$.factory("createListQueryFunction",c),$.factory("createIsSearchQueryChangedFunction",u),$.factory("readFiles",p),$.factory("upload",d),$.factory("getDeploymentUrl",m),$.factory("isFileUploadSupported",f),$.factory("get",h),$.directive("camToolbar",g),$.directive("camPagination",v),$.directive("camSearchableArea",y),$.directive("camTabs",b),$.directive("camHoverArea",x),$.directive("camHoverTrigger",w),$.directive("camHoverableTitle",E),$.directive("camFile",k),$.directive("camInlinePanelProperty",S),$.directive("camSortableTableHeader",C),$.directive("camSortableTableColumn",A),$.controller("HoverAreaController",_),$.controller("CamPaginationController",T),$.controller("CamTabsController",M),$.controller("CamPaginationSearchIntegrationController",D),$.value("routeUtil",I),$.value("paginationUtils",R),$.value("searchWidgetUtils",N),t.exports=$},{"../../../../camunda-commons-ui/vendor/angular":72,"../util/pagination-utils":306,"../util/routeUtil":307,"../util/search-widget-utils":308,"./components/cam-pagination":267,"./components/cam-searchable-area":268,"./components/cam-tabs":269,"./components/cam-toolbar":270,"./controllers/cam-pagination":272,"./controllers/cam-pagination-search-integration":271,"./controllers/cam-tabs":273,"./controllers/hover-area":274,"./directives/cam-file":275,"./directives/cam-hover-area":276,"./directives/cam-hover-trigger":277,"./directives/cam-hoverable-title":278,"./directives/cam-inline-panel-property":279,"./directives/cam-sortable-table-column":280,"./directives/cam-sortable-table-header":281,"./external-tasks-common":288,"./services/create-is-search-query-changed-function":291,"./services/create-list-query-function":292,"./services/expose-scope-properties":293,"./services/get":295,"./services/get-deployment-url":294,"./services/integrate-activity-instance-filter":296,"./services/is-file-upload-supported":297,"./services/is-module-available":298,"./services/loaders":299,"./services/params":300,"./services/read-files":301,"./services/upload":302}],291:[function(e,t,n){"use strict";t.exports=["search",function(n){return function(){var t=null;return function(){var e=n().searchQuery;if(e!==t&&(t||"[]"!==e))return t=e,!0}}}]},{}],292:[function(e,t,n){"use strict";var c=e("../../../../../camunda-commons-ui/vendor/angular");t.exports=["$q",function(l){return function(e,s){return function(i,a,o){return e(i).then(function(e){var t=(a.current-1)*a.size,n=e.count,r=c.extend({},i,{firstResult:t,maxResults:a.size},o);return t<n?l.all({count:n,list:s(r)}):e})}}}]},{"../../../../../camunda-commons-ui/vendor/angular":72}],293:[function(e,t,n){"use strict";t.exports=function(){return function(n,e,t){var r=t.reduce(function(e,t){return e[t]={get:function(){return n[t]},set:function(e){n[t]=e}},e},{});Object.defineProperties(e,r)}}},{}],294:[function(e,t,n){"use strict";t.exports=["$location","routeUtil",function(i,a){return function(e,t){var n={deployment:e.id,deploymentsQuery:JSON.stringify([{type:"id",operator:"eq",value:e.id}])};t&&(n.resourceName=t.name);var r=i.search()||{};return r.deploymentsSortBy&&(n.deploymentsSortBy=r.deploymentsSortBy),r.deploymentsSortOrder&&(n.deploymentsSortOrder=r.deploymentsSortOrder),a.redirectTo("#/repository",n,["deployment","resourceName","deploymentsQuery","deploymentsSortOrder","deploymentsSortBy"])}}]},{}],295:[function(e,t,n){"use strict";t.exports=function(){return function(e,t,n){for(var r,i=e,a=0;a<t.length;a++){if(r=t[a],!i||!i[r])return n;i=i[r]}return i}}},{}],296:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var v=e("../../../../../camunda-commons-ui/vendor/angular");t.exports=["search","$location","searchWidgetUtils",function(h,i,g){return function(d,t,m){var f=d.processData,n=d.processInstance;function r(e){var t,n,r,i=h(),a=g.getActivityIdsFromUrlParams("activityInstanceIdIn",i),o=i.activityIds?i.activityIds.split(","):[],s=(n=o,r=a,(t=e)&&v.equals(n,t.activityIds)&&!v.equals(r,t.activityInstanceIds));return s&&(o=[]),{activityIds:o,activityInstanceIds:a,page:parseInt(i.page,10)||void 0,replace:s||!e}}m=m||{},d.filter=r(),f.provide("filter",r()),f.observe(["filter","instanceIdToInstanceMap","activityIdToInstancesMap"],function(e,r,o){var t,i=e.activityIds||[],s=e.activityInstanceIds||[],n=parseInt(e.page,10)||null,a=e.scrollToBpmnElement,l=e!==d.filter,c=e.replace;if(delete e.replace,v.forEach(s,function(e){var t=r[e]||{},n=t.activityId||t.targetActivityId;-1===i.indexOf(n)&&n&&i.push(n)}),v.forEach(i,function(e){var t=o[e],n=!1,r=[];if(t){for(var i,a=0;i=t[a];a++){if(-1!==s.indexOf(i.id)){n=!0;break}r.push(i.id)}n||(s=s.concat(r))}}),m.shouldRemoveActivityIds)for(var u=0;u<i.length;u++)o[i[u]]||(i.splice(u,1),u--);for(u=0;u<s.length;u++)r[s[u]]||(s.splice(u,1),u--);if(0<i.length){var p=i[i.length-1];p!==a&&(a=p)}t={activityIds:i,activityInstanceIds:s,scrollToBpmnElement:a,page:n},v.equals(t,d.filter)||(d.filter=t,f.set("filter",d.filter));l&&d.filter&&function(e,t){var n=v.isArray(e.activityInstanceIds)?e.activityInstanceIds:[],r=v.isArray(e.activityIds)?e.activityIds:[],i=h(),a=JSON.parse(i.searchQuery||"[]");a=i.searchQuery||n.length||r.length?g.replaceActivitiesInSearchQuery(a,"activityInstanceIdIn",n):null;h.updateSilently({searchQuery:a?JSON.stringify(a):null,activityIds:r.length?r.join(","):null},t),d.filter=e}(d.filter,c)}),d.$on("$locationChangeSuccess",function(){var e=r(d.filter);-1<i.path().indexOf(n.id)&&(g.shouldUpdateFilter(e,d.filter,["activityIds","activityInstanceIds","page"])&&f.set("filter",e),t(d.processInstanceTabs))})}}]},{"../../../../../camunda-commons-ui/vendor/angular":72,"core-js/modules/es.string.replace":188}],297:[function(e,t,n){"use strict";t.exports=["$window",function(t){return function(){var e=t.FileReader;return"function"==typeof e&&"function"==typeof e.prototype.readAsText}}]},{}],298:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular");t.exports=function(){return function(e){try{return!!r.module(e)}catch(e){return!1}}}},{"../../../../../camunda-commons-ui/vendor/angular":72}],299:[function(e,t,n){"use strict";t.exports=["$rootScope",function(e){var n=[],r="LoaderService:active-loaders-changed";return{startLoading:function(){function t(){n=n.filter(function(e){return e!==t}),i()}return n.push(t),i(),t},addStatusListener:function(e,t){return t(a()),e.$on(r,function(){var e=a();t(e)})}};function i(){e.$broadcast(r)}function a(){return 0===n.length?"LOADED":"LOADING"}}]},{}],300:[function(e,t,n){"use strict";t.exports=function(){return function(i){return Object.keys(i).reduce(function(e,t){var n=i[t],r=t+"="+encodeURIComponent(n);return e.length?e+"&"+r:r},"")}}},{}],301:[function(e,t,n){"use strict";t.exports=["$q","$window",function(r,i){return function(e){return r.all(Array.prototype.map.call(e,t))};function t(t){var n=r.defer(),e=new i.FileReader;return e.onload=function(e){n.resolve({file:t,content:e.target.result})},e.onerror=function(e){n.reject(e)},e.readAsText(t),n.promise}}]},{}],302:[function(e,t,n){"use strict";var u=e("../../../../../camunda-commons-ui/vendor/angular");t.exports=["$window","$q","$rootScope","$cookies","$http",function(e,s,l,t,c){return function(e,t,n){var r=s.defer();u.isArray(t)||(t=[t]),n=n||{};var i=t.map(function(e,t){return'Content-Disposition: form-data; name="data'+t+'"; filename="'+e.file.name+'"\r\nContent-Type: text/xml\r\n\r\n'+e.content+"\r\n"});i=i.concat(Object.keys(n).map(function(e){return'Content-Disposition: form-data; name="'+e+'"\r\n\r\n'+n[e]+"\r\n"}));var a="---------------------------"+Date.now().toString(16),o="--"+a+"\r\n"+i.join("--"+a+"\r\n")+"--"+a+"--\r\n";return c.post(e,o,{transformRequest:u.identity,headers:{"Content-Type":"multipart/form-data; boundary="+a}}).then(function(e){r.resolve(e.data)}).catch(function(e){401===e.status&&(l.$broadcast("authentication.changed",null),l.authentication=null,l.$broadcast("authentication.login.required")),r.reject(e)}),r.promise}}]},{"../../../../../camunda-commons-ui/vendor/angular":72}],303:[function(e,t,n){"use strict";var i=e("angular"),a={dateFormat:{monthName:"MMMM",day:"DD",abbr:"lll",normal:"LLL",long:"LLLL",short:"LL"},locales:{availableLocales:["en"],fallbackLocale:"en"},skipCustomListeners:{default:!0,hidden:!1},skipIoMappings:{default:!0,hidden:!1},runtimeActivityInstanceMetrics:{display:!0},historicActivityInstanceMetrics:{adjustablePeriod:!0,period:{unit:"day"}},batchOperation:{mode:"filter",autoLoadEnded:!0},csrfCookieName:"XSRF-TOKEN",disableWelcomeMessage:!1,userOperationLogAnnotationLength:4e3};t.exports=function(t,e){return[function(){var n=window.localStorage,r=JSON.parse(n.getItem("camunda-web")||"{}");this.get=function(e,t){return void 0!==r[e]?r[e]:t},this.set=function(e,t){r[e]=t,n.setItem("camunda-web",JSON.stringify(r))},this.clearTranslationData=function(){for(var e in r)e.includes("_locales_data_")&&!e.includes(window.bust)&&delete r[e];window.localStorage.setItem("camunda-web",JSON.stringify(r))},this.getDateFormat=function(e){return(t.dateFormat||a.dateFormat)[e]||a.dateFormat[e]},this.getFallbackLocale=function(){return t.locales&&t.locales.fallbackLocale?t.locales.fallbackLocale:a.locales.fallbackLocale},this.getAvailableLocales=function(){return t.locales&&t.locales.availableLocales?t.locales.availableLocales:a.locales.availableLocales},this.getDateLocales=function(){return t.camDateLocales},this.getAppVendor=function(){return t.app&&t.app.vendor?t.app.vendor:"Camunda"},this.getAppName=function(){return t.app&&t.app.name?t.app.name:e},this.getSkipCustomListeners=function(){return i.extend({},a.skipCustomListeners,t.skipCustomListeners)},this.getSkipIoMappings=function(){return i.extend({},a.skipIoMappings,t.skipIoMappings)},this.getRuntimeActivityInstanceMetrics=function(){var e="runtimeActivityInstanceMetrics";return i.extend({},a[e],t[e]).display},this.getActivityInstancePeriod=function(){var e="historicActivityInstanceMetrics";return t[e]&&t[e].period?t[e].period:a[e].period},this.getActivityInstanceAdjustable=function(){var e="historicActivityInstanceMetrics";return t[e]&&void 0!==t[e].adjustablePeriod?t[e].adjustablePeriod:a[e].adjustablePeriod},this.getBatchOperationMode=function(){var e="batchOperation";return t[e]&&t[e].mode||a[e].mode},this.getBatchOperationAutoLoadEnded=function(){var e="batchOperation";return t[e]&&void 0!==t[e].autoLoadEnded?t[e].autoLoadEnded:a[e].autoLoadEnded},this.getBpmnJs=function(){return t.bpmnJs},this.getHistoricProcessInstancesSearch=function(){return(t.defaultFilter||{}).historicProcessDefinitionInstancesSearch},this.getCsrfCookieName=function(){var e="csrfCookieName";return t[e]||a[e]},this.getDisableWelcomeMessage=function(){var e="disableWelcomeMessage";return t[e]||a[e]},this.getUserOperationLogAnnotationLength=function(){var e="userOperationLogAnnotationLength";return t[e]||a[e]},this.$get=function(){return this}}]}},{angular:"angular"}],304:[function(e,t,n){"use strict";var o=e("../../../../camunda-commons-ui/vendor/moment"),l=e("../../../../camunda-commons-ui/vendor/angular"),c=(new Date).getTime();t.exports=function(e,n,a){e.factory("localeLoader",["$q","$http","Notifications","configuration",function(e,a,o,s){return function(t){if(!t||!l.isString(t.prefix)||!l.isString(t.suffix))throw new Error("Couldn't load static files, no prefix or suffix specified!");var n=e.defer(),r=t.prefix+"_locales_data_"+t.key+"_"+window.bust,i=s.get(r);return i&&(i=JSON.parse(i),"function"==typeof t.callback&&t.callback(null,i,t.key),n.resolve(i.labels)),a(l.extend({url:[t.prefix,t.key,t.suffix].join(""),method:"GET",params:{_:c}},t.$http)).then(function(e){s.clearTranslationData(),s.set(r,JSON.stringify(e.data)),i||("function"==typeof t.callback&&t.callback(null,e.data,t.key),n.resolve(e.data.labels))}).catch(function(e){o.addError({status:"Error in localization configuration",message:'"'+t.key+'" is declared as available locale, but no such locale file exists.'}),i||("function"==typeof t.callback&&t.callback(e.data,null,t.key),n.reject(t.key))}),n.promise}}]),e.config(["$translateProvider","configurationProvider",function(e,t){var r=t.getAvailableLocales(),i=t.getFallbackLocale();e.useLoader("localeLoader",{prefix:n+"/app/"+a+"/locales/",suffix:".json",callback:function(e,t,n){if(!e&&t&&t.dateLocales){var r=n||i;-1<o.locales().indexOf(r)?o.updateLocale(r,t.dateLocales):o.defineLocale(r,t.dateLocales)}}}),e.registerAvailableLanguageKeys(r),e.fallbackLanguage(i),e.useSanitizeValueStrategy("escapeParameters"),e.determinePreferredLanguage(function(){var e=window.navigator,t=((l.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-"),n=r.indexOf(t[0].toLowerCase());return-1<n?r[n]:i})}])}},{"../../../../camunda-commons-ui/vendor/angular":72,"../../../../camunda-commons-ui/vendor/moment":74}],305:[function(e,t,n){"use strict";t.exports=function(e,t){return-1!==e.indexOf(t)}},{}],306:[function(e,t,n){"use strict";var a=e("../../../../camunda-commons-ui/vendor/angular"),o={size:50,total:0,current:1};function s(e){return e().page||1}t.exports={initializePaginationInController:function(e,r,i){var n=e.pages=a.copy(o);return n.current=s(r),e.$watch("pages.current",function(e,t){var n=s(r);e!=t&&e!==n&&(r("page",e&&1!=e?e:null),i(e,t))}),e.$on("$locationChangeSuccess",function(){var e=s(r);if(+n.current!=+e){var t=n.current;n.current=e,i(n.current,t)}}),e.$on("$destroy",function(){r("page",null)}),n}}},{"../../../../camunda-commons-ui/vendor/angular":72}],307:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var a={redirectToRuntime:function(e,t,n){var r=t+"/runtime";return a.redirectTo(r,n,!0)},replaceLastPathFragment:function(e,t,n,r){var i=t.replace(/[^/]*$/,e);return a.redirectTo(i,n,r)},redirectTo:function(e,t,n){var r,i=[];if(t&&n){var a="[object Array]"===Object.prototype.toString.call(n);for(r in t)a&&-1===n.indexOf(r)||i.push(r+"="+encodeURIComponent(t[r]))}return e+(i.length?"?"+i.join("&"):"")}};t.exports=a},{"core-js/modules/es.string.replace":188}],308:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var o=e("../../../../camunda-commons-ui/vendor/angular"),s=e("../../../../camunda-commons-ui/vendor/moment"),l=e("./includes");function r(e){return encodeURI(e).replace(/#/g,"%23")}function i(e,t){return o.isObject(e)?(i=e,a=t,r=Object.keys(i).reduce(function(e,t){var n=i[t];return l(a,t)&&(e[t]=n),e},{}),Object.keys(r).reduce(function(e,t){var n=r[t];return null!=n&&(e[t]=n),e},{})):e;var r,i,a}function a(e,t){return t.map(function(e,t){return{type:e,operator:"eq",value:t}}.bind(null,e))}t.exports={getSearchQueryForSearchType:function(e,t){return t=[].concat(t),r("searchQuery="+JSON.stringify(a(e,t)))},getActivityIdsFromUrlParams:function(e,t){var n=JSON.parse(t.searchQuery||"[]");return function(t,e){return e.filter(function(e){return e.type===t}).map(function(e){return e.value})}(e,n)},replaceActivitiesInSearchQuery:function(e,t,n){return function(t,e){return e.filter(function(e){return e.type!==t})}(t,e).concat(a(t,n))},createSearchQueryForSearchWidget:function(e,t,n){return e=o.isArray(e)?e:[],t=o.isArray(t)?t:[],n=o.isArray(n)?n:["variables"],t=t.concat(n),e.reduce(function(e,t,n,r){var i=function(e,t){var n=e.type.value.key,r=e.operator.value.key;!function(e){return-1!==e.indexOf("Date")}(n)||(n=n.slice(0,-4));!function(e){return l(["After","Before","Like"],e)}(r)||l(t,n)||(n+=r);return n}(r,t),a=function(e){if(e.basic)return!0;return function(e,t,n){{if("like"===t.toLowerCase()&&!/(%)|(_)/.test(e.replace(/(\\%)|(\\_)/g,"")))return"%"+e+"%";if(n.allowDates&&c.test(e))return s(e,s.ISO_8601).format("YYYY-MM-DDTHH:mm:ss.SSSZZ")}return e}(e.value.value,e.operator.value.key,e)}(r);l(t,i)&&(a=function(e,t){return{name:e.name.value,operator:e.operator.value.key,value:function(e){return isNaN(e)||""===e.trim()?"true"===e||"false"!==e&&("NULL"!==e?0!==e.indexOf("'")||e.lastIndexOf("'")!==e.length-1?e:e.substr(1,e.length-2):null):+e}(t)}}(r,a));l(e,i)?n[i]=function(e,t,n){return o.isArray(e[t])?e[t].concat([n]):[n]}(n,i,a):n[i]=a;return n}.bind(null,t,n),{})},shouldUpdateFilter:function(e,t,n){return n=o.isArray(n)?n:[],!o.equals(i(e,n),i(t,n))},createSearchesForActivityIds:a,encodeQuery:r,updateSearchValuesForTypeInCtrlMode:function(e,t,n){var r=function(e,t,n){return e.filter(function(e){return e.type!==n||!l(t,e.value)})}(e,n,t),i=function(e,t,n){var r=t.filter(function(e){return e.type===n}).map(function(e){return e.value});return e.filter(function(e){return!l(r,e)})}(n,e,t);return r.concat(a(t,i))}};var c=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})$/},{"../../../../camunda-commons-ui/vendor/angular":72,"../../../../camunda-commons-ui/vendor/moment":74,"./includes":305,"core-js/modules/es.string.replace":188}],309:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),a=e("camunda-bpm-sdk-js/lib/angularjs/index"),i=r.module("cam.tasklist.client",[]);i.value("HttpClient",a.Client),i.value("CamForm",a.Form),i.factory("camAPI",["camAPIHttpClient","$window","Uri",function(e,t,n){var r={apiUri:"engine-rest/api/engine",HttpClient:e,engine:n.appUri(":engine")};if(t.tasklistConf)for(var i in t.tasklistConf)r[i]=t.tasklistConf[i];return new a.Client(r)}]),t.exports=i},{"../../../../../camunda-commons-ui/vendor/angular":72,"camunda-bpm-sdk-js/lib/angularjs/index":"camunda-bpm-sdk-js/lib/angularjs/index"}],310:[function(i,e,t){"use strict";i("dom4");var a=window.jQuery=window.$=i("jquery"),o=i("../../../../camunda-commons-ui/lib"),n=i("camunda-bpm-sdk-js/lib/angularjs/index");i("angular-data-depend");var s=i("../../../../camunda-commons-ui/vendor/angular"),r=i("angular-data-depend"),l=i("../../../common/scripts/module"),c=i("../../../../camunda-commons-ui/vendor/lodash");e.exports=function(e){var t=[o.name,"pascalprecht.translate","ngRoute","dataDepend",i("./tasklist/index").name,i("./task/index").name,i("./process/index").name,i("./navigation/index").name,i("./form/index").name,i("./filter/index").name,i("./api/index").name,i("./shortcuts/plugins/index").name].concat(e.map(function(e){return e.ngModuleName}));var n=function(){for(var e=a("base"),t={},n=["href","app-root","admin-api","tasklist-api","engine-api"],r=0;r<n.length;r++)t[n[r]]=e.attr(n[r]);return t}(),r=s.module("cam.tasklist",t);r.config(["$uibModalProvider","$uibTooltipProvider","$locationProvider","$animateProvider","$qProvider",function(e,t,n,r,i){e.options={animation:!0,backdrop:!0,keyboard:!0},t.options({animation:!0,popupDelay:100,appendToBody:!0}),n.hashPrefix(""),r.classNameFilter(/angular-animate/),i.errorOnUnhandledRejections(!1)}]),r.factory("assignNotification",i("./services/cam-tasklist-assign-notification")),r.provider("configuration",i("./../../../common/scripts/services/cam-configuration")(window.camTasklistConf,"Tasklist")),i("./../../../common/scripts/services/locales")(r,n["app-root"],"tasklist"),i("./config/uris")(r,n),r.config(i("./config/routes")),r.config(i("./config/date")),r.config(i("./config/tooltip")),r.controller("camTasklistAppCtrl",i("./controller/cam-tasklist-app-ctrl")),r.controller("camTasklistViewCtrl",i("./controller/cam-tasklist-view-ctrl")),a(document).ready(function(){s.bootstrap(document.documentElement,["cam.tasklist","cam.embedded.forms","cam.tasklist.custom"]),setTimeout(function(){var e=a("[autofocus]");e.length&&e[0].focus()},300)})},e.exports.exposePackages=function(e){e.angular=s,e.jquery=a,e["camunda-commons-ui"]=o,e["camunda-bpm-sdk-js"]=n,e["angular-data-depend"]=r,e["cam-common"]=l,e.lodash=c}},{"../../../../camunda-commons-ui/lib":24,"../../../../camunda-commons-ui/vendor/angular":72,"../../../../camunda-commons-ui/vendor/lodash":73,"../../../common/scripts/module":290,"./../../../common/scripts/services/cam-configuration":303,"./../../../common/scripts/services/locales":304,"./api/index":309,"./config/date":311,"./config/routes":312,"./config/tooltip":313,"./config/uris":314,"./controller/cam-tasklist-app-ctrl":315,"./controller/cam-tasklist-view-ctrl":316,"./filter/index":325,"./form/index":333,"./navigation/index":336,"./process/index":337,"./services/cam-tasklist-assign-notification":340,"./shortcuts/plugins/index":342,"./task/index":347,"./tasklist/index":357,"angular-data-depend":"angular-data-depend","camunda-bpm-sdk-js/lib/angularjs/index":"camunda-bpm-sdk-js/lib/angularjs/index",dom4:243,jquery:"jquery"}],311:[function(e,t,n){"use strict";t.exports=["camDateFormatProvider","configurationProvider",function(e,t){for(var n=["monthName","day","abbr","normal","long","short"],r=0;r<n.length;r++)e.setDateFormat(t.getDateFormat(n[r]),n[r])}]},{}],312:[function(e,t,n){"use strict";t.exports=["$routeProvider",function(e){e.when("/",{template:'<div class="three-cols-layout-columns"\r\n ng-controller="camLayoutCtrl">\r\n\r\n \x3c!-- # filters column --\x3e\r\n <section class="column column-left task-filters"\r\n ng-controller="camFiltersCtrl">\r\n <header class="three-cols-layout-cell top">\r\n <button class="btn btn-link"\r\n ng-show="userCanCreateFilter"\r\n ng-click="openModal($event)">\r\n {{ \'FILTER_CREATE\' | translate }}\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n </button>\r\n\r\n <button ng-click="toggleRegion($event)"\r\n data-region="filters"\r\n class="region-toggle btn btn-link">\r\n <span class="glyphicon"></span>\r\n </button>\r\n </header>\r\n\r\n <div class="three-cols-layout-cell content">\r\n <div cam-tasklist-filters\r\n filters-data="filtersData"\r\n open-modal="openModal"\r\n user-can-create-filter="userCanCreateFilter"></div>\r\n </div>\r\n </section>\r\n \x3c!-- / filters column --\x3e\r\n\r\n\r\n\r\n\r\n\r\n \x3c!-- # list column --\x3e\r\n <section class="column column-center tasks-list"\r\n ng-controller="camListCtrl">\r\n <header class="three-cols-layout-cell top">\r\n <view ng-repeat="tasklistHeaderPlugin in tasklistHeaderPlugins"\r\n provider="tasklistHeaderPlugin"\r\n vars="tasklistVars"></view>\r\n\r\n <button ng-click="toggleRegion($event)"\r\n data-region="list"\r\n class="region-toggle btn btn-link">\r\n <span class="glyphicon"></span>\r\n </button>\r\n </header>\r\n\r\n <div class="three-cols-layout-cell content">\r\n <view ng-repeat="tasklistPlugin in tasklistPlugins"\r\n provider="tasklistPlugin"\r\n vars="tasklistVars"></view>\r\n\r\n <div cam-tasks\r\n tasklist-data="tasklistData"></div>\r\n </div>\r\n </section>\r\n \x3c!-- / list column --\x3e\r\n\r\n\r\n\r\n\r\n\r\n \x3c!-- # task column --\x3e\r\n <section class="column column-right task-details"\r\n ng-controller="camTaskActionCtrl">\r\n <header class="three-cols-layout-cell top">\r\n <button ng-click="toggleRegion($event)"\r\n data-region="task"\r\n class="region-toggle btn btn-link">\r\n <span class="glyphicon"></span>\r\n </button>\r\n\r\n <button ng-click="maximizeRegion($event)"\r\n data-region="task"\r\n class="btn btn-link maximize">\r\n <span class="glyphicon glyphicon-resize-full"></span>\r\n </button>\r\n\r\n <button ng-click="resetRegions($event)"\r\n class="btn btn-link reset-regions">\r\n <span class="glyphicon glyphicon-resize-small"></span>\r\n </button>\r\n\r\n <div class="task-actions"\r\n ng-show="task"\r\n ng-repeat="taskAction in taskActions">\r\n <view provider="taskAction" vars="taskVars">\r\n </div>\r\n </header>\r\n\r\n <div class="three-cols-layout-cell content">\r\n <div cam-tasklist-task\r\n tasklist-data="tasklistData"></div>\r\n </div>\r\n </section>\r\n \x3c!-- # task column --\x3e\r\n\r\n</div>\r\n',controller:"camTasklistViewCtrl",authentication:"required",reloadOnSearch:!1}).otherwise({redirectTo:"/"})}]},{}],313:[function(e,t,n){"use strict";t.exports=["$uibTooltipProvider",function(e){e.options({appendToBody:!0,popupDelay:500})}]},{}],314:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace"),t.exports=function(e,t){e.config(["UriProvider",function(e){e.replace(":appName","tasklist"),e.replace("app://",t.href),e.replace("adminbase://",t["app-root"]+"/app/admin/"),e.replace("tasklistbase://",t["app-root"]+"/app/tasklist/"),e.replace("cockpitbase://",t["app-root"]+"/app/cockpit/"),e.replace("admin://",t["admin-api"]),e.replace("plugin://",t["tasklist-api"]+"plugin/"),e.replace("engine://",t["engine-api"]),e.replace(":engine",["$window",function(e){var t=e.location.href.match(/\/app\/tasklist\/([\w-]+)(|\/)/);if(t)return t[1];throw new Error("no process engine selected")}])}])}},{"core-js/modules/es.string.replace":188}],315:[function(e,t,n){"use strict";var s=function(){this.refreshProvider=null};t.exports=["camAPI","configuration","$window","$interval","$scope",function(t,e,n,r,i){function a(e){e&&e.name?t.resource("user").profile(e.name,function(e,t){if(e)throw i.userFullName=null,e;i.userFullName=t.firstName+" "+t.lastName}):i.userFullName=null}i.tasklistApp=new s,i.appVendor=e.getAppVendor(),i.appName=e.getAppName(),document.querySelector("head > title").textContent=i.appVendor+" "+i.appName,i.$on("authentication.changed",function(e,t){a(t)}),a(i.authentication);var o=r(function(){i.$root.$broadcast("refresh")},1e4);i.$on("$destroy",function(){r.cancel(o)})}]},{}],316:[function(e,t,n){"use strict";var v=e("../../../../../camunda-commons-ui/vendor/angular");t.exports=["$scope","$q","$location","$interval","search","dataDepend","camAPI",function(e,i,t,n,r,a,o){function s(e){return(t.search()||{})[e]||null}function l(e){r.updateSilently(e)}var c,u=e.tasklistData=a.create(e),p=s("task"),d=s("detailsTab"),m=o.resource("filter"),f=o.resource("task");u.provide("filters",function(){var t=i.defer();return m.count({itemCount:!1,resourceType:"Task"}).then(function(e){for(var t=Math.ceil(e/2e3),n=[],r=0;r<t;r++)n.push(m.list({firstResult:2e3*r,maxResults:2e3,itemCount:!1,resourceType:"Task"}));return i.all(n)}).then(function(e){t.resolve(e.flat(2))}).catch(function(e){t.reject(e)}),t.promise}),u.provide("currentFilter",["filters",function(e){for(var t,n,r=s("filter"),i=0;n=e[i];i++){if(r===n.id){t=n;break}(!t||n.properties.priority<t.properties.priority)&&(t=n)}c&&t&&c.id!==t.id&&s("page")&&l({page:"1"});return t&&t.id!==r&&l({filter:t.id}),v.copy(t)}]),u.provide("searchQuery",{processVariables:[],taskVariables:[],caseInstanceVariables:[]}),u.provide("taskListQuery",["currentFilter","searchQuery",function(e,t){if(!e)return null;var n=v.copy(t),r=15*((s("page")||1)-1),i=s("sorting");try{i=JSON.parse(i)}catch(e){i=[{}]}return(i=Array.isArray(i)&&i.length?i:[{}])[0].sortOrder=i[0].sortOrder||"desc",i[0].sortBy=i[0].sortBy||"created",n.id=e.id,n.firstResult=r,n.maxResults=15,n.sorting=i,n.active=!0,n}]);var h=i.defer(),g={};u.observe("taskListQuery",function(e){0===h.promise.$$state.status&&JSON.stringify(e)!==JSON.stringify(g)&&u.changed("taskList")}),u.provide("taskList",["taskListQuery",function(e){if(0===h.promise.$$state.status&&JSON.stringify(e)===JSON.stringify(g))return h.promise;var n=i.defer();return h=n,(g=e)&&null!==e.id?m.getTasks(v.copy(e),function(e,t){e?n.resolve(e):n.resolve(t)}):n.resolve({count:0,_embedded:{}}),n.promise}]),u.provide("taskId",{taskId:p}),u.provide("task",["taskId",function(e){var n=i.defer(),t=e.taskId;return"string"!=typeof t?n.resolve(null):f.get(t,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}]),u.observe("currentFilter",function(e){c=e}),e.$on("refresh",function(){c&&c.properties.refresh&&u.changed("taskList")}),e.$on("$routeChanged",function(){var e=p,t=d;p=s("task"),d=s("detailsTab"),e===p&&t!==d||u.set("taskId",{taskId:p}),c=null,u.changed("currentFilter")})}]},{"../../../../../camunda-commons-ui/vendor/angular":72}],317:[function(e,t,n){"use strict";var l=e("jquery");t.exports=["$scope","$uibModal","$q","camAPI","$timeout",function(t,r,e,n,i){var a=t.filtersData=t.tasklistData.newChild(t),o=n.resource("filter");t.userCanCreateFilter=!1,a.provide("filterAuthorizations",function(){var n=e.defer();return o.authorizations(function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}),a.provide("userCanCreateFilter",["filterAuthorizations",function(e){for(var t,n=(e=e||{}).links||[],r=0;t=n[r];r++)if("create"===t.rel)return!0;return!1}]),a.observe("userCanCreateFilter",function(e){t.userCanCreateFilter=e});var s=[];a.observe("filters",function(t){s.forEach(function(e){e(t)}),s=[]});t.$on("shortcut:focusFilter",function(){l(".task-filters .content h4 a")[0].focus()}),t.openModal=function(e,t){e.stopPropagation();function n(){i(function(){a.changed("filters"),t?s.push(function(){i(function(){var e=l(".task-filters .content div.item.active .actions a")[0];e&&e.focus()})}):document.querySelector(".task-filters header button.btn-link").focus()},20)}r.open({windowClass:"filter-modal",size:"lg",controller:"camFilterModalCtrl",template:'<div class="modal-header">\r\n <h3 class="modal-title">\r\n {{ (\r\n filter.id && !deletion ?\r\n (accesses.update ? \'FILTER_EDIT\' : \'FILTER_DETAILS\') :\r\n (deletion ? \'FILTER_DELETE\' : \'FILTER_CREATE\')\r\n ) | translate }}\r\n </h3>\r\n</div>\r\n\r\n\r\n\r\n<div class="modal-body">\r\n\r\n <div notifications-panel></div>\r\n\r\n <div ng-show="!deletion"\r\n cam-tasklist-filter-modal-form\r\n filter="filter"\r\n filter-modal-data="filterModalData"\r\n register-is-valid-provider="registerValidationProvider"\r\n register-post-filter-saved-provider="registerPostFilterSavedProvider">\r\n </div>\r\n\r\n <div ng-show="deletion"\r\n uib-alert class="alert alert-warning"\r\n role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n {{ \'FILTER_DELETION_WARNING\' | translate }}\r\n </div>\r\n\r\n</div>\r\n\r\n\r\n<div class="modal-footer">\r\n\r\n <div class="row row-action">\r\n\r\n <div class="col-xs-4 align-left">\r\n\r\n <button ng-show="!deletion && filter.id && accesses.delete"\r\n class="btn btn-link"\r\n type="button"\r\n ng-click="confirmDeletion()"\r\n translate="FILTER_DELETE">Delete filter</button>\r\n\r\n\r\n <button ng-show="deletion"\r\n class="btn btn-link"\r\n type="button"\r\n ng-click="abortDeletion()"\r\n translate="FILTER_EDIT">Edit filter</button>\r\n </div>\r\n\r\n <div class="col-xs-8">\r\n <div class="row">\r\n <div class="col-xs-12">\r\n\r\n <button class="btn btn-link"\r\n type="button"\r\n ng-click="$dismiss()"\r\n translate="CLOSE">Close</button>\r\n\r\n <button ng-if="!deletion && (!filter.id || (filter.id && accesses.update))"\r\n class="btn btn-primary"\r\n type="submit"\r\n ng-disabled="!isValid()"\r\n ng-click="submit()"\r\n translate="SAVE">Save</button>\r\n\r\n\r\n <button ng-if="deletion"\r\n class="btn btn-primary"\r\n type="submit"\r\n ng-click="delete()"\r\n translate="DELETE">Delete</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n',resolve:{filter:function(){return t},filtersData:function(){return a}}}).result.then(n,n)}}]},{jquery:"jquery"}],318:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");var r="E.g.: `${ now() }`, `${ dateTime() }` or `${ dateTime().plusWeeks(2) }`",i="E.g.: `${ currentUser() }`",a="List of values seperated by comma. E.g.: `keyC, keyA, keyB`",o=/^[\s]*([#$]){/,s=/^-?[\d]+$/;function l(t,n,r){return function(e){if(r&&o.test(e))return{valid:!0};if(t.test(e)){if("date"===n)if(!!isNaN(new Date(e).getTime()))return{valid:!1,error:"dateValue"};return{valid:!0}}return{valid:!1,error:n||"format"}}}var c=[{group:"Process Instance",options:[{name:"processInstanceId",label:"ID"},{name:"processInstanceBusinessKey",label:"Business Key",expressionSupport:!0,help:i},{name:"processInstanceBusinessKeyLike",label:"Business Key Like",expressionSupport:!0,help:i}]},{group:"Process definition",options:[{name:"processDefinitionId",label:"ID"},{name:"processDefinitionKey",label:"Key"},{name:"processDefinitionKeyIn",label:"Key In",help:a},{name:"processDefinitionName",label:"Name"},{name:"processDefinitionNameLike",label:"Name Like"}]},{group:"Case Instance",options:[{name:"caseInstanceId",label:"ID"},{name:"caseInstanceBusinessKey",label:"Business Key"},{name:"caseInstanceBusinessKeyLike",label:"Business Key Like"}]},{group:"Case definition",options:[{name:"caseDefinitionId",label:"ID"},{name:"caseDefinitionKey",label:"Key"},{name:"caseDefinitionName",label:"Name"},{name:"caseDefinitionNameLike",label:"Name Like"}]},{group:"Other",options:[{name:"active",label:"Active",bool:!0},{name:"activityInstanceIdIn",label:"Activity Instance ID In",help:a},{name:"executionId",label:"Execution ID"}]},{group:"User / Group",options:[{name:"assignee",label:"Assignee",expressionSupport:!0,help:i},{name:"assigneeIn",label:"Assignee in",help:a},{name:"assigneeLike",label:"Assignee Like",expressionSupport:!0,help:i},{name:"owner",label:"Owner",expressionSupport:!0,help:i},{name:"candidateGroup",label:"Candidate Group",expressionSupport:!0,includeAssignedTasksSupport:!0},{name:"candidateGroups",label:"Candidate Groups",expressionSupport:!0,help:"List of values separated by comma or an expression which evaluates to a list. E.g.: `camunda-admin, accounting` or `${ currentUserGroups() }`",includeAssignedTasksSupport:!0},{name:"candidateUser",label:"Candidate User",expressionSupport:!0,help:i,includeAssignedTasksSupport:!0},{name:"involvedUser",label:"Involved User",expressionSupport:!0,help:i},{name:"unassigned",label:"Unassigned",bool:!0},{name:"delegationState",label:"Delegation State"}]},{group:"Task",options:[{name:"taskDefinitionKey",label:"Definition Key"},{name:"taskDefinitionKeyIn",label:"Definition Key In",help:a},{name:"taskDefinitionKeyLike",label:"Definition Key Like"},{name:"name",label:"Name"},{name:"nameLike",label:"Name Like"},{name:"description",label:"Description"},{name:"descriptionLike",label:"Description Like"},{name:"priority",label:"Priority",validate:l(s,"number")},{name:"maxPriority",label:"Priority Max",validate:l(s,"number")},{name:"minPriority",label:"Priority Min",validate:l(s,"number")},{name:"tenantIdIn",label:"Tenant ID In",help:a},{name:"withoutTenantId",label:"Without Tenant ID",bool:!0}]},{group:"Dates",validate:l(/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})$/,"date",!0),options:[{name:"createdBefore",label:"Created Before",expressionSupport:!0,help:r},{name:"createdAfter",label:"Created After",expressionSupport:!0,help:r},{name:"dueBefore",label:"Due Before",expressionSupport:!0,help:r},{name:"dueAfter",label:"Due After",expressionSupport:!0,help:r},{name:"followUpAfter",label:"Follow Up After",expressionSupport:!0,help:r},{name:"followUpBefore",label:"Follow Up Before",expressionSupport:!0,help:r},{name:"followUpBeforeOrNotExistent",label:"Follow Up Before or Not Existent",expressionSupport:!0,help:r}]}];t.exports=c.map(function(e){return e.name=e.group.toLowerCase().replace(/[^a-z0-9-]+/g,"-"),e})},{"core-js/modules/es.string.replace":188}],319:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");function r(){return{valid:!0}}var i=e("../../../../../../camunda-commons-ui/vendor/angular"),l=e("./cam-tasklist-filter-modal-criteria"),a=i.forEach,c=i.copy,u={},p={},d={},m={},f={};a(l,function(t){a(t.options,function(e){u[e.name]=e.includeAssignedTasksSupport,u[e.name]&&(u[e.name+"Expression"]=!0),e.bool&&(p[e.name]=!0),d[e.name]=e.expressionSupport,m[e.name]=e.help||t.help,f[e.name]=e.validate||t.validate||r})}),t.exports=[function(){return{restrict:"A",require:"^camTasklistFilterModalForm",scope:{filter:"=",accesses:"="},template:'<div ng-form class="form-horizontal" name="filterCriteriaForm" role="form">\r\n\r\n <div class="row labels-left">\r\n <div class="col-xs-2 row-action" ng-show="!filter.id || (filter.id && accesses.update)">\r\n <a ng-click="addCriterion()"\r\n href>\r\n <span class="hidden-sm hidden-xs">{{ \'FILTER_ADD_CRITERION\' | translate }}</span>\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n </a>\r\n </div>\r\n\r\n <div ng-class="{ \'col-xs-10\': !filter.id || (filter.id && accesses.update) , \'col-xs-12\': !(!filter.id || (filter.id && accesses.update)) }">\r\n <div class="form-group" ng-show="query.length">\r\n <label class="col-xs-6 control-label"\r\n translate="FILTER_CRITERIA_KEY">Key</label>\r\n <label class="col-xs-6 control-label"\r\n translate="FILTER_CRITERIA_VALUE">Value</label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div ng-repeat="(delta, queryParam) in query" class="row" ng-if="isQueryParameter(queryParam)" ng-init="clearKey(queryParam)">\r\n\r\n <div ng-form name="criteriaFieldForm">\r\n <div ng-init="addForm(this.criteriaFieldForm)"></div>\r\n\r\n <div class="col-xs-2 row-action" ng-show="!filter.id || (filter.id && accesses.update)">\r\n <a ng-click="removeCriterion(delta)"\r\n href>\r\n <span class="hidden-sm hidden-xs">{{ \'FILTER_REMOVE_CRITERION\' | translate }}</span>\r\n <span class="glyphicon glyphicon-remove-sign"></span>\r\n </a>\r\n </div>\r\n\r\n <div ng-class="{ \'col-xs-10\': !filter.id || (filter.id && accesses.update) , \'col-xs-12\': !(!filter.id || (filter.id && accesses.update)) }">\r\n <div class="form-group">\r\n\r\n <div class="col-xs-6">\r\n\r\n <select class="form-control"\r\n ng-model="queryParam.key"\r\n name="queryParamKey"\r\n ng-change="valueChanged(queryParam, this.criteriaFieldForm.queryParamValue)"\r\n cam-unique-value="{{ getQueryParamKeys() }}"\r\n required\r\n ng-disabled="filter.id && !accesses.update">\r\n <optgroup ng-repeat="criteriaGroup in criteria"\r\n label="{{ criteriaGroup.group | translate }}">\r\n\r\n <option ng-repeat="criterion in criteriaGroup.options"\r\n ng-selected="criterion.name === getCriterionName(queryParam.key)"\r\n ng-value="criterion.name">\r\n\r\n {{ criterion.label | translate }}\r\n {{ (criterion.expressionSupport ? \'*\' : \'\') }}\r\n\r\n </option>\r\n </optgroup>\r\n\r\n </select>\r\n <div ng-if="this.criteriaFieldForm.queryParamKey.$invalid && this.criteriaFieldForm.queryParamKey.$dirty"\r\n class="has-error">\r\n <span ng-show="this.criteriaFieldForm.queryParamKey.$error.required" class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n <span ng-show="this.criteriaFieldForm.queryParamKey.$error.camUniqueValue" class="help-block">\r\n {{ \'REQUIRE_UNIQUE_KEY\' | translate }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class="col-xs-6">\r\n\r\n <div ng-if="!booleanCriterion[getCriterionName(queryParam.key)]">\r\n <input class="form-control"\r\n name="queryParamValue"\r\n type="text"\r\n ng-model="queryParam.value"\r\n ng-change="valueChanged(queryParam, this.criteriaFieldForm.queryParamValue)"\r\n required\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n <span class="help-block text-help"\r\n ng-show="isCriteriaHelpAvailable(queryParam.key)">\r\n {{ getCriteriaHelp(queryParam.key) | translate }}\r\n </span>\r\n\r\n <div ng-if="this.criteriaFieldForm.queryParamValue.$invalid && this.criteriaFieldForm.queryParamValue.$dirty"\r\n class="has-error">\r\n <span ng-show="this.criteriaFieldForm.queryParamValue.$error.required"\r\n class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n <span ng-show="this.criteriaFieldForm.queryParamValue.$error.number"\r\n class="help-block">\r\n {{ \'REQUIRED_INTEGER_FIELD\' | translate }}\r\n </span>\r\n <span ng-show="this.criteriaFieldForm.queryParamValue.$error.date"\r\n class="help-block">\r\n {{ \'INVALID_DATE\' | translate }}\r\n </span>\r\n <span ng-show="this.criteriaFieldForm.queryParamValue.$error.dateValue"\r\n class="help-block">\r\n {{ \'INVALID_DATE_VALUE\' | translate }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div ng-if="booleanCriterion[getCriterionName(queryParam.key)]"\r\n class="form-control-static">\r\n <span class="glyphicon glyphicon-ok"></span>\r\n <input type="hidden"\r\n name="queryParamValue"\r\n ng-model="queryParam.value" />\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div ng-if="canIncludeAssignedTasks()"\r\n class="row">\r\n <div class="col-xs-10 col-xs-offset-2 checkbox">\r\n <label>\r\n <input type="checkbox"\r\n class="form-control"\r\n ng-model="filter.includeAssignedTasks" />\r\n {{ \'FILTER_CRITERIA_INCLUDE_ASSIGNED_TASKS\' | translate }}\r\n </label>\r\n <div class="help-block"\r\n translate="FILTER_CRITERIA_INCLUDE_ASSIGNED_TASKS_HINT"></div>\r\n </div>\r\n </div>\r\n\r\n <div ng-if="query.length > 0"\r\n class="row match-type">\r\n <div class="col-xs-10 col-xs-offset-2">\r\n <button ng-click="switchMatchType()"\r\n class="btn btn-default btn-xs"\r\n ng-disabled="query.length < 2"\r\n type="button">\r\n {{ (filter.matchType === \'all\' ? \'MATCH_TYPE_ALL\' : \'MATCH_TYPE_ANY\') | translate }}\r\n </button>\r\n <span ng-disabled="query.length < 2">{{ \'MATCH_TYPE\' | translate }}</span>\r\n </div>\r\n </div>\r\n</div>\r\n',link:function(i,e,t,n){i.switchMatchType=function(){"any"===i.filter.matchType?i.filter.matchType="all":i.filter.matchType="any"};var r={key:"",value:""};i.criteria=l,i.criteriaExpressionSupport=d,i.criteriaHelp=m,i.booleanCriterion=p,i.query=i.filter.query=i.filter.query||[],i.query=i.filter.query=i.query.filter(function(e){return"includeAssignedTasks"===e.key&&(i.includeAssignedTasks=i.filter.includeAssignedTasks=e.value),"includeAssignedTasks"!==e.key}),i.isQueryParameter=function(e){return"sorting"!==e.key},i.canIncludeAssignedTasks=function(){for(var e=0;e<i.query.length;e++)if(u[i.query[e].key])return!0;return!1},i.$watch("query",function(){i.includeAssignedTasks=i.filter.includeAssignedTasks=i.canIncludeAssignedTasks()&&i.filter.includeAssignedTasks},!0);n.registerHintProvider("filterCriteriaForm",function(){for(var e,t=0;e=a[t];t++){var n=e.queryParamKey,r=e.queryParamValue;if(n.$dirty&&n.$invalid)return!0;if(r.$dirty&&r.$invalid)return!0}return!1});var a=[];i.addForm=function(e){a.push(e)},i.clearKey=function(e){e.key=o(e.key)},i.addCriterion=function(){var e=c(r);i.query.push(e)},i.removeCriterion=function(e){i.filter.query=i.query=n.removeArrayItem(i.query,e),a=n.removeArrayItem(a,e)},i.valueChanged=function(e,t){if(t.$setValidity("number",!0),t.$setValidity("date",!0),t.$setValidity("dateValue",!0),p[e.key])e.value=!0;else if(e.value){t.$pristine&&t.$setViewValue(e.value);var n=o(e.key),r=f[n](e.value);r.valid||t.$setValidity(r.error,!1)}},i.getQueryParamKeys=function(){for(var e,t=[],n=0;e=i.query[n];n++){var r=o(e.key);t.push(r),d[r]&&t.push(r+"Expression")}return t};var o=i.getCriterionName=function(e){return e?e.replace("Expression",""):e},s=i.getCriteriaHelp=function(e){return e=o(e),m[e]};i.isCriteriaHelpAvailable=function(e){return!!s(e)}}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72,"./cam-tasklist-filter-modal-criteria":318,"core-js/modules/es.string.replace":188}],320:[function(e,t,n){"use strict";t.exports=[function(){return{restrict:"A",require:"^camTasklistFilterModalForm",scope:{filter:"=",accesses:"="},template:'<div ng-form class="form-horizontal" role="form" name="filterGeneralForm">\r\n\r\n <div class="row">\r\n <div class="col-xs-8">\r\n <div class="form-group">\r\n\r\n <label for="filterName"\r\n class="col-xs-3 control-label"\r\n translate="FILTER_NAME_LABEL">Name</label>\r\n\r\n <div class="col-xs-9">\r\n <input class="form-control"\r\n name="filterName"\r\n ng-model="filter.name"\r\n type="text"\r\n required\r\n placeholder="{{ \'FILTER_NAME_PLACEHOLDER\' | translate }}"\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n\r\n <span ng-if="this.filterGeneralForm.filterName.$invalid && this.filterGeneralForm.filterName.$dirty"\r\n class="has-error">\r\n <span ng-show="this.filterGeneralForm.filterName.$error.required" class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n </span>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class="col-xs-4">\r\n\r\n <div class="form-group">\r\n\r\n <label for="filter-form-color"\r\n class="col-xs-6 control-label"\r\n translate="FILTER_COLOR_LABEL">Color</label>\r\n\r\n <div class="col-xs-6">\r\n\r\n <input class="form-control"\r\n name="filterColor"\r\n ng-model="filter.properties.color"\r\n ng-pattern="/^#([0-9a-f]{6}|[0-9a-f]{3})$/i"\r\n type="color"\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n\r\n <span ng-if="this.filterGeneralForm.filterColor.$invalid && this.filterGeneralForm.filterColor.$dirty"\r\n class="has-error">\r\n <span ng-show="this.filterGeneralForm.filterColor.$error.pattern" class="help-block">\r\n {{ \'REQUIRED_HEX_COLOR_FIELD\' | translate }}\r\n </span>\r\n </span>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="col-xs-8">\r\n <div class="form-group">\r\n\r\n <label for="filter-form-description"\r\n class="col-xs-3 control-label"\r\n translate="FILTER_DESCRIPTION_LABEL">Description</label>\r\n\r\n <div class="col-xs-9">\r\n <input class="col-xs-9 form-control"\r\n name="filterDescription"\r\n ng-model="filter.properties.description"\r\n type="text"\r\n placeholder="{{ \'FILTER_DESCRIPTION_PLACEHOLDER\' | translate }}"\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class="col-xs-4">\r\n <div class="form-group">\r\n\r\n <label for="filter-form-priority"\r\n class="col-xs-6 control-label"\r\n translate="FILTER_PRIORITY_LABEL">Priority</label>\r\n\r\n <div class="col-xs-6">\r\n <input class="form-control"\r\n name="filterPriority"\r\n ng-model="filter.properties.priority"\r\n ng-pattern="/^-?[\\d]+$/"\r\n type="text"\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n\r\n\r\n <span ng-if="this.filterGeneralForm.filterPriority.$invalid && this.filterGeneralForm.filterPriority.$dirty"\r\n class="has-error">\r\n <span ng-show="this.filterGeneralForm.filterPriority.$error.pattern" class="help-block">\r\n {{ \'REQUIRED_INTEGER_FIELD\' | translate }}\r\n </span>\r\n </span>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="col-xs-offset-2 col-md-offset-10 col-xs-4 col-md-2 checkbox">\r\n <label>\r\n <input class="form-control"\r\n name="filterRefresh"\r\n ng-model="filter.properties.refresh"\r\n type="checkbox"\r\n tooltip-append-to-body="false"\r\n uib-tooltip="{{ \'FILTER_REFRESH_TOOLTIP\' | translate }}"\r\n ng-disabled="filter.id && !accesses.update" />\r\n {{ \'FILTER_REFRESH_LABEL\' | translate }}\r\n </label>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n',link:function(e,t,n,r){var i=e.filterGeneralForm,a=[];a.push(i.filterColor),a.push(i.filterName),a.push(i.filterPriority),a.push(i.filterDescription),a.push(i.filterRefresh);r.registerHintProvider("filterGeneralForm",function(){for(var e,t=0;e=a[t];t++)if(e.$dirty&&e.$invalid)return!0;return!1})}}}]},{}],321:[function(e,t,n){"use strict";var T=e("../../../../../../camunda-commons-ui/vendor/angular"),M=T.copy;t.exports=["camAPI","$q","$timeout",function(C,A,_){return{restrict:"A",require:"^camTasklistFilterModalForm",scope:{filter:"=",accesses:"=",filterModalFormData:"=",isOpen:"="},template:'<div ng-form class="form-horizontal" name="filterPermissionForm" role="form">\r\n\r\n <div ng-show="!authorizationState.$loaded && !authorizationState.$error"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n </div>\r\n\r\n <div ng-show="authorizationState.$error" uib-alert class="alert alert-danger" role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <strong class="status">{{ \'FAILURE\' | translate }}:</strong>\r\n <span class="message">{{ \'FILTER_FORM_PERMISSIONS_LOADING_FAILURE\' | translate }}</span>\r\n </div>\r\n\r\n <div ng-show="authorizationState.$loaded && !authorizationState.$error">\r\n\r\n <div uib-alert class="alert alert-warning">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <span>{{ \'FILTER_FORM_PERMISSIONS_EDIT_HINT\' | translate }}</span>\r\n </div>\r\n\r\n <div class="global-access checkbox form-control-static"\r\n ng-show="!filter.id || (filter.id && accesses.update)">\r\n <label>\r\n <input type="checkbox"\r\n class="form-control"\r\n ng-model="isGlobalReadAuthorization"\r\n ng-change="globalReadAuthorizationChanged()"\r\n ng-disabled="filter.id && !accesses.update" />\r\n {{ \'FILTER_FORM_PERMISSIONS_GLOBAL\' | translate }}\r\n </label>\r\n </div>\r\n\r\n <div class="user-read-permissions"\r\n ng-show="(!filter.id || (filter.id && accesses.update)) && !isGlobalReadAuthorization">\r\n <div class="form-group labels-left">\r\n <div class="col-xs-2 align-right">\r\n <button class="btn btn-link"\r\n ng-click="addReadPermission()"\r\n type="button"\r\n ng-disabled="disableAddButton()">\r\n <span class="hidden-sm hidden-xs">{{ \'ADD_PERMISSION\' | translate }}</span>\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n </button>\r\n </div>\r\n\r\n <label class="col-xs-2 control-label">\r\n {{ \'FILTER_FORM_PERMISSION_GROUP_USER\' | translate }}\r\n </label>\r\n <label class="col-xs-8 control-label">\r\n {{ \'FILTER_FORM_PERMISSION_IDENTIFIER\' | translate }}\r\n </label>\r\n </div>\r\n\r\n <div class="form-group"\r\n ng-repeat="auth in getReadAuthorizations(authorizations)">\r\n <div class="col-xs-2 row-action"\r\n ng-show="!filter.id || (filter.id && accesses.update)">\r\n <button class="btn btn-link btn-remove"\r\n ng-if="!isGlobalReadAuthorization"\r\n ng-click="removeReadPermission(auth)">\r\n <span class="hidden-sm hidden-xs">\r\n {{ \'FILTER_FORM_PERMISSIONS_REMOVE\' | translate }}\r\n </span>\r\n <span class="glyphicon glyphicon-remove-sign"></span>\r\n </button>\r\n </div>\r\n\r\n <div class="col-xs-2">\r\n <span class="fake-button">\r\n <span class="glyphicon"\r\n ng-class="\'glyphicon-\' + (!!auth.userId ? \'user\' : \'th\')"></span>\r\n </span>\r\n </div>\r\n\r\n <div class="form-control-static"\r\n ng-class="{ \'col-xs-8\': !filter.id || (filter.id && accesses.update) , \'col-xs-10\': !(!filter.id || (filter.id && accesses.update)) }">\r\n\r\n {{ (auth.userId || auth.groupId) }}\r\n </div>\r\n </div>\x3c!-- repeat auth --\x3e\r\n\r\n <div class="form-group new-permission"\r\n ng-if="showNewPermissionFields">\r\n <div class="col-xs-2 col-xs-offset-2">\r\n <button class="btn btn-default"\r\n type="button"\r\n tooltip-append-to-body="false"\r\n uib-tooltip="{{ \'FILTER_FORM_PERMISSIONS_IDENTITY_TYPE_TOOLTIP\' | translate }}: {{ (newPermission.type === \'user\' ? \'FILTER_FORM_PERMISSIONS_IDENTITY_TYPE_USER\' : \'FILTER_FORM_PERMISSIONS_IDENTITY_TYPE_GROUP\') | translate }}"\r\n ng-click="switchType()"\r\n ng-disabled="isGlobalReadAuthorization">\r\n <span class="glyphicon"\r\n ng-class="newPermission.type === \'user\' ? \'glyphicon-user\' : \'glyphicon-th\'"></span>\r\n </button>\r\n </div>\r\n\r\n <div class="col-xs-8">\r\n <input type="text"\r\n name="newPermission"\r\n placeholder="{{ (newPermission.type === \'user\' ? \'FILTER_FORM_PERMISSIONS_USER_ID\' : \'FILTER_FORM_PERMISSIONS_GROUP_ID\') | translate }}"\r\n class="form-control"\r\n ng-model="newPermission.id"\r\n ng-change="validateNewPermission()"\r\n ng-keydown="keyPressed($event)"\r\n ng-readonly="isGlobalReadAuthorization"\r\n ng-disabled="filter.id && !accesses.update" />\r\n\r\n <div ng-if="this.filterPermissionForm.newPermission.$invalid && this.filterPermissionForm.newPermission.$dirty"\r\n class="has-error">\r\n <span ng-show="this.filterPermissionForm.newPermission.$error.required"\r\n class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n <span ng-show="this.filterPermissionForm.newPermission.$error.duplicate && newPermission.type === \'user\'"\r\n class="help-block">\r\n {{ \'FILTER_FORM_PERMISSIONS_DUPLICATE_USER\' | translate }}\r\n </span>\r\n <span ng-show="this.filterPermissionForm.newPermission.$error.duplicate && newPermission.type === \'group\'"\r\n class="help-block">\r\n {{ \'FILTER_FORM_PERMISSIONS_DUPLICATE_GROUP\' | translate }}\r\n </span>\r\n </div>\r\n </div>\r\n </div>\x3c!-- new perm --\x3e\r\n\r\n <ul uib-pagination\r\n\r\n class="pagination-sm"\r\n ng-if="pages.total > pages.size"\r\n\r\n page="pages.current"\r\n ng-model="pages.current"\r\n ng-change="onPaginationChange(pages)"\r\n\r\n total-items="pages.total"\r\n items-per-page="pages.size"\r\n\r\n max-size="7"\r\n boundary-links="true"></ul>\r\n </div>\r\n\r\n </div>\r\n\r\n</div>\r\n',link:function(c,s,e,t){c.showNewPermissionFields=!1,c.$watch("isOpen",function(e,t){c.disableAddButton()||e||!t||c.addReadPermission(),c.showNewPermissionFields=!1}),c.$on("pre-submit",function(){c.disableAddButton()||c.addReadPermission(),c.showNewPermissionFields=!1});var u=C.resource("authorization"),n=c.filterModalFormData.newChild(c);c.onPaginationChange=function(e){c.authorizations=[],c.pages.current=e.current,n.changed("authorizations")};var r=c.pages=T.copy({size:50,total:0,current:1}),i=c.filterPermissionForm,p=null,a=null,l=null,d=null,m={resourceType:5,permissions:["READ"]},f=c.newPermission=M({type:"user",id:null});t.registerHintProvider("filterPermissionForm",function(){var e=v();return e&&e.$error&&e.$error.duplicate}),n.provide("authorizations",["filter",function(e){var n=A.defer();return e&&e.id?(u.count({resourceType:5,resourceId:e.id},function(e,t){e?n.reject(e):r.total=t}),u.list({resourceType:5,resourceId:e.id,maxResults:r.size,firstResult:r.size*(r.current-1)},function(e,t){e?n.reject(e):n.resolve(t)})):n.resolve([]),n.promise}]),c.authorizationState=n.observe("authorizations",function(e){(function(e){for(var t,n=0;t=e[n];n++)t.$permissions=M(t.permissions||[])})(p=c.authorizations=M(e)||[]),a=function(e){for(var t,n=0;t=e[n];n++)if(y(t))return t}(p),c.isGlobalReadAuthorization=w(a),l=E(p,"groupId"),d=E(p,"userId")}),c.globalReadAuthorizationChanged=function(){c.isGlobalReadAuthorization?(a?k(a):(a=T.extend({userId:"*",type:0},m),p.push(a)),f.id=null,o()):a&&S(a)},c.switchType=function(){f.type="user"===f.type?"group":"user",o()},c.getReadAuthorizations=function(e){if(e)return function(e){for(var t,n=[],r=0;t=e[r];r++)b(t)&&!x(t)&&w(t)&&n.push(t);return n}(e)};var o=c.validateNewPermission=function(){var e=v();if(e){e.$setValidity("authorization",!0),e.$setValidity("duplicate",!0);var t=f.id;if(t){var n=("user"===f.type?d:l)[t];if(n&&w(n))return e.$setValidity("duplicate",!1)}}};c.disableAddButton=function(){if(!c.showNewPermissionFields)return!1;var e=v();return c.isGlobalReadAuthorization||!f.id||e&&e.$error&&e.$error.duplicate};var h=c.addReadPermission=function(){if(!c.showNewPermissionFields)return c.showNewPermissionFields=!0,void _(function(){var e=s[0].querySelector(".new-permission button");e&&e.focus()});var e=v(),t=f.id,n="user"===f.type?d:l,r=n[t];if(r){k(r);var i=p;p=c.authorizations=[];for(var a,o=0;a=i[o];o++)a!==r&&p.push(a);p.push(r)}else{(r={type:1})["user"===f.type?"userId":"groupId"]=t,T.extend(r,m),p.push(r),n[t]=r}f.id=null,e.$setValidity("authorization",!0),e.$setPristine(),_(function(){var e=s[0].querySelector(".new-permission button");e&&e.focus()})};c.keyPressed=function(e){if(13===e.keyCode){e.preventDefault&&e.preventDefault();var t=v();return f.id&&t&&(!t.$error||!t.$error.duplicate)&&h()}},c.removeReadPermission=function(e){S(e),o(),s[0].querySelector(".global-access input").focus()};var g=[];function v(){return i.newPermission}function y(e){return e&&0===e.type}function b(e){return e&&1===e.type}function x(e){return"*"===((e=e||{}).userId||e.groupId)}function w(e){if(e&&e.permissions)for(var t,n=e.permissions,r=0;t=n[r];r++)if("READ"===t||"ALL"===t)return!0;return!1}function E(e,t){for(var n,r=function(e,t){for(var n,r=[],i=0;n=e[i];i++)b(n)&&n[t]&&!x(n)&&r.push(n);return r}(e,t),i={},a=0;n=r[a];a++){i[n[t]]=n}return i}function k(e){if(e){var t=e.permissions;t&&t.length?t&&1===t.length?e.permissions=e.permissions.concat(["READ"]):e.permissions=["ALL"]:e.permissions=["READ"]}}function S(e){if(e){var t=e.permissions;if(t&&1===t.length){var n=t[0];"ALL"===n?e.permissions=["UPDATE","DELETE"]:"READ"===n&&(e.permissions=[])}else{e.permissions=[];for(var r,i=0;r=t[i];i++)"READ"!==r&&e.permissions.push(r)}}}t.registerPostFilterSavedProvider(function(e,t){var n=[];if(g=[],c.isGlobalReadAuthorization)for(var r,i=0;r=p[i];i++)b(r)&&w(r)&&S(r);for(var a,o=0;a=p[o];o++){var s=a.permissions,l=a.$permissions;(b(a)||y(a))&&(a.id?!s.length&&l.length?n.push({type:"delete",authorization:a}):s.length!==l.length&&n.push({type:"update",authorization:a}):s.length&&n.push({type:"create",authorization:a}))}(function(e,t){var a=A.defer(),o=(e=e||[]).length;function n(n,r){var i=r.$permissions;delete r.$permissions,delete r.$$hashKey,r.resourceId=r.resourceId||t.id;function e(e,t){--o,e?(g.push({status:"FILTER_FORM_PERMISSIONS_SAVE_ERROR",error:e}),r.$permissions=i):"create"===n?(r.id=t.id,r.permissions=M(t.permissions||[]),r.$permissions=M(t.permissions||[])):("delete"===n&&(r.id=null),r.permissions=M(r.permissions||[]),r.$permissions=M(r.permissions||[])),0===o&&a.resolve()}"create"===n?u.create(r,e):"update"===n?u.update(r,e):"delete"===n&&u.delete(r.id,e)}0===o&&a.resolve();for(var r,i=0;r=e[i];i++){var s=r.type,l=r.authorization;n(s,l)}return a.promise})(n,e).then(function(){if(g&&g.length||(g=null),"function"==typeof t)return t(g)}).catch(T.noop)})}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],322:[function(e,t,n){"use strict";var o=e("../../../../../../camunda-commons-ui/vendor/angular").copy;t.exports=[function(){return{restrict:"A",require:"^camTasklistFilterModalForm",scope:{filter:"=",accesses:"="},template:'<div ng-form class="form-horizontal" name="filterVariableForm" role="form">\r\n\r\n <div ng-show="variables.length > 5"\r\n uib-alert class="alert alert-warning"\r\n role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n {{ \'FILTER_VARIABLES_AMOUNT_WARNING\' | translate }}\r\n </div>\r\n\r\n\r\n <div class="row labels-left">\r\n <div class="col-xs-12">\r\n <div class="undefined-variable checkbox">\r\n <label>\r\n <input type="checkbox"\r\n class="form-control"\r\n ng-model="filter.properties.showUndefinedVariable" />\r\n {{ \'FILTER_FORM_VARIABLES_SHOW_UNDEFINED\' | translate }}\r\n </label>\r\n </div>\r\n </div>\r\n\r\n <div class="col-xs-2 row-action" ng-show="!filter.id || (filter.id && accesses.update)">\r\n <a ng-click="addVariable()"\r\n href>\r\n <span class="hidden-sm hidden-xs">{{ \'FILTER_ADD_VARIABLE\' | translate }}</span>\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n </a>\r\n </div>\r\n\r\n <div ng-class="{ \'col-xs-10\': !filter.id || (filter.id && accesses.update) , \'col-xs-12\': !(!filter.id || (filter.id && accesses.update)) }">\r\n <div class="form-group" ng-show="variables.length">\r\n <label class="col-xs-6 control-label"\r\n translate="FILTER_VARIABLE_NAME">Name</label>\r\n <label class="col-xs-6 control-label"\r\n translate="FILTER_VARIABLE_LABEL">Label</label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div ng-repeat="(delta, variable) in variables" class="row">\r\n\r\n <div ng-form name="variableFieldForm">\r\n <div ng-init="addForm(this.variableFieldForm)"></div>\r\n\r\n <div class="col-xs-2 row-action" ng-show="!filter.id || (filter.id && accesses.update)">\r\n <a ng-click="removeVariable(delta)"\r\n href>\r\n <span class="hidden-sm hidden-xs">{{ \'FILTER_REMOVE_VARIABLE\' | translate }}</span>\r\n <span class="glyphicon glyphicon-remove-sign"></span>\r\n </a>\r\n </div>\r\n\r\n\r\n <div ng-class="{ \'col-xs-10\': !filter.id || (filter.id && accesses.update) , \'col-xs-12\': !(!filter.id || (filter.id && accesses.update)) }">\r\n <div class="form-group">\r\n\r\n <div class="col-xs-6">\r\n\r\n <input class="form-control"\r\n type="text"\r\n name="variableName"\r\n ng-model="variable.name"\r\n placeholder="{{ \'FILTER_VARIABLE_NAME_PLACEHOLDER\' | translate }}"\r\n required\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n\r\n <div ng-if="this.variableFieldForm.variableName.$invalid && this.variableFieldForm.variableName.$dirty"\r\n class="has-error">\r\n <span ng-show="this.variableFieldForm.variableName.$error.required" class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class="col-xs-6">\r\n <input class="form-control"\r\n type="text"\r\n name="variableLabel"\r\n ng-model="variable.label"\r\n placeholder="{{ \'FILTER_VARIABLE_LABEL_PLACEHOLDER\' | translate }}"\r\n required\r\n ng-readonly="filter.id && !accesses.update"\r\n ng-disabled="filter.id && !accesses.update" />\r\n <div ng-if="this.variableFieldForm.variableLabel.$invalid && this.variableFieldForm.variableLabel.$dirty"\r\n class="has-error">\r\n <span ng-show="this.variableFieldForm.variableLabel.$error.required" class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n',link:function(t,e,n,r){var i={name:"",label:""};t.filter.properties.showUndefinedVariable=t.filter.properties.showUndefinedVariable||!1,t.variables=t.filter.properties.variables=t.filter.properties.variables||[];r.registerHintProvider("filterVariableForm",function(){for(var e,t=0;e=a[t];t++){var n=e.variableName,r=e.variableLabel;if(n.$dirty&&n.$invalid)return!0;if(r.$dirty&&r.$invalid)return!0}return!1});var a=[];t.addForm=function(e){a.push(e)},t.addVariable=function(){var e=o(i);t.variables.push(e)},t.removeVariable=function(e){t.filter.properties.variables=t.variables=r.removeArrayItem(t.variables,e),a=r.removeArrayItem(a,e)}}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],323:[function(e,t,n){"use strict";function r(){}var l=e("../../../../../../camunda-commons-ui/vendor/angular").isArray;t.exports=[function(){return{restrict:"A",scope:{filter:"=",filterModalData:"=",registerIsValidProvider:"&",registerPostFilterSavedProvider:"&"},template:'<form name="filterForm" role="form">\r\n\r\n <uib-accordion close-others="true">\r\n\r\n <div uib-accordion-group is-open="group.general" class="panel-default">\r\n\r\n <uib-accordion-heading>\r\n {{ \'FILTER_FORM_BASICS\' | translate }}\r\n <span class="glyphicon glyphicon-exclamation-sign"\r\n ng-show="showHint(\'filterGeneralForm\')"></span>\r\n </uib-accordion-heading>\r\n\r\n <div class="task-filter-hint text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'FILTER_FORM_BASICS_HINT\' | translate }}\r\n </div>\r\n\r\n <div cam-tasklist-filter-modal-form-general\r\n filter="filter"\r\n accesses="accesses">\r\n </div>\r\n\r\n </div>\r\n\r\n <div uib-accordion-group is-open="group.criteria" class="panel-default">\r\n <uib-accordion-heading>\r\n {{ \'FILTER_FORM_CRITERIA\' | translate }}\r\n <span class="glyphicon glyphicon-exclamation-sign"\r\n ng-show="showHint(\'filterCriteriaForm\')"></span>\r\n </uib-accordion-heading>\r\n\r\n <div class="task-filter-hint text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'FILTER_FORM_CRITERIA_HINT\' | translate }}\r\n </div>\r\n\r\n <div cam-tasklist-filter-modal-form-criteria\r\n filter="filter"\r\n accesses="accesses">\r\n </div>\r\n\r\n </div>\r\n\r\n <div uib-accordion-group is-open="group.permission" class="panel-default">\r\n <uib-accordion-heading>\r\n {{ \'FILTER_FORM_PERMISSIONS\' | translate }}\r\n <span class="glyphicon glyphicon-exclamation-sign"\r\n ng-show="showHint(\'filterPermissionForm\')"></span>\r\n </uib-accordion-heading>\r\n\r\n <div class="task-filter-hint text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'FILTER_FORM_PERMISSIONS_HINT\' | translate }}\r\n </div>\r\n\r\n <div cam-tasklist-filter-modal-form-permission\r\n filter="filter"\r\n accesses="accesses"\r\n filter-modal-form-data="filterModalFormData"\r\n is-open="group.permission">\r\n </div>\r\n\r\n </div>\r\n\r\n <div uib-accordion-group is-open="group.variable" class="panel-default">\r\n <uib-accordion-heading>\r\n {{ \'FILTER_FORM_VARIABLES\' | translate }}\r\n <span class="glyphicon glyphicon-exclamation-sign"\r\n ng-show="showHint(\'filterVariableForm\')"></span>\r\n </uib-accordion-heading>\r\n\r\n <div class="task-filter-hint text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'FILTER_FORM_VARIABLES_HINT\' | translate }}\r\n </div>\r\n\r\n <div cam-tasklist-filter-modal-form-variable\r\n filter="filter"\r\n accesses="accesses">\r\n </div>\r\n\r\n </div>\r\n\r\n </uib-accordion>\r\n\r\n</form>\r\n\r\n',controller:["$scope",function(t){var e=t.filterModalFormData=t.filterModalData.newChild(t);t.registerIsValidProvider=t.registerIsValidProvider()||r,t.registerPostFilterSavedProvider=t.registerPostFilterSavedProvider()||r;t.group={general:!0,permission:!1,criteria:!1,variable:!1},e.observe("accesses",function(e){t.accesses=e});t.registerIsValidProvider(function(){return t.filterForm.$valid});var n={};this.registerHintProvider=function(e,t){t=t||r,n[e]=t},t.showHint=function(e){var t=n[e];return t&&t()};var s=[];this.registerPostFilterSavedProvider=function(e){s.push(e||function(e,t){return t()})};t.registerPostFilterSavedProvider(function(e,t){var n=s.length;if(0===n)return t();for(var r,i=[],a=function(e){if(--n,e&&(l(e)?e.length&&(i=i.concat(e)):i.push(e)),0===n){if(1===i.length)return t(i[0]);if(i.length)return t(i);t()}},o=0;r=s[o];o++)r(e,a)}),this.removeArrayItem=function(e,t){var n=[];for(var r in e)r!=t&&n.push(e[r]);return n}}]}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],324:[function(e,t,n){"use strict";function u(){}t.exports=[function(){return{restrict:"A",scope:{filtersData:"=",openModal:"&",userCanCreateFilter:"="},template:'<div ng-show="!state.$loaded && !state.$error"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n</div>\r\n\r\n<div ng-show="state.$error" uib-alert class="alert alert-danger" role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <strong class="status">{{ \'FAILURE\' | translate }}:</strong>\r\n <span class="message">{{ \'FILTERS_LOADING_FAILURE\' | translate }}</span>\r\n</div>\r\n\r\n<div ng-show="state.$loaded && !state.$error"\r\n class="list-unstyled">\r\n\r\n <div ng-hide="totalItems"\r\n class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'NO_AVAILABLE_FILTER\' | translate }}\r\n <div class="add-initial-filter" ng-if="userCanCreateFilter">\r\n <a class="filter-hint"\r\n ng-click="addAllFilter()">\r\n <span class="glyphicon glyphicon-plus"></span>\r\n {{ \'ADD_FILTER_HINT\' | translate }}\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <div ng-show="totalItems"\r\n ng-repeat="(delta, filter) in filters"\r\n class="item task-filter cells-wrapper"\r\n ng-class="{active: isFocused(filter)}"\r\n ng-style="filter.style"\r\n ng-click="focus(filter)">\r\n\r\n <h4 class="name"\r\n uib-tooltip="{{ filter.properties.description }}"\r\n tooltip-placement="top">\r\n <a href\r\n ng-style="{color: filter.properties.color}">\r\n {{ filter.name }}\r\n\r\n <span ng-show="isFocused(filter)"\r\n class="counter">{{ filterCount }}</span>\r\n </a>\r\n </h4>\r\n\r\n <div class="actions"\r\n ng-style="{visibility: isFocused(filter) ? \'visible\' : \'hidden\'}">\r\n <a ng-click="openModal($event, filter)"\r\n uib-tooltip="{{ \'FILTER_DETAILS\' | translate }}"\r\n tooltip-placement="top"\r\n href>\r\n <span class="glyphicon glyphicon-pencil"></span>\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <ul uib-pagination\r\n ng-if="page.total > page.size"\r\n class="pagination-sm"\r\n\r\n page="page.current"\r\n ng-model="page.current"\r\n ng-change="onPaginationchange(page)"\r\n\r\n total-items="page.total"\r\n items-per-page="page.size"\r\n\r\n max-size="3"\r\n boundary-links="false"></ul>\r\n</div>\r\n',controller:["$scope","search","camAPI","Uri","Notifications","$translate",function(r,t,e,n,i,a){var o=r.filtersData=r.filtersData.newChild(r),s=r.page={total:0,current:t().filterPage||1,size:50};function l(){r.filters=r.allFilters.slice((s.current-1)*s.size,s.current*s.size),t.updateSilently({filterPage:1===s.current?null:s.current})}r.openModal=r.openModal()||u;var c=e.resource("filter");r.$on("$locationChangeSuccess",function(){var e=t();e&&e.filterPage&&e.filterPage!==s.current&&(s.current=e.filterPage,l())}),o.observe("taskList",function(e){r.filterCount=e.count}),r.state=o.observe("filters",function(e){s.total=r.totalItems=e.length;for(var t,n=0;t=e[n];n++)t.style={"z-index":e.length+10-n};r.allFilters=e.sort(function(e,t){return(e.properties.priority||0)-(t.properties.priority||0)}),l()}),r.onPaginationchange=function(){l()},o.observe("currentFilter",function(e){r.currentFilter=e}),r.focus=function(e){r.filterCount=void 0,t.updateSilently({filter:e.id}),o.changed("currentFilter")},r.isFocused=function(e){return e.id===r.currentFilter.id},r.addAllFilter=function(){return a("ALL_TASKS").then(function(e){var t={name:e,resourceType:"Task",query:{},properties:{description:"Unfiltered Tasks",priority:1,color:"#555555",refresh:!1,howUndefinedVariable:!1}};return c.create(t)}).then(function(){r.filtersData.changed("filters")}).catch(function(t){return a("FILTER_SAVE_ERROR").then(function(e){i.addError({status:e,message:t.message||""})}).catch(function(){})})}}]}}]},{}],325:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./directives/cam-tasklist-filters"),a=e("./directives/cam-tasklist-filter-modal-form"),o=e("./directives/cam-tasklist-filter-modal-form-general"),s=e("./directives/cam-tasklist-filter-modal-form-criteria"),l=e("./directives/cam-tasklist-filter-modal-form-variable"),c=e("./directives/cam-tasklist-filter-modal-form-permission"),u=e("./controllers/cam-tasklist-filters-ctrl"),p=e("./modals/cam-tasklist-filter-modal"),d=r.module("cam.tasklist.filter",["ui.bootstrap"]);d.directive("camTasklistFilters",i),d.directive("camTasklistFilterModalForm",a),d.directive("camTasklistFilterModalFormGeneral",o),d.directive("camTasklistFilterModalFormCriteria",s),d.directive("camTasklistFilterModalFormVariable",l),d.directive("camTasklistFilterModalFormPermission",c),d.controller("camFiltersCtrl",u),d.controller("camFilterModalCtrl",p),t.exports=d},{"../../../../../camunda-commons-ui/vendor/angular":72,"./controllers/cam-tasklist-filters-ctrl":317,"./directives/cam-tasklist-filter-modal-form":323,"./directives/cam-tasklist-filter-modal-form-criteria":319,"./directives/cam-tasklist-filter-modal-form-general":320,"./directives/cam-tasklist-filter-modal-form-permission":321,"./directives/cam-tasklist-filter-modal-form-variable":322,"./directives/cam-tasklist-filters":324,"./modals/cam-tasklist-filter-modal":326}],326:[function(e,t,n){"use strict";var E=e("../../../../../../camunda-commons-ui/vendor/angular"),k=E.copy,S=E.forEach,C=E.isArray,A=E.isObject,_=/Like$/;function T(e,t){_.test(e)&&("%"!==t[0]&&(t="%"+t),"%"!==t[t.length-1]&&(t+="%"));return t}var M=["createdBefore","createdAfter","dueBefore","dueAfter","followUpBefore","followUpAfter"],D=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})([+-][0-9]{4}|Z)$/,I=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})$/,r=/Variables$/;function R(e){return r.test(e)}var N=/^[\s]*([#$]){/;t.exports=["$scope","$translate","$q","Notifications","camAPI","filter","filtersData","fixDate","unfixDate",function(c,r,t,i,e,n,a,u,o){var p=e.resource("filter"),s=c.filterModalData=a.newChild(c);c.$on("$locationChangeStart",function(){c.$dismiss()}),c.deletion=!1,c.filter=k(n||{}),c.filter.name=c.filter.name,c.filter.matchType=c.filter.matchType,c.filter.properties=c.filter.properties||{},c.filter.properties.description=c.filter.properties.description,c.filter.properties.priority=parseInt(c.filter.properties.priority||0,10),c.filter.properties.color=c.filter.properties.color||"#555555",c.filter.properties.refresh=c.filter.properties.refresh||!1,c.filter.properties.showUndefinedVariable=c.filter.properties.showUndefinedVariable||!1;var d=c.filter.id;c.filter.properties.variables=c.filter.properties.variables||[];var l=c.filter.query=c.filter.query||{};l.orQueries&&0<l.orQueries.length?(l=l.orQueries[0],c.filter.matchType="any"):(delete l.orQueries,c.filter.matchType="all");var m,f,h=[],g=[];for(var v in l){var y=l[v];R(v)?g.push({key:v,value:y}):(m=v,f=y,_.test(m)&&("%"===f[0]&&(f=f.slice(1,f.length)),"%"===f.slice(-1)&&(f=f.slice(0,-1))),y=f,-1!==M.indexOf(v)&&D.test(y)&&(y=o(y)),h.push({key:v,value:y}))}c.filter.query=h,s.provide("filter",c.filter),s.provide("userFilterAccess",["filter",function(e){var n=t.defer();return e&&e.id?p.authorizations(e.id,function(e,t){e?n.reject(e):n.resolve(t)}):n.resolve({links:[]}),n.promise}]),s.provide("accesses",["userFilterAccess",function(e){var t={};return S(e.links,function(e){t[e.rel]=!0}),t}]),s.observe("accesses",function(e){c.accesses=e});function b(){return!1}c.isValid=b,c.registerValidationProvider=function(e){c.isValid=e||b};var x=function(e,t){return t()};function w(e,t,n){r(e).then(function(e){i.addError({status:e,message:t?t.message:"",exclusive:n,scope:c})}).catch(E.noop)}c.registerPostFilterSavedProvider=function(e){x=e||x},c.submit=function(){c.$broadcast("pre-submit");for(var e,t,n=(c.filter.query||[]).concat(g),r={},i=0;e=n[i];i++){var a=e.key,o=e.value;if(!R(a)&&"sorting"!==a)if(o=T(a,o),-1!==M.indexOf(a)&&I.test(o)&&(o=u(o)),t=o,N.test(t)?-1===a.indexOf("Expression")&&(a+="Expression"):-1!==a.indexOf("Expression")&&(a=a.slice(0,a.indexOf("Expression"))),"candidateGroups"===a||"In"===a.slice(-2)){if("string"==typeof o){o=o.split(",");for(var s=0;s<o.length;s++)o[s]&&(o[s]=o[s].trim())}}else o=""+o;r[a]=o}c.filter.includeAssignedTasks&&(r.includeAssignedTasks=!0),"any"===c.filter.matchType&&(r={orQueries:[r]});var l={id:d,name:c.filter.name,resourceType:"Task",query:r,properties:{description:c.filter.properties.description,priority:parseInt(c.filter.properties.priority||0,10),color:c.filter.properties.color||"#555555",refresh:c.filter.properties.refresh,variables:c.filter.properties.variables,showUndefinedVariable:c.filter.properties.showUndefinedVariable}};!function t(n){return S(Object.keys(n),function(e){"$"===e[0]||C(n[e])&&!n[e].length?delete n[e]:(A(n[e])||C(n[e]))&&(n[e]=t(n[e]))}),n}(l),p.save(l,function(e,t){if(e)return w("FILTER_SAVE_ERROR",e,!0);l.id=d=d||t.id,x(l,function(e){if(e)if(C(e)&&e.length)for(var t,n=0;t=e[n];n++)w(t.status,t.error,0===n);else w(e.status,e.error,!0);else c.$close()})})},c.abortDeletion=function(){c.deletion=!1},c.confirmDeletion=function(){c.deletion=!0},c.delete=function(){p.delete(c.filter.id,function(e){if(e)return w("FILTER_DELETION_ERROR",e,!0);c.$close()})}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],327:[function(e,t,n){"use strict";var h=e("../../../../../../camunda-commons-ui/vendor/angular"),g=e("jquery");t.exports=["CamForm","camAPI","$timeout","Uri",function(p,d,m,f){return{restrict:"A",require:"^camTasklistForm",scope:!0,template:'<div class="form-container" ng-keypress="formKeyPressed($event)">\r\n</div>\r\n',link:function(i,e,t,a){var n=g(e[0]).find(".form-container"),o=null,s=null,l=i.form={$valid:!1,$invalid:!0};i.$watch("asynchronousFormKey",function(e){e&&e.loaded&&function(e,t,n){var r=t.key;delete(n=h.copy(n)).processDefinitionKey,h.extend(n,{urlParams:{userId:i.$root.authentication.name,engineName:f.appUri(":engine")},containerElement:e,client:d,formUrl:r,done:c}),n.taskId&&(n.urlParams.taskId=n.taskId);o=new p(n)}(n,e,a.getParams()),e&&e.failure&&a.notifyFormInitializationFailed(e.error)},!0),i.$watch(function(){return l&&l.$valid},function(e){a.notifyFormValidated(!e)}),i.$watch(function(){return l&&l.$dirty},function(e){a.notifyFormDirty(e)});var c=function(e,t){if(e)return a.notifyFormInitializationFailed(e);o=t,s=h.copy(o.variableManager.variables);var n=t.formElement.attr("name"),r=t.formElement.scope();r&&((l=r[n]).$setPristine(),a.notifyFormInitialized(),i.$root.$broadcast("embedded.form.rendered"))};i.$on("shortcut:focusForm",function(){if(o){var e=o.formElement[0].querySelectorAll("input")[0];e&&e.focus()}}),i.formKeyPressed=function(e){if(e.ctrlKey&&(13===e.keyCode||10===e.keyCode))return a.attemptComplete()};function r(n){return function(e,t){return e&&function(){var e=o.variableManager.variables;for(var t in e)o.variableManager.destroyVariable(t);o.variableManager.variables=h.copy(s)}(),n(e,t)}}function u(e){l.$setPristine(),o.store(),e&&m(function(){h.element(e.target).triggerHandler(g.Event("mouseleave"))})}a.registerCompletionHandler(function(e){o.submit(r(e))}),a.registerSaveHandler(u),i.$on("authentication.login.required",function(){u()})}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72,jquery:"jquery"}],328:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");t.exports=["$location",function(p){return{restrict:"A",require:"^camTasklistForm",scope:!0,template:'<div class="text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ EXTERNAL_FORM_NOTE | translate }}\r\n</div>\r\n\r\n<a ng-href="{{ externalFormUrl }}"\r\n class="external-form">\r\n {{ \'EXTERNAL_FORM_LINK\' |translate }}\r\n <span class="glyphicon glyphicon-folder-open"></span>\r\n</a>\r\n',link:function(c,e,t,u){u.notifyFormValidated(!0),c.externalFormUrl=null,c.EXTERNAL_FORM_NOTE=null,c.$watch(function(){return u.getTasklistForm()&&u.getParams()},function(e){if(e){var t=u.getTasklistForm(),n=u.getParams(),r=t.key,i=n.taskId,a=n.processDefinitionKey,o=null;if(i)o="taskId="+i,c.EXTERNAL_FORM_NOTE="TASK_EXTERNAL_FORM_NOTE";else{if(!a)return u.notifyFormInitializationFailed({message:"INIT_EXTERNAL_FORM_FAILED"});o="processDefinitionKey="+a,c.EXTERNAL_FORM_NOTE="PROCESS_EXTERNAL_FORM_NOTE"}var s=p.absUrl(),l=p.url();s=s.replace(l,"/"),c.externalFormUrl=encodeURI(r+"?"+o+"&callbackUrl="+s),u.notifyFormInitialized()}}),c.$watch(function(){return u.getOptions()},function(e){e&&(e.hideCompleteButton=!0)})}}}]},{"core-js/modules/es.string.replace":188}],329:[function(e,t,n){"use strict";var h=e("../../../../../../camunda-commons-ui/vendor/angular");t.exports=["camAPI","Notifications","$translate","unfixDate",function(p,d,m,f){return{restrict:"A",require:"^camTasklistForm",template:'<form name="genericForm"\r\n class="form-horizontal">\r\n\r\n <div class="form-group"\r\n ng-if="showBusinessKey">\r\n <label for="business-key-field"\r\n translate="BUSINESS_KEY"\r\n class="control-label col-xs-2">Business key</label>\r\n <div class="col-xs-10">\r\n <input type="text"\r\n ng-readonly="readonly"\r\n ng-model="businessKey"\r\n id="business-key-field"\r\n cam-business-key\r\n class="form-control" />\r\n </div>\r\n </div>\r\n\r\n <div class="form-group labels-left">\r\n <div class="col-xs-2 row-action">\r\n <a href\r\n ng-click="addVariable()"\r\n ng-disabled="options.disableAddVariableButton">\r\n <span class="hidden-xs hidden-sm"\r\n translate="ADD_VARIABLE">Add variable</span>\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n </a>\r\n </div>\r\n\r\n\r\n\r\n <div class="col-xs-10"\r\n ng-if="variables.length">\r\n <div class="row">\r\n <label class="control-label col-xs-4"\r\n translate="NAME">Name</label>\r\n\r\n\r\n\r\n <label class="control-label col-xs-4"\r\n translate="TYPE">Type</label>\r\n\r\n\r\n\r\n <label class="control-label col-xs-4"\r\n translate="VALUE">Value</label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n <div ng-if="variables.length"\r\n ng-repeat="(delta, variable) in variables"\r\n class="form-group"\r\n ng-form="repeatForm">\r\n\r\n <div class="col-xs-2 row-action">\r\n <a href\r\n ng-click="removeVariable(delta)"\r\n ng-if="!variable.fixedName">\r\n <span class="hidden-sm hidden-xs"\r\n translate="REMOVE">Remove</span>\r\n <span class="glyphicon glyphicon-remove-sign"></span>\r\n </a>\r\n </div>\r\n\r\n\r\n\r\n <div class="col-xs-10">\r\n <div class="row">\r\n <div class="col-xs-4">\r\n <input required\r\n type="text"\r\n class="form-control"\r\n placeholder="{{ \'VARIABLE_NAME\' | translate }}"\r\n ng-model="variable.name"\r\n name="name"\r\n cam-unique-value="{{ getVariableNames() }}"\r\n ng-readonly="variable.fixedName" />\r\n <span ng-if="repeatForm.name.$invalid && repeatForm.name.$dirty" class="has-error">\r\n <span ng-if="repeatForm.name.$error.required"\r\n class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n <span ng-if="repeatForm.name.$error.camUniqueValue"\r\n class="help-block">\r\n {{ \'REQUIRE_UNIQUE_NAME\' | translate }}\r\n </span>\r\n </span>\r\n </div>\r\n\r\n\r\n\r\n <div class="col-xs-4">\r\n <select ng-disabled="!variable.name"\r\n class="form-control"\r\n ng-model="variable.type">\r\n\r\n <option disabled\r\n value=""\r\n translate="VARIABLE_TYPE">Type</option>\r\n\r\n <option value="Boolean">Boolean</option>\r\n <option value="Short">Short</option>\r\n <option value="Integer">Integer</option>\r\n <option value="Long">Long</option>\r\n <option value="Double">Double</option>\r\n <option value="String">String</option>\r\n <option value="Date">Date</option>\r\n </select>\r\n </div>\r\n\r\n\r\n\r\n <div class="col-xs-4"\r\n ng-switch="variable.type">\r\n\r\n\r\n <input ng-switch-when="Boolean"\r\n class="form-control"\r\n type="checkbox"\r\n ng-model="variable.value"\r\n ng-checked="variable.value"\r\n cam-variable-name="{{ variable.name }}"\r\n cam-variable-type="{{ variable.type }}" />\r\n\r\n\r\n <input ng-switch-default\r\n class="form-control"\r\n type="{{ variableTypes[variable.type] }}"\r\n required\r\n ng-model="variable.value"\r\n ng-readonly="!variable.type"\r\n name="value"\r\n cam-variable-name="{{ variable.name }}"\r\n cam-variable-type="{{ variable.type }}"\r\n placeholder="{{ \'VARIABLE_VALUE\' | translate }}" />\r\n\r\n <span ng-if="repeatForm.value.$invalid && repeatForm.value.$dirty" class="has-error">\r\n <span ng-if="repeatForm.value.$error.required"\r\n class="help-block">\r\n {{ \'REQUIRED_FIELD\' | translate }}\r\n </span>\r\n <span ng-if="repeatForm.value.$error.camVariableType"\r\n class="help-block">\r\n Only a {{ variable.type }} value is allowed\r\n </span>\r\n </span>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="form-group"\r\n ng-if="!options.hideLoadVariablesButton && !variablesLoaded">\r\n <div class="col-xs-2 row-action">\r\n <a href\r\n ng-click="loadVariables()">\r\n <span class="hidden-sm hidden-xs"\r\n translate="LOAD_VARIABLES">Load Variables</span>\r\n <span class="glyphicon glyphicon-download"></span>\r\n </a>\r\n </div>\r\n </div>\r\n\r\n</form>\r\n',link:function(i,e,t,n){var r=p.resource("task"),a=p.resource("process-instance"),o=p.resource("case-instance");i.showBusinessKey=!1;var s={name:"",value:"",type:""},l=i.variableTypes={Boolean:"checkbox",Integer:"text",Long:"text",Short:"text",Double:"text",String:"text",Date:"text"},c=n.getParams(),u=c.processInstanceId||c.caseInstanceId;if(c.processDefinitionId||c.caseDefinitionId)if(u){i.readonly=!0,(c.processInstanceId?a:o).get(u).then(function(e){e.businessKey&&(i.showBusinessKey=!0,i.businessKey=e.businessKey)}).catch(h.noop)}else i.showBusinessKey=!0;else i.showBusinessKey=!1;i.$watch("tasklistForm",function(){i.variablesLoaded=!1}),i.addVariable=function(){var e=h.copy(s);i.variables.push(e)},i.removeVariable=function(n){var r=[];h.forEach(i.variables,function(e,t){t!=n&&r.push(e)}),i.variables=r},i.getVariableNames=function(){return i.variables.map(function(e){return e.name})},i.loadVariables=function(){i.variablesLoaded=!0,r.formVariables({id:n.getParams().taskId,deserializeValues:!1},function(t,e){if(t)return i.variablesLoaded=!1,m("LOAD_VARIABLES_FAILURE").then(function(e){d.addError({status:e,message:t.message,scope:i})}).catch(h.noop);var r=!1;h.forEach(e,function(e,t){if(l[e.type]){var n=e.value;"Date"===e.type&&(n=f(n)),i.variables.push({name:t,value:n,type:e.type,fixedName:!0}),r=!0}}),r||m("NO_TASK_VARIABLES").then(function(e){d.addMessage({duration:5e3,status:e,scope:i})}).catch(h.noop)})}}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],330:[function(e,t,n){"use strict";var d=e("../../../../../../camunda-commons-ui/vendor/angular"),m=e("jquery");t.exports=["CamForm","camAPI","$timeout",function(c,u,p){return{restrict:"A",require:"^camTasklistForm",scope:!0,template:'<div class="generic-form-fields">\r\n\r\n <div class="text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'USE_GENERIC_FORM\' | translate }}\r\n </div>\r\n\r\n <div cam-tasklist-form-generic-variables>\r\n </div>\r\n\r\n</div>\r\n',link:function(i,e,t,a){var n=m(e[0]).find("form"),o=null,s={$valid:!1,$invalid:!0},r=!1;i.$watch(function(){return r},function(e){var t;e&&(t=a.getParams(),delete(t=d.copy(t)).processDefinitionKey,d.extend(t,{client:u,formElement:n,done:l}),o=new c(t),r=!1)}),i.$watch(function(){return a.getTasklistForm()},function(e){e&&(r=!0,i.variables=[])}),i.$watch(function(){return s&&s.$valid},function(e){a.notifyFormValidated(!e)});var l=function(e,t){if(e)return a.notifyFormInitializationFailed(e);var n=(o=t).formElement.attr("name"),r=t.formElement.scope();r&&(s=r[n],a.notifyFormInitialized(),i.options.autoFocus&&p(function(){var e=t.formElement[0].querySelectorAll("input")[0];e&&e.focus()}))};a.registerCompletionHandler(function(n){function t(e,t){return function(){var e=o.variableManager.variables;for(var t in e)o.variableManager.destroyVariable(t)}(),o.fields=[],n(e,t)}try{o.initializeFieldHandlers()}catch(e){return t(e)}var e=o.variableManager.variables;for(var r in e)e[r].value=null;o.submit(t)})}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72,jquery:"jquery"}],331:[function(e,t,n){"use strict";e("core-js/modules/es.string.replace");function s(){}t.exports=function(){return{restrict:"A",scope:{tasklistForm:"=",options:"=",params:"=",onFormCompletionCallback:"&",onFormCompletion:"&",onFormValidation:"&"},template:'<div ng-show="tasklistForm && !$loaded"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n</div>\r\n\r\n<div ng-if="tasklistForm.type"\r\n ng-show="tasklistForm && $loaded"\r\n ng-class="{ \'disabled-form\': options.disableForm, \'task-removed\': taskRemoved}">\r\n\r\n <div ng-show="tasklistForm.$error" uib-alert class="alert alert-danger" role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <strong class="status">{{ \'FORM_FAILURE\' | translate }}</strong>\r\n <span class="message">{{ tasklistForm.$error.message | translate }}</span>\r\n </div>\r\n\r\n <div ng-switch="tasklistForm.type"\r\n ng-show="!tasklistForm.$error">\r\n\r\n <div ng-switch-when="embedded">\r\n <div cam-tasklist-form-embedded>\r\n </div>\r\n </div>\r\n\r\n <div ng-switch-when="external">\r\n <div cam-tasklist-form-external>\r\n </div>\r\n </div>\r\n\r\n <div ng-switch-default>\r\n <div cam-tasklist-form-generic>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class="form-actions" ng-show="showCompleteButton()">\r\n <button class="btn btn-default"\r\n type="submit"\r\n ng-click="save($event)"\r\n ng-hide="tasklistForm.type === \'generic\'"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ \'SAVE_HINT\' | translate }}"\r\n ng-disabled="!$dirty">\r\n {{ \'SAVE\' | translate }}\r\n </button>\r\n <button class="btn btn-primary"\r\n type="submit"\r\n ng-click="complete()"\r\n ng-disabled="disableCompleteButton()">\r\n {{ \'COMPLETE\' | translate }}\r\n </button>\r\n </div>\r\n\r\n</div>\r\n',controller:["$scope","Uri",function(r,i){r.taskRemoved=!1,r.$on("taskremoved",function(){r.taskRemoved=!0}),r.onFormCompletionCallback=r.onFormCompletionCallback()||s,r.onFormCompletion=r.onFormCompletion()||s,r.onFormValidation=r.onFormValidation()||s,r.completionHandler=s,r.saveHandler=s,r.$loaded=!1,r.completeInProgress=!1,r.$watch("tasklistForm",function(e){r.$loaded=!1,e&&(function(e){if(e.type)return o(e.key);var t=e.key,n=e.contextPath;if(!t)return e.type="generic";0===t.indexOf("embedded:")?(t=t.substring("embedded:".length),e.type="embedded"):e.type="external";0===t.indexOf("app:")?n?o(t=function(e){var t=[];for(var n in e)e[n]&&t.push(e[n]);return t}([n,t.substring("app:".length)]).join("/").replace(/\/([/]+)/,"/")):a.notifyFormInitializationFailed({message:"EMPTY_CONTEXT_PATH"}):0===t.indexOf("deployment:")?o(t=r.params.taskId?i.appUri("engine://engine/:engine/task/"+r.params.taskId+"/deployed-form"):i.appUri("engine://engine/:engine/process-definition/"+r.params.processDefinitionId+"/deployed-start-form")):0===t.indexOf("engine:")?o(t=i.appUri(t)):o(t);e.key=t}(e),r.taskRemoved=!1)}),r.asynchronousFormKey={loaded:!1,failure:!1};var a=this;function o(e){r.asynchronousFormKey.key=e,r.asynchronousFormKey.loaded=!0}function e(e,t){r.onFormCompletionCallback(e,t),r.completeInProgress=!1}var t=r.complete=function(){r.completeInProgress=!0,r.completionHandler(e)};r.onFormCompletion(t),r.showCompleteButton=function(){return r.options&&!r.options.hideCompleteButton&&r.$loaded};var n=r.disableCompleteButton=function(){return r.taskRemoved||r.completeInProgress||r.$invalid||r.options&&r.options.disableCompleteButton};r.save=function(e){r.saveHandler(e)},this.notifyFormInitialized=function(){r.$loaded=!0},this.notifyFormInitializationFailed=function(e){r.tasklistForm.$error=e,this.notifyFormInitialized(),this.notifyFormValidated(!0)},this.notifyFormCompleted=function(e){r.onFormCompletion(e)},this.notifyFormValidated=function(e){r.$invalid=e,r.onFormValidation(e)},this.notifyFormDirty=function(e){r.$dirty=e},this.getOptions=function(){return r.options||{}},this.getTasklistForm=function(){return r.tasklistForm},this.getParams=function(){return r.params||{}},this.registerCompletionHandler=function(e){r.completionHandler=e||s},this.registerSaveHandler=function(e){r.saveHandler=e||s},this.attemptComplete=function(){return!n()&&t()}}]}}},{"core-js/modules/es.string.replace":188}],332:[function(e,t,n){"use strict";t.exports=[function(){return{require:"ngModel",link:function(e,i,a,o){function t(e){var t=JSON.parse(a.camUniqueValue);if(o.$setValidity("camUniqueValue",!0),e){o.$pristine&&(o.$pristine=!1,o.$dirty=!0,i.addClass("ng-dirty"),i.removeClass("ng-pristine"));for(var n=!1,r=0;r<t.length;r++)if(t[r]===e){if(n){o.$setValidity("camUniqueValue",!1);break}n=!0}}return e}o.$parsers.unshift(t),o.$formatters.push(t),a.$observe("camUniqueValue",function(){return t(o.$viewValue)})}}}]},{}],333:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./directives/cam-tasklist-form"),a=e("./directives/cam-tasklist-form-generic"),o=e("./directives/cam-tasklist-form-generic-variables"),s=e("./directives/cam-tasklist-form-embedded"),l=e("./directives/cam-tasklist-form-external"),c=e("./directives/cam-tasklist-unique-value"),u=r.module("cam.tasklist.form",["ui.bootstrap"]);u.directive("camTasklistForm",i),u.directive("camTasklistFormGeneric",a),u.directive("camTasklistFormGenericVariables",o),u.directive("camTasklistFormEmbedded",s),u.directive("camTasklistFormExternal",l),u.directive("camUniqueValue",c),t.exports=u},{"../../../../../camunda-commons-ui/vendor/angular":72,"./directives/cam-tasklist-form":331,"./directives/cam-tasklist-form-embedded":327,"./directives/cam-tasklist-form-external":328,"./directives/cam-tasklist-form-generic":330,"./directives/cam-tasklist-form-generic-variables":329,"./directives/cam-tasklist-unique-value":332}],334:[function(e,t,n){"use strict";t.exports=["$scope","Views",function(e,t){e.navbarVars={read:["tasklistApp"]},e.navbarActions=t.getProviders({component:"tasklist.navbar.action"})}]},{}],335:[function(e,t,n){"use strict";var o=e("jquery"),s=o("body");t.exports=["$scope","$timeout",function(n,r){function i(e){return s.hasClass(e+"-column-close")}function a(e){return s.removeClass(e+"-column-close")}function t(e){return s.addClass(e+"-column-close")}n.toggleVariableSearch=function(e){e&&e.preventDefault&&e.preventDefault(),o(".tasks-list").toggleClass("show-search")},n.toggleRegion=function(e){e&&e.preventDefault&&e.preventDefault();var t=o(e.currentTarget).attr("data-region");"task"===t?i("list")&&!i("task")&&a("list"):"list"===t&&i("task")&&!i("list")&&a("task"),s.toggleClass(t+"-column-close"),r(function(){n.$root.$broadcast("layout:change")},600)},n.maximizeRegion=function(e){e&&e.preventDefault&&e.preventDefault(),t("filters"),t("list"),a("task"),document.querySelector(".reset-regions").focus()},n.resetRegions=function(e){e&&e.preventDefault&&e.preventDefault(),a("filters"),a("list"),a("task"),document.querySelector(".maximize").focus()}}]},{jquery:"jquery"}],336:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./controllers/cam-layout-ctrl"),a=e("./controllers/cam-header-views-ctrl");e("../../../../../camunda-commons-ui/lib/util/index");var o=r.module("cam.tasklist.navigation",[e("../../../../../camunda-commons-ui/lib/util/index").name,"ui.bootstrap"]);o.controller("camHeaderViewsCtrl",a),o.controller("camLayoutCtrl",i),t.exports=o},{"../../../../../camunda-commons-ui/lib/util/index":44,"../../../../../camunda-commons-ui/vendor/angular":72,"./controllers/cam-header-views-ctrl":334,"./controllers/cam-layout-ctrl":335}],337:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./plugins/action/cam-tasklist-navbar-action-start-process-plugin"),a=e("./plugins/action/modals/cam-tasklist-process-start-modal"),o=r.module("cam.tasklist.process",["cam.tasklist.client","cam.tasklist.form","ui.bootstrap"]);o.config(i),o.controller("camProcessStartModalCtrl",a),t.exports=o},{"../../../../../camunda-commons-ui/vendor/angular":72,"./plugins/action/cam-tasklist-navbar-action-start-process-plugin":338,"./plugins/action/modals/cam-tasklist-process-start-modal":339}],338:[function(e,t,n){"use strict";function r(e){e.registerDefaultView("tasklist.navbar.action",{id:"start-process-action",template:'<a ng-click="open()"\r\n href>\r\n <span class="glyphicon glyphicon-list-alt"></span>\r\n {{ \'START_PROCESS\' | translate }}\r\n</a>\r\n',controller:i,priority:100})}var d=e("../../../../../../../camunda-commons-ui/vendor/angular"),i=["$scope","$uibModal","$q","camAPI","dataDepend","$location","search",function(t,n,r,e,i,a,o){var s=e.resource("process-definition"),l=t.processData=i.create(t),c={latest:!0,active:!0,startableInTasklist:!0,startablePermissionCheck:!0,firstResult:0,maxResults:15};l.provide("processDefinitionQuery",c),l.provide("processDefinitions",["processDefinitionQuery",function(e){var n=r.defer();return s.list(e,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}]),l.provide("currentProcessDefinitionId",{id:null}),l.provide("startForm",["currentProcessDefinitionId",function(e){var n=r.defer();return e.id?s.startForm(e,function(e,t){e?n.reject(e):n.resolve(t)}):n.resolve(null),n.promise}]);var u=!0;t.open=function(e){e||o.updateSilently({processStart:!0}),l.set("processDefinitionQuery",d.copy(c)),u=!1,n.open({size:"lg",controller:"camProcessStartModalCtrl",template:'<div class="modal-header">\r\n <div class="row">\r\n <div class="col-xs-6">\r\n <h3 class="modal-title">{{ \'START_PROCESS\' | translate }}</h3>\r\n </div>\r\n\r\n <div class="col-xs-6">\r\n <form>\r\n <div class="form-group has-feedback"\r\n ng-if="!PROCESS_TO_START_SELECTED">\r\n <input type="text"\r\n ng-model="page.searchValue"\r\n placeholder="{{ \'SEARCH_PROCESS_BY_NAME\' | translate }}"\r\n ng-change="lookupProcessDefinitionByName()"\r\n class="form-control">\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="modal-body">\r\n\r\n <div notifications-panel></div>\r\n\r\n <div ng-if="!PROCESS_TO_START_SELECTED">\r\n\r\n <div ng-if="!processDefinitionState.$loaded || lookupProcessDefinitionByName.$loading"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n </div>\r\n\r\n <div ng-hide="!processDefinitionState.$loaded || lookupProcessDefinitionByName.$loading">\r\n\r\n <div ng-hide="page.total"\r\n class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'NO_PROCESS_DEFINITION_AVAILABLE\' | translate }}\r\n </div>\r\n\r\n <div ng-if="page.total" class="available-processes">\r\n\r\n <div class="text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'CLICK_PROCESS_TO_START\' | translate }}\r\n </div>\r\n\r\n <ul class="processes">\r\n <li ng-repeat="processDefinition in processDefinitions">\r\n <a href\r\n ng-click="selectProcessDefinition(processDefinition)">\r\n {{ processDefinition.name || processDefinition.key }}\r\n </a>\r\n <span ng-if="processDefinition.tenantId"\r\n class="tenant-id">\r\n {{ processDefinition.tenantId }}\r\n </span>\r\n </li>\r\n </ul>\r\n\r\n </div>\r\n\r\n <ul uib-pagination ng-if="page.total > page.size"\r\n total-items="page.total"\r\n items-per-page="page.size"\r\n max-size="5"\r\n class="pagination-sm"\r\n boundary-links="true"\r\n ng-model="page.current"\r\n ng-change="pageChange()"\r\n next-text="›"\r\n last-text="»"\r\n previous-text="‹"\r\n first-text="«"></ul>\r\n </div>\r\n </div>\r\n\r\n <div ng-if="PROCESS_TO_START_SELECTED">\r\n\r\n <div ng-if="startFormState.$error" uib-alert class="alert alert-danger" role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <strong class="status">{{ \'FORM_FAILURE\' | translate }}</strong>\r\n <span class="message">{{ startFormState.$error.message }}</span>\r\n </div>\r\n\r\n <div ng-if="startFormState.$loaded && !startFormState.$error"\r\n cam-tasklist-form\r\n tasklist-form="startForm"\r\n on-form-completion-callback="completionCallback"\r\n on-form-completion="registerCompletionHandler"\r\n on-form-validation="notifyFormValidation"\r\n options="options"\r\n params="params" >\r\n </div>\r\n </div>\r\n\r\n</div>\r\n\r\n<div class="modal-footer">\r\n <div ng-if="!PROCESS_TO_START_SELECTED"\r\n class="row row-action">\r\n\r\n <div class="col-xs-12">\r\n <button class="btn btn-link"\r\n type="button"\r\n ng-click="$dismiss()">\r\n {{ \'CLOSE\' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div ng-if="PROCESS_TO_START_SELECTED"\r\n class="row">\r\n\r\n <div class="col-xs-4 align-left">\r\n <button class="btn btn-link"\r\n type="button"\r\n ng-click="back()">\r\n {{ \'BACK\' | translate }}\r\n </button>\r\n </div>\r\n\r\n <div class="col-xs-8">\r\n <button class="btn btn-link"\r\n type="button"\r\n ng-click="$dismiss()">\r\n {{ \'CLOSE\' | translate }}\r\n </button>\r\n\r\n <button class="btn btn-primary"\r\n type="submit"\r\n ng-disabled="$invalid || requestInProgress"\r\n ng-click="startProcessInstance()">\r\n {{ \'START\' | translate }}\r\n </button>\r\n </div>\r\n\r\n </div>\r\n\r\n</div>\r\n',resolve:{processData:function(){return l}}}).result.then(function(){o.updateSilently({processStart:null,processTenant:null}),u=!0,t.$root.$broadcast("refresh"),document.querySelector(".start-process-action a").focus()},function(){o.updateSilently({processStart:null,processTenant:null}),u=!0,document.querySelector(".start-process-action a").focus()})};function p(){u&&a.search().processStart&&t.open(!0)}t.$on("$locationChangeSuccess",p),t.$on("shortcut:startProcess",t.open),p()}];r.$inject=["ViewsProvider"],t.exports=r},{"../../../../../../../camunda-commons-ui/vendor/angular":72}],339:[function(e,t,n){"use strict";var b=e("../../../../../../../../camunda-commons-ui/vendor/angular");t.exports=["$rootScope","$scope","$translate","$timeout","debounce","Notifications","processData","assignNotification","$location","search","camAPI",function(r,a,i,t,e,o,n,s,l,c,u){a.$on("authentication.login.required",function(){a.$dismiss()});var p=n.newChild(a);p.set("currentProcessDefinitionId",{id:null});var d=a.options={hideCompleteButton:!0,hideLoadVariablesButton:!0,autoFocus:!0,disableForm:!1,disableAddVariableButton:!1};a.PROCESS_TO_START_SELECTED=!1;var m=null,f=a.page={total:0,current:1,searchValue:null};a.triggerOnStart=function(){},p.observe("processDefinitionQuery",function(e){m=b.copy(e),f.size=e.maxResults,f.current=e.firstResult/f.size+1}),a.startFormState=p.observe("startForm",function(e){a.startForm=b.copy(e)}),a.processDefinitionState=p.observe("processDefinitions",function(e){f.total=e.count,a.processDefinitions=e.items.sort(function(e,t){var n=(e.name||e.key).toLowerCase(),r=(t.name||t.key).toLowerCase(),i=e.tenantId?e.tenantId.toLowerCase():"",a=t.tenantId?t.tenantId.toLowerCase():"";return n<r?-1:r<n?1:i<a?-1:a<i?1:0}),0<f.total&&t(function(){var e=document.querySelectorAll("div.modal-content ul.processes a")[0];e&&e.focus()})}),a.pageChange=function(){m.firstResult=f.size*(f.current-1),p.set("processDefinitionQuery",m)},a.lookupProcessDefinitionByName=e(function(){var e=f.searchValue;e?m.nameLike="%"+e+"%":delete m.nameLike,m.firstResult=0,p.set("processDefinitionQuery",m)},2e3),a.selectProcessDefinition=function(e){a.PROCESS_TO_START_SELECTED=!0;var t=e.id,n=e.key,r=e.deploymentId;a.options=b.copy(d),a.params={processDefinitionId:t,processDefinitionKey:n,deploymentId:r};var i={processStart:n};e.tenantId&&(i.processTenant=e.tenantId),c.updateSilently(i),p.set("currentProcessDefinitionId",{id:t})};var h=l.search().processStart;if(h&&"string"==typeof h){var g={key:h,latest:!0,active:!0,startableInTasklist:!0,startablePermissionCheck:!0,maxResults:1},v=l.search().processTenant;v&&(g.tenantIdIn=v),u.resource("process-definition").list(g,function(e,t){if(e||0===t.items.length)return e;a.selectProcessDefinition(t.items[0])})}a.$invalid=!0,a.requestInProgress=!1,a.$on("embedded.form.rendered",function(){t(function(){var e=document.querySelectorAll(".modal-body .form-container input")[0];e&&e.focus()})}),a.back=function(){a.$invalid=!0,a.requestInProgress=!1,a.PROCESS_TO_START_SELECTED=!1,a.options=d,p.set("currentProcessDefinitionId",{id:null}),t(function(){var e=document.querySelectorAll("div.modal-content ul.processes a")[0];e&&e.focus()})};var y=[];a.$on("$destroy",function(){for(var e;e=y.pop();)"function"==typeof e&&e()}),a.completionCallback=function(e,t){if(e)return a.requestInProgress=!1,n=e,void i("PROCESS_START_ERROR").then(function(e){o.addError({status:e,message:n?n.message:"",scope:a})}).catch(b.noop);var n;y.push(function(){i("PROCESS_START_OK").then(function(e){o.addMessage({duration:3e3,status:e})}).catch(b.noop),s({assignee:r.authentication.name,processInstanceId:t.id,maxResults:15})}),a.$close()},a.registerCompletionHandler=function(e){a.triggerOnStart=e||function(){}},a.startProcessInstance=function(){a.requestInProgress=!0,a.triggerOnStart()},a.notifyFormValidation=function(e){a.$invalid=e}}]},{"../../../../../../../../camunda-commons-ui/vendor/angular":72}],340:[function(e,t,n){"use strict";t.exports=["camAPI","Notifications","$translate",function(e,c,u){var t=e.resource("task");return function(l){l.assignee&&(l.processInstanceId||l.caseInstanceId)&&t.list(l,function(e,t){if(0<t._embedded.task.length){for(var n,r="",i=0;n=t._embedded.task[i];i++)r+='<a ng-href="#/?forceDisplayTask=true&task='+n.id+'" ng-click="removeNotification(notification)">'+(a=n.name||n.taskDefinitionKey,s=void 0,o=document.createTextNode(a),(s=document.createElement("div")).appendChild(o),s.innerHTML)+"</a>, ";u(l.processInstanceId?"ASSIGN_NOTE_PROCESS":"ASSIGN_NOTE_CASE").then(function(e){c.addMessage({duration:16e3,status:e,unsafe:!0,message:r.slice(0,-2)})}).catch(function(){})}var a,o,s})}}]},{}],341:[function(a,e,t){"use strict";a("mousetrap");function n(e){e.registerDefaultView("tasklist.navbar.action",{id:"shortcut-help",template:'<a href\r\n class="showShortcutHelp"\r\n ng-click="showHelp()">\r\n {{ \'SHORTCUT_HELP\' | translate }}\r\n</a>\r\n',controller:r,priority:300})}var r=["$scope","$uibModal",function(t,e){var n=a("mousetrap");if(void 0!==window.camTasklistConf&&window.camTasklistConf.shortcuts)for(var r in t.shortcuts=window.camTasklistConf.shortcuts,window.camTasklistConf.shortcuts){var i=window.camTasklistConf.shortcuts[r];n.bind(i.key,function(e){return function(){t.$root.$broadcast("shortcut:"+e)}}(r))}t.showHelp=function(){e.open({scope:t,windowClass:"shortcut-modal",size:"lg",template:'<div class="modal-header">\r\n <h3 class="modal-title">\r\n {{ \'SHORTCUT_HELP\' | translate }}\r\n </h3>\r\n</div>\r\n\r\n<div class="modal-body">\r\n <table class="cam-table">\r\n <thead>\r\n <tr>\r\n <th>{{ \'SHORTCUT\' | translate }}</th>\r\n <th>{{ \'DESCRIPTION\' | translate }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr ng-repeat="shortcut in shortcuts">\r\n <td>{{shortcut.key}}</td>\r\n <td>{{shortcut.description}}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n</div>\r\n\r\n<div class="modal-footer">\r\n <div class="row row-action">\r\n <div class="col-xs-12">\r\n <button class="btn btn-xs btn-link"\r\n type="button"\r\n ng-click="$dismiss()"\r\n translate="CLOSE">Close</button>\r\n </div>\r\n </div>\r\n</div>\r\n'}).result.then(function(){document.querySelector("a.showShortcutHelp").focus()},function(){document.querySelector("a.showShortcutHelp").focus()})}}];n.$inject=["ViewsProvider"],e.exports=n},{mousetrap:260}],342:[function(e,t,n){"use strict";var r=e("../../../../../../camunda-commons-ui/vendor/angular"),i=e("./action/cam-tasklist-shortcut-help-plugin"),a=r.module("cam.tasklist.shortcuts",[]);a.config(i),t.exports=a},{"../../../../../../camunda-commons-ui/vendor/angular":72,"./action/cam-tasklist-shortcut-help-plugin":341}],343:[function(e,t,n){"use strict";t.exports=["$scope","Views","CamForm",function(t,e,n){(t.taskData=t.tasklistData.newChild(t)).observe("task",function(e){t.task=e}),n.cleanLocalStorage(Date.now()-6048e5),t.taskVars={read:["task","taskData"]},t.taskActions=e.getProviders({component:"tasklist.task.action"})}]},{}],344:[function(e,t,n){"use strict";var m=e("../../../../../../camunda-commons-ui/vendor/angular");t.exports=["$scope","$translate","$q","Notifications","camAPI",function(r,e,t,i,n){var a=n.resource("task"),o=null,s={groupId:null,type:"candidate"},l=r.newGroup=m.copy(s),c=r.taskGroupsData,u=r.groupsChanged,p=r.errorHandler();r._groups=[];var d={};e(["FAILURE","INIT_GROUPS_FAILURE","ADD_GROUP_FAILED","REMOVE_GROUP_FAILED"]).then(function(e){d.failure=e.FAILURE,d.initGroupsFailed=e.INIT_GROUPS_FAILURE,d.addGroupFailed=e.ADD_GROUP_FAILED,d.removeGroupFailed=e.REMOVE_GROUP_FAILED}).catch(m.noop),r.modalGroupsState=c.observe("groups",function(e){r._groups=m.copy(e)||[],r.validateNewGroup()}),c.observe("task",function(e){o=e}),r.$watch("modalGroupsState.$error",function(e){e&&i.addError({status:d.failure,message:d.initGroupsFailed,exclusive:!0,scope:r})}),r.addGroup=function(){var e=o.id;u(),delete l.error,a.identityLinksAdd(e,l,function(e){if(e)return p("TASK_UPDATE_ERROR",e);r.taskGroupForm.$setPristine(),r._groups.push({id:l.groupId}),l=r.newGroup=m.copy(s)})},r.removeGroup=function(e,t){var n=o.id;u(),a.identityLinksDelete(n,{type:"candidate",groupId:e.id},function(e){if(e)return i.addError({status:d.failure,message:d.removeGroupFailed,exclusive:!0,scope:r});r._groups.splice(t,1)})},r.validateNewGroup=function(){if(delete l.error,r.taskGroupForm&&r.taskGroupForm.newGroup){r.taskGroupForm.newGroup.$setValidity("duplicate",!0);var e=l.groupId;if(e)for(var t,n=0;t=r._groups[n];n++)e===t.id&&(l.error={message:"DUPLICATE_GROUP"},r.taskGroupForm.newGroup.$setValidity("duplicate",!1))}},r.isValid=function(){return!(!l.groupId||l.error)}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],345:[function(e,t,n){"use strict";var M=e("../../../../../../camunda-commons-ui/vendor/angular");t.exports=["$uibModal","$timeout","camAPI","fixDate","unfixDate",function(k,S,C,A,_){var T=C.resource("task");return{scope:{taskData:"=",successHandler:"&",errorHandler:"&"},template:'<ul class="meta list-inline dates times">\r\n\r\n <li>\r\n\r\n <span cam-widget-inline-field\r\n tabindex="0"\r\n ng-keydown="openDatepicker($event)"\r\n class="followup-date"\r\n ng-class="{overdue: task.followUp && (task.followUp < now) }"\r\n type="datetime"\r\n change="saveFollowUpDate(varValue)"\r\n on-start-editing="startEditingFollowUpDate(this)"\r\n on-cancel-editing="cancelEditingFollowUpDate(this)"\r\n value="task.followUp">\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ \'FOLLOW_UP_DATE\' | translate }}"\r\n class="glyphicon glyphicon-calendar"></span>\r\n\r\n <span ng-if="task.followUp"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ task.followUp | camDate:\'long\' }}"\r\n am-time-ago="task.followUp">{{ task.followUp }}</span>\r\n <a ng-if="!task.followUp"\r\n translate="SET_FOLLOW_UP_DATE">Set follow up</a>\r\n </span>\r\n\r\n <a href\r\n ng-if="task.followUp && !editingState.followUp"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ \'RESET_FOLLOW_UP_DATE\' | translate }}"\r\n ng-click="resetFollowUpDate()"\r\n class="reset-follow-up-date glyphicon glyphicon-remove">\r\n </a>\r\n\r\n </li>\r\n\r\n <li>\r\n\r\n <span cam-widget-inline-field\r\n tabindex="0"\r\n ng-keydown="openDatepicker($event)"\r\n class="due-date"\r\n ng-class="{overdue: task.due && (task.due < now) }"\r\n type="datetime"\r\n change="saveDueDate(varValue)"\r\n on-start-editing="startEditingDueDate(this)"\r\n on-cancel-editing="cancelEditingDueDate(this)"\r\n value="task.due">\r\n\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ \'DUE_DATE\' | translate }}"\r\n class="glyphicon glyphicon-bell"></span>\r\n\r\n <span ng-if="task.due"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ task.due | camDate:\'long\' }}"\r\n am-time-ago="task.due">{{ task.due }}</span>\r\n\r\n <a ng-if="!task.due"\r\n translate="SET_DUE_DATE">Set due date</a>\r\n </span>\r\n\r\n <a href\r\n ng-if="task.due && !editingState.due"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ \'RESET_DUE_DATE\' | translate }}"\r\n ng-click="resetDueDate()"\r\n class="reset-due-date glyphicon glyphicon-remove">\r\n </a>\r\n </li>\r\n</ul>\r\n\r\n\r\n<ul class="meta list-inline actors">\r\n <li class="groups">\r\n <span ng-click="editGroups()">\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ \'GROUPS\' | translate }}"\r\n class="glyphicon glyphicon-th"></span>\r\n\r\n <a href ng-if="groupNames.length > 0">\r\n {{ groupNames.join(\', \') }}\r\n </a>\r\n\r\n <a href ng-if="groupNames.length === 0"\r\n translate="ADD_GROUPS">\r\n Add groups\r\n </a>\r\n </span>\r\n </li>\r\n\r\n <li class="assignee set-value"\r\n ng-if="!task.assignee">\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ \'ASSIGNEE\' | translate }}"\r\n class="glyphicon glyphicon-user"></span>\r\n\r\n <a href\r\n class="claim"\r\n ng-click="claim()"\r\n translate="CLAIM_TASK">Claim</a>\r\n </li>\r\n\r\n <li class="assignee"\r\n ng-if="task.assignee">\r\n <span cam-widget-inline-field\r\n tabindex="0"\r\n ng-keydown="editAssignee($event)"\r\n ng-paste="editAssignee($event)"\r\n ng-class="{\'has-error\': !validAssignee, \'validating\': validationInProgress}"\r\n class="set-value"\r\n type="text"\r\n validate="isInvalidUser(this)"\r\n change="assign(varValue)"\r\n on-start-editing="startEditingAssignee(this)"\r\n on-cancel-editing="cancelEditingAssignee(this)"\r\n value="assignee.id">\r\n\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ \'ASSIGNEE\' | translate }}"\r\n class="glyphicon glyphicon-user"></span>\r\n <span ng-if="assignee.firstName || assignee.lastName">{{ assignee.firstName }} {{ assignee.lastName }}</span>\r\n <span ng-if="!(assignee.firstName || assignee.lastName)">{{ assignee.id }}</span>\r\n </span>\r\n\r\n <a href\r\n ng-if="isAssignee && !editingState.assignee"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ \'UNCLAIM_TASK\' | translate }}"\r\n ng-click="unclaim()"\r\n class="unclaim glyphicon glyphicon-remove">\r\n </a>\r\n\r\n <a href\r\n ng-if="!isAssignee && !editingState.assignee"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ \'RESET_TASK_ASSIGNEE\' | translate }}"\r\n ng-click="resetAssignee()"\r\n class="reset-assignee glyphicon glyphicon-remove">\r\n </a>\r\n\r\n </li>\r\n\r\n</ul>\r\n',link:function(a,e){var n=a.taskData.newChild(a);a.successHandler();var r=a.errorHandler()||function(){};function i(){n.changed("task"),n.changed("taskList")}function t(t){return function(e){p(t,!1),a.task[t]=e,s(),document.querySelector("[cam-widget-inline-field]."+t.toLowerCase()+"-date").focus()}}function o(e){return function(){a.task[e]=null,s(),document.querySelector("[cam-widget-inline-field]."+e.toLowerCase()+"-date").focus()}}function s(){var e=a.task;delete e._embedded,delete e._links,e.due=A(e.due),e.followUp=A(e.followUp),T.update(e,function(e){if(i(),e)return r("TASK_UPDATE_ERROR",e)})}function l(){var e=document.querySelector('[cam-tasklist-task-meta] [cam-widget-inline-field][value="assignee.id"]');(e=e||document.querySelector("[cam-tasklist-task-meta] .claim"))&&e.focus()}function c(e){return function(){if("assignee"===e)return f(a.assignee.id,function(){p(e,!0)});p(e,!0)}}function u(t){return function(){var e;p(t,!1),(e="assignee"===t?document.querySelector('[cam-tasklist-task-meta] [cam-widget-inline-field][value="assignee.id"]'):document.querySelector("[cam-widget-inline-field]."+t.toLowerCase()+"-date"))&&e.focus()}}function p(e,t){a.editingState[e]=t}n.observe("task",function(e){a.task=M.copy(e),a.task&&(a.task.followUp=_(a.task.followUp),a.task.due=_(a.task.due))}),n.observe("assignee",function(e){a.assignee=M.copy(e)}),n.observe("isAssignee",function(e){a.isAssignee=e}),n.observe("groups",function(e){e=e||[];for(var t,n=[],r=0;t=e[r];r++)n.push(t.name||t.id);a.groupNames=n}),a.saveFollowUpDate=t("followUp"),a.resetFollowUpDate=o("followUp"),a.startEditingFollowUpDate=c("followUp"),a.cancelEditingFollowUpDate=u("followUp"),a.saveDueDate=t("due"),a.resetDueDate=o("due"),a.startEditingDueDate=c("due"),a.cancelEditingDueDate=u("due"),a.editingState={followUp:!1,due:!1,assignee:!1},a.now=(new Date).toJSON(),a.openDatepicker=function(e){13===e.keyCode&&e.target===e.currentTarget&&S(function(){e.target.firstChild.click()})};var d,m=C.resource("user");function f(n,r){r=r||M.noop;var i=n.value;return a.validationInProgress||d===i?r():i?(d=i,a.validAssignee=!1,a.validationInProgress=!0,void m.list({maxResults:1,id:i},function(e,t){if(i!==n.value)return a.validationInProgress=!1,f(n,r);a.validAssignee=!e&&t.length,a.validationInProgress=!1,r()})):(a.validAssignee=!0,a.validationInProgress=!1,r())}a.validAssignee=!0,a.validationInProgress=!1,a.isInvalidUser=function(){return a.validationInProgress||!a.validAssignee},a.editAssignee=function(e){S(function(){f(e.target,function(){13===e.keyCode&&e.target===e.currentTarget&&e.target.firstChild.click()})})};var h={assigned:{error:"ASSIGNED_ERROR"},assigneeReseted:{error:"ASSIGNEE_RESET_ERROR"},claimed:{error:"CLAIM_ERROR"},unclaimed:{error:"UNCLAIM_ERROR"}};a.startEditingAssignee=c("assignee"),a.cancelEditingAssignee=u("assignee"),a.assign=function(t){var n=a.assignee?a.assignee.id:"";f(e.find(".assignee input")[0],function(){if(!a.validAssignee)return t=n,void(a.validAssignee=!0);p("assignee",!1);var e=t.trim();e?y(e):(a.isAssignee?v:b)()})};var g=a.claim=function(){var e=a.$root.authentication.name;T.claim(a.task.id,e,function(e){w.push(l),E("claimed")(e)})};a.$on("shortcut:claimTask",g);var v=a.unclaim=function(){T.unclaim(a.task.id,function(e){w.push(l),E("unclaimed")(e)})},y=a.setAssignee=function(e){T.assignee(a.task.id,e,function(e){w.push(l),E("assigned")(e)})},b=a.resetAssignee=function(){T.assignee(a.task.id,null,function(e){w.push(l),E("assigneeReseted")(e)})};a.editGroups=function(){var e;function t(){e?(n.set("taskId",{taskId:a.task.id}),n.changed("taskList"),x.push(function(){S(function(){document.querySelector(".meta .groups a").focus()})})):document.querySelector(".meta .groups a").focus()}k.open({scope:a,windowClass:"filter-edit-modal",template:'<div class="modal-header">\r\n <h3 class="modal-title">\r\n {{ \'MANAGE_GROUPS\' | translate }}\r\n </h3>\r\n</div>\r\n\r\n<div class="modal-body groups-modal">\r\n\r\n <div notifications-panel></div>\r\n\r\n <form name="taskGroupForm"\r\n class="form-horizontal"\r\n ng-controller="camTaskGroupsCtrl"\r\n ng-hide="!modalGroupsState.$loaded || modalGroupsState.$error"\r\n ng-submit="(isValid() && addGroup())">\r\n\r\n <div ng-show="!modalGroupsState.$loaded && !modalGroupsState.$error"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n </div>\r\n\r\n <div class="text-help">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'USE_ADD_GROUP\' | translate }}\r\n </div>\r\n\r\n <div class="form-group">\r\n <div class="col-xs-4 align-right">\r\n <button class="btn btn-link"\r\n ng-click="addGroup()"\r\n type="button"\r\n ng-disabled="!isValid()">\r\n <span class="hidden-sm hidden-xs">{{ \'GROUP_ADD\' | translate }}</span>\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n </button>\r\n </div>\r\n\r\n <div class="col-xs-8"\r\n ng-class="{\'has-error\': newGroup.error }">\r\n <input type="text"\r\n name="newGroup"\r\n required\r\n placeholder="{{ \'GROUP_ID\' | translate }}"\r\n class="form-control"\r\n ng-model="newGroup.groupId"\r\n ng-change="validateNewGroup()"/>\r\n\r\n <span ng-if="newGroup.error"\r\n class="help-block">\r\n {{ newGroup.error.message | translate }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class="form-group values"\r\n ng-repeat="group in _groups">\r\n <div class="col-xs-4 row-action">\r\n <a href\r\n ng-click="removeGroup(group, $index)"\r\n class="glyphicon glyphicon-remove-sign"></a>\r\n </div>\r\n\r\n <div class="col-xs-8 value">\r\n {{ group.id }}\r\n </div>\r\n </div>\r\n\r\n </form>\r\n\r\n</div>\r\n\r\n<div class="modal-footer">\r\n <div class="row row-action">\r\n <div class="col-xs-12">\r\n <button class="btn btn-xs btn-link"\r\n type="button"\r\n ng-click="$dismiss()"\r\n translate="CLOSE">Close</button>\r\n </div>\r\n </div>\r\n</div>\r\n',controller:"camGroupEditModalCtrl",resolve:{taskMetaData:function(){return n},groupsChanged:function(){return function(){e=!0}},errorHandler:function(){return a.errorHandler}}}).result.then(t,t)};var x=[];a.$watch("groupNames",function(){x.forEach(function(e){e()}),x=[]});var w=[];function E(e){var t=h[e];return function(e){if(e)return r(t.error,e);i()}}a.$watch("assignee",function(){w.forEach(function(e){S(e)}),w=[]})}}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],346:[function(e,t,n){"use strict";var g=e("../../../../../../camunda-commons-ui/vendor/angular");t.exports=[function(){return{restrict:"A",scope:{tasklistData:"="},template:'<div ng-show="!taskState.$loaded"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n</div>\r\n\r\n<div ng-show="taskState.$loaded">\r\n <div ng-hide="task">\r\n <div class="no-task well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'SELECT_TASK_IN_LIST\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <section ng-if="task"\r\n class="task-card"\r\n ng-class="{\'task-removed\': !taskExists}">\r\n <header class="row">\r\n <div class="col-xs-12">\r\n <div class="tenant-id"\r\n ng-if="task.tenantId"\r\n uib-tooltip="{{ task.tenantId }}">\r\n {{ task.tenantId }}\r\n </div>\r\n\r\n <div class="names">\r\n <h2 class="task">{{ task.name || task.taskDefinitionKey || task.id }} </h2>\r\n <div class="definition-name">\r\n <h4 class="process-definition"\r\n ng-if="task.processDefinitionId">\r\n {{ task._embedded.processDefinition[0].name || task._embedded.processDefinition[0].key }}\r\n <span ng-if="task._embedded.processDefinition[0].versionTag">(v. {{ task._embedded.processDefinition[0].versionTag }})</span>\r\n </h4>\r\n <h4 class="case-definition"\r\n ng-if="task.caseDefinitionId">\r\n {{ task._embedded.caseDefinition[0].name || task._embedded.caseDefinition[0].key }}\r\n </h4>\r\n <a class="instance-link" ng-if="instanceLink"\r\n ng-href="{{instanceLink}}" class="ng-binding" href="{{instanceLink}}">\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ \'INSTANCE_LINK\' | translate }}"\r\n class="glyphicon glyphicon-new-window">\r\n </span>\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <div cam-tasklist-task-meta\r\n task-data="taskData"\r\n error-handler="errorHandler"></div>\r\n </div>\r\n </header>\r\n\r\n <div class="task-removed-alert">\r\n <div uib-alert class="alert alert-info row">\r\n <div class="col-xs-8 text-padded">\r\n {{ \'TASK_HAS_BEEN_REMOVED\' | translate }}\r\n </div>\r\n <div class="col-xs-4 text-right">\r\n <button class="btn btn-default"\r\n ng-click="dismissTask()">{{ \'CLOSE_TASK\' | translate }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class="row tabbed-content">\r\n\r\n <div ng-show="taskDetailTabs.length" class="col-xs-12">\r\n <ul class="nav nav-tabs">\r\n <li ng-class="{ active: selectedTaskDetailTab == taskDetailTab }" ng-repeat="taskDetailTab in taskDetailTabs">\r\n <a href ng-click="selectTaskDetailTab(taskDetailTab)">{{ taskDetailTab.label | translate }}</a>\r\n </li>\r\n </ul>\r\n\r\n <div class="tab-content">\r\n <view provider="selectedTaskDetailTab" vars="taskVars"></view>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n </section>\r\n\r\n</div>\r\n\r\n\r\n',controller:["$scope","$q","$location","$translate","$interval","camAPI","Notifications","Views","search","Uri",function(r,e,n,i,t,a,o,s,l,c){var u=r.taskData=r.tasklistData.newChild(r);function p(e,t){i(e).then(function(e){o.addError({status:e,message:t?t.message:"",exclusive:!0,scope:r})}).catch(g.noop)}function d(e){if(e){if(-1!==e.indexOf("task is null")||-1!==e.indexOf("No matching task"))return"TASK_NOT_EXIST";if(-1!==e.indexOf("is suspended"))return"INSTANCE_SUSPENDED";if(-1!==e.indexOf("submission prevented"))return"SUBMISSION_PREVENTED"}return e}function m(e){if(e){var t=n.search()||{};delete t.task,delete t.detailsTab,n.search(g.copy(t))}else u.set("taskId",{taskId:null});u.changed("taskList")}function f(e){var t=l().detailsTab;if(e&&e.length){if(t){var n=s.getProvider({component:"tasklist.task.detail",id:t});if(n&&-1!=e.indexOf(n))return void(r.selectedTaskDetailTab=n)}l.updateSilently({detailsTab:null}),r.selectedTaskDetailTab=e[0]}}r.errorHandler=function(t,n){var e=d(n.message);if("TASK_NOT_EXIST"===e||"INSTANCE_SUSPENDED"===e)return i(e).then(function(e){n.message=e,p(t,n),m(!0)}).catch(g.noop);"SUBMISSION_PREVENTED"!==e&&p(t,n)},r.$watch("taskState.$error",function(e){e&&(p(d(e.message),e),m(!1))}),u.provide("assignee",["task",function(e){if(e&&e._embedded&&e._embedded.identityLink)for(var t=0;t<e._embedded.identityLink.length;t++)if("assignee"===e._embedded.identityLink[t].type)return e._embedded.identityLink[t]._embedded.user?e._embedded.identityLink[t]._embedded.user[0]:{id:e._embedded.identityLink[t].userId};return null}]),u.provide("groups",["task",function(e){var t=[];if(e&&e._embedded&&e._embedded.identityLink)for(var n=0;n<e._embedded.identityLink.length;n++)"candidate"===e._embedded.identityLink[n].type&&null!==e._embedded.identityLink[n].groupId&&(e._embedded.identityLink[n]._embedded.group?t.push(e._embedded.identityLink[n]._embedded.group[0]):t.push({id:e._embedded.identityLink[n].groupId}));return t}]),u.provide("isAssignee",["assignee",function(e){return!!e&&e.id===r.$root.authentication.name}]),u.provide("processDefinition",["task",function(e){return e&&e._embedded&&e._embedded.processDefinition?e._embedded.processDefinition[0]:null}]),u.provide("caseDefinition",["task",function(e){return e&&e._embedded&&e._embedded.caseDefinition?e._embedded.caseDefinition[0]:null}]),r.taskState=u.observe("task",function(e){(r.task=e)&&function(e){var t="",n="";if(e.processInstanceId)t="process-instance",n=e.processInstanceId;else{if(!e.caseInstanceId)return r.instanceLink=void 0;t="case-instance",n=e.caseInstanceId}r.instanceLink=c.appUri("cockpitbase://:engine/#/"+t+"/"+n)}(e)}),u.observe("isAssignee",function(e){r.isAssignee=e}),r.taskVars={read:["task","taskData","errorHandler"]},r.taskDetailTabs=s.getProviders({component:"tasklist.task.detail"}),r.selectedTaskDetailTab=r.taskDetailTabs[0],r.selectTaskDetailTab=function(e){r.taskExists&&(r.selectedTaskDetailTab=e,l.updateSilently({detailsTab:e.id}))},f(r.taskDetailTabs),r.$on("$routeChanged",function(){f(r.taskDetailTabs)});var h=a.resource("task");r.taskExists=!1,r.$watch("task.id",function(e){r.taskExists=!!e}),r.dismissTask=function(){m(!0)},r.$on("refresh",function(){r.task&&r.taskExists&&h.get(r.task.id,function(e){e&&404===e.status&&(r.taskExists=!1,r.$broadcast("taskremoved"))})})}]}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72}],347:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./directives/cam-tasklist-task"),a=e("./directives/cam-tasklist-task-meta"),o=e("./controller/cam-tasklist-task-action-ctrl"),s=e("./controller/cam-tasklist-task-groups-ctrl"),l=e("./plugins/detail/cam-tasklist-task-detail-form-plugin"),c=e("./plugins/detail/cam-tasklist-task-detail-history-plugin"),u=e("./plugins/detail/cam-tasklist-task-detail-diagram-plugin"),p=e("./plugins/detail/cam-tasklist-task-detail-description-plugin"),d=e("./plugins/action/cam-tasklist-task-action-comment-plugin"),m=e("./plugins/action/modals/cam-tasklist-comment-form"),f=e("./modals/cam-tasklist-groups-modal"),h=e("../api/index");e("../../../../../camunda-commons-ui/vendor/ui-bootstrap-tpls-2.5.0-camunda"),e("angular-moment");var g=r.module("cam.tasklist.task",[h.name,"ui.bootstrap","cam.tasklist.form","angularMoment"]);g.directive("camTasklistTask",i),g.directive("camTasklistTaskMeta",a),g.controller("camTaskActionCtrl",o),g.controller("camTaskGroupsCtrl",s),g.config(l),g.config(c),g.config(u),g.config(p),g.config(d),g.controller("camCommentCreateModalCtrl",m),g.controller("camGroupEditModalCtrl",f),t.exports=g},{"../../../../../camunda-commons-ui/vendor/angular":72,"../../../../../camunda-commons-ui/vendor/ui-bootstrap-tpls-2.5.0-camunda":75,"../api/index":309,"./controller/cam-tasklist-task-action-ctrl":343,"./controller/cam-tasklist-task-groups-ctrl":344,"./directives/cam-tasklist-task":346,"./directives/cam-tasklist-task-meta":345,"./modals/cam-tasklist-groups-modal":348,"./plugins/action/cam-tasklist-task-action-comment-plugin":349,"./plugins/action/modals/cam-tasklist-comment-form":350,"./plugins/detail/cam-tasklist-task-detail-description-plugin":351,"./plugins/detail/cam-tasklist-task-detail-diagram-plugin":352,"./plugins/detail/cam-tasklist-task-detail-form-plugin":353,"./plugins/detail/cam-tasklist-task-detail-history-plugin":354,"angular-moment":"angular-moment"}],348:[function(e,t,n){"use strict";t.exports=["$scope","taskMetaData","groupsChanged",function(e,t,n){e.taskGroupsData=t.newChild(e),e.groupsChanged=n||function(){},e.$on("$locationChangeSuccess",function(){e.$dismiss()})}]},{}],349:[function(e,t,n){"use strict";function r(e){e.registerDefaultView("tasklist.task.action",{id:"task-action-comment",template:'<a href\r\n class="createCommentLink"\r\n ng-click="createComment()">\r\n {{ \'COMMENT_CREATE\' | translate }}\r\n <span class="glyphicon glyphicon-plus-sign"></span>\r\n</a>\r\n',controller:i,priority:100})}var i=["$scope","$uibModal",function(t,e){var n=t.taskData.newChild(t);n.observe("task",function(e){t.task=e}),t.createComment=function(){e.open({scope:t,windowClass:"filter-edit-modal",size:"lg",template:'<form class="form form-horizontal"\r\n name="newComment"\r\n role="form">\r\n\r\n <div class="modal-header">\r\n <h3 class="modal-title">\r\n {{ \'COMMENT_CREATE\' | translate }}\r\n </h3>\r\n </div>\r\n\r\n <div class="modal-body">\r\n <textarea class="form-control"\r\n id="comment-form-message"\r\n ng-model="comment.message"\r\n placeholder="{{ \'COMMENT_MESSAGE_PLACEHOLDER\' | translate }}">\r\n </textarea>\r\n </div>\r\n\r\n <div class="modal-footer">\r\n <div class="row row-action">\r\n <div class="col-xs-12">\r\n <button class="btn btn-xs btn-link"\r\n type="button"\r\n ng-click="$dismiss()"\r\n translate="CLOSE">Close</button>\r\n\r\n <button class="btn btn-primary"\r\n type="submit"\r\n ng-disabled="!comment.message"\r\n ng-click="submit()"\r\n translate="SAVE">Save</button>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n',controller:"camCommentCreateModalCtrl",resolve:{task:function(){return t.task}}}).result.then(function(){n.changed("task"),document.querySelector(".createCommentLink").focus()},function(){document.querySelector(".createCommentLink").focus()})}}];r.$inject=["ViewsProvider"],t.exports=r},{}],350:[function(e,t,n){"use strict";t.exports=["$scope","$translate","Notifications","camAPI","task",function(n,r,i,e,t){var a=e.resource("task");n.comment={message:""},n.$on("$locationChangeSuccess",function(){n.$dismiss()}),n.submit=function(){a.createComment(t.id,n.comment.message,function(e){if(e)return t=e,void r("COMMENT_SAVE_ERROR").then(function(e){i.addError({status:e,message:t?t.message:"",exclusive:!0,scope:n})}).catch(function(){});var t;n.$close()})}}]},{}],351:[function(e,t,n){"use strict";function r(e){e.registerDefaultView("tasklist.task.detail",{id:"task-detail-description",label:"DESCRIPTION",template:'<div class="description-pane">\r\n <div ng-hide="task.description"\r\n class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'NO_DESCRIPTION\' | translate }}\r\n </div>\r\n <div ng-show="task.description">\r\n {{ task.description }}\r\n </div>\r\n</div>\r\n',controller:i,priority:100})}var i=["$scope",function(){}];r.$inject=["ViewsProvider"],t.exports=r},{}],352:[function(e,t,n){"use strict";var r=["$scope","$q","camAPI",function(t,n,e){var r=e.resource("process-definition"),i=e.resource("case-definition"),a=t.taskData.newChild(t);a.provide("xml",["processDefinition","caseDefinition",function(e,t){return e||t?e?o(n,r,e).then(function(e){return e.bpmn20Xml}).catch(function(){}):o(n,i,t).then(function(e){return e.cmmnXml}).catch(function(){}):n.when(null)}]),a.provide("diagram",["xml","task","caseDefinition","processDefinition",function(e,t,n,r){return{xml:e,task:t,definition:r||n}}]),a.observe("processDefinition",function(e){t.processDefinition=e}),a.observe("caseDefinition",function(e){t.caseDefinition=e}),t.diagramState=a.observe("diagram",function(e){t.diagram=e}),t.control={},t.highlightTask=function(){t.control.highlight(t.diagram.task.taskDefinitionKey)}}];function o(e,t,n){var r=e.defer();return t.xml(n,function(e,t){e?r.reject(e):r.resolve(t)}),r.promise}function i(e){e.registerDefaultView("tasklist.task.detail",{id:"task-detail-diagram",label:"DIAGRAM",template:'<div ng-show="!diagramState.$loaded"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n</div>\r\n\r\n<div ng-if="diagramState.$loaded">\r\n <div ng-hide="diagram.definition && diagram.xml"\r\n class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'NO_DIAGRAM\' | translate }}\r\n </div>\r\n\r\n <div ng-if="processDefinition && diagram.xml">\r\n <div class="diagram-pane"\r\n cam-widget-bpmn-viewer\r\n diagram-data="diagram.xml"\r\n on-load="highlightTask()"\r\n control="control">\r\n </div>\r\n </div>\r\n\r\n <div ng-if="caseDefinition && diagram.xml">\r\n <div class="diagram-pane"\r\n cam-widget-cmmn-viewer\r\n diagram-data="diagram.xml"\r\n on-load="highlightTask()"\r\n control="control">\r\n </div>\r\n </div>\r\n\r\n</div>\r\n',controller:r,priority:600})}i.$inject=["ViewsProvider"],t.exports=i},{}],353:[function(e,t,n){"use strict";function r(e){e.registerDefaultView("tasklist.task.detail",{id:"task-detail-form",label:"FORM",template:'<div class="form-pane">\r\n\r\n <div ng-if="loadingState === \'ERROR\'" uib-alert class="alert alert-danger" role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <strong class="status">{{ \'FORM_FAILURE\' | translate }}</strong>\r\n <span class="message">{{ taskFormState.$error.message }}</span>\r\n </div>\r\n\r\n <div ng-if="loadingState === \'DONE\'"\r\n cam-tasklist-form\r\n tasklist-form="taskForm"\r\n on-form-completion-callback="completionCallback"\r\n options="options"\r\n params="params" >\r\n </div>\r\n\r\n</div>',controller:i,priority:1e3})}var c=e("../../../../../../../camunda-commons-ui/vendor/angular"),i=["$scope","$location","$q","camAPI","assignNotification",function(r,n,t,e,i){r.loadingState="LOADING";var a=e.resource("task"),o=r.errorHandler,s=r.options={hideCompleteButton:!1,hideLoadVariablesButton:!1,disableCompleteButton:!1,disableForm:!1,disableAddVariableButton:!1},l=r.taskData.newChild(r);l.provide("taskForm",["task",function(e){var n=t.defer();return e.id===r.task.id&&r.taskForm?(n.resolve(c.copy(r.taskForm)),n.promise):(r.loadingState="LOADING",e&&e.id?(a.form(e.id,function(e,t){e?(r.loadingState="ERROR",n.reject(e)):(r.loadingState="DONE",n.resolve(t))}),n.promise):(r.loadingState="ERROR",n.resolve(null)))}]),l.observe(["task","isAssignee",function(e,t){r.options=c.copy(s),e&&e.id?r.params={taskId:e.id,caseDefinitionId:e.caseDefinitionId,caseInstanceId:e.caseInstanceId,processDefinitionId:e.processDefinitionId,processInstanceId:e.processInstanceId}:r.params=null,r.options.disableCompleteButton=!t,r.options.disableForm=!t,r.options.disableAddVariableButton=!t}]),l.observe("taskForm",function(e){c.equals(e,r.taskForm)||(r.taskForm=c.copy(e))}),r.completionCallback=function(e){if(e)return o("COMPLETE_ERROR",e);var t;r.task.processInstanceId?i({assignee:r.task.assignee,processInstanceId:r.task.processInstanceId,maxResults:15}):r.task.caseInstanceId&&i({assignee:r.task.assignee,caseInstanceId:r.task.caseInstanceId,maxResults:15}),delete(t=n.search()).task,delete t.detailsTab,n.search(t),l.changed("taskList")}}];r.$inject=["ViewsProvider"],t.exports=r},{"../../../../../../../camunda-commons-ui/vendor/angular":72}],354:[function(e,t,n){"use strict";function c(e,t){var n=r.grep(e,function(e){return i(e.date,i.ISO_8601).format("YYYY-MM-DD")===i(t,i.ISO_8601).format("YYYY-MM-DD")});return 0<n.length?n[0]:(n={date:t,events:[]},e.push(n),n)}function u(e,t){var n=r.grep(e,function(e){return e.operationId===t.operationId});return 0<n.length?n[0]:(n={time:t.timestamp,type:t.operationType,operationId:t.operationId,userId:t.userId,subEvents:[]},e.push(n),n)}var r=e("jquery"),i=e("../../../../../../../camunda-commons-ui/vendor/moment");function a(e){e.registerDefaultView("tasklist.task.detail",{id:"task-detail-history",label:"HISTORY",template:'<div class="history-pane">\r\n\r\n <div ng-show="!state.$loaded"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n </div>\r\n\r\n <div ng-hide="!state.$loaded">\r\n <div ng-if="!days.length">\r\n <div class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'NO_HISTORY\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <div ng-if="days.length"\r\n class="day row"\r\n ng-repeat="day in days | orderBy:\'-date\'">\r\n <div class="col-xs-2">\r\n <div class="date-badge">\r\n <div>\r\n <span class="day">{{ day.date | camDate:\'day\' }}</span>\r\n <span class="month">{{ day.date | camDate:\'monthName\' }}</span>\r\n <span class="year">{{ day.date | date:\'yyyy\' }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class="col-xs-10">\r\n <div class="instant row"\r\n ng-repeat="event in day.events | orderBy:\'-time\'">\r\n <div class="col-xs-2 operation-meta">\r\n <div class="operation-time"\r\n tooltip-placement="left"\r\n uib-tooltip="{{ event.time | camDate:\'long\' }}">{{ event.time | date:\'HH:mm\' }}</div>\r\n <div class="operation-user"\r\n tooltip-placement="top"\r\n uib-tooltip="{{ event.userId }}">{{ event.userId }}</div>\r\n </div>\r\n\r\n <div class="col-xs-10 operation-detail">\r\n <div class="row">\r\n <h4 class="col-xs-12">{{ event.type | translate }}</h4>\r\n </div>\r\n\r\n <div class="row event-body">\r\n <div class="line"\r\n ng-repeat="subEvent in event.subEvents"\r\n ng-if="event.type !== \'Comment\'">\r\n <h5 class="col-sm-12 col-md-3 event-property">{{ subEvent.property | translate }}</h5>\r\n\r\n <div class="col-sm-12 col-md-9">\r\n <div class="new-value" ng-if="subEvent.newValue">\r\n <span ng-if="subEvent.propertyIsDate">{{ subEvent.newValue | camDate }}</span>\r\n <span ng-if="!subEvent.propertyIsDate">{{ subEvent.newValue }}</span>\r\n </div>\r\n\r\n <div class="original-value"\r\n ng-if="subEvent.orgValue">\r\n <span ng-if="subEvent.propertyIsDate">{{ subEvent.orgValue | camDate }}</span>\r\n <span ng-if="!subEvent.propertyIsDate">{{ subEvent.orgValue }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-xs-12"\r\n ng-if="event.type === \'Comment\'"\r\n nl2br="event.message"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <ul uib-pagination\r\n ng-if="pages.total > pages.size"\r\n class="pagination-sm"\r\n\r\n page="pages.current"\r\n ng-model="pages.current"\r\n ng-change="onPaginationChange()"\r\n\r\n total-items="pages.total"\r\n items-per-page="pages.size"\r\n\r\n max-size="7"\r\n boundary-links="true"></ul>\r\n\r\n </div>\r\n</div>\r\n',controller:o,priority:800})}var o=["$scope","camAPI","$q",function(t,e,r){var i=e.resource("history"),n=e.resource("task"),a=t.taskData.newChild(t),o=t.pages={size:50,total:0,current:1};t.onPaginationChange=function(){a.changed("history")},a.provide("history",["task",function(e){var n=r.defer();return e?(i.userOperationCount({taskId:e.id},function(e,t){if(e)throw e;o.total=t.count}),i.userOperation({taskId:e.id,maxResults:o.size,firstResult:o.size*(o.current-1)},function(e,t){e?n.reject(e):n.resolve(t)}),n.promise):n.resolve(null)}]),a.provide("comments",["task",function(e){var t=r.defer();return e?n.comments(e.id).catch(function(){}):t.resolve(null)}]),a.provide("orderedHistoryAndCommentsByDay",["history","comments",function(e,t){e=e||{},t=t||{};for(var n,r,i,a,o=[],s=0;r=e[s];s++){n=c(o,r.timestamp);var l=u(n.events,r);i=r.property,-1!==["dueDate","followUpDate"].indexOf(i)&&(r.propertyIsDate=!0,r.newValue=r.newValue?parseInt(r.newValue,10):null,r.orgValue=r.orgValue?parseInt(r.orgValue,10):null),l.subEvents.push(r)}for(s=0,n=null;a=t[s];s++)n=c(o,a.time),a.type="Comment",n.events.push(a);return o}]),t.state=a.observe("orderedHistoryAndCommentsByDay",function(e){t.days=e})}];a.$inject=["ViewsProvider"],t.exports=a},{"../../../../../../../camunda-commons-ui/vendor/moment":74,jquery:"jquery"}],355:[function(e,t,n){"use strict";t.exports=["$scope","Views",function(e,t){e.tasklistVars={read:["tasklistData"]},e.tasklistPlugins=t.getProviders({component:"tasklist.list"}),e.tasklistHeaderPlugins=t.getProviders({component:"tasklist.header"})}]},{}],356:[function(e,t,n){"use strict";var m=e("../../../../../../camunda-commons-ui/vendor/angular"),f=e("jquery");t.exports=[function(){return{restrict:"A",scope:{tasklistData:"="},template:'<div ng-show="!state.$loaded && !state.$error"\r\n class="loader">\r\n <span class="animate-spin glyphicon glyphicon-refresh"></span>\r\n {{ \'LOADING\' | translate }}\r\n</div>\r\n\r\n<div ng-show="state.$error"\r\n uib-alert class="alert alert-danger"\r\n role="alert">\r\n <span class="glyphicon glyphicon-exclamation-sign"></span>\r\n <strong class="status">{{ \'FAILURE\' | translate }}:</strong>\r\n <span class="message">{{ error.message }}</span>\r\n</div>\r\n\r\n<div ng-if="state.$loaded && !state.$error">\r\n <div ng-if="!totalItems"\r\n class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'NO_MATCHING_TASK\' | translate }}\r\n </div>\r\n\r\n <div ng-if="totalItems && !tasks"\r\n class="well">\r\n <span class="glyphicon glyphicon-info-sign"></span>\r\n {{ \'RESTRICTION_NOTICE\' | translate }}\r\n <a ng-click="resetPage()">{{ \'RESET_PAGE\' | translate }}</a>\r\n </div>\r\n\r\n <div ng-if="totalItems"\r\n ng-keydown="handleKeydown($event)">\r\n <ol class="tasks-list list-unstyled">\r\n <li class="task"\r\n ng-repeat="(delta, task) in tasks"\r\n ng-class="{active: currentTaskId === task.id}">\r\n\r\n <div class="clickable"\r\n ng-click="focus($event, task)">\r\n <div class="names">\r\n <h4 class="task">\r\n <a ng-href="{{ getHrefUrl(task) }}"\r\n ng-click="focus($event, task)">\r\n {{ task.name || task.taskDefinitionKey || task.id }}\r\n </a>\r\n </h4>\r\n\r\n <h6 class="process-definition"\r\n ng-if="task.processDefinitionId">\r\n {{ task._embedded.processDefinition[0].name || task._embedded.processDefinition[0].key }}\r\n </h6>\r\n\r\n <h6 class="case-definition"\r\n ng-if="task.caseDefinitionId">\r\n {{ task._embedded.caseDefinition[0].name || task._embedded.caseDefinition[0].key }}\r\n </h6>\r\n\r\n <h5 class="assignee"\r\n ng-if="task.assignee"\r\n uib-tooltip="task.assignee">\r\n {{ assigneeDisplayedName(task); }}\r\n </h5>\r\n </div>\r\n\r\n <div class="cells-wrapper">\r\n <div class="dates"\r\n ng-click="focus($event, task)">\r\n <span class="due-date"\r\n ng-if="!!task.due"\r\n ng-class="{overdue: task.due && (task.due < now) }">\r\n {{ \'DUE\' | translate }}\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ task.due | camDate:\'long\' }}"\r\n am-time-ago="task.due">{{ task.due }}</span>\r\n </span>\r\n\r\n <span class="followup-date"\r\n ng-if="!!task.followUp"\r\n ng-class="{overdue: task.followUp && (task.followUp < now) }">\r\n {{ \'FOLLOW_UP\' | translate }}\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ task.followUp | camDate:\'long\' }}"\r\n am-time-ago="task.followUp">{{ task.followUp }}</span>\r\n </span>\r\n\r\n <span class="creation-date">\r\n {{ \'CREATION\' | translate }}\r\n <span tooltip-placement="top"\r\n uib-tooltip="{{ task.created | camDate:\'long\' }}"\r\n am-time-ago="task.created">{{ task.created }}</span>\r\n </span>\r\n </div>\r\n\r\n <div class="priority"\r\n tooltip-placement="right"\r\n uib-tooltip="{{ \'PRIORITY\' | translate }}">\r\n {{ task.priority }}\r\n </div>\r\n </div>\r\n\r\n <div class="task-card-details"\r\n ng-class="{expanded: !!expanded[delta]}">\r\n <view ng-repeat="plugin in cardPlugins"\r\n data-plugin-id="{{ plugin.id }}"\r\n class="tasklist-card-plugin"\r\n vars="cardPluginVars"\r\n provider="plugin"></view>\r\n\r\n <div class="shutter actions"\r\n ng-click="toggle(delta, $event)"\r\n tooltip-placement="bottom"\r\n uib-tooltip="{{ (!!expanded[delta] ? \'SHOW_LESS\' : \'SHOW_MORE\') | translate }}">\r\n <a class="glyphicon"\r\n ng-class="{\'glyphicon-menu-up\': expanded[delta], \'glyphicon-menu-down\': !expanded[delta]}"\r\n href>\r\n </a>\r\n </div>\r\n </div>\x3c!-- / details --\x3e\r\n </div>\r\n </li>\r\n </ol>\r\n </div>\r\n</div>\r\n\r\n<ul uib-pagination ng-show="state.$loaded && totalItems > pageSize"\r\n total-items="totalItems"\r\n items-per-page="pageSize"\r\n max-size="5"\r\n class="pagination-sm"\r\n boundary-links="true"\r\n ng-model="pageNum"\r\n ng-change="pageChange()"\r\n next-text="›"\r\n last-text="»"\r\n previous-text="‹"\r\n first-text="«"></ul>\r\n',controller:["$element","$scope","$location","search","Views","$timeout","$interval",function(e,a,o,i,t,n,r){function s(e){i.updateSilently(e)}function l(){c.set("taskId",{taskId:null});var e=o.search()||{};e.task=null,s(e)}a.expanded={},a.toggle=function(e,t){a.expanded[e]=!a.expanded[e],t&&t.preventDefault&&t.preventDefault(),t.stopPropagation()},a.pageNum=1,a.pageSize=null,a.totalItems=0,r(function(){a.now=(new Date).toJSON()},1e3),a.filterProperties=null;var c=a.tasklistData.newChild(a);a.query={};var u=a.assignees={};function p(){f(".task-card-details").each(function(){var e=0;f("view",this).each(function(){e+=this.clientHeight}),e<=20&&f(this).addClass("no-shutter")})}var d=[];a.state=c.observe("taskList",function(e){if(e instanceof Error)throw a.error=e;a.totalItems=e.count,a.tasks=e._embedded.task,e._embedded.assignee&&function(e){for(var t=0;t<e.length;t++)a.assignees[e[t].id]=e[t]}(e._embedded.assignee),d.push(function(){n(p)}),d.forEach(function(e){e()}),d=[],a.expanded={}}),a.$on("shortcut:focusList",function(){var e=document.querySelector("[cam-tasks] .tasks-list li:first-child a");e&&e.focus()}),a.assigneeDisplayedName=function(e){var t=u[e.assignee]||{},n=t.firstName||t.lastName;return n?(t.firstName||"")+" "+(t.lastName||""):u[e.assignee]&&n?"<nobody>":e.assignee},c.observe("taskListQuery",function(e){if(e){var t=a.query,n=o.search()||{},r=n.forceDisplayTask;if(a.query=m.copy(e),a.pageSize=a.query.maxResults,a.pageNum=a.query.firstResult/a.pageSize+1,r)return delete n.forceDisplayTask,i.updateSilently(n);t.id&&t.id!==e.id&&l()}else l()}),c.observe("taskId",function(e){a.currentTaskId=e.taskId}),c.observe(["currentFilter",function(e){e&&(a.filterProperties=null!==e?e.properties:null)}]),a.focus=function(e,t){e&&e.preventDefault();var n=t.id;c.set("taskId",{taskId:n}),a.currentTaskId=n;var r=o.search()||{};r.task=n,s(r);var i=document.querySelector('[cam-tasks] .tasks-list .task [href*="#/?task='+n+'"]');i&&i.focus()};a.handleKeydown=function(t){40===t.keyCode?(t.preventDefault(),function(){for(var e=0;e<a.tasks.length-1;e++)if(a.tasks[e].id===a.currentTaskId)return a.focus(null,a.tasks[e+1]);a.pageNum<Math.ceil(a.totalItems/a.pageSize)&&(a.pageNum++,a.pageChange(),d.push(function(){n(function(){a.focus(null,a.tasks[0])})}))}()):38===t.keyCode&&(t.preventDefault(),function(){for(var e=1;e<a.tasks.length;e++)if(a.tasks[e].id===a.currentTaskId)return a.focus(null,a.tasks[e-1]);1<a.pageNum&&(a.pageNum--,a.pageChange(),d.push(function(){n(function(){a.focus(null,a.tasks[a.tasks.length-1])})}))}()),n(function(){var e=f(t.target).find("li.active")[0];e&&e.scrollIntoView(!1)})},a.getHrefUrl=function(e){var t="#/?task="+e.id,n=o.search().detailsTab;return n&&(t=t+"&detailsTab="+n),t},a.cardPluginVars={read:["task","filterProperties"]},a.cardPlugins=t.getProviders({component:"tasklist.card"}),a.pageChange=function(){s({page:a.pageNum}),c.changed("taskListQuery")},a.resetPage=function(){s({page:1}),c.changed("taskListQuery")}}]}}]},{"../../../../../../camunda-commons-ui/vendor/angular":72,jquery:"jquery"}],357:[function(e,t,n){"use strict";var r=e("../../../../../camunda-commons-ui/vendor/angular"),i=e("./controller/cam-tasklist-list-ctrl"),a=e("./directives/cam-tasklist-tasks"),o=e("./plugins/cam-tasklist-search-plugin"),s=r.module("cam.tasklist.tasklist",["ui.bootstrap"]);s.controller("camListCtrl",i),s.directive("camTasks",a),s.config(o),t.exports=s},{"../../../../../camunda-commons-ui/vendor/angular":72,"./controller/cam-tasklist-list-ctrl":355,"./directives/cam-tasklist-tasks":356,"./plugins/cam-tasklist-search-plugin":358}],358:[function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.string.replace");function s(e){return!!e.basic||(i=e.value.value,a=e.enforceString,t=a?""+i:isNaN(i)||""===i.trim()?"true"===i||"false"!==i&&("NULL"===i?null:0===i.indexOf("'")&&i.lastIndexOf("'")===i.length-1?i.substr(1,i.length-2):i):+i,n=e.operator.value.key,r=e,"like"!==n.toLowerCase()||/(%)|(_)/.test(t.replace(/(\\%)|(\\_)/g,""))?"in"==n?t.split(","):r.allowDates&&u.test(t)?l(t,l.ISO_8601).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"):t:"%"+t+"%");var t,n,r,i,a}function r(e){e.registerDefaultView("tasklist.list",{id:"task-search",template:'<div cam-widget-search\r\n cam-widget-search-total="totalItems"\r\n cam-widget-search-valid-searches="searches"\r\n cam-widget-search-match-any="matchAny"\r\n cam-widget-search-disable-typeahead-autoselect="true"\r\n cam-widget-search-translations="translations"\r\n cam-widget-search-types="types"\r\n cam-widget-search-operators="operators"\r\n cam-widget-search-mode="filter"\r\n cam-widget-search-storage-group="\'TLT\'"\r\n class="multiline-pills"></div>\r\n',controller:p,priority:100})}var i=e("../../../../../../camunda-commons-ui/vendor/angular"),l=e("../../../../../../camunda-commons-ui/vendor/moment"),c=/^[\s]*([#$]){/,u=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})$/,a=JSON.parse('{\r\n "types": [\r\n {\r\n "id": {\r\n "key": "processVariables",\r\n "value": "PROCESS_VARIABLE"\r\n },\r\n "extended": true,\r\n "caseOptions": true,\r\n "allowDates": true\r\n },\r\n {\r\n "id": {\r\n "key": "taskVariables",\r\n "value": "TASK_VARIABLE"\r\n },\r\n "extended": true,\r\n "caseOptions": true,\r\n "allowDates": true\r\n },\r\n {\r\n "id": {\r\n "key": "caseInstanceVariables",\r\n "value": "CASE_VARIABLE"\r\n },\r\n "extended": true,\r\n "caseOptions": true,\r\n "allowDates": true\r\n },\r\n {\r\n "id": {\r\n "key": "processInstanceIdIn",\r\n "value": "PROCESS_INSTANCE_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "in",\r\n "value": "in"\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "processInstanceBusinessKey",\r\n "value": "PROCESS_INSTANCE_BUSINESS_KEY"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n\r\n ],\r\n "enforceString" : true\r\n }, {\r\n "id": {\r\n "key": "processDefinitionId",\r\n "value": "PROCESS_DEFINITION_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "processDefinitionKey",\r\n "value": "PROCESS_DEFINITION_KEY"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "processDefinitionName",\r\n "value": "PROCESS_DEFINITION_NAME"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n\r\n ]\r\n }, {\r\n "id": {\r\n "key": "executionId",\r\n "value": "EXECUTION_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "caseInstanceId",\r\n "value": "CASE_INSTANCE_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "caseInstanceBusinessKey",\r\n "value": "CASE_INSTANCE_BUSINESS_KEY"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n\r\n ]\r\n }, {\r\n "id": {\r\n "key": "caseDefinitionId",\r\n "value": "CASE_DEFINITION_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "caseDefinitionKey",\r\n "value": "CASE_DEFINITION_KEY"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "caseDefinitionName",\r\n "value": "CASE_DEFINITION_NAME"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n\r\n ]\r\n }, {\r\n "id": {\r\n "key": "caseExecutionId",\r\n "value": "CASE_EXECUTION_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "assignee",\r\n "value": "ASSIGNEE"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "owner",\r\n "value": "OWNER"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "candidateGroup",\r\n "value": "CANDIDATE_GROUP"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "candidateUser",\r\n "value": "CANDIDATE_USER"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "involvedUser",\r\n "value": "INVOLVED_USER"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "taskDefinitionKey",\r\n "value": "TASK_DEFINITION_KEY"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "name",\r\n "value": "NAME"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n\r\n ],\r\n "default": true\r\n }, {\r\n "id": {\r\n "key": "description",\r\n "value": "DESCRIPTION"\r\n },\r\n "operators": [\r\n {\r\n "key": "Like",\r\n "value": "LIKE"\r\n },{\r\n "key": "eq",\r\n "value": "="\r\n }\r\n\r\n ]\r\n }, {\r\n "id": {\r\n "key": "priority",\r\n "value": "PRIORITY"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n },\r\n {\r\n "key": "max",\r\n "value": "<="\r\n },\r\n {\r\n "key": "min",\r\n "value": ">="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "due",\r\n "value": "DUE_DATE"\r\n },\r\n "operators": [\r\n {\r\n "key": "Before",\r\n "value": "BEFORE"\r\n },\r\n {\r\n "key": "After",\r\n "value": "AFTER"\r\n }\r\n ],\r\n "allowDates": true,\r\n "enforceDates": true\r\n }, {\r\n "id": {\r\n "key": "followUp",\r\n "value": "FOLLOW_UP_DATE"\r\n },\r\n "operators": [\r\n {\r\n "key": "Before",\r\n "value": "BEFORE"\r\n },\r\n {\r\n "key": "After",\r\n "value": "AFTER"\r\n }\r\n ],\r\n "allowDates": true,\r\n "enforceDates": true\r\n }, {\r\n "id": {\r\n "key": "created",\r\n "value": "CREATION_DATE"\r\n },\r\n "operators": [\r\n {\r\n "key": "Before",\r\n "value": "BEFORE"\r\n },\r\n {\r\n "key": "After",\r\n "value": "AFTER"\r\n }\r\n ],\r\n "allowDates": true,\r\n "enforceDates": true\r\n }, {\r\n "id": {\r\n "key": "delegationState",\r\n "value": "DELEGATION_STATE"\r\n },\r\n "operators": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "tenantIdIn",\r\n "value": "TENANT_ID"\r\n },\r\n "operators": [\r\n {\r\n "key": "in",\r\n "value": "in"\r\n }\r\n ]\r\n }, {\r\n "id": {\r\n "key": "withoutTenantId",\r\n "value": "WITHOUT_TENANT_ID"\r\n },\r\n "basic": true\r\n }\r\n ],\r\n "operators": {\r\n "date": [\r\n {\r\n "key": "lteq",\r\n "value": "BEFORE"\r\n },\r\n {\r\n "key": "gteq",\r\n "value": "AFTER"\r\n }\r\n ],\r\n "boolean": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n },\r\n {\r\n "key": "neq",\r\n "value": "!="\r\n }\r\n ],\r\n "object": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n },\r\n {\r\n "key": "neq",\r\n "value": "!="\r\n }\r\n ],\r\n "number": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n },\r\n {\r\n "key": "neq",\r\n "value": "!="\r\n },\r\n {\r\n "key": "gt",\r\n "value": ">"\r\n },\r\n {\r\n "key": "gteq",\r\n "value": ">="\r\n },\r\n {\r\n "key": "lt",\r\n "value": "<"\r\n },\r\n {\r\n "key": "lteq",\r\n "value": "<="\r\n }\r\n ],\r\n "string": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n },\r\n {\r\n "key": "neq",\r\n "value": "!="\r\n },\r\n {\r\n "key": "gt",\r\n "value": ">"\r\n },\r\n {\r\n "key": "gteq",\r\n "value": ">="\r\n },\r\n {\r\n "key": "lt",\r\n "value": "<"\r\n },\r\n {\r\n "key": "lteq",\r\n "value": "<="\r\n },\r\n {\r\n "key": "like",\r\n "value": "like"\r\n }\r\n ],\r\n "undefined": [\r\n {\r\n "key": "eq",\r\n "value": "="\r\n },\r\n {\r\n "key": "neq",\r\n "value": "!="\r\n },\r\n {\r\n "key": "gt",\r\n "value": ">"\r\n },\r\n {\r\n "key": "gteq",\r\n "value": ">="\r\n },\r\n {\r\n "key": "lt",\r\n "value": "<"\r\n },\r\n {\r\n "key": "lteq",\r\n "value": "<="\r\n },\r\n {\r\n "key": "like",\r\n "value": "like"\r\n }\r\n ]\r\n },\r\n "tooltips": {\r\n "inputPlaceholder": "SEARCH_PLACEHOLDER",\r\n "invalid": "INVALID_SEARCH",\r\n "deleteSearch": "DELETE_SEARCH",\r\n "type": "TYPE",\r\n "name": "PROPERTY",\r\n "operator": "OPERATOR",\r\n "value": "VALUE"\r\n }\r\n}\r\n'),p=["$scope","$translate","$location",function(n,e,t){n.searches=[],n.translations={},n.matchAny=t.search().searchOrQuery||!1,n.translations=a.tooltips,n.types=a.types,n.operators=a.operators;var r=n.tasklistData.newChild(n);n.$watch("[searches, matchAny]",function(){var a,e={};!0===n.matchAny?(e.orQueries=[{}],(a=e.orQueries[0]).processVariables=[],a.taskVariables=[],a.caseInstanceVariables=[]):(e.processVariables=[],e.taskVariables=[],e.caseInstanceVariables=[],a=e),i.forEach(n.searches,function(e){var t,n,r,i;"object"===o(a[e.type.value.key])?a[e.type.value.key].push({name:"object"===o(e.name.value)?e.name.value.key:e.name.value,operator:e.operator.value.key,value:s(e)}):a[t=e.type.value.key,n=e.operator.value.key,r=e.value.value,i=t,-1!==["Like","Before","After"].indexOf(n)&&(i+=n),c.test(r)&&-1!==["assignee","owner","candidateGroup","candidateUser","involvedUser","processInstanceBusinessKey"].indexOf(t)&&(i+="Expression"),"priority"===t&&"eq"!==n&&(i=n+"Priority"),i]=s(e)}),!1===n.matchAny&&delete e.orQueries,r.set("searchQuery",e)},!0),r.observe("currentFilter",function(r){i.forEach(n.types,function(e){e.potentialNames=[];for(var t=0;t<(r&&r.properties&&r.properties.variables&&r.properties.variables.length);t++){var n=r.properties.variables[t];e.potentialNames.push({key:n.name,value:n.label+" ("+n.name+")"})}}),i.forEach(n.searches,function(t){t.potentialNames=n.types.filter(function(e){return e.id.key===t.type.value.key})[0].potentialNames})}),r.observe("taskList",function(e){n.totalItems=e.count})}];r.$inject=["ViewsProvider"],t.exports=r},{"../../../../../../camunda-commons-ui/vendor/angular":72,"../../../../../../camunda-commons-ui/vendor/moment":74,"core-js/modules/es.string.replace":188}]},{},[310])(310)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment