webpackJsonp([18],{1000:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dependence-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Add dependency")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"dep-opt"},[n("a",{staticClass:"add-dep",attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._addDep()}}},[t.isLoading?t._e():n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("Add")}},[t._v("\n \n ")]),t._v(" "),t.isLoading?n("i",{staticClass:"iconfont fa fa-spin",attrs:{"data-toggle":"tooltip",title:t.$t("Add")}},[t._v("\n \n ")]):t._e()])]),t._v(" "),n("div",{staticClass:"dep-box"},[t.dependTaskList.length?n("span",{staticClass:"dep-relation",on:{click:function(e){!t.isDetails&&t._setGlobalRelation()}}},[t._v("\n "+t._s("AND"===t.relation?t.$t("and"):t.$t("or"))+"\n ")]):t._e(),t._v(" "),t._l(t.dependTaskList,function(e,i){return n("div",{staticClass:"dep-list"},[e.dependItemList.length?n("span",{staticClass:"dep-line-pie",on:{click:function(e){!t.isDetails&&t._setRelation(i)}}},[t._v("\n "+t._s("AND"===e.relation?t.$t("and"):t.$t("or"))+"\n ")]):t._e(),t._v(" "),n("i",{staticClass:"iconfont dep-delete",class:t._isDetails,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("delete")},on:{click:function(e){!t.isDetails&&t._deleteDep(i)}}},[t._v("\n \n ")]),t._v(" "),n("m-depend-item-list",{attrs:{index:i},on:{"on-delete-all":t._onDeleteAll},model:{value:e.dependItemList,callback:function(n){t.$set(e,"dependItemList",n)},expression:"el.dependItemList"}})],1)})],2)])])],1)},staticRenderFns:[]};e.a=i},1001:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(914),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1002),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},1002:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sub_process-model"},[n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Child Node")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("div",{staticClass:"label-box"},[n("x-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:t.isDetails},on:{"on-change":t._handleWdiChanged},model:{value:t.wdiCurr,callback:function(e){t.wdiCurr=e},expression:"wdiCurr"}},t._l(t.processDefinitionList,function(t){return n("x-option",{key:t.code,attrs:{value:t.id,label:t.code}})}),1)],1)])])])},staticRenderFns:[]};e.a=i},1003:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(915),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1004),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},1004:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-select",{staticStyle:{width:"157px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChange},scopedSlots:t._u([{key:"trigger",fn:function(e){var i=e.selectedModel;return t.isInput?n("x-input",{ref:"input",staticStyle:{width:"100%"},attrs:{disabled:t.isDetails,maxlength:"4",placeholder:t.$t("Please choose"),value:null===i?"0":i.value},on:{"on-blur":t._onBlur,"on-click-icon":function(e){return e.stopPropagation(),t._ckIcon(e)}}},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.isIconState,expression:"!isIconState"}],staticClass:"fa fa-times-circle",staticStyle:{"font-size":"15px",cursor:"pointer"},attrs:{slot:"suffix"},slot:"suffix"}),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:t.isIconState,expression:"isIconState"}],staticClass:"ans-icon-arrow-down",staticStyle:{"font-size":"12px"},attrs:{slot:"suffix"},slot:"suffix"})]):t._e()}}],null,!0),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[t._v(" "),t._l(t.list,function(t){return n("x-option",{key:t,attrs:{value:t,label:t}})})],2)},staticRenderFns:[]};e.a=i},1005:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(916),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1006),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},1006:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeout-alarm-model"},[n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Timeout alarm")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("div",{staticStyle:{"padding-top":"5px"}},[n("x-switch",{attrs:{disabled:t.isDetails},on:{"on-click":t._onSwitch},model:{value:t.enable,callback:function(e){t.enable=e},expression:"enable"}})],1)])])]),t._v(" "),t.enable?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Timeout strategy")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("div",{staticStyle:{"padding-top":"6px"}},[n("x-checkbox-group",{model:{value:t.strategy,callback:function(e){t.strategy=e},expression:"strategy"}},[n("x-checkbox",{attrs:{label:"WARN",disabled:t.isDetails}},[t._v(t._s(t.$t("Timeout alarm")))]),t._v(" "),n("x-checkbox",{attrs:{label:"FAILED",disabled:t.isDetails}},[t._v(t._s(t.$t("Timeout failure")))])],1)],1)])])]):t._e(),t._v(" "),t.enable?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Timeout period")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-input",{staticStyle:{width:"128px"},attrs:{disabled:t.isDetails,maxlength:"9"},model:{value:t.interval,callback:function(e){t.interval=e},expression:"interval"}},[n("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$t("Minute")))])])],1)])]):t._e()])},staticRenderFns:[]};e.a=i},1007:function(t,e,n){"use strict";e.__esModule=!0;e.default={bind:function(t,e,n){var i=function(i){if(!n.context||t.contains(i.target))return!1;e.expression?n.context[t["@@clickoutsideContext"].methodName](i):t["@@clickoutsideContext"].bindingFn(i)};t["@@clickoutsideContext"]={documentHandler:i,methodName:e.expression,bindingFn:e.value},setTimeout(function(){document.addEventListener("click",i)},0)},update:function(t,e){t["@@clickoutsideContext"].methodName=e.expression,t["@@clickoutsideContext"].bindingFn=e.value},unbind:function(t){document.removeEventListener("click",t["@@clickoutsideContext"].documentHandler)}}},1008:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t._handleClose,expression:"_handleClose"}],staticClass:"form-model-model"},[n("div",{staticClass:"title-box"},[n("span",{staticClass:"name"},[t._v(t._s(t.$t("Current node settings")))]),t._v(" "),n("span",{staticClass:"go-subtask"},[n("m-log",{attrs:{item:t.backfillItem}},[n("template",{slot:"history"},[n("a",{attrs:{href:"javascript:"},on:{click:t._seeHistory}},[n("i",{staticClass:"iconfont"},[t._v("")]),n("em",[t._v(t._s(t.$t("View history")))])])]),t._v(" "),n("template",{slot:"log"},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"iconfont"},[t._v("")]),n("em",[t._v(t._s(t.$t("View log")))])])])],2),t._v(" "),t._isGoSubProcess?n("a",{attrs:{href:"javascript:"},on:{click:t._goSubProcess}},[n("i",{staticClass:"iconfont"},[t._v("")]),n("em",[t._v(t._s(t.$t("Enter this child node")))])]):t._e()],1)]),t._v(" "),t.isContentBox?n("div",{staticClass:"content-box"},[n("div",{staticClass:"from-model"},[n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Node name")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-input",{attrs:{type:"text",disabled:t.isDetails,placeholder:t.$t("Please enter name(required)"),maxlength:"100",autocomplete:"off"},on:{"on-blur":function(e){return t._verifName()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Run flag")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-radio-group",{model:{value:t.runFlag,callback:function(e){t.runFlag=e},expression:"runFlag"}},[n("x-radio",{attrs:{label:"NORMAL",disabled:t.isDetails}},[t._v(t._s(t.$t("Normal")))]),t._v(" "),n("x-radio",{attrs:{label:"FORBIDDEN",disabled:t.isDetails}},[t._v(t._s(t.$t("Prohibition execution")))])],1)],1)])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Description")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("label",{staticClass:"label-box"},[n("x-input",{attrs:{resize:"",autosize:{minRows:2},type:"textarea",disabled:t.isDetails,placeholder:t.$t("Please enter description"),autocomplete:"off"},model:{value:t.desc,callback:function(e){t.desc=e},expression:"desc"}})],1)])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Task priority")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("span",{staticClass:"label-box",staticStyle:{width:"193px",display:"inline-block"}},[n("m-priority",{model:{value:t.taskInstancePriority,callback:function(e){t.taskInstancePriority=e},expression:"taskInstancePriority"}})],1),t._v(" "),n("span",{staticClass:"text-b"},[t._v(t._s(t.$t("Worker group")))]),t._v(" "),n("m-worker-groups",{model:{value:t.workerGroupId,callback:function(e){t.workerGroupId=e},expression:"workerGroupId"}})],1)]),t._v(" "),"SUB_PROCESS"!==t.taskType?n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text-box"},[n("span",[t._v(t._s(t.$t("Number of failed retries")))])]),t._v(" "),n("div",{staticClass:"cont-box"},[n("m-select-input",{attrs:{list:[0,1,2,3,4]},model:{value:t.maxRetryTimes,callback:function(e){t.maxRetryTimes=e},expression:"maxRetryTimes"}}),t._v(" "),n("span",[t._v("("+t._s(t.$t("Times"))+")")]),t._v(" "),n("span",{staticClass:"text-b"},[t._v(t._s(t.$t("Failed retry interval")))]),t._v(" "),n("m-select-input",{attrs:{list:[1,10,30,60,120]},model:{value:t.retryInterval,callback:function(e){t.retryInterval=e},expression:"retryInterval"}}),t._v(" "),n("span",[t._v("("+t._s(t.$t("Minute"))+")")])],1)]):t._e(),t._v(" "),n("m-timeout-alarm",{ref:"timeout",attrs:{"backfill-item":t.backfillItem},on:{"on-timeout":t._onTimeout}}),t._v(" "),"SHELL"===t.taskType?n("m-shell",{ref:"SHELL",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"SUB_PROCESS"===t.taskType?n("m-sub-process",{ref:"SUB_PROCESS",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams,"on-set-process-name":t._onSetProcessName}}):t._e(),t._v(" "),"PROCEDURE"===t.taskType?n("m-procedure",{ref:"PROCEDURE",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"SQL"===t.taskType?n("m-sql",{ref:"SQL",attrs:{"create-node-id":t.id,"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"SPARK"===t.taskType?n("m-spark",{ref:"SPARK",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"MR"===t.taskType?n("m-mr",{ref:"MR",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"PYTHON"===t.taskType?n("m-python",{ref:"PYTHON",attrs:{"backfill-item":t.backfillItem},on:{"on-params":t._onParams}}):t._e(),t._v(" "),"DEPENDENT"===t.taskType?n("m-dependent",{ref:"DEPENDENT",attrs:{"backfill-item":t.backfillItem},on:{"on-dependent":t._onDependent}}):t._e()],1)]):t._e(),t._v(" "),n("div",{staticClass:"bottom-box"},[n("div",{staticClass:"submit",staticStyle:{background:"#fff"}},[n("x-button",{attrs:{type:"text"},on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("Cancel"))+" ")]),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle",loading:t.spinnerLoading,disabled:t.isDetails},on:{click:function(e){return t.ok()}}},[t._v(t._s(t.spinnerLoading?"Loading...":t.$t("Confirm add"))+" ")])],1)])])},staticRenderFns:[]};e.a=i},1009:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"clearfix dag-model"},[n("div",{staticClass:"toolbar"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("Toolbar")))])]),t._v(" "),n("div",{staticClass:"toolbar-btn"},t._l(t.tasksTypeList,function(e,i){return n("div",{staticClass:"bar-box roundedRect jtk-draggable jtk-droppable jtk-endpoint-anchor jtk-connected",class:i===t.dagBarId?"active":"",attrs:{id:i},on:{mousedown:function(e){return t._getDagId(i)}}},[n("div",{class:t._isDetails,attrs:{"data-toggle":"tooltip",title:e.desc}},[n("div",{staticClass:"icos",class:"icos-"+i})])])}),0)]),t._v(" "),n("div",{staticClass:"dag-contect"},[n("div",{staticClass:"dag-toolbar"},[n("div",{staticClass:"assist-btn"},[n("x-button",{staticStyle:{"vertical-align":"middle"},attrs:{"data-toggle":"tooltip",title:t.$t("View variables"),"data-container":"body",type:"primary",size:"xsmall",disabled:"projects-instance-details"!==t.$route.name,icon:"fa fa-code"},on:{click:t._toggleView}}),t._v(" "),n("span",{staticClass:"name"},[t._v(t._s(t.name))])],1),t._v(" "),n("div",{staticClass:"save-btn"},[n("div",{staticClass:"operation",staticStyle:{"vertical-align":"middle"}},t._l(t.toolOperList,function(e,i){return n("a",{class:t._operationClass(e),attrs:{href:"javascript:",id:e.code},on:{click:function(n){return t._ckOperation(e,n)}}},[n("i",{staticClass:"iconfont",attrs:{"data-toggle":"tooltip",title:e.desc},domProps:{innerHTML:t._s(e.icon)}})])}),0),t._v(" "),"instance"===t.type?n("x-button",{staticStyle:{"vertical-align":"middle"},attrs:{"data-toggle":"tooltip",title:t.$t("Refresh DAG status"),"data-container":"body",icon:"fa fa-refresh",type:"primary",loading:t.isRefresh,size:"xsmall"},on:{click:function(e){!t.isRefresh&&t._refresh()}}}):t._e(),t._v(" "),t.isRtTasks?n("x-button",{staticStyle:{"vertical-align":"middle"},attrs:{type:"primary",size:"xsmall",icon:"fa fa-reply"},on:{click:t._rtNodesDag}},[t._v("\n "+t._s(t.$t("Return_1"))+"\n ")]):t._e(),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],staticStyle:{"vertical-align":"middle"},attrs:{type:"primary",size:"xsmall",loading:t.spinnerLoading,icon:"fa fa-save",disabled:t.isDetails},on:{click:t._saveChart}},[t._v("\n "+t._s(t.spinnerLoading?"Loading...":t.$t("Save"))+"\n ")])],1)]),t._v(" "),t._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"scrollbar dag-container"},[e("div",{staticClass:"jtk-demo",attrs:{id:"jtk-demo"}},[e("div",{staticClass:"jtk-demo-canvas canvas-wide statemachine-demo jtk-surface jtk-surface-nopan jtk-draggable",attrs:{id:"canvas"}})])])}]};e.a=i},1086:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(1169)),r=o(n(742));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"definition-create-index",components:{mCreateDag:i.default,mSecondaryMenu:r.default}}},1087:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(933)),r=n(123),o=l(n(701)),s=l(n(897)),a=l(n(677));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-index",data:function(){return{isLoading:!0}},mixins:[a.default],props:{},methods:Object.assign({},(0,r.mapMutations)("dag",["resetParams"]),(0,r.mapActions)("dag",["getProcessList","getResourcesList"]),(0,r.mapActions)("security",["getWorkerGroupsAll"]),{init:function(){var t=this;this.isLoading=!0,this.resetParams(),Promise.all([this.getProcessList(),this.getResourcesList(),this.getWorkerGroupsAll()]).then(function(e){t.isLoading=!1,s.default.init(t.$root)}).catch(function(){t.isLoading=!1})}}),watch:{$route:{deep:!0,handler:function(){this.init()}}},created:function(){this.init()},mounted:function(){},components:{mDag:i.default,mSpin:o.default}}},1169:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1087),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1170),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},1170:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"home-main index-model"},[this.isLoading?this._e():e("m-dag"),this._v(" "),e("m-spin",{attrs:{"is-spin":this.isLoading}})],1)},staticRenderFns:[]};e.a=i},1171:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement;return(this._self._c||t)("m-create-dag")},staticRenderFns:[]};e.a=i},616:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1086),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1171),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},664:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"spin",data:function(){return{}},props:{isSpin:{type:Boolean,default:!0},isLeft:{type:Boolean,default:!0}}}},677:function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(92)),r=s(n(222)),o=s(n(124));function s(t){return t&&t.__esModule?t:{default:t}}e.default={data:function(){return{router:r.default,store:i.default,isDetails:!1}},created:function(){this.isDetails=!o.default.getAuth()||this.store.state.dag.isDetails},computed:{_isDetails:function(){return this.isDetails?"icon-disabled":""}}}},701:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(664),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(704);var a=function(t){n(702)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},702:function(t,e,n){var i=n(703);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("058996ed",i,!0,{})},703:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,"#spin-model{position:fixed;left:20px;top:80px;background:#fff;z-index:99;border-radius:3px}#spin-model .svg-box{width:100px;height:66px;position:absolute;left:50%;top:50%;margin-left:-50px;margin-top:-33px;text-align:center}#spin-model .svg-box .sp1{display:block;font-size:12px;color:#999;padding-top:4px}#spin-model.spin-sp1{width:calc(100% - 40px);height:calc(100% - 100px)}#spin-model.spin-sp2{width:calc(100% - 240px);height:calc(100% - 100px);left:220px}",""])},704:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isSpin?n("div",{class:t.isLeft?"spin-sp2":"spin-sp1",attrs:{id:"spin-model"}},[n("div",{staticClass:"svg-box"},[n("svg",{staticClass:"lds-gears",staticStyle:{background:"none"},attrs:{width:"54px",height:"54px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[n("g",{attrs:{transform:"translate(50 50)"}},[n("g",{attrs:{transform:"translate(-19 -19) scale(0.6)"}},[n("g",{attrs:{transform:"rotate(107.866)"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}}),n("path",{attrs:{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#0097e0"}})],1)]),t._v(" "),n("g",{attrs:{transform:"translate(19 19) scale(0.6)"}},[n("g",{attrs:{transform:"rotate(229.634)"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360;0",keyTimes:"0;1",dur:"1s",begin:"-0.0625s",repeatCount:"indefinite"}}),n("path",{attrs:{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#7f8b95"}})],1)])])]),t._v(" "),n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Loading...")))])])]):t._e()},staticRenderFns:[]};e.a=i},705:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(747),o=(i=r)&&i.__esModule?i:{default:i};e.default={name:"secondary-menu",data:function(){return{menuList:(0,o.default)(this.type),index:0,id:this.$route.params.id,isTogHide:!1}},props:{type:String,className:String},watch:{isTogHide:function(t){var e=$(".main-layout-box");t?e.addClass("toggle"):e.removeClass("toggle")}},methods:{_toggleSubMenu:function(t){t.isOpen=!t.isOpen},_toggleMenu:function(){this.isTogHide=!this.isTogHide}},mounted:function(){}}},706:function(t,e,n){var i;i=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=i||r||o,a=s&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),d=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),f=/PhantomJS/.test(t),m=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),g=/Android/.test(t),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=m||/Mac/.test(e),y=/\bCrOS\b/.test(t),x=/win/i.test(e),_=d&&t.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(d=!1,l=!0);var w=b&&(c||d&&(null==_||_<12.11)),C=n||s&&a>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var P,S=function(t,e){var n=t.className,i=k(e).exec(n);if(i){var r=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function L(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function E(t,e){return L(t).appendChild(e)}function D(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}m?O=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(O=function(t){try{t.select()}catch(t){}});var R=function(){this.id=null};function z(t,e){for(var n=0;n=e)return i+Math.min(s,e-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=e)return i}}var Y=[""];function V(t){for(;Y.length<=t;)Y.push(X(Y)+" ");return Y[t]}function X(t){return t[t.length-1]}function K(t,e){for(var n=[],i=0;i"€"&&(t.toUpperCase()!=t.toLowerCase()||Z.test(t))}function et(t,e){return e?!!(e.source.indexOf("\\w")>-1&&tt(t))||e.test(t):tt(t)}function nt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&it.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function at(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e=t.first&&en?mt(n,at(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?mt(t.line,e):n<0?mt(t.line,0):t}(e,at(t,e.line).text.length)}function Ct(t,e){for(var n=[],i=0;i=e:o.to>e);(i||(i=[])).push(new St(s,o.from,a?null:o.to))}}return i}(n,r,s),l=function(t,e,n){var i;if(t)for(var r=0;r=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from0&&a)for(var y=0;ye)&&(!n||Ot(n,o.marker)<0)&&(n=o.marker)}return n}function zt(t,e,n,i,r){var o=at(t,e),s=Pt&&o.markedSpans;if(s)for(var a=0;a=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?gt(c.to,n)>=0:gt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?gt(c.from,i)<=0:gt(c.from,i)<0)))return!0}}}function Ht(t){for(var e;e=$t(t);)t=e.find(-1,!0).line;return t}function Wt(t,e){var n=at(t,e),i=Ht(n);return n==i?e:dt(i)}function Bt(t,e){if(e>t.lastLine())return e;var n,i=at(t,e);if(!Gt(t,i))return e;for(;n=Ft(i);)i=n.find(1,!0).line;return dt(i)+1}function Gt(t,e){var n=Pt&&e.markedSpans;if(n)for(var i=void 0,r=0;re.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}var Xt=null;function Kt(t,e,n){var i;Xt=null;for(var r=0;re)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:Xt=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:Xt=r)}return null!=i?i:Xt}var Jt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,r=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function a(t,e,n){this.level=t,this.from=e,this.to=n}return function(l,c){var u="ltr"==c?"L":"R";if(0==l.length||"ltr"==c&&!n.test(l))return!1;for(var d,h=l.length,p=[],f=0;f-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function ie(t,e){var n=ee(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function ae(t){t.prototype.on=function(t,e){te(this,t,e)},t.prototype.off=function(t,e){ne(this,t,e)}}function le(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function ce(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ue(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function de(t){le(t),ce(t)}function he(t){return t.target||t.srcElement}function pe(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var fe,me,ge=function(){if(s&&a<9)return!1;var t=D("div");return"draggable"in t||"dragDrop"in t}();function ve(t){if(null==fe){var e=D("span","​");E(t,D("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(fe=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=fe?D("span","​"):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function be(t){if(null!=me)return me;var e=E(t,document.createTextNode("AخA")),n=P(e,0,1).getBoundingClientRect(),i=P(e,1,2).getBoundingClientRect();return L(t),!(!n||n.left==n.right)&&(me=i.right-n.right<3)}var ye,xe=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},_e=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},we="oncopy"in(ye=D("div"))||(ye.setAttribute("oncopy","return;"),"function"==typeof ye.oncopy),Ce=null;var ke={},Pe={};function Se(t){if("string"==typeof t&&Pe.hasOwnProperty(t))t=Pe[t];else if(t&&"string"==typeof t.name&&Pe.hasOwnProperty(t.name)){var e=Pe[t.name];"string"==typeof e&&(e={name:e}),(t=Q(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Se("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Se("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Le(t,e){e=Se(e);var n=ke[e.name];if(!n)return Le(t,"text/plain");var i=n(t,e);if(Ee.hasOwnProperty(e.name)){var r=Ee[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)i[s]=e.modeProps[s];return i}var Ee={};function De(t,e){$(e,Ee.hasOwnProperty(t)?Ee[t]:Ee[t]={})}function Te(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Ie(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Me(t,e,n){return!t.startState||t.startState(e,n)}var Ae=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ae.prototype.eol=function(){return this.pos>=this.string.length},Ae.prototype.sol=function(){return this.pos==this.lineStart},Ae.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ae.prototype.next=function(){if(this.pose},Ae.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Ae.prototype.skipToEnd=function(){this.pos=this.string.length},Ae.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Ae.prototype.backUp=function(t){this.pos-=t},Ae.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},Ae.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ae.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Ae.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Ae.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var je=function(t,e){this.state=t,this.lookAhead=e},Oe=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function Ne(t,e,n,i){var r=[t.state.modeGen],o={};Ue(t,e.text,t.doc.mode,n,function(t,e){return r.push(t,e)},o,i);for(var s=n.state,a=function(i){n.baseTokens=r;var a=t.state.overlays[i],l=1,c=0;n.state=!0,Ue(t,e.text,a.mode,n,function(t,e){for(var n=l;ct&&r.splice(l,1,t,r[l+1],i),l+=2,c=Math.min(t,i)}if(e)if(a.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Te(t.doc.mode,i.state),o=Ne(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Fe(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new Oe(i,!0,e);var o=function(t,e,n){for(var i,r,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=at(o,a-1),c=l.stateAfter;if(c&&(!n||a+(c instanceof je?c.lookAhead:0)<=o.modeFrontier))return a;var u=F(l.text,null,t.options.tabSize);(null==r||i>u)&&(r=a-1,i=u)}return r}(t,e,n),s=o>i.first&&at(i,o-1).stateAfter,a=s?Oe.fromSaved(i,s,o):new Oe(i,Me(i.mode),o);return i.iter(o,e,function(n){Re(t,n.text,a);var i=a.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&ie.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}Oe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},Oe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oe.fromSaved=function(t,e,n){return e instanceof je?new Oe(t,Te(t.mode,e.state),n,e.lookAhead):new Oe(t,Te(t.mode,e),n)},Oe.prototype.save=function(t){var e=!1!==t?Te(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new je(e,this.maxLookAhead):e};var We=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Be(t,e,n,i){var r,o,s=t.doc,a=s.mode,l=at(s,(e=wt(s,e)).line),c=Fe(t,e.line,n),u=new Ae(l.text,t.options.tabSize,c);for(i&&(o=[]);(i||u.post.options.maxHighlightLength?(a=!1,s&&Re(t,e,i,d.pos),d.pos=e.length,l=null):l=Ge(He(n,d,i.state,h),o),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!a||u!=l){for(;c1&&!/ /.test(t))return t;for(var n=e,i="",r=0;rc&&d.from<=c);h++);if(d.to>=u)return t(n,i,r,o,s,a,l);t(n,i.slice(0,d.to-c),r,o,null,a,l),o=null,i=i.slice(d.to-c),c=d.to}}}function en(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var s,a,l,c,u,d,h,p=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=c=u=a="",h=null,d=null,v=1/0;for(var b=[],y=void 0,x=0;xf||w.collapsed&&_.to==f&&_.from==f)){if(null!=_.to&&_.to!=f&&v>_.to&&(v=_.to,c=""),w.className&&(l+=" "+w.className),w.css&&(a=(a?a+";":"")+w.css),w.startStyle&&_.from==f&&(u+=" "+w.startStyle),w.endStyle&&_.to==v&&(y||(y=[])).push(w.endStyle,_.to),w.title&&((h||(h={})).title=w.title),w.attributes)for(var C in w.attributes)(h||(h={}))[C]=w.attributes[C];w.collapsed&&(!d||Ot(d.marker,w)<0)&&(d=_)}else _.from>f&&v>_.from&&(v=_.from)}if(y)for(var k=0;k=p)break;for(var S=Math.min(p,v);;){if(g){var L=f+g.length;if(!d){var E=L>S?g.slice(0,S-f):g;e.addToken(e,E,s?s+l:l,u,f+E.length==v?c:"",a,h)}if(L>=S){g=g.slice(S-f),f=S;break}f=L,u=""}g=r.slice(o,o=n[m++]),s=Ke(n[m++],e.cm.options)}}else for(var D=1;Dn)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function Tn(t,e,n,i){return An(t,Mn(t,e),n,i)}function In(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,i){var r,o=Nn(e.map,n,i),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;c&&rt(e.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}(t.display.measure,r))}else{var p;c>0&&(d=i="right"),r=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==i?p.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+ni(t.display),top:f.top,bottom:f.bottom}:On}for(var m=r.top-e.rect.top,g=r.bottom-e.rect.top,v=(m+g)/2,b=e.view.measure.heights,y=0;ye)&&(r=(o=l-a)-1,e>=l&&(s="right")),null!=r){if(i=t[c+2],a==l&&n==(i.insertLeft?"left":"right")&&(s=n),"left"==n&&0==r)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)i=t[2+(c-=3)],s="left";if("right"==n&&r==l-a)for(;c=0&&(n=t[r]).left==n.right;r--);return n}function Fn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!a)return s("before"==c?l-1:l,"before"==c);function u(t,e,n){var i=1==a[e].level;return s(n?t-1:t,i!=n)}var d=Kt(a,l,c),h=Xt,p=u(l,d,"before"==c);return null!=h&&(p.other=u(l,h,"before"!=c)),p}function Vn(t,e){var n=0;e=wt(t.doc,e),t.options.lineWrapping||(n=ni(t.display)*e.ch);var i=at(t.doc,e.line),r=qt(i)+Cn(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Xn(t,e,n,i,r){var o=mt(t,e,n);return o.xRel=r,i&&(o.outside=!0),o}function Kn(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return Xn(i.first,0,null,!0,-1);var r=ht(i,n),o=i.first+i.size-1;if(r>o)return Xn(i.first+i.size-1,at(i,o).text.length,null,!0,1);e<0&&(e=0);for(var s=at(i,r);;){var a=ti(t,s,r,e,n),l=Rt(s,a.ch+(a.xRel>0?1:0));if(!l)return a;var c=l.find(1);if(c.line==r)return c;s=at(i,r=c.line)}}function Jn(t,e,n,i){i-=Bn(e);var r=e.text.length,o=st(function(e){return An(t,n,e-1).bottom<=i},r,0);return{begin:o,end:r=st(function(e){return An(t,n,e).top>i},o,r)}}function Qn(t,e,n,i){return n||(n=Mn(t,e)),Jn(t,e,n,Gn(t,e,An(t,n,i),"line").top)}function Zn(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function ti(t,e,n,i,r){r-=qt(e);var o=Mn(t,e),s=Bn(e),a=0,l=e.text.length,c=!0,u=Qt(e,t.doc.direction);if(u){var d=(t.options.lineWrapping?function(t,e,n,i,r,o,s){var a=Jn(t,e,i,s),l=a.begin,c=a.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h=c||p.to<=l)){var f=1!=p.level,m=An(t,i,f?Math.min(c,p.to)-1:Math.max(l,p.from)).right,g=mg)&&(u=p,d=g)}}u||(u=r[r.length-1]);u.fromc&&(u={from:u.from,to:c,level:u.level});return u}:function(t,e,n,i,r,o,s){var a=st(function(a){var l=r[a],c=1!=l.level;return Zn(Yn(t,mt(n,c?l.to:l.from,c?"before":"after"),"line",e,i),o,s,!0)},0,r.length-1),l=r[a];if(a>0){var c=1!=l.level,u=Yn(t,mt(n,c?l.from:l.to,c?"after":"before"),"line",e,i);Zn(u,o,s,!0)&&u.top>s&&(l=r[a-1])}return l})(t,e,n,o,u,i,r);a=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var h,p,f=null,m=null,g=st(function(e){var n=An(t,o,e);return n.top+=s,n.bottom+=s,!!Zn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=e,m=n),!0)},a,l),v=!1;if(m){var b=i-m.left=x.bottom}return Xn(n,g=ot(e.text,g,1),p,v,i-h)}function ei(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==jn){jn=D("pre");for(var e=0;e<49;++e)jn.appendChild(document.createTextNode("x")),jn.appendChild(D("br"));jn.appendChild(document.createTextNode("x"))}E(t.measure,jn);var n=jn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),L(t.measure),n||1}function ni(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=D("span","xxxxxxxxxx"),n=D("pre",[e]);E(t.measure,n);var i=e.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function ii(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)n[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+r,i[t.options.gutters[s]]=o.clientWidth;return{fixedPos:ri(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function ri(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function oi(t){var e=ei(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/ni(t.display)-3);return function(r){if(Gt(t.doc,r))return 0;var o=0;if(r.widgets)for(var s=0;s=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i=t.display.viewTo||a.to().linee||e==n&&s.to==e)&&(i(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}(m,n||0,null==i?h:i,function(t,e,r,d){var g="ltr"==r,v=p(t,g?"left":"right"),b=p(e-1,g?"right":"left"),y=null==n&&0==t,x=null==i&&e==h,_=0==d,w=!m||d==m.length-1;if(b.top-v.top<=3){var C=(c?x:y)&&w,k=(c?y:x)&&_?a:(g?v:b).left,P=C?l:(g?b:v).right;u(k,v.top,P-k,v.bottom)}else{var S,L,E,D;g?(S=c&&y&&_?a:v.left,L=c?l:f(t,r,"before"),E=c?a:f(e,r,"after"),D=c&&x&&w?l:b.right):(S=c?f(t,r,"before"):a,L=!c&&y&&_?l:v.right,E=!c&&x&&w?a:b.left,D=c?f(e,r,"after"):l),u(S,v.top,L-S,v.bottom),v.bottom0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function mi(t){t.state.focused||(t.display.input.focus(),vi(t))}function gi(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,bi(t))},100)}function vi(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ie(t,"focus",t,e),t.state.focused=!0,A(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),fi(t))}function bi(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ie(t,"blur",t,e),t.state.focused=!1,S(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function yi(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i.005||h<-.005)&&(ut(r.line,l),xi(r.line),r.rest))for(var p=0;pt.display.sizerWidth){var f=Math.ceil(c/ni(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=r.line,t.display.maxLineChanged=!0)}}}}function xi(t){if(t.widgets)for(var e=0;e=s&&(o=ht(e,qt(at(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function wi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=ri(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",s=0;so&&(e.bottom=e.top+o);var a=t.doc.height+kn(n),l=e.topa-i;if(e.topr+o){var u=Math.min(e.top,(c?a:e.bottom)-o);u!=r&&(s.scrollTop=u)}var d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,h=Ln(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>h;return p&&(e.right=e.left+h),e.left<10?s.scrollLeft=0:e.lefth+d-3&&(s.scrollLeft=e.right+(p?0:10)-h),s}function Pi(t,e){null!=e&&(Ei(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Si(t){Ei(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Li(t,e,n){null==e&&null==n||Ei(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Ei(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Di(t,Vn(t,e.from),Vn(t,e.to),e.margin))}function Di(t,e,n,i){var r=ki(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});Li(t,r.scrollLeft,r.scrollTop)}function Ti(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ar(t,{top:e}),Ii(t,e,!0),n&&ar(t),nr(t,100))}function Ii(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Mi(t,e,n,i){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,wi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Ai(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+kn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Sn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var ji=function(t,e,n){this.cm=n;var i=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,t(i),t(r),te(i,"scroll",function(){i.clientHeight&&e(i.scrollTop,"vertical")}),te(r,"scroll",function(){r.clientWidth&&e(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ji.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ji.prototype.zeroWidthHack=function(){var t=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},ji.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)})},ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Oi=function(){};function Ni(t,e){e||(e=Ai(t));var n=t.display.barWidth,i=t.display.barHeight;$i(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&yi(t),$i(t,Ai(t)),n=t.display.barWidth,i=t.display.barHeight}function $i(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Oi.prototype.update=function(){return{bottom:0,right:0}},Oi.prototype.setScrollLeft=function(){},Oi.prototype.setScrollTop=function(){},Oi.prototype.clear=function(){};var Fi={native:ji,null:Oi};function Ri(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&S(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Fi[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),te(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?Mi(t,e):Ti(t,e)},t),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)}var zi=0;function Hi(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zi},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function Wi(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new rr(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Gi(t){var e=t.cm,n=e.display;t.updatedDisplay&&yi(e),t.barMeasure=Ai(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Tn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Sn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Ln(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Ui(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=D("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+Sn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(r),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,i){var r;null==i&&(i=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?mt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?mt(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=Yn(t,e),l=n&&n!=e?Yn(t,n):a,c=ki(t,r={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i}),u=t.doc.scrollTop,d=t.doc.scrollLeft;if(null!=c.scrollTop&&(Ti(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(s=!0)),null!=c.scrollLeft&&(Mi(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-d)>1&&(s=!0)),!s)break}return r}(e,wt(i,t.scrollToPos.from),wt(i,t.scrollToPos.to),t.scrollToPos.margin));var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var s=0;se)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Pt&&Wt(t.doc,e)r.viewFrom?Zi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)Zi(t);else if(e<=r.viewFrom){var o=tr(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):Zi(t)}else if(n>=r.viewTo){var s=tr(t,e,e,-1);s?(r.view=r.view.slice(0,s.index),r.viewTo=s.lineN):Zi(t)}else{var a=tr(t,e,e,-1),l=tr(t,n,n+i,1);a&&l?(r.view=r.view.slice(0,a.index).concat(on(t,a.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):Zi(t)}var c=r.externalMeasured;c&&(n=r.lineN&&e=i.viewTo)){var o=i.view[li(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==z(s,n)&&s.push(n)}}}function Zi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function tr(t,e,n,i){var r,o=li(t,e),s=t.display.view;if(!Pt||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l0){if(o==s.length-1)return null;r=a+s[o].size-e,o++}else r=a-e;e+=r,n+=r}for(;Wt(t.doc,n)!=n;){if(o==(i<0?0:s.length-1))return null;n+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function er(t){for(var e=t.display.view,n=0,i=0;i=t.display.viewTo)){var n=+new Date+t.options.workTime,i=Fe(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(i.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Te(e.mode,i.state):null,l=Ne(t,o,i,!0);a&&(i.state=a),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!s||s.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&hn)return nr(t,t.options.workDelay),!0}),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&Yi(t,function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==er(t))return!1;Ci(t)&&(Zi(t),e.dims=ii(t));var r=i.first+i.size,o=Math.max(e.visible.from-t.options.viewportMargin,i.first),s=Math.min(r,e.visible.to+t.options.viewportMargin);n.viewFroms&&n.viewTo-s<20&&(s=Math.min(r,n.viewTo)),Pt&&(o=Wt(t.doc,o),s=Bt(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=on(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=on(t,e,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,li(t,n)))),i.viewTo=n}(t,o,s),n.viewOffset=qt(at(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=er(t);if(!a&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(t){if(t.hasFocus())return null;var e=M();if(!e||!I(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&I(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(t);return c>4&&(n.lineDiv.style.display="none"),function(t,e,n){var i=t.display,r=t.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=i.view,u=i.viewFrom,d=0;d-1&&(p=!1),un(t,h,u,n)),p&&(L(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(ft(t.options,u)))),s=h.node.nextSibling}else{var f=vn(t,h,u,n);o.insertBefore(f,s)}u+=h.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=M()&&(t.activeElt.focus(),t.anchorNode&&I(document.body,t.anchorNode)&&I(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(u),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,nr(t,400)),n.updateLineNumbers=null,!0}function sr(t,e){for(var n=e.viewport,i=!0;(i&&t.options.lineWrapping&&e.oldDisplayWidth!=Ln(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+kn(t.display)-En(t),n.top)}),e.visible=_i(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&or(t,e);i=!1){yi(t);var r=Ai(t);ci(t),Ni(t,r),cr(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ar(t,e){var n=new rr(t,e);if(or(t,n)){yi(t),sr(t,n);var i=Ai(t);ci(t),Ni(t,i),cr(t,i),n.finish()}}function lr(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function cr(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Sn(t)+"px"}function ur(t){var e=t.display.gutters,n=t.options.gutters;L(e);for(var i=0;i-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}rr.prototype.signal=function(t,e){se(t,e)&&this.events.push(arguments)},rr.prototype.finish=function(){for(var t=0;ta.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&c||o&&u){if(o&&b&&l)t:for(var h=e.target,p=s.view;h!=a;h=h.parentNode)for(var f=0;f=0&>(t,i.to())<=0)return n}return-1};var br=function(t,e){this.anchor=t,this.head=e};function yr(t,e,n){var i=t&&t.options.selectionsMayTouch,r=e[n];e.sort(function(t,e){return gt(t.from(),e.from())}),n=z(e,r);for(var o=1;o0:l>=0){var c=xt(a.from(),s.from()),u=yt(a.to(),s.to()),d=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new br(d?u:c,d?c:u))}}return new vr(e,n)}function xr(t,e){return new vr([new br(t,e||t)],0)}function _r(t){return t.text?mt(t.from.line+t.text.length-1,X(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function wr(t,e){if(gt(t,e.from)<0)return t;if(gt(t,e.to)<=0)return _r(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=_r(e).ch-e.to.ch),mt(n,i)}function Cr(t,e){for(var n=[],i=0;i1&&t.remove(a.line+1,f-1),t.insert(a.line+1,v)}ln(t,"change",t,e)}function Dr(t,e,n){!function t(i,r,o){if(i.linked)for(var s=0;sa-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(jr(t.done),X(t.done)):t.done.length&&!X(t.done).ranges?X(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),X(t.done)):void 0}(r,r.lastOp==i)))s=X(o.changes),0==gt(e.from,e.to)&&0==gt(e.from,s.to)?s.to=_r(e):o.changes.push(Ar(t,e));else{var l=X(r.done);for(l&&l.ranges||$r(t.sel,r.done),o={changes:[Ar(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,s||ie(t,"historyAdded")}function Nr(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||function(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,X(r.done),e))?r.done[r.done.length-1]=e:$r(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&jr(r.undone)}function $r(t,e){var n=X(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Fr(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function Rr(t){if(!t)return null;for(var e,n=0;n-1&&(X(a)[d]=c[d],delete c[d])}}}return i}function Wr(t,e,n,i){if(i){var r=t.anchor;if(n){var o=gt(e,r)<0;o!=gt(n,r)<0?(r=e,e=n):o!=gt(e,n)<0&&(e=n)}return new br(r,e)}return new br(n||e,e)}function Br(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),Vr(t,new vr([Wr(t.sel.primary(),e,n,r)],0),i)}function Gr(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:a.to>e.ch))){if(r&&(ie(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var c=l.find(i<0?1:-1),u=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(c=eo(t,c,-i,c&&c.line==e.line?o:null)),c&&c.line==e.line&&(u=gt(c,n))&&(i<0?u<0:u>0))return Zr(t,c,e,i,r)}var d=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(d=eo(t,d,i,d.line==e.line?o:null)),d?Zr(t,d,e,i,r):null}}return e}function to(t,e,n,i,r){var o=i||1,s=Zr(t,e,n,o,r)||!r&&Zr(t,e,n,o,!0)||Zr(t,e,n,-o,r)||!r&&Zr(t,e,n,-o,!0);return s||(t.cantEdit=!0,mt(t.first,0))}function eo(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?wt(t,mt(e.line-1)):null:n>0&&e.ch==(i||at(t,e.line)).text.length?e.line0)){var u=[l,1],d=gt(c.from,a.from),h=gt(c.to,a.to);(d<0||!s.inclusiveLeft&&!d)&&u.push({from:c.from,to:a.from}),(h>0||!s.inclusiveRight&&!h)&&u.push({from:a.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)oo(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else oo(t,e)}}function oo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=gt(e.from,e.to)){var n=Cr(t,e);Or(t,e,n,t.cm?t.cm.curOp.id:NaN),lo(t,e,n,Dt(t,e));var i=[];Dr(t,function(t,n){n||-1!=z(i,t.history)||(po(t.history,e),i.push(t.history)),lo(t,e,null,Dt(t,e))})}}function so(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c=0;--p){var f=h(p);if(f)return f.v}}}}function ao(t,e){if(0!=e&&(t.first+=e,t.sel=new vr(K(t.sel.ranges,function(t){return new br(mt(t.anchor.line+e,t.anchor.ch),mt(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){Ji(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;it.lastLine())){if(e.from.lineo&&(e={from:e.from,to:mt(o,at(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=lt(t,e.from,e.to),n||(n=Cr(t,e)),t.cm?function(t,e,n){var i=t.doc,r=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=dt(Ht(at(i,o.line))),i.iter(l,s.line+1,function(t){if(t==r.maxLine)return a=!0,!0}));i.sel.contains(e.from,e.to)>-1&&oe(t);Er(i,e,n,oi(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=Yt(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0));(function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;i--){var r=at(t,i).stateAfter;if(r&&(!(r instanceof je)||i+r.lookAhead1||!(this.children[0]instanceof mo))){var a=[];this.collapse(a),this.children=[new mo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var s=r.lines.length%25+25,a=s;a10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=0;i0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(t,e.line,e,n,o)||e.line!=n.line&&zt(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt=!0}o.addToHistory&&Or(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,c=t.cm;if(t.iter(l,n.line+1,function(t){c&&o.collapsed&&!c.options.lineWrapping&&Ht(t)==c.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&ut(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new St(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&t.iter(e.line,n.line+1,function(e){Gt(t,e)&&ut(e,0)}),o.clearOnEnter&&te(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(kt=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++yo,o.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),o.collapsed)Ji(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)Qi(c,u,"text");o.atomic&&Jr(c.doc),ln(c,"markerAdded",c,o)}return o}xo.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Hi(t),se(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Ji(t,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Jr(t.doc)),t&&ln(t,"markerCleared",t,this,i,r),e&&Wi(t),this.parent&&this.parent.clear()}},xo.prototype.find=function(t,e){var n,i;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r=0;l--)ro(this,i[l]);a?Yr(this,a):this.cm&&Si(this.cm)}),undo:Ki(function(){so(this,"undo")}),redo:Ki(function(){so(this,"redo")}),undoSelection:Ki(function(){so(this,"undo",!0)}),redoSelection:Ki(function(){so(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=wt(this,t),e=wt(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var i=0;it)return e=t,!0;t-=o,++n}),wt(this,mt(n,e))},indexFromPos:function(t){var e=(t=wt(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var u=t.dataTransfer.getData("Text");if(u){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),Xr(e.doc,xr(n,n)),d)for(var h=0;h=0;e--)co(t.doc,"",i[e].from,i[e].to,"+delete");Si(t)})}function Yo(t,e,n){var i=ot(t.text,e+n,n);return i<0||i>t.text.length?null:i}function Vo(t,e,n){var i=Yo(t,e.ch,n);return null==i?null:new mt(e.line,i,n<0?"after":"before")}function Xo(t,e,n,i,r){if(t){var o=Qt(n,e.doc.direction);if(o){var s,a=r<0?X(o):o[0],l=r<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var c=Mn(e,n);s=r<0?n.text.length-1:0;var u=An(e,c,s).top;s=st(function(t){return An(e,c,t).top==u},r<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Yo(n,s,1))}else s=r<0?a.to:a.from;return new mt(i,s,l)}}return new mt(i,r<0?n.text.length:0,r<0?"before":"after")}Fo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fo.default=b?Fo.macDefault:Fo.pcDefault;var Ko={selectAll:no,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),B)},killLine:function(t){return qo(t,function(e){if(e.empty()){var n=at(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)r=new mt(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),mt(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var s=at(t.doc,r.line-1).text;s&&(r=new mt(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),mt(r.line-1,s.length-1),r,"+transpose"))}n.push(new br(r,r))}t.setSelections(n)})},newlineAndIndent:function(t){return Yi(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i-1&&(gt((r=c.ranges[r]).from(),e)<0||e.xRel>0)&&(gt(r.to(),e)>0||e.xRel<0)?function(t,e,n,i){var r=t.display,o=!1,c=Vi(t,function(e){l&&(r.scroller.draggable=!1),t.state.draggingText=!1,ne(r.wrapper.ownerDocument,"mouseup",c),ne(r.wrapper.ownerDocument,"mousemove",u),ne(r.scroller,"dragstart",d),ne(r.scroller,"drop",c),o||(le(e),i.addNew||Br(t.doc,n,null,null,i.extend),l||s&&9==a?setTimeout(function(){r.wrapper.ownerDocument.body.focus(),r.input.focus()},20):r.input.focus())}),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},d=function(){return o=!0};l&&(r.scroller.draggable=!0);t.state.draggingText=c,c.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop();te(r.wrapper.ownerDocument,"mouseup",c),te(r.wrapper.ownerDocument,"mousemove",u),te(r.scroller,"dragstart",d),te(r.scroller,"drop",c),gi(t),setTimeout(function(){return r.input.focus()},20)}(t,i,e,o):function(t,e,n,i){var r=t.display,o=t.doc;le(e);var s,a,l=o.sel,c=l.ranges;i.addNew&&!i.extend?(a=o.sel.contains(n),s=a>-1?c[a]:new br(n,n)):(s=o.sel.primary(),a=o.sel.primIndex);if("rectangle"==i.unit)i.addNew||(s=new br(n,n)),n=ai(t,e,!0,!0),a=-1;else{var u=hs(t,n,i.unit);s=i.extend?Wr(s,u.anchor,u.head,i.extend):u}i.addNew?-1==a?(a=c.length,Vr(o,yr(t,c.concat([s]),a),{scroll:!1,origin:"*mouse"})):c.length>1&&c[a].empty()&&"char"==i.unit&&!i.extend?(Vr(o,yr(t,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ur(o,a,s,G):(a=0,Vr(o,new vr([s],0),G),l=o.sel);var d=n;function h(e){if(0!=gt(d,e))if(d=e,"rectangle"==i.unit){for(var r=[],c=t.options.tabSize,u=F(at(o,n.line).text,n.ch,c),h=F(at(o,e.line).text,e.ch,c),p=Math.min(u,h),f=Math.max(u,h),m=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=g;m++){var v=at(o,m).text,b=q(v,p,c);p==f?r.push(new br(mt(m,b),mt(m,b))):v.length>b&&r.push(new br(mt(m,b),mt(m,q(v,f,c))))}r.length||r.push(new br(n,n)),Vr(o,yr(t,l.ranges.slice(0,a).concat(r),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,x=s,_=hs(t,e,i.unit),w=x.anchor;gt(_.anchor,w)>0?(y=_.head,w=xt(x.from(),_.anchor)):(y=_.anchor,w=yt(x.to(),_.head));var C=l.ranges.slice(0);C[a]=function(t,e){var n=e.anchor,i=e.head,r=at(t.doc,n.line);if(0==gt(n,i)&&n.sticky==i.sticky)return e;var o=Qt(r);if(!o)return e;var s=Kt(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,c=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==c||c==o.length)return e;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=Kt(o,i.ch,i.sticky),d=u-s||(i.ch-n.ch)*(1==a.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],p=l==(1==h.level),f=p?h.from:h.to,m=p?"after":"before";return n.ch==f&&n.sticky==m?e:new br(new mt(n.line,f,m),i)}(t,new br(wt(o,w),y)),Vr(o,yr(t,C,a),G)}}var p=r.wrapper.getBoundingClientRect(),f=0;function m(e){t.state.selectingText=!1,f=1/0,le(e),r.input.focus(),ne(r.wrapper.ownerDocument,"mousemove",g),ne(r.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=Vi(t,function(e){0!==e.buttons&&pe(e)?function e(n){var s=++f;var a=ai(t,n,!0,"rectangle"==i.unit);if(!a)return;if(0!=gt(a,d)){t.curOp.focus=M(),h(a);var l=_i(r,o);(a.line>=l.to||a.linep.bottom?20:0;c&&setTimeout(Vi(t,function(){f==s&&(r.scroller.scrollTop+=c,e(n))}),50)}}(e):m(e)}),v=Vi(t,m);t.state.selectingText=v,te(r.wrapper.ownerDocument,"mousemove",g),te(r.wrapper.ownerDocument,"mouseup",v)}(t,i,e,o)}(e,i,o,t):he(t)==n.scroller&&le(t):2==r?(i&&Br(e.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(C?e.display.input.onContextMenu(t):gi(e)))}}function hs(t,e,n){if("char"==n)return new br(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new br(mt(e.line,0),wt(t.doc,mt(e.line+1,0)));var i=n(t,e);return new br(i.from,i.to)}function ps(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(e){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&le(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!se(t,n))return ue(e);o-=a.top-s.viewOffset;for(var l=0;l=r)return ie(t,n,t,ht(t.doc,o),t.options.gutters[l],e),ue(e)}}function fs(t,e){return ps(t,e,"gutterClick",!0)}function ms(t,e){wn(t.display,e)||function(t,e){if(!se(t,"gutterContextMenu"))return!1;return ps(t,e,"gutterContextMenu",!1)}(t,e)||re(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function gs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(t)}us.prototype.compare=function(t,e,n){return this.time+400>t&&0==gt(e,this.pos)&&n==this.button};var vs={toString:function(){return"CodeMirror.Init"}},bs={},ys={};function xs(t){ur(t),Ji(t),wi(t)}function _s(t,e,n){if(!e!=!(n&&n!=vs)){var i=t.display.dragFunctions,r=e?te:ne;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function ws(t){t.options.lineWrapping?(A(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(S(t.display.wrapper,"CodeMirror-wrap"),Vt(t)),si(t),Ji(t),zn(t),setTimeout(function(){return Ni(t)},100)}function Cs(t,e){var i=this;if(!(this instanceof Cs))return new Cs(t,e);this.options=e=e?$(e):{},$(bs,e,!1),dr(e);var r=e.value;"string"==typeof r?r=new So(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var o=new Cs.inputStyles[e.inputStyle](this),c=this.display=new function(t,e,i){var r=this;this.input=i,r.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=T("div",null,"CodeMirror-code"),r.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=D("div",null,"CodeMirror-cursors"),r.measure=D("div",null,"CodeMirror-measure"),r.lineMeasure=D("div",null,"CodeMirror-measure"),r.lineSpace=T("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var o=T("div",[r.lineSpace],"CodeMirror-lines");r.mover=D("div",[o],null,"position: relative"),r.sizer=D("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=D("div",null,null,"position: absolute; height: "+H+"px; width: 1px;"),r.gutters=D("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=D("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=D("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),s&&a<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),l||n&&v||(r.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(r.wrapper):t(r.wrapper)),r.viewFrom=r.viewTo=e.first,r.reportedViewFrom=r.reportedViewTo=e.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,i.init(r)}(t,r,o);for(var u in c.wrapper.CodeMirror=this,ur(this),gs(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ri(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},e.autofocus&&!v&&c.input.focus(),s&&a<11&&setTimeout(function(){return i.display.input.reset(!0)},20),function(t){var e=t.display;te(e.scroller,"mousedown",Vi(t,ds)),te(e.scroller,"dblclick",s&&a<11?Vi(t,function(e){if(!re(t,e)){var n=ai(t,e);if(n&&!fs(t,e)&&!wn(t.display,e)){le(e);var i=t.findWordAt(n);Br(t.doc,i.anchor,i.head)}}}):function(e){return re(t,e)||le(e)});te(e.scroller,"contextmenu",function(e){return ms(t,e)});var n,i={end:0};function r(){e.activeTouch&&(n=setTimeout(function(){return e.activeTouch=null},1e3),(i=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}te(e.scroller,"touchstart",function(r){if(!re(t,r)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(r)&&!fs(t,r)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-i.end<=300?i:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}}),te(e.scroller,"touchmove",function(){e.activeTouch&&(e.activeTouch.moved=!0)}),te(e.scroller,"touchend",function(n){var i=e.activeTouch;if(i&&!wn(e,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var s,a=t.coordsChar(e.activeTouch,"page");s=!i.prev||o(i,i.prev)?new br(a,a):!i.prev.prev||o(i,i.prev.prev)?t.findWordAt(a):new br(mt(a.line,0),wt(t.doc,mt(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),le(n)}r()}),te(e.scroller,"touchcancel",r),te(e.scroller,"scroll",function(){e.scroller.clientHeight&&(Ti(t,e.scroller.scrollTop),Mi(t,e.scroller.scrollLeft,!0),ie(t,"scroll",t))}),te(e.scroller,"mousewheel",function(e){return gr(t,e)}),te(e.scroller,"DOMMouseScroll",function(e){return gr(t,e)}),te(e.wrapper,"scroll",function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0}),e.dragFunctions={enter:function(e){re(t,e)||de(e)},over:function(e){re(t,e)||(!function(t,e){var n=ai(t,e);if(n){var i=document.createDocumentFragment();di(t,n,i),t.display.dragCursor||(t.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),E(t.display.dragCursor,i)}}(t,e),de(e))},start:function(e){return function(t,e){if(s&&(!t.state.draggingText||+new Date-Lo<100))de(e);else if(!re(t,e)&&!wn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(t,e)},drop:Vi(t,Eo),leave:function(e){re(t,e)||Do(t)}};var l=e.input.getField();te(l,"keyup",function(e){return ss.call(t,e)}),te(l,"keydown",Vi(t,os)),te(l,"keypress",Vi(t,as)),te(l,"focus",function(e){return vi(t,e)}),te(l,"blur",function(e){return bi(t,e)})}(this),Mo(),Hi(this),this.curOp.forceUpdate=!0,Tr(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout(N(vi,this),20):bi(this),ys)ys.hasOwnProperty(u)&&ys[u](i,e[u],vs);Ci(this),e.finishInit&&e.finishInit(this);for(var p=0;p150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?F(at(o,e-1).text,null,s):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(t.options.indentWithTabs)for(var p=Math.floor(c/s);p;--p)h+=s,d+="\t";if(hs,l=xe(e),c=null;if(a&&i.ranges.length>1)if(Ss&&Ss.text.join("\n")==e){if(i.ranges.length%Ss.text.length==0){c=[];for(var u=0;u=0;h--){var p=i.ranges[h],f=p.from(),m=p.to();p.empty()&&(n&&n>0?f=mt(f.line,f.ch-n):t.state.overwrite&&!a?m=mt(m.line,Math.min(at(o,m.line).text.length,m.ch+X(l).length)):a&&Ss&&Ss.lineWise&&Ss.text.join("\n")==e&&(f=m=mt(f.line,0)));var g={from:f,to:m,text:c?c[h%c.length]:l,origin:r||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};ro(t.doc,g),ln(t,"inputRead",t,g)}e&&!a&&Ts(t,e),Si(t),t.curOp.updateInput<2&&(t.curOp.updateInput=d),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ds(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Yi(e,function(){return Es(e,n,0,null,"paste")}),!0}function Ts(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),s=!1;if(o.electricChars){for(var a=0;a-1){s=Ps(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(at(t.doc,r.head.line).text.slice(0,r.head.ch))&&(s=Ps(t,r.head.line,"smart"));s&&ln(t,"electricInput",t,r.head.line)}}}function Is(t){for(var e=[],n=[],i=0;i=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Kt(r,n.ch,n.sticky),s=r[o];if("ltr"==t.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from=s.from&&h>=u.begin)){var p=d?"before":"after";return new mt(n.line,h,p)}}var f=function(t,e,i){for(var o=function(t,e){return e?new mt(n.line,l(t,1),"before"):new mt(n.line,t,"after")};t>=0&&t0==(1!=s.level),c=a?i.begin:l(i.end,-1);if(s.from<=c&&c0?u.end:l(u.begin,-1);return null==g||i>0&&g==e.text.length||!(m=f(i>0?0:r.length-1,i,c(g)))?null:m}(t.cm,a,e,n):Vo(a,e,n))){if(i||(s=e.line+n)=t.first+t.size||(e=new mt(s,e.ch,e.sticky),!(a=at(t,s))))return!1;e=Xo(r,t.cm,a,e.line,n)}else e=o;return!0}if("char"==i)l();else if("column"==i)l(!0);else if("word"==i||"group"==i)for(var c=null,u="group"==i,d=t.cm&&t.cm.getHelper(e,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var p=a.text.charAt(e.ch)||"\n",f=et(p,d)?"w":u&&"\n"==p?"n":!u||/\s/.test(p)?null:"p";if(!u||h||f||(f="s"),c&&c!=f){n<0&&(n=1,l(),e.sticky="after");break}if(f&&(c=f),n>0&&!l(!h))break}var m=to(t,e,o,s,!0);return vt(o,m)&&(m.hitSide=!0),m}function Os(t,e,n,i){var r,o,s=t.doc,a=e.left;if("page"==i){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*ei(t.display),3);r=(n>0?e.bottom:e.top)+n*c}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(;(o=Kn(t,a,r)).outside;){if(n<0?r<=0:r>=s.height){o.hitSide=!0;break}r+=5*n}return o}var Ns=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function $s(t,e){var n=In(t,e.line);if(!n||n.hidden)return null;var i=at(t.doc,e.line),r=Dn(n,i,e.line),o=Qt(i,t.doc.direction),s="left";o&&(s=Kt(o,e.ch)%2?"right":"left");var a=Nn(r.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Fs(t,e){return e&&(t.bad=!0),t}function Rs(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return Fs(t.clipPos(mt(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r=e.display.viewTo||o.line=e.display.viewFrom&&$s(e,r)||{node:l[0].measure.map[2],offset:0},u=o.linei.firstLine()&&(s=mt(s.line-1,at(i.doc,s.line-1).length)),a.ch==at(i.doc,a.line).text.length&&a.liner.viewTo-1)return!1;s.line==r.viewFrom||0==(t=li(i,s.line))?(e=dt(r.view[0].line),n=r.view[0].node):(e=dt(r.view[t].line),n=r.view[t-1].node.nextSibling);var l,c,u=li(i,a.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=dt(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;for(var d=i.doc.splitLines(function(t,e,n,i,r){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function c(){s&&(o+=a,l&&(o+=a),s=l=!1)}function u(t){t&&(c(),o+=t)}function d(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(mt(i,0),mt(r+1,0),(g=+h,function(t){return t.id==g}));return void(p.length&&(o=p[0].find(0))&&u(lt(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;f&&c();for(var m=0;m1&&h.length>1;)if(X(d)==X(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),e++}for(var p=0,f=0,m=d[0],g=h[0],v=Math.min(m.length,g.length);ps.ch&&b.charCodeAt(b.length-f-1)==y.charCodeAt(y.length-f-1);)p--,f++;d[d.length-1]=b.slice(0,b.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var _=mt(e,p),w=mt(l,h.length?X(h).length-f:0);return d.length>1||d[0]||gt(_,w)?(co(i.doc,d,_,w,"+input"),!0):void 0},Ns.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ns.prototype.reset=function(){this.forceCompositionEnd()},Ns.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ns.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},Ns.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Yi(this.cm,function(){return Ji(t.cm)})},Ns.prototype.setUneditable=function(t){t.contentEditable="false"},Ns.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Vi(this.cm,Es)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ns.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ns.prototype.onContextMenu=function(){},Ns.prototype.resetPosition=function(){},Ns.prototype.needsContentAttribute=!0;var Hs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Hs.prototype.init=function(t){var e=this,n=this,i=this.cm;this.createField(t);var r=this.textarea;function o(t){if(!re(i,t)){if(i.somethingSelected())Ls({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var e=Is(i);Ls({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,B):(n.prevInput="",r.value=e.text.join("\n"),O(r))}"cut"==t.type&&(i.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(r.style.width="0px"),te(r,"input",function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()}),te(r,"paste",function(t){re(i,t)||Ds(t,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),te(r,"cut",o),te(r,"copy",o),te(t.scroller,"paste",function(e){if(!wn(t,e)&&!re(i,e)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,r.dispatchEvent(o)}}),te(t.lineSpace,"selectstart",function(e){wn(t,e)||le(e)}),te(r,"compositionstart",function(){var t=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}}),te(r,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Hs.prototype.createField=function(t){this.wrapper=As(),this.textarea=this.wrapper.firstChild},Hs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=ui(t);if(t.options.moveInputWithCursor){var r=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+s.left-o.left))}return i},Hs.prototype.showSelection=function(t){var e=this.cm.display;E(e.cursorDiv,t.cursors),E(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Hs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&O(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},Hs.prototype.getField=function(){return this.textarea},Hs.prototype.supportsTouch=function(){return!1},Hs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||M()!=this.textarea))try{this.textarea.focus()}catch(t){}},Hs.prototype.blur=function(){this.textarea.blur()},Hs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Hs.prototype.receivedFocus=function(){this.slowPoll()},Hs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Hs.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))})},Hs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||_e(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(i.length,r.length);l1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Hs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Hs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},Hs.prototype.onContextMenu=function(t){var e=this,n=e.cm,i=n.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=ai(n,t),c=i.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Vi(n,Vr)(n.doc,xr(o),B);var u,h=r.style.cssText,p=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),i.input.focus(),l&&window.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),s&&a>=9&&g(),C){de(t);var m=function(){ne(window,"mouseup",m),setTimeout(v,20)};te(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var t=n.somethingSelected(),o="​"+(t?r.value:"");r.value="⇚",r.value=o,e.prevInput=t?"":"​",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,r.style.cssText=h,s&&a<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=r.selectionStart)){(!s||s&&a<9)&&g();var t=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==e.prevInput?Vi(n,no)(n):t++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},Hs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Hs.prototype.setUneditable=function(){},Hs.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,i,r,o){t.defaults[n]=i,r&&(e[n]=o?function(t,e,n){n!=vs&&r(t,e,n)}:r)}t.defineOption=n,t.Init=vs,n("value","",function(t,e){return t.setValue(e)},!0),n("mode",null,function(t,e){t.doc.modeOption=e,Pr(t)},!0),n("indentUnit",2,Pr,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(t){Sr(t),zn(t),Ji(t)},!0),n("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter(function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(mt(i,o))}i++});for(var r=n.length-1;r>=0;r--)co(t.doc,e,n[r],mt(n[r].line,n[r].ch+e.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=vs&&t.refresh()}),n("specialCharPlaceholder",Qe,function(t){return t.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),n("autocorrect",!1,function(t,e){return t.getInputField().autocorrect=e},!0),n("autocapitalize",!1,function(t,e){return t.getInputField().autocapitalize=e},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(t){gs(t),xs(t)},!0),n("keyMap","default",function(t,e,n){var i=Uo(e),r=n!=vs&&Uo(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ws,!0),n("gutters",[],function(t){dr(t.options),xs(t)},!0),n("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?ri(t.display)+"px":"0",t.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(t){return Ni(t)},!0),n("scrollbarStyle","native",function(t){Ri(t),Ni(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),n("lineNumbers",!1,function(t){dr(t.options),xs(t)},!0),n("firstLineNumber",1,xs,!0),n("lineNumberFormatter",function(t){return t},xs,!0),n("showCursorWhenSelecting",!1,ci,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(t,e){"nocursor"==e&&(bi(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),n("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),n("dragDrop",!0,_s),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,ci,!0),n("singleCursorHeightPerLine",!0,ci,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Sr,!0),n("addModeClass",!1,Sr,!0),n("pollInterval",100),n("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),n("historyEventDelay",1250),n("viewportMargin",10,function(t){return t.refresh()},!0),n("maxHighlightLength",1e4,Sr,!0),n("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),n("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),n("autofocus",null),n("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0),n("phrases",null)}(Cs),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&Vi(this,e[t])(this,n,r),ie(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Uo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(Ps(this,r.head.line,t,!0),n=r.head.line,i==this.doc.sel.primIndex&&Si(this));else{var o=r.from(),s=r.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l0&&Ur(this.doc,i,new br(o,c[i].to()),B)}}}),getTokenAt:function(t,e){return Be(this,t,e)},getLineTokens:function(t,e){return Be(this,mt(t),e,!0)},getTokenTypeAt:function(t){t=wt(this.doc,t);var e,n=$e(this,at(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=i+r>>1;if((s?n[2*s-1]:0)>=o)r=s;else{if(!(n[2*s+1]o&&(t=o,r=!0),i=at(this.doc,t)}else i=t;return Gn(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-qt(i):0)},defaultTextHeight:function(){return ei(this.display)},defaultCharWidth:function(){return ni(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o,s,a,l=this.display,c=(t=Yn(this,wt(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==i)c=t.top;else if("above"==i||"near"==i){var d=Math.max(l.wrapper.clientHeight,this.doc.height),h=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>d)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=d&&(c=t.bottom),u+e.offsetWidth>h&&(u=h-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==r?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?u=0:"middle"==r&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(o=this,s={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(a=ki(o,s)).scrollTop&&Ti(o,a.scrollTop),null!=a.scrollLeft&&Mi(o,a.scrollLeft))},triggerOnKeyDown:Xi(os),triggerOnKeyPress:Xi(as),triggerOnKeyUp:ss,triggerOnMouseDown:Xi(ds),execCommand:function(t){if(Ko.hasOwnProperty(t))return Ko[t].call(null,this)},triggerElectric:Xi(function(t){Ts(this,t)}),findPosH:function(t,e,n,i){var r=1;e<0&&(r=-1,e=-e);for(var o=wt(this.doc,t),s=0;s0&&s(e.charAt(n-1));)--n;for(;i.5)&&si(this),ie(this,"refresh",this)}),swapDoc:Xi(function(t){var e=this.doc;return e.cm=null,Tr(this,t),zn(this),this.display.input.reset(),Li(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,e),e}),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ae(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}(Cs);var Ws="iter insert remove copy getEditor constructor".split(" ");for(var Bs in So.prototype)So.prototype.hasOwnProperty(Bs)&&z(Ws,Bs)<0&&(Cs.prototype[Bs]=function(t){return function(){return t.apply(this.doc,arguments)}}(So.prototype[Bs]));return ae(So),Cs.inputStyles={textarea:Hs,contenteditable:Ns},Cs.defineMode=function(t){Cs.defaults.mode||"null"==t||(Cs.defaults.mode=t),function(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),ke[t]=e}.apply(this,arguments)},Cs.defineMIME=function(t,e){Pe[t]=e},Cs.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Cs.defineMIME("text/plain","null"),Cs.defineExtension=function(t,e){Cs.prototype[t]=e},Cs.defineDocExtension=function(t,e){So.prototype[t]=e},Cs.fromTextArea=function(t,e){if((e=e?$(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=M();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function i(){t.value=a.getValue()}var r;if(t.form&&(te(t.form,"submit",i),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var s=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=s}}catch(t){}}e.finishInit=function(e){e.save=i,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,i(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ne(t.form,"submit",i),"function"==typeof t.form.submit&&(t.form.submit=r))}},t.style.display="none";var a=Cs(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return a},function(t){t.off=ne,t.on=te,t.wheelEventPixels=mr,t.Doc=So,t.splitLines=xe,t.countColumn=F,t.findColumn=q,t.isWordChar=tt,t.Pass=W,t.signal=ie,t.Line=qe,t.changeEnd=_r,t.scrollbarModel=Fi,t.Pos=mt,t.cmpPos=gt,t.modes=ke,t.mimeModes=Pe,t.resolveMode=Se,t.getMode=Le,t.modeExtensions=Ee,t.extendMode=De,t.copyState=Te,t.startState=Me,t.innerMode=Ie,t.commands=Ko,t.keyMap=Fo,t.keyName=Go,t.isModifierKey=Wo,t.lookupKey=Ho,t.normalizeKeyMap=zo,t.StringStream=Ae,t.SharedTextMarker=wo,t.TextMarker=xo,t.LineWidget=vo,t.e_preventDefault=le,t.e_stopPropagation=ce,t.e_stop=de,t.addClass=A,t.contains=I,t.rmClass=S,t.keyNames=jo}(Cs),Cs.version="5.45.0",Cs},t.exports=i()},742:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(705),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(749);var a=function(t){n(743)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},743:function(t,e,n){var i=n(744);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("018f4828",i,!0,{})},744:function(t,e,n){var i=n(125);(t.exports=n(34)(!1)).push([t.i,".main-layout-box.toggle{padding-left:0}.main-layout-box.toggle>.secondary-menu-model{left:-200px}.secondary-menu-model{position:fixed;left:0;top:0;width:200px;background:#41444c;height:100%;padding-top:80px}.secondary-menu-model .toogle-box{position:absolute;right:-1px;top:calc(50% - 50px)}.secondary-menu-model .toogle-box .tog-close{width:12px;height:102px;background:url("+i(n(745))+") no-repeat;display:inline-block}.secondary-menu-model .toogle-box .tog-open{width:12px;height:102px;background:url("+i(n(746))+") no-repeat;display:inline-block;position:absolute;right:-12px;top:0}.secondary-menu-model .leven-1 .name a{height:40px;line-height:40px;display:block;position:relative;padding-left:10px}.secondary-menu-model .leven-1 .name a>.icon{vertical-align:middle;font-size:15px;width:20px;text-align:center;color:#fff}.secondary-menu-model .leven-1 .name a>span{vertical-align:middle;padding-left:2px;font-size:14px;color:#fff}.secondary-menu-model .leven-1 .name a>.angle{position:absolute;right:12px;top:14px}.secondary-menu-model .leven-1 ul li{height:36px;line-height:36px;cursor:pointer;padding-left:39px;color:#fff}.secondary-menu-model .leven-1 ul li a{font-size:14px}.secondary-menu-model .leven-1 ul li.active{border-right:2px solid #2d8cf0;background:#2c2f39}.secondary-menu-model .leven-1 ul li.active span{font-weight:700;color:#2d8cf0}.secondary-menu-model .leven-1 .router-link-active,.secondary-menu-model .leven-1>.router-link-exact-active{background:#f0f6fb}.secondary-menu-model .leven-1 .router-link-active .name,.secondary-menu-model .leven-1>.router-link-exact-active .name{border-right:2px solid #2d8cf0;background:#2b2e38}.secondary-menu-model .leven-1 .router-link-active .name a span,.secondary-menu-model .leven-1>.router-link-exact-active .name a span{color:#2d8cf0;font-weight:700}.secondary-menu-model .leven-1 .router-link-active .name a .fa,.secondary-menu-model .leven-1>.router-link-exact-active .name a .fa{color:#2d8cf0}",""])},745:function(t,e,n){t.exports=n.p+"images/close.png?02806e641df25c1b4dbff4cb0af3984d"},746:function(t,e,n){t.exports=n.p+"images/open.png?97ec0726c7acab8a2a48282d68cea631"},747:function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(36)),r=s(n(748)),o=s(n(124));function s(t){return t&&t.__esModule?t:{default:t}}var a={projects:[{name:""+i.default.$t("Project Home"),id:0,path:"projects-index",isOpen:!0,disabled:!0,icon:"fa-home",children:[]},{name:""+i.default.$t("Process"),id:1,path:"",isOpen:!0,disabled:!0,icon:"fa-gear",children:[{name:""+i.default.$t("Process definition"),path:"definition",id:0,disabled:!0},{name:""+i.default.$t("Process Instance"),path:"instance",id:1,disabled:!0},{name:""+i.default.$t("Task Instance"),path:"task-instance",id:2,disabled:!0},{name:""+i.default.$t("Task record"),path:"task-record",id:3,disabled:r.default.recordSwitch},{name:""+i.default.$t("History task record"),path:"history-task-record",id:4,disabled:r.default.recordSwitch}]}],security:[{name:""+i.default.$t("Tenant Manage"),id:0,path:"tenement-manage",isOpen:!0,disabled:!0,icon:"fa-users",children:[]},{name:""+i.default.$t("User Manage"),id:1,path:"users-manage",isOpen:!0,disabled:!0,icon:"fa-user-circle",children:[]},{name:""+i.default.$t("Warning group manage"),id:2,path:"warning-groups-manage",isOpen:!0,disabled:!0,icon:"fa-warning",children:[]},{name:""+i.default.$t("Queue manage"),id:3,path:"queue-manage",isOpen:!0,disabled:!0,icon:"fa-recycle",children:[]},{name:""+i.default.$t("Worker group manage"),id:4,path:"worker-groups-manage",isOpen:!0,disabled:!0,icon:"fa-address-book",children:[]},{name:""+i.default.$t("Token manage"),id:2,path:"token-manage",isOpen:!0,icon:"fa-file-text",children:[],disabled:!0}],resource:[{name:""+i.default.$t("File Manage"),id:0,path:"file",isOpen:!0,icon:"fa-files-o",children:[],disabled:!0},{name:""+i.default.$t("UDF manage"),id:1,path:"",isOpen:!0,icon:"fa-file-text",disabled:!0,children:[{name:""+i.default.$t("Resource manage"),path:"resource-udf-resource",id:0,disabled:!0},{name:""+i.default.$t("Function manage"),path:"resource-udf-function",id:1,disabled:!0}]}],user:[{name:""+i.default.$t("User Information"),id:0,path:"account",isOpen:!0,icon:"fa-user",children:[],disabled:!0},{name:""+i.default.$t("Edit password"),id:1,path:"password",isOpen:!0,icon:"fa-key",children:[],disabled:!0},{name:""+i.default.$t("Token manage"),id:2,path:"token",isOpen:!0,icon:"fa-file-text",children:[],disabled:o.default.getAuth()}],monitor:[{name:""+i.default.$t("Servers manage"),id:0,path:"",isOpen:!0,disabled:!0,icon:"fa-server",children:[{name:"Master",path:"servers-master",id:0,disabled:!0},{name:"Worker",path:"servers-worker",id:1,disabled:!0},{name:"Zookeeper",path:"servers-zookeeper",id:4,disabled:!0},{name:"Mysql",path:"servers-mysql",id:6,disabled:!0}]}]};e.default=function(t){return a[t]}},748:function(t,e,n){"use strict";e.__esModule=!0,e.default={recordSwitch:!0}},749:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"secondary-menu-model",class:t.className},[n("div",{staticClass:"toogle-box"},[t.isTogHide?t._e():n("a",{staticClass:"tog-close",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}),t._v(" "),t.isTogHide?n("a",{staticClass:"tog-open",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}):t._e()]),t._v(" "),t._l(t.menuList,function(e,i){return n("div",{staticClass:"leven-1"},[e.disabled?n("div",[e.path?[n("router-link",{attrs:{to:{name:e.path}}},[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])])]:t._e(),t._v(" "),e.path?t._e():[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])],t._v(" "),e.isOpen&&e.children.length?n("ul",[t._l(e.children,function(e,i){return[e.disabled?n("router-link",{attrs:{to:{name:e.path},tag:"li","active-class":"active"}},[n("span",[t._v(t._s(e.name))])]):t._e()]})],2):t._e()],2):t._e()])})],2)},staticRenderFns:[]};e.a=i},849:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(896),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(953);var a=function(t){n(951)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},850:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(901),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(967);var a=function(t){n(965)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},851:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(706),o=(i=r)&&i.__esModule?i:{default:i};n(869),n(870),n(871),n(872),n(873),n(852),n(874),n(875),n(876),n(877),n(878),e.default=function(t,e){return o.default.fromTextArea(document.getElementById(t),Object.assign({lineNumbers:!0,theme:"mdn-like",readOnly:!0},{},e))}},852:function(t,e,n){(function(t){"use strict";function e(t){for(var e;null!=(e=t.next());)if("`"==e&&!t.eat("`"))return"variable-2";return t.backUp(t.current().length-1),t.eatWhile(/\w/)?"variable-2":null}function n(t){return t.eat("@")&&(t.match(/^session\./),t.match(/^local\./),t.match(/^global\./)),t.eat("'")?(t.match(/^.*'/),"variable-2"):t.eat('"')?(t.match(/^.*"/),"variable-2"):t.eat("`")?(t.match(/^.*`/),"variable-2"):t.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(t){return t.eat("N")?"atom":t.match(/^[a-zA-Z.#!?]/)?"variable-2":null}t.defineMode("sql",function(e,n){var i=n.client||{},a=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(s),c=n.keywords||o(r),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},h=n.hooks||{},p=n.dateSQL||{date:!0,time:!0,timestamp:!0},f=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(t,e){var n,r=t.next();if(h[r]){var o=h[r](t,e);if(!1!==o)return o}if(d.hexNumber&&("0"==r&&t.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&t.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==r||"B"==r)&&t.match(/^'[01]+'/)||"0"==r&&t.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&t.match(/^\.(?!\.)/),"number";if("?"==r&&(t.eatSpace()||t.eol()||t.eat(";")))return"variable-3";if("'"==r||'"'==r&&d.doubleQuote)return e.tokenize=(n=r,function(t,e){for(var i,r=!1;null!=(i=t.next());){if(i==n&&!r){e.tokenize=v;break}r=f&&!r&&"\\"==i}return"string"}),e.tokenize(t,e);if((d.nCharCast&&("n"==r||"N"==r)||d.charsetCast&&"_"==r&&t.match(/[a-z][a-z0-9]*/i))&&("'"==t.peek()||'"'==t.peek()))return"keyword";if(d.commentSlashSlash&&"/"==r&&t.eat("/"))return t.skipToEnd(),"comment";if(d.commentHash&&"#"==r||"-"==r&&t.eat("-")&&(!d.commentSpaceRequired||t.eat(" ")))return t.skipToEnd(),"comment";if("/"==r&&t.eat("*"))return e.tokenize=function t(e){return function(n,i){var r=n.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?i.tokenize=t(e+1):i.tokenize=e>1?t(e-1):v:n.skipToEnd(),"comment"}}(1),e.tokenize(t,e);if("."!=r){if(u.test(r))return t.eatWhile(u),"operator";if(m.test(r))return"bracket";if(g.test(r))return t.eatWhile(g),"punctuation";if("{"==r&&(t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";t.eatWhile(/^[_\w\d]/);var s=t.current().toLowerCase();return p.hasOwnProperty(s)&&(t.match(/^( )+'[^']*'/)||t.match(/^( )+"[^"]*"/))?"number":a.hasOwnProperty(s)?"atom":l.hasOwnProperty(s)?"builtin":c.hasOwnProperty(s)?"keyword":i.hasOwnProperty(s)?"string-2":null}return d.zerolessFloat&&t.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":t.match(/^\.+/)?null:d.ODBCdotTable&&t.match(/^[\w\d_]+/)?"variable-2":void 0}function b(t,e,n){e.context={prev:e.context,indent:t.indentation(),col:t.column(),type:n}}return{startState:function(){return{tokenize:v,context:null}},token:function(t,e){if(t.sol()&&e.context&&null==e.context.align&&(e.context.align=!1),e.tokenize==v&&t.eatSpace())return null;var n=e.tokenize(t,e);if("comment"==n)return n;e.context&&null==e.context.align&&(e.context.align=!0);var i=t.current();return"("==i?b(t,e,")"):"["==i?b(t,e,"]"):e.context&&e.context.type==i&&function(t){t.indent=t.context.indent,t.context=t.context.prev}(e),n},indent:function(n,i){var r=n.context;if(!r)return t.Pass;var o=i.charAt(0)==r.type;return r.align?r.col+(o?0:1):r.indent+(o?0:e.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});var r="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(t){for(var e={},n=t.split(" "),i=0;i!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),t.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(r+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(r+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(r+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(t){for(var e;null!=(e=t.next());)if('"'==e&&!t.eat('"'))return"variable-2";return t.backUp(t.current().length-1),t.eatWhile(/\w/)?"variable-2":null},"`":e}}),t.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),t.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),t.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(r+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),t.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),t.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})})(n(706))},853:function(t,e,n){"use strict";e.__esModule=!0,e.fuzzyQuery=e.isEmial=e.warningTypeList=void 0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};var s=[{id:"NONE",code:""+o.default.$t("none_1")},{id:"SUCCESS",code:""+o.default.$t("success_1")},{id:"FAILURE",code:""+o.default.$t("failure_1")},{id:"ALL",code:""+o.default.$t("All_1")}];e.warningTypeList=s,e.isEmial=function(t){return/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(t)},e.fuzzyQuery=function(t,e){for(var n=t.length,i=[],r=new RegExp(e),o=0;o'+e.unicode+""},_onChange:function(t){this.value=t.value,this.$emit("priorityEvent",t.value)}},created:function(){},mounted:function(){},components:{}}},856:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(677),o=(i=r)&&i.__esModule?i:{default:i};e.default={name:"form-worker-group",data:function(){return{workerGroupsList:[]}},mixins:[o.default],props:{value:{type:Number,default:-1}},model:{prop:"value",event:"workerGroupsEvent"},methods:{_onChange:function(t){this.value=t.value,this.$emit("workerGroupsEvent",t.value)}},watch:{},created:function(){var t=this,e=this.store.state.security.workerGroupsListAll||[];e.length?this.workerGroupsList=e:this.store.dispatch("security/getWorkerGroupsAll").then(function(e){t.$nextTick(function(){t.workerGroupsList=e})})}}},857:function(t,e,n){"use strict";e.__esModule=!0,e.rtBantpl=e.allNodesId=e.setSvgColor=e.isNameExDag=e.tasksAll=e.rtTasksTpl=e.saveTargetarr=e.rtTargetarrArr=void 0;var i=a(n(30)),r=a(n(71)),o=a(n(36)),s=a(n(92));function a(t){return t&&t.__esModule?t:{default:t}}var l=function(){return''},c=function(){var t=[];return(0,r.default)("#canvas .w").each(function(e,n){var i=(0,r.default)(n);t.push({id:i.attr("id"),name:i.find(".name-p").text(),targetarr:i.attr("data-targetarr")||"",x:parseInt(i.css("left"),10),y:parseInt(i.css("top"),10)})}),t};e.rtTargetarrArr=function(t){var e=(0,r.default)("#"+t).attr("data-targetarr");return e?e.split(","):[]},e.saveTargetarr=function(t,e){var n=(0,r.default)("#"+e),i=n.attr("data-targetarr")?n.attr("data-targetarr")+","+t:""+t;n.attr("data-targetarr",i)},e.rtTasksTpl=function(t){var e=t.id,n=t.name,i=t.x,r=t.y,o=t.targetarr,s=t.isAttachment,a=t.taskType,c=t.runFlag,u="";return u+='
',u+="
",u+='
',u+='
',u+=''+n+"",u+="
",u+='
',u+='
',"FORBIDDEN"===c&&(u+=l()),u+="
",u+="
"},e.tasksAll=c,e.isNameExDag=function(t,e){return"dom"===e?-1!==i.default.findIndex(c(),function(e){return e.name===t}):-1!==i.default.findIndex(s.default.state.dag.tasks,function(e){return e.name===t})},e.setSvgColor=function(t,e){(0,r.default)(".jtk-connector").each(function(t,e){i.default.map((0,r.default)(e)[0].childNodes,function(t){(0,r.default)(t).attr("fill","#555").attr("stroke","#555").attr("stroke-width",2)})}),i.default.map((0,r.default)(t.canvas)[0].childNodes,function(t,n){(0,r.default)(t).attr("fill",e).attr("stroke",e),(0,r.default)(t).attr("class")&&(0,r.default)(t).attr("stroke-width",2)})},e.allNodesId=function(){var t=[];return(0,r.default)(".w").each(function(e,n){var i=(0,r.default)(n),o=i.find(".name-p").text();o&&t.push({id:i.attr("id"),name:o})}),t},e.rtBantpl=l},858:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(902),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(970);var a=function(t){n(968)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},860:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(854),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(884);var a=function(t){n(881)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},861:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(855),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(887);var a=function(t){n(885)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},862:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(856),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(888),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},863:function(t,e,n){"use strict";e.__esModule=!0,e.downloadFile=void 0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};e.downloadFile=function(t,e){var n={url:t,obj:e};if(n.url){var i,r;$('
'+(i=n.obj,r="",Object.keys(i).forEach(function(t){r+=""}),r)+"
").appendTo("body").submit().remove()}else(void 0).$message.warning(""+o.default.$t("Unable to download without proper url"))}},865:function(t,e,n){"use strict";e.__esModule=!0;var i=u(n(30)),r=u(n(228)),o=u(n(860)),s=u(n(92)),a=n(853),l=u(n(861)),c=u(n(862));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"start-process",data:function(){return{store:s.default,processDefinitionId:0,failureStrategy:"CONTINUE",warningTypeList:a.warningTypeList,warningType:{},notifyGroupList:[],warningGroupId:{},scheduleTime:"",spinnerLoading:!1,execType:!1,taskDependType:"TASK_POST",receivers:[],receiversCc:[],runMode:"RUN_MODE_SERIAL",processInstancePriority:"MEDIUM",workerGroupId:-1}},props:{item:Object,startNodeList:{type:String,default:""},sourceType:String},methods:{_datepicker:function(t){this.scheduleTime=t},_start:function(){var t=this;this.spinnerLoading=!0;var e={processDefinitionId:this.item.id,scheduleTime:this.scheduleTime.length&&this.scheduleTime.join(",")||"",failureStrategy:this.failureStrategy,warningType:this.warningType.id,warningGroupId:i.default.isEmpty(this.warningGroupId)?0:this.warningGroupId.id,execType:this.execType?"COMPLEMENT_DATA":null,startNodeList:this.startNodeList,taskDependType:this.taskDependType,runMode:this.runMode,processInstancePriority:this.processInstancePriority,receivers:this.receivers.join(",")||"",receiversCc:this.receiversCc.join(",")||"",workerGroupId:this.workerGroupId};"contextmenu"===this.sourceType&&(e.taskDependType=this.taskDependType),this.store.dispatch("dag/processStart",e).then(function(e){t.$message.success(e.msg),t.$emit("onUpdate"),setTimeout(function(){t.spinnerLoading=!1,t.close()},500)}).catch(function(e){t.$message.error(e.msg||""),t.spinnerLoading=!1})},_getNotifyGroupList:function(){var t=this;return new Promise(function(e,n){var r=i.default.cloneDeep(t.store.state.dag.notifyGroupListS)||[];r.length?(t.notifyGroupList=r,e()):t.store.dispatch("dag/getNotifyGroupList").then(function(n){t.notifyGroupList=n,e()})})},_getReceiver:function(){var t=this;this.store.dispatch("dag/getReceiver",{processDefinitionId:this.item.id}).then(function(e){t.receivers=e.receivers&&e.receivers.split(",")||[],t.receiversCc=e.receiversCc&&e.receiversCc.split(",")||[]})},ok:function(){this._start()},close:function(){this.$emit("close")}},watch:{execType:function(t){this.scheduleTime=t?[(0,r.default)().format("YYYY-MM-DD 00:00:00"),(0,r.default)().format("YYYY-MM-DD 00:00:00")]:""}},created:function(){this.warningType=this.warningTypeList[0],this._getReceiver()},mounted:function(){var t=this;this._getNotifyGroupList().then(function(){t.$nextTick(function(){t.warningGroupId={id:0}})})},computed:{},components:{mEmail:o.default,mPriority:l.default,mWorkerGroups:c.default}}},866:function(t,e,n){(function(){void 0===Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},n=function(t,e){return t.x*e.x+t.y*e.y},i=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r=function(t,e){return{x:t.x*e,y:t.y*e}},o=Math.pow(2,-65),s=function(e,n){for(var r=[],o=a(e,n),s=n.length-1,c=l(o,2*s-1,r,0),u=t(e,n[0]),d=i(u),p=0,f=0;f=64)return n[0]=(t[0].x+t[e].x)/2,1;if(u(t,e))return n[0]=d(t,e),1}h(t,e,.5,s,a),r=l(s,e,p,i+1),o=l(a,e,f,i+1);for(var m=0;mu?u=p:p0?1:-1,a=null;r=0)r=_(u+Math.sqrt(d))*Math.pow(Math.abs(u+Math.sqrt(d)),1/3),o=_(u-Math.sqrt(d))*Math.pow(Math.abs(u-Math.sqrt(d)),1/3),h[0]=-s/3+(r+o),h[1]=-s/3-(r+o)/2,h[2]=-s/3-(r+o)/2,0!==Math.abs(Math.sqrt(3)*(r-o)/2)&&(h[1]=-1,h[2]=-1);else{var p=Math.acos(u/Math.sqrt(-Math.pow(c,3)));h[0]=2*Math.sqrt(-c)*Math.cos(p/3)-s/3,h[1]=2*Math.sqrt(-c)*Math.cos((p+2*Math.PI)/3)-s/3,h[2]=2*Math.sqrt(-c)*Math.cos((p+4*Math.PI)/3)-s/3}for(var f=0;f<3;f++)(h[f]<0||h[f]>1)&&(h[f]=-1);return h}.apply(null,c),d=[];if(null!=u)for(var h=0;h<3;h++){var p,f=u[h],m=Math.pow(f,2),g=Math.pow(f,3),v=[l[0][0]*g+l[0][1]*m+l[0][2]*f+l[0][3],l[1][0]*g+l[1][1]*m+l[1][2]*f+l[1][3]];p=n-t!=0?(v[0]-t)/(n-t):(v[1]-e)/(i-e),f>=0&&f<=1&&p>=0&&p<=1&&d.push(v)}return d};function x(t,e){return[-t[0][e]+3*t[1][e]+-3*t[2][e]+t[3][e],3*t[0][e]-6*t[1][e]+3*t[2][e],-3*t[0][e]+3*t[1][e],t[0][e]]}function _(t){return t<0?-1:t>0?1:0}var w=this.jsBezier={distanceFromCurve:s,gradientAtPoint:b,gradientAtPointAlongCurveFrom:function(t,e,n){var i=v(t,e,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),b(t,i.location)},nearestPointOnCurve:function(t,e){var n=s(t,e);return{point:h(e,e.length-1,n.location,null,null),location:n.location}},pointOnCurve:f,pointAlongCurveFrom:function(t,e,n){return v(t,e,n).point},perpendicularToCurveAt:function(t,e,n,i){var r=v(t,e,i=null==i?0:i),o=b(t,r.location),s=Math.atan(-1/o),a=n/2*Math.sin(s),l=n/2*Math.cos(s);return[{x:r.point.x+l,y:r.point.y+a},{x:r.point.x-l,y:r.point.y-a}]},locationAlongCurveFrom:function(t,e,n){return v(t,e,n).location},getLength:function(t){if(g(t))return 0;for(var e=f(t,0),n=0,i=0,r=null;i<1;)r=f(t,i+=.005),n+=m(r,e),e=r;return n},lineIntersection:y,boxIntersection:function(t,e,n,i,r){var o=[];return o.push.apply(o,y(t,e,t+n,e,r)),o.push.apply(o,y(t+n,e,t+n,e+i,r)),o.push.apply(o,y(t+n,e+i,t,e+i,r)),o.push.apply(o,y(t,e+i,t,e,r)),o},boundingBoxIntersection:function(t,e){var n=[];return n.push.apply(n,y(t.x,t.y,t.x+t.w,t.y,e)),n.push.apply(n,y(t.x+t.w,t.y,t.x+t.w,t.y+t.h,e)),n.push.apply(n,y(t.x+t.w,t.y+t.h,t.x,t.y+t.h,e)),n.push.apply(n,y(t.x,t.y+t.h,t.x,t.y,e)),n},version:"0.9.0"};e.jsBezier=w}).call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.Biltong={version:"0.4.0"};e.Biltong=t;var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=function(t,e,i){return i(t=n(t)?t:[t.x,t.y],e=n(e)?e:[e.x,e.y])},r=t.gradient=function(t,e){return i(t,e,function(t,e){return e[0]==t[0]?e[1]>t[1]?1/0:-1/0:e[1]==t[1]?e[0]>t[0]?0:-0:(e[1]-t[1])/(e[0]-t[0])})},o=(t.normal=function(t,e){return-1/r(t,e)},t.lineLength=function(t,e){return i(t,e,function(t,e){return Math.sqrt(Math.pow(e[1]-t[1],2)+Math.pow(e[0]-t[0],2))})},t.quadrant=function(t,e){return i(t,e,function(t,e){return e[0]>t[0]?e[1]>t[1]?2:1:e[0]==t[0]?e[1]>t[1]?2:1:e[1]>t[1]?3:4})}),s=(t.theta=function(t,e){return i(t,e,function(t,e){var n=r(t,e),i=Math.atan(n),s=o(t,e);return 4!=s&&3!=s||(i+=Math.PI),i<0&&(i+=2*Math.PI),i})},t.intersects=function(t,e){var n=t.x,i=t.x+t.w,r=t.y,o=t.y+t.h,s=e.x,a=e.x+e.w,l=e.y,c=e.y+e.h;return n<=s&&s<=i&&r<=l&&l<=o||n<=a&&a<=i&&r<=l&&l<=o||n<=s&&s<=i&&r<=c&&c<=o||n<=a&&s<=i&&r<=c&&c<=o||s<=n&&n<=a&&l<=r&&r<=c||s<=i&&i<=a&&l<=r&&r<=c||s<=n&&n<=a&&l<=o&&o<=c||s<=i&&n<=a&&l<=o&&o<=c},t.encloses=function(t,e,n){var i=t.x,r=t.x+t.w,o=t.y,s=t.y+t.h,a=e.x,l=e.x+e.w,c=e.y,u=e.y+e.h,d=function(t,e,i,r){return n?t<=e&&i>=r:tr};return d(i,a,r,l)&&d(o,c,s,u)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),a=[null,[-1,-1],[-1,1],[1,1],[1,-1]];t.pointOnLine=function(t,e,n){var i=r(t,e),l=o(t,e),c=n>0?s[l]:a[l],u=Math.atan(i),d=Math.abs(n*Math.sin(u))*c[1],h=Math.abs(n*Math.cos(u))*c[0];return{x:t.x+h,y:t.y+d}},t.perpendicularLineTo=function(t,e,n){var i=r(t,e),o=Math.atan(-1/i),s=n/2*Math.sin(o),a=n/2*Math.cos(o);return[{x:e.x+a,y:e.y+s},{x:e.x-a,y:e.y-s}]}}.call("undefined"!=typeof window?window:this),function(){"use strict";function t(t,e,n,i,r,o,s,a){return function(){var t=[];return Array.prototype.push.apply(t,arguments),t.item=function(t){return this[t]},t}(function(t,e,n,i,r,o,s,a){return new Touch({target:e,identifier:L(),pageX:n,pageY:i,screenX:r,screenY:o,clientX:s||r,clientY:a||o})}.apply(null,arguments))}var n=function(t,e,n){for(var i=(n=n||t.parentNode).querySelectorAll(e),r=0;r-1&&v<9,y=function(t,e){if(null==t)return[0,0];var n=w(t),i=_(n,0);return[i[e+"X"],i[e+"Y"]]},x=function(t){return null==t?[0,0]:b?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:y(t,"page")},_=function(t,e){return t.item?t.item(e):t[e]},w=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},C=function(t){return w(t).length},k=function(t,e,n,i){if(l(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var r=e+n.__tauid;t["e"+r]=n,t[r]=function(){t["e"+r]&&t["e"+r](window.event)},t.attachEvent("on"+e,t[r])}},P=function(t,e,n){null!=n&&S(t,function(){var r=i(this);if(function(t,e,n){if(t.__ta&&t.__ta[e]&&delete t.__ta[e][n.__tauid],n.__taExtra){for(var i=0;i-1&&o<9,a=9===o,l=function(t){if(s)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=u(t),n=c(e,0);return a?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},c=function(t,e){return t.item?t.item(e):t[e]},u=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},d={draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},h=["stop","start","drag","drop","over","out","beforeStart"],p=function(){},f=function(){return!0},m=function(t,e,n){for(var i=0;i1)for(var o=0;o0&&B&&e.setPosition(I,B),H.sort(P);for(var r=0;re.rank?-1:0},S=function(t){return null==t?null:null==(t="string"==typeof t||t.constructor===String?document.getElementById(t):t)?null:(t._katavorio=t._katavorio||k(),t)};this.Katavorio=function(e){var r=[],o={};this._dragsByScope={},this._dropsByScope={};var s=1,a=function(t,e){v(t,function(t){for(var n=0;n0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i=0&&r.splice(i,1),l(t[e],n)&&v(t[e],function(t){t.destroy()}),delete t[e]}},E=function(t,e,n,i){(t=S(t))[e]&&t[e].off(n,i)};this.elementRemoved=function(t){this.destroyDraggable(t),this.destroyDroppable(t)},this.destroyDraggable=function(t,e,n){1===arguments.length?L(t,"_katavorioDrag",this._dragsByScope):E(t,"_katavorioDrag",e,n)},this.destroyDroppable=function(t,e,n){1===arguments.length?L(t,"_katavorioDrop",this._dropsByScope):E(t,"_katavorioDrop",e,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},r=[],o={},D={}};var D={},T=function(e,n,r){var o,s=i(n)?n:n.id,a=!!i(n)||!1!==n.active,l=D[s]||(o={name:s,members:[]},D[s]=o,o);return v(e,function(e){if(e._katavorioDrag){if(r&&null!=e._katavorioDrag.posseRoles[l.name])return;t(l.members,e._katavorioDrag),t(e._katavorioDrag.posses,l.name),e._katavorioDrag.posseRoles[l.name]=a}}),l};this.addToPosse=function(t,e){for(var n=[],i=1;i-1&&t.splice(n,1),-1!==n}function h(t,e,n,i){var r=t[e];return null==r&&(r=[],t[e]=r),r[i?"unshift":"push"](n),r}function p(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function f(){for(var e=[],n=0;n0},t.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},t.clone=l,t.merge=c,t.replace=function(t,e,n){if(null!=t){var i=t;return e.replace(/([^\.])+/g,function(t,e,r,o){var s=t.match(/([^\[0-9]+){1}(\[)([0-9+])/),a=function(){return i[s[1]]||(i[s[1]]=[],i[s[1]])};if(r+t.length>=o.length)s?a()[s[3]]=n:i[t]=n;else if(s){var l=a();i=l[s[3]]||(l[s[3]]={},l[s[3]])}else i=i[t]||(i[t]={},i[t]);return""}),t}},t.functionChain=function(t,e,n){for(var i=0;i-1&&t.splice(n,1),-1!==n},t.remove=d,t.addWithFunction=function(t,e,n){-1===u(t,n)&&t.push(e)},t.addToList=h,t.suggest=function(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)},t.extend=function(t,e,i){var r;e=n(e)?e:[e];var o=function(e){for(var n=e.__proto__;null!=n;)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!t.prototype.hasOwnProperty(i)&&(t.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(r=0;r2)for(r=2;r0)for(var t=0;t0){var s=Array.prototype.slice.call(arguments,1);try{for(var a=0,l=i.length;a0?-1!==t.indexOf(e):!n)};this.getConnections=function(t,e){t?t.constructor===String&&(t={scope:t}):t={};for(var n=t.scope||r.getDefaultScope(),i=V(n,!0),o=V(t.source),s=V(t.target),a=!e&&i.length>1?{}:[],l=function(t,n){if(!e&&i.length>1){var r=a[t];null==r&&(r=a[t]=[]),r.push(n)}else a.push(n)},c=0,u=y.length;c0&&!m.isSource,v=h&&r.length>0&&!m.isTarget;if(g||v)continue t;s.push(m)}}}return Q(s)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return D},this.getEndpoint=j,this.getEndpoints=function(t){return x[h(t).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=H,this.draw=A,this.info=h,this.appendElement=M;var Z=!1;this.isHoverSuspended=function(){return Z},this.setHoverSuspended=function(t){Z=t},this.hide=function(t,e){return z(t,"none",e),r},this.idstamp=I;var tt=function(t){if(!m&&t){var e=r.getElement(t);e.offsetParent&&r.setContainer(e.offsetParent)}},et=r.manage=function(t,e,n){return w[t]||(w[t]={el:e,endpoints:[],connections:[]},w[t].info=nt({elId:t,timestamp:E}),r.addClass(e,"jtk-managed"),n||r.fire("manageElement",{id:t,info:w[t].info,el:e})),w[t]},nt=(r.unmanage=function(t){w[t]&&(r.removeClass(w[t].el,"jtk-managed"),delete w[t],r.fire("unmanageElement",t))},function(t){var e,n=t.timestamp,i=t.recalc,o=t.offset,s=t.elId;return L&&!n&&(n=E),!i&&n&&n===k[s]?{o:t.offset||C[s],s:S[s]}:(i||!o&&null==C[s]?null!=(e=w[s]?w[s].el:null)&&(S[s]=r.getSize(e),C[s]=r.getOffset(e),k[s]=n):(C[s]=o||C[s],null==S[s]&&null!=(e=w[s].el)&&(S[s]=r.getSize(e)),k[s]=n),C[s]&&!C[s].right&&(C[s].right=C[s].left+S[s][0],C[s].bottom=C[s].top+S[s][1],C[s].width=S[s][0],C[s].height=S[s][1],C[s].centerx=C[s].left+C[s].width/2,C[s].centery=C[s].top+C[s].height/2),{o:C[s],s:S[s]})});this.updateOffset=nt,this.init=function(){b||(r.Defaults.Container&&r.setContainer(r.Defaults.Container),r.anchorManager=new t.jsPlumb.AnchorManager({jsPlumbInstance:r}),b=!0,r.fire("ready",r))}.bind(this),this.log=v,this.jsPlumbUIComponent=c,this.makeAnchor=function(){var e,i=function(e,n){if(t.jsPlumb.Anchors[e])return new t.jsPlumb.Anchors[e](n);if(!r.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+e+"'"}};if(0===arguments.length)return null;var o=arguments[0],s=arguments[1],a=(arguments[2],null);if(o.compute&&o.getOrientation)return o;if("string"==typeof o)a=i(arguments[0],{elementId:s,jsPlumbInstance:r});else if(n.isArray(o))if(n.isArray(o[0])||n.isString(o[0]))2===o.length&&n.isObject(o[1])?n.isString(o[0])?(e=t.jsPlumb.extend({elementId:s,jsPlumbInstance:r},o[1]),a=i(o[0],e)):(e=t.jsPlumb.extend({elementId:s,jsPlumbInstance:r,anchors:o[0]},o[1]),a=new t.jsPlumb.DynamicAnchor(e)):a=new p.DynamicAnchor({anchors:o,selector:null,elementId:s,jsPlumbInstance:r});else{var l={x:o[0],y:o[1],orientation:o.length>=4?[o[2],o[3]]:[0,0],offsets:o.length>=6?[o[4],o[5]]:[0,0],elementId:s,jsPlumbInstance:r,cssClass:7===o.length?o[6]:null};(a=new t.jsPlumb.Anchor(l)).clone=function(){return new t.jsPlumb.Anchor(l)}}return a.id||(a.id="anchor_"+I()),a},this.makeAnchors=function(e,i,o){for(var s=[],a=0,l=e.length;a0&&t>=e.def.maxConnections},element:e.el,elementId:e.id,isSource:s,isTarget:a,addClass:function(t){r.addClass(e.el,t)},removeClass:function(t){r.removeClass(e.el,t)},onDrop:function(t){t.endpoints[0].anchor.unlock()},isDropAllowed:function(){return l.isDropAllowed.apply(l,arguments)},isRedrop:function(t){return null!=t.suspendedElement&&null!=t.suspendedEndpoint&&t.suspendedEndpoint.element===e.el},getEndpoint:function(n){var o=e.def.endpoint;if(null==o||null==o._jsPlumb){var s=r.deriveEndpointAndAnchorSpec(n.getType().join(" "),!0),a=s.endpoints?t.jsPlumb.extend(i,{endpoint:e.def.def.endpoint||s.endpoints[1]}):i;s.anchors&&(a=t.jsPlumb.extend(a,{anchor:e.def.def.anchor||s.anchors[1]})),(o=r.addEndpoint(e.el,a))._mtNew=!0}if(i.uniqueEndpoint&&(e.def.endpoint=o),o.setDeleteOnEmpty(!0),n.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=r.getUIPosition(arguments,r.getZoom()),c=r.getOffset(e.el),u=r.getSize(e.el),d=null==l?[0,0]:o.anchor.positionFinder(l,c,u,o.anchor.constructorParams);o.anchor.x=d[0],o.anchor.y=d[1]}return o},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?r.deleteObject({endpoint:t}):delete t._mtNew}}),d=t.jsPlumb.dragEvents.drop;return o.scope=o.scope||i.scope||r.Defaults.Scope,o[d]=n.wrap(o[d],u,!0),o.rank=i.rank||0,a&&(o[t.jsPlumb.dragEvents.over]=function(){return!0}),!1===i.allowLoopback&&(o.canDrop=function(t){return t.getDragElement()._jsPlumbRelatedElement!==e.el}),r.initDroppable(e.el,o,"internal"),u};this.makeTarget=function(e,n,i){var o=t.jsPlumb.extend({_jsPlumb:this},i);t.jsPlumb.extend(o,n);for(var s=o.maxConnections||-1,a=function(e){var n=h(e),i=n.id,a=t.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[i]=this.targetEndpointDefinitions[i]||{},tt(i),n.el._isJsPlumbGroup&&null==a.rank&&(a.rank=-1);var c={def:t.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:s,enabled:!0};o.createEndpoint&&(c.uniqueEndpoint=!0,c.endpoint=r.addEndpoint(e,c.def),c.endpoint.setDeleteOnEmpty(!1)),n.def=c,this.targetEndpointDefinitions[i][l]=c,it(n,o,a,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=c}.bind(this),l=e.length&&e.constructor!==String?e:[e],c=0,u=l.length;c=0&&p>=h.maxConnections)return d&&d({element:i.el,maxConnections:c},e),!1;var f=t.jsPlumb.getPositionOnElement(e,l,u),g={};t.jsPlumb.extend(g,s),g.isTemporarySource=!0,g.anchor=[f[0],f[1],0,0],g.dragOptions=m,h.def.scope&&(g.scope=h.def.scope),b=this.addEndpoint(o,g),y=!0,b.setDeleteOnEmpty(!0),h.uniqueEndpoint&&(h.endpoint?b.finalEndpoint=h.endpoint:(h.endpoint=b,b.setDeleteOnEmpty(!1)));var v=function(){r.off(b.canvas,"mouseup",v),r.off(i.el,"mouseup",v),y&&(y=!1,r.deleteEndpoint(b))};r.on(b.canvas,"mouseup",v),r.on(i.el,"mouseup",v);var x={};if(h.def.extract)for(var _ in h.def.extract){var w=(e.srcElement||e.target).getAttribute(_);w&&(x[h.def.extract[_]]=w)}r.trigger(b.canvas,"mousedown",e,x),n.consume(e)}}}.bind(this);this.on(i.el,"mousedown",x),h.trigger=x,s.filter&&(n.isString(s.filter)||n.isFunction(s.filter))&&r.setDragFilter(i.el,s.filter);var _=t.jsPlumb.extend({},s.dropOptions||{});it(i,s,_,!0,!0===s.isTarget)}.bind(this),f=e.length&&e.constructor!==String?e:[e],m=0,g=f.length;m0;)i(r.el.childNodes[0]);e||ct(r,n)}};return r.batch(function(){i(t,!0)},!1===e),r},this.reset=function(t){r.silently(function(){Z=!1,r.removeAllGroups(),r.removeGroupManager(),r.deleteEveryEndpoint(),t||r.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))};var ut=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){r.select().each(ut),r.selectEndpoints().each(ut),x={},_={}},this.setDefaultScope=function(t){return D=t,r},this.deriveEndpointAndAnchorSpec=function(t,e){for(var n=((e?"":"default ")+t).split(/[\s]/),i=null,o=null,s=null,a=null,l=0;l0)for(var e=0;e0?"add":"remove")+"Class"](r.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](r.endpointFullClass)},this.detachFromConnection=function(t,e,n){(e=null==e?this.connections.indexOf(t):e)>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](r.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](r.endpointFullClass)),!n&&a&&0===this.connections.length&&r.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(t){for(var e=this.connections.length,n=0;n0){var u=function(t,e){var n=0;if(null!=e)for(var i=0;i0&&(c.connection=this.connections[0]);s=this.anchor.compute(c)}for(var g in this.endpoint.compute(s,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,a||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(g)){var v=this._jsPlumb.overlays[g];v.isVisible()&&(this._jsPlumb.overlayPlacements[g]=v.draw(this.endpoint,this._jsPlumb.paintStyleInUse),v.paint(this._jsPlumb.overlayPlacements[g]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var u=!1;this.initDraggable=function(){if(!u&&t.isDragSupported(this.element)){var n,a={id:null,element:null},l=null,c=!1,d=null,h=function(t,e,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(e.element){var r=n.getUIPosition(arguments,n.getZoom());null!=r&&n.setPosition(e.element,r),n.repaint(e.element,r),t.paint({anchorPoint:t.anchor.getCurrentLocation({element:t})})}},stopDrag:function(){i=!0}}}(this,a,r),p=i.dragOptions||{},f=t.dragEvents.start,m=t.dragEvents.stop,g=t.dragEvents.drag,v=t.dragEvents.beforeStart,b=function(e){l=this.connectorSelector();var u=!0;this.isEnabled()||(u=!1),null!=l||this.isSource||this.isTemporarySource||(u=!1),!this.isSource||!this.isFull()||null!=l&&this.dragAllowedWhenFull||(u=!1),null==l||l.isDetachable(this)||(this.isFull()?u=!1:l=null);var p=r.checkCondition(null==l?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:l});if(!1===p?u=!1:"object"==typeof p?t.extend(p,n||{}):p=n||{},!1===u)return r.stopDrag&&r.stopDrag(this.canvas),h.stopDrag(),!1;for(var f=0;f0&&!1!==this.connectionsDetachable}.bind(this),r.initDraggable(this.canvas,p,"internal"),this.canvas._jsPlumbRelatedElement=this.element,u=!0}};var d=i.endpoint||this._jsPlumb.instance.Defaults.Endpoint||t.Defaults.Endpoint;this.setEndpoint(d,!0);var h=i.anchor?i.anchor:i.anchors?i.anchors:r.Defaults.Anchor||"Top";this.setAnchor(h,!0);var p=["default",i.type||""].join(" ");this.addType(p,i.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var f=function(n,o,s,a){if(t.isDropSupported(this.element)){var l=i.dropOptions||r.Defaults.DropOptions||t.Defaults.DropOptions;(l=t.extend({},l)).scope=l.scope||this.scope;var c=t.dragEvents.drop,u=t.dragEvents.over,d=t.dragEvents.out,h=this,p=r.EndpointDropHandler({getEndpoint:function(){return h},jsPlumb:r,enabled:function(){return null==s||s.isEnabled()},isFull:function(){return s.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){h.addClass(t)},removeClass:function(t){h.removeClass(t)},isDropAllowed:function(){return h.isDropAllowed.apply(h,arguments)},reference:a,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});l[c]=e.wrap(l[c],p,!0),l[u]=e.wrap(l[u],function(){var e=t.getDragObject(arguments),n=r.getAttribute(t.getElement(e),"dragId"),i=r.getFloatingConnectionFor(n);if(null!=i){var o=r.getFloatingAnchorIndex(i);if(this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id){var s=r.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[o],targetEndpoint:this,connection:i});this[(s?"add":"remove")+"Class"](r.endpointDropAllowedClass),this[(s?"remove":"add")+"Class"](r.endpointDropForbiddenClass),i.endpoints[o].anchor.over(this.anchor,this)}}}.bind(this)),l[d]=e.wrap(l[d],function(){var e=t.getDragObject(arguments),n=null==e?null:r.getAttribute(t.getElement(e),"dragId"),i=n?r.getFloatingConnectionFor(n):null;if(null!=i){var o=r.getFloatingAnchorIndex(i);(this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id)&&(this.removeClass(r.endpointDropAllowedClass),this.removeClass(r.endpointDropForbiddenClass),i.endpoints[o].anchor.out())}}.bind(this)),r.initDroppable(n,l,"internal",o)}}.bind(this);return this.anchor.isFloating||f(this.canvas,!(i._transient||this.anchor.isFloating),this,i.reference),this},e.extend(t.Endpoint,t.OverlayCapableJsPlumbUIComponent,{setVisible:function(t,e,n){if(this._jsPlumb.visible=t,this.canvas&&(this.canvas.style.display=t?"block":"none"),this[t?"showOverlays":"hideOverlays"](),!e)for(var i=0;in[0][0])?-1:1}},h={top:function(t,e){return t[0]>e[0]?1:-1},right:d(!0),bottom:d(!0),left:function(t,e){return(t[0][0]<0?-Math.PI-t[0][0]:Math.PI-t[0][0])>(e[0][0]<0?-Math.PI-e[0][0]:Math.PI-e[0][0])?1:-1}},p=function(t,e){var n=c.getCachedData(t),i=n.s,s=n.o,a=function(e,n,i,s,a,l,c){if(s.length>0)for(var u=function(t,e,n,i,r,o,s){for(var a=[],l=e[r?0:1]/(i.length+1),c=0;c-1&&(s[i].splice(l,1),t.addToList(s,r,[o,o.endpoints[0],o.endpoints[0].anchor.constructor===e.DynamicAnchor])),o.updateConnectedClass()},this.sourceChanged=function(n,i,r,o){if(n!==i){r.sourceId=i,r.source=o,t.removeWithFunction(s[n],function(t){return t[0].id===r.id});var a=t.findWithFunction(s[r.targetId],function(t){return t[0].id===r.id});a>-1&&(s[r.targetId][a][0]=r,s[r.targetId][a][1]=r.endpoints[0],s[r.targetId][a][2]=r.endpoints[0].anchor.constructor===e.DynamicAnchor),t.addToList(s,i,[r,r.endpoints[1],r.endpoints[1].anchor.constructor===e.DynamicAnchor]),r.endpoints[1].anchor.isContinuous&&(r.source===r.target?r._jsPlumb.instance.removeElement(r.endpoints[1].canvas):null==r.endpoints[1].canvas.parentNode&&r._jsPlumb.instance.appendElement(r.endpoints[1].canvas)),r.updateConnectedClass()}},this.rehomeEndpoint=function(t,e,n){var r=i[e]||[],o=c.getId(n);if(o!==e){var s=r.indexOf(t);if(s>-1){var l=r.splice(s,1)[0];a.add(l,o)}}for(var u=0;ue.dist?1:0});for(var p=c[0].source,f=c[0].target,m=0;m0?this.anchors[0]:null,a=s,l=this,c=function(t,e,n,i,r){var o=i[0]+t.x*r[0],s=i[1]+t.y*r[1],a=i[0]+r[0]/2,l=i[1]+r[1]/2;return Math.sqrt(Math.pow(e-o,2)+Math.pow(n-s,2))+Math.sqrt(Math.pow(a-o,2)+Math.pow(l-s,2))},u=t.selector||function(t,e,n,i,r){for(var o=n[0]+i[0]/2,s=n[1]+i[1]/2,a=-1,l=1/0,u=0;u0?t:n+t:t*n;return i.pointOnLine({x:s,y:l},{x:a,y:c},r)}return{x:a,y:c}}return{x:s,y:l}},this.gradientAtPoint=function(t){return r},this.pointAlongPathFrom=function(t,e,n){var r=this.pointOnPath(t,n),o=e<=0?{x:s,y:l}:{x:a,y:c};return e<=0&&Math.abs(e)>1&&(e*=-1),i.pointOnLine(r,o,e)};var u=function(t,e,n){return n>=Math.min(t,e)&&n<=Math.max(t,e)},d=function(t,e,n){return Math.abs(n-t)e?e<=t&&t<=n:e>=t&&t>=n};this.lineIntersection=function(t,e,n,o){var u=Math.abs(i.gradient({x:t,y:e},{x:n,y:o})),d=Math.abs(r),p=d===1/0?s:l-d*s,f=[],m=u===1/0?t:e-u*t;if(u!==d)if(u===1/0&&0===d)h(t,s,a)&&h(l,e,o)&&(f=[t,l]);else if(0===u&&d===1/0)h(e,l,c)&&h(s,t,n)&&(f=[s,e]);else{var g,v;u===1/0?h(g=t,s,a)&&h(v=d*t+p,e,o)&&(f=[g,v]):0===u?h(v=e,l,c)&&h(g=(e-p)/d,t,n)&&(f=[g,v]):(v=d*(g=(m-p)/(d-u))+p,h(g,s,a)&&h(v,l,c)&&(f=[g,v]))}return f},this.boxIntersection=function(t,e,n,i){var r=[];return r.push.apply(r,this.lineIntersection(t,e,t+n,e)),r.push.apply(r,this.lineIntersection(t+n,e,t+n,e+i)),r.push.apply(r,this.lineIntersection(t+n,e+i,t,e+i)),r.push.apply(r,this.lineIntersection(t,e+i,t,e)),r},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.h)}},Arc:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n=function(e,n){return i.theta([t.cx,t.cy],[e,n])},r=2*Math.PI;this.radius=t.r,this.anticlockwise=t.ac,this.type="Arc",t.startAngle&&t.endAngle?(this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.x1=t.cx+this.radius*Math.cos(t.startAngle),this.y1=t.cy+this.radius*Math.sin(t.startAngle),this.x2=t.cx+this.radius*Math.cos(t.endAngle),this.y2=t.cy+this.radius*Math.sin(t.endAngle)):(this.startAngle=n(t.x1,t.y1),this.endAngle=n(t.x2,t.y2),this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2),this.endAngle<0&&(this.endAngle+=r),this.startAngle<0&&(this.startAngle+=r);var o=this.endAngle0?0:1,n)),n};this.pointOnPath=function(e,n){return e=i(this.curve,e,n),t.jsBezier.pointOnCurve(this.curve,e)},this.gradientAtPoint=function(e,n){return e=i(this.curve,e,n),t.jsBezier.gradientAtPoint(this.curve,e)},this.pointAlongPathFrom=function(e,n,r){return e=i(this.curve,e,r),t.jsBezier.pointAlongCurveFrom(this.curve,e,n)},this.getLength=function(){return t.jsBezier.getLength(this.curve)},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(e,n){var i=t.jsBezier.nearestPointOnCurve({x:e,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-e,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:i.location,s:this}},this.lineIntersection=function(e,n,i,r){return t.jsBezier.lineIntersection(e,n,i,r,this.curve)}}},e.SegmentRenderer={getPath:function(t,e){return{Straight:function(e){var n=t.getCoordinates();return(e?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(e){var n=t.params;return(e?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(e){var n=t.params,i=t.sweep>Math.PI?1:0,r=t.anticlockwise?0:1;return(e?"M"+t.x1+" "+t.y1+" ":"")+"A "+t.radius+" "+n.r+" 0 "+i+","+r+" "+t.x2+" "+t.y2}}[t.type](e)}};var r=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};e.Connectors.AbstractConnector=function(t){r.apply(this,arguments);var o=[],s=0,a=[],l=[],c=t.stub||0,u=n.isArray(c)?c[0]:c,d=n.isArray(c)?c[1]:c,h=t.gap||0,p=n.isArray(h)?h[0]:h,f=n.isArray(h)?h[1]:h,m=null,g=null;this.getPathData=function(){for(var t="",n=0;n0?t/s:(s+t)/s);for(var n=a.length-1,i=1,r=0;r=t){n=r,i=1===t?1:0===t?0:(t-a[r][0])/l[r];break}return{segment:o[n],proportion:i,index:n}};this.setSegments=function(t){m=[],s=0;for(var e=0;em?0:1,v=[1,0][g];a=[],(s=[])[g]=t.sourcePos[g]>t.targetPos[g]?-1:1,a[g]=t.sourcePos[g]>t.targetPos[g]?1:-1,s[v]=0,a[v]=0}var b=n?h+p*s[0]:p*s[0],y=r?m+p*s[1]:p*s[1],x=n?f*a[0]:h+f*a[0],_=r?f*a[1]:m+f*a[1],w=s[0]*a[0]+s[1]*a[1],C={sx:b,sy:y,tx:x,ty:_,lw:o,xSpan:Math.abs(x-b),ySpan:Math.abs(_-y),mx:(b+x)/2,my:(y+_)/2,so:s,to:a,x:l,y:c,w:h,h:m,segment:e,startStubX:b+s[0]*u,startStubY:y+s[1]*u,endStubX:x+a[0]*d,endStubY:_+a[1]*d,isXGreaterThanStubTimes2:Math.abs(b-x)>u+d,isYGreaterThanStubTimes2:Math.abs(y-_)>u+d,opposite:-1===w,perpendicular:0===w,orthogonal:1===w,sourceAxis:0===s[0]?"y":"x",points:[l,c,h,m,b,y,x,_],stubs:[u,d]};return C.anchorOrientation=C.opposite?"opposite":C.orthogonal?"orthogonal":"perpendicular",C};this.getSegments=function(){return o},this.updateBounds=function(t){var e=t.getBounds();this.bounds.minX=Math.min(this.bounds.minX,e.minX),this.bounds.maxX=Math.max(this.bounds.maxX,e.maxX),this.bounds.minY=Math.min(this.bounds.minY,e.minY),this.bounds.maxY=Math.max(this.bounds.maxY,e.maxY)};return this.pointOnPath=function(t,e){var n=v(t,e);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(t,e){var n=v(t,e);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(t,e,n){var i=v(t,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,e,!1)||[0,0]},this.compute=function(t){g=b.call(this,t),s=o.length=a.length=l.length=0,this._compute(g,t),this.x=g.points[0],this.y=g.points[1],this.w=g.points[2],this.h=g.points[3],this.segment=g.segment,function(){for(var t=0,e=0;e1||this.loc<0){var d=parseInt(this.loc,10),h=this.loc<0?1:0;r=t.pointAlongPathFrom(h,d,!1),s=t.pointAlongPathFrom(h,d-o*this.length/2,!1),c=i.pointOnLine(r,s,this.length)}else if(1===this.loc){if(r=t.pointOnPath(this.loc),s=t.pointAlongPathFrom(this.loc,-this.length),c=i.pointOnLine(r,s,this.length),-1===o){var p=c;c=r,r=p}}else if(0===this.loc){if(c=t.pointOnPath(this.loc),s=t.pointAlongPathFrom(this.loc,this.length),r=i.pointOnLine(c,s,this.length),-1===o){var f=c;c=r,r=f}}else r=t.pointAlongPathFrom(this.loc,o*this.length/2),s=t.pointOnPath(this.loc),c=i.pointOnLine(r,s,this.length);var m={hxy:r,tail:u=i.perpendicularLineTo(r,c,this.width),cxy:i.pointOnLine(r,c,l*this.length)},g=a.stroke||e.stroke,v=a.fill||e.stroke;return{component:t,d:m,"stroke-width":a.strokeWidth||e.strokeWidth,stroke:g,fill:v,minX:Math.min(r.x,u[0].x,u[1].x),maxX:Math.max(r.x,u[0].x,u[1].x),minY:Math.min(r.y,u[0].y,u[1].y),maxY:Math.max(r.y,u[0].y,u[1].y)}}return{component:t,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(e.Overlays.Arrow,s,{updateFrom:function(t){this.length=t.length||this.length,this.width=t.width||this.width,this.direction=null!=t.direction?t.direction:this.direction,this.foldback=t.foldback||this.foldback},cleanup:function(){this.path&&this.canvas&&this.canvas.removeChild(this.path)}}),e.Overlays.PlainArrow=function(t){t=t||{};var n=e.extend(t,{foldback:1});e.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(e.Overlays.PlainArrow,e.Overlays.Arrow),e.Overlays.Diamond=function(t){var n=(t=t||{}).length||40,i=e.extend(t,{length:n/2,foldback:2});e.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(e.Overlays.Diamond,e.Overlays.Arrow);var a=function(t,e){return(null==t._jsPlumb.cachedDimensions||e)&&(t._jsPlumb.cachedDimensions=t.getDimensions()),t._jsPlumb.cachedDimensions},l=function(t){e.jsPlumbUIComponent.apply(this,arguments),s.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=t.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=t.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=t.create,this._jsPlumb.initiallyInvisible=!1===t.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=e.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:t.cssClass?t.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===t.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(t,e,i){var r=a(this);if(null!=r&&2===r.length){var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(t.pointOnPath){var s=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(s=parseInt(this.loc,10),l=!0),o=t.pointOnPath(s,l)}else{var c=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:c[0]*t.w,y:c[1]*t.h}}var u=o.x-r[0]/2,d=o.y-r[1]/2;return{component:t,d:{minx:u,miny:d,td:r,cxy:o},minX:u,maxX:u+r[0],minY:d,maxY:d+r[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[e.jsPlumbUIComponent,s],{getDimensions:function(){return[1,1]},setVisible:function(t){this._jsPlumb.div&&(this._jsPlumb.div.style.display=t?"block":"none",t&&this._jsPlumb.initiallyInvisible&&(a(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(t){t?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(t,e){null!=this._jsPlumb.div&&t.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var t=a(this);return Math.max(t[0],t[1])},paint:function(t,e){this._jsPlumb.initialised||(this.getElement(),t.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=t.component.x+t.d.minx+"px",this._jsPlumb.div.style.top=t.component.y+t.d.miny+"px"}}),e.Overlays.Custom=function(t){this.type="Custom",l.apply(this,arguments)},n.extend(e.Overlays.Custom,l),e.Overlays.GuideLines=function(){var t=this;t.length=50,t.strokeWidth=5,this.type="GuideLines",s.apply(this,arguments),e.jsPlumbUIComponent.apply(this,arguments),this.draw=function(e,n){var r=e.pointAlongPathFrom(t.loc,t.length/2),o=e.pointOnPath(t.loc),s=i.pointOnLine(r,o,t.length),a=i.perpendicularLineTo(r,s,40),l=i.perpendicularLineTo(s,r,20);return{connector:e,head:r,tail:s,headLine:l,tailLine:a,minX:Math.min(r.x,s.x,l[0].x,l[1].x),minY:Math.min(r.y,s.y,l[0].y,l[1].y),maxX:Math.max(r.x,s.x,l[0].x,l[1].x),maxY:Math.max(r.y,s.y,l[0].y,l[1].y)}}},e.Overlays.Label=function(t){this.labelStyle=t.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=e.extend({create:function(){return e.createElement("div")}},t);if(e.Overlays.Custom.call(this,n),this.type="Label",this.label=t.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var r=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+r}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(e.Overlays.Label,e.Overlays.Custom,{cleanup:function(t){t&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(t){this.label=t,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"==typeof this.label){var t=this.label(this);this.getElement().innerHTML=t.replace(/\r\n/g,"
")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"
"))},updateFrom:function(t){null!=t.label&&this.setLabel(t.label)}})}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumbInstance,i="stop",r="revert",o="_jsPlumbGroup",s="show",a="hide",l=function(t){var n={},i={},r={},l=this;function c(e,n){for(var i=e.getMembers(),r=0;r0?t[0]:l},u=!0===s.ghost,d=u||!0===s.constrain,h=!1!==s.revert,p=!0===s.orphan,f=!0===s.prune,m=!0===s.dropOverride,g=!1!==s.proxied,v=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(t,e){return s.anchor||"Continuous"},this.getEndpoint=function(t,e){return s.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==s.draggable){var b={stop:function(t){n.fire("groupDragStop",jsPlumb.extend(t,{group:a}))},scope:"_jsPlumbGroupDrag"};s.dragOptions&&t.jsPlumb.extend(b,s.dragOptions),n.draggable(s.el,b)}!1!==s.droppable&&n.droppable(s.el,{drop:function(t){var e=t.drag.el;if(!e._isJsPlumbGroup){var i=e._jsPlumbGroup;if(i!==a){if(null!=i&&i.overrideDrop(e,a))return;n.getGroupManager().addToGroup(a,e,!1)}}}});var y=function(t,e){for(var n=null==t.nodeType?t:[t],i=0;i0&&s0&&ln.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubXn.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubYl[e][0],f=i[e][d][0],m=i[e][d][1],g={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]}[e][d][h];return n.segment===g[3]||n.segment===g[2]&&p?r[e]:n.segment===g[2]&&m=f||n.segment===g[1]&&!p?a[e]:n.segment===g[0]||n.segment===g[1]&&p?s[e]:void 0},orthogonal:function(e,n,i,r,o){var s=t,a={x:-1===s.so[0]?Math.min(n,r):Math.max(n,r),y:-1===s.so[1]?Math.min(n,r):Math.max(n,r)}[e];return{x:[[a,i],[a,o],[r,o]],y:[[i,a],[o,a],[o,r]]}[e]},opposite:function(n,r,o,s){var a=t,l={x:"y",y:"x"}[n],c={x:"height",y:"width"}[n],u=a["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var d=o+(1-e.sourceEndpoint.anchor[l])*e.sourceInfo[c]+i.maxStub;return{x:[[r,d],[s,d]],y:[[d,r],[d,s]]}[n]}return!u||1===a.so[m]&&r>s||-1===a.so[m]&&rs?{x:[[_,a.sy],[_,a.ty]],y:[[a.sx,w],[a.tx,w]]}[n]:void 0}}[t.anchorOrientation](t.sourceAxis,v,b,y,x);if(k)for(var P=0;P0&&a[4]!==r[4]){var d=Math.min(h(a),h(r)),f=Math.min(l,d/2);a[2]-=o[0]*f,a[3]-=o[1]*f,r[0]+=s[0]*f,r[1]+=s[1]*f;var m=o[1]===s[0]&&1===s[0]||o[1]===s[0]&&0===s[0]&&o[0]!==s[1]||o[1]===s[0]&&-1===s[0],g=(r[1]>a[3]?1:-1)==(r[0]>a[2]?1:-1),v=g&&m||!g&&!m?r[0]:a[2],b=g&&m||!g&&!m?a[3]:r[1];i.addSegment(t,"Straight",{x1:a[0],y1:a[1],x2:a[2],y2:a[3]}),i.addSegment(t,"Arc",{r:f,x1:a[2],y1:a[3],x2:r[0],y2:r[1],cx:v,cy:b,ac:m})}else{var y=a[2]===a[0]?0:a[2]>a[0]?n.lw/2:-n.lw/2,x=a[3]===a[1]?0:a[3]>a[1]?n.lw/2:-n.lw/2;i.addSegment(t,"Straight",{x1:a[0]-y,y1:a[1]-x,x2:a[2]+y,y2:a[3]+x})}a=r}null!=r&&i.addSegment(t,"Straight",{x1:r[0],y1:r[1],x2:r[2],y2:r[3]})}(this,n,t)}},e.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){var n,i=!1!==(e=e||{}).showLoopback,r=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),s=e.loopbackRadius||25;return this._compute=function(t,e){var a=e.sourcePos,l=e.targetPos,c=Math.abs(a[0]-l[0]),u=Math.abs(a[1]-l[1]);if(i&&e.sourceEndpoint.elementId===e.targetEndpoint.elementId){!0;var d=e.sourcePos[0],h=e.sourcePos[1]-r,p=d,f=h-s,m=p-s,g=f-s;c=2*s,u=2*s,t.points[0]=m,t.points[1]=g,t.points[2]=c,t.points[3]=u,n.addSegment(this,"Arc",{loopback:!0,x1:d-m+4,y1:h-g,startAngle:0,endAngle:2*Math.PI,r:s,ac:!o,x2:d-m-4,y2:h-g,cx:p-m,cy:f-g})}else!1,this._computeBezier(t,e,a,l,c,u)},n=t.Connectors.AbstractConnector.apply(this,arguments)},e.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var n=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150;this.getCurviness=function(){return i},this._findControlPoint=function(t,e,n,r,o,s,a){var l=[];return s[0]!==a[0]||s[1]===a[1]?(0===a[0]?l.push(n[0]=x?3:4),S=Math.sqrt(Math.pow(p-d,2)+Math.pow(f-h,2));m=(n=function(t,e,n,i,r,o,s,a,l){return a<=l?[t,e]:1===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*o:o),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*s:s)]:[t+-1*o,e+-1*s]:2===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*o:o),e]:i[2]>=1&&r[2]<=0?[t,e+(i[3]<.5?-1*s:s)]:[t+o,e+-1*s]:3===n?i[3]>=1&&r[3]<=0?[t+(i[2]<.5?-1*o:o),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*s:s)]:[t+-1*o,e+-1*s]:4===n?i[3]<=0&&r[3]>=1?[t+(i[2]<.5?-1*o:o),e]:i[2]<=0&&r[2]>=1?[t,e+(i[3]<.5?-1*s:s)]:[t+o,e+-1*s]:void 0}(C,k,P,e.sourcePos,e.targetPos,r,r,S,s))[0],g=n[0],v=n[1],b=n[1],i.addSegment(this,"Bezier",{x1:p,y1:f,x2:d,y2:h,cp1x:m,cp1y:v,cp2x:g,cp2y:b})}};t.Connectors.StateMachine=n,e.extend(n,t.Connectors.AbstractBezierConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n=function(e){this.type="Straight";var n=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(t,e){n.addSegment(this,"Straight",{x1:t.sx,y1:t.sy,x2:t.startStubX,y2:t.startStubY}),n.addSegment(this,"Straight",{x1:t.startStubX,y1:t.startStubY,x2:t.endStubX,y2:t.endStubY}),n.addSegment(this,"Straight",{x1:t.endStubX,y1:t.endStubY,x2:t.tx,y2:t.ty})}};t.Connectors.Straight=n,e.extend(n,t.Connectors.AbstractConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},i="http://www.w3.org/2000/svg",r=function(t,e){for(var n in e)t.setAttribute(n,""+e[n])},o=function(e,n){return(n=n||{}).version="1.1",n.xmlns=i,t.createElementNS(i,e,null,null,n)},s=function(t){return"position:absolute;left:"+t[0]+"px;top:"+t[1]+"px"},a=function(t){for(var e=t.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;nn?t.insertBefore(e,t.childNodes[n]):t.appendChild(e)};e.svg={node:o,attr:r,pos:s};var u=function(n){var i=n.pointerEventsSpec||"all",a={};t.jsPlumbUIComponent.apply(this,n.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var l=n.cssClass+" "+(n.originalArgs[0].cssClass||""),c={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=o("svg",c),n.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),e.sizeElement(this.canvas,0,0,1,1),this.canvas.className=l):(r(this.svg,{class:l}),this.canvas=this.svg),n._jsPlumb.appendElement(this.canvas,n.originalArgs[0].parent),n.useDivWrapper&&this.canvas.appendChild(this.svg);var u=[this.canvas];return this.getDisplayElements=function(){return u},this.appendDisplayElement=function(t){u.push(t)},this.paint=function(t,i,o){if(null!=t){var l,c=[this.x,this.y],u=[this.w,this.h];null!=o&&(o.xmin<0&&(c[0]+=o.xmin),o.ymin<0&&(c[1]+=o.ymin),u[0]=o.xmax+(o.xmin<0?-o.xmin:0),u[1]=o.ymax+(o.ymin<0?-o.ymin:0)),n.useDivWrapper?(e.sizeElement(this.canvas,c[0],c[1],u[0],u[1]),c[0]=0,c[1]=0,l=s([0,0])):l=s([c[0],c[1]]),a.paint.apply(this,arguments),r(this.svg,{style:l,width:u[0]||0,height:u[1]||0})}},{renderer:a}};e.extend(u,t.jsPlumbUIComponent,{cleanup:function(t){t||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(t){var e=t.getContainer();this.canvas&&null==this.canvas.parentNode&&e.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&e.appendChild(this.bgCanvas)},setVisible:function(t){this.canvas&&(this.canvas.style.display=t?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this;u.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]).renderer.paint=function(i,s,a){var u=n.getSegments(),d=[0,0];if(a.xmin<0&&(d[0]=-a.xmin),a.ymin<0&&(d[1]=-a.ymin),u.length>0){var h={d:n.getPathData(),transform:"translate("+d[0]+","+d[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},p=null;n.x,n.y,n.w,n.h;if(i.outlineStroke){var f=i.outlineWidth||1,m=i.strokeWidth+2*f;delete(p=t.extend({},i)).gradient,p.stroke=i.outlineStroke,p.strokeWidth=m,null==n.bgPath?(n.bgPath=o("path",h),t.addClass(n.bgPath,t.connectorOutlineClass),c(n.svg,n.bgPath,0)):r(n.bgPath,h),l(n.svg,n.bgPath,p,0,n)}null==n.path?(n.path=o("path",h),c(n.svg,n.path,i.outlineStroke?1:0)):r(n.path,h),l(n.svg,n.path,i,0,n)}}},e.extend(t.ConnectorRenderers.svg,u);var d=t.SvgEndpoint=function(e){u.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]).renderer.paint=function(e){var n=t.extend({},e);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),l(this.svg,this.node,n,(this.x,this.y,this.w,this.h),this),s(this.node,(this.x,this.y))}.bind(this)};e.extend(d,u),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),d.apply(this,arguments),this.makeNode=function(t){return o("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(t){r(t,{cx:this.w/2,cy:this.h/2,r:this.radius})}},e.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,d]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),d.apply(this,arguments),this.makeNode=function(t){return o("rect",{width:this.w,height:this.h})},this.updateNode=function(t){r(t,{width:this.w,height:this.h})}},e.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,d]),t.Endpoints.svg.Image=t.Endpoints.Image,t.Endpoints.svg.Blank=t.Endpoints.Blank,t.Overlays.svg.Label=t.Overlays.Label,t.Overlays.svg.Custom=t.Overlays.Custom;var h=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(t,e){if(t.component.svg&&e){null==this.path&&(this.path=o("path",{"pointer-events":"all"}),t.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,t.component),this.canvas=t.component.svg);var s=n&&1===n.length&&n[0].cssClass||"",a=[0,0];e.xmin<0&&(a[0]=-e.xmin),e.ymin<0&&(a[1]=-e.ymin),r(this.path,{d:i(t.d),class:s,stroke:t.stroke?t.stroke:null,fill:t.fill?t.fill:null,transform:"translate("+a[0]+","+a[1]+")"})}};var i=function(t){return isNaN(t.cxy.x)||isNaN(t.cxy.y)?"":"M"+t.hxy.x+","+t.hxy.y+" L"+t.tail[0].x+","+t.tail[0].y+" L"+t.cxy.x+","+t.cxy.y+" L"+t.tail[1].x+","+t.tail[1].y+" L"+t.hxy.x+","+t.hxy.y};this.transfer=function(t){t.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),t.canvas.appendChild(this.path))}};e.extend(h,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay],{cleanup:function(t){null!=this.path&&(t?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(t,e){this.path&&e.canvas&&e.canvas.appendChild(this.path)},setVisible:function(t){null!=this.path&&(this.path.style.display=t?"block":"none")}}),t.Overlays.svg.Arrow=function(){h.apply(this,[t.Overlays.Arrow,arguments])},e.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,h]),t.Overlays.svg.PlainArrow=function(){h.apply(this,[t.Overlays.PlainArrow,arguments])},e.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,h]),t.Overlays.svg.Diamond=function(){h.apply(this,[t.Overlays.Diamond,arguments])},e.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,h]),t.Overlays.svg.GuideLines=function(){var e,n,i=null,s=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,l){null==i&&(i=o("path"),t.connector.svg.appendChild(i),s.attachListeners(i,t.connector),s.attachListeners(i,s),e=o("path"),t.connector.svg.appendChild(e),s.attachListeners(e,t.connector),s.attachListeners(e,s),n=o("path"),t.connector.svg.appendChild(n),s.attachListeners(n,t.connector),s.attachListeners(n,s));var c=[0,0];l.xmin<0&&(c[0]=-l.xmin),l.ymin<0&&(c[1]=-l.ymin),r(i,{d:a(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+c[0]+","+c[1]+")"}),r(e,{d:a(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+c[0]+","+c[1]+")"}),r(n,{d:a(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+c[0]+","+c[1]+")"})};var a=function(t,e){return"M "+t.x+","+t.y+" L"+e.x+","+e.y}},e.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Katavorio,r=t.Biltong,o=function(t,n){var o="_katavorio_"+(n=n||"main"),s=t[o],a=t.getEventManager();return s||((s=new i({bind:a.on,unbind:a.off,getSize:e.getSize,getConstrainingRectangle:function(t){return[t.parentNode.scrollWidth,t.parentNode.scrollHeight]},getPosition:function(e,n){var i=t.getOffset(e,n,e._katavorioDrag?e.offsetParent:null);return[i.left,i.top]},setPosition:function(t,e){t.style.left=e[0]+"px",t.style.top=e[1]+"px"},addClass:e.addClass,removeClass:e.removeClass,intersects:r.intersects,indexOf:function(t,e){return t.indexOf(e)},scope:t.getDefaultScope(),css:{noSelect:t.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}})).setZoom(t.getZoom()),t[o]=s,t.bind("zoom",s.setZoom)),s},s=function(t,e){if(null==e)return[0,0];var n=d(e),i=u(n,0);return[i[t+"X"],i[t+"Y"]]},a=s.bind(this,"page"),l=s.bind(this,"screen"),c=s.bind(this,"client"),u=function(t,e){return t.item?t.item(e):t[e]},d=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},h=function(t,e,i){e=n.fastTrim(e),void 0!==t.className.baseVal?t.className.baseVal=e:t.className=e;try{var r=t.classList;if(null!=r){for(;r.length>0;)r.remove(r.item(0));for(var o=0;o0){a||(a=t.getOffset(s));var h=t.getOffset(u);i[l][d]={id:d,offset:{left:h.left-a.left,top:h.top-a.top}},o[d]=l}c(e.childNodes[n])}};c(s)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var r,s=jsPlumb.getElement(e),a=t.getId(s),l=i[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){var u=jsPlumb.getElement(c),d=n[c]||t.getOffset(u);if(null==u.offsetParent&&null!=i[a][c])continue;r||(r=t.getOffset(s)),i[a][c]={id:c,offset:{left:d.left-r.left,top:d.top-r.top}},o[c]=a}}},this.endpointAdded=function(n,s){s=s||t.getId(n);var a=document.body,l=n.parentNode;for(r[s]=r[s]?r[s]+1:1;null!=l&&l!==a;){var c=t.getId(l,null,!0);if(c&&e[c]){var u=t.getOffset(l);if(null==i[c][s]){var d=t.getOffset(n);i[c][s]={id:s,offset:{left:d.left-u.left,top:d.top-u.top}},o[s]=c}break}l=l.parentNode}},this.endpointDeleted=function(t){if(r[t.elementId]&&(r[t.elementId]--,r[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete o[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},o[e]=o[t],o[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=o[t];e&&(delete i[e][t],delete o[t])},this.reset=function(){e={},n=[],i={},r={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=t.getId(e),i=o[n];i&&this.updateOffsets(i)}},this.setParent=function(e,n,r,s,a){var l=o[n];i[s]||(i[s]={});var c=t.getOffset(r),u=a||t.getOffset(e);l&&i[l]&&delete i[l][n],i[s][n]={id:n,offset:{left:u.left-c.left,top:u.top-c.top}},o[n]=s},this.clearParent=function(t,e){var n=o[e];n&&(delete i[n][e],delete o[e])},this.revalidateParent=function(e,n,i){var r=o[n];if(r){var s={};s[n]=i,this.updateOffsets(r,s),t.revalidate(r)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=t.getId(n),r=o[i];return r?jsPlumb.getElement(r):null}}(this)),this.dragManager},recalculateOffsets:function(t){this.getDragManager().updateOffsets(t)},createElement:function(t,e,n,i){return this.createElementNS(null,t,e,n,i)},createElementNS:function(t,e,n,i,r){var o,s=null==t?document.createElement(e):document.createElementNS(t,e);for(o in n=n||{})s.style[o]=n[o];for(o in i&&(s.className=i),r=r||{})s.setAttribute(o,""+r[o]);return s},getAttribute:function(t,e){return null!=t.getAttribute?t.getAttribute(e):null},setAttribute:function(t,e,n){null!=t.setAttribute&&t.setAttribute(e,n)},setAttributes:function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])},appendToRoot:function(t){document.body.appendChild(t)},getRenderModes:function(){return["svg"]},getClass:p,addClass:function(t,e){jsPlumb.each(t,function(t){f(t,e)})},hasClass:function(t,e){return(t=jsPlumb.getElement(t)).classList?t.classList.contains(e):-1!==p(t).indexOf(e)},removeClass:function(t,e){jsPlumb.each(t,function(t){f(t,null,e)})},toggleClass:function(t,e){jsPlumb.hasClass(t,e)?jsPlumb.removeClass(t,e):jsPlumb.addClass(t,e)},updateClasses:function(t,e,n){jsPlumb.each(t,function(t){f(t,e,n)})},setClass:function(t,e){null!=e&&jsPlumb.each(t,function(t){h(t,e,e.split(/\s+/))})},setPosition:function(t,e){t.style.left=e.left+"px",t.style.top=e.top+"px"},getPosition:function(t){var e=function(e){var n=t.style[e];return n?n.substring(0,n.length-2):0};return{left:e("left"),top:e("top")}},getStyle:function(t,e){return void 0!==window.getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.currentStyle[e]},getSelector:function(t,e){return 1===arguments.length?null!=t.nodeType?t:document.querySelectorAll(t):t.querySelectorAll(e)},getOffset:function(t,e,n){t=jsPlumb.getElement(t),n=n||this.getContainer();for(var i={left:t.offsetLeft,top:t.offsetTop},r=e||null!=n&&t!==n&&t.offsetParent!==n?t.offsetParent:null,o=function(t){null!=t&&t!==document.body&&(t.scrollTop>0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}.bind(this);null!=r;)i.left+=r.offsetLeft,i.top+=r.offsetTop,o(r),r=e?r.offsetParent:r.offsetParent===n?null:r.offsetParent;if(null!=n&&!e&&(n.scrollTop>0||n.scrollLeft>0)){var s=null!=t.offsetParent?this.getStyle(t.offsetParent,"position"):"static",a=this.getStyle(t,"position");"absolute"!==a&&"fixed"!==a&&"absolute"!==s&&"fixed"!==s&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(t,e,n){var i=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},r=document.body,o=document.documentElement,s=window.pageYOffset||o.scrollTop||r.scrollTop,a=window.pageXOffset||o.scrollLeft||r.scrollLeft,l=o.clientTop||r.clientTop||0,c=o.clientLeft||r.clientLeft||0,u=i.top+s-l+0*n,d=i.left+a-c+0*n,h=jsPlumb.pageLocation(t),p=i.width||e.offsetWidth*n,f=i.height||e.offsetHeight*n;return[(h[0]-d)/p,(h[1]-u)/f]},getAbsolutePosition:function(t){var e=function(e){var n=t.style[e];if(n)return parseFloat(n.substring(0,n.length-2))};return[e("left"),e("top")]},setAbsolutePosition:function(t,e,n,i){n?this.animate(t,{left:"+="+(e[0]-n[0]),top:"+="+(e[1]-n[1])},i):(t.style.left=e[0]+"px",t.style.top=e[1]+"px")},getSize:function(t){return[t.offsetWidth,t.offsetHeight]},getWidth:function(t){return t.offsetWidth},getHeight:function(t){return t.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],Array.prototype.slice.call(t).forEach(function(t){(i=this.info(t)).el&&this._initDraggableIfNecessary(i.el,!0,e,i.id,!0)}.bind(this)),this},initDraggable:function(t,e,n){o(this,n).draggable(t,e),t._jsPlumbDragOptions=e},destroyDraggable:function(t,e){o(this,e).destroyDraggable(t),delete t._jsPlumbDragOptions},unbindDraggable:function(t,e,n,i){o(this,i).destroyDraggable(t,e,n)},setDraggable:function(t,e){return jsPlumb.each(t,function(t){this.isDragSupported(t)&&(this._draggableStates[this.getAttribute(t,"id")]=e,this.setElementDraggable(t,e))}.bind(this))},_draggableStates:{},toggleDraggable:function(t){var e;return jsPlumb.each(t,function(t){var n=this.getAttribute(t,"id");return e=!(e=null!=this._draggableStates[n]&&this._draggableStates[n]),this._draggableStates[n]=e,this.setDraggable(t,e),e}.bind(this)),e},_initDraggableIfNecessary:function(t,e,i,r,o){if(!jsPlumb.headless&&(null!=e&&e&&jsPlumb.isDragSupported(t,this))){var s=i||this.Defaults.DragOptions;if(s=jsPlumb.extend({},s),jsPlumb.isAlreadyDraggable(t,this))i.force&&this.initDraggable(t,s);else{var a=jsPlumb.dragEvents.drag,l=jsPlumb.dragEvents.stop,c=jsPlumb.dragEvents.start;this.manage(r,t),s[c]=n.wrap(s[c],function(t){var e=t.el._jsPlumbDragOptions,n=!0;return e.canDrag&&(n=e.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:t.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n}.bind(this)),s[a]=n.wrap(s[a],function(t){var e=this.getUIPosition(arguments,this.getZoom());if(null!=e){var n=t.el._jsPlumbDragOptions;this.draw(t.el,e,null,!0),n._dragging&&this.addClass(t.el,"jtk-dragged"),n._dragging=!0}}.bind(this)),s[l]=n.wrap(s[l],function(t){for(var e,n=t.selection,i=function(t){null!=t[1]&&(e=this.getUIPosition([{el:t[2].el,pos:[t[1].left,t[1].top]}]),this.draw(t[2].el,e)),delete t[0]._jsPlumbDragOptions._dragging,this.removeClass(t[0],"jtk-dragged"),this.select({source:t[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.getDragManager().dragEnded(t[2].el)}.bind(this),r=0;r=u&&(window.clearInterval(f),null!=r.complete&&r.complete())},15)},destroyDroppable:function(t,e){o(this,e).destroyDroppable(t)},unbindDroppable:function(t,e,n,i){o(this,i).destroyDroppable(t,e,n)},droppable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],(e=e||{}).allowLoopback=!1,Array.prototype.slice.call(t).forEach(function(t){(i=this.info(t)).el&&this.initDroppable(i.el,e)}.bind(this)),this},initDroppable:function(t,e,n){o(this,n).droppable(t,e)},isAlreadyDraggable:function(t){return null!=t._katavorioDrag},isDragSupported:function(t,e){return!0},isDropSupported:function(t,e){return!0},isElementDraggable:function(t){return(t=e.getElement(t))._katavorioDrag&&t._katavorioDrag.isEnabled()},getDragObject:function(t){return t[0].drag.getDragElement()},getDragScope:function(t){return t._katavorioDrag&&t._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(t){return t[0].e},getUIPosition:function(t,e){var n=t[0].el;if(null==n.offsetParent)return null;var i=t[0].finalPos||t[0].pos,r={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var o=this.getOffset(n.offsetParent);r.left+=o.left,r.top+=o.top}return r},setDragFilter:function(t,e,n){t._katavorioDrag&&t._katavorioDrag.setFilter(e,n)},setElementDraggable:function(t,n){(t=e.getElement(t))._katavorioDrag&&t._katavorioDrag.setEnabled(n)},setDragScope:function(t,e){t._katavorioDrag&&t._katavorioDrag.k.setDragScope(t,e)},setDropScope:function(t,e){t._katavorioDrop&&t._katavorioDrop.length>0&&t._katavorioDrop[0].k.setDropScope(t,e)},addToPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,function(t){(t=[e.getElement(t)]).push.apply(t,i),r.addToPosse.apply(r,t)})},setPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,function(t){(t=[e.getElement(t)]).push.apply(t,i),r.setPosse.apply(r,t)})},removeFromPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),r=o(this);e.each(t,function(t){(t=[e.getElement(t)]).push.apply(t,i),r.removeFromPosse.apply(r,t)})},removeFromAllPosses:function(t){var n=o(this);e.each(t,function(t){n.removeFromAllPosses(e.getElement(t))})},setPosseState:function(t,n,i){var r=o(this);e.each(t,function(t){r.setPosseState(e.getElement(t),n,i)})},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(t){t._katavorioDrag&&t._katavorioDrag.abort()},addToDragSelection:function(t){o(this).select(t)},removeFromDragSelection:function(t){o(this).deselect(t)},clearDragSelection:function(){o(this).deselectAll()},trigger:function(t,e,n,i){this.getEventManager().trigger(t,e,n,i)},doReset:function(){for(var t in this)0===t.indexOf("_katavorio_")&&this[t].reset()},getEventManager:function(){return(n=(e=this)._mottle)||(n=e._mottle=new t.Mottle),n;var e,n},on:function(t,e,n){return this.getEventManager().on.apply(this,arguments),this},off:function(t,e,n){return this.getEventManager().off.apply(this,arguments),this}});var m,g;m=e.init,(g=function(){/complete|loaded|interactive/.test(document.readyState)&&void 0!==document.body&&null!=document.body?m():setTimeout(g,9)})()}.call("undefined"!=typeof window?window:this)},867:function(t,e,n){"use strict";e.__esModule=!0,e.sqlTypeList=e.directList=e.typeList=e.dateValueList=e.cycleList=void 0;var i,r=n(36),o=(i=r)&&i.__esModule?i:{default:i};var s=[{value:"month",label:""+o.default.$t("month")},{value:"week",label:""+o.default.$t("week")},{value:"day",label:""+o.default.$t("day")},{value:"hour",label:""+o.default.$t("hour")}],a={hour:[{value:"last1Hour",label:""+o.default.$t("Last1Hour")},{value:"last2Hours",label:""+o.default.$t("Last2Hours")},{value:"last3Hours",label:""+o.default.$t("Last3Hours")}],day:[{value:"last1Days",label:""+o.default.$t("Last1Days")},{value:"last2Days",label:""+o.default.$t("Last2Days")},{value:"last3Days",label:""+o.default.$t("Last3Days")},{value:"last7Days",label:""+o.default.$t("Last7Days")}],week:[{value:"lastWeek",label:""+o.default.$t("LastWeek")},{value:"lastMonday",label:""+o.default.$t("LastMonday")},{value:"lastTuesday",label:""+o.default.$t("LastTuesday")},{value:"lastWednesday",label:""+o.default.$t("LastWednesday")},{value:"lastThursday",label:""+o.default.$t("LastThursday")},{value:"lastFriday",label:""+o.default.$t("LastFriday")},{value:"lastSaturday",label:""+o.default.$t("LastSaturday")},{value:"lastSunday",label:""+o.default.$t("LastSunday")}],month:[{value:"lastMonth",label:""+o.default.$t("LastMonth")},{value:"lastMonthBegin",label:""+o.default.$t("LastMonthBegin")},{value:"lastMonthEnd",label:""+o.default.$t("LastMonthEnd")}]},l=[{id:0,code:""+o.default.$t("Query")},{id:1,code:""+o.default.$t("Non Query")}];e.cycleList=s,e.dateValueList=a,e.typeList=[{id:1,code:"VARCHAR",disabled:!1},{id:2,code:"INTEGER",disabled:!1},{id:3,code:"LONG",disabled:!1},{id:4,code:"FLOAT",disabled:!1},{id:5,code:"DOUBLE",disabled:!1},{id:6,code:"DATE",disabled:!1},{id:7,code:"TIME",disabled:!1},{id:8,code:"TIMESTAMP",disabled:!1},{id:9,code:"BOOLEAN",disabled:!1}],e.directList=[{id:1,code:"IN",disabled:!1},{id:2,code:"OUT",disabled:!1}],e.sqlTypeList=l},868:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(30)),r=l(n(36)),o=l(n(92)),s=l(n(222)),a=n(863);function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return $("body").find(".tooltip.fade.top.in").remove(),$(".textarea-ft").css({height:$(".content-log-box").height()-t+"px"})},u="";e.default={name:"log",data:function(){return{store:o.default,router:s.default,isLog:!1,stateId:$("#"+this.item.id).attr("data-state-id")||null,isScreen:!1,loadingIndex:0,isData:!0,loading:!1}},props:{item:{type:Object,default:{}},source:{type:String,default:"from"},logId:Number},methods:{_refreshLog:function(){var t=this;this.loading=!0,this.store.dispatch("dag/getLog",this._rtParam).then(function(e){setTimeout(function(){t.loading=!1,e.data?t.$message.success(""+r.default.$t("Update log success")):t.$message.warning(""+r.default.$t("No more logs"))},1500),c().html("").text(e.data||""+r.default.$t("No log"))}).catch(function(e){t.$message.error(e.msg||""),t.loading=!1})},_ckLog:function(){var t=this;this.isLog=!0,this.store.dispatch("dag/getLog",this._rtParam).then(function(e){t.$message.destroy(),e.data?(t.isData=!0,u=e.data,c().html("").text(u||""+r.default.$t("No log")),setTimeout(function(){$("#textarea").scrollTop(2)},800)):(t.isData=!1,setTimeout(function(){t.$message.warning(""+r.default.$t("No more logs"))},1e3),c().html("").text(u||""+r.default.$t("No log")))}).catch(function(e){t.$message.destroy(),t.$message.error(e.msg||"")})},_screenOpen:function(){this.isScreen=!0;var t=$(".log-box"),e=$(window).width()-40,n=$(window).height()-40;t.css({width:e,height:n,marginLeft:"-"+parseInt(e/2)+"px",marginTop:"-"+parseInt(n/2)+"px"}),t.find(".content").animate({scrollTop:0},0),c().html("").text(u)},_screenClose:function(){this.isScreen=!1;var t=$(".log-box");t.attr("style",""),t.find(".content").animate({scrollTop:0},0),c().html("").text(u)},_downloadLog:function(){(0,a.downloadFile)("/escheduler/log/download-log",{taskInstId:this.stateId||this.logId})},_onUp:i.default.debounce(function(){this.loadingIndex=this.loadingIndex-1,this._ckLog()},1e3,{leading:!1,trailing:!0}),_onDown:i.default.debounce(function(){this.loadingIndex=this.loadingIndex+1,this._ckLog()},1e3,{leading:!1,trailing:!0}),_onTextareaScroll:function(){var t=this;$("#textarea-log").scroll(function(){var e=$(this);e.scrollTop()+e.height()===e.height()&&t.loadingIndex>0&&(t.$message.loading({content:""+r.default.$t("Loading Log..."),duration:0,closable:!1}),t._onUp()),e.get(0).scrollHeight===e.height()+e.scrollTop()&&t.isData&&(t.$message.loading({content:""+r.default.$t("Loading Log..."),duration:0,closable:!1}),t._onDown())})},close:function(){$("body").find(".tooltip.fade.top.in").remove(),this.isScreen=!1,this.isLog=!1,u="",this.$emit("close")}},watch:{},created:function(){"list"===this.source&&(this.$message.loading({content:""+r.default.$t("Loading Log..."),duration:0,closable:!1}),this._ckLog())},mounted:function(){this._onTextareaScroll()},updated:function(){},computed:{_rtParam:function(){return{taskInstId:this.stateId||this.logId,skipLineNum:parseInt(""+(this.loadingIndex?this.loadingIndex+"0000":0)),limit:parseInt((this.loadingIndex?this.loadingIndex+1:1)+"0000")}}},components:{}}},869:function(t,e){},870:function(t,e,n){(function(t){"use strict";var e="CodeMirror-hint",n="CodeMirror-hint-active";function i(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var i={hint:e};if(n)for(var r in n)i[r]=n[r];return t.showHint(i)},t.defineExtension("showHint",function(e){e=function(t,e,n){var i=t.options.hintOptions,r={};for(var o in u)r[o]=u[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);r.hint.resolve&&(r.hint=r.hint.resolve(t,e));return r}(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var r=0;rd.clientHeight+1,L=l.getScrollInfo();if(P>0){var E=k.bottom-k.top;if(b.top-(b.bottom-k.top)-E>0)d.style.top=(x=b.top-E)+"px",_=!1;else if(E>C){d.style.height=C-5+"px",d.style.top=(x=b.bottom-k.top)+"px";var D=l.getCursor();r.from.ch!=D.ch&&(b=l.cursorCoords(D),d.style.left=(y=b.left)+"px",k=d.getBoundingClientRect())}}var T,I=k.right-w;if(I>0&&(k.right-k.left>w&&(d.style.width=w-5+"px",I-=k.right-k.left-w),d.style.left=(y=b.left-I)+"px"),S)for(var M=d.firstChild;M;M=M.nextSibling)M.style.paddingRight=l.display.nativeBarWidth+"px";(l.addKeyMap(this.keyMap=function(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var i=t.options.customKeys,r=i?{}:n;function o(t,i){var o;o="string"!=typeof i?function(t){return i(t,e)}:n.hasOwnProperty(i)?n[i]:i,r[t]=o}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var a=t.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return r}(i,{moveFocus:function(t,e){o.changeActive(o.selectedHint+t,e)},setFocus:function(t){o.changeActive(t)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){i.close()},pick:function(){o.pick()},data:r})),i.options.closeOnUnfocus)&&(l.on("blur",this.onBlur=function(){T=setTimeout(function(){i.close()},100)}),l.on("focus",this.onFocus=function(){clearTimeout(T)}));return l.on("scroll",this.onScroll=function(){var t=l.getScrollInfo(),e=l.getWrapperElement().getBoundingClientRect(),n=x+L.top-t.top,r=n-(u.pageYOffset||(c.documentElement||c.body).scrollTop);if(_||(r+=d.offsetHeight),r<=e.top||r>=e.bottom)return i.close();d.style.top=n+"px",d.style.left=y+L.left-t.left+"px"}),t.on(d,"dblclick",function(t){var e=a(d,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),o.pick())}),t.on(d,"click",function(t){var e=a(d,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),i.options.completeOnSingleClick&&o.pick())}),t.on(d,"mousedown",function(){setTimeout(function(){l.focus()},20)}),t.signal(r,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function c(t,e,n,i){if(t.async)t(e,i,n);else{var r=t(e,n);r&&r.then?r.then(i):i(r)}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var i=e.list[n];i.hint?i.hint(this.cm,e,i):this.cm.replaceRange(s(i),i.from||e.from,i.to||e.to,"complete"),t.signal(e,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var t=this.cm.getCursor(),e=this.cm.getLine(t.line);if(t.line!=this.startPos.line||e.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?e=i?this.data.list.length-1:0:e<0&&(e=i?0:this.data.list.length-1),this.selectedHint!=e){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+n,"")),(r=this.hints.childNodes[this.selectedHint=e]).className+=" "+n,r.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:function(e,n){var i,r=e.getHelpers(n,"hint");if(r.length){var o=function(t,e,n){var i=function(t,e){if(!t.somethingSelected())return e;for(var n=[],i=0;i0?e(t):r(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:i})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}}),t.registerHelper("hint","fromList",function(e,n){var i,r=e.getCursor(),o=e.getTokenAt(r),s=t.Pos(r.line,o.start),a=r;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)})(n(706))},871:function(t,e,n){(function(t){"use strict";var e,n,i,r,o={QUERY_DIV:";",ALIAS_KEYWORD:"AS"},s=t.Pos,a=t.cmpPos;function l(t){return"[object Array]"==Object.prototype.toString.call(t)}function c(t){return"string"==typeof t?t:t.text}function u(t,e){return l(e)&&(e={columns:e}),e.text||(e.text=t),e}function d(t){return e[t.toUpperCase()]}function h(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function p(t,e){var n=t.length,i=c(e).substr(0,n);return t.toUpperCase()===i.toUpperCase()}function f(t,e,n,i){if(l(n))for(var r=0;r0)&&a(m,u[g])<=0){h={start:f,end:u[g]};break}f=u[g]}if(h.start){var b=n.getRange(h.start,h.end,!1);for(g=0;g=0;n--){var i=t[n];e[c(i).toUpperCase()]=u(c(i),i)}else if(t)for(var r in t)e[r.toUpperCase()]=u(r,t[r]);return e}(a&&a.tables);var p=a&&a.defaultTable,v=a&&a.disableKeywords;n=p&&d(p),i=function(e){var n=e.doc.modeOption;return"sql"===n&&(n="text/x-sql"),t.resolveMode(n).keywords}(o),r=function(e){var n=e.doc.modeOption;return"sql"===n&&(n="text/x-sql"),t.resolveMode(n).identifierQuote||"`"}(o),p&&!n&&(n=b(p,o)),(n=n||[]).columns&&(n=n.columns);var y,x,_,w=o.getCursor(),C=[],k=o.getTokenAt(w);if(k.end>w.ch&&(k.end=w.ch,k.string=k.string.slice(0,w.ch-k.start)),k.string.match(/^[.`"\w@]\w*$/)?(_=k.string,y=k.start,x=k.end):(y=x=w.ch,_=""),"."==_.charAt(0)||_.charAt(0)==r)y=function(t,i,o,a){for(var l=!1,c=[],u=i.start,p=!0;p;)p="."==i.string.charAt(0),l=l||i.string.charAt(0)==r,u=i.start,c.unshift(m(i.string)),"."==(i=a.getTokenAt(s(t.line,i.start))).string&&(p=!0,i=a.getTokenAt(s(t.line,i.start)));var v=c.join(".");f(o,v,e,function(t){return l?g(t):t}),f(o,v,n,function(t){return l?g(t):t}),v=c.pop();var y=c.join("."),x=!1,_=y;if(!d(y)){var w=y;(y=b(y,a))!==w&&(x=!0)}var C=d(y);return C&&C.columns&&(C=C.columns),C&&f(o,v,C,function(t){var e=y;return 1==x&&(e=_),"string"==typeof t?t=e+"."+t:(t=h(t)).text=e+"."+t.text,l?g(t):t}),u}(w,k,C,o);else{var P=function(t,e){return"object"==typeof t?t.className=e:t={text:t,className:e},t};f(C,_,n,function(t){return P(t,"CodeMirror-hint-table CodeMirror-hint-default-table")}),f(C,_,e,function(t){return P(t,"CodeMirror-hint-table")}),v||f(C,_,i,function(t){return P(t.toUpperCase(),"CodeMirror-hint-keyword")})}return{list:C,from:s(w.line,y),to:s(w.line,x)}})})(n(706),n(852))},872:function(t,e,n){(function(t){"use strict";var e=t.Pos;function n(t,e,n){return n?t.indexOf(e)>=0:0==t.lastIndexOf(e,0)}t.registerHelper("hint","xml",function(i,r){var o=r&&r.schemaInfo,s=r&&r.quoteChar||'"',a=r&&r.matchInMiddle;if(o){var l=i.getCursor(),c=i.getTokenAt(l);c.end>l.ch&&(c.end=l.ch,c.string=c.string.slice(0,l.ch-c.start));var u=t.innerMode(i.getMode(),c.state);if("xml"==u.mode.name){var d,h,p=[],f=!1,m=/\btag\b/.test(c.type)&&!/>$/.test(c.string),g=m&&/^\w/.test(c.string);if(g){var v=i.getLine(l.line).slice(Math.max(0,c.start-2),c.start),b=/<\/$/.test(v)?"close":/<$/.test(v)?"open":null;b&&(h=c.start-("close"==b?2:1))}else m&&"<"==c.string?b="open":m&&"")}else{var k=(x=o[u.state.tagName])&&x.attrs,P=o["!attrs"];if(!k&&!P)return;if(k){if(P){var S={};for(var L in P)P.hasOwnProperty(L)&&(S[L]=P[L]);for(var L in k)k.hasOwnProperty(L)&&(S[L]=k[L]);k=S}}else k=P;if("string"==c.type||"="==c.string){var E,D=(v=i.getRange(e(l.line,Math.max(0,l.ch-60)),e(l.line,"string"==c.type?c.start:c.end))).match(/([^\s\u00a0=<>\"\']+)=$/);if(!D||!k.hasOwnProperty(D[1])||!(E=k[D[1]]))return;if("function"==typeof E&&(E=E.call(this,i)),"string"==c.type){d=c.string;var T=0;/['"]/.test(c.string.charAt(0))&&(s=c.string.charAt(0),d=c.string.slice(1),T++);var I=c.string.length;/['"]/.test(c.string.charAt(I-1))&&(s=c.string.charAt(I-1),d=c.string.substr(T,I-2)),f=!0}for(w=0;w=]+|\/\/=?|\*\*=?|!=|[~!@])/],d=0;di?w(e):r0&&C(t,e)&&(s+=" "+l),s}return _(t,e)}function _(t,e){if(t.eatSpace())return null;if(t.match(/^#.*/))return"comment";if(t.match(/^[0-9\.]/,!1)){var i=!1;if(t.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),t.match(/^[\d_]+\.\d*/)&&(i=!0),t.match(/^\.\d+/)&&(i=!0),i)return t.eat(/J/i),"number";var r=!1;if(t.match(/^0x[0-9a-f_]+/i)&&(r=!0),t.match(/^0b[01_]+/i)&&(r=!0),t.match(/^0o[0-7_]+/i)&&(r=!0),t.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(t.eat(/J/i),r=!0),t.match(/^0(?![\dx])/i)&&(r=!0),r)return t.eat(/L/i),"number"}if(t.match(v))return-1!==t.current().toLowerCase().indexOf("f")?(e.tokenize=function(t,e){for(;"rubf".indexOf(t.charAt(0).toLowerCase())>=0;)t=t.substr(1);var n=1==t.length,i="string";function r(t){return function(e,n){var i=_(e,n);return"punctuation"==i&&("{"==e.current()?n.tokenize=r(t+1):"}"==e.current()&&(n.tokenize=t>1?r(t-1):o)),i}}function o(o,s){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return i}else{if(o.match(t))return s.tokenize=e,i;if(o.match("{{"))return i;if(o.match("{",!1))return s.tokenize=r(0),o.current()?i:s.tokenize(o,s);if(o.match("}}"))return i;if(o.match("}"))return l;o.eat(/['"]/)}if(n){if(a.singleLineStringErrors)return l;s.tokenize=e}return i}return o.isString=!0,o}(t.current(),e.tokenize),e.tokenize(t,e)):(e.tokenize=function(t,e){for(;"rubf".indexOf(t.charAt(0).toLowerCase())>=0;)t=t.substr(1);var n=1==t.length,i="string";function r(r,o){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),n&&r.eol())return i}else{if(r.match(t))return o.tokenize=e,i;r.eat(/['"]/)}if(n){if(a.singleLineStringErrors)return l;o.tokenize=e}return i}return r.isString=!0,r}(t.current(),e.tokenize),e.tokenize(t,e));for(var o=0;o1&&o(e).offset>n;){if("py"!=o(e).type)return!0;e.scopes.pop()}return o(e).offset!=n}function k(t,e){t.sol()&&(e.beginningOfLine=!0);var n=e.tokenize(t,e),i=t.current();if(e.beginningOfLine&&"@"==i)return t.match(g,!1)?"meta":m?"operator":l;if(/\S/.test(i)&&(e.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=e.lastToken||(n="meta"),"pass"!=i&&"return"!=i||(e.dedent+=1),"lambda"==i&&(e.lambda=!0),":"!=i||e.lambda||"py"!=o(e).type||w(e),1==i.length&&!/string|comment/.test(n)){var r="[({".indexOf(i);if(-1!=r&&function(t,e,n){var i=t.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:t.column()+1;e.scopes.push({offset:e.indent+h,type:n,align:i})}(t,e,"])}".slice(r,r+1)),-1!=(r="])}".indexOf(i))){if(o(e).type!=i)return l;e.indent=e.scopes.pop().offset-h}}return e.dedent>0&&t.eol()&&"py"==o(e).type&&(e.scopes.length>1&&e.scopes.pop(),e.dedent-=1),n}return{startState:function(t){return{tokenize:x,scopes:[{offset:t||0,type:"py",align:null}],indent:t||0,lastToken:null,lambda:!1,dedent:0}},token:function(t,e){var n=e.errorToken;n&&(e.errorToken=!1);var i=k(t,e);return i&&"comment"!=i&&(e.lastToken="keyword"==i||"punctuation"==i?t.current():i),"punctuation"==i&&(i=null),t.eol()&&e.lambda&&(e.lambda=!1),n?i+" "+l:i},indent:function(e,n){if(e.tokenize!=x)return e.tokenize.isString?t.Pass:0;var i=o(e),r=i.type==n.charAt(0);return null!=i.align?i.align-(r?1:0):i.offset-(r?h:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}}),t.defineMIME("text/x-python","python");var s;t.defineMIME("text/x-cython",{name:"python",extra_keywords:(s="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",s.split(" "))})})(n(706))},874:function(t,e,n){(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(i,r){var o,s,a=i.indentUnit,l={},c=r.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function d(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();return"<"==i?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,i){for(var r;null!=(r=n.next());){if("<"==r)return i.tokenize=t(e+1),i.tokenize(n,i);if(">"==r){if(1==e){i.tokenize=d;break}return i.tokenize=t(e-1),i.tokenize(n,i)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==i?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,e){var n,i,r=t.next();if(">"==r||"/"==r&&t.eat(">"))return e.tokenize=d,o=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return o="equals",null;if("<"==r){e.tokenize=d,e.state=g,e.tagName=e.tagStart=null;var s=e.tokenize(t,e);return s?s+" tag error":"tag error"}return/[\'\"]/.test(r)?(e.tokenize=(n=r,(i=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=h;break}return"string"}).isInAttribute=!0,i),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=d;break}n.next()}return t}}function f(t){t.context&&(t.context=t.context.prev)}function m(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(e))return;f(t)}}function g(t,e,n){return"openTag"==t?(n.tagStart=e.column(),v):"closeTag"==t?b:g}function v(t,e,n){return"word"==t?(n.tagName=e.current(),s="tag",_):l.allowMissingTagName&&"endTag"==t?(s="tag bracket",_(t,e,n)):(s="error",v)}function b(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(s="tag",y):(s="tag error",x)}return l.allowMissingTagName&&"endTag"==t?(s="tag bracket",y(t,e,n)):(s="error",x)}function y(t,e,n){return"endTag"!=t?(s="error",y):(f(n),g)}function x(t,e,n){return s="error",y(t,0,n)}function _(t,e,n){if("word"==t)return s="attribute",w;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(i)?m(n,i):(m(n,i),n.context=new function(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}(n,i,r==n.indented)),g}return s="error",_}function w(t,e,n){return"equals"==t?C:(l.allowMissing||(s="error"),_(t,0,n))}function C(t,e,n){return"string"==t?k:"word"==t&&l.allowUnquoted?(s="string",_):(s="error",_(t,0,n))}function k(t,e,n){return"string"==t?k:_(t,0,n)}return d.isInText=!0,{startState:function(t){var e={tokenize:d,state:g,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(s=null,e.state=e.state(o||n,t,e),s&&(n="error"==s?n+" error":s)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=h&&e.tokenize!=d)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=_)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})(n(706))},875:function(t,e,n){(function(t){"use strict";var e={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function n(t,n,o){if("_"===o)return t.eat("_")?i(t,n,"italic",/__/,2):i(t,n,"em",/_/,1);if("*"===o)return t.eat("*")?i(t,n,"bold",/\*\*/,2):i(t,n,"strong",/\*/,1);if("["===o)return t.match(/\d+\]/)&&(n.footCite=!0),r(n);if("("===o&&t.match(/^(r|tm|c)\)/))return s(n,e.specialChar);if("<"===o&&t.match(/(\w+)[^>]+>[^<]+<\/\1>/))return s(n,e.html);if("?"===o&&t.eat("?"))return i(t,n,"cite",/\?\?/,2);if("="===o&&t.eat("="))return i(t,n,"notextile",/==/,2);if("-"===o&&!t.eat("-"))return i(t,n,"deletion",/-/,1);if("+"===o)return i(t,n,"addition",/\+/,1);if("~"===o)return i(t,n,"sub",/~/,1);if("^"===o)return i(t,n,"sup",/\^/,1);if("%"===o)return i(t,n,"span",/%/,1);if("@"===o)return i(t,n,"code",/@/,1);if("!"===o){var a=i(t,n,"image",/(?:\([^\)]+\))?!/,1);return t.match(/^:\S+/),a}return r(n)}function i(t,e,n,i,o){var s=t.pos>o?t.string.charAt(t.pos-o-1):null,a=t.peek();if(e[n]){if((!a||/\W/.test(a))&&s&&/\S/.test(s)){var l=r(e);return e[n]=!1,l}}else(!s||/\W/.test(s))&&a&&/\S/.test(a)&&t.match(new RegExp("^.*\\S"+i.source+"(?:\\W|$)"),!1)&&(e[n]=!0,e.mode=u.attributes);return r(e)}function r(t){var n=o(t);if(n)return n;var i=[];return t.layoutType&&i.push(e[t.layoutType]),i=i.concat(function(t){for(var n=[],i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,c("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,c("allAttributes")),"+\\.");case"type":return l.makeRe("^",c("allTypes"));case"typeLayout":return l.makeRe("^",c("allTypes"),c("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",c("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[t])}},makeRe:function(){for(var t="",e=0;e1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),c(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function c(t,n){return(n.tokens[0]||function(t,n){if(t.eatSpace())return null;var i=t.sol(),r=t.next();if("\\"===r)return t.next(),null;if("'"===r||'"'===r||"`"===r)return n.tokens.unshift(s(r,"`"===r?"quote":"string")),c(t,n);if("#"===r)return i&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if("$"===r)return n.tokens.unshift(l),c(t,n);if("+"===r||"="===r)return"operator";if("-"===r)return t.eat("-"),t.eatWhile(/\w/),"attribute";if(/\d/.test(r)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var o=t.current();return"="===t.peek()&&/\w+/.test(o)?"def":e.hasOwnProperty(o)?e[o]:null})(t,n)}return{startState:function(){return{tokens:[]}},token:function(t,e){return c(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")})(n(706))},877:function(t,e){},878:function(t,e){},881:function(t,e,n){var i=n(882);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("3e1a73c7",i,!0,{})},882:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".email-model{width:100%}.email-model .input-element{min-height:32px;padding:1px 8px}.email-model .input-element .tag-wrapper{display:inline-block;height:22px;margin:3px 8px 3px 0;padding:0 10px;background:#ebf8ff;border-radius:2px;cursor:default}.email-model .input-element .tag-wrapper.active{background:#e2eff9}.email-model .input-element .tag-wrapper .tag-text{margin-right:8px;font-size:12px;line-height:22px;color:#666;cursor:text}.email-model .input-element .tag-wrapper .remove-tag{font-size:12px;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);color:#666;cursor:pointer}.email-model .input-element .tag-wrapper .remove-tag:hover{color:#000}.email-model .input-element .label-wrapper{margin-left:-6px}.email-model .input-element .label-wrapper input{height:29px;line-height:29px;border:0;padding-left:4px}.email-model .input-element.disabled .tag-wrapper{background:#d9d9d9}.email-model .input-element.disabled .email-input{background:none}.email-list-model{margin:-10px -13px}.email-list-model .ans-scroller{width:230px;overflow-y:scroll}.email-list-model .ans-scroller .default-option-class{width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-list-model .ans-option .default-option-class.active{background:#ebf8ff}",""])},883:function(t,e,n){"use strict";e.__esModule=!0,e.default=["test@analysys.com.cn"]},884:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ans-input email-model"},[n("div",{staticClass:"clearfix input-element",class:t.disabled?"disabled":""},[t._l(t.activeList,function(e,i){return n("span",{staticClass:"tag-wrapper",class:t.activeIndex===i?"active":""},[n("span",{staticClass:"tag-text"},[t._v(t._s(e))]),t._v(" "),t.disabled?t._e():n("i",{staticClass:"remove-tag ans-icon-close",on:{click:function(e){return e.stopPropagation(),t._del(i)}}})])}),t._v(" "),n("x-poptip",{attrs:{placement:"bottom-start","append-to-body":!0,"visible-arrow":!1,trigger:"manual"},model:{value:t.isEmail,callback:function(e){t.isEmail=e},expression:"isEmail"}},[n("div",{staticClass:"email-list-model"},[n("div",{staticClass:"ans-scroller",staticStyle:{"max-height":"300px"}},[n("div",{staticClass:"scroll-area-wrapper scroll-transition"},[n("ul",{staticClass:"dropdown-container"},t._l(t.emailList,function(e,i){return n("li",{staticClass:"ans-option",on:{click:function(e){return e.stopPropagation(),t._selectEmail(i+1)}}},[n("span",{staticClass:"default-option-class",class:t.index===i+1?"active":""},[t._v(t._s(e))])])}),0)])])]),t._v(" "),n("span",{staticClass:"label-wrapper",attrs:{slot:"reference"},slot:"reference"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],ref:"emailInput",staticClass:"email-input",style:{width:t.emailWidth+"px"},attrs:{type:"text",disabled:t.disabled,placeholder:t.$t("Please enter email")},domProps:{value:t.email},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t._emailTab(e)},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t._emailDelete(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t._emailEnter(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t._emailKeyup("up")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t._emailKeyup("down")}],input:function(e){e.target.composing||(t.email=e.target.value)}}})])])],2)])},staticRenderFns:[]};e.a=i},885:function(t,e,n){var i=n(886);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("0d88a9d3",i,!0,{})},886:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".priority-model{display:inline-block}.priority-model .ans-option-listp>span{font-weight:400}.priority-model .ans-option-listp>span>.iconfont{padding-right:2px}.priority-model .ans-input .input-element{cursor:pointer;height:32px;line-height:30px;position:relative;font-weight:400}.priority-model .ans-input .input-element .ans-icon-arrow-down{position:absolute;right:8px;top:0;font-size:12px;color:#888;cursor:pointer}.priority-model .ans-input .input-element span{vertical-align:middle}.priority-model .ans-input .input-element span.label-p{margin-top:-4px;display:inline-block}",""])},887:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"priority-model"},[n("x-select",{staticStyle:{width:"130px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChange},scopedSlots:t._u([{key:"trigger",fn:function(e){var i=e.selectedModel;return n("div",{staticClass:"ans-input"},[n("div",{staticClass:"input-element",class:t.isDetails?"disabled":""},[n("span",{domProps:{innerHTML:t._s(t._rtUnicode(i?i.label:"MEDIUM"))}}),t._v(" "),n("span",{staticClass:"label-p"},[t._v(t._s(i?i.label:"MEDIUM"))]),t._v(" "),n("i",{staticClass:"ans-icon-arrow-down"})])])}}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[t._v(" "),t._l(t.priorityList,function(e){return n("x-option",{key:e.code,attrs:{value:e.code,label:e.code}},[n("li",{staticClass:"ans-option ans-option-listp"},[n("span",{staticClass:"default-option-class"},[n("i",{staticClass:"iconfont",style:{color:e.color},domProps:{innerHTML:t._s(e.unicode)}}),t._v("\n "+t._s(e.code)+"\n ")])])])})],2)],1)},staticRenderFns:[]};e.a=i},888:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-select",{staticStyle:{width:"180px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChange},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.workerGroupsList,function(t){return n("x-option",{key:t.id,attrs:{value:t.id,label:t.name}})}),1)},staticRenderFns:[]};e.a=i},893:function(t,e,n){"use strict";e.__esModule=!0;var i=m(n(30)),r=m(n(945)),o=m(n(948)),s=m(n(36)),a=n(866),l=n(857),c=n(225),u=m(n(959)),d=n(229),h=n(126),p=m(n(677)),f=n(123);function m(t){return t&&t.__esModule?t:{default:t}}var g=void 0;e.default={name:"dag-chart",data:function(){return{tasksTypeList:c.tasksType,toolOperList:(0,c.toolOper)(this),dagBarId:null,toolOperCode:"",spinnerLoading:!1,urlParam:{id:this.$route.params.id||null},isRtTasks:!1,isRefresh:!1,isLoading:!1,taskId:null}},mixins:[p.default],props:{type:String,releaseState:String},methods:Object.assign({},(0,f.mapActions)("dag",["saveDAGchart","updateInstance","updateDefinition","getTaskState"]),(0,f.mapMutations)("dag",["addTasks","resetParams","setIsEditDag","setName"]),{init:function(){var t=this;this.tasks.length?(r.default.backfill(),"instance"===this.type&&(this._getTaskState(!1).then(function(t){}),this.setIntervalP=setInterval(function(){t._getTaskState(!0).then(function(t){})},9e4))):r.default.create()},_getTaskState:function(t){var e=this;return new Promise(function(n,r){e.getTaskState(e.urlParam.id).then(function(r){var o=r.list,a=r.processInstanceState,c=r.taskList,u=(0,l.allNodesId)();o.forEach(function(t){u.forEach(function(e){if(e.name===t.name){var n=$("#"+e.id),r=n.find(".state-p");n.attr("data-state-id",t.stateId),n.attr("data-dependent-result",t.dependentResult||""),r.html(""),r.append(''+t.icoUnicode+""),r.find("b").attr("title",(o=e,a=t.desc,l=i.default.filter(c,function(t){return t.name===o.name})[0],'
'+s.default.$t("Name")+":"+l.name+"
"+s.default.$t("State")+":"+a+"
"+s.default.$t("type")+":"+l.taskType+"
"+s.default.$t("host")+":"+(l.host||"-")+"
"+s.default.$t("Retry Count")+":"+l.retryTimes+"
"+s.default.$t("Submit Time")+":"+(0,d.formatDate)(l.submitTime)+"
"+s.default.$t("Start Time")+":"+(0,d.formatDate)(l.startTime)+"
"+s.default.$t("End Time")+":"+(l.endTime?(0,d.formatDate)(l.endTime):"-")+"
"))}var o,a,l})}),"PAUSE"!==a&&"STOP"!==a&&"FAILURE"!==a&&"SUCCESS"!==e.state||t&&(0,h.findComponentDownward)(e.$root,e.type+"-details")._reset(),n()})})},_getDagId:function(t){this.isDetails||(this.dagBarId=t)},_ckOperation:function(t){var e=!0,n="";t.disable&&(this.toolOperCode===t.code?(this.toolOperCode="",n=t.code,e=!1):(this.toolOperCode=t.code,n=this.toolOperCode,e=!0),r.default.toolbarEvent({item:t,code:n,is:e}))},_operationClass:function(t){return t.disable?this.toolOperCode===t.code?"active":"":"disable"},_save:function(t){var e=this;return new Promise(function(n,i){e.spinnerLoading=!0,r.default.saveStore().then(function(r){e.urlParam.id?e["instance"===e.type?"updateInstance":"updateDefinition"](e.urlParam.id).then(function(t){e.$message.success(t.msg),e.spinnerLoading=!1,n()}).catch(function(t){e.$message.error(t.msg||""),e.spinnerLoading=!1,i(t)}):e.saveDAGchart().then(function(i){e.$message.success(i.msg),e.spinnerLoading=!1,"affirm"!==t&&e.$router.push({name:"projects-definition-list"}),n()}).catch(function(t){e.$message.error(t.msg||""),e.setName(""),e.spinnerLoading=!1,i(t)})})})},_udpTopFloorPop:function(){var t=this;return new Promise(function(e,n){var i=t.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(t){return t(o.default,{on:{onUdp:function(){i.remove(),e()},close:function(){i.remove()}}})}})})},_saveChart:function(){var t=this;this.tasks.length?this._udpTopFloorPop().then(function(){return t._save()}):this.$message.warning(""+s.default.$t("Failed to create node to save"))},_rtNodesDag:function(){var t=this.$route.query.subProcessIds.split(","),e=t.slice(0,t.length-1),n=t[t.length-1],i={};n!==t[0]&&(i={subProcessIds:e.join(",")});var r=this.$route.name.split("-");this.$router.push({path:"/"+r[0]+"/"+r[1]+"/list/"+n,query:i})},_subProcessHandle:function(t){var e=[],n=this.$route.query.subProcessIds;if(n){var i=n.split(",");i.push(this.urlParam.id),e=i}else e.push(this.urlParam.id);var r=this.$route.name.split("-");this.$router.push({path:"/"+r[0]+"/"+r[1]+"/list/"+t,query:{subProcessIds:e.join(",")}})},_refresh:function(){var t=this;this.isRefresh=!0,this._getTaskState(!1).then(function(e){setTimeout(function(){t.isRefresh=!1,t.$message.success(""+s.default.$t("Refresh status succeeded"))},2200)})},_toggleView:function(){(0,h.findComponentDownward)(this.$root,"assist-dag-index")._toggleView()},_createNodes:function(t){var e=t.id,n=t.type,i=this;g&&g.remove();var r=function(t){t.$destroy(),g.remove()};this.taskId=e,g=this.$drawer({closable:!1,direction:"right",escClose:!0,render:function(t){return t(u.default,{on:{addTaskInfo:function(t){var e=t.item,n=t.fromThis;i.addTasks(e),setTimeout(function(){r(n)},100)},close:function(t){var n=t.flag,i=t.fromThis;n&&a.jsPlumb.remove(e),r(i)},onSubProcess:function(t){var e=t.subProcessId,n=t.fromThis;r(n),i._subProcessHandle(e)}},props:{id:e,taskType:n||i.dagBarId,self:i}})}})}}),watch:{tasks:{deep:!0,handler:function(t){this.setIsEditDag(!0)}}},created:function(){this.setIsEditDag(!1),this.$route.query.subProcessIds&&(this.isRtTasks=!0),r.default.init({dag:this,instance:a.jsPlumb.getInstance({Endpoint:["Dot",{radius:1,cssClass:"dot-style"}],Connector:"Straight",PaintStyle:{lineWidth:2,stroke:"#456"},ConnectionOverlays:[["Arrow",{location:1,id:"arrow",length:12,foldback:.8}]],Container:"canvas"})})},mounted:function(){this.init()},beforeDestroy:function(){this.resetParams(),clearInterval(this.setIntervalP)},destroyed:function(){},computed:Object.assign({},(0,f.mapState)("dag",["tasks","locations","connects","isEditDag","name"])),components:{}}},894:function(t,e,n){"use strict";e.__esModule=!0;var i=m(n(24)),r=m(n(71)),o=m(n(30)),s=m(n(36)),a=n(866),l=m(n(946)),c=m(n(92)),u=m(n(222)),d=m(n(124)),h=n(126),p=n(857),f=m(n(917));function m(t){return t&&t.__esModule?t:{default:t}}var g=function(){this.dag={},this.selectedElement={},this.config={isDrag:!0,isAttachment:!1,isNewNodes:!0,isDblclick:!0,isContextmenu:!0,isClick:!1}};g.prototype.init=function(t){var e=this,n=t.dag,i=t.instance;this.dag=n,this.JspInstance=i,this.JspInstance.registerConnectionType("basic",{anchor:"Continuous",connector:"Straight"}),this.setConfig({isDrag:!c.default.state.dag.isDetails,isAttachment:!1,isNewNodes:!1!==d.default.getAuth()&&!c.default.state.dag.isDetails,isDblclick:!0,isContextmenu:!0,isClick:!1}),this.JspInstance.bind("click",function(t){e.config.isClick&&e.connectClick(t)}),this.config.isNewNodes&&l.default.init()},g.prototype.setConfig=function(t){this.config=Object.assign(this.config,{},t)},g.prototype.tasksEvent=function(t){var e=this,n=(0,r.default)("#"+t);n.on("contextmenu",function(t){return e.tasksContextmenu(t),!1}),n.find(".icos").bind("dblclick",function(t){e.tasksDblclick(t)}),n.on("click",function(t){e.tasksClick(t)})},g.prototype.draggable=function(){if(this.config.isNewNodes){var t=void 0,e=this;(0,r.default)(".toolbar-btn .roundedRect").draggable({scope:"plant",helper:"clone",containment:(0,r.default)(".dag-model"),stop:function(n,i){e.tasksEvent(t),(0,r.default)("#"+t).html()&&(0,h.findComponentDownward)(e.dag.$root,"dag-chart")._createNodes({id:t})},drag:function(){(0,r.default)("body").find(".tooltip.fade.top.in").remove()}}),(0,r.default)("#canvas").droppable({scope:"plant",drop:function(n,i){var o="tasks-"+Math.ceil(1e5*Math.random()),s=parseInt(i.offset.left-(0,r.default)(this).offset().left),l=parseInt(i.offset.top-(0,r.default)(this).offset().top)-10;l<25&&(l=25),(0,r.default)("#canvas").append((0,p.rtTasksTpl)({id:o,name:o,x:s,y:l,isAttachment:e.config.isAttachment,taskType:(0,h.findComponentDownward)(e.dag.$root,"dag-chart").dagBarId}));var c=a.jsPlumb.getSelector(".statemachine-demo .w");e.JspInstance.batch(function(){e.initNode(c[c.length-1])}),t=o}})}},g.prototype.jsonHandle=function(t){var e=this,n=t.largeJson,i=t.locations;o.default.map(n,function(t){(0,r.default)("#canvas").append((0,p.rtTasksTpl)({id:t.id,name:t.name,x:i[t.id].x,y:i[t.id].y,targetarr:i[t.id].targetarr,isAttachment:e.config.isAttachment,taskType:t.type,runFlag:t.runFlag})),(0,r.default)("#"+t.id).on("contextmenu",function(t){return e.tasksContextmenu(t),!1}),(0,r.default)("#"+t.id).find(".icos").bind("dblclick",function(t){e.tasksDblclick(t)}),(0,r.default)("#"+t.id).bind("click",function(t){e.tasksClick(t)})})},g.prototype.initNode=function(t){this.config.isDrag&&this.JspInstance.draggable(t,{containment:"dag-container"}),this.JspInstance.makeSource(t,{filter:".ep",anchor:"Continuous",connectorStyle:{stroke:"#555",strokeWidth:2,outlineStroke:"transparent",outlineWidth:4},extract:{action:"the-action"},maxConnections:-1}),this.JspInstance.makeTarget(t,{dropOptions:{hoverClass:"dragHover"},anchor:"Continuous",allowLoopback:!1}),this.JspInstance.fire("jsPlumbDemoNodeAdded",t)},g.prototype.tasksContextmenu=function(t){var e=this;if(this.config.isContextmenu){var n="projects-definition-details"===u.default.history.current.name&&"NOT_RELEASE"!==this.dag.releaseState,o=c.default.state.dag.isDetails,a=[''+s.default.$t("Start")+"",''+s.default.$t("Edit")+"",''+s.default.$t("Copy")+"",''+s.default.$t("Delete")+""],l=t,d=l.currentTarget.id,p=(0,r.default)("#contextmenu"),m=(0,r.default)("#"+d).find(".name-p").text(),g=l.pageX+document.body.scrollLeft-5,v=l.pageY+document.body.scrollTop-5;p.css({left:g,top:v,visibility:"visible"}),p.html("").append(function(){return a.splice(",")}),n&&(0,r.default)("#startRunning").on("click",function(){var t=u.default.history.current.params.id;c.default.dispatch("dag/getStartCheck",{processDefinitionId:t}).then(function(e){var n=i.default.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(e){return e(f.default,{on:{onUpdate:function(){n.remove()},close:function(){n.remove()}},props:{item:{id:t},startNodeList:m,sourceType:"contextmenu"}})}})}).catch(function(t){i.default.$message.error(t.msg||"")})}),o||((0,r.default)("#editNodes").click(function(t){(0,h.findComponentDownward)(e.dag.$root,"dag-chart")._createNodes({id:d,type:(0,r.default)("#"+d).attr("data-tasks-type")})}),(0,r.default)("#removeNodes").click(function(t){e.removeNodes(d)}),(0,r.default)("#copyNodes").click(function(t){e.copyNodes(d)}))}},g.prototype.tasksDblclick=function(t){if(this.config.isDblclick){var e=(0,r.default)(t.currentTarget.offsetParent).attr("id");(0,h.findComponentDownward)(this.dag.$root,"dag-chart")._createNodes({id:e,type:(0,r.default)("#"+e).attr("data-tasks-type")})}},g.prototype.tasksClick=function(t){var e=void 0,n=this,i=(0,r.default)("body");if(this.config.isClick){var o=this.selectedElement.connect;(0,r.default)(".w").removeClass("jtk-tasks-active"),(0,r.default)(t.currentTarget).addClass("jtk-tasks-active"),o&&((0,p.setSvgColor)(o,"#555"),this.selectedElement.connect=null),this.selectedElement.id=(0,r.default)(t.currentTarget).attr("id"),i.unbind("copy").unbind("paste"),e=n.selectedElement.id,i.bind({copy:function(){e=n.selectedElement.id},paste:function(){e&&n.copyNodes(e)}})}},g.prototype.removePaste=function(){(0,r.default)("body").unbind("copy").unbind("paste"),this.selectedElement.id=null,(0,r.default)(".w").removeClass("jtk-tasks-active")},g.prototype.connectClick=function(t){(0,p.setSvgColor)(t,"#0097e0");var e=this.selectedElement.id;e&&((0,r.default)("#"+e).removeClass("jtk-tasks-active"),this.selectedElement.id=null),this.selectedElement.connect=t},g.prototype.handleEventPointer=function(t){var e=(0,r.default)(".w");this.setConfig({isClick:t,isAttachment:!1}),e.removeClass("jtk-ep"),t||(e.removeClass("jtk-tasks-active"),this.selectedElement={},o.default.map((0,r.default)("#canvas svg"),function(t){(0,r.default)(t).attr("class")&&o.default.map((0,r.default)(t).find("path"),function(t){(0,r.default)(t).attr("fill","#555"),(0,r.default)(t).attr("stroke","#555")})}))},g.prototype.handleEventLine=function(t){var e=(0,r.default)(".w");this.setConfig({isAttachment:t}),t?e.addClass("jtk-ep"):e.removeClass("jtk-ep")},g.prototype.handleEventRemove=function(){var t=this.selectedElement.id||null,e=this.selectedElement.connect||null;t?this.removeNodes(this.selectedElement.id):this.removeConnect(e),c.default.commit("dag/setIsEditDag",!0)},g.prototype.removeNodes=function(t){o.default.map((0,p.tasksAll)(),function(e){var n=e.targetarr.split(",");if(n.length){var i=o.default.filter(n,function(e){return e!==t});(0,r.default)("#"+e.id).attr("data-targetarr",i.toString())}}),this.JspInstance.remove(t)},g.prototype.removeConnect=function(t){if(t){var e=t.targetId,n=t.sourceId,i=(0,p.rtTargetarrArr)(e);i.length&&(i=o.default.filter(i,function(t){return t!==n}),(0,r.default)("#"+e).attr("data-targetarr",i.toString())),this.JspInstance.deleteConnection(t),this.selectedElement={}}},g.prototype.copyNodes=function(t){var e,n=this,i=o.default.cloneDeep(o.default.find(c.default.state.dag.tasks,function(e){return e.id===t})),s=c.default.state.dag.locations[t];if(s){var l=""+((0,h.uuid)()+(0,h.uuid)()),u=i.id.length>8?i.id.substr(0,7):i.id,d=i.name.length>8?i.name.substr(0,7):i.name,f=(u||"")+"-"+l,m=(d||"")+"-"+l,g=s.x+100,v=s.y+40;(0,r.default)("#canvas").append((0,p.rtTasksTpl)({id:f,name:m,x:g,y:v,isAttachment:this.config.isAttachment,taskType:i.type}));var b=a.jsPlumb.getSelector(".statemachine-demo .w");i=Object.assign(i,{id:f,name:m}),c.default.commit("dag/addTasks",i),c.default.commit("dag/setLocations",((e={})[f]={name:m,targetarr:"",x:g,y:v},e)),this.JspInstance.batch(function(){n.initNode(b[b.length-1]),n.tasksEvent(f)})}},g.prototype.handleEventScreen=function(t){var e=t.item,n=!0;t.is?(e.icon="",n=!0):(e.icon="",n=!1);var i=(0,r.default)(".main-layout-model");n?i.addClass("dag-screen"):i.removeClass("dag-screen")},g.prototype.saveStore=function(){var t=this;return new Promise(function(e,n){var i=[],s={},a=[];o.default.map(o.default.cloneDeep(c.default.state.dag.tasks),function(t){if(function(t){return!!o.default.filter((0,p.tasksAll)(),function(e){return e.id===t}).length}(t.id)){var e=[],n=(0,r.default)("#"+t.id),i=n.attr("data-targetarr")?n.attr("data-targetarr").split(","):[];i.length&&o.default.map(i,function(t){e.push((0,r.default)("#"+t).find(".name-p").text())});var s=o.default.assign(t,{preTasks:e});"SUB_PROCESS"===t.type&&(s=o.default.omit(s,["maxRetryTimes","retryInterval"])),a.push(s)}}),o.default.map(t.JspInstance.getConnections(),function(t){i.push({endPointSourceId:t.sourceId,endPointTargetId:t.targetId})}),o.default.map((0,p.tasksAll)(),function(t){s[t.id]={name:t.name,targetarr:t.targetarr,x:t.x,y:t.y}}),c.default.commit("dag/setTasks",a),c.default.commit("dag/setLocations",s),c.default.commit("dag/setConnects",i),e({connects:i,tasks:a,locations:s})})},g.prototype.handleEvent=function(){this.JspInstance.bind("beforeDrop",function(t){var e=t.sourceId,n=t.targetId,i=void 0;return-1===o.default.findIndex((0,p.rtTargetarrArr)(n),function(t){return t===e})&&(!function t(e,n){for(var r in e)e[r]===n?i=n:t((0,p.rtTargetarrArr)(e[r]),n);return i}((0,p.rtTargetarrArr)(e),n)&&((0,p.saveTargetarr)(e,n),c.default.commit("dag/setIsEditDag",!0),!0))})},g.prototype.jspBackfill=function(t){var e=this,n=t.connects,i=t.locations,r=t.largeJson;this.jsonHandle({largeJson:r,locations:i});var s=a.jsPlumb.getSelector(".statemachine-demo .w");this.JspInstance.batch(function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];return new Promise(function(r,o){n?e.store.dispatch("dag/getProcessTasksList",{processDefinitionId:t}).then(function(t){r(["ALL"].concat(i.default.map(t,function(t){return t.name})))}):e.store.dispatch("dag/getTaskListDefIdAll",{processDefinitionIdList:t}).then(function(t){r(t)})})},_onChangeDefinitionId:function(t){var e=this,n=t.value;this._getDependItemList(n).then(function(t){var i=e.dependItemList[e.itemIndex];i.depTasks="ALL",e.$set(e.dependItemList,e.itemIndex,e._rtOldParams(n,t,i))})},_onChangeCycle:function(t){var e=t.value,n=i.default.cloneDeep(r.dateValueList[e]);this.$set(this.dependItemList[this.itemIndex],"dateValue",n[0].value),this.$set(this.dependItemList[this.itemIndex],"dateValueList",n)},_rtNewParams:function(t,e){return{definitionId:t,depTasks:"ALL",depTasksList:e,cycle:"day",dateValue:"last1Days",dateValueList:i.default.cloneDeep(r.dateValueList.day),state:""}},_rtOldParams:function(t,e,n){return{definitionId:t,depTasks:n.depTasks||"ALL",depTasksList:e,cycle:n.cycle,dateValue:n.dateValue,dateValueList:i.default.cloneDeep(r.dateValueList[n.cycle]),state:n.state}},_removeTip:function(){$("body").find(".tooltip.fade.top.in").remove()}},watch:{},beforeCreate:function(){},created:function(){var t=this;this.isInstance="projects-instance-details"===this.router.history.current.name,this._getProcessList().then(function(){if(t.dependItemList.length){var e=i.default.map(t.dependItemList,function(t){return t.definitionId}).join(",");t._getDependItemList(e,!1).then(function(e){i.default.map(t.dependItemList,function(n,r){t.$set(t.dependItemList,r,t._rtOldParams(n.definitionId,["ALL"].concat(i.default.map(e[n.definitionId]||[],function(t){return t.name})),n))})})}else{var n=t.definitionList[0].value;t._getDependItemList(n).then(function(e){t.$emit("dependItemListEvent",i.default.concat(t.dependItemList,t._rtNewParams(n,e)))})}})},mounted:function(){},components:{}}},914:function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(30)),r=s(n(36)),o=s(n(677));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"sub_process",data:function(){return{processDefinitionList:[],wdiCurr:null}},mixins:[o.default],props:{backfillItem:Object},methods:{_verification:function(){return this.wdiCurr?(this.$emit("on-params",{processDefinitionId:this.wdiCurr}),!0):(this.$message.warning(""+r.default.$t("Please select a sub-Process")),!1)},_handleWdiChanged:function(t){this.$emit("on-set-process-name",this._handleName(t.value))},_handleName:function(t){return i.default.filter(this.processDefinitionList,function(e){return t===e.id})[0].code}},watch:{},created:function(){var t,e=i.default.cloneDeep(this.store.state.dag.processListS),n=this.router.history.current.params.id||null;this.processDefinitionList=(t=i.default.map(e,function(t){return{id:t.id,code:t.name,disabled:!1}}),i.default.filter(t,function(t){return+t.id!=+n}));var r=this.backfillItem;i.default.isEmpty(r)?this.processDefinitionList.length&&(this.wdiCurr=this.processDefinitionList[0].id,this.$emit("on-set-process-name",this._handleName(this.wdiCurr))):this.wdiCurr=r.params.processDefinitionId},mounted:function(){}}},915:function(t,e,n){"use strict";e.__esModule=!0;var i=s(n(30)),r=s(n(36)),o=s(n(677));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"form-select-input",data:function(){return{isIconState:!1,isInput:!0}},mixins:[o.default],props:{value:String,list:Array},model:{prop:"value",event:"valueEvent"},methods:{_onChange:function(t){this.$emit("valueEvent",+t.value),this._setIconState(+t.value)},_setIconState:function(t){this.isIconState=i.default.includes(this.list,parseInt(t))},_ckIcon:function(){var t=this;this.isDetails||(this.isInput=!1,this.$emit("valueEvent",+this.list[0]),this.isIconState=!0,setTimeout(function(){t.isInput=!0},1))},_onBlur:function(){var t=$(this.$refs.input.$el).find("input")[0].value;this._validation(t)&&(this.$emit("valueEvent",t),this._setIconState(t))},_validation:function(t){return"0"===t||(!!/(^[0-9]*[1-9][0-9]*$)/.test(t)||(this.$message.warning(""+r.default.$t("Please enter a positive integer")),this._ckIcon(),!1))}},watch:{},created:function(){this._setIconState(this.value)},mounted:function(){},components:{}}},916:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(30)),r=o(n(677));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"form-timeout-alarm",data:function(){return{enable:!1,strategy:[],interval:null}},mixins:[r.default],props:{backfillItem:Object},methods:{_onSwitch:function(t){this.strategy=t?["WARN"]:[],this.interval=t?30:null},_verification:function(){var t,e=this;return this.enable&&!this.strategy.length?(this.$message.warning(""+this.$t("Timeout strategy must be selected")),!1):!this.enable||parseInt(this.interval)||i.default.isInteger(this.interval)?(this.$emit("on-timeout",{strategy:(t=e.strategy,2===t.length&&"FAILED"===t[0]?[t[1],t[0]].join(","):t.join(",")),interval:parseInt(this.interval),enable:this.enable}),!0):(this.$message.warning(""+this.$t("Timeout must be a positive integer")),!1)}},watch:{},created:function(){var t=this.backfillItem;!i.default.isEmpty(t)&&t.timeout&&(this.enable=t.timeout.enable||!1,this.strategy=i.default.split(t.timeout.strategy,",")||["WARN"],this.interval=t.timeout.interval||null)},mounted:function(){},components:{}}},917:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(865),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(920);var a=function(t){n(918)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},918:function(t,e,n){var i=n(919);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("57286c9c",i,!0,{})},919:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".start-process-model{width:860px;min-height:300px;background:#fff;border-radius:3px}.start-process-model .title-box{margin-bottom:18px}.start-process-model .title-box span{padding-left:30px;font-size:16px;padding-top:29px;display:block}.start-process-model .list{margin-bottom:14px}.start-process-model .list .text{width:140px;float:left;text-align:right;line-height:32px;padding-right:8px}.start-process-model .list .cont{width:350px;float:left}.start-process-model .list .cont .add-email-model{padding:20px}.start-process-model .submit{text-align:right;padding-right:30px;padding-top:10px;padding-bottom:30px}",""])},920:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"start-process-model"},[n("div",{staticClass:"title-box"},[n("span",[t._v(t._s(t.$t("Please set the parameters before starting")))])]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Failure Strategy"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-radio-group",{staticStyle:{"margin-top":"7px"},model:{value:t.failureStrategy,callback:function(e){t.failureStrategy=e},expression:"failureStrategy"}},[n("x-radio",{attrs:{label:"CONTINUE"}},[t._v(t._s(t.$t("Continue")))]),t._v(" "),n("x-radio",{attrs:{label:"END"}},[t._v(t._s(t.$t("End")))])],1)],1)]),t._v(" "),"contextmenu"===t.sourceType?n("div",{staticClass:"clearfix list",staticStyle:{"margin-top":"-8px"}},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Node execution"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont",staticStyle:{"padding-top":"6px"}},[n("x-radio-group",{model:{value:t.taskDependType,callback:function(e){t.taskDependType=e},expression:"taskDependType"}},[n("x-radio",{attrs:{label:"TASK_POST"}},[t._v(t._s(t.$t("Backward execution")))]),t._v(" "),n("x-radio",{attrs:{label:"TASK_PRE"}},[t._v(t._s(t.$t("Forward execution")))]),t._v(" "),n("x-radio",{attrs:{label:"TASK_ONLY"}},[t._v(t._s(t.$t("Execute only the current node")))])],1)],1)]):t._e(),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Notification strategy"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-select",{staticStyle:{width:"200px"},model:{value:t.warningType,callback:function(e){t.warningType=e},expression:"warningType"}},t._l(t.warningTypeList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Process priority"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("m-priority",{model:{value:t.processInstancePriority,callback:function(e){t.processInstancePriority=e},expression:"processInstancePriority"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n Worker分组\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("m-worker-groups",{model:{value:t.workerGroupId,callback:function(e){t.workerGroupId=e},expression:"workerGroupId"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Notification group"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-select",{staticStyle:{width:"200px"},attrs:{disabled:!t.notifyGroupList.length},scopedSlots:t._u([{key:"trigger",fn:function(e){var i=e.selectedModel;return n("x-input",{staticStyle:{width:"200px"},attrs:{readonly:"",placeholder:t.$t("Please select a notification group"),value:i?i.label:""},on:{"on-click-icon":function(e){e.stopPropagation(),t.warningGroupId={}}}},[n("i",{directives:[{name:"show",rawName:"v-show",value:t.warningGroupId.id,expression:"warningGroupId.id"}],staticClass:"fa fa-times-circle",staticStyle:{"font-size":"15px",cursor:"pointer"},attrs:{slot:"suffix"},slot:"suffix"}),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:!t.warningGroupId.id,expression:"!warningGroupId.id"}],staticClass:"ans-icon-arrow-down",staticStyle:{"font-size":"12px"},attrs:{slot:"suffix"},slot:"suffix"})])}}]),model:{value:t.warningGroupId,callback:function(e){t.warningGroupId=e},expression:"warningGroupId"}},[t._v(" "),t._l(t.notifyGroupList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})})],2)],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Recipient"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont",staticStyle:{width:"688px"}},[n("m-email",{attrs:{"repeat-data":t.receiversCc},model:{value:t.receivers,callback:function(e){t.receivers=e},expression:"receivers"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Cc"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont",staticStyle:{width:"688px"}},[n("m-email",{attrs:{"repeat-data":t.receivers},model:{value:t.receiversCc,callback:function(e){t.receiversCc=e},expression:"receiversCc"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Complement Data"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("div",{staticStyle:{"padding-top":"6px"}},[n("x-checkbox",{model:{value:t.execType,callback:function(e){t.execType=e},expression:"execType"}},[t._v(t._s(t.$t("Whether it is a complement process?")))])],1)])]),t._v(" "),t.execType?[n("div",{staticClass:"clearfix list",staticStyle:{margin:"-6px 0 16px 0"}},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Mode of execution"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-radio-group",{staticStyle:{"margin-top":"7px"},model:{value:t.runMode,callback:function(e){t.runMode=e},expression:"runMode"}},[n("x-radio",{attrs:{label:"RUN_MODE_SERIAL"}},[t._v(t._s(t.$t("Serial execution")))]),t._v(" "),n("x-radio",{attrs:{label:"RUN_MODE_PARALLEL"}},[t._v(t._s(t.$t("Parallel execution")))])],1)],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("div",{staticClass:"text"},[t._v("\n "+t._s(t.$t("Date"))+"\n ")]),t._v(" "),n("div",{staticClass:"cont"},[n("x-datepicker",{staticStyle:{width:"360px"},attrs:{"panel-num":2,placement:"bottom-start",value:t.scheduleTime,type:"daterange",placeholder:t.$t("Select date range"),format:"YYYY-MM-DD HH:mm:ss"},on:{"on-change":t._datepicker}})],1)])]:t._e(),t._v(" "),n("div",{staticClass:"submit"},[n("x-button",{attrs:{type:"text"},on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("Cancel"))+" ")]),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle",loading:t.spinnerLoading},on:{click:function(e){return t.ok()}}},[t._v(t._s(t.spinnerLoading?"Loading...":t.$t("Start"))+" ")])],1)],2)},staticRenderFns:[]};e.a=i},921:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(868),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(924);var a=function(t){n(922)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},922:function(t,e,n){var i=n(923);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("ef2f9a7e",i,!0,{})},923:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,'.log-pop{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.4);z-index:10}.log-pop .log-box{width:660px;height:520px;background:#fff;border-radius:3px;position:absolute;left:50%;top:50%;margin-left:-340px;margin-top:-250px}.log-pop .log-box .title{height:50px;border-bottom:1px solid #dcdedc}.log-pop .log-box .title span{font-size:16px;color:#333;padding-left:20px;display:inline-block;padding-top:16px}.log-pop .log-box .title .full-screen{position:absolute;right:20px;top:12px}.log-pop .log-box .title .full-screen a{color:#0097e0;font-size:12px;margin-left:10px}.log-pop .log-box .title .full-screen a i{vertical-align:middle}.log-pop .log-box .title .full-screen .clock>i{font-size:20px;vertical-align:middle;transform:scale(1)}.log-pop .log-box .title .full-screen .refresh-log>i{font-size:24px;vertical-align:middle;transform:scale(1)}.log-pop .log-box .title .full-screen .refresh-log.active>i{-webkit-transition-property:-webkit-transform;-webkit-transition-duration:1s;-moz-transition-property:-moz-transform;-moz-transition-duration:1s;-webkit-animation:rotateloading .4s linear infinite;-moz-animation:rotateloading .4s linear infinite;-o-animation:rotateloading .4s linear infinite;animation:rotateloading .4s linear infinite;transform:scale(.4);color:#999}.log-pop .log-box .content{height:calc(100% - 100px);background:#002a35;padding:6px 2px}.log-pop .log-box .content .content-log-box{width:100%;height:100%;word-break:break-all}.log-pop .log-box .content .content-log-box textarea{background:none;color:#9cabaf;border:0;font-family:"Microsoft Yahei,Arial,Hiragino Sans GB,tahoma,SimSun,sans-serif";font-weight:700;resize:none;line-height:1.6;padding:6px}.log-pop .log-box .operation{text-align:right;height:50px;line-height:44px;border-top:1px solid #dcdedc;padding-right:20px;background:#fff;position:relative}',""])},924:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"log-model"},[t.stateId&&"SUB_PROCESS"!==t.item.type?n("span",[t._t("history"),t._v(" "),n("span",{on:{click:t._ckLog}},[t._t("log")],2)],2):t._e(),t._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isLog||"list"===t.source,expression:"isLog || source === 'list'"}],staticClass:"log-pop"},[n("div",{staticClass:"log-box"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("View log")))]),t._v(" "),n("div",{staticClass:"full-screen"},[n("a",{attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("Download Log")},on:{click:t._downloadLog}},[n("i",{staticClass:"iconfont",staticStyle:{"font-size":"20px"}},[t._v("")])]),t._v(" "),n("a",{staticClass:"refresh-log",class:t.loading?"active":"",attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("Refresh Log")},on:{click:function(e){!t.loading&&t._refreshLog()}}},[n("i",{staticClass:"fa iconfont"},[t._v("")])]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.isScreen,expression:"!isScreen"}],attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("Enter full screen")},on:{click:t._screenOpen}},[n("i",{staticClass:"iconfont"},[t._v("")])]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:t.isScreen,expression:"isScreen"}],attrs:{href:"javascript:","data-container":"body","data-toggle":"tooltip",title:t.$t("Cancel full screen")},on:{click:t._screenClose}},[n("i",{staticClass:"iconfont"},[t._v("")])])])]),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"content-log-box"},[n("textarea",{staticClass:"textarea-ft",staticStyle:{width:"100%"},attrs:{id:"textarea-log",spellcheck:"false"}})])]),t._v(" "),n("div",{staticClass:"operation"},[n("x-button",{attrs:{type:"primary",shape:"circle"},on:{click:t.close}},[t._v(" "+t._s(t.$t("Close"))+" ")])],1)])])])],1)},staticRenderFns:[]};e.a=i},933:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(893),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1009);var a=function(t){n(934)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},934:function(t,e,n){var i=n(935);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("9f6d19e2",i,!0,{})},935:function(t,e,n){var i=n(125);(t.exports=n(34)(!1)).push([t.i,".dag-model{background:url("+i(n(936))+");height:calc(100vh - 100px)}.dag-model ::selection{background:transparent}.dag-model ::-moz-selection{background:transparent}.dag-model ::-webkit-selection{background:transparent}.dag-model .jsplumb-connector{z-index:1}.dag-model .endpoint-tasks{margin-top:22px}.dag-model .draggable>span{text-align:center;display:block;margin-top:-4px;padding:0 4px;width:200px;margin-left:-81px;position:absolute;left:0;bottom:-12px}.dag-model .draggable .fa{position:absolute;right:-8px;top:-8px;z-index:2}.dag-model .draggable .fa,.dag-model .draggable .icos{display:inline-block;cursor:pointer}.dag-model .draggable.active-tasks span{color:#0296df}.dag-model .icos{width:32px;height:32px;margin:2px;border-radius:3px;position:relative;z-index:9}.dag-model .icos-SHELL{background:url("+i(n(937))+") no-repeat 50% 50%}.dag-model .icos-SUB_PROCESS{background:url("+i(n(938))+") no-repeat 50% 50%}.dag-model .icos-PROCEDURE{background:url("+i(n(939))+") no-repeat 50% 50%}.dag-model .icos-SQL{background:url("+i(n(940))+") no-repeat 50% 50%}.dag-model .icos-SPARK{background:url("+i(n(941))+") no-repeat 50% 50%}.dag-model .icos-MR{background:url("+i(n(942))+") no-repeat 50% 50%}.dag-model .icos-PYTHON{background:url("+i(n(943))+") no-repeat 50% 50%}.dag-model .icos-DEPENDENT{background:url("+i(n(944))+") no-repeat 50% 50%}.dag-model .toolbar{width:60px;height:100%;background:#f2f3f7;float:left;border-radius:0 0 0 3px}.dag-model .toolbar .title{height:40px;line-height:40px;background:#40434c;text-align:center;border-radius:3px 0 0 0}.dag-model .toolbar .title span{font-size:14px;color:#fff;font-weight:700}.dag-model .toolbar .toolbar-btn{overflow:hidden;padding:11px 11px 0}.dag-model .toolbar .toolbar-btn .bar-box{width:36px;height:36px;float:left;margin-bottom:11px;border-radius:3px}.dag-model .toolbar .toolbar-btn .bar-box .disabled .icos{opacity:.6;-webkit-filter:grayscale(100%);-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.dag-model .toolbar .toolbar-btn .bar-box:nth-child(odd){margin-right:6px}.dag-model .toolbar .toolbar-btn .bar-box.active{background:#e1e2e3}.dag-model .dag-contect{float:left;width:calc(100% - 60px);height:100%}.dag-model .dag-contect .dag-toolbar{height:40px;background:#f2f3f7;position:relative;border-radius:0 3px 0 0}.dag-model .dag-contect .dag-toolbar .assist-btn{position:absolute;left:10px;top:8px}.dag-model .dag-contect .dag-toolbar .assist-btn>.name{padding-left:6px;vertical-align:middle}.dag-model .dag-contect .dag-toolbar .save-btn{position:absolute;right:8px;top:6px}.dag-model .dag-contect .dag-toolbar .save-btn .operation{overflow:hidden;display:inline-block;margin-right:10px}.dag-model .dag-contect .dag-toolbar .save-btn .operation a{float:left;width:28px;height:28px;text-align:center;line-height:28px;margin-left:6px;border-radius:3px;vertical-align:middle}.dag-model .dag-contect .dag-toolbar .save-btn .operation a i{color:#333}.dag-model .dag-contect .dag-toolbar .save-btn .operation a.active{background:#e1e2e3}.dag-model .dag-contect .dag-toolbar .save-btn .operation a.active i{color:#2d8cf0}.dag-model .dag-contect .dag-toolbar .save-btn .operation a.disable i{color:#bbb}.dag-model .dag-contect .dag-container{height:calc(100% - 40px);overflow-x:auto}.dag-model .dag-contect .dag-container::-webkit-scrollbar{width:9px}.dag-model .tools-model{height:60px;background:#f4f5f4;border-radius:3px 3px 0 0}.v-modal-custom-log{z-index:101}svg path:hover{cursor:pointer}#chart-container .ui-selected span,#chart-container .ui-selecting span{color:#0296df}.contextmenu{position:fixed;width:90px;background:#fff;border-radius:3px;box-shadow:0 2px 4px 1px rgba(0,0,0,.1);padding:4px 0;visibility:hidden}.contextmenu a{height:30px;line-height:28px;display:block}.contextmenu a i{font-size:16px;vertical-align:middle;margin-left:10px}.contextmenu a span{vertical-align:middle;font-size:12px;color:#666;padding-left:2px}.contextmenu a:hover{background:#f6faff}.contextmenu a#startRunning i{color:#35cd75}.contextmenu a#editNodes i{color:#0097e0}.contextmenu a#removeNodes i{color:#f04d4e}.contextmenu a#copyNodes i{color:#fabc05}.contextmenu a.disbled i,.contextmenu a.disbled span{color:#aaa!important}.jtk-demo{width:8000px;height:5000px;position:relative}.jtk-demo svg:not(:root){z-index:11}.jtk-demo-canvas{height:100%}.jtk-bootstrap{min-height:100vh;display:flex;flex-direction:column}.jtk-bootstrap .jtk-page-container{display:flex;width:100vw;justify-content:center;flex:1}.jtk-bootstrap .jtk-container{width:60%;max-width:800px}.jtk-bootstrap-wide .jtk-container{width:80%;max-width:1187px}.jtk-demo-main{position:relative;margin-top:98px}.jtk-demo-main .description{font-size:13px;margin-top:25px;padding:13px;margin-bottom:22px;background-color:#f4f5ef}.jtk-demo-main .description li{list-style-type:disc!important}.jtk-demo-canvas{display:flex}.canvas-wide{padding-top:10px;margin-left:0;-ms-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-webkit-transition:all .1s ease-out;-o-transition:all .1s ease-out}.jtk-demo-dataset{text-align:left;max-height:600px;overflow:auto}.demo-title{float:left;font-size:18px}.controls{top:25px;color:#fff;margin-right:10px;position:absolute;left:25px;z-index:1}.controls i{background-color:#3e7e9c;border-radius:4px;cursor:pointer;margin-right:0;padding:4px}.w{position:absolute;z-index:4;font-size:11px;-webkit-transition:background-color .25s ease-in;-moz-transition:background-color .25s ease-in;transition:background-color .25s ease-in;border:7px solid transparent;border-bottom:30px solid transparent}.w .icos{width:50px;height:50px;box-shadow:2px 2px 19px #e0e0e0;-o-box-shadow:2px 2px 19px #e0e0e0;-webkit-box-shadow:2px 2px 19px #e0e0e0;-moz-box-shadow:2px 2px 19px #e0e0e0;-moz-border-radius:8px;border-radius:8px;opacity:.8;cursor:move;background-color:#fff}.w .name-p{position:absolute;left:50%;top:58px;width:200px;text-align:center;margin-left:-100px;word-break:break-all}.w .ban-p{position:absolute;left:-4px;top:36px;z-index:21}.w .ban-p i{font-size:18px;color:red;cursor:pointer}.w .state-p{width:20px;height:20px;position:absolute;top:-20px;left:18px;text-align:center;cursor:pointer}.w .state-p b{font-weight:400}.aLabel{-webkit-transition:background-color .25s ease-in;-moz-transition:background-color .25s ease-in;transition:background-color .25s ease-in}.aLabel.jtk-hover .icos,.jtk-source-hover .icos,.jtk-target-hover .icos{background-color:#333;color:#333}.aLabel.jtk-hover .icos,.jtk-source-hover .icos,.jtk-target-hover .icos,.jtk-tasks-active .icos{-ms-transition:all .6s ease-out;-moz-transition:all .6s ease-out;-webkit-transition:all .6s ease-out;-o-transition:all .6s ease-out}.jtk-tasks-active .icos{background-color:#2db7f5;color:#0097e0}.aLabel{background-color:#fff;opacity:.8;padding:.3em;border-radius:.5em;border:1px solid #346789;cursor:pointer}.jtk-ep .ep{display:block}.ep{position:absolute;top:-4%;right:-1px;width:1em;height:1em;z-index:12;background-color:orange;cursor:pointer;box-shadow:0 0 2px #000;-webkit-transition:-webkit-box-shadow .25s ease-in;-moz-transition:-moz-box-shadow .25s ease-in;transition:box-shadow .25s ease-in;border-radius:100%;display:none}.ep:hover{box-shadow:0 0 6px #000}.statemachine-demo .jtk-endpoint{z-index:3}#canvas .dot-style{opacity:0}.from-mirror{width:100%;position:relative;z-index:0}.from-mirror .CodeMirror{height:auto;min-height:72px}.from-mirror .CodeMirror-scroll{height:auto;min-height:72px;overflow-y:hidden;overflow-x:auto}.ans-drawer.ans-drawer-right{width:628px;left:auto}",""])},936:function(t,e,n){t.exports=n.p+"images/dag_bg.png?6a0c3839385c7d50f21acf06989addf4"},937:function(t,e,n){t.exports=n.p+"images/toolbar_SHELL.png?249b36a2f0687b942c0dc26e85bf5c5d"},938:function(t,e,n){t.exports=n.p+"images/toolbar_SUB_PROCESS.png?a5d6b24489e0142c643821cb30f0fa16"},939:function(t,e,n){t.exports=n.p+"images/toolbar_PROCEDURE.png?9418236aaa8d10bda2ba72ff70b4cd94"},940:function(t,e,n){t.exports=n.p+"images/toolbar_SQL.png?ffd333b2d8f16967463a90dc431ce604"},941:function(t,e,n){t.exports=n.p+"images/toolbar_SPARK.png?4fb1f1c7acb1fcbe5ffd39bf99cf2453"},942:function(t,e,n){t.exports=n.p+"images/toolbar_MR.png?835bcf5a478ab55c8fe7510ad6c4ee7e"},943:function(t,e,n){t.exports=n.p+"images/toolbar_PYTHON.png?b2f3d6aa01059c43b4d6dff6a37f8bc4"},944:function(t,e,n){t.exports=n.p+"images/toolbar_DEPENDENT.png?392311ad751588b7dd0e5f842d217254"},945:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(30)),r=n(866),o=l(n(894)),s=l(n(947)),a=l(n(92));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){this.dag={},this.instance={}};c.prototype.init=function(t){var e=t.dag,n=t.instance;this.dag=e,this.instance=n},c.prototype.setConfig=function(t){o.default.setConfig(t)},c.prototype.create=function(){var t=this;r.jsPlumb.ready(function(){o.default.init({dag:t.dag,instance:t.instance}),o.default.handleEvent(),o.default.draggable()})},c.prototype.toolbarEvent=function(t){var e=t.item,n=t.code,i=t.is;switch(n){case"pointer":o.default.handleEventPointer(i);break;case"line":o.default.handleEventLine(i);break;case"remove":o.default.handleEventRemove();break;case"screen":o.default.handleEventScreen({item:e,is:i});break;case"download":s.default.download({dagThis:this.dag})}},c.prototype.backfill=function(){var t=this;r.jsPlumb.ready(function(){o.default.init({dag:t.dag,instance:t.instance}),o.default.jspBackfill({connects:i.default.cloneDeep(a.default.state.dag.connects),locations:i.default.cloneDeep(a.default.state.dag.locations),largeJson:i.default.cloneDeep(a.default.state.dag.tasks)})})},c.prototype.saveStore=function(){return o.default.saveStore()},e.default=new c},946:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(71)),r=o(n(605));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){this.element={},this.zoom={},this.scale=1};s.prototype.init=function(){var t=this,e=(0,i.default)("#canvas");this.element=r.default.select("#canvas"),this.zoom=r.default.behavior.zoom().scaleExtent([.5,2]).on("zoom",function(){t.scale=r.default.event.scale,e.css("transform","translate("+r.default.event.translate[0]+"px,"+r.default.event.translate[1]+"px) scale("+t.scale+")"),e.css("transform-origin","0 0")}),this.element.call(this.zoom).on("dblclick.zoom",null)},e.default=new s},947:function(t,e,n){"use strict";e.__esModule=!0;var i=l(n(30)),r=l(n(607)),o=n(857),s=l(n(608)),a=n(126);function l(t){return t&&t.__esModule?t:{default:t}}var c=function(){this.dag={}};c.prototype.maxVal=function(){return new Promise(function(t,e){var n=(0,o.tasksAll)(),r=$(".dag-container"),s=parseInt(i.default.maxBy(n,"y").y+60),a=parseInt(i.default.maxBy(n,"x").x+100);t({width:a>600?a:r.width(),height:(s>500?s:r.height())+100})})},c.prototype.download=function(t){var e=this,n=t.dagThis;this.dag=n,this.maxVal().then(function(t){var n=t.width,i=t.height,o=$("#canvas"),l=[],c=[];o.find("svg").each(function(t,e){var n=e.parentNode,i=e.outerHTML.trim(),o=document.createElement("canvas");(0,r.default)(o,i),e.style.position&&(o.style.position+=e.style.position,o.style.left+=e.style.left,o.style.top+=e.style.top),l.push({parent:n,child:e}),n.removeChild(e),c.push({parent:n,child:o}),n.appendChild(o)});var u=document.createElement("canvas");u.width=1*n,u.height=1*i;var d=u.getContext("2d");d.scale(1,1);var h=o.get(0).getBoundingClientRect();d.translate(-h.left,-h.top),(0,s.default)(o[0],{dpi:2*window.devicePixelRatio,scale:1,width:n,canvas:u,heigth:i,useCORS:!0}).then(function(t){var n=e.dag.name+".png",i=t.toDataURL("image/png",1);setTimeout(function(){var t=$("").attr("href",i).attr("download",n).appendTo("body");t[0].click(),t.remove()},100),setTimeout(function(){(0,a.findComponentDownward)(e.dag.$root,e.dag.type+"-details").init()},500)})})},e.default=new c},948:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(895),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(958);var a=function(t){n(949)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},949:function(t,e,n){var i=n(950);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("745214d8",i,!0,{})},950:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".udp-model{width:624px;min-height:420px;background:#fff;border-radius:3px;padding:20px 0;position:relative}.udp-model .contpi-boxt{max-height:600px;overflow-y:scroll;padding:0 20px}.udp-model .title{line-height:36px;padding-bottom:10px}.udp-model .title span{font-size:16px;color:#333}.udp-model .bottom{position:absolute;bottom:0;left:0;width:100%;text-align:right;height:56px;line-height:56px;border-top:1px solid #dcdedc;background:#fff}.udp-model .bottom .submit{padding-right:20px;margin-top:-4px}.udp-model .bottom .lint-pt{position:absolute;left:20px;top:-2px}.udp-model .bottom .lint-pt>label{font-weight:400}.udp-model .content{padding-bottom:50px}.udp-model .content .user-def-params-model .add a{color:#0097e0}",""])},951:function(t,e,n){var i=n(952);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("9a785be0",i,!0,{})},952:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".user-def-params-model .select-listpp{margin-bottom:6px}.user-def-params-model .select-listpp .lt-add{padding-left:4px}.user-def-params-model .select-listpp .lt-add a .iconfont{font-size:18px;vertical-align:middle;margin-bottom:-2px;display:inline-block}.user-def-params-model .add a{color:#000}.user-def-params-model .add a .iconfont{font-size:18px;vertical-align:middle;display:inline-block;margin-top:1px}.user-def-params-model .add-dp a{color:#0097e0}.user-def-params-model .add-dp a .iconfont{font-size:18px;vertical-align:middle;display:inline-block;margin-top:2px}",""])},953:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-def-params-model"},[t._l(t.localParamsList,function(e,i){return n("div",{key:e.id,staticClass:"select-listpp",on:{click:function(e){return t._getIndex(i)}}},[n("x-input",{style:t.inputStyle,attrs:{disabled:t.isDetails,type:"text",placeholder:t.$t("prop(required)"),maxlength:"64"},on:{"on-blur":function(e){return t._verifProp()}},model:{value:t.localParamsList[i].prop,callback:function(e){t.$set(t.localParamsList[i],"prop",e)},expression:"localParamsList[$index].prop"}}),t._v(" "),t.hide?[n("x-select",{staticStyle:{width:"80px"},attrs:{disabled:t.isDetails},on:{change:t._handleDirectChanged},model:{value:t.localParamsList[i].direct,callback:function(e){t.$set(t.localParamsList[i],"direct",e)},expression:"localParamsList[$index].direct"}},t._l(t.directList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"118px"},attrs:{disabled:t.isDetails},on:{change:t._handleTypeChanged},model:{value:t.localParamsList[i].type,callback:function(e){t.$set(t.localParamsList[i],"type",e)},expression:"localParamsList[$index].type"}},t._l(t.typeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)]:t._e(),t._v(" "),n("x-input",{style:t.inputStyle,attrs:{disabled:t.isDetails,type:"text",placeholder:t.$t("value(optional)"),maxlength:"64"},on:{"on-blur":function(e){return t._handleValue()}},model:{value:t.localParamsList[i].value,callback:function(e){t.$set(t.localParamsList[i],"value",e)},expression:"localParamsList[$index].value"}}),t._v(" "),n("span",{staticClass:"lt-add"},[n("a",{staticStyle:{color:"red"},attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._removeUdp(i)}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("delete")}},[t._v("")])])]),t._v(" "),i===t.localParamsList.length-1?n("span",{staticClass:"add"},[n("a",{attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._addUdp()}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("Add")}},[t._v("")])])]):t._e()],2)}),t._v(" "),t.localParamsList.length?t._e():n("span",{staticClass:"add-dp"},[n("a",{attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._addUdp()}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip",title:t.$t("Add")}},[t._v("")])])])],2)},staticRenderFns:[]};e.a=i},954:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(898),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(957);var a=function(t){n(955)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},955:function(t,e,n){var i=n(956);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("06dba67e",i,!0,{})},956:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".affirm-model .popup-model .top-p{height:50px}.affirm-model .popup-model .content-p{min-height:0;min-width:250px}",""])},957:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"affirm-model"},[e("m-popup",{attrs:{"ok-text":this.$t("Save"),nameText:this.$t("Whether to save the DAG graph")},on:{close:this._close,ok:this._ok}})],1)},staticRenderFns:[]};e.a=i},958:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"udp-model"},[n("div",{staticClass:"scrollbar contpi-boxt"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("Set the DAG diagram name")))])]),t._v(" "),n("div",[n("x-input",{attrs:{type:"text",disabled:"projects-instance-details"===t.router.history.current.name,placeholder:t.$t("Please enter name(required)")},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),"projects-instance-details"!==t.router.history.current.name?[n("div",{staticStyle:{"padding-top":"12px"}},[n("x-input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:t.$t("Please enter description(optional)"),autocomplete:"off"},model:{value:t.desc,callback:function(e){t.desc=e},expression:"desc"}})],1)]:t._e(),t._v(" "),n("div",{staticClass:"title",staticStyle:{"padding-top":"6px"}},[n("span",[t._v("超时告警")]),t._v(" "),n("span",{staticStyle:{"padding-left":"6px"}},[n("x-switch",{model:{value:t.checkedTimeout,callback:function(e){t.checkedTimeout=e},expression:"checkedTimeout"}})],1)]),t._v(" "),t.checkedTimeout?n("div",{staticClass:"content",staticStyle:{"padding-bottom":"10px"}},[n("span",[n("x-input",{staticStyle:{width:"160px"},attrs:{maxlength:"9"},model:{value:t.timeout,callback:function(e){t.timeout=e},expression:"timeout"}},[n("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$t("Minute")))])])],1)]):t._e(),t._v(" "),n("div",{staticClass:"title",staticStyle:{"padding-top":"6px"}},[n("span",[t._v(t._s(t.$t("Set global")))])]),t._v(" "),n("div",{staticClass:"content"},[n("div",[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.udpList,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],2),t._v(" "),n("div",{staticClass:"bottom"},[n("div",{staticClass:"submit"},["projects-instance-details"===t.router.history.current.name?[n("div",{staticClass:"lint-pt"},[n("x-checkbox",{model:{value:t.syncDefine,callback:function(e){t.syncDefine=e},expression:"syncDefine"}},[t._v(t._s(t.$t("Whether to update the process definition")))])],1)]:t._e(),t._v(" "),n("x-button",{attrs:{type:"text"},on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("Cancel"))+" ")]),t._v(" "),n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle"},on:{click:function(e){return t.ok()}}},[t._v(t._s(t.$t("Add")))])],2)])])},staticRenderFns:[]};e.a=i},959:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(899),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1008);var a=function(t){n(960)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},960:function(t,e,n){var i=n(961);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("c08da99c",i,!0,{})},961:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".form-model-model{width:720px;position:relative}.form-model-model .title-box{height:61px;border-bottom:1px solid #dcdedc;position:relative}.form-model-model .title-box .name{position:absolute;left:24px;top:18px;font-size:16px}.form-model-model .title-box .go-subtask{position:absolute;right:30px;top:17px}.form-model-model .title-box .go-subtask a{font-size:14px;color:#0097e0;margin-left:10px}.form-model-model .title-box .go-subtask a i.iconfont{font-size:18px;vertical-align:middle}.form-model-model .title-box .go-subtask a em{color:#333;font-style:normal;vertical-align:middle;padding-left:2px}.form-model-model .title-box .go-subtask a:hover em{text-decoration:underline}.form-model-model .bottom-box{position:absolute;bottom:0;left:0;width:100%;text-align:right;height:60px;line-height:60px;border-top:1px solid #dcdedc;background:#fff}.form-model-model .bottom-box .submit{padding-right:20px;position:relative;z-index:9}.form-model-model .content-box{overflow-y:scroll;height:calc(100vh - 61px);padding-bottom:60px}.from-model{padding-top:26px}.from-model>div{clear:both}.from-model .list{position:relative;margin-bottom:10px}.from-model .list .text-box{width:112px;float:left;text-align:right;margin-right:8px}.from-model .list .text-box>span{font-size:14px;color:#777;display:inline-block;padding-top:6px}.from-model .list .cont-box{width:580px;float:left}.from-model .list .cont-box .label-box{width:100%}.from-model .list .cont-box .text-b{font-size:14px;color:#777;display:inline-block;padding:0 6px 0 20px}.from-model .list .add{line-height:32px}.from-model .list .add a{color:#0097e0}.from-model .list .list-t{width:50%;float:left}",""])},962:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(900),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(971);var a=function(t){n(963)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},963:function(t,e,n){var i=n(964);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("7128f412",i,!0,{})},964:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".spark-model .list-box-4p .list{margin-bottom:14px}.spark-model .list-box-4p .list .sp1{float:left;width:112px;text-align:right;margin-right:10px;font-size:14px;color:#777;display:inline-block;padding-top:6px}.spark-model .list-box-4p .list .sp2{float:left;margin-right:4px}",""])},965:function(t,e,n){var i=n(966);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("5fa6a761",i,!0,{})},966:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".cont-box .label-box .ans-radio-group{margin-top:7px}.v-checkbox-wrapper.v-checkbox-wrapper-disabled{color:#999}.v-checkbox-wrapper.v-checkbox-wrapper-disabled .v-checkbox .v-checkbox-inner{border-color:#dddee1;background:#f7f7f7;color:#bbbec4}.v-checkbox-wrapper.v-checkbox-wrapper-disabled .v-checkbox .v-checkbox-inner:after{border:2px solid #ddd;border-top:0;border-left:0}",""])},967:function(t,e,n){"use strict";var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"clearfix list"},[e("div",{staticClass:"text-box"},[e("span",[this._t("text")],2)]),this._v(" "),e("div",{staticClass:"cont-box"},[e("div",{staticClass:"label-box"},[this._t("content")],2)])])},staticRenderFns:[]};e.a=i},968:function(t,e,n){var i=n(969);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("5678eb12",i,!0,{})},969:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".resource-list-model .select-listpp{margin-bottom:6px}.resource-list-model .select-listpp .lt-add{padding-left:4px}.resource-list-model .select-listpp .lt-add a .iconfont{font-size:18px;vertical-align:middle;margin-bottom:-2px;display:inline-block}.resource-list-model>.add a .iconfont{font-size:18px;vertical-align:middle;display:inline-block;margin-top:1px}",""])},970:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"resource-list-model"},[n("x-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",disabled:t.isDetails,placeholder:t.$t("Please select resources")},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.resList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)},staticRenderFns:[]};e.a=i},971:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"spark-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Program Type")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"100px"},attrs:{disabled:t.isDetails},model:{value:t.programType,callback:function(e){t.programType=e},expression:"programType"}},t._l(t.programTypeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),"PYTHON"!==t.programType?n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Main class")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter main class"),autocomplete:"off"},model:{value:t.mainClass,callback:function(e){t.mainClass=e},expression:"mainClass"}})],1)]):t._e(),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Main jar package")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("Please enter main jar package"),filterable:"",disabled:t.isDetails},model:{value:t.mainJar,callback:function(e){t.mainJar=e},expression:"mainJar"}},t._l(t.mainJarList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Command-line parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{autosize:{minRows:2},disabled:t.isDetails,type:"textarea",placeholder:t.$t("Please enter Command-line parameters"),autocomplete:"off"},model:{value:t.mainArgs,callback:function(e){t.mainArgs=e},expression:"mainArgs"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Other parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,autosize:{minRows:2},type:"textarea",placeholder:t.$t("Please enter other parameters"),autocomplete:"off"},model:{value:t.others,callback:function(e){t.others=e},expression:"others"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Resources")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Custom Parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},972:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(903),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(980),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},973:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(904),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(976);var a=function(t){n(974)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},974:function(t,e,n){var i=n(975);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("323d7c56",i,!0,{})},975:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".udfs-model .add-udfs{color:#0097e0}.udfs-model .t-list{margin-bottom:14px}.udfs-model .t-list .v-btn{width:208px}.udfs-model .t-list .delect-btn{display:inline-block;width:54px!important;vertical-align:middle;background:red;border-color:red}.udfs-model .t-list .delect-btn span{vertical-align:middle!important}",""])},976:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"udfs-model"},[n("x-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:t.isDetails},model:{value:t.udfsStr,callback:function(e){t.udfsStr=e},expression:"udfsStr"}},t._l(t.udfsList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)},staticRenderFns:[]};e.a=i},977:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(905),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(978),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},978:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sql-type-model"},[n("x-select",{staticStyle:{width:"90px"},attrs:{disabled:t.isDetails},on:{"on-change":t._handleSqlTypeChanged},model:{value:t.sqlTypeId,callback:function(e){t.sqlTypeId=e},expression:"sqlTypeId"}},t._l(t.sqlTypeList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)},staticRenderFns:[]};e.a=i},979:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datasource-model"},[n("div",{staticClass:"select-listpp"},[n("x-select",{staticStyle:{width:"160px"},attrs:{disabled:t.isDetails},on:{"on-change":t._handleTypeChanged},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.typeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"288px"},attrs:{placeholder:t.$t("Please select the datasource"),disabled:t.isDetails},model:{value:t.datasource,callback:function(e){t.datasource=e},expression:"datasource"}},t._l(t.datasourceList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)])},staticRenderFns:[]};e.a=i},980:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sql-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Datasource")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-datasource",{ref:"refDs",attrs:{data:{type:t.type,datasource:t.datasource}},on:{"on-dsData":t._onDsData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("SQL Type")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticStyle:{display:"inline-block"}},[n("m-sql-type",{attrs:{"sql-type":t.sqlType},on:{"on-sqlType":t._onSqlType}})],1),t._v(" "),t.sqlType?t._e():n("div",{staticStyle:{display:"inline-block","padding-left":"10px","margin-top":"2px"}},[n("x-checkbox-group",{model:{value:t.showType,callback:function(e){t.showType=e},expression:"showType"}},[n("x-checkbox",{attrs:{label:"TABLE",disabled:t.isDetails}},[t._v(t._s(t.$t("Table")))]),t._v(" "),n("x-checkbox",{attrs:{label:"ATTACHMENT",disabled:t.isDetails}},[t._v(t._s(t.$t("Attachment")))])],1)],1)])]),t._v(" "),!t.sqlType&&t.showType.length?[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Recipient")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-email",{attrs:{disabled:t.isDetails,"repeat-data":t.receiversCc},model:{value:t.receivers,callback:function(e){t.receivers=e},expression:"receivers"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Cc")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-email",{attrs:{disabled:t.isDetails,"repeat-data":t.receivers},model:{value:t.receiversCc,callback:function(e){t.receiversCc=e},expression:"receiversCc"}})],1)])]:t._e(),t._v(" "),n("m-list-box",{directives:[{name:"show",rawName:"v-show",value:"HIVE"===t.type,expression:"type === 'HIVE'"}]},[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("SQL Parameter")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter format")+" key1=value1;key2=value2...",autocomplete:"off"},model:{value:t.connParams,callback:function(e){t.connParams=e},expression:"connParams"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("SQL Statement")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"from-mirror"},[n("textarea",{staticStyle:{opacity:"0"},attrs:{id:"code-sql-mirror",name:"code-sql-mirror"}})])])]),t._v(" "),"HIVE"===t.type?n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("UDF Function")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-udfs",{ref:"refUdfs",attrs:{udfs:t.udfs,type:t.type},on:{"on-udfsData":t._onUdfsData}})],1)]):t._e(),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Custom Parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams},on:{"on-udpData":t._onUdpData}})],1)])],2)},staticRenderFns:[]};e.a=i},981:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(908),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(982),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},982:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shell-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Script")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"from-mirror"},[n("textarea",{staticStyle:{opacity:"0"},attrs:{id:"code-shell-mirror",name:"code-shell-mirror"}})])])]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Resources")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Custom Parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},983:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(909),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(986);var a=function(t){n(984)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},984:function(t,e,n){var i=n(985);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("4ce40ee2",i,!0,{})},985:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".spark-model .list-box-4p .list{margin-bottom:14px}.spark-model .list-box-4p .list .sp1{float:left;width:112px;text-align:right;margin-right:10px;font-size:14px;color:#777;display:inline-block;padding-top:6px}.spark-model .list-box-4p .list .sp2{float:left;margin-right:4px}.spark-model .list-box-4p .list .sp3{width:176px}",""])},986:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"spark-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Program Type")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"130px"},attrs:{disabled:t.isDetails},model:{value:t.programType,callback:function(e){t.programType=e},expression:"programType"}},t._l(t.programTypeList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),"PYTHON"!==t.programType?n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Main class")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter main class"),autocomplete:"off"},model:{value:t.mainClass,callback:function(e){t.mainClass=e},expression:"mainClass"}})],1)]):t._e(),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Main jar package")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("Please enter main jar package"),filterable:"",disabled:t.isDetails},model:{value:t.mainJar,callback:function(e){t.mainJar=e},expression:"mainJar"}},t._l(t.mainJarList,function(t){return n("x-option",{key:t.code,attrs:{value:t.code,label:t.code}})}),1)],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Deploy Mode")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-radio-group",{model:{value:t.deployMode,callback:function(e){t.deployMode=e},expression:"deployMode"}},[n("x-radio",{attrs:{label:"cluster",disabled:t.isDetails}}),t._v(" "),n("x-radio",{attrs:{label:"client",disabled:t.isDetails}}),t._v(" "),n("x-radio",{attrs:{label:"local",disabled:t.isDetails}})],1)],1)]),t._v(" "),n("div",{staticClass:"list-box-4p"},[n("div",{staticClass:"clearfix list"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Driver core number")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"200px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter driver core number"),autocomplete:"off"},model:{value:t.driverCores,callback:function(e){t.driverCores=e},expression:"driverCores"}})],1),t._v(" "),n("span",{staticClass:"sp1 sp3"},[t._v(t._s(t.$t("Driver memory use")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"186px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter driver memory use"),autocomplete:"off"},model:{value:t.driverMemory,callback:function(e){t.driverMemory=e},expression:"driverMemory"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Number of Executors")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"200px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter the number of Executor"),autocomplete:"off"},model:{value:t.numExecutors,callback:function(e){t.numExecutors=e},expression:"numExecutors"}})],1),t._v(" "),n("span",{staticClass:"sp1 sp3"},[t._v(t._s(t.$t("Executor memory")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"186px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter the Executor memory"),autocomplete:"off"},model:{value:t.executorMemory,callback:function(e){t.executorMemory=e},expression:"executorMemory"}})],1)]),t._v(" "),n("div",{staticClass:"clearfix list"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Executor core number")))]),t._v(" "),n("span",{staticClass:"sp2"},[n("x-input",{staticStyle:{width:"200px"},attrs:{disabled:t.isDetails,type:"input",placeholder:t.$t("Please enter Executor core number"),autocomplete:"off"},model:{value:t.executorCores,callback:function(e){t.executorCores=e},expression:"executorCores"}})],1)])]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Command-line parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{autosize:{minRows:2},disabled:t.isDetails,type:"textarea",placeholder:t.$t("Please enter Command-line parameters"),autocomplete:"off"},model:{value:t.mainArgs,callback:function(e){t.mainArgs=e},expression:"mainArgs"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Other parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{disabled:t.isDetails,autosize:{minRows:2},type:"textarea",placeholder:t.$t("Please enter other parameters")},model:{value:t.others,callback:function(e){t.others=e},expression:"others"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Resources")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Custom Parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},987:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(910),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(988),a=n(29)(r.a,s.a,!1,null,null,null);e.default=a.exports},988:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shell-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Script")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"from-mirror"},[n("textarea",{staticStyle:{opacity:"0"},attrs:{id:"code-python-mirror",name:"code-python-mirror"}})])])]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Resources")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-resources",{ref:"refResources",attrs:{"resource-list":t.resourceList},on:{"on-resourcesData":t._onResourcesData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Custom Parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams,hide:!1},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},989:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(911),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(992);var a=function(t){n(990)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},990:function(t,e,n){var i=n(991);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("41b5373b",i,!0,{})},991:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,"",""])},992:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"procedure-model"},[n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Datasource")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-datasource",{ref:"refDs",attrs:{supportType:["MYSQL","POSTGRESQL","CLICKHOUSE","ORACLE","SQLSERVER"],data:{type:t.type,datasource:t.datasource}},on:{"on-dsData":t._onDsData}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("methods")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("x-input",{attrs:{type:"input",disabled:t.isDetails,placeholder:t.$t("Please enter method(optional)"),autocomplete:"off"},model:{value:t.method,callback:function(e){t.method=e},expression:"method"}})],1)]),t._v(" "),n("m-list-box",[n("div",{attrs:{slot:"text"},slot:"text"},[t._v(t._s(t.$t("Custom Parameters")))]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("m-local-params",{ref:"refLocalParams",attrs:{"udp-list":t.localParams},on:{"on-local-params":t._onLocalParams}})],1)])],1)},staticRenderFns:[]};e.a=i},993:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(912),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(1e3);var a=function(t){n(994)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},994:function(t,e,n){var i=n(995);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("cb5e4b98",i,!0,{})},995:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".dependence-model{margin-top:-10px}.dependence-model .dep-opt{margin-bottom:10px;padding-top:3px;line-height:24px}.dependence-model .dep-opt .add-dep{color:#0097e0;margin-right:10px}.dependence-model .dep-opt .add-dep i{font-size:18px;vertical-align:middle}.dependence-model .dep-list{margin-bottom:16px;position:relative;border-left:1px solid #eee;padding-left:16px;margin-left:-16px;transition:all .2s ease-out;padding-bottom:20px}.dependence-model .dep-list:hover{border-left:1px solid #0097e0;transition:all .2s ease-out}.dependence-model .dep-list:hover .dep-line-pie{transition:all .2s ease-out;border:1px solid #0097e0;background:#0097e0;color:#fff}.dependence-model .dep-list .dep-line-pie{transition:all .2s ease-out;position:absolute;width:20px;height:20px;border:1px solid #e2e2e2;text-align:center;top:50%;margin-top:-20px;z-index:1;left:-10px;border-radius:10px;background:#fff;font-size:12px;cursor:pointer}.dependence-model .dep-list .dep-line-pie::selection{background:transparent}.dependence-model .dep-list .dep-line-pie::-moz-selection{background:transparent}.dependence-model .dep-list .dep-line-pie::-webkit-selection{background:transparent}.dependence-model .dep-list .dep-delete{position:absolute;bottom:-6px;left:14px;font-size:18px;color:red;cursor:pointer}.dependence-model .dep-box{border-left:4px solid #eee;margin-left:-46px;padding-left:42px;position:relative}.dependence-model .dep-box .dep-relation{position:absolute;width:20px;height:20px;border:1px solid #e2e2e2;text-align:center;top:50%;margin-top:-10px;z-index:1;left:-12px;border-radius:10px;background:#fff;font-size:12px;cursor:pointer}.dependence-model .dep-box .dep-relation::selection{background:transparent}.dependence-model .dep-box .dep-relation::-moz-selection{background:transparent}.dependence-model .dep-box .dep-relation::-webkit-selection{background:transparent}",""])},996:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(913),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,function(){return i[t]})}(o);var s=n(999);var a=function(t){n(997)},l=n(29)(r.a,s.a,!1,a,null,null);e.default=l.exports},997:function(t,e,n){var i=n(998);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("81597204",i,!0,{})},998:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".dep-list-model{position:relative;min-height:32px}.dep-list-model .list{margin-bottom:6px}.dep-list-model .list .operation{padding-left:4px}.dep-list-model .list .operation a i{font-size:18px;vertical-align:middle}.dep-list-model .list .operation .delete{color:red}.dep-list-model .list .operation .add{color:#0097e0}.dep-list-model .instance-state{display:inline-block;width:24px}.dep-list-model .instance-state .iconfont{font-size:20px;vertical-align:middle;cursor:pointer;margin-left:6px}.dep-list-model .instance-state .iconfont.icon-SUCCESS{color:#3c0}.dep-list-model .instance-state .iconfont.icon-WAITING{color:#888}.dep-list-model .instance-state .iconfont.icon-FAILED{color:#f31322}",""])},999:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dep-list-model"},t._l(t.dependItemList,function(e,i){return n("div",{staticClass:"list",on:{click:function(e){t.itemIndex=i}}},[n("x-select",{style:{width:t.isInstance?"140px":"162px"},attrs:{filterable:"",disabled:t.isDetails},on:{"on-change":t._onChangeDefinitionId},model:{value:e.definitionId,callback:function(n){t.$set(e,"definitionId",n)},expression:"el.definitionId"}},t._l(t.definitionList,function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.label}})}),1),t._v(" "),n("x-select",{style:{width:t.isInstance?"144px":"156px"},attrs:{filterable:"",disabled:t.isDetails},model:{value:e.depTasks,callback:function(n){t.$set(e,"depTasks",n)},expression:"el.depTasks"}},t._l(e.depTasksList||[],function(t){return n("x-option",{key:t,attrs:{value:t,label:t}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"80px"},attrs:{disabled:t.isDetails},on:{"on-change":t._onChangeCycle},model:{value:e.cycle,callback:function(n){t.$set(e,"cycle",n)},expression:"el.cycle"}},t._l(t.cycleList,function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.label}})}),1),t._v(" "),n("x-select",{staticStyle:{width:"116px"},attrs:{disabled:t.isDetails},model:{value:e.dateValue,callback:function(n){t.$set(e,"dateValue",n)},expression:"el.dateValue"}},t._l(e.dateValueList||[],function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.label}})}),1),t._v(" "),t.isInstance?[n("span",{staticClass:"instance-state"},["SUCCESS"===e.state?n("i",{staticClass:"iconfont",class:"icon-"+e.state,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("success")}},[t._v("")]):t._e(),t._v(" "),"WAITING"===e.state?n("i",{staticClass:"iconfont",class:"icon-"+e.state,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("waiting")}},[t._v("")]):t._e(),t._v(" "),"FAILED"===e.state?n("i",{staticClass:"iconfont",class:"icon-"+e.state,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("failed")}},[t._v("")]):t._e()])]:t._e(),t._v(" "),n("span",{staticClass:"operation"},[n("a",{staticClass:"delete",attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._remove(i)}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("delete")}},[t._v("")])]),t._v(" "),i===t.dependItemList.length-1?n("a",{staticClass:"add",attrs:{href:"javascript:"},on:{click:function(e){!t.isDetails&&t._add()}}},[n("i",{staticClass:"iconfont",class:t._isDetails,attrs:{"data-toggle":"tooltip","data-container":"body",title:t.$t("Add")}},[t._v("")])]):t._e()])],2)}),0)},staticRenderFns:[]};e.a=i}}); //# sourceMappingURL=18.3bc2e58.js.map