ddy-process-h5 1.0.1-rc.3.97 → 1.0.1-rc.3.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- (function(qe,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("dsbridge"),require("checked-pick-app")):typeof define=="function"&&define.amd?define(["exports","vue","dsbridge","checked-pick-app"],s):(qe=typeof globalThis<"u"?globalThis:qe||self,s(qe["ddy-process-h5"]={},qe.Vue,qe.dsbridge,qe["checked-pick-app"]))})(this,function(qe,s,Ua,yt){"use strict";const Gn=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Ua);function Ga(e,t){const i=Object.create(null),n=e.split(",");for(let r=0;r<n.length;r++)i[n[r]]=!0;return t?r=>!!i[r.toLowerCase()]:r=>!!i[r]}const st=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const _n=()=>{},_a=()=>!1,qa=/^on[^a-z]/,Ja=e=>qa.test(e),ve=Object.assign,za=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},Ka=Object.prototype.hasOwnProperty,fe=(e,t)=>Ka.call(e,t),ae=Array.isArray,ei=e=>Ui(e)==="[object Map]",Ha=e=>Ui(e)==="[object Set]",Ce=e=>typeof e=="function",He=e=>typeof e=="string",xs=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Wa=e=>De(e)&&Ce(e.then)&&Ce(e.catch),Ya=Object.prototype.toString,Ui=e=>Ya.call(e),qn=e=>Ui(e).slice(8,-1),Xa=e=>Ui(e)==="[object Object]",Ss=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Za=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gi=(e,t)=>!Object.is(e,t),$a=(e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})};let Jn;const Ds=()=>Jn||(Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ps(e){if(ae(e)){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=He(n)?sl(n):Ps(n);if(r)for(const o in r)t[o]=r[o]}return t}else{if(He(e))return e;if(De(e))return e}}const el=/;(?![^(]*\))/g,tl=/:([^]+)/,il=/\/\*[^]*?\*\//g;function sl(e){const t={};return e.replace(il,"").split(el).forEach(i=>{if(i){const n=i.split(tl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ms(e){let t="";if(He(e))t=e;else if(ae(e))for(let i=0;i<e.length;i++){const n=Ms(e[i]);n&&(t+=n+" ")}else if(De(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function zn(e,...t){`${e}`,[...t]}let Kn;function nl(e,t=Kn){t&&t.active&&t.effects.push(e)}function rl(){return Kn}const Vs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Hn=e=>(e.w&At)>0,Wn=e=>(e.n&At)>0,ol=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=At},al=e=>{const{deps:t}=e;if(t.length){let i=0;for(let n=0;n<t.length;n++){const r=t[n];Hn(r)&&!Wn(r)?r.delete(e):t[i++]=r,r.w&=~At,r.n&=~At}t.length=i}},Os=new WeakMap;let Ei=0,At=1;const Rs=30;let Pe;const Ot=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Ls=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class ll{constructor(t,i=null,n){this.fn=t,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,nl(this,n)}run(){if(!this.active)return this.fn();let t=Pe,i=Rt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Pe,Pe=this,Rt=!0,At=1<<++Ei,Ei<=Rs?ol(this):Yn(this),this.fn()}finally{Ei<=Rs&&al(this),At=1<<--Ei,Pe=this.parent,Rt=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Pe===this?this.deferStop=!0:this.active&&(Yn(this),this.onStop&&this.onStop(),this.active=!1)}}function Yn(e){const{deps:t}=e;if(t.length){for(let i=0;i<t.length;i++)t[i].delete(e);t.length=0}}let Rt=!0;const Xn=[];function Zn(){Xn.push(Rt),Rt=!1}function $n(){const e=Xn.pop();Rt=e===void 0?!0:e}function Me(e,t,i){if(Rt&&Pe){let n=Os.get(e);n||Os.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=Vs());const o=process.env.NODE_ENV!=="production"?{effect:Pe,target:e,type:t,key:i}:void 0;cl(r,o)}}function cl(e,t){let i=!1;Ei<=Rs?Wn(e)||(e.n|=At,i=!Hn(e)):i=!e.has(Pe),i&&(e.add(Pe),Pe.deps.push(e),process.env.NODE_ENV!=="production"&&Pe.onTrack&&Pe.onTrack(ve({effect:Pe},t)))}function kt(e,t,i,n,r,o){const a=Os.get(e);if(!a)return;let l=[];if(t==="clear")l=[...a.values()];else if(i==="length"&&ae(e)){const m=Number(n);a.forEach((u,p)=>{(p==="length"||p>=m)&&l.push(u)})}else switch(i!==void 0&&l.push(a.get(i)),t){case"add":ae(e)?Ss(i)&&l.push(a.get("length")):(l.push(a.get(Ot)),ei(e)&&l.push(a.get(Ls)));break;case"delete":ae(e)||(l.push(a.get(Ot)),ei(e)&&l.push(a.get(Ls)));break;case"set":ei(e)&&l.push(a.get(Ot));break}const c=process.env.NODE_ENV!=="production"?{target:e,type:t,key:i,newValue:n,oldValue:r,oldTarget:o}:void 0;if(l.length===1)l[0]&&(process.env.NODE_ENV!=="production"?_i(l[0],c):_i(l[0]));else{const m=[];for(const u of l)u&&m.push(...u);process.env.NODE_ENV!=="production"?_i(Vs(m),c):_i(Vs(m))}}function _i(e,t){const i=ae(e)?e:[...e];for(const n of i)n.computed&&er(n,t);for(const n of i)n.computed||er(n,t)}function er(e,t){(e!==Pe||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(ve({effect:e},t)),e.scheduler?e.scheduler():e.run())}const dl=Ga("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xs)),pl=vs(),hl=vs(!0),ul=vs(!0,!0),ir=ml();function ml(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=se(this);for(let o=0,a=this.length;o<a;o++)Me(n,"get",o+"");const r=n[t](...i);return r===-1||r===!1?n[t](...i.map(se)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){Zn();const n=se(this)[t].apply(this,i);return $n(),n}}),e}function fl(e){const t=se(this);return Me(t,"has",e),t.hasOwnProperty(e)}function vs(e=!1,t=!1){return function(n,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?pr:dr:t?Pl:cr).get(n))return n;const a=ae(n);if(!e){if(a&&fe(ir,r))return Reflect.get(ir,r,o);if(r==="hasOwnProperty")return fl}const l=Reflect.get(n,r,o);return(xs(r)?tr.has(r):dl(r))||(e||Me(n,"get",r),t)?l:Ve(l)?a&&Ss(r)?l:l.value:De(l)?e?ur(l):hr(l):l}}const gl=yl();function yl(e=!1){return function(i,n,r,o){let a=i[n];if(vt(a)&&Ve(a)&&!Ve(r))return!1;if(!e&&(!Us(r)&&!vt(r)&&(a=se(a),r=se(r)),!ae(i)&&Ve(a)&&!Ve(r)))return a.value=r,!0;const l=ae(i)&&Ss(n)?Number(n)<i.length:fe(i,n),c=Reflect.set(i,n,r,o);return i===se(o)&&(l?Gi(r,a)&&kt(i,"set",n,r,a):kt(i,"add",n,r)),c}}function Al(e,t){const i=fe(e,t),n=e[t],r=Reflect.deleteProperty(e,t);return r&&i&&kt(e,"delete",t,void 0,n),r}function kl(e,t){const i=Reflect.has(e,t);return(!xs(t)||!tr.has(t))&&Me(e,"has",t),i}function bl(e){return Me(e,"iterate",ae(e)?"length":Ot),Reflect.ownKeys(e)}const El={get:pl,set:gl,deleteProperty:Al,has:kl,ownKeys:bl},sr={get:hl,set(e,t){return process.env.NODE_ENV!=="production"&&zn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&zn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Cl=ve({},sr,{get:ul}),Fs=e=>e,qi=e=>Reflect.getPrototypeOf(e);function Ji(e,t,i=!1,n=!1){e=e.__v_raw;const r=se(e),o=se(t);i||(t!==o&&Me(r,"get",t),Me(r,"get",o));const{has:a}=qi(r),l=n?Fs:i?qs:_s;if(a.call(r,t))return l(e.get(t));if(a.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function zi(e,t=!1){const i=this.__v_raw,n=se(i),r=se(e);return t||(e!==r&&Me(n,"has",e),Me(n,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function Ki(e,t=!1){return e=e.__v_raw,!t&&Me(se(e),"iterate",Ot),Reflect.get(e,"size",e)}function nr(e){e=se(e);const t=se(this);return qi(t).has.call(t,e)||(t.add(e),kt(t,"add",e,e)),this}function rr(e,t){t=se(t);const i=se(this),{has:n,get:r}=qi(i);let o=n.call(i,e);o?process.env.NODE_ENV!=="production"&&lr(i,n,e):(e=se(e),o=n.call(i,e));const a=r.call(i,e);return i.set(e,t),o?Gi(t,a)&&kt(i,"set",e,t,a):kt(i,"add",e,t),this}function or(e){const t=se(this),{has:i,get:n}=qi(t);let r=i.call(t,e);r?process.env.NODE_ENV!=="production"&&lr(t,i,e):(e=se(e),r=i.call(t,e));const o=n?n.call(t,e):void 0,a=t.delete(e);return r&&kt(t,"delete",e,void 0,o),a}function ar(){const e=se(this),t=e.size!==0,i=process.env.NODE_ENV!=="production"?ei(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&kt(e,"clear",void 0,void 0,i),n}function Hi(e,t){return function(n,r){const o=this,a=o.__v_raw,l=se(a),c=t?Fs:e?qs:_s;return!e&&Me(l,"iterate",Ot),a.forEach((m,u)=>n.call(r,c(m),c(u),o))}}function Wi(e,t,i){return function(...n){const r=this.__v_raw,o=se(r),a=ei(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,m=r[e](...n),u=i?Fs:t?qs:_s;return!t&&Me(o,"iterate",c?Ls:Ot),{next(){const{value:p,done:y}=m.next();return y?{value:p,done:y}:{value:l?[u(p[0]),u(p[1])]:u(p),done:y}},[Symbol.iterator](){return this}}}}function bt(e){return function(...t){if(process.env.NODE_ENV!=="production"){const i=t[0]?`on key "${t[0]}" `:"";`${Za(e)}${i}`,se(this)}return e==="delete"?!1:this}}function wl(){const e={get(o){return Ji(this,o)},get size(){return Ki(this)},has:zi,add:nr,set:rr,delete:or,clear:ar,forEach:Hi(!1,!1)},t={get(o){return Ji(this,o,!1,!0)},get size(){return Ki(this)},has:zi,add:nr,set:rr,delete:or,clear:ar,forEach:Hi(!1,!0)},i={get(o){return Ji(this,o,!0)},get size(){return Ki(this,!0)},has(o){return zi.call(this,o,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:Hi(!0,!1)},n={get(o){return Ji(this,o,!0,!0)},get size(){return Ki(this,!0)},has(o){return zi.call(this,o,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:Hi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Wi(o,!1,!1),i[o]=Wi(o,!0,!1),t[o]=Wi(o,!1,!0),n[o]=Wi(o,!0,!0)}),[e,i,t,n]}const[Nl,Tl,Il,Bl]=wl();function js(e,t){const i=t?e?Bl:Il:e?Tl:Nl;return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(fe(i,r)&&r in n?i:n,r,o)}const xl={get:js(!1,!1)},Sl={get:js(!0,!1)},Dl={get:js(!0,!0)};function lr(e,t,i){const n=se(i);if(n!==i&&t.call(e,n)){const r=qn(e);`${r}`}}const cr=new WeakMap,Pl=new WeakMap,dr=new WeakMap,pr=new WeakMap;function Ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ml(qn(e))}function hr(e){return vt(e)?e:Qs(e,!1,El,xl,cr)}function ur(e){return Qs(e,!0,sr,Sl,dr)}function Yi(e){return Qs(e,!0,Cl,Dl,pr)}function Qs(e,t,i,n,r){if(!De(e))return process.env.NODE_ENV!=="production"&&`${String(e)}`,e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const a=Vl(e);if(a===0)return e;const l=new Proxy(e,a===2?n:i);return r.set(e,l),l}function Lt(e){return vt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function Us(e){return!!(e&&e.__v_isShallow)}function Gs(e){return Lt(e)||vt(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Ol(e){return $a(e,"__v_skip",!0),e}const _s=e=>De(e)?hr(e):e,qs=e=>De(e)?ur(e):e;function Ve(e){return!!(e&&e.__v_isRef===!0)}function Rl(e){return Ve(e)?e.value:e}const Ll={get:(e,t,i)=>Rl(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const r=e[t];return Ve(r)&&!Ve(i)?(r.value=i,!0):Reflect.set(e,t,i,n)}};function vl(e){return Lt(e)?e:new Proxy(e,Ll)}const Ft=[];function Fl(e){Ft.push(e)}function jl(){Ft.pop()}function Te(e,...t){if(process.env.NODE_ENV==="production")return;Zn();const i=Ft.length?Ft[Ft.length-1].component:null,n=i&&i.appContext.config.warnHandler,r=Ql();if(n)jt(n,i,11,[e+t.join(""),i&&i.proxy,r.map(({vnode:o})=>`at <${Lr(i,o.type)}>`).join(`
1
+ (function(qe,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("dsbridge"),require("checked-pick-app")):typeof define=="function"&&define.amd?define(["exports","vue","dsbridge","checked-pick-app"],s):(qe=typeof globalThis<"u"?globalThis:qe||self,s(qe["ddy-process-h5"]={},qe.Vue,qe.dsbridge,qe["checked-pick-app"]))})(this,function(qe,s,Ua,yt){"use strict";const _n=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Ua);function _a(e,t){const i=Object.create(null),n=e.split(",");for(let r=0;r<n.length;r++)i[n[r]]=!0;return t?r=>!!i[r.toLowerCase()]:r=>!!i[r]}const st=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Gn=()=>{},Ga=()=>!1,qa=/^on[^a-z]/,Ja=e=>qa.test(e),ve=Object.assign,za=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},Ka=Object.prototype.hasOwnProperty,fe=(e,t)=>Ka.call(e,t),ae=Array.isArray,ei=e=>Ui(e)==="[object Map]",Ha=e=>Ui(e)==="[object Set]",Ce=e=>typeof e=="function",He=e=>typeof e=="string",xs=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Wa=e=>De(e)&&Ce(e.then)&&Ce(e.catch),Ya=Object.prototype.toString,Ui=e=>Ya.call(e),qn=e=>Ui(e).slice(8,-1),Xa=e=>Ui(e)==="[object Object]",Ss=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Za=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),_i=(e,t)=>!Object.is(e,t),$a=(e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})};let Jn;const Ds=()=>Jn||(Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ps(e){if(ae(e)){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=He(n)?sl(n):Ps(n);if(r)for(const o in r)t[o]=r[o]}return t}else{if(He(e))return e;if(De(e))return e}}const el=/;(?![^(]*\))/g,tl=/:([^]+)/,il=/\/\*[^]*?\*\//g;function sl(e){const t={};return e.replace(il,"").split(el).forEach(i=>{if(i){const n=i.split(tl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ms(e){let t="";if(He(e))t=e;else if(ae(e))for(let i=0;i<e.length;i++){const n=Ms(e[i]);n&&(t+=n+" ")}else if(De(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function zn(e,...t){`${e}`,[...t]}let Kn;function nl(e,t=Kn){t&&t.active&&t.effects.push(e)}function rl(){return Kn}const Vs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Hn=e=>(e.w&At)>0,Wn=e=>(e.n&At)>0,ol=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=At},al=e=>{const{deps:t}=e;if(t.length){let i=0;for(let n=0;n<t.length;n++){const r=t[n];Hn(r)&&!Wn(r)?r.delete(e):t[i++]=r,r.w&=~At,r.n&=~At}t.length=i}},Os=new WeakMap;let bi=0,At=1;const Rs=30;let Pe;const Ot=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Ls=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class ll{constructor(t,i=null,n){this.fn=t,this.scheduler=i,this.active=!0,this.deps=[],this.parent=void 0,nl(this,n)}run(){if(!this.active)return this.fn();let t=Pe,i=Rt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Pe,Pe=this,Rt=!0,At=1<<++bi,bi<=Rs?ol(this):Yn(this),this.fn()}finally{bi<=Rs&&al(this),At=1<<--bi,Pe=this.parent,Rt=i,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Pe===this?this.deferStop=!0:this.active&&(Yn(this),this.onStop&&this.onStop(),this.active=!1)}}function Yn(e){const{deps:t}=e;if(t.length){for(let i=0;i<t.length;i++)t[i].delete(e);t.length=0}}let Rt=!0;const Xn=[];function Zn(){Xn.push(Rt),Rt=!1}function $n(){const e=Xn.pop();Rt=e===void 0?!0:e}function Me(e,t,i){if(Rt&&Pe){let n=Os.get(e);n||Os.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=Vs());const o=process.env.NODE_ENV!=="production"?{effect:Pe,target:e,type:t,key:i}:void 0;cl(r,o)}}function cl(e,t){let i=!1;bi<=Rs?Wn(e)||(e.n|=At,i=!Hn(e)):i=!e.has(Pe),i&&(e.add(Pe),Pe.deps.push(e),process.env.NODE_ENV!=="production"&&Pe.onTrack&&Pe.onTrack(ve({effect:Pe},t)))}function kt(e,t,i,n,r,o){const a=Os.get(e);if(!a)return;let l=[];if(t==="clear")l=[...a.values()];else if(i==="length"&&ae(e)){const m=Number(n);a.forEach((u,p)=>{(p==="length"||p>=m)&&l.push(u)})}else switch(i!==void 0&&l.push(a.get(i)),t){case"add":ae(e)?Ss(i)&&l.push(a.get("length")):(l.push(a.get(Ot)),ei(e)&&l.push(a.get(Ls)));break;case"delete":ae(e)||(l.push(a.get(Ot)),ei(e)&&l.push(a.get(Ls)));break;case"set":ei(e)&&l.push(a.get(Ot));break}const c=process.env.NODE_ENV!=="production"?{target:e,type:t,key:i,newValue:n,oldValue:r,oldTarget:o}:void 0;if(l.length===1)l[0]&&(process.env.NODE_ENV!=="production"?Gi(l[0],c):Gi(l[0]));else{const m=[];for(const u of l)u&&m.push(...u);process.env.NODE_ENV!=="production"?Gi(Vs(m),c):Gi(Vs(m))}}function Gi(e,t){const i=ae(e)?e:[...e];for(const n of i)n.computed&&er(n,t);for(const n of i)n.computed||er(n,t)}function er(e,t){(e!==Pe||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(ve({effect:e},t)),e.scheduler?e.scheduler():e.run())}const dl=_a("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xs)),pl=vs(),hl=vs(!0),ul=vs(!0,!0),ir=ml();function ml(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=se(this);for(let o=0,a=this.length;o<a;o++)Me(n,"get",o+"");const r=n[t](...i);return r===-1||r===!1?n[t](...i.map(se)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){Zn();const n=se(this)[t].apply(this,i);return $n(),n}}),e}function fl(e){const t=se(this);return Me(t,"has",e),t.hasOwnProperty(e)}function vs(e=!1,t=!1){return function(n,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?pr:dr:t?Pl:cr).get(n))return n;const a=ae(n);if(!e){if(a&&fe(ir,r))return Reflect.get(ir,r,o);if(r==="hasOwnProperty")return fl}const l=Reflect.get(n,r,o);return(xs(r)?tr.has(r):dl(r))||(e||Me(n,"get",r),t)?l:Ve(l)?a&&Ss(r)?l:l.value:De(l)?e?ur(l):hr(l):l}}const gl=yl();function yl(e=!1){return function(i,n,r,o){let a=i[n];if(vt(a)&&Ve(a)&&!Ve(r))return!1;if(!e&&(!Us(r)&&!vt(r)&&(a=se(a),r=se(r)),!ae(i)&&Ve(a)&&!Ve(r)))return a.value=r,!0;const l=ae(i)&&Ss(n)?Number(n)<i.length:fe(i,n),c=Reflect.set(i,n,r,o);return i===se(o)&&(l?_i(r,a)&&kt(i,"set",n,r,a):kt(i,"add",n,r)),c}}function Al(e,t){const i=fe(e,t),n=e[t],r=Reflect.deleteProperty(e,t);return r&&i&&kt(e,"delete",t,void 0,n),r}function kl(e,t){const i=Reflect.has(e,t);return(!xs(t)||!tr.has(t))&&Me(e,"has",t),i}function El(e){return Me(e,"iterate",ae(e)?"length":Ot),Reflect.ownKeys(e)}const bl={get:pl,set:gl,deleteProperty:Al,has:kl,ownKeys:El},sr={get:hl,set(e,t){return process.env.NODE_ENV!=="production"&&zn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&zn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Cl=ve({},sr,{get:ul}),Fs=e=>e,qi=e=>Reflect.getPrototypeOf(e);function Ji(e,t,i=!1,n=!1){e=e.__v_raw;const r=se(e),o=se(t);i||(t!==o&&Me(r,"get",t),Me(r,"get",o));const{has:a}=qi(r),l=n?Fs:i?qs:Gs;if(a.call(r,t))return l(e.get(t));if(a.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function zi(e,t=!1){const i=this.__v_raw,n=se(i),r=se(e);return t||(e!==r&&Me(n,"has",e),Me(n,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function Ki(e,t=!1){return e=e.__v_raw,!t&&Me(se(e),"iterate",Ot),Reflect.get(e,"size",e)}function nr(e){e=se(e);const t=se(this);return qi(t).has.call(t,e)||(t.add(e),kt(t,"add",e,e)),this}function rr(e,t){t=se(t);const i=se(this),{has:n,get:r}=qi(i);let o=n.call(i,e);o?process.env.NODE_ENV!=="production"&&lr(i,n,e):(e=se(e),o=n.call(i,e));const a=r.call(i,e);return i.set(e,t),o?_i(t,a)&&kt(i,"set",e,t,a):kt(i,"add",e,t),this}function or(e){const t=se(this),{has:i,get:n}=qi(t);let r=i.call(t,e);r?process.env.NODE_ENV!=="production"&&lr(t,i,e):(e=se(e),r=i.call(t,e));const o=n?n.call(t,e):void 0,a=t.delete(e);return r&&kt(t,"delete",e,void 0,o),a}function ar(){const e=se(this),t=e.size!==0,i=process.env.NODE_ENV!=="production"?ei(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&kt(e,"clear",void 0,void 0,i),n}function Hi(e,t){return function(n,r){const o=this,a=o.__v_raw,l=se(a),c=t?Fs:e?qs:Gs;return!e&&Me(l,"iterate",Ot),a.forEach((m,u)=>n.call(r,c(m),c(u),o))}}function Wi(e,t,i){return function(...n){const r=this.__v_raw,o=se(r),a=ei(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,m=r[e](...n),u=i?Fs:t?qs:Gs;return!t&&Me(o,"iterate",c?Ls:Ot),{next(){const{value:p,done:y}=m.next();return y?{value:p,done:y}:{value:l?[u(p[0]),u(p[1])]:u(p),done:y}},[Symbol.iterator](){return this}}}}function Et(e){return function(...t){if(process.env.NODE_ENV!=="production"){const i=t[0]?`on key "${t[0]}" `:"";`${Za(e)}${i}`,se(this)}return e==="delete"?!1:this}}function wl(){const e={get(o){return Ji(this,o)},get size(){return Ki(this)},has:zi,add:nr,set:rr,delete:or,clear:ar,forEach:Hi(!1,!1)},t={get(o){return Ji(this,o,!1,!0)},get size(){return Ki(this)},has:zi,add:nr,set:rr,delete:or,clear:ar,forEach:Hi(!1,!0)},i={get(o){return Ji(this,o,!0)},get size(){return Ki(this,!0)},has(o){return zi.call(this,o,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Hi(!0,!1)},n={get(o){return Ji(this,o,!0,!0)},get size(){return Ki(this,!0)},has(o){return zi.call(this,o,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Hi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Wi(o,!1,!1),i[o]=Wi(o,!0,!1),t[o]=Wi(o,!1,!0),n[o]=Wi(o,!0,!0)}),[e,i,t,n]}const[Nl,Tl,Il,Bl]=wl();function js(e,t){const i=t?e?Bl:Il:e?Tl:Nl;return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(fe(i,r)&&r in n?i:n,r,o)}const xl={get:js(!1,!1)},Sl={get:js(!0,!1)},Dl={get:js(!0,!0)};function lr(e,t,i){const n=se(i);if(n!==i&&t.call(e,n)){const r=qn(e);`${r}`}}const cr=new WeakMap,Pl=new WeakMap,dr=new WeakMap,pr=new WeakMap;function Ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ml(qn(e))}function hr(e){return vt(e)?e:Qs(e,!1,bl,xl,cr)}function ur(e){return Qs(e,!0,sr,Sl,dr)}function Yi(e){return Qs(e,!0,Cl,Dl,pr)}function Qs(e,t,i,n,r){if(!De(e))return process.env.NODE_ENV!=="production"&&`${String(e)}`,e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const a=Vl(e);if(a===0)return e;const l=new Proxy(e,a===2?n:i);return r.set(e,l),l}function Lt(e){return vt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function Us(e){return!!(e&&e.__v_isShallow)}function _s(e){return Lt(e)||vt(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Ol(e){return $a(e,"__v_skip",!0),e}const Gs=e=>De(e)?hr(e):e,qs=e=>De(e)?ur(e):e;function Ve(e){return!!(e&&e.__v_isRef===!0)}function Rl(e){return Ve(e)?e.value:e}const Ll={get:(e,t,i)=>Rl(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const r=e[t];return Ve(r)&&!Ve(i)?(r.value=i,!0):Reflect.set(e,t,i,n)}};function vl(e){return Lt(e)?e:new Proxy(e,Ll)}const Ft=[];function Fl(e){Ft.push(e)}function jl(){Ft.pop()}function Te(e,...t){if(process.env.NODE_ENV==="production")return;Zn();const i=Ft.length?Ft[Ft.length-1].component:null,n=i&&i.appContext.config.warnHandler,r=Ql();if(n)jt(n,i,11,[e+t.join(""),i&&i.proxy,r.map(({vnode:o})=>`at <${Lr(i,o.type)}>`).join(`
2
2
  `),r]);else{const o=[`[Vue warn]: ${e}`,...t];r.length&&o.push(`
3
3
  `,...Ul(r)),[...o]}$n()}function Ql(){let e=Ft[Ft.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Ul(e){const t=[];return e.forEach((i,n)=>{t.push(...n===0?[]:[`
4
- `],...Gl(i))}),t}function Gl({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Lr(e.component,e.type,n)}`,o=">"+i;return e.props?[r,..._l(e.props),o]:[r+o]}function _l(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(n=>{t.push(...mr(n,e[n]))}),i.length>3&&t.push(" ..."),t}function mr(e,t,i){return He(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:Ve(t)?(t=mr(e,se(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=se(t),i?t:[`${e}=`,t])}const fr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function jt(e,t,i,n){let r;try{r=n?e(...n):e()}catch(o){gr(o,t,i)}return r}function Js(e,t,i,n){if(Ce(e)){const o=jt(e,t,i,n);return o&&Wa(o)&&o.catch(a=>{gr(a,t,i)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(Js(e[o],t,i,n));return r}function gr(e,t,i,n=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l=process.env.NODE_ENV!=="production"?fr[i]:i;for(;o;){const m=o.ec;if(m){for(let u=0;u<m.length;u++)if(m[u](e,a,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){jt(c,null,10,[e,a,l]);return}}ql(e,i,r,n)}function ql(e,t,i,n=!0){if(process.env.NODE_ENV!=="production"){const r=fr[t];if(i&&Fl(i),Te(`Unhandled error${r?` during execution of ${r}`:""}`),i&&jl(),n)throw e;console.error(e)}else console.error(e)}let Xi=!1,zs=!1;const We=[];let Et=0;const ti=[];let nt=null,Ct=0;const yr=Promise.resolve();let Ks=null;const Jl=100;function zl(e){const t=Ks||yr;return e?t.then(this?e.bind(this):e):t}function Kl(e){let t=Et+1,i=We.length;for(;t<i;){const n=t+i>>>1;Ci(We[n])<e?t=n+1:i=n}return t}function Hs(e){(!We.length||!We.includes(e,Xi&&e.allowRecurse?Et+1:Et))&&(e.id==null?We.push(e):We.splice(Kl(e.id),0,e),Ar())}function Ar(){!Xi&&!zs&&(zs=!0,Ks=yr.then(br))}function kr(e){ae(e)?ti.push(...e):(!nt||!nt.includes(e,e.allowRecurse?Ct+1:Ct))&&ti.push(e),Ar()}function Hl(e){if(ti.length){const t=[...new Set(ti)];if(ti.length=0,nt){nt.push(...t);return}for(nt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),nt.sort((i,n)=>Ci(i)-Ci(n)),Ct=0;Ct<nt.length;Ct++)process.env.NODE_ENV!=="production"&&Er(e,nt[Ct])||nt[Ct]();nt=null,Ct=0}}const Ci=e=>e.id==null?1/0:e.id,Wl=(e,t)=>{const i=Ci(e)-Ci(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function br(e){zs=!1,Xi=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),We.sort(Wl);const t=process.env.NODE_ENV!=="production"?i=>Er(e,i):_n;try{for(Et=0;Et<We.length;Et++){const i=We[Et];if(i&&i.active!==!1){if(process.env.NODE_ENV!=="production"&&t(i))continue;jt(i,null,14)}}}finally{Et=0,We.length=0,Hl(e),Xi=!1,Ks=null,(We.length||ti.length)&&br(e)}}function Er(e,t){if(!e.has(t))e.set(t,1);else{const i=e.get(t);if(i>Jl){const n=t.ownerInstance,r=n&&Rr(n.type);return Te(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,i+1)}}const wi=new Set;process.env.NODE_ENV!=="production"&&(Ds().__VUE_HMR_RUNTIME__={createRecord:Ws(Yl),rerender:Ws(Xl),reload:Ws(Zl)});const Zi=new Map;function Yl(e,t){return Zi.has(e)?!1:(Zi.set(e,{initialDef:Ni(t),instances:new Set}),!0)}function Ni(e){return vr(e)?e.__vccOpts:e}function Xl(e,t){const i=Zi.get(e);!i||(i.initialDef.render=t,[...i.instances].forEach(n=>{t&&(n.render=t,Ni(n.type).render=t),n.renderCache=[],n.update()}))}function Zl(e,t){const i=Zi.get(e);if(!i)return;t=Ni(t),Cr(i.initialDef,t);const n=[...i.instances];for(const r of n){const o=Ni(r.type);wi.has(o)||(o!==i.initialDef&&Cr(o,t),wi.add(o)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(wi.add(o),r.ceReload(t.styles),wi.delete(o)):r.parent?Hs(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"&&window.location.reload()}kr(()=>{for(const r of n)wi.delete(Ni(r.type))})}function Cr(e,t){ve(e,t);for(const i in e)i!=="__file"&&!(i in t)&&delete e[i]}function Ws(e){return(t,i)=>{try{return e(t,i)}catch(n){console.error(n)}}}let wt=null,$l=null;function zE(){}const ec=e=>e.__isSuspense;function tc(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):kr(e)}const $i={};function ic(e,t,{immediate:i,deep:n,flush:r,onTrack:o,onTrigger:a}=st){var l;process.env.NODE_ENV!=="production"&&!t&&(i!==void 0&&Te('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&Te('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=b=>{Te("Invalid watch source: ",b,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=rl()===((l=ni)==null?void 0:l.scope)?ni:null;let u,p=!1,y=!1;if(Ve(e)?(u=()=>e.value,p=Us(e)):Lt(e)?(u=()=>e,n=!0):ae(e)?(y=!0,p=e.some(b=>Lt(b)||Us(b)),u=()=>e.map(b=>{if(Ve(b))return b.value;if(Lt(b))return ii(b);if(Ce(b))return jt(b,m,2);process.env.NODE_ENV!=="production"&&c(b)})):Ce(e)?t?u=()=>jt(e,m,2):u=()=>{if(!(m&&m.isUnmounted))return k&&k(),Js(e,m,3,[C])}:(u=_n,process.env.NODE_ENV!=="production"&&c(e)),t&&n){const b=u;u=()=>ii(b())}let k,C=b=>{k=j.onStop=()=>{jt(b,m,4)}},v=y?new Array(e.length).fill($i):$i;const F=()=>{if(!!j.active)if(t){const b=j.run();(n||p||(y?b.some((x,S)=>Gi(x,v[S])):Gi(b,v)))&&(k&&k(),Js(t,m,3,[b,v===$i?void 0:y&&v[0]===$i?[]:v,C]),v=b)}else j.run()};F.allowRecurse=!!t;let z;r==="sync"?z=F:r==="post"?z=()=>Br(F,m&&m.suspense):(F.pre=!0,m&&(F.id=m.uid),z=()=>Hs(F));const j=new ll(u,z);return process.env.NODE_ENV!=="production"&&(j.onTrack=o,j.onTrigger=a),t?i?F():v=j.run():r==="post"?Br(j.run.bind(j),m&&m.suspense):j.run(),()=>{j.stop(),m&&m.scope&&za(m.scope.effects,j)}}function sc(e,t,i){const n=this.proxy,r=He(e)?e.includes(".")?nc(n,e):()=>n[e]:e.bind(n,n);let o;Ce(t)?o=t:(o=t.handler,i=t);const a=ni;Or(this);const l=ic(r,o.bind(n),i);return a?Or(a):wc(),l}function nc(e,t){const i=t.split(".");return()=>{let n=e;for(let r=0;r<i.length&&n;r++)n=n[i[r]];return n}}function ii(e,t){if(!De(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ve(e))ii(e.value,t);else if(ae(e))for(let i=0;i<e.length;i++)ii(e[i],t);else if(Ha(e)||ei(e))e.forEach(i=>{ii(i,t)});else if(Xa(e))for(const i in e)ii(e[i],t);return e}function Ye(e,t){return Ce(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const rc=Symbol.for("v-ndc"),Ys=e=>e?Nc(e)?Tc(e)||e.proxy:Ys(e.parent):null,Ti=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Yi(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Yi(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Yi(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Yi(e.refs):e.refs,$parent:e=>Ys(e.parent),$root:e=>Ys(e.root),$emit:e=>e.emit,$options:e=>lc(e),$forceUpdate:e=>e.f||(e.f=()=>Hs(e.update)),$nextTick:e=>e.n||(e.n=zl.bind(e.proxy)),$watch:e=>sc.bind(e)}),oc=e=>e==="_"||e==="$",Xs=(e,t)=>e!==st&&!e.__isScriptSetup&&fe(e,t),ac={get({_:e},t){const{ctx:i,setupState:n,data:r,props:o,accessCache:a,type:l,appContext:c}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let m;if(t[0]!=="$"){const k=a[t];if(k!==void 0)switch(k){case 1:return n[t];case 2:return r[t];case 4:return i[t];case 3:return o[t]}else{if(Xs(n,t))return a[t]=1,n[t];if(r!==st&&fe(r,t))return a[t]=2,r[t];if((m=e.propsOptions[0])&&fe(m,t))return a[t]=3,o[t];if(i!==st&&fe(i,t))return a[t]=4,i[t];a[t]=0}}const u=Ti[t];let p,y;if(u)return t==="$attrs"?(Me(e,"get",t),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&Me(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(i!==st&&fe(i,t))return a[t]=4,i[t];if(y=c.config.globalProperties,fe(y,t))return y[t];process.env.NODE_ENV!=="production"&&wt&&(!He(t)||t.indexOf("__v")!==0)&&(r!==st&&oc(t[0])&&fe(r,t)?Te(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===wt&&Te(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,i){const{data:n,setupState:r,ctx:o}=e;return Xs(r,t)?(r[t]=i,!0):process.env.NODE_ENV!=="production"&&r.__isScriptSetup&&fe(r,t)?(Te(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==st&&fe(n,t)?(n[t]=i,!0):fe(e.props,t)?(process.env.NODE_ENV!=="production"&&Te(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Te(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:i}):o[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:r,propsOptions:o}},a){let l;return!!i[a]||e!==st&&fe(e,a)||Xs(t,a)||(l=o[0])&&fe(l,a)||fe(n,a)||fe(Ti,a)||fe(r.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:fe(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};process.env.NODE_ENV!=="production"&&(ac.ownKeys=e=>(Te("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function wr(e){return ae(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function lc(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!i&&!n?c=t:(c={},r.length&&r.forEach(m=>es(c,m,a,!0)),es(c,t,a)),De(t)&&o.set(t,c),c}function es(e,t,i,n=!1){const{mixins:r,extends:o}=t;o&&es(e,o,i,!0),r&&r.forEach(a=>es(e,a,i,!0));for(const a in t)if(n&&a==="expose")process.env.NODE_ENV!=="production"&&Te('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=cc[a]||i&&i[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const cc={data:Nr,props:Ir,emits:Ir,methods:Ii,computed:Ii,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Ii,directives:Ii,watch:pc,provide:Nr,inject:dc};function Nr(e,t){return t?e?function(){return ve(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function dc(e,t){return Ii(Tr(e),Tr(t))}function Tr(e){if(ae(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function Ii(e,t){return e?ve(Object.create(null),e,t):t}function Ir(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:ve(Object.create(null),wr(e),wr(t!=null?t:{})):t}function pc(e,t){if(!e)return t;if(!t)return e;const i=ve(Object.create(null),e);for(const n in t)i[n]=Ie(e[n],t[n]);return i}function hc(){return{app:null,config:{isNativeTag:_a,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}const Br=tc,uc=e=>e.__isTeleport,xr=Symbol.for("v-fgt"),mc=Symbol.for("v-txt"),fc=Symbol.for("v-cmt");let si=null;function gc(e){return e?e.__v_isVNode===!0:!1}const yc=(...e)=>Pr(...e),Sr="__vInternal",Dr=({key:e})=>e!=null?e:null,ts=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?He(e)||Ve(e)||Ce(e)?{i:wt,r:e,k:t,f:!!i}:e:null);function Ac(e,t=null,i=null,n=0,r=null,o=e===xr?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dr(t),ref:t&&ts(t),scopeId:$l,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:wt};return l?(Zs(c,i),o&128&&e.normalize(c)):i&&(c.shapeFlag|=He(i)?8:16),process.env.NODE_ENV!=="production"&&c.key!==c.key&&Te("VNode created with invalid key (NaN). VNode type:",c.type),!a&&si&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&si.push(c),c}const kc=process.env.NODE_ENV!=="production"?yc:Pr;function Pr(e,t=null,i=null,n=0,r=null,o=!1){if((!e||e===rc)&&(process.env.NODE_ENV!=="production"&&!e&&Te(`Invalid vnode type when creating vnode: ${e}.`),e=fc),gc(e)){const l=is(e,t,!0);return i&&Zs(l,i),!o&&si&&(l.shapeFlag&6?si[si.indexOf(e)]=l:si.push(l)),l.patchFlag|=-2,l}if(vr(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:l,style:c}=t;l&&!He(l)&&(t.class=Ms(l)),De(c)&&(Gs(c)&&!ae(c)&&(c=ve({},c)),t.style=Ps(c))}const a=He(e)?1:ec(e)?128:uc(e)?64:De(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&Gs(e)&&(e=se(e),Te("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
5
- Component that was made reactive: `,e)),Ac(e,t,i,n,r,a,o,!0)}function bc(e){return e?Gs(e)||Sr in e?ve({},e):e:null}function is(e,t,i=!1){const{props:n,ref:r,patchFlag:o,children:a}=e,l=t?Cc(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Dr(l),ref:t&&t.ref?i&&r?ae(r)?r.concat(ts(t)):[r,ts(t)]:ts(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&ae(a)?a.map(Mr):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xr?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&is(e.ssContent),ssFallback:e.ssFallback&&is(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Mr(e){const t=is(e);return ae(e.children)&&(t.children=e.children.map(Mr)),t}function Ec(e=" ",t=0){return kc(mc,null,e,t)}function Zs(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ae(t))i=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Zs(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!(Sr in t)?t._ctx=wt:r===3&&wt&&(wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:wt},i=32):(t=String(t),n&64?(i=16,t=[Ec(t)]):i=8);e.children=t,e.shapeFlag|=i}function Cc(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ms([t.class,n.class]));else if(r==="style")t.style=Ps([t.style,n.style]);else if(Ja(r)){const o=t[r],a=n[r];a&&o!==a&&!(ae(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=n[r])}return t}hc();let ni=null,$s,ri,Vr="__VUE_INSTANCE_SETTERS__";(ri=Ds()[Vr])||(ri=Ds()[Vr]=[]),ri.push(e=>ni=e),$s=e=>{ri.length>1?ri.forEach(t=>t(e)):ri[0](e)};const Or=e=>{$s(e),e.scope.on()},wc=()=>{ni&&ni.scope.off(),$s(null)};function Nc(e){return e.vnode.shapeFlag&4}function Tc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vl(Ol(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ti)return Ti[i](e)},has(t,i){return i in t||i in Ti}}))}const Ic=/(?:^|[-_])(\w)/g,Bc=e=>e.replace(Ic,t=>t.toUpperCase()).replace(/[-_]/g,"");function Rr(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Lr(e,t,i=!1){let n=Rr(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e&&e.parent){const r=o=>{for(const a in o)if(o[a]===t)return a};n=r(e.components||e.parent.type.components)||r(e.appContext.components)}return n?Bc(n):i?"App":"Anonymous"}function vr(e){return Ce(e)&&"__vccOpts"in e}function en(e){return!!(e&&e.__v_isShallow)}function xc(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},i={style:"color:#b62e24"},n={style:"color:#9d288c"},r={header(p){return De(p)?p.__isVue?["div",e,"VueInstance"]:Ve(p)?["div",{},["span",e,u(p)],"<",l(p.value),">"]:Lt(p)?["div",{},["span",e,en(p)?"ShallowReactive":"Reactive"],"<",l(p),`>${vt(p)?" (readonly)":""}`]:vt(p)?["div",{},["span",e,en(p)?"ShallowReadonly":"Readonly"],"<",l(p),">"]:null:null},hasBody(p){return p&&p.__isVue},body(p){if(p&&p.__isVue)return["div",{},...o(p.$)]}};function o(p){const y=[];p.type.props&&p.props&&y.push(a("props",se(p.props))),p.setupState!==st&&y.push(a("setup",p.setupState)),p.data!==st&&y.push(a("data",se(p.data)));const k=c(p,"computed");k&&y.push(a("computed",k));const C=c(p,"inject");return C&&y.push(a("injected",C)),y.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:p}]]),y}function a(p,y){return y=ve({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},p],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(k=>["div",{},["span",n,k+": "],l(y[k],!1)])]]:["span",{}]}function l(p,y=!0){return typeof p=="number"?["span",t,p]:typeof p=="string"?["span",i,JSON.stringify(p)]:typeof p=="boolean"?["span",n,p]:De(p)?["object",{object:y?se(p):p}]:["span",i,String(p)]}function c(p,y){const k=p.type;if(Ce(k))return;const C={};for(const v in p.ctx)m(k,v,y)&&(C[v]=p.ctx[v]);return C}function m(p,y,k){const C=p[k];if(ae(C)&&C.includes(y)||De(C)&&y in C||p.extends&&m(p.extends,y,k)||p.mixins&&p.mixins.some(v=>m(v,y,k)))return!0}function u(p){return en(p)?"ShallowRef":p.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}function Sc(){xc()}process.env.NODE_ENV!=="production"&&Sc();const Dc=Ye({name:"TopPopup",props:{showHeader:{default:!0,type:Boolean},titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1),typeof this.cancel=="function"&&this.cancel()},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}}),KE="",oe=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i},Pc={key:0,class:"top-popup-header"},Mc={class:"header-title"},Vc={class:"top-popup-body"},Oc={class:"top-popup-drawer-header"},Rc={class:"header-title"},Lc={class:"top-popup-drawer--body"},vc={class:"top-tips-header"},Fc={class:"top-tips-body"},jc={class:"top-tips-footer"};function Qc(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["top-popup-zindex",e.className]),style:s.normalizeStyle(`${e.isIndex?`z-index:${e.isIndex}`:""}`)},[s.createElementVNode("div",{class:"top-popup-mask",style:s.normalizeStyle(e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>e.isMaskClose&&e.handleClose())},null,4),!e.isTips&&!e.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-popup",style:s.normalizeStyle(e.show?"transform: translateY(0)":"transform: translateY(150%)")},[e.showHeader?(s.openBlock(),s.createElementBlock("div",Pc,[s.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>e.handleCancel&&e.handleCancel(...a))},s.toDisplayString(e.cancelText),1),s.createElementVNode("div",Mc,s.toDisplayString(e.titleText),1),s.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>e.handleComfig&&e.handleComfig(...a))},s.toDisplayString(e.comfigText),1)])):s.createCommentVNode("",!0),s.createElementVNode("div",Vc,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!e.isTips&&e.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-popup-drawer",e.show?"top-popup-drawer--active":""]),style:s.normalizeStyle(e.width?`width:${e.width};`:"")},[s.createElementVNode("div",Oc,[s.createElementVNode("div",{class:"header-cancel",onClick:t[3]||(t[3]=(...a)=>e.handleCancel&&e.handleCancel(...a))}," \u5173\u95ED "),s.createElementVNode("div",Rc,s.toDisplayString(e.titleText),1),t[6]||(t[6]=s.createElementVNode("div",{class:"header-comfig",style:{width:"20px"}},null,-1))]),s.createElementVNode("div",Lc,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):e.isTips&&!e.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-tips",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[s.createElementVNode("div",vc,s.toDisplayString(e.titleText),1),s.createElementVNode("div",Fc,s.toDisplayString(e.context),1),s.createElementVNode("div",jc,[s.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>e.handleCancel&&e.handleCancel(...a))},s.toDisplayString(e.cancelText),1),s.createElementVNode("div",{class:"top-tips-btn",onClick:t[5]||(t[5]=(...a)=>e.handleComfig&&e.handleComfig(...a))},s.toDisplayString(e.comfigText),1)])],4)):s.createCommentVNode("",!0)],6)}const Fe=oe(Dc,[["render",Qc],["__scopeId","data-v-e8f2dfa7"]]),Uc=Ye({name:"PreView",props:{file:{type:String,default:""}},data(){return{url:"",video:["mp4","avi","rmvb"],videoShow:!1}},watch:{file:{handler(e,t){if(e)if(this.video.includes(e.substring(e.lastIndexOf(".")+1)))this.videoShow=!0,this.url=e;else{this.videoShow=!1;let i=e.indexOf("https://")==-1?0:1;this.url=`https://wdyl.ddzg.cn:8089/?ssl=${i}&furl=${e}`}},immediate:!0,deep:!0}}}),Gc={key:0,style:{width:"100%",height:"calc(100% - 40px)"}},_c={key:0,style:{height:"100%",width:"100%"},controls:""},qc=["src"],Jc=["src"];function zc(e,t,i,n,r,o){return e.url?(s.openBlock(),s.createElementBlock("div",Gc,[e.videoShow?(s.openBlock(),s.createElementBlock("video",_c,[s.createElementVNode("source",{src:e.url,type:"video/mp4"},null,8,qc)])):(s.openBlock(),s.createElementBlock("iframe",{key:1,style:{height:"100%",border:"unset",width:"100%"},src:e.url},null,8,Jc))])):s.createCommentVNode("",!0)}const Fr=oe(Uc,[["render",zc]]),Kc=Ye({name:"preview-image",props:{images:{type:Array,defalut:()=>[]},startPosition:{type:Number,defalut:0},visible:{type:Boolean,defalut:!1},indexd:{type:Number,defalut:0},isOne:{type:Boolean,defalut:!1},isStyle:{type:String,defalut:""}},data(){return{imagesList:[],moveNum:0,flag:!1,windowWidth:0,windowHeight:0,startX:0,startY:0,move:0,startMove:0,maxX:0,duration:"transition-duration: 0.2s;transition-timing-function:ease;",isIndex:1,show:!1,displacement:{scale:1},styleZoom:"",styleOrigin:"",moveX:"-50%",moveY:"-50%",newScaleData:1}},watch:{images:{handler(e,t){this.imagesList=e},immediate:!0,deep:!0},visible:{handler(e,t){this.show=e},immediate:!0},indexd:{handler(e,t){e>=0&&(this.isIndex=e+1,this.move=e*100*-1)},immediate:!0}},methods:{handelTouchstart(e){let t=e.touches,i=t[0],n=t[1];this.displacement.pageX=i.pageX,this.displacement.pageY=i.pageY,this.displacement.moveable=!0,n?(this.displacement.pageX2=n.pageX,this.displacement.pageY2=n.pageY):(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.windowHeight=(document.documentElement.clientHeight||document.body.clientHeight)/100,this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY,this.startMove=this.move),this.displacement.originScale=this.displacement.scale||1},handelTouchmove(e){if(!this.displacement.moveable)return;e.preventDefault();let t=e.touches,i=t[0],n=t[1];if(n){this.displacement.pageX2||(this.displacement.pageX2=n.pageX),this.displacement.pageY2||(this.displacement.pageY2=n.pageY);let r=this.getDistance({x:i.pageX,y:i.pageY},{x:n.pageX,y:n.pageY})/this.getDistance({x:this.displacement.pageX,y:this.displacement.pageY},{x:this.displacement.pageX2,y:this.displacement.pageY2}),o=this.displacement.originScale*r;o<.5?o=.5:o>3&&(o=3),this.displacement.scale=o,this.styleZoom=`scale(${o})`,this.styleOrigin="0 0"}else this.moveX=`calc(${(e.touches[0].clientX-this.startX)/this.displacement.scale}px - 50%)`,this.moveY=`calc(${(e.touches[0].clientY-this.startY)/this.displacement.scale}px - 50%)`},getDistance(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},touchstartView(e){this.isOne||(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.flag=!0,this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.startX=e.touches[0].clientX,this.startMove=this.move)},touchmoveView(e){this.isOne||(this.startX>e.touches[0].clientX?this.move<=-((this.imagesList.length-1)*100)?this.move=-((this.imagesList.length-1)*100):this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth):this.startX<e.touches[0].clientX&&this.move<0&&(this.move>=0?this.move=0:this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth)))},touchendView(){if(this.isOne)return;this.duration="transition-duration: 0.2s;transition-timing-function:ease";let e=Math.floor(Math.abs(this.move/100));Math.abs(this.move/100%1)>.5?(this.isIndex=e+2,this.move=(e+1)*100*-1):(this.isIndex=e+1,this.move=e*100*-1),this.flag=!1},handleClose(){this.$emit("update:visible",!1)}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})}}),HE="",Hc={key:0,class:"preview-image"},Wc=["src"],Yc=["src"],Xc={key:2,class:"preview-image-view--page"},Zc={class:"page-item"};function $c(e,t,i,n,r,o){return e.visible?(s.openBlock(),s.createElementBlock("div",Hc,[s.createElementVNode("div",{class:"preview-image-mask",onClick:t[0]||(t[0]=(...a)=>e.handleClose&&e.handleClose(...a))}),e.isOne?(s.openBlock(),s.createElementBlock("div",{key:1,class:"preview-image-view--one",onTouchstart:t[5]||(t[5]=(...a)=>e.handelTouchstart&&e.handelTouchstart(...a)),onTouchmove:t[6]||(t[6]=(...a)=>e.handelTouchmove&&e.handelTouchmove(...a)),style:s.normalizeStyle(`transform:${e.styleZoom} translate(${e.moveX},${e.moveY});${e.duration};${e.styleOrigin?`transformOrigin:${e.styleOrigin}`:""};`)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.imagesList,(a,l)=>(s.openBlock(),s.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Yc))),128))],36)):(s.openBlock(),s.createElementBlock("div",{key:0,class:"preview-image-view--img",style:s.normalizeStyle(`transform: translate(${e.move}%,-50%);${e.duration}`),onTouchstart:t[2]||(t[2]=(...a)=>e.touchstartView&&e.touchstartView(...a)),onTouchmove:t[3]||(t[3]=(...a)=>e.touchmoveView&&e.touchmoveView(...a)),onTouchend:t[4]||(t[4]=(...a)=>e.touchendView&&e.touchendView(...a))},[s.createElementVNode("div",{class:"preview-image-mask",onClick:t[1]||(t[1]=(...a)=>e.handleClose&&e.handleClose(...a)),style:{opacity:"0","z-index":"1"}}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.imagesList,(a,l)=>(s.openBlock(),s.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Wc))),128))],36)),e.isOne?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Xc,[s.createElementVNode("span",Zc,s.toDisplayString(e.isIndex)+"/"+s.toDisplayString(e.imagesList.length),1)])),t[7]||(t[7]=s.createElementVNode("div",{class:"preview-image-view--close"},null,-1))])):s.createCommentVNode("",!0)}const ss=oe(Kc,[["render",$c],["__scopeId","data-v-d8a210ac"]]),jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAECBJREFUeF7dW21QVFeaPu+53TQEkU+VKKDyIQ4x0k3HuMnsjFbUmcq0hOjKbkpJpVIbQzSx/DH5Mdl/82f9laxGE6tI2FQsJ5sJE60kpVu7zjrZGEVUPoMYV4gogwEUuvnsz3vO1nO9l2qwkb4NuHFvVRcU9L33vM/7vs/7cd5DbHYuYozhg0vov0vGmLJq1apliqLkE1GmoijJqqqmEtF8IkqRUibhBiIallJ6pJRDiqK4VVUdlFL2qKra3tra2skYU8OeyfX34Pn4zOgyFh3LQ6i8vFxbTE1NDRYiysvLlWvXrmVLKbOI6FHO+SIppSawECKBc25ljMVJKeM45/hp0QEICSECRBRgjAWEEEHOuReAEJFbCNHLGLtFRH9tbGzs0kHm5eXl2vpramoAekxgxAqAcZ/20tzc3OSUlJSlUsoVRFTIGMPv2YyxdCLC4iBYCIuUUqr63/B3fHABSC6l5ESk6NoGOAAJ/7sjpYTgN6SU3zPGrvp8vptXr14d1u+fsB4z2owVAE1xRUVFVs45NPyUoiibOOcrICFjLEhEhqCQ2njP5PdNtXANWCLSfgIEKSWAseJvQog2xtifrVZr/ejo6EBbW1vwQVmAZvY1NTWq0+nMEEJsJKJfMMYysTj9AwykrmUzyrjvd3XrMLgGFgWhe6WUZzjnf66vr78DFzTr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YAuPrthRck8tZbAGbFOQ2LApb/gGguUUi/QL9h5K/IXPmPg5RhGBmCvXZPyzoitAPII6ZvRgRAzTiVb85hixnrH523c4NibxTAzJ6W82xCF4C5cU3FAmD5xGgs4fb93jdyI4sy33jjsAOgcpDuSCc6WzutdT3NdwP0dFznBAVAjTiVb6qQfpnv3DCv+48uc6Ov3txUvL6n5RcMPBjHVCwAlk+NphKFbh3xExu+1v2gy5qyferdLztzM5zZtjhpz8w9r4QxbhAKgJpwKs9MAT7GZuMTc3lmyfa8WgSjWPssgOpfxT+07f762alE3XMEWlZMx85sQXl+o3e1AFjVNlF9PhVyA+C/TLWGVzx89ZuflMJ3OoAAXHlUSshnj6y3CWuocKyu24k8Y1fMCIBVAXCUFQaTwXiMPkm1K+UrTb1uTcaGiUHpzrRRGJi0rADUu2KeU5wjVC+SXUU8o2AUAAMD0IWuqHhOgj0A2G0b5u16wRlwpDttN+2W1mJ8gEogfGT3tV9MEq9kw76PQO5ktbKjYFQ2XDuRBlIA1Aage8io+q1+3GV8ao3fcbLxW4Po6cy8nR9NBN+YKfjzVVSyqf5PTVav393yJZuwigwsAqAWsU7TdktVMCQABhbkkwDeIRtd+dTIkz/96hsHSrmZyKsnxfq8scy+xWflsrnLEwYvZVAzgRsYaAKjiYimBnabFRoWACsMoJI75kEQegnoZeAIg3YmbWxDvbk3c9n2AUesSkRrMo//Bwdf9ZzE6Zx0AAAAAElFTkSuQmCC",ed=Ye({name:"ViewAttchList",components:{PreView:Fr,TopPopup:Fe,PreviewImage:ss},computed:{del(){return jr},doc(){return Qr},file(){return Ur},image(){return Gr},pdf(){return _r},xls(){return qr},zip(){return Jr}},props:{inList:{type:Array,default:()=>[]}},data(){return{listData:[],imgIcon:["jpg","jpge","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],preList:[],fileUrl:"",visible:!1,visibleImg:!1,lists:[],indexd:0}},watch:{inList:{handler(e,t){if(e.length){this.listData=e,this.lists=[];let i=[];e.map((n,r)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())}),i=e.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())),i.forEach((n,r)=>{this.lists.push(n.url)})}},immediate:!0,deep:!0}},methods:{viewFile(e){this.imgIcon.includes(e.url.substring(e.url.lastIndexOf(".")+1).toLowerCase())?(this.visibleImg=!0,this.indexd=this.lists.indexOf(e.url)):(this.fileUrl=e.url,this.visible=!0)},loadFile(e){var t;if(Gn.default.hasNativeMethod("vueUpLoadFile"))Gn.default.call("vueUpLoadFile",e.url);else{if(typeof nativeMethod<"u"&&(nativeMethod==null?void 0:nativeMethod.vueUpLoadFile))return nativeMethod.vueUpLoadFile(e.url),!1;const i=document.createElement("a");i.download=(t=e.url)==null?void 0:t.match(/([^\/]+)$/g)[0],i.href=e.url,i.click()}}}}),WE="",td={class:"process-wrap"},id={key:0,class:"attch-list"},sd={class:"list-items-icon"},nd=["src"],rd=["src"],od=["src"],ad=["src"],ld=["src"],cd=["src"],dd=["onClick"],pd={class:"info-name"},hd={class:"info-name-text"},ud={class:"info-attribute"},md={class:"info-attribute-time"},fd={class:"info-attribute-size"},gd=["onClick"],yd={key:1,class:"attch-list"};function Ad(e,t,i,n,r,o){const a=s.resolveComponent("PreView"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("PreviewImage");return s.openBlock(),s.createElementBlock("div",td,[e.listData.length>0?(s.openBlock(),s.createElementBlock("div",id,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.listData,(m,u)=>(s.openBlock(),s.createElementBlock("div",{key:m.id,class:"list-items"},[s.createElementVNode("div",sd,[e.xlsIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,nd)):e.imgIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,rd)):m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,od)):e.docIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,ad)):e.zipIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,ld)):(s.openBlock(),s.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,cd))]),s.createElementVNode("div",{class:"list-items-info",onClick:p=>e.viewFile(m)},[s.createElementVNode("div",pd,[s.createElementVNode("span",hd,s.toDisplayString(m.name),1)]),s.createElementVNode("div",ud,[s.createElementVNode("span",md,s.toDisplayString(m.uploadTime),1),s.createElementVNode("span",fd,s.toDisplayString(m.size<1024?m.size:m.size/1024>1024?parseFloat((m.size/1024/1024).toFixed(2)):parseFloat((m.size/1024).toFixed(2)))+s.toDisplayString(m.size<1024?"b":parseFloat((m.size/1024).toFixed(2))<1024?"kb":"M"),1)])],8,dd),s.createElementVNode("div",{class:"list-items-download",onClick:p=>e.loadFile(m)},[...t[2]||(t[2]=[s.createElementVNode("span",{class:"download-text"},"\u4E0B\u8F7D",-1)])],8,gd)]))),128))])):(s.openBlock(),s.createElementBlock("div",yd,[...t[3]||(t[3]=[s.createElementVNode("div",{class:"attch-list--white"},[s.createElementVNode("div",{class:"attch-list--label"},"\u6682\u65E0\u9644\u4EF6")],-1)])])),s.createVNode(l,{visible:e.visible,"onUpdate:visible":t[0]||(t[0]=m=>e.visible=m),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:s.withCtx(()=>[s.createVNode(a,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"]),s.createVNode(c,{images:e.lists,visible:e.visibleImg,"onUpdate:visible":t[1]||(t[1]=m=>e.visibleImg=m),indexd:e.indexd},null,8,["images","visible","indexd"])])}const zr=oe(ed,[["render",Ad],["__scopeId","data-v-e0d8023e"]]);function rt(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const Bi=Object.prototype.toString,kd=Object.prototype.hasOwnProperty;function tn(e){return e===void 0}function oi(e){return e!==void 0}function Kr(e){return e==null}function Xe(e){return Bi.call(e)==="[object Array]"}function Qt(e){return Bi.call(e)==="[object Object]"}function Nt(e){return Bi.call(e)==="[object Number]"}function Tt(e){const t=Bi.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function Ze(e){return Bi.call(e)==="[object String]"}function ai(e,t){return!Kr(e)&&kd.call(e,t)}function $e(e,t){const i=sn(t);let n;return R(e,function(r,o){if(i(r,o))return n=r,!1}),n}function bd(e,t){const i=sn(t);let n=Xe(e)?-1:void 0;return R(e,function(r,o){if(i(r,o))return n=o,!1}),n}function li(e,t){const i=sn(t);let n=[];return R(e,function(r,o){i(r,o)&&n.push(r)}),n}function R(e,t){let i,n;if(tn(e))return;const r=Xe(e)?wd:Cd;for(let o in e)if(ai(e,o)&&(i=e[o],n=t(i,r(o)),n===!1))return i}function ci(e,t,i){return R(e,function(n,r){i=t(i,n,r)}),i}function Hr(e,t){return!!ci(e,function(i,n,r){return i&&t(n,r)},!0)}function Wr(e,t){return!!$e(e,t)}function Ed(e,t){let i=[];return R(e,function(n,r){i.push(t(n,r))}),i}function Yr(e){return function(t){return Hr(e,function(i,n){return t[n]===i})}}function sn(e){return Tt(e)?e:t=>t===e}function Cd(e){return e}function wd(e){return Number(e)}function Nd(e,t){let i,n,r,o;function a(p){let y=Date.now(),k=p?0:o+t-y;if(k>0)return l(k);e.apply(r,n),c()}function l(p){i=setTimeout(a,p)}function c(){i&&clearTimeout(i),i=o=n=r=void 0}function m(){i&&a(!0),c()}function u(...p){o=Date.now(),n=p,r=this,i||l(t)}return u.flush=m,u.cancel=c,u}function It(e,t){return e.bind(t)}function q(e,...t){return Object.assign(e,...t)}function Td(e,t,i){let n=e;return R(t,function(r,o){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let a=t[o+1],l=n[r];oi(a)&&Kr(l)&&(l=n[r]=isNaN(+a)?{}:[]),tn(a)?tn(i)?delete n[r]:n[r]=i:n=l}),e}function Id(e,t){let i={},n=Object(e);return R(t,function(r){r in n&&(i[r]=e[r])}),i}function Bd(e,t){let i={},n=Object(e);return R(n,function(r,o){t.indexOf(o)===-1&&(i[o]=r)}),i}var xd=1e3;function dt(e,t){var i=this;t=t||xd,e.on(["render.shape","render.connection"],t,function(n,r){var o=n.type,a=r.element,l=r.gfx,c=r.attrs;if(i.canRender(a))return o==="render.shape"?i.drawShape(l,a,c):i.drawConnection(l,a,c)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(n,r){if(i.canRender(r))return n.type==="render.getShapePath"?i.getShapePath(r):i.getConnectionPath(r)})}dt.prototype.canRender=function(e){},dt.prototype.drawShape=function(e,t){},dt.prototype.drawConnection=function(e,t){},dt.prototype.getShapePath=function(e){},dt.prototype.getConnectionPath=function(e){};function U(e,t){var i=pe(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(t)}function Sd(e,t){return Wr(t,function(i){return U(e,i)})}function pe(e){return e&&e.businessObject||e}function Ut(e){return e&&e.di}function Gt(e,t){return U(e,"bpmn:CallActivity")?!1:U(e,"bpmn:SubProcess")?(t=t||Ut(e),t&&U(t,"bpmndi:BPMNPlane")?!0:t&&!!t.isExpanded):U(e,"bpmn:Participant")?!!pe(e).processRef:!0}function Xr(e){if(!(!U(e,"bpmn:Participant")&&!U(e,"bpmn:Lane"))){var t=Ut(e).isHorizontal;return t===void 0?!0:t}}function Dd(e){return e&&!!pe(e).triggeredByEvent}function Pd(e){return Qt(e)&&ai(e,"waypoints")}var ns={width:90,height:20},Zr=15;function Md(e){return U(e,"bpmn:Event")||U(e,"bpmn:Gateway")||U(e,"bpmn:DataStoreReference")||U(e,"bpmn:DataObjectReference")||U(e,"bpmn:DataInput")||U(e,"bpmn:DataOutput")||U(e,"bpmn:SequenceFlow")||U(e,"bpmn:MessageFlow")||U(e,"bpmn:Group")}function Vd(e){var t=e.length/2-1,i=e[Math.floor(t)],n=e[Math.ceil(t+.01)],r=Od(e),o=Math.atan((n.y-i.y)/(n.x-i.x)),a=r.x,l=r.y;return Math.abs(o)<Math.PI/2?l-=Zr:a+=Zr,{x:a,y:l}}function Od(e){var t=e.length/2-1,i=e[Math.floor(t)],n=e[Math.ceil(t+.01)];return{x:i.x+(n.x-i.x)/2,y:i.y+(n.y-i.y)/2}}function Rd(e){return e.waypoints?Vd(e.waypoints):U(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+ns.height/2}:{x:e.x+e.width/2,y:e.y+e.height+ns.height/2}}function Ld(e,t){var i,n,r,o=e.label;return o&&o.bounds?(r=o.bounds,n={width:Math.max(ns.width,r.width),height:r.height},i={x:r.x+r.width/2,y:r.y+r.height/2}):(i=Rd(t),n=ns),q({x:i.x-n.width/2,y:i.y-n.height/2},n)}function vd(e){if(U(e,"bpmn:FlowElement")||U(e,"bpmn:Participant")||U(e,"bpmn:Lane")||U(e,"bpmn:SequenceFlow")||U(e,"bpmn:MessageFlow")||U(e,"bpmn:DataInput")||U(e,"bpmn:DataOutput"))return"name";if(U(e,"bpmn:TextAnnotation"))return"text";if(U(e,"bpmn:Group"))return"categoryValueRef"}function Fd(e){var t=e.categoryValueRef;return t&&t.value||""}function rs(e){var t=e.businessObject,i=vd(t);if(i)return i==="categoryValueRef"?Fd(t):t[i]||""}function jd(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch{}return e}function $r(e,t){return t.appendChild(jd(e,t))}function he(e,t){return $r(t,e),e}var nn=2,eo={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":nn,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":nn,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Qd(e,t){return eo[t]?e.style[t]:e.getAttributeNS(null,t)}function to(e,t,i){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=eo[n];r?(r===nn&&typeof i=="number"&&(i=String(i)+"px"),e.style[n]=i):e.setAttributeNS(null,t,i)}function Ud(e,t){var i=Object.keys(t),n,r;for(n=0,r;r=i[n];n++)to(e,r,t[r])}function ne(e,t,i){if(typeof t=="string")if(i!==void 0)to(e,t,i);else return Qd(e,t);else Ud(e,t);return e}const Gd=Object.prototype.toString;function je(e){return new Bt(e)}function Bt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Bt.prototype.add=function(e){return this.list.add(e),this},Bt.prototype.remove=function(e){return Gd.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Bt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},Bt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Bt.prototype.array=function(){return Array.from(this.list)},Bt.prototype.has=Bt.prototype.contains=function(e){return this.list.contains(e)};function io(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}var rn={svg:"http://www.w3.org/2000/svg"},so='<svg xmlns="'+rn.svg+'"';function no(e){var t=!1;e.substring(0,4)==="<svg"?e.indexOf(rn.svg)===-1&&(e=so+e.substring(4)):(e=so+">"+e+"</svg>",t=!0);var i=_d(e);if(!t)return i;for(var n=document.createDocumentFragment(),r=i.firstChild;r.firstChild;)n.appendChild(r.firstChild);return n}function _d(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}function re(e,t){var i;return e=e.trim(),e.charAt(0)==="<"?(i=no(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(rn.svg,e),t&&ne(i,t),i}var on=null;function an(){return on===null&&(on=re("svg")),on}function ro(e,t){var i,n,r=Object.keys(t);for(i=0;n=r[i];i++)e[n]=t[n];return e}function qd(e,t,i,n,r,o){var a=an().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return ro(a,e);case 6:return ro(a,{a:e,b:t,c:i,d:n,e:r,f:o})}}function xi(e){return e?an().createSVGTransformFromMatrix(e):an().createSVGTransform()}var oo=/([&<>]{1})/g,Jd=/([&<>\n\r"]{1})/g,zd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function ln(e,t){function i(n,r){return zd[r]||r}return e.replace(t,i)}function ao(e,t){var i,n,r,o,a;switch(e.nodeType){case 3:t.push(ln(e.textContent,oo));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(r=e.attributes,i=0,n=r.length;i<n;++i)o=r.item(i),t.push(" ",o.name,'="',ln(o.value,Jd),'"');if(e.hasChildNodes()){for(t.push(">"),a=e.childNodes,i=0,n=a.length;i<n;++i)ao(a.item(i),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("<!--",ln(e.nodeValue,oo),"-->");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Kd(e,t){var i=no(t);if(io(e),!!t){Wd(i)||(i=i.documentElement);for(var n=Yd(i.childNodes),r=0;r<n.length;r++)$r(n[r],e)}}function Hd(e){for(var t=e.firstChild,i=[];t;)ao(t,i),t=t.nextSibling;return i.join("")}function Wd(e){return e.nodeName==="#document-fragment"}function lo(e,t){if(t!==void 0){try{Kd(e,t)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return Hd(e)}function Yd(e){return Array.prototype.slice.call(e)}function Si(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Xd(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function Zd(e,t){var i,n;for(e.clear(),i=0;n=t[i];i++)e.appendItem(Xd(e,n))}function Di(e,t){var i=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),Zd(i,t)),i.consolidate()}function _t(e){return e.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function $d(e){return["M",e.x,e.y]}function cn(e){return["L",e.x,e.y]}function ep(e,t,i){return["C",e.x,e.y,t.x,t.y,i.x,i.y]}function tp(e,t){const i=e.length,n=[$d(e[0])];for(let r=1;r<i;r++){const o=e[r-1],a=e[r],l=e[r+1];if(!l||!t){n.push(cn(a));continue}const c=Math.min(t,dn(a.x-o.x,a.y-o.y),dn(l.x-a.x,l.y-a.y));if(!c){n.push(cn(a));continue}const m=os(a,o,c),u=os(a,o,c*.5),p=os(a,l,c),y=os(a,l,c*.5);n.push(cn(m)),n.push(ep(u,y,p))}return n}function os(e,t,i){const n=t.x-e.x,r=t.y-e.y,o=dn(n,r),a=i/o;return{x:e.x+n*a,y:e.y+r*a}}function dn(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function pn(e,t,i){Nt(t)&&(i=t,t=null),t||(t={});const n=re("path",t);return Nt(i)&&(n.dataset.cornerRadius=String(i)),co(n,e)}function co(e,t){const i=parseInt(e.dataset.cornerRadius,10)||0;return ne(e,{d:_t(tp(t,i))}),e}var hn="hsl(225, 10%, 15%)",ip="white";function ot(e,t){return Wr(e.eventDefinitions,function(i){return i.$type===t})}function sp(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function np(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function H(e,t,i){var n=Ut(e);return i||n.get("color:background-color")||n.get("bioc:fill")||t||ip}function P(e,t,i){var n=Ut(e);return i||n.get("color:border-color")||n.get("bioc:stroke")||t||hn}function Pi(e,t,i,n){var r=Ut(e),o=r.get("label");return n||o&&o.get("color:color")||t||P(e,i)}function rp(e){var t=e.x+e.width/2,i=e.y+e.height/2,n=e.width/2,r=[["M",t,i],["m",0,-n],["a",n,n,0,1,1,0,2*n],["a",n,n,0,1,1,0,-2*n],["z"]];return _t(r)}function op(e,t){var i=e.x,n=e.y,r=e.width,o=e.height,a=[["M",i+t,n],["l",r-t*2,0],["a",t,t,0,0,1,t,t],["l",0,o-t*2],["a",t,t,0,0,1,-t,t],["l",t*2-r,0],["a",t,t,0,0,1,-t,-t],["l",0,t*2-o],["a",t,t,0,0,1,t,-t],["z"]];return _t(a)}function ap(e){var t=e.width,i=e.height,n=e.x,r=e.y,o=t/2,a=i/2,l=[["M",n+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return _t(l)}function lp(e){var t=e.x,i=e.y,n=e.width,r=e.height,o=[["M",t,i],["l",n,0],["l",0,r],["l",-n,0],["z"]];return _t(o)}function Mi(e,t={}){return{width:Je(e,t),height:Oe(e,t)}}function Je(e,t={}){return ai(t,"width")?t.width:e.width}function Oe(e,t={}){return ai(t,"height")?t.height:e.height}function cp(e,t){return t.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return i[n]}})}})}),Object.freeze(e)}const dp=Object.prototype.toString,pp=Object.prototype.hasOwnProperty;function hp(e){return e===void 0}function up(e){return dp.call(e)==="[object Array]"}function mp(e,t){return pp.call(e,t)}function po(e,t){let i,n;if(hp(e))return;const r=up(e)?gp:fp;for(let o in e)if(mp(e,o)&&(i=e[o],n=t(i,r(o)),n===!1))return i}function fp(e){return e}function gp(e){return Number(e)}function be(e,...t){const i=e.style;return po(t,function(n){!n||po(n,function(r,o){i[o]=r})}),e}function ho(e,t,i){return arguments.length==2?e.getAttribute(t):i===null?e.removeAttribute(t):(e.setAttribute(t,i),e)}const yp=Object.prototype.toString;function qt(e){return new xt(e)}function xt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}xt.prototype.add=function(e){return this.list.add(e),this},xt.prototype.remove=function(e){return yp.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},xt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},xt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},xt.prototype.array=function(){return Array.from(this.list)},xt.prototype.has=xt.prototype.contains=function(e){return this.list.contains(e)};function uo(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function mo(e,t,i){var n=i?e:e.parentNode;return n&&typeof n.closest=="function"&&n.closest(t)||null}var as={},ls,un,mn;function fo(){ls=window.addEventListener?"addEventListener":"attachEvent",un=window.removeEventListener?"removeEventListener":"detachEvent",mn=ls!=="addEventListener"?"on":""}var Ap=as.bind=function(e,t,i,n){return ls||fo(),e[ls](mn+t,i,n||!1),i},kp=as.unbind=function(e,t,i,n){return un||fo(),e[un](mn+t,i,n||!1),i},Jt=cp({__proto__:null,bind:Ap,unbind:kp,default:as},[as]),go=["focus","blur"];function bp(e,t,i,n,r){return go.indexOf(i)!==-1&&(r=!0),Jt.bind(e,i,function(o){var a=o.target||o.srcElement;o.delegateTarget=mo(a,t,!0),o.delegateTarget&&n.call(e,o)},r)}function Ep(e,t,i,n){return go.indexOf(t)!==-1&&(n=!0),Jt.unbind(e,t,i,n)}var di={bind:bp,unbind:Ep},Cp=wp,yo=!1,cs;typeof document<"u"&&(cs=document.createElement("div"),cs.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',yo=!cs.getElementsByTagName("link").length,cs=void 0);var me={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:yo?[1,"X<div>","</div>"]:[0,"",""]};me.td=me.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],me.option=me.optgroup=[1,'<select multiple="multiple">',"</select>"],me.thead=me.tbody=me.colgroup=me.caption=me.tfoot=[1,"<table>","</table>"],me.polyline=me.ellipse=me.polygon=me.circle=me.text=me.line=me.path=me.rect=me.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function wp(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var i=/<([\w:]+)/.exec(e);if(!i)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var n=i[1];if(n=="body"){var c=t.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var r=Object.prototype.hasOwnProperty.call(me,n)?me[n]:me._default,o=r[0],a=r[1],l=r[2],c=t.createElement("div");for(c.innerHTML=a+e+l;o--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var m=t.createDocumentFragment();c.firstChild;)m.appendChild(c.removeChild(c.firstChild));return m}var Qe=Cp;function et(e,t){return t=t||document,t.querySelector(e)}function Np(e,t){return t=t||document,t.querySelectorAll(e)}function pi(e){e.parentNode&&e.parentNode.removeChild(e)}function fn(e,t,i,n,r){var o=xi();o.setTranslate(t,i);var a=xi();a.setRotate(n||0,0,0);var l=xi();l.setScale(r||1,r||1),Di(e,[o,a,l])}function Ao(e,t,i){var n=xi();n.setTranslate(t,i),Di(e,n)}function Tp(e,t){var i=xi();i.setRotate(t,0,0),Di(e,i)}function Ip(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Bp=Ip(function(e){var t=e.exports=function(i,n){if(n||(n=16),i===void 0&&(i=128),i<=0)return"0";for(var r=Math.log(Math.pow(2,i))/Math.log(n),o=2;r===1/0;o*=2)r=Math.log(Math.pow(2,i/o))/Math.log(n)*o;for(var a=r-Math.floor(r),l="",o=0;o<Math.floor(r);o++){var c=Math.floor(Math.random()*n).toString(n);l=c+l}if(a){var m=Math.pow(n,a),c=Math.floor(Math.random()*m).toString(n);l=c+l}var u=parseInt(l,n);return u!==1/0&&u>=Math.pow(2,i)?t(i,n):l};t.rack=function(i,n,r){var o=function(l){var c=0;do{if(c++>10)if(r)i+=r;else throw new Error("too many ID collisions, use more bits");var m=t(i,n)}while(Object.hasOwnProperty.call(a,m));return a[m]=l,m},a=o.hats={};return o.get=function(l){return o.hats[l]},o.set=function(l,c){return o.hats[l]=c,o},o.bits=i||128,o.base=n||16,o}});function pt(e){if(!(this instanceof pt))return new pt(e);e=e||[128,36,1],this._seed=e.length?Bp.rack(e[0],e[1],e[2]):e}pt.prototype.next=function(e){return this._seed(e||!0)},pt.prototype.nextPrefixed=function(e,t){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,t),i},pt.prototype.claim=function(e,t){this._seed.set(e,t||!0)},pt.prototype.assigned=function(e){return this._seed.get(e)||!1},pt.prototype.unclaim=function(e){delete this._seed.hats[e]},pt.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};var xp=new pt,Sp=10,ds=3,Dp=1.5,ps=10,hi=.95,Pp=1,Mp=.25;function zt(e,t,i,n,r,o,a){dt.call(this,t,a);var l=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,m=e&&e.defaultLabelColor,u=xp.next(),p={};function y(f){return i.computeStyle(f,{strokeLinecap:"round",strokeLinejoin:"round",stroke:hn,strokeWidth:2,fill:"white"})}function k(f){return i.computeStyle(f,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:hn,strokeWidth:2})}function C(f,d){var{ref:h={x:0,y:0},scale:g=1,element:A}=d,E=re("marker",{id:f,viewBox:"0 0 20 20",refX:h.x,refY:h.y,markerWidth:20*g,markerHeight:20*g,orient:"auto"});he(E,A);var Q=et("defs",r._svg);Q||(Q=re("defs"),he(r._svg,Q)),he(Q,E),p[f]=E}function v(f){return f.replace(/[^0-9a-zA-Z]+/g,"_")}function F(f,d,h){var g=f+"-"+v(d)+"-"+v(h)+"-"+u;return p[g]||z(g,f,d,h),"url(#"+g+")"}function z(f,d,h,g){if(d==="sequenceflow-end"){var A=re("path",{d:"M 1 5 L 11 10 L 1 15 Z",...y({fill:g,stroke:g,strokeWidth:1})});C(f,{element:A,ref:{x:11,y:10},scale:.5})}if(d==="messageflow-start"){var E=re("circle",{cx:6,cy:6,r:3.5,...y({fill:h,stroke:g,strokeWidth:1,strokeDasharray:[1e4,1]})});C(f,{element:E,ref:{x:6,y:6}})}if(d==="messageflow-end"){var Q=re("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...y({fill:h,stroke:g,strokeWidth:1,strokeDasharray:[1e4,1]})});C(f,{element:Q,ref:{x:8.5,y:5}})}if(d==="association-start"){var Z=re("path",{d:"M 11 5 L 1 10 L 11 15",...k({fill:"none",stroke:g,strokeWidth:1.5,strokeDasharray:[1e4,1]})});C(f,{element:Z,ref:{x:1,y:10},scale:.5})}if(d==="association-end"){var Y=re("path",{d:"M 1 5 L 11 10 L 1 15",...k({fill:"none",stroke:g,strokeWidth:1.5,strokeDasharray:[1e4,1]})});C(f,{element:Y,ref:{x:11,y:10},scale:.5})}if(d==="conditional-flow-marker"){var $=re("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...y({fill:h,stroke:g})});C(f,{element:$,ref:{x:-1,y:10},scale:.5})}if(d==="conditional-default-flow-marker"){var ye=re("path",{d:"M 6 4 L 10 16",...y({stroke:g})});C(f,{element:ye,ref:{x:0,y:10},scale:.5})}}function j(f,d,h,g,A={}){Qt(g)&&(A=g,g=0),g=g||0,A=y(A);var E=d/2,Q=h/2,Z=re("circle",{cx:E,cy:Q,r:Math.round((d+h)/4-g),...A});return he(f,Z),Z}function I(f,d,h,g,A,E){Qt(A)&&(E=A,A=0),A=A||0,E=y(E);var Q=re("rect",{x:A,y:A,width:d-A*2,height:h-A*2,rx:g,ry:g,...E});return he(f,Q),Q}function b(f,d,h,g){var A=d/2,E=h/2,Q=[{x:A,y:0},{x:d,y:E},{x:A,y:h},{x:0,y:E}],Z=Q.map(function($){return $.x+","+$.y}).join(" ");g=y(g);var Y=re("polygon",{...g,points:Z});return he(f,Y),Y}function x(f,d,h,g){h=k(h);var A=pn(d,h,g);return he(f,A),A}function S(f,d,h){return x(f,d,h,5)}function D(f,d,h){h=k(h);var g=re("path",{...h,d});return he(f,g),g}function w(f,d,h,g){return D(d,h,q({"data-marker":f},g))}function V(f){return de[f]}function B(f){return function(d,h,g){return V(f)(d,h,g)}}var O={"bpmn:MessageEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width,containerHeight:d.height,position:{mx:.235,my:.315}}),E=g?P(d,c,h.stroke):H(d,l,h.fill),Q=g?H(d,l,h.fill):P(d,c,h.stroke),Z=D(f,A,{fill:E,stroke:Q,strokeWidth:1});return Z},"bpmn:TimerEventDefinition":function(f,d,h={}){var g=j(f,d.width,d.height,.2*d.height,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:2}),A=n.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.5}});D(f,A,{stroke:P(d,c,h.stroke),strokeWidth:2});for(var E=0;E<12;E++){var Q=n.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.5}}),Z=d.width/2,Y=d.height/2;D(f,Q,{strokeWidth:1,stroke:P(d,c,h.stroke),transform:"rotate("+E*30+","+Y+","+Z+")"})}return g},"bpmn:EscalationEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.2}}),E=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:E,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(f,d,h={}){var g=n.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.222}});return D(f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.57,my:.263}}),E=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:E,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width,containerHeight:d.height,position:{mx:.2,my:.722}}),E=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:E,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.638,my:-.055}}),E=g?P(d,c,h.stroke):"none",Q=D(f,A,{fill:E,stroke:P(d,c,h.stroke),strokeWidth:1});return Tp(Q,45),Q},"bpmn:CompensateEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.22,my:.5}}),E=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:E,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.2}}),E=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{strokeWidth:1,fill:E,stroke:P(d,c,h.stroke)})},"bpmn:MultipleEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width,containerHeight:d.height,position:{mx:.222,my:.36}}),E=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:E,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(f,d,h={}){var g=n.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:d.width,containerHeight:d.height,position:{mx:.458,my:.194}});return D(f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(f,d,h={}){var g=j(f,d.width,d.height,8,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:4});return g}};function M(f,d,h={}){var g=pe(f),A=sp(g);return g.get("eventDefinitions")&&g.get("eventDefinitions").length>1?g.get("parallelMultiple")?O["bpmn:ParallelMultipleEventDefinition"](d,f,h,A):O["bpmn:MultipleEventDefinition"](d,f,h,A):ot(g,"bpmn:MessageEventDefinition")?O["bpmn:MessageEventDefinition"](d,f,h,A):ot(g,"bpmn:TimerEventDefinition")?O["bpmn:TimerEventDefinition"](d,f,h,A):ot(g,"bpmn:ConditionalEventDefinition")?O["bpmn:ConditionalEventDefinition"](d,f,h,A):ot(g,"bpmn:SignalEventDefinition")?O["bpmn:SignalEventDefinition"](d,f,h,A):ot(g,"bpmn:EscalationEventDefinition")?O["bpmn:EscalationEventDefinition"](d,f,h,A):ot(g,"bpmn:LinkEventDefinition")?O["bpmn:LinkEventDefinition"](d,f,h,A):ot(g,"bpmn:ErrorEventDefinition")?O["bpmn:ErrorEventDefinition"](d,f,h,A):ot(g,"bpmn:CancelEventDefinition")?O["bpmn:CancelEventDefinition"](d,f,h,A):ot(g,"bpmn:CompensateEventDefinition")?O["bpmn:CompensateEventDefinition"](d,f,h,A):ot(g,"bpmn:TerminateEventDefinition")?O["bpmn:TerminateEventDefinition"](d,f,h,A):null}var G={ParticipantMultiplicityMarker:function(f,d,h={}){var g=Je(d,h),A=Oe(d,h),E=n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2-6)/g,my:(A-15)/A}});w("participant-multiplicity",f,E,{strokeWidth:2,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},SubProcessMarker:function(f,d,h={}){var g=I(f,14,14,0,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)});Ao(g,d.width/2-7.5,d.height-20);var A=n.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2-7.5)/d.width,my:(d.height-20)/d.height}});w("sub-process",f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},ParallelMarker:function(f,d,h){var g=Je(d,h),A=Oe(d,h),E=n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.parallel)/g,my:(A-20)/A}});w("parallel",f,E,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},SequentialMarker:function(f,d,h){var g=n.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2+h.seq)/d.width,my:(d.height-19)/d.height}});w("sequential",f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},CompensationMarker:function(f,d,h){var g=n.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2+h.compensation)/d.width,my:(d.height-13)/d.height}});w("compensation",f,g,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},LoopMarker:function(f,d,h){var g=Je(d,h),A=Oe(d,h),E=n.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.loop)/g,my:(A-7)/A}});w("loop",f,E,{strokeWidth:1.5,fill:"none",stroke:P(d,c,h.stroke),strokeMiterlimit:.5})},AdhocMarker:function(f,d,h){var g=Je(d,h),A=Oe(d,h),E=n.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.adhoc)/g,my:(A-15)/A}});w("adhoc",f,E,{strokeWidth:1,fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke)})}};function K(f,d,h,g){G[f](d,h,g)}function it(f,d,h,g={}){g={fill:g.fill,stroke:g.stroke,width:Je(d,g),height:Oe(d,g)};var A=pe(d),E=h&&h.includes("SubProcessMarker");E?g={...g,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:g={...g,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},R(h,function(Y){K(Y,f,d,g)}),A.get("isForCompensation")&&K("CompensationMarker",f,d,g),U(A,"bpmn:AdHocSubProcess")&&K("AdhocMarker",f,d,g);var Q=A.get("loopCharacteristics"),Z=Q&&Q.get("isSequential");Q&&(Z===void 0&&K("LoopMarker",f,d,g),Z===!1&&K("ParallelMarker",f,d,g),Z===!0&&K("SequentialMarker",f,d,g))}function ie(f,d,h={}){h=q({size:{width:100}},h);var g=o.createText(d||"",h);return je(g).add("djs-label"),he(f,g),g}function X(f,d,h,g={}){var A=pe(d),E=Mi({x:d.x,y:d.y,width:d.width,height:d.height},g);return ie(f,A.name,{align:h,box:E,padding:7,style:{fill:Pi(d,m,c,g.stroke)}})}function lt(f,d,h={}){var g={width:90,height:30,x:d.width/2+d.x,y:d.height/2+d.y};return ie(f,rs(d),{box:g,fitBox:!0,style:q({},o.getExternalStyle(),{fill:Pi(d,m,c,h.stroke)})})}function ct(f,d,h,g={}){var A=Xr(h),E=ie(f,d,{box:{height:30,width:A?Oe(h,g):Je(h,g)},align:"center-middle",style:{fill:Pi(h,m,c,g.stroke)}});if(A){var Q=-1*Oe(h,g);fn(E,0,-Q,270)}}function ge(f,d,h={}){var{width:g,height:A}=Mi(d,h);return I(f,g,A,ps,{...h,fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke)})}function ft(f,d,h={}){var g=pe(d),A=H(d,l,h.fill),E=P(d,c,h.stroke);return(g.get("associationDirection")==="One"||g.get("associationDirection")==="Both")&&(h.markerEnd=F("association-end",A,E)),g.get("associationDirection")==="Both"&&(h.markerStart=F("association-start",A,E)),h=W(h,["markerStart","markerEnd"]),S(f,d.waypoints,{...h,stroke:E,strokeDasharray:"0, 5"})}function gt(f,d,h={}){var g=H(d,l,h.fill),A=P(d,c,h.stroke),E=n.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.474,my:.296}}),Q=D(f,E,{fill:g,fillOpacity:hi,stroke:A}),Z=pe(d);if(np(Z)){var Y=n.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.33,my:(d.height-18)/d.height}});D(f,Y,{strokeWidth:2,fill:g,stroke:A})}return Q}function N(f,d,h={}){return j(f,d.width,d.height,{fillOpacity:hi,...h,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})}function T(f,d,h={}){return b(f,d.width,d.height,{fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke)})}function L(f,d,h={}){var g=I(f,Je(d,h),Oe(d,h),0,{fill:H(d,l,h.fill),fillOpacity:h.fillOpacity||hi,stroke:P(d,c,h.stroke),strokeWidth:1.5}),A=pe(d);if(U(A,"bpmn:Lane")){var E=A.get("name");ct(f,E,d,h)}return g}function ce(f,d,h={}){var g=ge(f,d,h);Dd(d)&&ne(g,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var A=Gt(d);return X(f,d,A?"center-top":"center-middle",h),A?it(f,d,void 0,h):it(f,d,["SubProcessMarker"],h),g}function ke(f,d,h={}){var g=ge(f,d,h);return X(f,d,"center-middle",h),it(f,d,void 0,h),g}var de=this.handlers={"bpmn:AdHocSubProcess":function(f,d,h={}){return Gt(d)?h=W(h,["fill","stroke","width","height"]):h=W(h,["fill","stroke"]),ce(f,d,h)},"bpmn:Association":function(f,d,h={}){return h=W(h,["fill","stroke"]),ft(f,d,h)},"bpmn:BoundaryEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=pe(d),E=A.get("cancelActivity");h={strokeWidth:1.5,fill:H(d,l,h.fill),fillOpacity:Pp,stroke:P(d,c,h.stroke)},E||(h.strokeDasharray="6");var Q=N(f,d,h);return j(f,d.width,d.height,ds,{...h,fill:"none"}),g&&M(d,f,h),Q},"bpmn:BusinessRuleTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),E=D(f,A);ne(E,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1});var Q=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Z=D(f,Q);return ne(Z,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:CallActivity":function(f,d,h={}){return h=W(h,["fill","stroke"]),ce(f,d,{strokeWidth:5,...h})},"bpmn:ComplexGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h),A=n.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:d.width,containerHeight:d.height,position:{mx:.46,my:.26}});return D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:DataInput":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=n.getRawPath("DATA_ARROW"),A=gt(f,d,h);return D(f,g,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1}),A},"bpmn:DataInputAssociation":function(f,d,h={}){return h=W(h,["fill","stroke"]),ft(f,d,{...h,markerEnd:F("association-end",H(d,l,h.fill),P(d,c,h.stroke))})},"bpmn:DataObject":function(f,d,h={}){return h=W(h,["fill","stroke"]),gt(f,d,h)},"bpmn:DataObjectReference":B("bpmn:DataObject"),"bpmn:DataOutput":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=n.getRawPath("DATA_ARROW"),A=gt(f,d,h);return D(f,g,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)}),A},"bpmn:DataOutputAssociation":function(f,d,h={}){return h=W(h,["fill","stroke"]),ft(f,d,{...h,markerEnd:F("association-end",H(d,l,h.fill),P(d,c,h.stroke))})},"bpmn:DataStoreReference":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=n.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:0,my:.133}});return D(f,g,{fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke),strokeWidth:2})},"bpmn:EndEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=N(f,d,{...h,strokeWidth:4});return g&&M(d,f,h),A},"bpmn:EventBasedGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=pe(d),A=T(f,d,h);j(f,d.width,d.height,d.height*.2,{fill:H(d,"none",h.fill),stroke:P(d,c,h.stroke),strokeWidth:1});var E=g.get("eventGatewayType"),Q=!!g.get("instantiate");function Z(){var $=n.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:d.width,containerHeight:d.height,position:{mx:.36,my:.44}});D(f,$,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:2})}if(E==="Parallel"){var Y=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:d.width,containerHeight:d.height,position:{mx:.474,my:.296}});D(f,Y,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1})}else E==="Exclusive"&&(Q||j(f,d.width,d.height,d.height*.26,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1}),Z());return A},"bpmn:ExclusiveGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h),A=n.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:d.width,containerHeight:d.height,position:{mx:.32,my:.3}}),E=Ut(d);return E.get("isMarkerVisible")&&D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:Gateway":function(f,d,h={}){return h=W(h,["fill","stroke"]),T(f,d,h)},"bpmn:Group":function(f,d,h={}){return h=W(h,["fill","stroke","width","height"]),I(f,d.width,d.height,ps,{stroke:P(d,c,h.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:Je(d,h),height:Oe(d,h)})},"bpmn:InclusiveGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h);return j(f,d.width,d.height,d.height*.24,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:2.5}),g},"bpmn:IntermediateEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=N(f,d,{...h,strokeWidth:1.5});return j(f,d.width,d.height,ds,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1.5}),g&&M(d,f,h),A},"bpmn:IntermediateCatchEvent":B("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":B("bpmn:IntermediateEvent"),"bpmn:Lane":function(f,d,h={}){return h=W(h,["fill","stroke","width","height"]),L(f,d,{...h,fillOpacity:Mp})},"bpmn:ManualTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5}),g},"bpmn:MessageFlow":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=pe(d),A=Ut(d),E=H(d,l,h.fill),Q=P(d,c,h.stroke),Z=S(f,d.waypoints,{markerEnd:F("messageflow-end",E,Q),markerStart:F("messageflow-start",E,Q),stroke:Q,strokeDasharray:"10, 11",strokeWidth:1.5});if(g.get("messageRef")){var Y=Z.getPointAtLength(Z.getTotalLength()/2),$=n.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Y.x,y:Y.y}}),ye={strokeWidth:1};A.get("messageVisibleKind")==="initiating"?(ye.fill=E,ye.stroke=Q):(ye.fill=Q,ye.stroke=E);var ee=D(f,$,ye),Vt=g.get("messageRef"),Bs=Vt.get("name"),Le=ie(f,Bs,{align:"center-top",fitBox:!0,style:{fill:Q}}),_=ee.getBBox(),te=Le.getBBox(),GE=Y.x-te.width/2,_E=Y.y+_.height/2+Sp;fn(Le,GE,_E,0)}return Z},"bpmn:ParallelGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h),A=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:d.width,containerHeight:d.height,position:{mx:.46,my:.2}});return D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:Participant":function(f,d,h={}){h=W(h,["fill","stroke","width","height"]);var g=L(f,d,h),A=Gt(d),E=Xr(d),Q=pe(d),Z=Q.get("name");if(A){var Y=E?[{x:30,y:0},{x:30,y:Oe(d,h)}]:[{x:0,y:30},{x:Je(d,h),y:30}];x(f,Y,{stroke:P(d,c,h.stroke),strokeWidth:Dp}),ct(f,Z,d,h)}else{var $=Mi(d,h);E||($.height=Je(d,h),$.width=Oe(d,h));var ye=ie(f,Z,{box:$,align:"center-middle",style:{fill:Pi(d,m,c,h.stroke)}});if(!E){var ee=-1*Oe(d,h);fn(ye,0,-ee,270)}}return Q.get("participantMultiplicity")&&K("ParticipantMultiplicityMarker",f,d,h),g},"bpmn:ReceiveTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=pe(d),A=ke(f,d,h),E;return g.get("instantiate")?(j(f,28,28,20*.22,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),E=n.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):E=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),D(f,E,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),A},"bpmn:ScriptTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:SendTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return D(f,A,{fill:P(d,c,h.stroke),stroke:H(d,l,h.fill),strokeWidth:1}),g},"bpmn:SequenceFlow":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=H(d,l,h.fill),A=P(d,c,h.stroke),E=S(f,d.waypoints,{markerEnd:F("sequenceflow-end",g,A),stroke:A}),Q=pe(d),{source:Z}=d;if(Z){var Y=pe(Z);Q.get("conditionExpression")&&U(Y,"bpmn:Activity")&&ne(E,{markerStart:F("conditional-flow-marker",g,A)}),Y.get("default")&&(U(Y,"bpmn:Gateway")||U(Y,"bpmn:Activity"))&&Y.get("default")===Q&&ne(E,{markerStart:F("conditional-default-flow-marker",g,A)})}return E},"bpmn:ServiceTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h);j(f,10,10,{fill:H(d,l,h.fill),stroke:"none",transform:"translate(6, 6)"});var A=n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),j(f,10,10,{fill:H(d,l,h.fill),stroke:"none",transform:"translate(11, 10)"});var E=n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return D(f,E,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:StartEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=pe(d);A.get("isInterrupting")||(h={...h,strokeDasharray:"6"});var E=N(f,d,h);return g&&M(d,f,h),E},"bpmn:SubProcess":function(f,d,h={}){return Gt(d)?h=W(h,["fill","stroke","width","height"]):h=W(h,["fill","stroke"]),ce(f,d,h)},"bpmn:Task":function(f,d,h={}){return h=W(h,["fill","stroke"]),ke(f,d,h)},"bpmn:TextAnnotation":function(f,d,h={}){h=W(h,["fill","stroke","width","height"]);var{width:g,height:A}=Mi(d,h),E=I(f,g,A,0,0,{fill:"none",stroke:"none"}),Q=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:0,my:0}});D(f,Q,{stroke:P(d,c,h.stroke)});var Z=pe(d),Y=Z.get("text")||"";return ie(f,Y,{align:"left-top",box:Mi(d,h),padding:7,style:{fill:Pi(d,m,c,h.stroke)}}),E},"bpmn:Transaction":function(f,d,h={}){Gt(d)?h=W(h,["fill","stroke","width","height"]):h=W(h,["fill","stroke"]);var g=ce(f,d,{strokeWidth:1.5,...h}),A=i.style(["no-fill","no-events"],{stroke:P(d,c,h.stroke),strokeWidth:1.5}),E=Gt(d);return E||(h={}),I(f,Je(d,h),Oe(d,h),ps-ds,ds,A),g},"bpmn:UserTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=15,E=12,Q=n.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:A,y:E}});D(f,Q,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5});var Z=n.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:A,y:E}});D(f,Z,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5});var Y=n.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:A,y:E}});return D(f,Y,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:.5}),g},label:function(f,d,h={}){return lt(f,d,h)}};this._drawPath=D,this._renderer=V}rt(zt,dt),zt.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],zt.prototype.canRender=function(e){return U(e,"bpmn:BaseElement")},zt.prototype.drawShape=function(e,t,i={}){var{type:n}=t,r=this._renderer(n);return r(e,t,i)},zt.prototype.drawConnection=function(e,t,i={}){var{type:n}=t,r=this._renderer(n);return r(e,t,i)},zt.prototype.getShapePath=function(e){return U(e,"bpmn:Event")?rp(e):U(e,"bpmn:Activity")?op(e,ps):U(e,"bpmn:Gateway")?ap(e):lp(e)};function W(e,t=[]){return t.reduce((i,n)=>(e[n]&&(i[n]=e[n]),i),{})}var Vp=0,Op={width:150,height:50};function Rp(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}function Lp(e){return Qt(e)?q({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function vp(e,t){t.textContent=e;var i;try{var n,r=e==="";return t.textContent=r?"dummy":e,i=t.getBBox(),n={width:i.width+i.x*2,height:i.height},r&&(n.width=0),n}catch{return{width:0,height:0}}}function Fp(e,t,i){for(var n=e.shift(),r=n,o;;){if(o=vp(r,i),o.width=r?o.width:0,r===" "||r===""||o.width<Math.round(t)||r.length<2)return jp(e,r,n,o);r=Up(r,o.width,t)}}function jp(e,t,i,n){if(t.length<i.length){var r=i.slice(t.length).trim();e.unshift(r)}return{width:n.width,height:n.height,text:t}}var ko="\xAD";function Qp(e,t){var i=e.split(/(\s|-|\u00AD)/g),n,r=[],o=0;if(i.length>1)for(;n=i.shift();)if(n.length+o<t)r.push(n),o+=n.length;else{(n==="-"||n===ko)&&r.pop();break}var a=r[r.length-1];return a&&a===ko&&(r[r.length-1]="-"),r.join("")}function Up(e,t,i){var n=Math.max(e.length*(i/t),1),r=Qp(e,n);return r||(r=e.slice(0,Math.max(Math.round(n-1),1))),r}function Gp(){var e=document.getElementById("helper-svg");return e||(e=re("svg"),ne(e,{id:"helper-svg"}),be(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function hs(e){this._config=q({},{size:Op,padding:Vp,style:{},align:"center-top"},e||{})}hs.prototype.createText=function(e,t){return this.layoutText(e,t).element},hs.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},hs.prototype.layoutText=function(e,t){var i=q({},this._config.size,t.box),n=q({},this._config.style,t.style),r=Rp(t.align||this._config.align),o=Lp(t.padding!==void 0?t.padding:this._config.padding),a=t.fitBox||!1,l=_p(n),c=e.split(/\u00AD?\r?\n/),m=[],u=i.width-o.left-o.right,p=re("text");ne(p,{x:0,y:0}),ne(p,n);var y=Gp();for(he(y,p);c.length;)m.push(Fp(c,u,p));r.vertical==="middle"&&(o.top=o.bottom=0);var k=ci(m,function(j,I,b){return j+(l||I.height)},0)+o.top+o.bottom,C=ci(m,function(j,I,b){return I.width>j?I.width:j},0),v=o.top;r.vertical==="middle"&&(v+=(i.height-k)/2),v-=(l||m[0].height)/4;var F=re("text");ne(F,n),R(m,function(j){var I;switch(v+=l||j.height,r.horizontal){case"left":I=o.left;break;case"right":I=(a?C:u)-o.right-j.width;break;default:I=Math.max(((a?C:u)-j.width)/2+o.left,0)}var b=re("tspan");ne(b,{x:I,y:v}),b.textContent=j.text,he(F,b)}),Si(p);var z={width:C,height:k};return{dimensions:z,element:F}};function _p(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var qp=12,Jp=1.2,zp=30;function bo(e){var t=q({fontFamily:"Arial, sans-serif",fontSize:qp,fontWeight:"normal",lineHeight:Jp},e&&e.defaultStyle||{}),i=parseInt(t.fontSize,10)-1,n=q({},t,{fontSize:i},e&&e.externalStyle||{}),r=new hs({style:t});this.getExternalLabelBounds=function(o,a){var l=r.getDimensions(a,{box:{width:90,height:30},style:n});return{x:Math.round(o.x+o.width/2-l.width/2),y:Math.round(o.y),width:Math.ceil(l.width),height:Math.ceil(l.height)}},this.getTextAnnotationBounds=function(o,a){var l=r.getDimensions(a,{box:o,style:t,align:"left-top",padding:5});return{x:o.x,y:o.y,width:o.width,height:Math.max(zp,Math.round(l.height))}},this.createText=function(o,a){return r.createText(o,a||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return n}}bo.$inject=["config.textRenderer"];function Kp(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,i){var n=this.pathMap[t],r,o;i.abspos?(r=i.abspos.x,o=i.abspos.y):(r=i.containerWidth*i.position.mx,o=i.containerHeight*i.position.my);var a={};if(i.position){for(var l=i.containerHeight/n.height*i.yScaleFactor,c=i.containerWidth/n.width*i.xScaleFactor,m=0;m<n.heightElements.length;m++)a["y"+m]=n.heightElements[m]*l;for(var u=0;u<n.widthElements.length;u++)a["x"+u]=n.widthElements[u]*c}var p=Xp(n.d,{mx:r,my:o,e:a});return p}}var Hp=/\{([^{}]+)\}/g,Wp=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function Yp(e,t,i){var n=i;return t.replace(Wp,function(r,o,a,l,c){o=o||l,n&&(o in n&&(n=n[o]),typeof n=="function"&&c&&(n=n()))}),n=(n==null||n==i?e:n)+"",n}function Xp(e,t){return String(e).replace(Hp,function(i,n){return Yp(i,n,t)})}const Zp={__init__:["bpmnRenderer"],bpmnRenderer:["type",zt],textRenderer:["type",bo],pathMap:["type",Kp]};function $p(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(i,n){return t[n]||"{"+n+"}"})}const Eo={translate:["value",$p]};function eh(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function gn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function th(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function ih(e){return eh({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function sh(e){for(var t=e.waypoints,i=t.reduce(function(m,u,p){var y=t[p-1];if(y){var k=m[m.length-1],C=k&&k.endLength||0,v=nh(y,u);m.push({start:y,end:u,startLength:C,endLength:C+v,length:v})}return m},[]),n=i.reduce(function(m,u){return m+u.length},0),r=n/2,o=0,a=i[o];a.endLength<r;)a=i[++o];var l=(r-a.startLength)/a.length,c={x:a.start.x+(a.end.x-a.start.x)*l,y:a.start.y+(a.end.y-a.start.y)*l};return c}function yn(e){return Pd(e)?sh(e):ih(e)}function nh(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ee(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function us(e,t,i){return q({id:e.id,type:e.$type,businessObject:e,di:t},i)}function rh(e,t,i){var n=e.waypoint;return!n||n.length<2?[yn(t),yn(i)]:n.map(function(r){return{x:r.x,y:r.y}})}function Co(e,t,i,n){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:Ee(i),referenced:Ee(t),property:n}))}function ht(e,t,i,n,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=i,this._elementRegistry=n,this._translate=r,this._textRenderer=o}ht.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],ht.prototype.add=function(e,t,i){var n,r=this._translate,o,a;if(U(t,"bpmndi:BPMNPlane")){var l=U(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};n=this._elementFactory.createRoot(us(e,t,l)),this._canvas.addRootElement(n)}else if(U(t,"bpmndi:BPMNShape")){var c=!Gt(e,t),m=ah(e);o=i&&(i.hidden||i.collapsed);var u=t.bounds;n=this._elementFactory.createShape(us(e,t,{collapsed:c,hidden:o,x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height),isFrame:m})),U(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,n),U(e,"bpmn:Lane")&&(a=0),U(e,"bpmn:DataStoreReference")&&(oh(i,yn(u))||(i=this._canvas.findRoot(i))),this._canvas.addShape(n,i,a)}else if(U(t,"bpmndi:BPMNEdge")){var p=this._getSource(e),y=this._getTarget(e);o=i&&(i.hidden||i.collapsed),n=this._elementFactory.createConnection(us(e,t,{hidden:o,source:p,target:y,waypoints:rh(t,p,y)})),U(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(n,i,a)}else throw new Error(r("unknown di {di} for element {semantic}",{di:Ee(t),semantic:Ee(e)}));return Md(e)&&rs(n)&&this.addLabel(e,t,n),this._eventBus.fire("bpmnElement.added",{element:n}),n},ht.prototype._attachBoundary=function(e,t){var i=this._translate,n=e.attachedToRef;if(!n)throw new Error(i("missing {semantic}#attachedToRef",{semantic:Ee(e)}));var r=this._elementRegistry.get(n.id),o=r&&r.attachers;if(!r)throw Co(i,e,n,"attachedToRef");t.host=r,o||(r.attachers=o=[]),o.indexOf(t)===-1&&o.push(t)},ht.prototype.addLabel=function(e,t,i){var n,r,o;return n=Ld(t,i),r=rs(i),r&&(n=this._textRenderer.getExternalLabelBounds(n,r)),o=this._elementFactory.createLabel(us(e,t,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!rs(i),x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)})),this._canvas.addShape(o,i.parent)},ht.prototype._getConnectedElement=function(e,t){var i,n,r=e.$type,o=this._translate;if(n=e[t+"Ref"],t==="source"&&r==="bpmn:DataInputAssociation"&&(n=n&&n[0]),(t==="source"&&r==="bpmn:DataOutputAssociation"||t==="target"&&r==="bpmn:DataInputAssociation")&&(n=e.$parent),i=n&&this._getElement(n),i)return i;throw n?Co(o,e,n,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:Ee(e),side:t}))},ht.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},ht.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},ht.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function oh(e,t){var i=t.x,n=t.y;return i>=e.x&&i<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function ah(e){return U(e,"bpmn:Group")}const lh={__depends__:[Zp,{__depends__:[Eo],bpmnImporter:["type",ht]}]};function An(e){return e.originalEvent||e.srcEvent}function ch(){return/mac/i.test(navigator.platform)}function wo(e,t){return(An(e)||e).button===t}function Vi(e){return wo(e,0)}function dh(e){return wo(e,1)}function ph(e){var t=An(e)||e;return Vi(e)?ch()?t.metaKey:t.ctrlKey:!1}function hh(e){var t=An(e)||e;return Vi(e)&&t.shiftKey}function uh(e){return!0}function ms(e){return Vi(e)||dh(e)}var No=500;function To(e,t,i){var n=this;function r(w,V,B){if(!l(w,V)){var O,M,G;B?M=t.getGraphics(B):(O=V.delegateTarget||V.target,O&&(M=O,B=t.get(M))),!(!M||!B)&&(G=e.fire(w,{element:B,gfx:M,originalEvent:V}),G===!1&&(V.stopPropagation(),V.preventDefault()))}}var o={};function a(w){return o[w]}function l(w,V){var B=m[w]||Vi;return!B(V)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},m={"element.contextmenu":uh,"element.mousedown":ms,"element.mouseup":ms,"element.click":ms,"element.dblclick":ms};function u(w,V,B){var O=c[w];if(!O)throw new Error("unmapped DOM event name <"+w+">");return r(O,V,B)}var p="svg, .djs-element";function y(w,V,B,O){var M=o[B]=function(G){r(B,G)};O&&(m[B]=O),M.$delegate=di.bind(w,p,V,M)}function k(w,V,B){var O=a(B);!O||di.unbind(w,V,O.$delegate)}function C(w){R(c,function(V,B){y(w,B,V)})}function v(w){R(c,function(V,B){k(w,B,V)})}e.on("canvas.destroy",function(w){v(w.svg)}),e.on("canvas.init",function(w){C(w.svg)}),e.on(["shape.added","connection.added"],function(w){var V=w.element,B=w.gfx;e.fire("interactionEvents.createHit",{element:V,gfx:B})}),e.on(["shape.changed","connection.changed"],No,function(w){var V=w.element,B=w.gfx;e.fire("interactionEvents.updateHit",{element:V,gfx:B})}),e.on("interactionEvents.createHit",No,function(w){var V=w.element,B=w.gfx;n.createDefaultHit(V,B)}),e.on("interactionEvents.updateHit",function(w){var V=w.element,B=w.gfx;n.updateDefaultHit(V,B)});var F=x("djs-hit djs-hit-stroke"),z=x("djs-hit djs-hit-click-stroke"),j=x("djs-hit djs-hit-all"),I=x("djs-hit djs-hit-no-move"),b={all:j,"click-stroke":z,stroke:F,"no-move":I};function x(w,V){return V=q({stroke:"white",strokeWidth:15},V||{}),i.cls(w,["no-fill","no-border"],V)}function S(w,V){var B=b[V];if(!B)throw new Error("invalid hit type <"+V+">");return ne(w,B),w}function D(w,V){he(w,V)}this.removeHits=function(w){var V=Np(".djs-hit",w);R(V,Si)},this.createDefaultHit=function(w,V){var B=w.waypoints,O=w.isFrame,M;return B?this.createWaypointsHit(V,B):(M=O?"stroke":"all",this.createBoxHit(V,M,{width:w.width,height:w.height}))},this.createWaypointsHit=function(w,V){var B=pn(V);return S(B,"stroke"),D(w,B),B},this.createBoxHit=function(w,V,B){B=q({x:0,y:0},B);var O=re("rect");return S(O,V),ne(O,B),D(w,O),O},this.updateDefaultHit=function(w,V){var B=et(".djs-hit",V);if(!!B)return w.waypoints?co(B,w.waypoints):ne(B,{width:w.width,height:w.height}),B},this.fire=r,this.triggerMouseEvent=u,this.mouseHandler=a,this.registerEvent=y,this.unregisterEvent=k}To.$inject=["eventBus","elementRegistry","styles"];const mh={__init__:["interactionEvents"],interactionEvents:["type",To]};function Kt(e,t){t=!!t,Xe(e)||(e=[e]);var i,n,r,o;return R(e,function(a){var l=a;a.waypoints&&!t&&(l=Kt(a.waypoints,!0));var c=l.x,m=l.y,u=l.height||0,p=l.width||0;(c<i||i===void 0)&&(i=c),(m<n||n===void 0)&&(n=m),(c+p>r||r===void 0)&&(r=c+p),(m+u>o||o===void 0)&&(o=m+u)}),{x:i,y:n,height:o-n,width:r-i}}function Io(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function Bo(e){return!!(e&&e.isFrame)}var fh=500,gh=1e3;function Ht(e,t){this._eventBus=e,this.offset=5;var i=t.cls("djs-outline",["no-fill"]),n=this;function r(o){var a=re("rect");return ne(a,q({x:0,y:0,rx:4,width:100,height:100},i)),a}e.on(["shape.added","shape.changed"],fh,function(o){var a=o.element,l=o.gfx,c=et(".djs-outline",l);c||(c=n.getOutline(a)||r(),he(l,c)),n.updateShapeOutline(c,a)}),e.on(["connection.added","connection.changed"],function(o){var a=o.element,l=o.gfx,c=et(".djs-outline",l);c||(c=r(),he(l,c)),n.updateConnectionOutline(c,a)})}Ht.prototype.updateShapeOutline=function(e,t){var i=!1,n=this._getProviders();n.length&&R(n,function(r){i=i||r.updateOutline(t,e)}),i||ne(e,{x:-this.offset,y:-this.offset,width:t.width+this.offset*2,height:t.height+this.offset*2})},Ht.prototype.updateConnectionOutline=function(e,t){var i=Kt(t);ne(e,{x:i.x-this.offset,y:i.y-this.offset,width:i.width+this.offset*2,height:i.height+this.offset*2})},Ht.prototype.registerProvider=function(e,t){t||(t=e,e=gh),this._eventBus.on("outline.getProviders",e,function(i){i.providers.push(t)})},Ht.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Ht.prototype.getOutline=function(e){var t,i=this._getProviders();return R(i,function(n){!Tt(n.getOutline)||(t=t||n.getOutline(e))}),t},Ht.$inject=["eventBus","styles","elementRegistry"];const yh={__init__:["outline"],outline:["type",Ht]};function ui(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(n){var r=n.element;i.deselect(r)}),e.on(["diagram.clear","root.set"],function(n){i.select(null)})}ui.$inject=["eventBus","canvas"],ui.prototype.deselect=function(e){var t=this._selectedElements,i=t.indexOf(e);if(i!==-1){var n=t.slice();t.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:n,newSelection:t})}},ui.prototype.get=function(){return this._selectedElements},ui.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},ui.prototype.select=function(e,t){var i=this._selectedElements,n=i.slice();Xe(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter(function(a){var l=r.findRoot(a);return o===l}),t?R(e,function(a){i.indexOf(a)===-1&&i.push(a)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:n,newSelection:i})};var xo="hover",So="selected",fs=6;function kn(e,t,i){this._canvas=e;var n=this;this._multiSelectionBox=null;function r(a,l){e.addMarker(a,l)}function o(a,l){e.removeMarker(a,l)}t.on("element.hover",function(a){r(a.element,xo)}),t.on("element.out",function(a){o(a.element,xo)}),t.on("selection.changed",function(a){function l(p){o(p,So)}function c(p){r(p,So)}var m=a.oldSelection,u=a.newSelection;R(m,function(p){u.indexOf(p)===-1&&l(p)}),R(u,function(p){m.indexOf(p)===-1&&c(p)}),n._updateSelectionOutline(u)}),t.on("element.changed",function(a){i.isSelected(a.element)&&n._updateSelectionOutline(i.get())})}kn.$inject=["canvas","eventBus","selection"],kn.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");io(t);var i=e.length>1,n=this._canvas.getContainer();if(je(n)[i?"add":"remove"]("djs-multi-select"),!!i){var r=Ah(Kt(e)),o=re("rect");ne(o,q({rx:3},r)),je(o).add("djs-selection-outline"),he(t,o)}};function Ah(e){return{x:e.x-fs,y:e.y-fs,width:e.width+fs*2,height:e.height+fs*2}}function Do(e,t,i,n){e.on("create.end",500,function(r){var o=r.context,a=o.canExecute,l=o.elements,c=o.hints||{},m=c.autoSelect;if(a){if(m===!1)return;Xe(m)?t.select(m):t.select(l.filter(kh))}}),e.on("connect.end",500,function(r){var o=r.context,a=o.connection;a&&t.select(a)}),e.on("shape.move.end",500,function(r){var o=r.previousSelection||[],a=n.get(r.context.shape.id),l=$e(o,function(c){return a.id===c.id});l||t.select(a)}),e.on("element.click",function(r){if(!!Vi(r)){var o=r.element;o===i.getRootElement()&&(o=null);var a=t.isSelected(o),l=t.get().length>1,c=ph(r)||hh(r);if(a&&l)return c?t.deselect(o):t.select(o);a?t.deselect(o):t.select(o,c)}})}Do.$inject=["eventBus","selection","canvas","elementRegistry"];function kh(e){return!e.hidden}const bh={__init__:["selectionVisuals","selectionBehavior"],__depends__:[mh,yh],selection:["type",ui],selectionVisuals:["type",kn],selectionBehavior:["type",Do]};function Po(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Po.prototype.next=function(){return this._prefix+ ++this._counter};var Eh=new Po("ov"),Ch=500;function Ae(e,t,i,n){this._eventBus=t,this._canvas=i,this._elementRegistry=n,this._ids=Eh,this._overlayDefaults=q({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=wh(i.getContainer()),this._init()}Ae.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Ae.prototype.get=function(e){if(Ze(e)&&(e={id:e}),Ze(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?li(t.overlays,Yr({type:e.type})):t.overlays.slice():[]}else return e.type?li(this._overlays,Yr({type:e.type})):e.id?this._overlays[e.id]:null},Ae.prototype.add=function(e,t,i){if(Qt(t)&&(i=t,t=null),e.id||(e=this._elementRegistry.get(e)),!i.position)throw new Error("must specifiy overlay position");if(!i.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var n=this._ids.next();return i=q({},this._overlayDefaults,i,{id:n,type:t,element:e,html:i.html}),this._addOverlay(i),n},Ae.prototype.remove=function(e){var t=this.get(e)||[];Xe(t)||(t=[t]);var i=this;R(t,function(n){var r=i._getOverlayContainer(n.element,!0);if(n&&(pi(n.html),pi(n.htmlContainer),delete n.htmlContainer,delete n.element,delete i._overlays[n.id]),r){var o=r.overlays.indexOf(n);o!==-1&&r.overlays.splice(o,1)}})},Ae.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},Ae.prototype.show=function(){gs(this._overlayRoot)},Ae.prototype.hide=function(){gs(this._overlayRoot,!1)},Ae.prototype.clear=function(){this._overlays={},this._overlayContainers=[],uo(this._overlayRoot)},Ae.prototype._updateOverlayContainer=function(e){var t=e.element,i=e.html,n=t.x,r=t.y;if(t.waypoints){var o=Kt(t);n=o.x,r=o.y}Mo(i,n,r),ho(e.html,"data-container-id",t.id)},Ae.prototype._updateOverlay=function(e){var t=e.position,i=e.htmlContainer,n=e.element,r=t.left,o=t.top;if(t.right!==void 0){var a;n.waypoints?a=Kt(n).width:a=n.width,r=t.right*-1+a}if(t.bottom!==void 0){var l;n.waypoints?l=Kt(n).height:l=n.height,o=t.bottom*-1+l}Mo(i,r||0,o||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ae.prototype._createOverlayContainer=function(e){var t=Qe('<div class="djs-overlays" />');be(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var i={html:t,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},Ae.prototype._updateRoot=function(e){var t=e.scale||1,i="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Vo(this._overlayRoot,i)},Ae.prototype._getOverlayContainer=function(e,t){var i=$e(this._overlayContainers,function(n){return n.element===e});return!i&&!t?this._createOverlayContainer(e):i},Ae.prototype._addOverlay=function(e){var t=e.id,i=e.element,n=e.html,r,o;n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),Ze(n)&&(n=Qe(n)),o=this._getOverlayContainer(i),r=Qe('<div class="djs-overlay" data-overlay-id="'+t+'">'),be(r,{position:"absolute"}),r.appendChild(n),e.type&&qt(r).add("djs-overlay-"+e.type);var a=this._canvas.findRoot(i),l=this._canvas.getRootElement();gs(r,a===l),e.htmlContainer=r,o.overlays.push(e),o.html.appendChild(r),this._overlays[t]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ae.prototype._updateOverlayVisibilty=function(e,t){var i=e.show,n=this._canvas.findRoot(e.element),r=i&&i.minZoom,o=i&&i.maxZoom,a=e.htmlContainer,l=this._canvas.getRootElement(),c=!0;(n!==l||i&&(oi(r)&&r>t.scale||oi(o)&&o<t.scale))&&(c=!1),gs(a,c),this._updateOverlayScale(e,t)},Ae.prototype._updateOverlayScale=function(e,t){var i=e.scale,n,r,o=e.htmlContainer,a,l="";i!==!0&&(i===!1?(n=1,r=1):(n=i.min,r=i.max),oi(n)&&t.scale<n&&(a=(1/t.scale||1)*n),oi(r)&&t.scale>r&&(a=(1/t.scale||1)*r)),oi(a)&&(l="scale("+a+","+a+")"),Vo(o,l)},Ae.prototype._updateOverlaysVisibilty=function(e){var t=this;R(this._overlays,function(i){t._updateOverlayVisibilty(i,e)})},Ae.prototype._init=function(){var e=this._eventBus,t=this;function i(n){t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()}e.on("canvas.viewbox.changing",function(n){t.hide()}),e.on("canvas.viewbox.changed",function(n){i(n.viewbox)}),e.on(["shape.remove","connection.remove"],function(n){var r=n.element,o=t.get({element:r});R(o,function(c){t.remove(c.id)});var a=t._getOverlayContainer(r);if(a){pi(a.html);var l=t._overlayContainers.indexOf(a);l!==-1&&t._overlayContainers.splice(l,1)}}),e.on("element.changed",Ch,function(n){var r=n.element,o=t._getOverlayContainer(r,!0);o&&(R(o.overlays,function(a){t._updateOverlay(a)}),t._updateOverlayContainer(o))}),e.on("element.marker.update",function(n){var r=t._getOverlayContainer(n.element,!0);r&&qt(r.html)[n.add?"add":"remove"](n.marker)}),e.on("root.set",function(){t._updateOverlaysVisibilty(t._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function wh(e){var t=Qe('<div class="djs-overlay-container" />');return be(t,{position:"absolute",width:0,height:0}),e.insertBefore(t,e.firstChild),t}function Mo(e,t,i){be(e,{left:t+"px",top:i+"px"})}function gs(e,t){e.style.display=t===!1?"none":""}function Vo(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=t})}const Oo={__init__:["overlays"],overlays:["type",Ae]};function Ro(e,t,i,n){e.on("element.changed",function(r){var o=r.element;(o.parent||o===t.getRootElement())&&(r.gfx=i.getGraphics(o)),r.gfx&&e.fire(Io(o)+".changed",r)}),e.on("elements.changed",function(r){var o=r.elements;o.forEach(function(a){e.fire("element.changed",{element:a})}),n.updateContainments(o)}),e.on("shape.changed",function(r){n.update("shape",r.element,r.gfx)}),e.on("connection.changed",function(r){n.update("connection",r.element,r.gfx)})}Ro.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Nh={__init__:["changeSupport"],changeSupport:["type",Ro]};var Th=1e3;function Be(e){this._eventBus=e}Be.$inject=["eventBus"];function Ih(e,t){return function(i){return e.call(t||null,i.context,i.command,i)}}Be.prototype.on=function(e,t,i,n,r,o){if((Tt(t)||Nt(t))&&(o=r,r=n,n=i,i=t,t=null),Tt(i)&&(o=r,r=n,n=i,i=Th),Qt(r)&&(o=r,r=!1),!Tt(n))throw new Error("handlerFn must be a function");Xe(e)||(e=[e]);var a=this._eventBus;R(e,function(l){var c=["commandStack",l,t].filter(function(m){return m}).join(".");a.on(c,i,r?Ih(n,o):n,o)})},Be.prototype.canExecute=ut("canExecute"),Be.prototype.preExecute=ut("preExecute"),Be.prototype.preExecuted=ut("preExecuted"),Be.prototype.execute=ut("execute"),Be.prototype.executed=ut("executed"),Be.prototype.postExecute=ut("postExecute"),Be.prototype.postExecuted=ut("postExecuted"),Be.prototype.revert=ut("revert"),Be.prototype.reverted=ut("reverted");function ut(e){return function(i,n,r,o,a){(Tt(i)||Nt(i))&&(a=o,o=r,r=n,n=i,i=null),this.on(i,e,n,r,o,a)}}function bn(e,t){t.invoke(Be,this),this.executed(function(i){var n=i.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()}),this.revert(function(i){var n=i.context;n.rootElement&&e.setRootElement(n.rootElement)})}rt(bn,Be),bn.$inject=["canvas","injector"];const Bh={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",bn]};var xh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Sh(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(t){return xh[t]})}var Dh="_plane";function En(e){var t=e.id;return U(e,"bpmn:SubProcess")?Ph(t):t}function Ph(e){return e+Dh}var Mh="bjs-breadcrumbs-shown";function Lo(e,t,i){var n=Qe('<ul class="bjs-breadcrumbs"></ul>'),r=i.getContainer(),o=qt(r);r.appendChild(n);var a=[];e.on("element.changed",function(c){var m=c.element,u=pe(m),p=$e(a,function(y){return y===u});!p||l()});function l(c){c&&(a=Vh(c));var m=a.map(function(p){var y=Sh(p.name||p.id),k=Qe('<li><span class="bjs-crumb"><a title="'+y+'">'+y+"</a></span></li>"),C=i.findRoot(En(p))||i.findRoot(p.id);if(!C&&U(p,"bpmn:Process")){var v=t.find(function(F){var z=pe(F);return z&&z.get("processRef")&&z.get("processRef")===p});C=i.findRoot(v.id)}return k.addEventListener("click",function(){i.setRootElement(C)}),k});n.innerHTML="";var u=m.length>1;o.toggle(Mh,u),m.forEach(function(p){n.appendChild(p)})}e.on("root.set",function(c){l(c.element)})}Lo.$inject=["eventBus","elementRegistry","canvas"];function Vh(e){for(var t=pe(e),i=[],n=t;n;n=n.$parent)(U(n,"bpmn:SubProcess")||U(n,"bpmn:Process"))&&i.push(n);return i.reverse()}function vo(e,t){var i=null,n=new Oh;e.on("root.set",function(r){var o=r.element,a=t.viewbox(),l=n.get(o);if(n.set(i,{x:a.x,y:a.y,zoom:a.scale}),i=o,!(U(o,"bpmn:Collaboration")&&!l)){l=l||{x:0,y:0,zoom:1};var c=(a.x-l.x)*a.scale,m=(a.y-l.y)*a.scale;(c!==0||m!==0)&&t.scroll({dx:c,dy:m}),l.zoom!==a.scale&&t.zoom(l.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){n.clear(),i=null})}vo.$inject=["eventBus","canvas"];function Oh(){this._entries=[],this.set=function(e,t){var i=!1;for(var n in this._entries)if(this._entries[n][0]===e){this._entries[n][1]=t,i=!0;break}i||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var i in this._entries)if(this._entries[i][0]===e){t=i;break}t!==-1&&this._entries.splice(t,1)}}var Fo={x:180,y:160};function Wt(e,t){this._eventBus=e,this._moddle=t;var i=this;e.on("import.render.start",1500,function(n,r){i._handleImport(r.definitions)})}Wt.prototype._handleImport=function(e){if(!!e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(n){!n.plane||!n.plane.bpmnElement||(t._processToDiagramMap[n.plane.bpmnElement.id]=n)});var i=[];e.diagrams.forEach(function(n){var r=t._createNewDiagrams(n.plane);Array.prototype.push.apply(i,r)}),i.forEach(function(n){t._movePlaneElementsToOrigin(n.plane)})}},Wt.prototype._createNewDiagrams=function(e){var t=this,i=[],n=[];e.get("planeElement").forEach(function(o){var a=o.bpmnElement;if(!!a){var l=a.$parent;U(a,"bpmn:SubProcess")&&!o.isExpanded&&i.push(a),Lh(a,e)&&n.push({diElement:o,parent:l})}});var r=[];return i.forEach(function(o){if(!t._processToDiagramMap[o.id]){var a=t._createDiagram(o);t._processToDiagramMap[o.id]=a,r.push(a)}}),n.forEach(function(o){for(var a=o.diElement,l=o.parent;l&&i.indexOf(l)===-1;)l=l.$parent;if(!!l){var c=t._processToDiagramMap[l.id];t._moveToDiPlane(a,c.plane)}}),r},Wt.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),i=Rh(e),n={x:i.x-Fo.x,y:i.y-Fo.y};t.forEach(function(r){r.waypoint?r.waypoint.forEach(function(o){o.x=o.x-n.x,o.y=o.y-n.y}):r.bounds&&(r.bounds.x=r.bounds.x-n.x,r.bounds.y=r.bounds.y-n.y)})},Wt.prototype._moveToDiPlane=function(e,t){var i=jo(e),n=i.plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},Wt.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=i,t.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Wt.$inject=["eventBus","moddle"];function jo(e){return U(e,"bpmndi:BPMNDiagram")?e:jo(e.$parent)}function Rh(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var n=gn(i.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}}),th(t)}function Lh(e,t){var i=e.$parent;return!(!U(i,"bpmn:SubProcess")||i===t.bpmnElement||Sd(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var ys=250,vh='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',Fh="bjs-drilldown-empty";function St(e,t,i,n){Be.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=i,this._overlays=n;var r=this;this.executed("shape.toggleCollapse",ys,function(o){var a=o.shape;r._canDrillDown(a)?r._addOverlay(a):r._removeOverlay(a)},!0),this.reverted("shape.toggleCollapse",ys,function(o){var a=o.shape;r._canDrillDown(a)?r._addOverlay(a):r._removeOverlay(a)},!0),this.executed(["shape.create","shape.move","shape.delete"],ys,function(o){var a=o.oldParent,l=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(a),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(c)},!0),this.reverted(["shape.create","shape.move","shape.delete"],ys,function(o){var a=o.oldParent,l=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(a),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(c)},!0),t.on("import.render.complete",function(){i.filter(function(o){return r._canDrillDown(o)}).map(function(o){r._addOverlay(o)})})}rt(St,Be),St.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(!!e){var i=t.findRoot(e);i&&this._updateOverlayVisibility(i)}},St.prototype._canDrillDown=function(e){var t=this._canvas;return U(e,"bpmn:SubProcess")&&t.findRoot(En(e))},St.prototype._updateOverlayVisibility=function(e){var t=this._overlays,i=pe(e),n=t.get({element:i.id,type:"drilldown"})[0];if(!!n){var r=i&&i.get("flowElements")&&i.get("flowElements").length;qt(n.html).toggle(Fh,!r)}},St.prototype._addOverlay=function(e){var t=this._canvas,i=this._overlays,n=i.get({element:e,type:"drilldown"});n.length&&this._removeOverlay(e);var r=Qe('<button class="bjs-drilldown">'+vh+"</button>");r.addEventListener("click",function(){t.setRootElement(t.findRoot(En(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},St.prototype._removeOverlay=function(e){var t=this._overlays;t.remove({element:e,type:"drilldown"})},St.$inject=["canvas","eventBus","elementRegistry","overlays"];const jh={__depends__:[Oo,Nh,Bh],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Lo],drilldownCentering:["type",vo],drilldownOverlayBehavior:["type",St],subprocessCompatibility:["type",Wt]},Qh=/^class[ {]/;function Uh(e){return Qh.test(e.toString())}function Cn(e){return Array.isArray(e)}function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function As(...e){e.length===1&&Cn(e[0])&&(e=e[0]),e=[...e];const t=e.pop();return t.$inject=e,t}const Gh=/constructor\s*[^(]*\(\s*([^)]*)\)/m,_h=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,qh=/\/\*([^*]*)\*\//m;function Jh(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(Uh(e)?Gh:_h);if(!t)return[];const i=t[1]||t[2];return i&&i.split(",").map(n=>{const r=n.match(qh);return(r&&r[1]||n).trim()})||[]}function Qo(e,t){const i=t||{get:function(I,b){if(n.push(I),b===!1)return null;throw l(`No provider for "${I}"!`)}},n=[],r=this._providers=Object.create(i._providers||null),o=this._instances=Object.create(null),a=o.injector=this,l=function(I){const b=n.join(" -> ");return n.length=0,new Error(b?`${I} (Resolving: ${b})`:I)};function c(I,b){if(!r[I]&&I.includes(".")){const x=I.split(".");let S=c(x.shift());for(;x.length;)S=S[x.shift()];return S}if(wn(o,I))return o[I];if(wn(r,I)){if(n.indexOf(I)!==-1)throw n.push(I),l("Cannot resolve circular dependency!");return n.push(I),o[I]=r[I][0](r[I][1]),n.pop(),o[I]}return i.get(I,b)}function m(I,b){if(typeof b>"u"&&(b={}),typeof I!="function")if(Cn(I))I=As(I.slice());else throw l(`Cannot invoke "${I}". Expected a function!`);const S=(I.$inject||Jh(I)).map(D=>wn(b,D)?b[D]:c(D));return{fn:I,dependencies:S}}function u(I){const{fn:b,dependencies:x}=m(I),S=Function.prototype.bind.call(b,null,...x);return new S}function p(I,b,x){const{fn:S,dependencies:D}=m(I,x);return S.apply(b,D)}function y(I){return As(b=>I.get(b))}function k(I,b){if(b&&b.length){const x=Object.create(null),S=Object.create(null),D=[],w=[],V=[];let B,O,M,G;for(let K in r)B=r[K],b.indexOf(K)!==-1&&(B[2]==="private"?(O=D.indexOf(B[3]),O===-1?(M=B[3].createChild([],b),G=y(M),D.push(B[3]),w.push(M),V.push(G),x[K]=[G,K,"private",M]):x[K]=[V[O],K,"private",w[O]]):x[K]=[B[2],B[1]],S[K]=!0),(B[2]==="factory"||B[2]==="type")&&B[1].$scope&&b.forEach(it=>{B[1].$scope.indexOf(it)!==-1&&(x[K]=[B[2],B[1]],S[it]=!0)});b.forEach(K=>{if(!S[K])throw new Error('No provider for "'+K+'". Cannot use provider from the parent!')}),I.unshift(x)}return new Qo(I,a)}const C={factory:p,type:u,value:function(I){return I}};function v(I,b){const x=I.__init__||[];return function(){x.forEach(S=>{typeof S=="string"?b.get(S):b.invoke(S)})}}function F(I){const b=I.__exports__;if(b){const x=I.__modules__,S=Object.keys(I).reduce((O,M)=>(M!=="__exports__"&&M!=="__modules__"&&M!=="__init__"&&M!=="__depends__"&&(O[M]=I[M]),O),Object.create(null)),D=(x||[]).concat(S),w=k(D),V=As(function(O){return w.get(O)});b.forEach(function(O){r[O]=[V,O,"private",w]});const B=(I.__init__||[]).slice();return B.unshift(function(){w.init()}),I=Object.assign({},I,{__init__:B}),v(I,w)}return Object.keys(I).forEach(function(x){if(x==="__init__"||x==="__depends__")return;const S=I[x];if(S[2]==="private"){r[x]=S;return}const D=S[0],w=S[1];r[x]=[C[D],zh(D,w),D]}),v(I,a)}function z(I,b){return I.indexOf(b)!==-1||(I=(b.__depends__||[]).reduce(z,I),I.indexOf(b)!==-1)?I:I.concat(b)}function j(I){const b=I.reduce(z,[]).map(F);let x=!1;return function(){x||(x=!0,b.forEach(S=>S()))}}this.get=c,this.invoke=p,this.instantiate=u,this.createChild=k,this.init=j(e)}function zh(e,t){return e!=="value"&&Cn(t)&&(t=As(t.slice())),t}var Kh=1;function Dt(e,t){dt.call(this,e,Kh),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}rt(Dt,dt),Dt.prototype.canRender=function(){return!0},Dt.prototype.drawShape=function(t,i,n){var r=re("rect");return ne(r,{x:0,y:0,width:i.width||0,height:i.height||0}),Bo(i)?ne(r,q({},this.FRAME_STYLE,n||{})):ne(r,q({},this.SHAPE_STYLE,n||{})),he(t,r),r},Dt.prototype.drawConnection=function(t,i,n){var r=pn(i.waypoints,q({},this.CONNECTION_STYLE,n||{}));return he(t,r),r},Dt.prototype.getShapePath=function(t){var i=t.x,n=t.y,r=t.width,o=t.height,a=[["M",i,n],["l",r,0],["l",0,o],["l",-r,0],["z"]];return _t(a)},Dt.prototype.getConnectionPath=function(t){var i=t.waypoints,n,r,o=[];for(n=0;r=i[n];n++)r=r.original||r,o.push([n===0?"M":"L",r.x,r.y]);return _t(o)},Dt.$inject=["eventBus","styles"];function Hh(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(i,n,r){var o=this.style(n,r);return q(o,{class:i})},this.style=function(i,n){!Xe(i)&&!n&&(n=i,i=[]);var r=ci(i,function(o,a){return q(o,e[a]||{})},{});return n?q(r,n):r},this.computeStyle=function(i,n,r){return Xe(n)||(r=n,n=[]),t.style(n||[],q({},r,i||{}))}}const Wh={__init__:["defaultRenderer"],defaultRenderer:["type",Dt],styles:["type",Hh]};function Yh(e,t){if(!e||!t)return-1;var i=e.indexOf(t);return i!==-1&&e.splice(i,1),i}function Xh(e,t,i){if(!(!e||!t)){typeof i!="number"&&(i=-1);var n=e.indexOf(t);if(n!==-1){if(n===i)return;if(i!==-1)e.splice(n,1);else return}i!==-1?e.splice(i,0,t):e.push(t)}}function ks(e,t){return Math.round(e*t)/t}function Uo(e){return Nt(e)?e+"px":e}function Zh(e){for(;e.parent;)e=e.parent;return e}function $h(e){e=q({},{width:"100%",height:"100%"},e);const t=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),be(i,{position:"relative",overflow:"hidden",width:Uo(e.width),height:Uo(e.height)}),t.appendChild(i),i}function Go(e,t,i){const n=re("g");je(n).add(t);const r=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(n,e.childNodes[r]||null),n}const eu="base",_o=0,tu=1,iu={shape:["x","y","width","height"],connection:["waypoints"]};function J(e,t,i,n){this._eventBus=t,this._elementRegistry=n,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}J.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],J.prototype._init=function(e){const t=this._eventBus,i=this._container=$h(e),n=this._svg=re("svg");ne(n,{width:"100%",height:"100%"}),he(i,n);const r=this._viewport=Go(n,"viewport");e.deferUpdate&&(this._viewboxChanged=Nd(It(this._viewboxChanged,this),300)),t.on("diagram.init",()=>{t.fire("canvas.init",{svg:n,viewport:r})}),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},J.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},J.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{const i=Io(t);i==="root"?this.removeRootElement(t):this._removeElement(t,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},J.prototype.getDefaultLayer=function(){return this.getLayer(eu,_o)},J.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,t)),typeof t<"u"&&i.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return i.group},J.prototype._getChildIndex=function(e){return ci(this._layers,function(t,i){return i.visible&&e>=i.index&&t++,t},0)},J.prototype._createLayer=function(e,t){typeof t>"u"&&(t=tu);const i=this._getChildIndex(t);return{group:Go(this._viewport,"layer-"+e,i),index:t,visible:!0}},J.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,n=t.group,r=t.index;if(t.visible)return n;const o=this._getChildIndex(r);return i.insertBefore(n,i.childNodes[o]||null),t.visible=!0,n},J.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=t.group;return t.visible&&(Si(i),t.visible=!1),i},J.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],Si(t.group))},J.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},J.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(Zh(e))||{}).rootElement:void 0},J.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},J.prototype._findPlaneForRoot=function(e){return $e(this._planes,function(t){return t.rootElement===e})},J.prototype.getContainer=function(){return this._container},J.prototype._updateMarker=function(e,t,i){let n;e.id||(e=this._elementRegistry.get(e)),n=this._elementRegistry._elements[e.id],n&&(R([n.gfx,n.secondaryGfx],function(r){r&&(i?je(r).add(t):je(r).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:n.gfx,marker:t,add:!!i}))},J.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},J.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},J.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));const i=this.getGraphics(e);return je(i).has(t)},J.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},J.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},J.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const i=e.layer="root-"+t;this._ensureValid("root",e);const n=this.getLayer(i,_o);return this.hideLayer(i),this._addRoot(e,n),this._planes.push({rootElement:e,layer:n}),e},J.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(i){return i.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e},J.prototype.setRootElement=function(e){if(e===this._rootElement)return;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},J.prototype._removeRoot=function(e){const t=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),t.remove(e)},J.prototype._addRoot=function(e,t){const i=this._elementRegistry,n=this._eventBus;n.fire("root.add",{element:e}),i.add(e,t),n.fire("root.added",{element:e,gfx:t})},J.prototype._setRoot=function(e,t){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},J.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const i=iu[e];if(!Hr(i,function(r){return typeof t[r]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},J.prototype._setParent=function(e,t,i){Xh(t.children,e,i),e.parent=t},J.prototype._addElement=function(e,t,i,n){i=i||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:i}),this._setParent(t,i,n);const a=o.create(e,t,n);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},J.prototype.addShape=function(e,t,i){return this._addElement("shape",e,t,i)},J.prototype.addConnection=function(e,t,i){return this._addElement("connection",e,t,i)},J.prototype._removeElement=function(e,t){const i=this._elementRegistry,n=this._graphicsFactory,r=this._eventBus;if(e=i.get(e.id||e),!!e)return r.fire(t+".remove",{element:e}),n.remove(e),Yh(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),i.remove(e),e},J.prototype.removeShape=function(e){return this._removeElement(e,"shape")},J.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},J.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},J.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},J.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},J.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return this._cachedViewbox;const t=this._viewport,i=this.getSize();let n,r,o,a,l,c,m;if(e)this._changeViewbox(function(){l=Math.min(i.width/e.width,i.height/e.height);const u=this._svg.createSVGMatrix().scale(l).translate(-e.x,-e.y);Di(t,u)});else return o=this._rootElement?this.getActiveLayer():null,n=o&&o.getBBox()||{},a=Di(t),r=a?a.matrix:qd(),l=ks(r.a,1e3),c=ks(-r.e||0,1e3),m=ks(-r.f||0,1e3),e=this._cachedViewbox={x:c?c/l:0,y:m?m/l:0,width:i.width/l,height:i.height/l,scale:l,inner:{width:n.width||0,height:n.height||0,x:n.x||0,y:n.y||0},outer:i},e;return e},J.prototype.scroll=function(e){const t=this._viewport;let i=t.getCTM();return e&&this._changeViewbox(function(){e=q({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),qo(t,i)}),{x:i.e,y:i.f}},J.prototype.scrollToElement=function(e,t){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const n=this.findRoot(e);if(n!==this.getRootElement()&&this.setRootElement(n),n===e)return;t||(t={}),typeof t=="number"&&(i=t),t={top:t.top||i,right:t.right||i,bottom:t.bottom||i,left:t.left||i};const r=Kt(e),o=gn(r),a=this.viewbox(),l=this.zoom();let c,m;a.y+=t.top/l,a.x+=t.left/l,a.width-=(t.right+t.left)/l,a.height-=(t.bottom+t.top)/l;const u=gn(a);if(!(r.width<a.width&&r.height<a.height))c=r.x-a.x,m=r.y-a.y;else{const y=Math.max(0,o.right-u.right),k=Math.min(0,o.left-u.left),C=Math.max(0,o.bottom-u.bottom),v=Math.min(0,o.top-u.top);c=y||k,m=C||v}this.scroll({dx:-c*l,dy:-m*l})},J.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(t);let i,n;return this._changeViewbox(function(){typeof t!="object"&&(i=this.viewbox().outer,t={x:i.width/2,y:i.height/2}),n=this._setZoom(e,t)}),ks(n.a,1e3)};function qo(e,t){const i="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",i)}J.prototype._fitViewport=function(e){const t=this.viewbox(),i=t.outer,n=t.inner;let r,o;return n.x>=0&&n.y>=0&&n.x+n.width<=i.width&&n.y+n.height<=i.height&&!e?o={x:0,y:0,width:Math.max(n.width+n.x,i.width),height:Math.max(n.height+n.y,i.height)}:(r=Math.min(1,i.width/n.width,i.height/n.height),o={x:n.x+(e?n.width/2-i.width/r/2:0),y:n.y+(e?n.height/2-i.height/r/2:0),width:i.width/r,height:i.height/r}),this.viewbox(o),this.viewbox(!1).scale},J.prototype._setZoom=function(e,t){const i=this._svg,n=this._viewport,r=i.createSVGMatrix(),o=i.createSVGPoint();let a,l,c,m,u;c=n.getCTM();const p=c.a;return t?(a=q(o,t),l=a.matrixTransform(c.inverse()),m=r.translate(l.x,l.y).scale(1/p*e).translate(-l.x,-l.y),u=c.multiply(m)):u=r.scale(e),qo(this._viewport,u),u},J.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},J.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const n=i.x*t.scale-t.x*t.scale,r=i.y*t.scale-t.y*t.scale,o=i.width*t.scale,a=i.height*t.scale;return{x:n,y:r,width:o,height:a}},J.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var mi="data-element-id";function Ue(e){this._elements={},this._eventBus=e}Ue.$inject=["eventBus"],Ue.prototype.add=function(e,t,i){var n=e.id;this._validateId(n),ne(t,mi,n),i&&ne(i,mi,n),this._elements[n]={element:e,gfx:t,secondaryGfx:i}},Ue.prototype.remove=function(e){var t=this._elements,i=e.id||e,n=i&&t[i];n&&(ne(n.gfx,mi,""),n.secondaryGfx&&ne(n.secondaryGfx,mi,""),delete t[i])},Ue.prototype.updateId=function(e,t){this._validateId(t),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var i=this.getGraphics(e),n=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,i,n)},Ue.prototype.updateGraphics=function(e,t,i){var n=e.id||e,r=this._elements[n];return i?r.secondaryGfx=t:r.gfx=t,t&&ne(t,mi,n),t},Ue.prototype.get=function(e){var t;typeof e=="string"?t=e:t=e&&ne(e,mi);var i=this._elements[t];return i&&i.element},Ue.prototype.filter=function(e){var t=[];return this.forEach(function(i,n){e(i,n)&&t.push(i)}),t},Ue.prototype.find=function(e){for(var t=this._elements,i=Object.keys(t),n=0;n<i.length;n++){var r=i[n],o=t[r],a=o.element,l=o.gfx;if(e(a,l))return a}},Ue.prototype.getAll=function(){return this.filter(function(e){return e})},Ue.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(i){var n=t[i],r=n.element,o=n.gfx;return e(r,o)})},Ue.prototype.getGraphics=function(e,t){var i=e.id||e,n=this._elements[i];return n&&(t?n.secondaryGfx:n.gfx)},Ue.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function su(e,t,i,n){var r=i.inverse;return Object.defineProperty(e,"remove",{value:function(o){var a=this.indexOf(o);return a!==-1&&(this.splice(a,1),t.unset(o,r,n)),o}}),Object.defineProperty(e,"contains",{value:function(o){return this.indexOf(o)!==-1}}),Object.defineProperty(e,"add",{value:function(o,a){var l=this.indexOf(o);if(typeof a>"u"){if(l!==-1)return;a=this.length}l!==-1&&this.splice(l,1),this.splice(a,0,o),l===-1&&t.set(o,r,n)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function nu(e){return e.__refs_collection===!0}function ru(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function Jo(e,t,i){var n=su(i[t.name]||[],e,t,i);Object.defineProperty(i,t.name,{enumerable:t.enumerable,value:n}),n.length&&n.forEach(function(r){e.set(r,t.inverse,i)})}function ou(e,t,i){var n=t.inverse,r=i[t.name];Object.defineProperty(i,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(o){if(o!==r){var a=r;r=null,a&&e.unset(a,n,i),r=o,e.set(r,n,i)}}})}function ze(e,t){if(!(this instanceof ze))return new ze(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}ze.prototype.bind=function(e,t){if(typeof t=="string"){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?Jo(this,t,e):ou(this,t,e)},ze.prototype.ensureRefsCollection=function(e,t){var i=e[t.name];return nu(i)||Jo(this,t,e),i},ze.prototype.ensureBound=function(e,t){ru(e,t)||this.bind(e,t)},ze.prototype.unset=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(i):e[t.name]=void 0)},ze.prototype.set=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(i):e[t.name]=i)};var Nn=new ze({name:"children",enumerable:!0,collection:!0},{name:"parent"}),zo=new ze({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ko=new ze({name:"attachers",collection:!0},{name:"host"}),Ho=new ze({name:"outgoing",collection:!0},{name:"source"}),Wo=new ze({name:"incoming",collection:!0},{name:"target"});function Oi(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,i=this.labels;!e&&t?i.remove(t):i.add(e,0)}}),Nn.bind(this,"parent"),zo.bind(this,"labels"),Ho.bind(this,"outgoing"),Wo.bind(this,"incoming")}function Ri(){Oi.call(this),Nn.bind(this,"children"),Ko.bind(this,"host"),Ko.bind(this,"attachers")}rt(Ri,Oi);function Yo(){Oi.call(this),Nn.bind(this,"children")}rt(Yo,Ri);function Xo(){Ri.call(this),zo.bind(this,"labelTarget")}rt(Xo,Ri);function Zo(){Oi.call(this),Ho.bind(this,"source"),Wo.bind(this,"target")}rt(Zo,Oi);var au={connection:Zo,shape:Ri,label:Xo,root:Yo};function lu(e,t){var i=au[e];if(!i)throw new Error("unknown type: <"+e+">");return q(new i,t)}function fi(){this._uid=12}fi.prototype.createRoot=function(e){return this.create("root",e)},fi.prototype.createLabel=function(e){return this.create("label",e)},fi.prototype.createShape=function(e){return this.create("shape",e)},fi.prototype.createConnection=function(e){return this.create("connection",e)},fi.prototype.create=function(e,t){return t=q({},t||{}),t.id||(t.id=e+"_"+this._uid++),lu(e,t)};var bs="__fn",$o=1e3,cu=Array.prototype.slice;function Re(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}Re.prototype.on=function(e,t,i,n){if(e=Xe(e)?e:[e],Tt(t)&&(n=i,i=t,t=$o),!Nt(t))throw new Error("priority must be a number");var r=i;n&&(r=It(i,n),r[bs]=i[bs]||i);var o=this;e.forEach(function(a){o._addListener(a,{priority:t,callback:r,next:null})})},Re.prototype.once=function(e,t,i,n){var r=this;if(Tt(t)&&(n=i,i=t,t=$o),!Nt(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=i.apply(n,arguments);return r.off(e,o),a}o[bs]=i,this.on(e,t,o)},Re.prototype.off=function(e,t){e=Xe(e)?e:[e];var i=this;e.forEach(function(n){i._removeListener(n,t)})},Re.prototype.createEvent=function(e){var t=new Li;return t.init(e),t},Re.prototype.fire=function(e,t){var i,n,r,o;if(o=cu.call(arguments),typeof e=="object"&&(t=e,e=t.type),!e)throw new Error("no event type specified");if(n=this._listeners[e],!!n){t instanceof Li?i=t:i=this.createEvent(t),o[0]=i;var a=i.type;e!==a&&(i.type=e);try{r=this._invokeListeners(i,o,n)}finally{e!==a&&(i.type=a)}return r===void 0&&i.defaultPrevented&&(r=!1),r}},Re.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},Re.prototype._destroy=function(){this._listeners={}},Re.prototype._invokeListeners=function(e,t,i){for(var n;i&&!e.cancelBubble;)n=this._invokeListener(e,t,i),i=i.next;return n},Re.prototype._invokeListener=function(e,t,i){var n;if(i.callback.__isTomb)return n;try{n=du(i.callback,t),n!==void 0&&(e.returnValue=n,e.stopPropagation()),n===!1&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return n},Re.prototype._addListener=function(e,t){var i=this._getListeners(e),n;if(!i){this._setListeners(e,t);return}for(;i;){if(i.priority<t.priority){t.next=i,n?n.next=t:this._setListeners(e,t);return}n=i,i=i.next}n.next=t},Re.prototype._getListeners=function(e){return this._listeners[e]},Re.prototype._setListeners=function(e,t){this._listeners[e]=t},Re.prototype._removeListener=function(e,t){var i=this._getListeners(e),n,r,o;if(!t){this._setListeners(e,null);return}for(;i;)n=i.next,o=i.callback,(o===t||o[bs]===t)&&(r?r.next=n:this._setListeners(e,n)),r=i,i=n};function Li(){}Li.prototype.stopPropagation=function(){this.cancelBubble=!0},Li.prototype.preventDefault=function(){this.defaultPrevented=!0},Li.prototype.init=function(e){q(this,e||{})};function du(e,t){return e.apply(null,t)}function pu(e){return e.childNodes[0]}function hu(e){return e.parentNode.childNodes[1]}function Ge(e,t){this._eventBus=e,this._elementRegistry=t}Ge.$inject=["eventBus","elementRegistry"],Ge.prototype._getChildrenContainer=function(e){var t=this._elementRegistry.getGraphics(e),i;return e.parent?(i=hu(t),i||(i=re("g"),je(i).add("djs-children"),he(t.parentNode,i))):i=t,i},Ge.prototype._clear=function(e){var t=pu(e);return uo(t),t},Ge.prototype._createContainer=function(e,t,i,n){var r=re("g");je(r).add("djs-group"),typeof i<"u"?ea(r,t,t.childNodes[i]):he(t,r);var o=re("g");je(o).add("djs-element"),je(o).add("djs-"+e),n&&je(o).add("djs-frame"),he(r,o);var a=re("g");return je(a).add("djs-visual"),he(o,a),o},Ge.prototype.create=function(e,t,i){var n=this._getChildrenContainer(t.parent);return this._createContainer(e,n,i,Bo(t))},Ge.prototype.updateContainments=function(e){var t=this,i=this._elementRegistry,n;n=ci(e,function(r,o){return o.parent&&(r[o.parent.id]=o.parent),r},{}),R(n,function(r){var o=r.children;if(!!o){var a=t._getChildrenContainer(r);R(o.slice().reverse(),function(l){var c=i.getGraphics(l);ea(c.parentNode,a)})}})},Ge.prototype.drawShape=function(e,t,i={}){var n=this._eventBus;return n.fire("render.shape",{gfx:e,element:t,attrs:i})},Ge.prototype.getShapePath=function(e){var t=this._eventBus;return t.fire("render.getShapePath",e)},Ge.prototype.drawConnection=function(e,t,i={}){var n=this._eventBus;return n.fire("render.connection",{gfx:e,element:t,attrs:i})},Ge.prototype.getConnectionPath=function(e){var t=this._eventBus;return t.fire("render.getConnectionPath",e)},Ge.prototype.update=function(e,t,i){if(!!t.parent){var n=this._clear(i);if(e==="shape")this.drawShape(n,t),Ao(i,t.x,t.y);else if(e==="connection")this.drawConnection(n,t);else throw new Error("unknown type: "+e);t.hidden?ne(i,"display","none"):ne(i,"display","block")}},Ge.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);Si(t.parentNode)};function ea(e,t,i){var n=i||t.firstChild;e!==n&&t.insertBefore(e,n)}const uu={__depends__:[Wh],__init__:["canvas"],canvas:["type",J],elementRegistry:["type",Ue],elementFactory:["type",fi],eventBus:["type",Re],graphicsFactory:["type",Ge]};function mu(e){var t=new Qo(e);return t.init(),t}function fu(e){e=e||{};var t={config:["value",e]},i=[t,uu].concat(e.modules||[]);return mu(i)}function gi(e,t){this._injector=t=t||fu(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}gi.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},gi.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Tn(){}Tn.prototype.get=function(e){return this.$model.properties.get(this,e)},Tn.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function ta(e,t){this.model=e,this.properties=t}ta.prototype.createType=function(e){var t=this.model,i=this.properties,n=Object.create(Tn.prototype);R(e.properties,function(a){!a.isMany&&a.default!==void 0&&(n[a.name]=a.default)}),i.defineModel(n,t),i.defineDescriptor(n,e);var r=e.ns.name;function o(a){i.define(this,"$type",{value:r,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),R(a,It(function(l,c){this.set(c,l)},this))}return o.prototype=n,o.hasType=n.$instanceOf=this.model.hasType,i.defineModel(o,t),i.defineDescriptor(o,e),o};var gu={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ia={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function In(e,t){var i=ia[e];return i?i(t):t}function Bn(e){return!!gu[e]}function sa(e){return!!ia[e]}function we(e,t){var i=e.split(/:/),n,r;if(i.length===1)n=e,r=t;else if(i.length===2)n=i[1],r=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(r?r+":":"")+n,{name:e,prefix:r,localName:n}}function _e(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}_e.prototype.build=function(){return Id(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},_e.prototype.addProperty=function(e,t,i){typeof t=="boolean"&&(i=t,t=void 0),this.addNamedProperty(e,i!==!1);var n=this.properties;t!==void 0?n.splice(t,0,e):n.push(e)},_e.prototype.replaceProperty=function(e,t,i){var n=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var l=r.indexOf(e);if(l===-1)throw new Error("property <"+n.name+"> not found in property list");r.splice(l,1),this.addProperty(t,i?void 0:l,a),o[n.name]=o[n.localName]=t},_e.prototype.redefineProperty=function(e,t,i){var n=e.ns.prefix,r=t.split("#"),o=we(r[0],n),a=we(r[1],o.prefix).name,l=this.propertiesByName[a];if(l)this.replaceProperty(l,e,i);else throw new Error("refined property <"+a+"> not found");delete e.redefines},_e.prototype.addNamedProperty=function(e,t){var i=e.ns,n=this.propertiesByName;t&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),n[i.name]=n[i.localName]=e},_e.prototype.removeNamedProperty=function(e){var t=e.ns,i=this.propertiesByName;delete i[t.name],delete i[t.localName]},_e.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},_e.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},_e.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},_e.prototype.assertNotDefined=function(e,t){var i=e.name,n=this.propertiesByName[i];if(n)throw new Error("property <"+i+"> already defined; override of <"+n.definedBy.ns.name+"#"+n.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},_e.prototype.hasProperty=function(e){return this.propertiesByName[e]},_e.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var i=this.allTypesByName,n=this.allTypes,r=e.name;r in i||(R(e.properties,It(function(o){o=q({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,l=o.redefines;a||l?this.redefineProperty(o,a||l,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),n.push(e),i[r]=e)};function Pt(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,R(e,It(this.registerPackage,this))}Pt.prototype.getPackage=function(e){return this.packageMap[e]},Pt.prototype.getPackages=function(){return this.packages},Pt.prototype.registerPackage=function(e){e=q({},e);var t=this.packageMap;na(t,e,"prefix"),na(t,e,"uri"),R(e.types,It(function(i){this.registerType(i,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},Pt.prototype.registerType=function(e,t){e=q({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:q(e.meta||{})});var i=we(e.name,t.prefix),n=i.name,r={};R(e.properties,It(function(o){var a=we(o.name,i.prefix),l=a.name;Bn(o.type)||(o.type=we(o.type,a.prefix).name),q(o,{ns:a,name:l}),r[l]=o},this)),q(e,{ns:i,name:n,propertiesByName:r}),R(e.extends,It(function(o){var a=we(o,i.prefix),l=this.typeMap[a.name];l.traits=l.traits||[],l.traits.push(n)},this)),this.definePackage(e,t),this.typeMap[n]=e},Pt.prototype.mapTypes=function(e,t,i){var n=Bn(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(c,m){var u=we(c,Bn(c)?"":e.prefix);r.mapTypes(u,t,m)}function a(c){return o(c,!0)}function l(c){return o(c,!1)}if(!n)throw new Error("unknown type <"+e.name+">");R(n.superClass,i?a:l),t(n,!i),R(n.traits,a)},Pt.prototype.getEffectiveDescriptor=function(e){var t=we(e),i=new _e(t);this.mapTypes(t,function(r,o){i.addTrait(r,o)});var n=i.build();return this.definePackage(n,n.allTypes[n.allTypes.length-1].$pkg),n},Pt.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function na(e,t,i){var n=t[i];if(n in e)throw new Error("package with "+i+" <"+n+"> already defined")}function Yt(e){this.model=e}Yt.prototype.set=function(e,t,i){if(!Ze(t)||!t.length)throw new TypeError("property name must be a non-empty string");var n=this.getProperty(e,t),r=n&&n.name;yu(i)?n?delete e[r]:delete e.$attrs[xn(t)]:n?r in e?e[r]=i:ra(e,n,i):e.$attrs[xn(t)]=i},Yt.prototype.get=function(e,t){var i=this.getProperty(e,t);if(!i)return e.$attrs[xn(t)];var n=i.name;return!e[n]&&i.isMany&&ra(e,i,[]),e[n]},Yt.prototype.define=function(e,t,i){if(!i.writable){var n=i.value;i=q({},i,{get:function(){return n}}),delete i.value}Object.defineProperty(e,t,i)},Yt.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Yt.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Yt.prototype.getProperty=function(e,t){var i=this.model,n=i.getPropertyDescriptor(e,t);if(n)return n;if(t.includes(":"))return null;const r=i.config.strict;if(typeof r<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw o;typeof console<"u"}return null};function yu(e){return typeof e>"u"}function ra(e,t,i){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:i,configurable:!0})}function xn(e){return e.replace(/^:/,"")}function Ke(e,t={}){this.properties=new Yt(this),this.factory=new ta(this,this.properties),this.registry=new Pt(e,this.properties),this.typeCache={},this.config=t}Ke.prototype.create=function(e,t){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(t)},Ke.prototype.getType=function(e){var t=this.typeCache,i=Ze(e)?e:e.ns.name,n=t[i];return n||(e=this.registry.getEffectiveDescriptor(i),n=t[i]=this.factory.createType(e)),n},Ke.prototype.createAny=function(e,t,i){var n=we(e),r={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,l){Td(this,[a],l)}},o={name:e,isGeneric:!0,ns:{prefix:n.prefix,localName:n.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(i,function(a,l){Qt(a)&&a.value!==void 0?r[a.name]=a.value:r[l]=a}),r},Ke.prototype.getPackage=function(e){return this.registry.getPackage(e)},Ke.prototype.getPackages=function(){return this.registry.getPackages()},Ke.prototype.getElementDescriptor=function(e){return e.$descriptor},Ke.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var i=e.$model.getElementDescriptor(e);return t in i.allTypesByName},Ke.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Ke.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var oa=String.fromCharCode,Au=Object.prototype.hasOwnProperty,ku=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,vi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(vi).forEach(function(e){vi[e.toUpperCase()]=vi[e]});function bu(e,t,i,n){return n?Au.call(vi,n)?vi[n]:"&"+n+";":oa(t||parseInt(i,16))}function Xt(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(ku,bu):e}var Eu="http://www.w3.org/2001/XMLSchema-instance",Cu="xsi",aa="xsi:type",la="non-whitespace outside of root node";function yi(e){return new Error(e)}function ca(e){return"missing namespace for prefix <"+e+">"}function Es(e){return{get:e,enumerable:!0}}function wu(e){var t={},i;for(i in e)t[i]=e[i];return t}function Sn(e){return e+"$uri"}function Nu(e){var t={},i,n;for(i in e)n=e[i],t[n]=n,t[Sn(n)]=i;return t}function da(){return{line:0,column:0}}function Tu(e){throw e}function pa(e){if(!this)return new pa(e);var t=e&&e.proxy,i,n,r,o,a=Tu,l,c,m,u,p=da,y=!1,k=!1,C=null,v=!1,F;function z(b){b instanceof Error||(b=yi(b)),C=b,a(b,p)}function j(b){!l||(b instanceof Error||(b=yi(b)),l(b,p))}this.on=function(b,x){if(typeof x!="function")throw yi("required args <name, cb>");switch(b){case"openTag":n=x;break;case"text":i=x;break;case"closeTag":r=x;break;case"error":a=x;break;case"warn":l=x;break;case"cdata":o=x;break;case"attention":u=x;break;case"question":m=x;break;case"comment":c=x;break;default:throw yi("unsupported event: "+b)}return this},this.ns=function(b){if(typeof b>"u"&&(b={}),typeof b!="object")throw yi("required args <nsMap={}>");var x={},S;for(S in b)x[S]=b[S];return x[Eu]=Cu,k=!0,F=x,this},this.parse=function(b){if(typeof b!="string")throw yi("required args <xml=string>");return C=null,I(b),p=da,v=!1,C},this.stop=function(){v=!0};function I(b){var x=k?[]:null,S=k?Nu(F):null,D,w=[],V=0,B=!1,O=!1,M=0,G=0,K,it,ie,X,lt,ct,ge,ft,gt,N="",T=0,L;function ce(){if(L!==null)return L;var de,f,d,h=k&&S.xmlns,g=k&&y?[]:null,A=T,E=N,Q=E.length,Z,Y,$,ye,ee,Vt={},Bs={},Le,_,te;e:for(;A<Q;A++)if(Le=!1,_=E.charCodeAt(A),!(_===32||_<14&&_>8)){for((_<65||_>122||_>90&&_<97)&&_!==95&&_!==58&&(j("illegal first char attribute name"),Le=!0),te=A+1;te<Q;te++)if(_=E.charCodeAt(te),!(_>96&&_<123||_>64&&_<91||_>47&&_<59||_===46||_===45||_===95)){if(_===32||_<14&&_>8){j("missing attribute value"),A=te;continue e}if(_===61)break;j("illegal attribute name char"),Le=!0}if(ee=E.substring(A,te),ee==="xmlns:xmlns"&&(j("illegal declaration of xmlns"),Le=!0),_=E.charCodeAt(te+1),_===34)te=E.indexOf('"',A=te+2),te===-1&&(te=E.indexOf("'",A),te!==-1&&(j("attribute value quote missmatch"),Le=!0));else if(_===39)te=E.indexOf("'",A=te+2),te===-1&&(te=E.indexOf('"',A),te!==-1&&(j("attribute value quote missmatch"),Le=!0));else for(j("missing attribute value quotes"),Le=!0,te=te+1;te<Q&&(_=E.charCodeAt(te+1),!(_===32||_<14&&_>8));te++);for(te===-1&&(j("missing closing quotes"),te=Q,Le=!0),Le||($=E.substring(A,te)),A=te;te+1<Q&&(_=E.charCodeAt(te+1),!(_===32||_<14&&_>8));te++)A===te&&(j("illegal character after attribute end"),Le=!0);if(A=te+1,Le)continue e;if(ee in Bs){j("attribute <"+ee+"> already defined");continue}if(Bs[ee]=!0,!k){Vt[ee]=$;continue}if(y){if(Y=ee==="xmlns"?"xmlns":ee.charCodeAt(0)===120&&ee.substr(0,6)==="xmlns:"?ee.substr(6):null,Y!==null){if(de=Xt($),f=Sn(Y),ye=F[de],!ye){if(Y==="xmlns"||f in S&&S[f]!==de)do ye="ns"+V++;while(typeof S[ye]<"u");else ye=Y;F[de]=ye}S[Y]!==ye&&(Z||(S=wu(S),Z=!0),S[Y]=ye,Y==="xmlns"&&(S[Sn(ye)]=de,h=ye),S[f]=de),Vt[ee]=$;continue}g.push(ee,$);continue}if(_=ee.indexOf(":"),_===-1){Vt[ee]=$;continue}if(!(d=S[ee.substring(0,_)])){j(ca(ee.substring(0,_)));continue}ee=h===d?ee.substr(_+1):d+ee.substr(_),ee===aa&&(_=$.indexOf(":"),_!==-1?(d=$.substring(0,_),d=S[d]||d,$=d+$.substring(_)):$=h+":"+$),Vt[ee]=$}if(y)for(A=0,Q=g.length;A<Q;A++){if(ee=g[A++],$=g[A],_=ee.indexOf(":"),_!==-1){if(!(d=S[ee.substring(0,_)])){j(ca(ee.substring(0,_)));continue}ee=h===d?ee.substr(_+1):d+ee.substr(_),ee===aa&&(_=$.indexOf(":"),_!==-1?(d=$.substring(0,_),d=S[d]||d,$=d+$.substring(_)):$=h+":"+$)}Vt[ee]=$}return L=Vt}function ke(){for(var de=/(\r\n|\r|\n)/g,f=0,d=0,h=0,g=G,A,E;M>=h&&(A=de.exec(b),!(!A||(g=A[0].length+A.index,g>M)));)f+=1,h=g;return M==-1?(d=g,E=b.substring(G)):G===0?E=b.substring(G,M):(d=M-h,E=G==-1?b.substring(M):b.substring(M,G+1)),{data:E,line:f,column:d}}for(p=ke,t&&(gt=Object.create({},{name:Es(function(){return ge}),originalName:Es(function(){return ft}),attrs:Es(ce),ns:Es(function(){return S})}));G!==-1;){if(b.charCodeAt(G)===60?M=G:M=b.indexOf("<",G),M===-1){if(w.length)return z("unexpected end of file");if(G===0)return z("missing start tag");G<b.length&&b.substring(G).trim()&&j(la);return}if(G!==M){if(w.length){if(i&&(i(b.substring(G,M),Xt,p),v))return}else if(b.substring(G,M).trim()&&(j(la),v))return}if(X=b.charCodeAt(M+1),X===33){if(ie=b.charCodeAt(M+2),ie===91&&b.substr(M+3,6)==="CDATA["){if(G=b.indexOf("]]>",M),G===-1)return z("unclosed cdata");if(o&&(o(b.substring(M+9,G),p),v))return;G+=3;continue}if(ie===45&&b.charCodeAt(M+3)===45){if(G=b.indexOf("-->",M),G===-1)return z("unclosed comment");if(c&&(c(b.substring(M+4,G),Xt,p),v))return;G+=3;continue}}if(X===63){if(G=b.indexOf("?>",M),G===-1)return z("unclosed question");if(m&&(m(b.substring(M,G+2),p),v))return;G+=2;continue}for(K=M+1;;K++){if(lt=b.charCodeAt(K),isNaN(lt))return G=-1,z("unclosed tag");if(lt===34)ie=b.indexOf('"',K+1),K=ie!==-1?ie:K;else if(lt===39)ie=b.indexOf("'",K+1),K=ie!==-1?ie:K;else if(lt===62){G=K;break}}if(X===33){if(u&&(u(b.substring(M,G+1),Xt,p),v))return;G+=1;continue}if(L={},X===47){if(B=!1,O=!0,!w.length)return z("missing open tag");if(K=ge=w.pop(),ie=M+2+K.length,b.substring(M+2,ie)!==K)return z("closing tag mismatch");for(;ie<G;ie++)if(X=b.charCodeAt(ie),!(X===32||X>8&&X<14))return z("close tag")}else{if(b.charCodeAt(G-1)===47?(K=ge=b.substring(M+1,G-1),B=!0,O=!0):(K=ge=b.substring(M+1,G),B=!0,O=!1),!(X>96&&X<123||X>64&&X<91||X===95||X===58))return z("illegal first char nodeName");for(ie=1,it=K.length;ie<it;ie++)if(X=K.charCodeAt(ie),!(X>96&&X<123||X>64&&X<91||X>47&&X<59||X===45||X===95||X==46)){if(X===32||X<14&&X>8){ge=K.substring(0,ie),L=null;break}return z("invalid nodeName")}O||w.push(ge)}if(k){if(D=S,B&&(O||x.push(D),L===null&&(y=K.indexOf("xmlns",ie)!==-1)&&(T=ie,N=K,ce(),y=!1)),ft=ge,X=ge.indexOf(":"),X!==-1){if(ct=S[ge.substring(0,X)],!ct)return z("missing namespace on <"+ft+">");ge=ge.substr(X+1)}else ct=S.xmlns;ct&&(ge=ct+":"+ge)}if(B&&(T=ie,N=K,n&&(t?n(gt,Xt,O,p):n(ge,ce,Xt,O,p),v)))return;if(O){if(r&&(r(t?gt:ge,Xt,B,p),v))return;k&&(B?S=D:S=x.pop())}G+=1}}}function ha(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Iu={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Cs="xsi:type";function ua(e){return e.xml&&e.xml.serialize}function ma(e){return ua(e)===Cs}function Bu(e){return ua(e)==="property"}function xu(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fa(e,t){return ha(t)?e.prefix+":"+xu(e.localName):e.name}function Su(e,t){var i=e.name,n=e.localName,r=t.xml&&t.xml.typePrefix;return r&&n.indexOf(r)===0?e.prefix+":"+n.slice(r.length):i}function Du(e,t){var i=we(e),n=t.getPackage(i.prefix);return Su(i,n)}function Mt(e){return new Error(e)}function mt(e){return e.$descriptor}function Pu(e){q(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Mt("expected element");var i=this.elementsById,n=mt(t),r=n.idProperty,o;if(r&&(o=t.get(r.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(i[o])throw Mt("duplicate ID <"+o+">");i[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Fi(){}Fi.prototype.handleEnd=function(){},Fi.prototype.handleText=function(){},Fi.prototype.handleNode=function(){};function Dn(){}Dn.prototype=Object.create(Fi.prototype),Dn.prototype.handleNode=function(){return this};function Ai(){}Ai.prototype=Object.create(Fi.prototype),Ai.prototype.handleText=function(e){this.body=(this.body||"")+e};function ji(e,t){this.property=e,this.context=t}ji.prototype=Object.create(Ai.prototype),ji.prototype.handleNode=function(e){if(this.element)throw Mt("expected no sub nodes");return this.element=this.createReference(e),this},ji.prototype.handleEnd=function(){this.element.id=this.body},ji.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Pn(e,t){this.element=t,this.propertyDesc=e}Pn.prototype=Object.create(Ai.prototype),Pn.prototype.handleEnd=function(){var e=this.body||"",t=this.element,i=this.propertyDesc;e=In(i.type,e),i.isMany?t.get(i.name).push(e):t.set(i.name,e)};function ws(){}ws.prototype=Object.create(Ai.prototype),ws.prototype.handleNode=function(e){var t=this,i=this.element;return i?t=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),t};function Ne(e,t,i){this.model=e,this.type=e.getType(t),this.context=i}Ne.prototype=Object.create(ws.prototype),Ne.prototype.addReference=function(e){this.context.addReference(e)},Ne.prototype.handleText=function(e){var t=this.element,i=mt(t),n=i.bodyProperty;if(!n)throw Mt("unexpected body text <"+e+">");Ai.prototype.handleText.call(this,e)},Ne.prototype.handleEnd=function(){var e=this.body,t=this.element,i=mt(t),n=i.bodyProperty;n&&e!==void 0&&(e=In(n.type,e),t.set(n.name,e))},Ne.prototype.createElement=function(e){var t=e.attributes,i=this.type,n=mt(i),r=this.context,o=new i({}),a=this.model,l;return R(t,function(c,m){var u=n.propertiesByName[m],p;u&&u.isReference?u.isMany?(p=c.split(" "),R(p,function(y){r.addReference({element:o,property:u.ns.name,id:y})})):r.addReference({element:o,property:u.ns.name,id:c}):(u?c=In(u.type,c):m!=="xmlns"&&(l=we(m,n.ns.prefix),a.getPackage(l.prefix)&&r.addWarning({message:"unknown attribute <"+m+">",element:o,property:m,value:c})),o.set(m,c))}),o},Ne.prototype.getPropertyForNode=function(e){var t=e.name,i=we(t),n=this.type,r=this.model,o=mt(n),a=i.name,l=o.propertiesByName[a],c,m;if(l&&!l.isAttr)return ma(l)&&(c=e.attributes[Cs],c)?(c=Du(c,r),m=r.getType(c),q({},l,{effectiveType:mt(m).name})):l;var u=r.getPackage(i.prefix);if(u){if(c=fa(i,u),m=r.getType(c),l=$e(o.properties,function(p){return!p.isVirtual&&!p.isReference&&!p.isAttribute&&m.hasType(p.type)}),l)return q({},l,{effectiveType:mt(m).name})}else if(l=$e(o.properties,function(p){return!p.isReference&&!p.isAttribute&&p.type==="Element"}),l)return l;throw Mt("unrecognized element <"+i.name+">")},Ne.prototype.toString=function(){return"ElementDescriptor["+mt(this.type).name+"]"},Ne.prototype.valueHandler=function(e,t){return new Pn(e,t)},Ne.prototype.referenceHandler=function(e){return new ji(e,this.context)},Ne.prototype.handler=function(e){return e==="Element"?new ki(this.model,e,this.context):new Ne(this.model,e,this.context)},Ne.prototype.handleChild=function(e){var t,i,n,r;if(t=this.getPropertyForNode(e),n=this.element,i=t.effectiveType||t.type,sa(i))return this.valueHandler(t,n);t.isReference?r=this.referenceHandler(t).handleNode(e):r=this.handler(i).handleNode(e);var o=r.element;return o!==void 0&&(t.isMany?n.get(t.name).push(o):n.set(t.name,o),t.isReference?(q(o,{element:n}),this.context.addReference(o)):o.$parent=n),r};function Mn(e,t,i){Ne.call(this,e,t,i)}Mn.prototype=Object.create(Ne.prototype),Mn.prototype.createElement=function(e){var t=e.name,i=we(t),n=this.model,r=this.type,o=n.getPackage(i.prefix),a=o&&fa(i,o)||t;if(!r.hasType(a))throw Mt("unexpected element <"+e.originalName+">");return Ne.prototype.createElement.call(this,e)};function ki(e,t,i){this.model=e,this.context=i}ki.prototype=Object.create(ws.prototype),ki.prototype.createElement=function(e){var t=e.name,i=we(t),n=i.prefix,r=e.ns[n+"$uri"],o=e.attributes;return this.model.createAny(t,r,o)},ki.prototype.handleChild=function(e){var t=new ki(this.model,"Element",this.context).handleNode(e),i=this.element,n=t.element,r;return n!==void 0&&(r=i.$children=i.$children||[],r.push(n),n.$parent=i),t},ki.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Vn(e){e instanceof Ke&&(e={model:e}),q(this,{lax:!1},e)}Vn.prototype.fromXML=function(e,t,i){var n=t.rootHandler;t instanceof Ne?(n=t,t={}):typeof t=="string"?(n=this.handler(t),t={}):typeof n=="string"&&(n=this.handler(n));var r=this.model,o=this.lax,a=new Pu(q({},t,{rootHandler:n})),l=new pa({proxy:!0}),c=Mu();n.context=a,c.push(n);function m(x,S,D){var w=S(),V=w.line,B=w.column,O=w.data;O.charAt(0)==="<"&&O.indexOf(" ")!==-1&&(O=O.slice(0,O.indexOf(" "))+">");var M="unparsable content "+(O?O+" ":"")+`detected
4
+ `],..._l(i))}),t}function _l({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Lr(e.component,e.type,n)}`,o=">"+i;return e.props?[r,...Gl(e.props),o]:[r+o]}function Gl(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(n=>{t.push(...mr(n,e[n]))}),i.length>3&&t.push(" ..."),t}function mr(e,t,i){return He(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:Ve(t)?(t=mr(e,se(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=se(t),i?t:[`${e}=`,t])}const fr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function jt(e,t,i,n){let r;try{r=n?e(...n):e()}catch(o){gr(o,t,i)}return r}function Js(e,t,i,n){if(Ce(e)){const o=jt(e,t,i,n);return o&&Wa(o)&&o.catch(a=>{gr(a,t,i)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(Js(e[o],t,i,n));return r}function gr(e,t,i,n=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l=process.env.NODE_ENV!=="production"?fr[i]:i;for(;o;){const m=o.ec;if(m){for(let u=0;u<m.length;u++)if(m[u](e,a,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){jt(c,null,10,[e,a,l]);return}}ql(e,i,r,n)}function ql(e,t,i,n=!0){if(process.env.NODE_ENV!=="production"){const r=fr[t];if(i&&Fl(i),Te(`Unhandled error${r?` during execution of ${r}`:""}`),i&&jl(),n)throw e;console.error(e)}else console.error(e)}let Xi=!1,zs=!1;const We=[];let bt=0;const ti=[];let nt=null,Ct=0;const yr=Promise.resolve();let Ks=null;const Jl=100;function zl(e){const t=Ks||yr;return e?t.then(this?e.bind(this):e):t}function Kl(e){let t=bt+1,i=We.length;for(;t<i;){const n=t+i>>>1;Ci(We[n])<e?t=n+1:i=n}return t}function Hs(e){(!We.length||!We.includes(e,Xi&&e.allowRecurse?bt+1:bt))&&(e.id==null?We.push(e):We.splice(Kl(e.id),0,e),Ar())}function Ar(){!Xi&&!zs&&(zs=!0,Ks=yr.then(Er))}function kr(e){ae(e)?ti.push(...e):(!nt||!nt.includes(e,e.allowRecurse?Ct+1:Ct))&&ti.push(e),Ar()}function Hl(e){if(ti.length){const t=[...new Set(ti)];if(ti.length=0,nt){nt.push(...t);return}for(nt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),nt.sort((i,n)=>Ci(i)-Ci(n)),Ct=0;Ct<nt.length;Ct++)process.env.NODE_ENV!=="production"&&br(e,nt[Ct])||nt[Ct]();nt=null,Ct=0}}const Ci=e=>e.id==null?1/0:e.id,Wl=(e,t)=>{const i=Ci(e)-Ci(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function Er(e){zs=!1,Xi=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),We.sort(Wl);const t=process.env.NODE_ENV!=="production"?i=>br(e,i):Gn;try{for(bt=0;bt<We.length;bt++){const i=We[bt];if(i&&i.active!==!1){if(process.env.NODE_ENV!=="production"&&t(i))continue;jt(i,null,14)}}}finally{bt=0,We.length=0,Hl(e),Xi=!1,Ks=null,(We.length||ti.length)&&Er(e)}}function br(e,t){if(!e.has(t))e.set(t,1);else{const i=e.get(t);if(i>Jl){const n=t.ownerInstance,r=n&&Rr(n.type);return Te(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,i+1)}}const wi=new Set;process.env.NODE_ENV!=="production"&&(Ds().__VUE_HMR_RUNTIME__={createRecord:Ws(Yl),rerender:Ws(Xl),reload:Ws(Zl)});const Zi=new Map;function Yl(e,t){return Zi.has(e)?!1:(Zi.set(e,{initialDef:Ni(t),instances:new Set}),!0)}function Ni(e){return vr(e)?e.__vccOpts:e}function Xl(e,t){const i=Zi.get(e);!i||(i.initialDef.render=t,[...i.instances].forEach(n=>{t&&(n.render=t,Ni(n.type).render=t),n.renderCache=[],n.update()}))}function Zl(e,t){const i=Zi.get(e);if(!i)return;t=Ni(t),Cr(i.initialDef,t);const n=[...i.instances];for(const r of n){const o=Ni(r.type);wi.has(o)||(o!==i.initialDef&&Cr(o,t),wi.add(o)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(wi.add(o),r.ceReload(t.styles),wi.delete(o)):r.parent?Hs(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"&&window.location.reload()}kr(()=>{for(const r of n)wi.delete(Ni(r.type))})}function Cr(e,t){ve(e,t);for(const i in e)i!=="__file"&&!(i in t)&&delete e[i]}function Ws(e){return(t,i)=>{try{return e(t,i)}catch(n){console.error(n)}}}let wt=null,$l=null;function Xb(){}const ec=e=>e.__isSuspense;function tc(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):kr(e)}const $i={};function ic(e,t,{immediate:i,deep:n,flush:r,onTrack:o,onTrigger:a}=st){var l;process.env.NODE_ENV!=="production"&&!t&&(i!==void 0&&Te('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&Te('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=E=>{Te("Invalid watch source: ",E,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=rl()===((l=ni)==null?void 0:l.scope)?ni:null;let u,p=!1,y=!1;if(Ve(e)?(u=()=>e.value,p=Us(e)):Lt(e)?(u=()=>e,n=!0):ae(e)?(y=!0,p=e.some(E=>Lt(E)||Us(E)),u=()=>e.map(E=>{if(Ve(E))return E.value;if(Lt(E))return ii(E);if(Ce(E))return jt(E,m,2);process.env.NODE_ENV!=="production"&&c(E)})):Ce(e)?t?u=()=>jt(e,m,2):u=()=>{if(!(m&&m.isUnmounted))return k&&k(),Js(e,m,3,[C])}:(u=Gn,process.env.NODE_ENV!=="production"&&c(e)),t&&n){const E=u;u=()=>ii(E())}let k,C=E=>{k=j.onStop=()=>{jt(E,m,4)}},v=y?new Array(e.length).fill($i):$i;const F=()=>{if(!!j.active)if(t){const E=j.run();(n||p||(y?E.some((x,S)=>_i(x,v[S])):_i(E,v)))&&(k&&k(),Js(t,m,3,[E,v===$i?void 0:y&&v[0]===$i?[]:v,C]),v=E)}else j.run()};F.allowRecurse=!!t;let z;r==="sync"?z=F:r==="post"?z=()=>Br(F,m&&m.suspense):(F.pre=!0,m&&(F.id=m.uid),z=()=>Hs(F));const j=new ll(u,z);return process.env.NODE_ENV!=="production"&&(j.onTrack=o,j.onTrigger=a),t?i?F():v=j.run():r==="post"?Br(j.run.bind(j),m&&m.suspense):j.run(),()=>{j.stop(),m&&m.scope&&za(m.scope.effects,j)}}function sc(e,t,i){const n=this.proxy,r=He(e)?e.includes(".")?nc(n,e):()=>n[e]:e.bind(n,n);let o;Ce(t)?o=t:(o=t.handler,i=t);const a=ni;Or(this);const l=ic(r,o.bind(n),i);return a?Or(a):wc(),l}function nc(e,t){const i=t.split(".");return()=>{let n=e;for(let r=0;r<i.length&&n;r++)n=n[i[r]];return n}}function ii(e,t){if(!De(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ve(e))ii(e.value,t);else if(ae(e))for(let i=0;i<e.length;i++)ii(e[i],t);else if(Ha(e)||ei(e))e.forEach(i=>{ii(i,t)});else if(Xa(e))for(const i in e)ii(e[i],t);return e}function Ye(e,t){return Ce(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const rc=Symbol.for("v-ndc"),Ys=e=>e?Nc(e)?Tc(e)||e.proxy:Ys(e.parent):null,Ti=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Yi(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Yi(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Yi(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Yi(e.refs):e.refs,$parent:e=>Ys(e.parent),$root:e=>Ys(e.root),$emit:e=>e.emit,$options:e=>lc(e),$forceUpdate:e=>e.f||(e.f=()=>Hs(e.update)),$nextTick:e=>e.n||(e.n=zl.bind(e.proxy)),$watch:e=>sc.bind(e)}),oc=e=>e==="_"||e==="$",Xs=(e,t)=>e!==st&&!e.__isScriptSetup&&fe(e,t),ac={get({_:e},t){const{ctx:i,setupState:n,data:r,props:o,accessCache:a,type:l,appContext:c}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let m;if(t[0]!=="$"){const k=a[t];if(k!==void 0)switch(k){case 1:return n[t];case 2:return r[t];case 4:return i[t];case 3:return o[t]}else{if(Xs(n,t))return a[t]=1,n[t];if(r!==st&&fe(r,t))return a[t]=2,r[t];if((m=e.propsOptions[0])&&fe(m,t))return a[t]=3,o[t];if(i!==st&&fe(i,t))return a[t]=4,i[t];a[t]=0}}const u=Ti[t];let p,y;if(u)return t==="$attrs"?(Me(e,"get",t),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&Me(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(i!==st&&fe(i,t))return a[t]=4,i[t];if(y=c.config.globalProperties,fe(y,t))return y[t];process.env.NODE_ENV!=="production"&&wt&&(!He(t)||t.indexOf("__v")!==0)&&(r!==st&&oc(t[0])&&fe(r,t)?Te(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===wt&&Te(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,i){const{data:n,setupState:r,ctx:o}=e;return Xs(r,t)?(r[t]=i,!0):process.env.NODE_ENV!=="production"&&r.__isScriptSetup&&fe(r,t)?(Te(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==st&&fe(n,t)?(n[t]=i,!0):fe(e.props,t)?(process.env.NODE_ENV!=="production"&&Te(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Te(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:i}):o[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:r,propsOptions:o}},a){let l;return!!i[a]||e!==st&&fe(e,a)||Xs(t,a)||(l=o[0])&&fe(l,a)||fe(n,a)||fe(Ti,a)||fe(r.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:fe(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};process.env.NODE_ENV!=="production"&&(ac.ownKeys=e=>(Te("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function wr(e){return ae(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function lc(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!i&&!n?c=t:(c={},r.length&&r.forEach(m=>es(c,m,a,!0)),es(c,t,a)),De(t)&&o.set(t,c),c}function es(e,t,i,n=!1){const{mixins:r,extends:o}=t;o&&es(e,o,i,!0),r&&r.forEach(a=>es(e,a,i,!0));for(const a in t)if(n&&a==="expose")process.env.NODE_ENV!=="production"&&Te('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=cc[a]||i&&i[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const cc={data:Nr,props:Ir,emits:Ir,methods:Ii,computed:Ii,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Ii,directives:Ii,watch:pc,provide:Nr,inject:dc};function Nr(e,t){return t?e?function(){return ve(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function dc(e,t){return Ii(Tr(e),Tr(t))}function Tr(e){if(ae(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function Ii(e,t){return e?ve(Object.create(null),e,t):t}function Ir(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:ve(Object.create(null),wr(e),wr(t!=null?t:{})):t}function pc(e,t){if(!e)return t;if(!t)return e;const i=ve(Object.create(null),e);for(const n in t)i[n]=Ie(e[n],t[n]);return i}function hc(){return{app:null,config:{isNativeTag:Ga,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}const Br=tc,uc=e=>e.__isTeleport,xr=Symbol.for("v-fgt"),mc=Symbol.for("v-txt"),fc=Symbol.for("v-cmt");let si=null;function gc(e){return e?e.__v_isVNode===!0:!1}const yc=(...e)=>Pr(...e),Sr="__vInternal",Dr=({key:e})=>e!=null?e:null,ts=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?He(e)||Ve(e)||Ce(e)?{i:wt,r:e,k:t,f:!!i}:e:null);function Ac(e,t=null,i=null,n=0,r=null,o=e===xr?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dr(t),ref:t&&ts(t),scopeId:$l,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:wt};return l?(Zs(c,i),o&128&&e.normalize(c)):i&&(c.shapeFlag|=He(i)?8:16),process.env.NODE_ENV!=="production"&&c.key!==c.key&&Te("VNode created with invalid key (NaN). VNode type:",c.type),!a&&si&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&si.push(c),c}const kc=process.env.NODE_ENV!=="production"?yc:Pr;function Pr(e,t=null,i=null,n=0,r=null,o=!1){if((!e||e===rc)&&(process.env.NODE_ENV!=="production"&&!e&&Te(`Invalid vnode type when creating vnode: ${e}.`),e=fc),gc(e)){const l=is(e,t,!0);return i&&Zs(l,i),!o&&si&&(l.shapeFlag&6?si[si.indexOf(e)]=l:si.push(l)),l.patchFlag|=-2,l}if(vr(e)&&(e=e.__vccOpts),t){t=Ec(t);let{class:l,style:c}=t;l&&!He(l)&&(t.class=Ms(l)),De(c)&&(_s(c)&&!ae(c)&&(c=ve({},c)),t.style=Ps(c))}const a=He(e)?1:ec(e)?128:uc(e)?64:De(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&_s(e)&&(e=se(e),Te("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
5
+ Component that was made reactive: `,e)),Ac(e,t,i,n,r,a,o,!0)}function Ec(e){return e?_s(e)||Sr in e?ve({},e):e:null}function is(e,t,i=!1){const{props:n,ref:r,patchFlag:o,children:a}=e,l=t?Cc(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Dr(l),ref:t&&t.ref?i&&r?ae(r)?r.concat(ts(t)):[r,ts(t)]:ts(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&ae(a)?a.map(Mr):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xr?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&is(e.ssContent),ssFallback:e.ssFallback&&is(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Mr(e){const t=is(e);return ae(e.children)&&(t.children=e.children.map(Mr)),t}function bc(e=" ",t=0){return kc(mc,null,e,t)}function Zs(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ae(t))i=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Zs(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!(Sr in t)?t._ctx=wt:r===3&&wt&&(wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:wt},i=32):(t=String(t),n&64?(i=16,t=[bc(t)]):i=8);e.children=t,e.shapeFlag|=i}function Cc(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ms([t.class,n.class]));else if(r==="style")t.style=Ps([t.style,n.style]);else if(Ja(r)){const o=t[r],a=n[r];a&&o!==a&&!(ae(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=n[r])}return t}hc();let ni=null,$s,ri,Vr="__VUE_INSTANCE_SETTERS__";(ri=Ds()[Vr])||(ri=Ds()[Vr]=[]),ri.push(e=>ni=e),$s=e=>{ri.length>1?ri.forEach(t=>t(e)):ri[0](e)};const Or=e=>{$s(e),e.scope.on()},wc=()=>{ni&&ni.scope.off(),$s(null)};function Nc(e){return e.vnode.shapeFlag&4}function Tc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vl(Ol(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ti)return Ti[i](e)},has(t,i){return i in t||i in Ti}}))}const Ic=/(?:^|[-_])(\w)/g,Bc=e=>e.replace(Ic,t=>t.toUpperCase()).replace(/[-_]/g,"");function Rr(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Lr(e,t,i=!1){let n=Rr(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e&&e.parent){const r=o=>{for(const a in o)if(o[a]===t)return a};n=r(e.components||e.parent.type.components)||r(e.appContext.components)}return n?Bc(n):i?"App":"Anonymous"}function vr(e){return Ce(e)&&"__vccOpts"in e}function en(e){return!!(e&&e.__v_isShallow)}function xc(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},i={style:"color:#b62e24"},n={style:"color:#9d288c"},r={header(p){return De(p)?p.__isVue?["div",e,"VueInstance"]:Ve(p)?["div",{},["span",e,u(p)],"<",l(p.value),">"]:Lt(p)?["div",{},["span",e,en(p)?"ShallowReactive":"Reactive"],"<",l(p),`>${vt(p)?" (readonly)":""}`]:vt(p)?["div",{},["span",e,en(p)?"ShallowReadonly":"Readonly"],"<",l(p),">"]:null:null},hasBody(p){return p&&p.__isVue},body(p){if(p&&p.__isVue)return["div",{},...o(p.$)]}};function o(p){const y=[];p.type.props&&p.props&&y.push(a("props",se(p.props))),p.setupState!==st&&y.push(a("setup",p.setupState)),p.data!==st&&y.push(a("data",se(p.data)));const k=c(p,"computed");k&&y.push(a("computed",k));const C=c(p,"inject");return C&&y.push(a("injected",C)),y.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:p}]]),y}function a(p,y){return y=ve({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},p],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(k=>["div",{},["span",n,k+": "],l(y[k],!1)])]]:["span",{}]}function l(p,y=!0){return typeof p=="number"?["span",t,p]:typeof p=="string"?["span",i,JSON.stringify(p)]:typeof p=="boolean"?["span",n,p]:De(p)?["object",{object:y?se(p):p}]:["span",i,String(p)]}function c(p,y){const k=p.type;if(Ce(k))return;const C={};for(const v in p.ctx)m(k,v,y)&&(C[v]=p.ctx[v]);return C}function m(p,y,k){const C=p[k];if(ae(C)&&C.includes(y)||De(C)&&y in C||p.extends&&m(p.extends,y,k)||p.mixins&&p.mixins.some(v=>m(v,y,k)))return!0}function u(p){return en(p)?"ShallowRef":p.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}function Sc(){xc()}process.env.NODE_ENV!=="production"&&Sc();const Dc=Ye({name:"TopPopup",props:{showHeader:{default:!0,type:Boolean},titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1),typeof this.cancel=="function"&&this.cancel()},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}}),Zb="",oe=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i},Pc={key:0,class:"top-popup-header"},Mc={class:"header-title"},Vc={class:"top-popup-body"},Oc={class:"top-popup-drawer-header"},Rc={class:"header-title"},Lc={class:"top-popup-drawer--body"},vc={class:"top-tips-header"},Fc={class:"top-tips-body"},jc={class:"top-tips-footer"};function Qc(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["top-popup-zindex",e.className]),style:s.normalizeStyle(`${e.isIndex?`z-index:${e.isIndex}`:""}`)},[s.createElementVNode("div",{class:"top-popup-mask",style:s.normalizeStyle(e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>e.isMaskClose&&e.handleClose())},null,4),!e.isTips&&!e.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-popup",style:s.normalizeStyle(e.show?"transform: translateY(0)":"transform: translateY(150%)")},[e.showHeader?(s.openBlock(),s.createElementBlock("div",Pc,[s.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>e.handleCancel&&e.handleCancel(...a))},s.toDisplayString(e.cancelText),1),s.createElementVNode("div",Mc,s.toDisplayString(e.titleText),1),s.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>e.handleComfig&&e.handleComfig(...a))},s.toDisplayString(e.comfigText),1)])):s.createCommentVNode("",!0),s.createElementVNode("div",Vc,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!e.isTips&&e.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-popup-drawer",e.show?"top-popup-drawer--active":""]),style:s.normalizeStyle(e.width?`width:${e.width};`:"")},[s.createElementVNode("div",Oc,[s.createElementVNode("div",{class:"header-cancel",onClick:t[3]||(t[3]=(...a)=>e.handleCancel&&e.handleCancel(...a))}," \u5173\u95ED "),s.createElementVNode("div",Rc,s.toDisplayString(e.titleText),1),t[6]||(t[6]=s.createElementVNode("div",{class:"header-comfig",style:{width:"20px"}},null,-1))]),s.createElementVNode("div",Lc,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):e.isTips&&!e.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-tips",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[s.createElementVNode("div",vc,s.toDisplayString(e.titleText),1),s.createElementVNode("div",Fc,s.toDisplayString(e.context),1),s.createElementVNode("div",jc,[s.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>e.handleCancel&&e.handleCancel(...a))},s.toDisplayString(e.cancelText),1),s.createElementVNode("div",{class:"top-tips-btn",onClick:t[5]||(t[5]=(...a)=>e.handleComfig&&e.handleComfig(...a))},s.toDisplayString(e.comfigText),1)])],4)):s.createCommentVNode("",!0)],6)}const Fe=oe(Dc,[["render",Qc],["__scopeId","data-v-e8f2dfa7"]]),Uc=Ye({name:"PreView",props:{file:{type:String,default:""}},data(){return{url:"",video:["mp4","avi","rmvb"],videoShow:!1}},watch:{file:{handler(e,t){if(e)if(this.video.includes(e.substring(e.lastIndexOf(".")+1)))this.videoShow=!0,this.url=e;else{this.videoShow=!1;let i=e.indexOf("https://")==-1?0:1;this.url=`https://wdyl.ddzg.cn:8089/?ssl=${i}&furl=${e}`}},immediate:!0,deep:!0}}}),_c={key:0,style:{width:"100%",height:"calc(100% - 40px)"}},Gc={key:0,style:{height:"100%",width:"100%"},controls:""},qc=["src"],Jc=["src"];function zc(e,t,i,n,r,o){return e.url?(s.openBlock(),s.createElementBlock("div",_c,[e.videoShow?(s.openBlock(),s.createElementBlock("video",Gc,[s.createElementVNode("source",{src:e.url,type:"video/mp4"},null,8,qc)])):(s.openBlock(),s.createElementBlock("iframe",{key:1,style:{height:"100%",border:"unset",width:"100%"},src:e.url},null,8,Jc))])):s.createCommentVNode("",!0)}const Fr=oe(Uc,[["render",zc]]),Kc=Ye({name:"preview-image",props:{images:{type:Array,defalut:()=>[]},startPosition:{type:Number,defalut:0},visible:{type:Boolean,defalut:!1},indexd:{type:Number,defalut:0},isOne:{type:Boolean,defalut:!1},isStyle:{type:String,defalut:""}},data(){return{imagesList:[],moveNum:0,flag:!1,windowWidth:0,windowHeight:0,startX:0,startY:0,move:0,startMove:0,maxX:0,duration:"transition-duration: 0.2s;transition-timing-function:ease;",isIndex:1,show:!1,displacement:{scale:1},styleZoom:"",styleOrigin:"",moveX:"-50%",moveY:"-50%",newScaleData:1}},watch:{images:{handler(e,t){this.imagesList=e},immediate:!0,deep:!0},visible:{handler(e,t){this.show=e},immediate:!0},indexd:{handler(e,t){e>=0&&(this.isIndex=e+1,this.move=e*100*-1)},immediate:!0}},methods:{handelTouchstart(e){let t=e.touches,i=t[0],n=t[1];this.displacement.pageX=i.pageX,this.displacement.pageY=i.pageY,this.displacement.moveable=!0,n?(this.displacement.pageX2=n.pageX,this.displacement.pageY2=n.pageY):(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.windowHeight=(document.documentElement.clientHeight||document.body.clientHeight)/100,this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY,this.startMove=this.move),this.displacement.originScale=this.displacement.scale||1},handelTouchmove(e){if(!this.displacement.moveable)return;e.preventDefault();let t=e.touches,i=t[0],n=t[1];if(n){this.displacement.pageX2||(this.displacement.pageX2=n.pageX),this.displacement.pageY2||(this.displacement.pageY2=n.pageY);let r=this.getDistance({x:i.pageX,y:i.pageY},{x:n.pageX,y:n.pageY})/this.getDistance({x:this.displacement.pageX,y:this.displacement.pageY},{x:this.displacement.pageX2,y:this.displacement.pageY2}),o=this.displacement.originScale*r;o<.5?o=.5:o>3&&(o=3),this.displacement.scale=o,this.styleZoom=`scale(${o})`,this.styleOrigin="0 0"}else this.moveX=`calc(${(e.touches[0].clientX-this.startX)/this.displacement.scale}px - 50%)`,this.moveY=`calc(${(e.touches[0].clientY-this.startY)/this.displacement.scale}px - 50%)`},getDistance(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},touchstartView(e){this.isOne||(this.duration="transition-duration: 0.05s;transition-timing-function:linear",this.flag=!0,this.windowWidth=(document.documentElement.clientWidth||document.body.clientWidth)/100,this.startX=e.touches[0].clientX,this.startMove=this.move)},touchmoveView(e){this.isOne||(this.startX>e.touches[0].clientX?this.move<=-((this.imagesList.length-1)*100)?this.move=-((this.imagesList.length-1)*100):this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth):this.startX<e.touches[0].clientX&&this.move<0&&(this.move>=0?this.move=0:this.move=this.startMove+Math.ceil((e.touches[0].clientX-this.startX)/this.windowWidth)))},touchendView(){if(this.isOne)return;this.duration="transition-duration: 0.2s;transition-timing-function:ease";let e=Math.floor(Math.abs(this.move/100));Math.abs(this.move/100%1)>.5?(this.isIndex=e+2,this.move=(e+1)*100*-1):(this.isIndex=e+1,this.move=e*100*-1),this.flag=!1},handleClose(){this.$emit("update:visible",!1)}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})}}),$b="",Hc={key:0,class:"preview-image"},Wc=["src"],Yc=["src"],Xc={key:2,class:"preview-image-view--page"},Zc={class:"page-item"};function $c(e,t,i,n,r,o){return e.visible?(s.openBlock(),s.createElementBlock("div",Hc,[s.createElementVNode("div",{class:"preview-image-mask",onClick:t[0]||(t[0]=(...a)=>e.handleClose&&e.handleClose(...a))}),e.isOne?(s.openBlock(),s.createElementBlock("div",{key:1,class:"preview-image-view--one",onTouchstart:t[5]||(t[5]=(...a)=>e.handelTouchstart&&e.handelTouchstart(...a)),onTouchmove:t[6]||(t[6]=(...a)=>e.handelTouchmove&&e.handelTouchmove(...a)),style:s.normalizeStyle(`transform:${e.styleZoom} translate(${e.moveX},${e.moveY});${e.duration};${e.styleOrigin?`transformOrigin:${e.styleOrigin}`:""};`)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.imagesList,(a,l)=>(s.openBlock(),s.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Yc))),128))],36)):(s.openBlock(),s.createElementBlock("div",{key:0,class:"preview-image-view--img",style:s.normalizeStyle(`transform: translate(${e.move}%,-50%);${e.duration}`),onTouchstart:t[2]||(t[2]=(...a)=>e.touchstartView&&e.touchstartView(...a)),onTouchmove:t[3]||(t[3]=(...a)=>e.touchmoveView&&e.touchmoveView(...a)),onTouchend:t[4]||(t[4]=(...a)=>e.touchendView&&e.touchendView(...a))},[s.createElementVNode("div",{class:"preview-image-mask",onClick:t[1]||(t[1]=(...a)=>e.handleClose&&e.handleClose(...a)),style:{opacity:"0","z-index":"1"}}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.imagesList,(a,l)=>(s.openBlock(),s.createElementBlock("img",{class:"img-view",key:l,src:a},null,8,Wc))),128))],36)),e.isOne?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Xc,[s.createElementVNode("span",Zc,s.toDisplayString(e.isIndex)+"/"+s.toDisplayString(e.imagesList.length),1)])),t[7]||(t[7]=s.createElementVNode("div",{class:"preview-image-view--close"},null,-1))])):s.createCommentVNode("",!0)}const ss=oe(Kc,[["render",$c],["__scopeId","data-v-d8a210ac"]]),jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAECBJREFUeF7dW21QVFeaPu+53TQEkU+VKKDy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RGJi0rADUu2KeU5wjVC+SXUU8o2AUAAMD0IWuqHhOgj0A2G0b5u16wRlwpDttN+2W1mJ8gEogfGT3tV9MEq9kw76PQO5ktbKjYFQ2XDuRBlIA1Aage8io+q1+3GV8ao3fcbLxW4Po6cy8nR9NBN+YKfjzVVSyqf5PTVav393yJZuwigwsAqAWsU7TdktVMCQABhbkkwDeIRtd+dTIkz/96hsHSrmZyKsnxfq8scy+xWflsrnLEwYvZVAzgRsYaAKjiYimBnabFRoWACsMoJI75kEQegnoZeAIg3YmbWxDvbk3c9n2AUesSkRrMo//Bwdf9ZzE6Zx0AAAAAElFTkSuQmCC",ed=Ye({name:"ViewAttchList",components:{PreView:Fr,TopPopup:Fe,PreviewImage:ss},computed:{del(){return jr},doc(){return Qr},file(){return Ur},image(){return _r},pdf(){return Gr},xls(){return qr},zip(){return Jr}},props:{inList:{type:Array,default:()=>[]}},data(){return{listData:[],imgIcon:["jpg","jpge","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],preList:[],fileUrl:"",visible:!1,visibleImg:!1,lists:[],indexd:0}},watch:{inList:{handler(e,t){if(e.length){this.listData=e,this.lists=[];let i=[];e.map((n,r)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())}),i=e.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())),i.forEach((n,r)=>{this.lists.push(n.url)})}},immediate:!0,deep:!0}},methods:{viewFile(e){this.imgIcon.includes(e.url.substring(e.url.lastIndexOf(".")+1).toLowerCase())?(this.visibleImg=!0,this.indexd=this.lists.indexOf(e.url)):(this.fileUrl=e.url,this.visible=!0)},loadFile(e){var t;if(_n.default.hasNativeMethod("vueUpLoadFile"))_n.default.call("vueUpLoadFile",e.url);else{if(typeof nativeMethod<"u"&&(nativeMethod==null?void 0:nativeMethod.vueUpLoadFile))return nativeMethod.vueUpLoadFile(e.url),!1;const i=document.createElement("a");i.download=(t=e.url)==null?void 0:t.match(/([^\/]+)$/g)[0],i.href=e.url,i.click()}}}}),e1="",td={class:"process-wrap"},id={key:0,class:"attch-list"},sd={class:"list-items-icon"},nd=["src"],rd=["src"],od=["src"],ad=["src"],ld=["src"],cd=["src"],dd=["onClick"],pd={class:"info-name"},hd={class:"info-name-text"},ud={class:"info-attribute"},md={class:"info-attribute-time"},fd={class:"info-attribute-size"},gd=["onClick"],yd={key:1,class:"attch-list"};function Ad(e,t,i,n,r,o){const a=s.resolveComponent("PreView"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("PreviewImage");return s.openBlock(),s.createElementBlock("div",td,[e.listData.length>0?(s.openBlock(),s.createElementBlock("div",id,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.listData,(m,u)=>(s.openBlock(),s.createElementBlock("div",{key:m.id,class:"list-items"},[s.createElementVNode("div",sd,[e.xlsIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,nd)):e.imgIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,rd)):m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,od)):e.docIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,ad)):e.zipIcon.includes(m.name.substring(m.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,ld)):(s.openBlock(),s.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,cd))]),s.createElementVNode("div",{class:"list-items-info",onClick:p=>e.viewFile(m)},[s.createElementVNode("div",pd,[s.createElementVNode("span",hd,s.toDisplayString(m.name),1)]),s.createElementVNode("div",ud,[s.createElementVNode("span",md,s.toDisplayString(m.uploadTime),1),s.createElementVNode("span",fd,s.toDisplayString(m.size<1024?m.size:m.size/1024>1024?parseFloat((m.size/1024/1024).toFixed(2)):parseFloat((m.size/1024).toFixed(2)))+s.toDisplayString(m.size<1024?"b":parseFloat((m.size/1024).toFixed(2))<1024?"kb":"M"),1)])],8,dd),s.createElementVNode("div",{class:"list-items-download",onClick:p=>e.loadFile(m)},[...t[2]||(t[2]=[s.createElementVNode("span",{class:"download-text"},"\u4E0B\u8F7D",-1)])],8,gd)]))),128))])):(s.openBlock(),s.createElementBlock("div",yd,[...t[3]||(t[3]=[s.createElementVNode("div",{class:"attch-list--white"},[s.createElementVNode("div",{class:"attch-list--label"},"\u6682\u65E0\u9644\u4EF6")],-1)])])),s.createVNode(l,{visible:e.visible,"onUpdate:visible":t[0]||(t[0]=m=>e.visible=m),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:s.withCtx(()=>[s.createVNode(a,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"]),s.createVNode(c,{images:e.lists,visible:e.visibleImg,"onUpdate:visible":t[1]||(t[1]=m=>e.visibleImg=m),indexd:e.indexd},null,8,["images","visible","indexd"])])}const zr=oe(ed,[["render",Ad],["__scopeId","data-v-e0d8023e"]]);function rt(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const Bi=Object.prototype.toString,kd=Object.prototype.hasOwnProperty;function tn(e){return e===void 0}function oi(e){return e!==void 0}function Kr(e){return e==null}function Xe(e){return Bi.call(e)==="[object Array]"}function Qt(e){return Bi.call(e)==="[object Object]"}function Nt(e){return Bi.call(e)==="[object Number]"}function Tt(e){const t=Bi.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function Ze(e){return Bi.call(e)==="[object String]"}function ai(e,t){return!Kr(e)&&kd.call(e,t)}function $e(e,t){const i=sn(t);let n;return R(e,function(r,o){if(i(r,o))return n=r,!1}),n}function Ed(e,t){const i=sn(t);let n=Xe(e)?-1:void 0;return R(e,function(r,o){if(i(r,o))return n=o,!1}),n}function li(e,t){const i=sn(t);let n=[];return R(e,function(r,o){i(r,o)&&n.push(r)}),n}function R(e,t){let i,n;if(tn(e))return;const r=Xe(e)?wd:Cd;for(let o in e)if(ai(e,o)&&(i=e[o],n=t(i,r(o)),n===!1))return i}function ci(e,t,i){return R(e,function(n,r){i=t(i,n,r)}),i}function Hr(e,t){return!!ci(e,function(i,n,r){return i&&t(n,r)},!0)}function Wr(e,t){return!!$e(e,t)}function bd(e,t){let i=[];return R(e,function(n,r){i.push(t(n,r))}),i}function Yr(e){return function(t){return Hr(e,function(i,n){return t[n]===i})}}function sn(e){return Tt(e)?e:t=>t===e}function Cd(e){return e}function wd(e){return Number(e)}function Nd(e,t){let i,n,r,o;function a(p){let y=Date.now(),k=p?0:o+t-y;if(k>0)return l(k);e.apply(r,n),c()}function l(p){i=setTimeout(a,p)}function c(){i&&clearTimeout(i),i=o=n=r=void 0}function m(){i&&a(!0),c()}function u(...p){o=Date.now(),n=p,r=this,i||l(t)}return u.flush=m,u.cancel=c,u}function It(e,t){return e.bind(t)}function q(e,...t){return Object.assign(e,...t)}function Td(e,t,i){let n=e;return R(t,function(r,o){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let a=t[o+1],l=n[r];oi(a)&&Kr(l)&&(l=n[r]=isNaN(+a)?{}:[]),tn(a)?tn(i)?delete n[r]:n[r]=i:n=l}),e}function Id(e,t){let i={},n=Object(e);return R(t,function(r){r in n&&(i[r]=e[r])}),i}function Bd(e,t){let i={},n=Object(e);return R(n,function(r,o){t.indexOf(o)===-1&&(i[o]=r)}),i}var xd=1e3;function dt(e,t){var i=this;t=t||xd,e.on(["render.shape","render.connection"],t,function(n,r){var o=n.type,a=r.element,l=r.gfx,c=r.attrs;if(i.canRender(a))return o==="render.shape"?i.drawShape(l,a,c):i.drawConnection(l,a,c)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(n,r){if(i.canRender(r))return n.type==="render.getShapePath"?i.getShapePath(r):i.getConnectionPath(r)})}dt.prototype.canRender=function(e){},dt.prototype.drawShape=function(e,t){},dt.prototype.drawConnection=function(e,t){},dt.prototype.getShapePath=function(e){},dt.prototype.getConnectionPath=function(e){};function U(e,t){var i=pe(e);return i&&typeof i.$instanceOf=="function"&&i.$instanceOf(t)}function Sd(e,t){return Wr(t,function(i){return U(e,i)})}function pe(e){return e&&e.businessObject||e}function Ut(e){return e&&e.di}function _t(e,t){return U(e,"bpmn:CallActivity")?!1:U(e,"bpmn:SubProcess")?(t=t||Ut(e),t&&U(t,"bpmndi:BPMNPlane")?!0:t&&!!t.isExpanded):U(e,"bpmn:Participant")?!!pe(e).processRef:!0}function Xr(e){if(!(!U(e,"bpmn:Participant")&&!U(e,"bpmn:Lane"))){var t=Ut(e).isHorizontal;return t===void 0?!0:t}}function Dd(e){return e&&!!pe(e).triggeredByEvent}function Pd(e){return Qt(e)&&ai(e,"waypoints")}var ns={width:90,height:20},Zr=15;function Md(e){return U(e,"bpmn:Event")||U(e,"bpmn:Gateway")||U(e,"bpmn:DataStoreReference")||U(e,"bpmn:DataObjectReference")||U(e,"bpmn:DataInput")||U(e,"bpmn:DataOutput")||U(e,"bpmn:SequenceFlow")||U(e,"bpmn:MessageFlow")||U(e,"bpmn:Group")}function Vd(e){var t=e.length/2-1,i=e[Math.floor(t)],n=e[Math.ceil(t+.01)],r=Od(e),o=Math.atan((n.y-i.y)/(n.x-i.x)),a=r.x,l=r.y;return Math.abs(o)<Math.PI/2?l-=Zr:a+=Zr,{x:a,y:l}}function Od(e){var t=e.length/2-1,i=e[Math.floor(t)],n=e[Math.ceil(t+.01)];return{x:i.x+(n.x-i.x)/2,y:i.y+(n.y-i.y)/2}}function Rd(e){return e.waypoints?Vd(e.waypoints):U(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+ns.height/2}:{x:e.x+e.width/2,y:e.y+e.height+ns.height/2}}function Ld(e,t){var i,n,r,o=e.label;return o&&o.bounds?(r=o.bounds,n={width:Math.max(ns.width,r.width),height:r.height},i={x:r.x+r.width/2,y:r.y+r.height/2}):(i=Rd(t),n=ns),q({x:i.x-n.width/2,y:i.y-n.height/2},n)}function vd(e){if(U(e,"bpmn:FlowElement")||U(e,"bpmn:Participant")||U(e,"bpmn:Lane")||U(e,"bpmn:SequenceFlow")||U(e,"bpmn:MessageFlow")||U(e,"bpmn:DataInput")||U(e,"bpmn:DataOutput"))return"name";if(U(e,"bpmn:TextAnnotation"))return"text";if(U(e,"bpmn:Group"))return"categoryValueRef"}function Fd(e){var t=e.categoryValueRef;return t&&t.value||""}function rs(e){var t=e.businessObject,i=vd(t);if(i)return i==="categoryValueRef"?Fd(t):t[i]||""}function jd(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch{}return e}function $r(e,t){return t.appendChild(jd(e,t))}function he(e,t){return $r(t,e),e}var nn=2,eo={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":nn,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":nn,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function Qd(e,t){return eo[t]?e.style[t]:e.getAttributeNS(null,t)}function to(e,t,i){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=eo[n];r?(r===nn&&typeof i=="number"&&(i=String(i)+"px"),e.style[n]=i):e.setAttributeNS(null,t,i)}function Ud(e,t){var i=Object.keys(t),n,r;for(n=0,r;r=i[n];n++)to(e,r,t[r])}function ne(e,t,i){if(typeof t=="string")if(i!==void 0)to(e,t,i);else return Qd(e,t);else Ud(e,t);return e}const _d=Object.prototype.toString;function je(e){return new Bt(e)}function Bt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Bt.prototype.add=function(e){return this.list.add(e),this},Bt.prototype.remove=function(e){return _d.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Bt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},Bt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Bt.prototype.array=function(){return Array.from(this.list)},Bt.prototype.has=Bt.prototype.contains=function(e){return this.list.contains(e)};function io(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}var rn={svg:"http://www.w3.org/2000/svg"},so='<svg xmlns="'+rn.svg+'"';function no(e){var t=!1;e.substring(0,4)==="<svg"?e.indexOf(rn.svg)===-1&&(e=so+e.substring(4)):(e=so+">"+e+"</svg>",t=!0);var i=Gd(e);if(!t)return i;for(var n=document.createDocumentFragment(),r=i.firstChild;r.firstChild;)n.appendChild(r.firstChild);return n}function Gd(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}function re(e,t){var i;return e=e.trim(),e.charAt(0)==="<"?(i=no(e).firstChild,i=document.importNode(i,!0)):i=document.createElementNS(rn.svg,e),t&&ne(i,t),i}var on=null;function an(){return on===null&&(on=re("svg")),on}function ro(e,t){var i,n,r=Object.keys(t);for(i=0;n=r[i];i++)e[n]=t[n];return e}function qd(e,t,i,n,r,o){var a=an().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return ro(a,e);case 6:return ro(a,{a:e,b:t,c:i,d:n,e:r,f:o})}}function xi(e){return e?an().createSVGTransformFromMatrix(e):an().createSVGTransform()}var oo=/([&<>]{1})/g,Jd=/([&<>\n\r"]{1})/g,zd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function ln(e,t){function i(n,r){return zd[r]||r}return e.replace(t,i)}function ao(e,t){var i,n,r,o,a;switch(e.nodeType){case 3:t.push(ln(e.textContent,oo));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(r=e.attributes,i=0,n=r.length;i<n;++i)o=r.item(i),t.push(" ",o.name,'="',ln(o.value,Jd),'"');if(e.hasChildNodes()){for(t.push(">"),a=e.childNodes,i=0,n=a.length;i<n;++i)ao(a.item(i),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("<!--",ln(e.nodeValue,oo),"-->");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Kd(e,t){var i=no(t);if(io(e),!!t){Wd(i)||(i=i.documentElement);for(var n=Yd(i.childNodes),r=0;r<n.length;r++)$r(n[r],e)}}function Hd(e){for(var t=e.firstChild,i=[];t;)ao(t,i),t=t.nextSibling;return i.join("")}function Wd(e){return e.nodeName==="#document-fragment"}function lo(e,t){if(t!==void 0){try{Kd(e,t)}catch(i){throw new Error("error parsing SVG: "+i.message)}return e}else return Hd(e)}function Yd(e){return Array.prototype.slice.call(e)}function Si(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Xd(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function Zd(e,t){var i,n;for(e.clear(),i=0;n=t[i];i++)e.appendItem(Xd(e,n))}function Di(e,t){var i=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),Zd(i,t)),i.consolidate()}function Gt(e){return e.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function $d(e){return["M",e.x,e.y]}function cn(e){return["L",e.x,e.y]}function ep(e,t,i){return["C",e.x,e.y,t.x,t.y,i.x,i.y]}function tp(e,t){const i=e.length,n=[$d(e[0])];for(let r=1;r<i;r++){const o=e[r-1],a=e[r],l=e[r+1];if(!l||!t){n.push(cn(a));continue}const c=Math.min(t,dn(a.x-o.x,a.y-o.y),dn(l.x-a.x,l.y-a.y));if(!c){n.push(cn(a));continue}const m=os(a,o,c),u=os(a,o,c*.5),p=os(a,l,c),y=os(a,l,c*.5);n.push(cn(m)),n.push(ep(u,y,p))}return n}function os(e,t,i){const n=t.x-e.x,r=t.y-e.y,o=dn(n,r),a=i/o;return{x:e.x+n*a,y:e.y+r*a}}function dn(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function pn(e,t,i){Nt(t)&&(i=t,t=null),t||(t={});const n=re("path",t);return Nt(i)&&(n.dataset.cornerRadius=String(i)),co(n,e)}function co(e,t){const i=parseInt(e.dataset.cornerRadius,10)||0;return ne(e,{d:Gt(tp(t,i))}),e}var hn="hsl(225, 10%, 15%)",ip="white";function ot(e,t){return Wr(e.eventDefinitions,function(i){return i.$type===t})}function sp(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function np(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function H(e,t,i){var n=Ut(e);return i||n.get("color:background-color")||n.get("bioc:fill")||t||ip}function P(e,t,i){var n=Ut(e);return i||n.get("color:border-color")||n.get("bioc:stroke")||t||hn}function Pi(e,t,i,n){var r=Ut(e),o=r.get("label");return n||o&&o.get("color:color")||t||P(e,i)}function rp(e){var t=e.x+e.width/2,i=e.y+e.height/2,n=e.width/2,r=[["M",t,i],["m",0,-n],["a",n,n,0,1,1,0,2*n],["a",n,n,0,1,1,0,-2*n],["z"]];return Gt(r)}function op(e,t){var i=e.x,n=e.y,r=e.width,o=e.height,a=[["M",i+t,n],["l",r-t*2,0],["a",t,t,0,0,1,t,t],["l",0,o-t*2],["a",t,t,0,0,1,-t,t],["l",t*2-r,0],["a",t,t,0,0,1,-t,-t],["l",0,t*2-o],["a",t,t,0,0,1,t,-t],["z"]];return Gt(a)}function ap(e){var t=e.width,i=e.height,n=e.x,r=e.y,o=t/2,a=i/2,l=[["M",n+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return Gt(l)}function lp(e){var t=e.x,i=e.y,n=e.width,r=e.height,o=[["M",t,i],["l",n,0],["l",0,r],["l",-n,0],["z"]];return Gt(o)}function Mi(e,t={}){return{width:Je(e,t),height:Oe(e,t)}}function Je(e,t={}){return ai(t,"width")?t.width:e.width}function Oe(e,t={}){return ai(t,"height")?t.height:e.height}function cp(e,t){return t.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return i[n]}})}})}),Object.freeze(e)}const dp=Object.prototype.toString,pp=Object.prototype.hasOwnProperty;function hp(e){return e===void 0}function up(e){return dp.call(e)==="[object Array]"}function mp(e,t){return pp.call(e,t)}function po(e,t){let i,n;if(hp(e))return;const r=up(e)?gp:fp;for(let o in e)if(mp(e,o)&&(i=e[o],n=t(i,r(o)),n===!1))return i}function fp(e){return e}function gp(e){return Number(e)}function Ee(e,...t){const i=e.style;return po(t,function(n){!n||po(n,function(r,o){i[o]=r})}),e}function ho(e,t,i){return arguments.length==2?e.getAttribute(t):i===null?e.removeAttribute(t):(e.setAttribute(t,i),e)}const yp=Object.prototype.toString;function qt(e){return new xt(e)}function xt(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}xt.prototype.add=function(e){return this.list.add(e),this},xt.prototype.remove=function(e){return yp.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},xt.prototype.removeMatching=function(e){const t=this.array();for(let i=0;i<t.length;i++)e.test(t[i])&&this.remove(t[i]);return this},xt.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},xt.prototype.array=function(){return Array.from(this.list)},xt.prototype.has=xt.prototype.contains=function(e){return this.list.contains(e)};function uo(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function mo(e,t,i){var n=i?e:e.parentNode;return n&&typeof n.closest=="function"&&n.closest(t)||null}var as={},ls,un,mn;function fo(){ls=window.addEventListener?"addEventListener":"attachEvent",un=window.removeEventListener?"removeEventListener":"detachEvent",mn=ls!=="addEventListener"?"on":""}var Ap=as.bind=function(e,t,i,n){return ls||fo(),e[ls](mn+t,i,n||!1),i},kp=as.unbind=function(e,t,i,n){return un||fo(),e[un](mn+t,i,n||!1),i},Jt=cp({__proto__:null,bind:Ap,unbind:kp,default:as},[as]),go=["focus","blur"];function Ep(e,t,i,n,r){return go.indexOf(i)!==-1&&(r=!0),Jt.bind(e,i,function(o){var a=o.target||o.srcElement;o.delegateTarget=mo(a,t,!0),o.delegateTarget&&n.call(e,o)},r)}function bp(e,t,i,n){return go.indexOf(t)!==-1&&(n=!0),Jt.unbind(e,t,i,n)}var di={bind:Ep,unbind:bp},Cp=wp,yo=!1,cs;typeof document<"u"&&(cs=document.createElement("div"),cs.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',yo=!cs.getElementsByTagName("link").length,cs=void 0);var me={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:yo?[1,"X<div>","</div>"]:[0,"",""]};me.td=me.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],me.option=me.optgroup=[1,'<select multiple="multiple">',"</select>"],me.thead=me.tbody=me.colgroup=me.caption=me.tfoot=[1,"<table>","</table>"],me.polyline=me.ellipse=me.polygon=me.circle=me.text=me.line=me.path=me.rect=me.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function wp(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var i=/<([\w:]+)/.exec(e);if(!i)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var n=i[1];if(n=="body"){var c=t.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var r=Object.prototype.hasOwnProperty.call(me,n)?me[n]:me._default,o=r[0],a=r[1],l=r[2],c=t.createElement("div");for(c.innerHTML=a+e+l;o--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var m=t.createDocumentFragment();c.firstChild;)m.appendChild(c.removeChild(c.firstChild));return m}var Qe=Cp;function et(e,t){return t=t||document,t.querySelector(e)}function Np(e,t){return t=t||document,t.querySelectorAll(e)}function pi(e){e.parentNode&&e.parentNode.removeChild(e)}function fn(e,t,i,n,r){var o=xi();o.setTranslate(t,i);var a=xi();a.setRotate(n||0,0,0);var l=xi();l.setScale(r||1,r||1),Di(e,[o,a,l])}function Ao(e,t,i){var n=xi();n.setTranslate(t,i),Di(e,n)}function Tp(e,t){var i=xi();i.setRotate(t,0,0),Di(e,i)}function Ip(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Bp=Ip(function(e){var t=e.exports=function(i,n){if(n||(n=16),i===void 0&&(i=128),i<=0)return"0";for(var r=Math.log(Math.pow(2,i))/Math.log(n),o=2;r===1/0;o*=2)r=Math.log(Math.pow(2,i/o))/Math.log(n)*o;for(var a=r-Math.floor(r),l="",o=0;o<Math.floor(r);o++){var c=Math.floor(Math.random()*n).toString(n);l=c+l}if(a){var m=Math.pow(n,a),c=Math.floor(Math.random()*m).toString(n);l=c+l}var u=parseInt(l,n);return u!==1/0&&u>=Math.pow(2,i)?t(i,n):l};t.rack=function(i,n,r){var o=function(l){var c=0;do{if(c++>10)if(r)i+=r;else throw new Error("too many ID collisions, use more bits");var m=t(i,n)}while(Object.hasOwnProperty.call(a,m));return a[m]=l,m},a=o.hats={};return o.get=function(l){return o.hats[l]},o.set=function(l,c){return o.hats[l]=c,o},o.bits=i||128,o.base=n||16,o}});function pt(e){if(!(this instanceof pt))return new pt(e);e=e||[128,36,1],this._seed=e.length?Bp.rack(e[0],e[1],e[2]):e}pt.prototype.next=function(e){return this._seed(e||!0)},pt.prototype.nextPrefixed=function(e,t){var i;do i=e+this.next(!0);while(this.assigned(i));return this.claim(i,t),i},pt.prototype.claim=function(e,t){this._seed.set(e,t||!0)},pt.prototype.assigned=function(e){return this._seed.get(e)||!1},pt.prototype.unclaim=function(e){delete this._seed.hats[e]},pt.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};var xp=new pt,Sp=10,ds=3,Dp=1.5,ps=10,hi=.95,Pp=1,Mp=.25;function zt(e,t,i,n,r,o,a){dt.call(this,t,a);var l=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,m=e&&e.defaultLabelColor,u=xp.next(),p={};function y(f){return i.computeStyle(f,{strokeLinecap:"round",strokeLinejoin:"round",stroke:hn,strokeWidth:2,fill:"white"})}function k(f){return i.computeStyle(f,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:hn,strokeWidth:2})}function C(f,d){var{ref:h={x:0,y:0},scale:g=1,element:A}=d,b=re("marker",{id:f,viewBox:"0 0 20 20",refX:h.x,refY:h.y,markerWidth:20*g,markerHeight:20*g,orient:"auto"});he(b,A);var Q=et("defs",r._svg);Q||(Q=re("defs"),he(r._svg,Q)),he(Q,b),p[f]=b}function v(f){return f.replace(/[^0-9a-zA-Z]+/g,"_")}function F(f,d,h){var g=f+"-"+v(d)+"-"+v(h)+"-"+u;return p[g]||z(g,f,d,h),"url(#"+g+")"}function z(f,d,h,g){if(d==="sequenceflow-end"){var A=re("path",{d:"M 1 5 L 11 10 L 1 15 Z",...y({fill:g,stroke:g,strokeWidth:1})});C(f,{element:A,ref:{x:11,y:10},scale:.5})}if(d==="messageflow-start"){var b=re("circle",{cx:6,cy:6,r:3.5,...y({fill:h,stroke:g,strokeWidth:1,strokeDasharray:[1e4,1]})});C(f,{element:b,ref:{x:6,y:6}})}if(d==="messageflow-end"){var Q=re("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...y({fill:h,stroke:g,strokeWidth:1,strokeDasharray:[1e4,1]})});C(f,{element:Q,ref:{x:8.5,y:5}})}if(d==="association-start"){var Z=re("path",{d:"M 11 5 L 1 10 L 11 15",...k({fill:"none",stroke:g,strokeWidth:1.5,strokeDasharray:[1e4,1]})});C(f,{element:Z,ref:{x:1,y:10},scale:.5})}if(d==="association-end"){var Y=re("path",{d:"M 1 5 L 11 10 L 1 15",...k({fill:"none",stroke:g,strokeWidth:1.5,strokeDasharray:[1e4,1]})});C(f,{element:Y,ref:{x:11,y:10},scale:.5})}if(d==="conditional-flow-marker"){var $=re("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...y({fill:h,stroke:g})});C(f,{element:$,ref:{x:-1,y:10},scale:.5})}if(d==="conditional-default-flow-marker"){var ye=re("path",{d:"M 6 4 L 10 16",...y({stroke:g})});C(f,{element:ye,ref:{x:0,y:10},scale:.5})}}function j(f,d,h,g,A={}){Qt(g)&&(A=g,g=0),g=g||0,A=y(A);var b=d/2,Q=h/2,Z=re("circle",{cx:b,cy:Q,r:Math.round((d+h)/4-g),...A});return he(f,Z),Z}function I(f,d,h,g,A,b){Qt(A)&&(b=A,A=0),A=A||0,b=y(b);var Q=re("rect",{x:A,y:A,width:d-A*2,height:h-A*2,rx:g,ry:g,...b});return he(f,Q),Q}function E(f,d,h,g){var A=d/2,b=h/2,Q=[{x:A,y:0},{x:d,y:b},{x:A,y:h},{x:0,y:b}],Z=Q.map(function($){return $.x+","+$.y}).join(" ");g=y(g);var Y=re("polygon",{...g,points:Z});return he(f,Y),Y}function x(f,d,h,g){h=k(h);var A=pn(d,h,g);return he(f,A),A}function S(f,d,h){return x(f,d,h,5)}function D(f,d,h){h=k(h);var g=re("path",{...h,d});return he(f,g),g}function w(f,d,h,g){return D(d,h,q({"data-marker":f},g))}function V(f){return de[f]}function B(f){return function(d,h,g){return V(f)(d,h,g)}}var O={"bpmn:MessageEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width,containerHeight:d.height,position:{mx:.235,my:.315}}),b=g?P(d,c,h.stroke):H(d,l,h.fill),Q=g?H(d,l,h.fill):P(d,c,h.stroke),Z=D(f,A,{fill:b,stroke:Q,strokeWidth:1});return Z},"bpmn:TimerEventDefinition":function(f,d,h={}){var g=j(f,d.width,d.height,.2*d.height,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:2}),A=n.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.5}});D(f,A,{stroke:P(d,c,h.stroke),strokeWidth:2});for(var b=0;b<12;b++){var Q=n.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.5}}),Z=d.width/2,Y=d.height/2;D(f,Q,{strokeWidth:1,stroke:P(d,c,h.stroke),transform:"rotate("+b*30+","+Y+","+Z+")"})}return g},"bpmn:EscalationEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.2}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(f,d,h={}){var g=n.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.222}});return D(f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.57,my:.263}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width,containerHeight:d.height,position:{mx:.2,my:.722}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.638,my:-.055}}),b=g?P(d,c,h.stroke):"none",Q=D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1});return Tp(Q,45),Q},"bpmn:CompensateEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.22,my:.5}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:d.width,containerHeight:d.height,position:{mx:.5,my:.2}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{strokeWidth:1,fill:b,stroke:P(d,c,h.stroke)})},"bpmn:MultipleEventDefinition":function(f,d,h={},g){var A=n.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:d.width,containerHeight:d.height,position:{mx:.222,my:.36}}),b=g?P(d,c,h.stroke):H(d,l,h.fill);return D(f,A,{fill:b,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(f,d,h={}){var g=n.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:d.width,containerHeight:d.height,position:{mx:.458,my:.194}});return D(f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(f,d,h={}){var g=j(f,d.width,d.height,8,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:4});return g}};function M(f,d,h={}){var g=pe(f),A=sp(g);return g.get("eventDefinitions")&&g.get("eventDefinitions").length>1?g.get("parallelMultiple")?O["bpmn:ParallelMultipleEventDefinition"](d,f,h,A):O["bpmn:MultipleEventDefinition"](d,f,h,A):ot(g,"bpmn:MessageEventDefinition")?O["bpmn:MessageEventDefinition"](d,f,h,A):ot(g,"bpmn:TimerEventDefinition")?O["bpmn:TimerEventDefinition"](d,f,h,A):ot(g,"bpmn:ConditionalEventDefinition")?O["bpmn:ConditionalEventDefinition"](d,f,h,A):ot(g,"bpmn:SignalEventDefinition")?O["bpmn:SignalEventDefinition"](d,f,h,A):ot(g,"bpmn:EscalationEventDefinition")?O["bpmn:EscalationEventDefinition"](d,f,h,A):ot(g,"bpmn:LinkEventDefinition")?O["bpmn:LinkEventDefinition"](d,f,h,A):ot(g,"bpmn:ErrorEventDefinition")?O["bpmn:ErrorEventDefinition"](d,f,h,A):ot(g,"bpmn:CancelEventDefinition")?O["bpmn:CancelEventDefinition"](d,f,h,A):ot(g,"bpmn:CompensateEventDefinition")?O["bpmn:CompensateEventDefinition"](d,f,h,A):ot(g,"bpmn:TerminateEventDefinition")?O["bpmn:TerminateEventDefinition"](d,f,h,A):null}var _={ParticipantMultiplicityMarker:function(f,d,h={}){var g=Je(d,h),A=Oe(d,h),b=n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2-6)/g,my:(A-15)/A}});w("participant-multiplicity",f,b,{strokeWidth:2,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},SubProcessMarker:function(f,d,h={}){var g=I(f,14,14,0,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)});Ao(g,d.width/2-7.5,d.height-20);var A=n.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2-7.5)/d.width,my:(d.height-20)/d.height}});w("sub-process",f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},ParallelMarker:function(f,d,h){var g=Je(d,h),A=Oe(d,h),b=n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.parallel)/g,my:(A-20)/A}});w("parallel",f,b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},SequentialMarker:function(f,d,h){var g=n.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2+h.seq)/d.width,my:(d.height-19)/d.height}});w("sequential",f,g,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},CompensationMarker:function(f,d,h){var g=n.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:(d.width/2+h.compensation)/d.width,my:(d.height-13)/d.height}});w("compensation",f,g,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})},LoopMarker:function(f,d,h){var g=Je(d,h),A=Oe(d,h),b=n.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.loop)/g,my:(A-7)/A}});w("loop",f,b,{strokeWidth:1.5,fill:"none",stroke:P(d,c,h.stroke),strokeMiterlimit:.5})},AdhocMarker:function(f,d,h){var g=Je(d,h),A=Oe(d,h),b=n.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:(g/2+h.adhoc)/g,my:(A-15)/A}});w("adhoc",f,b,{strokeWidth:1,fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke)})}};function K(f,d,h,g){_[f](d,h,g)}function it(f,d,h,g={}){g={fill:g.fill,stroke:g.stroke,width:Je(d,g),height:Oe(d,g)};var A=pe(d),b=h&&h.includes("SubProcessMarker");b?g={...g,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:g={...g,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},R(h,function(Y){K(Y,f,d,g)}),A.get("isForCompensation")&&K("CompensationMarker",f,d,g),U(A,"bpmn:AdHocSubProcess")&&K("AdhocMarker",f,d,g);var Q=A.get("loopCharacteristics"),Z=Q&&Q.get("isSequential");Q&&(Z===void 0&&K("LoopMarker",f,d,g),Z===!1&&K("ParallelMarker",f,d,g),Z===!0&&K("SequentialMarker",f,d,g))}function ie(f,d,h={}){h=q({size:{width:100}},h);var g=o.createText(d||"",h);return je(g).add("djs-label"),he(f,g),g}function X(f,d,h,g={}){var A=pe(d),b=Mi({x:d.x,y:d.y,width:d.width,height:d.height},g);return ie(f,A.name,{align:h,box:b,padding:7,style:{fill:Pi(d,m,c,g.stroke)}})}function lt(f,d,h={}){var g={width:90,height:30,x:d.width/2+d.x,y:d.height/2+d.y};return ie(f,rs(d),{box:g,fitBox:!0,style:q({},o.getExternalStyle(),{fill:Pi(d,m,c,h.stroke)})})}function ct(f,d,h,g={}){var A=Xr(h),b=ie(f,d,{box:{height:30,width:A?Oe(h,g):Je(h,g)},align:"center-middle",style:{fill:Pi(h,m,c,g.stroke)}});if(A){var Q=-1*Oe(h,g);fn(b,0,-Q,270)}}function ge(f,d,h={}){var{width:g,height:A}=Mi(d,h);return I(f,g,A,ps,{...h,fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke)})}function ft(f,d,h={}){var g=pe(d),A=H(d,l,h.fill),b=P(d,c,h.stroke);return(g.get("associationDirection")==="One"||g.get("associationDirection")==="Both")&&(h.markerEnd=F("association-end",A,b)),g.get("associationDirection")==="Both"&&(h.markerStart=F("association-start",A,b)),h=W(h,["markerStart","markerEnd"]),S(f,d.waypoints,{...h,stroke:b,strokeDasharray:"0, 5"})}function gt(f,d,h={}){var g=H(d,l,h.fill),A=P(d,c,h.stroke),b=n.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.474,my:.296}}),Q=D(f,b,{fill:g,fillOpacity:hi,stroke:A}),Z=pe(d);if(np(Z)){var Y=n.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:.33,my:(d.height-18)/d.height}});D(f,Y,{strokeWidth:2,fill:g,stroke:A})}return Q}function N(f,d,h={}){return j(f,d.width,d.height,{fillOpacity:hi,...h,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)})}function T(f,d,h={}){return E(f,d.width,d.height,{fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke)})}function L(f,d,h={}){var g=I(f,Je(d,h),Oe(d,h),0,{fill:H(d,l,h.fill),fillOpacity:h.fillOpacity||hi,stroke:P(d,c,h.stroke),strokeWidth:1.5}),A=pe(d);if(U(A,"bpmn:Lane")){var b=A.get("name");ct(f,b,d,h)}return g}function ce(f,d,h={}){var g=ge(f,d,h);Dd(d)&&ne(g,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var A=_t(d);return X(f,d,A?"center-top":"center-middle",h),A?it(f,d,void 0,h):it(f,d,["SubProcessMarker"],h),g}function ke(f,d,h={}){var g=ge(f,d,h);return X(f,d,"center-middle",h),it(f,d,void 0,h),g}var de=this.handlers={"bpmn:AdHocSubProcess":function(f,d,h={}){return _t(d)?h=W(h,["fill","stroke","width","height"]):h=W(h,["fill","stroke"]),ce(f,d,h)},"bpmn:Association":function(f,d,h={}){return h=W(h,["fill","stroke"]),ft(f,d,h)},"bpmn:BoundaryEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=pe(d),b=A.get("cancelActivity");h={strokeWidth:1.5,fill:H(d,l,h.fill),fillOpacity:Pp,stroke:P(d,c,h.stroke)},b||(h.strokeDasharray="6");var Q=N(f,d,h);return j(f,d.width,d.height,ds,{...h,fill:"none"}),g&&M(d,f,h),Q},"bpmn:BusinessRuleTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),b=D(f,A);ne(b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1});var Q=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),Z=D(f,Q);return ne(Z,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:CallActivity":function(f,d,h={}){return h=W(h,["fill","stroke"]),ce(f,d,{strokeWidth:5,...h})},"bpmn:ComplexGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h),A=n.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:d.width,containerHeight:d.height,position:{mx:.46,my:.26}});return D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:DataInput":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=n.getRawPath("DATA_ARROW"),A=gt(f,d,h);return D(f,g,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1}),A},"bpmn:DataInputAssociation":function(f,d,h={}){return h=W(h,["fill","stroke"]),ft(f,d,{...h,markerEnd:F("association-end",H(d,l,h.fill),P(d,c,h.stroke))})},"bpmn:DataObject":function(f,d,h={}){return h=W(h,["fill","stroke"]),gt(f,d,h)},"bpmn:DataObjectReference":B("bpmn:DataObject"),"bpmn:DataOutput":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=n.getRawPath("DATA_ARROW"),A=gt(f,d,h);return D(f,g,{strokeWidth:1,fill:H(d,l,h.fill),stroke:P(d,c,h.stroke)}),A},"bpmn:DataOutputAssociation":function(f,d,h={}){return h=W(h,["fill","stroke"]),ft(f,d,{...h,markerEnd:F("association-end",H(d,l,h.fill),P(d,c,h.stroke))})},"bpmn:DataStoreReference":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=n.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:d.width,containerHeight:d.height,position:{mx:0,my:.133}});return D(f,g,{fill:H(d,l,h.fill),fillOpacity:hi,stroke:P(d,c,h.stroke),strokeWidth:2})},"bpmn:EndEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=N(f,d,{...h,strokeWidth:4});return g&&M(d,f,h),A},"bpmn:EventBasedGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=pe(d),A=T(f,d,h);j(f,d.width,d.height,d.height*.2,{fill:H(d,"none",h.fill),stroke:P(d,c,h.stroke),strokeWidth:1});var b=g.get("eventGatewayType"),Q=!!g.get("instantiate");function Z(){var $=n.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:d.width,containerHeight:d.height,position:{mx:.36,my:.44}});D(f,$,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:2})}if(b==="Parallel"){var Y=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:d.width,containerHeight:d.height,position:{mx:.474,my:.296}});D(f,Y,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1})}else b==="Exclusive"&&(Q||j(f,d.width,d.height,d.height*.26,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1}),Z());return A},"bpmn:ExclusiveGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h),A=n.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:d.width,containerHeight:d.height,position:{mx:.32,my:.3}}),b=Ut(d);return b.get("isMarkerVisible")&&D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:Gateway":function(f,d,h={}){return h=W(h,["fill","stroke"]),T(f,d,h)},"bpmn:Group":function(f,d,h={}){return h=W(h,["fill","stroke","width","height"]),I(f,d.width,d.height,ps,{stroke:P(d,c,h.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:Je(d,h),height:Oe(d,h)})},"bpmn:InclusiveGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h);return j(f,d.width,d.height,d.height*.24,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:2.5}),g},"bpmn:IntermediateEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=N(f,d,{...h,strokeWidth:1.5});return j(f,d.width,d.height,ds,{fill:"none",stroke:P(d,c,h.stroke),strokeWidth:1.5}),g&&M(d,f,h),A},"bpmn:IntermediateCatchEvent":B("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":B("bpmn:IntermediateEvent"),"bpmn:Lane":function(f,d,h={}){return h=W(h,["fill","stroke","width","height"]),L(f,d,{...h,fillOpacity:Mp})},"bpmn:ManualTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5}),g},"bpmn:MessageFlow":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=pe(d),A=Ut(d),b=H(d,l,h.fill),Q=P(d,c,h.stroke),Z=S(f,d.waypoints,{markerEnd:F("messageflow-end",b,Q),markerStart:F("messageflow-start",b,Q),stroke:Q,strokeDasharray:"10, 11",strokeWidth:1.5});if(g.get("messageRef")){var Y=Z.getPointAtLength(Z.getTotalLength()/2),$=n.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Y.x,y:Y.y}}),ye={strokeWidth:1};A.get("messageVisibleKind")==="initiating"?(ye.fill=b,ye.stroke=Q):(ye.fill=Q,ye.stroke=b);var ee=D(f,$,ye),Vt=g.get("messageRef"),Bs=Vt.get("name"),Le=ie(f,Bs,{align:"center-top",fitBox:!0,style:{fill:Q}}),G=ee.getBBox(),te=Le.getBBox(),Kb=Y.x-te.width/2,Hb=Y.y+G.height/2+Sp;fn(Le,Kb,Hb,0)}return Z},"bpmn:ParallelGateway":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=T(f,d,h),A=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:d.width,containerHeight:d.height,position:{mx:.46,my:.2}});return D(f,A,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:Participant":function(f,d,h={}){h=W(h,["fill","stroke","width","height"]);var g=L(f,d,h),A=_t(d),b=Xr(d),Q=pe(d),Z=Q.get("name");if(A){var Y=b?[{x:30,y:0},{x:30,y:Oe(d,h)}]:[{x:0,y:30},{x:Je(d,h),y:30}];x(f,Y,{stroke:P(d,c,h.stroke),strokeWidth:Dp}),ct(f,Z,d,h)}else{var $=Mi(d,h);b||($.height=Je(d,h),$.width=Oe(d,h));var ye=ie(f,Z,{box:$,align:"center-middle",style:{fill:Pi(d,m,c,h.stroke)}});if(!b){var ee=-1*Oe(d,h);fn(ye,0,-ee,270)}}return Q.get("participantMultiplicity")&&K("ParticipantMultiplicityMarker",f,d,h),g},"bpmn:ReceiveTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=pe(d),A=ke(f,d,h),b;return g.get("instantiate")?(j(f,28,28,20*.22,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),b=n.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):b=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),D(f,b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),A},"bpmn:ScriptTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:SendTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return D(f,A,{fill:P(d,c,h.stroke),stroke:H(d,l,h.fill),strokeWidth:1}),g},"bpmn:SequenceFlow":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=H(d,l,h.fill),A=P(d,c,h.stroke),b=S(f,d.waypoints,{markerEnd:F("sequenceflow-end",g,A),stroke:A}),Q=pe(d),{source:Z}=d;if(Z){var Y=pe(Z);Q.get("conditionExpression")&&U(Y,"bpmn:Activity")&&ne(b,{markerStart:F("conditional-flow-marker",g,A)}),Y.get("default")&&(U(Y,"bpmn:Gateway")||U(Y,"bpmn:Activity"))&&Y.get("default")===Q&&ne(b,{markerStart:F("conditional-default-flow-marker",g,A)})}return b},"bpmn:ServiceTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h);j(f,10,10,{fill:H(d,l,h.fill),stroke:"none",transform:"translate(6, 6)"});var A=n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});D(f,A,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),j(f,10,10,{fill:H(d,l,h.fill),stroke:"none",transform:"translate(11, 10)"});var b=n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return D(f,b,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:1}),g},"bpmn:StartEvent":function(f,d,h={}){var{renderIcon:g=!0}=h;h=W(h,["fill","stroke"]);var A=pe(d);A.get("isInterrupting")||(h={...h,strokeDasharray:"6"});var b=N(f,d,h);return g&&M(d,f,h),b},"bpmn:SubProcess":function(f,d,h={}){return _t(d)?h=W(h,["fill","stroke","width","height"]):h=W(h,["fill","stroke"]),ce(f,d,h)},"bpmn:Task":function(f,d,h={}){return h=W(h,["fill","stroke"]),ke(f,d,h)},"bpmn:TextAnnotation":function(f,d,h={}){h=W(h,["fill","stroke","width","height"]);var{width:g,height:A}=Mi(d,h),b=I(f,g,A,0,0,{fill:"none",stroke:"none"}),Q=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:g,containerHeight:A,position:{mx:0,my:0}});D(f,Q,{stroke:P(d,c,h.stroke)});var Z=pe(d),Y=Z.get("text")||"";return ie(f,Y,{align:"left-top",box:Mi(d,h),padding:7,style:{fill:Pi(d,m,c,h.stroke)}}),b},"bpmn:Transaction":function(f,d,h={}){_t(d)?h=W(h,["fill","stroke","width","height"]):h=W(h,["fill","stroke"]);var g=ce(f,d,{strokeWidth:1.5,...h}),A=i.style(["no-fill","no-events"],{stroke:P(d,c,h.stroke),strokeWidth:1.5}),b=_t(d);return b||(h={}),I(f,Je(d,h),Oe(d,h),ps-ds,ds,A),g},"bpmn:UserTask":function(f,d,h={}){h=W(h,["fill","stroke"]);var g=ke(f,d,h),A=15,b=12,Q=n.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:A,y:b}});D(f,Q,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5});var Z=n.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:A,y:b}});D(f,Z,{fill:H(d,l,h.fill),stroke:P(d,c,h.stroke),strokeWidth:.5});var Y=n.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:A,y:b}});return D(f,Y,{fill:P(d,c,h.stroke),stroke:P(d,c,h.stroke),strokeWidth:.5}),g},label:function(f,d,h={}){return lt(f,d,h)}};this._drawPath=D,this._renderer=V}rt(zt,dt),zt.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],zt.prototype.canRender=function(e){return U(e,"bpmn:BaseElement")},zt.prototype.drawShape=function(e,t,i={}){var{type:n}=t,r=this._renderer(n);return r(e,t,i)},zt.prototype.drawConnection=function(e,t,i={}){var{type:n}=t,r=this._renderer(n);return r(e,t,i)},zt.prototype.getShapePath=function(e){return U(e,"bpmn:Event")?rp(e):U(e,"bpmn:Activity")?op(e,ps):U(e,"bpmn:Gateway")?ap(e):lp(e)};function W(e,t=[]){return t.reduce((i,n)=>(e[n]&&(i[n]=e[n]),i),{})}var Vp=0,Op={width:150,height:50};function Rp(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}function Lp(e){return Qt(e)?q({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function vp(e,t){t.textContent=e;var i;try{var n,r=e==="";return t.textContent=r?"dummy":e,i=t.getBBox(),n={width:i.width+i.x*2,height:i.height},r&&(n.width=0),n}catch{return{width:0,height:0}}}function Fp(e,t,i){for(var n=e.shift(),r=n,o;;){if(o=vp(r,i),o.width=r?o.width:0,r===" "||r===""||o.width<Math.round(t)||r.length<2)return jp(e,r,n,o);r=Up(r,o.width,t)}}function jp(e,t,i,n){if(t.length<i.length){var r=i.slice(t.length).trim();e.unshift(r)}return{width:n.width,height:n.height,text:t}}var ko="\xAD";function Qp(e,t){var i=e.split(/(\s|-|\u00AD)/g),n,r=[],o=0;if(i.length>1)for(;n=i.shift();)if(n.length+o<t)r.push(n),o+=n.length;else{(n==="-"||n===ko)&&r.pop();break}var a=r[r.length-1];return a&&a===ko&&(r[r.length-1]="-"),r.join("")}function Up(e,t,i){var n=Math.max(e.length*(i/t),1),r=Qp(e,n);return r||(r=e.slice(0,Math.max(Math.round(n-1),1))),r}function _p(){var e=document.getElementById("helper-svg");return e||(e=re("svg"),ne(e,{id:"helper-svg"}),Ee(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function hs(e){this._config=q({},{size:Op,padding:Vp,style:{},align:"center-top"},e||{})}hs.prototype.createText=function(e,t){return this.layoutText(e,t).element},hs.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},hs.prototype.layoutText=function(e,t){var i=q({},this._config.size,t.box),n=q({},this._config.style,t.style),r=Rp(t.align||this._config.align),o=Lp(t.padding!==void 0?t.padding:this._config.padding),a=t.fitBox||!1,l=Gp(n),c=e.split(/\u00AD?\r?\n/),m=[],u=i.width-o.left-o.right,p=re("text");ne(p,{x:0,y:0}),ne(p,n);var y=_p();for(he(y,p);c.length;)m.push(Fp(c,u,p));r.vertical==="middle"&&(o.top=o.bottom=0);var k=ci(m,function(j,I,E){return j+(l||I.height)},0)+o.top+o.bottom,C=ci(m,function(j,I,E){return I.width>j?I.width:j},0),v=o.top;r.vertical==="middle"&&(v+=(i.height-k)/2),v-=(l||m[0].height)/4;var F=re("text");ne(F,n),R(m,function(j){var I;switch(v+=l||j.height,r.horizontal){case"left":I=o.left;break;case"right":I=(a?C:u)-o.right-j.width;break;default:I=Math.max(((a?C:u)-j.width)/2+o.left,0)}var E=re("tspan");ne(E,{x:I,y:v}),E.textContent=j.text,he(F,E)}),Si(p);var z={width:C,height:k};return{dimensions:z,element:F}};function Gp(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var qp=12,Jp=1.2,zp=30;function Eo(e){var t=q({fontFamily:"Arial, sans-serif",fontSize:qp,fontWeight:"normal",lineHeight:Jp},e&&e.defaultStyle||{}),i=parseInt(t.fontSize,10)-1,n=q({},t,{fontSize:i},e&&e.externalStyle||{}),r=new hs({style:t});this.getExternalLabelBounds=function(o,a){var l=r.getDimensions(a,{box:{width:90,height:30},style:n});return{x:Math.round(o.x+o.width/2-l.width/2),y:Math.round(o.y),width:Math.ceil(l.width),height:Math.ceil(l.height)}},this.getTextAnnotationBounds=function(o,a){var l=r.getDimensions(a,{box:o,style:t,align:"left-top",padding:5});return{x:o.x,y:o.y,width:o.width,height:Math.max(zp,Math.round(l.height))}},this.createText=function(o,a){return r.createText(o,a||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return n}}Eo.$inject=["config.textRenderer"];function Kp(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,i){var n=this.pathMap[t],r,o;i.abspos?(r=i.abspos.x,o=i.abspos.y):(r=i.containerWidth*i.position.mx,o=i.containerHeight*i.position.my);var a={};if(i.position){for(var l=i.containerHeight/n.height*i.yScaleFactor,c=i.containerWidth/n.width*i.xScaleFactor,m=0;m<n.heightElements.length;m++)a["y"+m]=n.heightElements[m]*l;for(var u=0;u<n.widthElements.length;u++)a["x"+u]=n.widthElements[u]*c}var p=Xp(n.d,{mx:r,my:o,e:a});return p}}var Hp=/\{([^{}]+)\}/g,Wp=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function Yp(e,t,i){var n=i;return t.replace(Wp,function(r,o,a,l,c){o=o||l,n&&(o in n&&(n=n[o]),typeof n=="function"&&c&&(n=n()))}),n=(n==null||n==i?e:n)+"",n}function Xp(e,t){return String(e).replace(Hp,function(i,n){return Yp(i,n,t)})}const Zp={__init__:["bpmnRenderer"],bpmnRenderer:["type",zt],textRenderer:["type",Eo],pathMap:["type",Kp]};function $p(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(i,n){return t[n]||"{"+n+"}"})}const bo={translate:["value",$p]};function eh(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function gn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function th(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function ih(e){return eh({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function sh(e){for(var t=e.waypoints,i=t.reduce(function(m,u,p){var y=t[p-1];if(y){var k=m[m.length-1],C=k&&k.endLength||0,v=nh(y,u);m.push({start:y,end:u,startLength:C,endLength:C+v,length:v})}return m},[]),n=i.reduce(function(m,u){return m+u.length},0),r=n/2,o=0,a=i[o];a.endLength<r;)a=i[++o];var l=(r-a.startLength)/a.length,c={x:a.start.x+(a.end.x-a.start.x)*l,y:a.start.y+(a.end.y-a.start.y)*l};return c}function yn(e){return Pd(e)?sh(e):ih(e)}function nh(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function be(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function us(e,t,i){return q({id:e.id,type:e.$type,businessObject:e,di:t},i)}function rh(e,t,i){var n=e.waypoint;return!n||n.length<2?[yn(t),yn(i)]:n.map(function(r){return{x:r.x,y:r.y}})}function Co(e,t,i,n){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:be(i),referenced:be(t),property:n}))}function ht(e,t,i,n,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=i,this._elementRegistry=n,this._translate=r,this._textRenderer=o}ht.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],ht.prototype.add=function(e,t,i){var n,r=this._translate,o,a;if(U(t,"bpmndi:BPMNPlane")){var l=U(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};n=this._elementFactory.createRoot(us(e,t,l)),this._canvas.addRootElement(n)}else if(U(t,"bpmndi:BPMNShape")){var c=!_t(e,t),m=ah(e);o=i&&(i.hidden||i.collapsed);var u=t.bounds;n=this._elementFactory.createShape(us(e,t,{collapsed:c,hidden:o,x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height),isFrame:m})),U(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,n),U(e,"bpmn:Lane")&&(a=0),U(e,"bpmn:DataStoreReference")&&(oh(i,yn(u))||(i=this._canvas.findRoot(i))),this._canvas.addShape(n,i,a)}else if(U(t,"bpmndi:BPMNEdge")){var p=this._getSource(e),y=this._getTarget(e);o=i&&(i.hidden||i.collapsed),n=this._elementFactory.createConnection(us(e,t,{hidden:o,source:p,target:y,waypoints:rh(t,p,y)})),U(e,"bpmn:DataAssociation")&&(i=this._canvas.findRoot(i)),this._canvas.addConnection(n,i,a)}else throw new Error(r("unknown di {di} for element {semantic}",{di:be(t),semantic:be(e)}));return Md(e)&&rs(n)&&this.addLabel(e,t,n),this._eventBus.fire("bpmnElement.added",{element:n}),n},ht.prototype._attachBoundary=function(e,t){var i=this._translate,n=e.attachedToRef;if(!n)throw new Error(i("missing {semantic}#attachedToRef",{semantic:be(e)}));var r=this._elementRegistry.get(n.id),o=r&&r.attachers;if(!r)throw Co(i,e,n,"attachedToRef");t.host=r,o||(r.attachers=o=[]),o.indexOf(t)===-1&&o.push(t)},ht.prototype.addLabel=function(e,t,i){var n,r,o;return n=Ld(t,i),r=rs(i),r&&(n=this._textRenderer.getExternalLabelBounds(n,r)),o=this._elementFactory.createLabel(us(e,t,{id:e.id+"_label",labelTarget:i,type:"label",hidden:i.hidden||!rs(i),x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)})),this._canvas.addShape(o,i.parent)},ht.prototype._getConnectedElement=function(e,t){var i,n,r=e.$type,o=this._translate;if(n=e[t+"Ref"],t==="source"&&r==="bpmn:DataInputAssociation"&&(n=n&&n[0]),(t==="source"&&r==="bpmn:DataOutputAssociation"||t==="target"&&r==="bpmn:DataInputAssociation")&&(n=e.$parent),i=n&&this._getElement(n),i)return i;throw n?Co(o,e,n,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:be(e),side:t}))},ht.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},ht.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},ht.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function oh(e,t){var i=t.x,n=t.y;return i>=e.x&&i<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function ah(e){return U(e,"bpmn:Group")}const lh={__depends__:[Zp,{__depends__:[bo],bpmnImporter:["type",ht]}]};function An(e){return e.originalEvent||e.srcEvent}function ch(){return/mac/i.test(navigator.platform)}function wo(e,t){return(An(e)||e).button===t}function Vi(e){return wo(e,0)}function dh(e){return wo(e,1)}function ph(e){var t=An(e)||e;return Vi(e)?ch()?t.metaKey:t.ctrlKey:!1}function hh(e){var t=An(e)||e;return Vi(e)&&t.shiftKey}function uh(e){return!0}function ms(e){return Vi(e)||dh(e)}var No=500;function To(e,t,i){var n=this;function r(w,V,B){if(!l(w,V)){var O,M,_;B?M=t.getGraphics(B):(O=V.delegateTarget||V.target,O&&(M=O,B=t.get(M))),!(!M||!B)&&(_=e.fire(w,{element:B,gfx:M,originalEvent:V}),_===!1&&(V.stopPropagation(),V.preventDefault()))}}var o={};function a(w){return o[w]}function l(w,V){var B=m[w]||Vi;return!B(V)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},m={"element.contextmenu":uh,"element.mousedown":ms,"element.mouseup":ms,"element.click":ms,"element.dblclick":ms};function u(w,V,B){var O=c[w];if(!O)throw new Error("unmapped DOM event name <"+w+">");return r(O,V,B)}var p="svg, .djs-element";function y(w,V,B,O){var M=o[B]=function(_){r(B,_)};O&&(m[B]=O),M.$delegate=di.bind(w,p,V,M)}function k(w,V,B){var O=a(B);!O||di.unbind(w,V,O.$delegate)}function C(w){R(c,function(V,B){y(w,B,V)})}function v(w){R(c,function(V,B){k(w,B,V)})}e.on("canvas.destroy",function(w){v(w.svg)}),e.on("canvas.init",function(w){C(w.svg)}),e.on(["shape.added","connection.added"],function(w){var V=w.element,B=w.gfx;e.fire("interactionEvents.createHit",{element:V,gfx:B})}),e.on(["shape.changed","connection.changed"],No,function(w){var V=w.element,B=w.gfx;e.fire("interactionEvents.updateHit",{element:V,gfx:B})}),e.on("interactionEvents.createHit",No,function(w){var V=w.element,B=w.gfx;n.createDefaultHit(V,B)}),e.on("interactionEvents.updateHit",function(w){var V=w.element,B=w.gfx;n.updateDefaultHit(V,B)});var F=x("djs-hit djs-hit-stroke"),z=x("djs-hit djs-hit-click-stroke"),j=x("djs-hit djs-hit-all"),I=x("djs-hit djs-hit-no-move"),E={all:j,"click-stroke":z,stroke:F,"no-move":I};function x(w,V){return V=q({stroke:"white",strokeWidth:15},V||{}),i.cls(w,["no-fill","no-border"],V)}function S(w,V){var B=E[V];if(!B)throw new Error("invalid hit type <"+V+">");return ne(w,B),w}function D(w,V){he(w,V)}this.removeHits=function(w){var V=Np(".djs-hit",w);R(V,Si)},this.createDefaultHit=function(w,V){var B=w.waypoints,O=w.isFrame,M;return B?this.createWaypointsHit(V,B):(M=O?"stroke":"all",this.createBoxHit(V,M,{width:w.width,height:w.height}))},this.createWaypointsHit=function(w,V){var B=pn(V);return S(B,"stroke"),D(w,B),B},this.createBoxHit=function(w,V,B){B=q({x:0,y:0},B);var O=re("rect");return S(O,V),ne(O,B),D(w,O),O},this.updateDefaultHit=function(w,V){var B=et(".djs-hit",V);if(!!B)return w.waypoints?co(B,w.waypoints):ne(B,{width:w.width,height:w.height}),B},this.fire=r,this.triggerMouseEvent=u,this.mouseHandler=a,this.registerEvent=y,this.unregisterEvent=k}To.$inject=["eventBus","elementRegistry","styles"];const mh={__init__:["interactionEvents"],interactionEvents:["type",To]};function Kt(e,t){t=!!t,Xe(e)||(e=[e]);var i,n,r,o;return R(e,function(a){var l=a;a.waypoints&&!t&&(l=Kt(a.waypoints,!0));var c=l.x,m=l.y,u=l.height||0,p=l.width||0;(c<i||i===void 0)&&(i=c),(m<n||n===void 0)&&(n=m),(c+p>r||r===void 0)&&(r=c+p),(m+u>o||o===void 0)&&(o=m+u)}),{x:i,y:n,height:o-n,width:r-i}}function Io(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function Bo(e){return!!(e&&e.isFrame)}var fh=500,gh=1e3;function Ht(e,t){this._eventBus=e,this.offset=5;var i=t.cls("djs-outline",["no-fill"]),n=this;function r(o){var a=re("rect");return ne(a,q({x:0,y:0,rx:4,width:100,height:100},i)),a}e.on(["shape.added","shape.changed"],fh,function(o){var a=o.element,l=o.gfx,c=et(".djs-outline",l);c||(c=n.getOutline(a)||r(),he(l,c)),n.updateShapeOutline(c,a)}),e.on(["connection.added","connection.changed"],function(o){var a=o.element,l=o.gfx,c=et(".djs-outline",l);c||(c=r(),he(l,c)),n.updateConnectionOutline(c,a)})}Ht.prototype.updateShapeOutline=function(e,t){var i=!1,n=this._getProviders();n.length&&R(n,function(r){i=i||r.updateOutline(t,e)}),i||ne(e,{x:-this.offset,y:-this.offset,width:t.width+this.offset*2,height:t.height+this.offset*2})},Ht.prototype.updateConnectionOutline=function(e,t){var i=Kt(t);ne(e,{x:i.x-this.offset,y:i.y-this.offset,width:i.width+this.offset*2,height:i.height+this.offset*2})},Ht.prototype.registerProvider=function(e,t){t||(t=e,e=gh),this._eventBus.on("outline.getProviders",e,function(i){i.providers.push(t)})},Ht.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Ht.prototype.getOutline=function(e){var t,i=this._getProviders();return R(i,function(n){!Tt(n.getOutline)||(t=t||n.getOutline(e))}),t},Ht.$inject=["eventBus","styles","elementRegistry"];const yh={__init__:["outline"],outline:["type",Ht]};function ui(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var i=this;e.on(["shape.remove","connection.remove"],function(n){var r=n.element;i.deselect(r)}),e.on(["diagram.clear","root.set"],function(n){i.select(null)})}ui.$inject=["eventBus","canvas"],ui.prototype.deselect=function(e){var t=this._selectedElements,i=t.indexOf(e);if(i!==-1){var n=t.slice();t.splice(i,1),this._eventBus.fire("selection.changed",{oldSelection:n,newSelection:t})}},ui.prototype.get=function(){return this._selectedElements},ui.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},ui.prototype.select=function(e,t){var i=this._selectedElements,n=i.slice();Xe(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter(function(a){var l=r.findRoot(a);return o===l}),t?R(e,function(a){i.indexOf(a)===-1&&i.push(a)}):this._selectedElements=i=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:n,newSelection:i})};var xo="hover",So="selected",fs=6;function kn(e,t,i){this._canvas=e;var n=this;this._multiSelectionBox=null;function r(a,l){e.addMarker(a,l)}function o(a,l){e.removeMarker(a,l)}t.on("element.hover",function(a){r(a.element,xo)}),t.on("element.out",function(a){o(a.element,xo)}),t.on("selection.changed",function(a){function l(p){o(p,So)}function c(p){r(p,So)}var m=a.oldSelection,u=a.newSelection;R(m,function(p){u.indexOf(p)===-1&&l(p)}),R(u,function(p){m.indexOf(p)===-1&&c(p)}),n._updateSelectionOutline(u)}),t.on("element.changed",function(a){i.isSelected(a.element)&&n._updateSelectionOutline(i.get())})}kn.$inject=["canvas","eventBus","selection"],kn.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");io(t);var i=e.length>1,n=this._canvas.getContainer();if(je(n)[i?"add":"remove"]("djs-multi-select"),!!i){var r=Ah(Kt(e)),o=re("rect");ne(o,q({rx:3},r)),je(o).add("djs-selection-outline"),he(t,o)}};function Ah(e){return{x:e.x-fs,y:e.y-fs,width:e.width+fs*2,height:e.height+fs*2}}function Do(e,t,i,n){e.on("create.end",500,function(r){var o=r.context,a=o.canExecute,l=o.elements,c=o.hints||{},m=c.autoSelect;if(a){if(m===!1)return;Xe(m)?t.select(m):t.select(l.filter(kh))}}),e.on("connect.end",500,function(r){var o=r.context,a=o.connection;a&&t.select(a)}),e.on("shape.move.end",500,function(r){var o=r.previousSelection||[],a=n.get(r.context.shape.id),l=$e(o,function(c){return a.id===c.id});l||t.select(a)}),e.on("element.click",function(r){if(!!Vi(r)){var o=r.element;o===i.getRootElement()&&(o=null);var a=t.isSelected(o),l=t.get().length>1,c=ph(r)||hh(r);if(a&&l)return c?t.deselect(o):t.select(o);a?t.deselect(o):t.select(o,c)}})}Do.$inject=["eventBus","selection","canvas","elementRegistry"];function kh(e){return!e.hidden}const Eh={__init__:["selectionVisuals","selectionBehavior"],__depends__:[mh,yh],selection:["type",ui],selectionVisuals:["type",kn],selectionBehavior:["type",Do]};function Po(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Po.prototype.next=function(){return this._prefix+ ++this._counter};var bh=new Po("ov"),Ch=500;function Ae(e,t,i,n){this._eventBus=t,this._canvas=i,this._elementRegistry=n,this._ids=bh,this._overlayDefaults=q({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=wh(i.getContainer()),this._init()}Ae.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Ae.prototype.get=function(e){if(Ze(e)&&(e={id:e}),Ze(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?li(t.overlays,Yr({type:e.type})):t.overlays.slice():[]}else return e.type?li(this._overlays,Yr({type:e.type})):e.id?this._overlays[e.id]:null},Ae.prototype.add=function(e,t,i){if(Qt(t)&&(i=t,t=null),e.id||(e=this._elementRegistry.get(e)),!i.position)throw new Error("must specifiy overlay position");if(!i.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var n=this._ids.next();return i=q({},this._overlayDefaults,i,{id:n,type:t,element:e,html:i.html}),this._addOverlay(i),n},Ae.prototype.remove=function(e){var t=this.get(e)||[];Xe(t)||(t=[t]);var i=this;R(t,function(n){var r=i._getOverlayContainer(n.element,!0);if(n&&(pi(n.html),pi(n.htmlContainer),delete n.htmlContainer,delete n.element,delete i._overlays[n.id]),r){var o=r.overlays.indexOf(n);o!==-1&&r.overlays.splice(o,1)}})},Ae.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},Ae.prototype.show=function(){gs(this._overlayRoot)},Ae.prototype.hide=function(){gs(this._overlayRoot,!1)},Ae.prototype.clear=function(){this._overlays={},this._overlayContainers=[],uo(this._overlayRoot)},Ae.prototype._updateOverlayContainer=function(e){var t=e.element,i=e.html,n=t.x,r=t.y;if(t.waypoints){var o=Kt(t);n=o.x,r=o.y}Mo(i,n,r),ho(e.html,"data-container-id",t.id)},Ae.prototype._updateOverlay=function(e){var t=e.position,i=e.htmlContainer,n=e.element,r=t.left,o=t.top;if(t.right!==void 0){var a;n.waypoints?a=Kt(n).width:a=n.width,r=t.right*-1+a}if(t.bottom!==void 0){var l;n.waypoints?l=Kt(n).height:l=n.height,o=t.bottom*-1+l}Mo(i,r||0,o||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ae.prototype._createOverlayContainer=function(e){var t=Qe('<div class="djs-overlays" />');Ee(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var i={html:t,element:e,overlays:[]};return this._updateOverlayContainer(i),this._overlayContainers.push(i),i},Ae.prototype._updateRoot=function(e){var t=e.scale||1,i="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Vo(this._overlayRoot,i)},Ae.prototype._getOverlayContainer=function(e,t){var i=$e(this._overlayContainers,function(n){return n.element===e});return!i&&!t?this._createOverlayContainer(e):i},Ae.prototype._addOverlay=function(e){var t=e.id,i=e.element,n=e.html,r,o;n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),Ze(n)&&(n=Qe(n)),o=this._getOverlayContainer(i),r=Qe('<div class="djs-overlay" data-overlay-id="'+t+'">'),Ee(r,{position:"absolute"}),r.appendChild(n),e.type&&qt(r).add("djs-overlay-"+e.type);var a=this._canvas.findRoot(i),l=this._canvas.getRootElement();gs(r,a===l),e.htmlContainer=r,o.overlays.push(e),o.html.appendChild(r),this._overlays[t]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ae.prototype._updateOverlayVisibilty=function(e,t){var i=e.show,n=this._canvas.findRoot(e.element),r=i&&i.minZoom,o=i&&i.maxZoom,a=e.htmlContainer,l=this._canvas.getRootElement(),c=!0;(n!==l||i&&(oi(r)&&r>t.scale||oi(o)&&o<t.scale))&&(c=!1),gs(a,c),this._updateOverlayScale(e,t)},Ae.prototype._updateOverlayScale=function(e,t){var i=e.scale,n,r,o=e.htmlContainer,a,l="";i!==!0&&(i===!1?(n=1,r=1):(n=i.min,r=i.max),oi(n)&&t.scale<n&&(a=(1/t.scale||1)*n),oi(r)&&t.scale>r&&(a=(1/t.scale||1)*r)),oi(a)&&(l="scale("+a+","+a+")"),Vo(o,l)},Ae.prototype._updateOverlaysVisibilty=function(e){var t=this;R(this._overlays,function(i){t._updateOverlayVisibilty(i,e)})},Ae.prototype._init=function(){var e=this._eventBus,t=this;function i(n){t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()}e.on("canvas.viewbox.changing",function(n){t.hide()}),e.on("canvas.viewbox.changed",function(n){i(n.viewbox)}),e.on(["shape.remove","connection.remove"],function(n){var r=n.element,o=t.get({element:r});R(o,function(c){t.remove(c.id)});var a=t._getOverlayContainer(r);if(a){pi(a.html);var l=t._overlayContainers.indexOf(a);l!==-1&&t._overlayContainers.splice(l,1)}}),e.on("element.changed",Ch,function(n){var r=n.element,o=t._getOverlayContainer(r,!0);o&&(R(o.overlays,function(a){t._updateOverlay(a)}),t._updateOverlayContainer(o))}),e.on("element.marker.update",function(n){var r=t._getOverlayContainer(n.element,!0);r&&qt(r.html)[n.add?"add":"remove"](n.marker)}),e.on("root.set",function(){t._updateOverlaysVisibilty(t._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function wh(e){var t=Qe('<div class="djs-overlay-container" />');return Ee(t,{position:"absolute",width:0,height:0}),e.insertBefore(t,e.firstChild),t}function Mo(e,t,i){Ee(e,{left:t+"px",top:i+"px"})}function gs(e,t){e.style.display=t===!1?"none":""}function Vo(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(i){e.style[i+"transform"]=t})}const Oo={__init__:["overlays"],overlays:["type",Ae]};function Ro(e,t,i,n){e.on("element.changed",function(r){var o=r.element;(o.parent||o===t.getRootElement())&&(r.gfx=i.getGraphics(o)),r.gfx&&e.fire(Io(o)+".changed",r)}),e.on("elements.changed",function(r){var o=r.elements;o.forEach(function(a){e.fire("element.changed",{element:a})}),n.updateContainments(o)}),e.on("shape.changed",function(r){n.update("shape",r.element,r.gfx)}),e.on("connection.changed",function(r){n.update("connection",r.element,r.gfx)})}Ro.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Nh={__init__:["changeSupport"],changeSupport:["type",Ro]};var Th=1e3;function Be(e){this._eventBus=e}Be.$inject=["eventBus"];function Ih(e,t){return function(i){return e.call(t||null,i.context,i.command,i)}}Be.prototype.on=function(e,t,i,n,r,o){if((Tt(t)||Nt(t))&&(o=r,r=n,n=i,i=t,t=null),Tt(i)&&(o=r,r=n,n=i,i=Th),Qt(r)&&(o=r,r=!1),!Tt(n))throw new Error("handlerFn must be a function");Xe(e)||(e=[e]);var a=this._eventBus;R(e,function(l){var c=["commandStack",l,t].filter(function(m){return m}).join(".");a.on(c,i,r?Ih(n,o):n,o)})},Be.prototype.canExecute=ut("canExecute"),Be.prototype.preExecute=ut("preExecute"),Be.prototype.preExecuted=ut("preExecuted"),Be.prototype.execute=ut("execute"),Be.prototype.executed=ut("executed"),Be.prototype.postExecute=ut("postExecute"),Be.prototype.postExecuted=ut("postExecuted"),Be.prototype.revert=ut("revert"),Be.prototype.reverted=ut("reverted");function ut(e){return function(i,n,r,o,a){(Tt(i)||Nt(i))&&(a=o,o=r,r=n,n=i,i=null),this.on(i,e,n,r,o,a)}}function En(e,t){t.invoke(Be,this),this.executed(function(i){var n=i.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()}),this.revert(function(i){var n=i.context;n.rootElement&&e.setRootElement(n.rootElement)})}rt(En,Be),En.$inject=["canvas","injector"];const Bh={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",En]};var xh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Sh(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(t){return xh[t]})}var Dh="_plane";function bn(e){var t=e.id;return U(e,"bpmn:SubProcess")?Ph(t):t}function Ph(e){return e+Dh}var Mh="bjs-breadcrumbs-shown";function Lo(e,t,i){var n=Qe('<ul class="bjs-breadcrumbs"></ul>'),r=i.getContainer(),o=qt(r);r.appendChild(n);var a=[];e.on("element.changed",function(c){var m=c.element,u=pe(m),p=$e(a,function(y){return y===u});!p||l()});function l(c){c&&(a=Vh(c));var m=a.map(function(p){var y=Sh(p.name||p.id),k=Qe('<li><span class="bjs-crumb"><a title="'+y+'">'+y+"</a></span></li>"),C=i.findRoot(bn(p))||i.findRoot(p.id);if(!C&&U(p,"bpmn:Process")){var v=t.find(function(F){var z=pe(F);return z&&z.get("processRef")&&z.get("processRef")===p});C=i.findRoot(v.id)}return k.addEventListener("click",function(){i.setRootElement(C)}),k});n.innerHTML="";var u=m.length>1;o.toggle(Mh,u),m.forEach(function(p){n.appendChild(p)})}e.on("root.set",function(c){l(c.element)})}Lo.$inject=["eventBus","elementRegistry","canvas"];function Vh(e){for(var t=pe(e),i=[],n=t;n;n=n.$parent)(U(n,"bpmn:SubProcess")||U(n,"bpmn:Process"))&&i.push(n);return i.reverse()}function vo(e,t){var i=null,n=new Oh;e.on("root.set",function(r){var o=r.element,a=t.viewbox(),l=n.get(o);if(n.set(i,{x:a.x,y:a.y,zoom:a.scale}),i=o,!(U(o,"bpmn:Collaboration")&&!l)){l=l||{x:0,y:0,zoom:1};var c=(a.x-l.x)*a.scale,m=(a.y-l.y)*a.scale;(c!==0||m!==0)&&t.scroll({dx:c,dy:m}),l.zoom!==a.scale&&t.zoom(l.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){n.clear(),i=null})}vo.$inject=["eventBus","canvas"];function Oh(){this._entries=[],this.set=function(e,t){var i=!1;for(var n in this._entries)if(this._entries[n][0]===e){this._entries[n][1]=t,i=!0;break}i||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var i in this._entries)if(this._entries[i][0]===e){t=i;break}t!==-1&&this._entries.splice(t,1)}}var Fo={x:180,y:160};function Wt(e,t){this._eventBus=e,this._moddle=t;var i=this;e.on("import.render.start",1500,function(n,r){i._handleImport(r.definitions)})}Wt.prototype._handleImport=function(e){if(!!e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(n){!n.plane||!n.plane.bpmnElement||(t._processToDiagramMap[n.plane.bpmnElement.id]=n)});var i=[];e.diagrams.forEach(function(n){var r=t._createNewDiagrams(n.plane);Array.prototype.push.apply(i,r)}),i.forEach(function(n){t._movePlaneElementsToOrigin(n.plane)})}},Wt.prototype._createNewDiagrams=function(e){var t=this,i=[],n=[];e.get("planeElement").forEach(function(o){var a=o.bpmnElement;if(!!a){var l=a.$parent;U(a,"bpmn:SubProcess")&&!o.isExpanded&&i.push(a),Lh(a,e)&&n.push({diElement:o,parent:l})}});var r=[];return i.forEach(function(o){if(!t._processToDiagramMap[o.id]){var a=t._createDiagram(o);t._processToDiagramMap[o.id]=a,r.push(a)}}),n.forEach(function(o){for(var a=o.diElement,l=o.parent;l&&i.indexOf(l)===-1;)l=l.$parent;if(!!l){var c=t._processToDiagramMap[l.id];t._moveToDiPlane(a,c.plane)}}),r},Wt.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),i=Rh(e),n={x:i.x-Fo.x,y:i.y-Fo.y};t.forEach(function(r){r.waypoint?r.waypoint.forEach(function(o){o.x=o.x-n.x,o.y=o.y-n.y}):r.bounds&&(r.bounds.x=r.bounds.x-n.x,r.bounds.y=r.bounds.y-n.y)})},Wt.prototype._moveToDiPlane=function(e,t){var i=jo(e),n=i.plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},Wt.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=i,t.bpmnElement=e,i.$parent=this._definitions,this._definitions.diagrams.push(i),i},Wt.$inject=["eventBus","moddle"];function jo(e){return U(e,"bpmndi:BPMNDiagram")?e:jo(e.$parent)}function Rh(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(i){if(!!i.bounds){var n=gn(i.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}}),th(t)}function Lh(e,t){var i=e.$parent;return!(!U(i,"bpmn:SubProcess")||i===t.bpmnElement||Sd(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var ys=250,vh='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',Fh="bjs-drilldown-empty";function St(e,t,i,n){Be.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=i,this._overlays=n;var r=this;this.executed("shape.toggleCollapse",ys,function(o){var a=o.shape;r._canDrillDown(a)?r._addOverlay(a):r._removeOverlay(a)},!0),this.reverted("shape.toggleCollapse",ys,function(o){var a=o.shape;r._canDrillDown(a)?r._addOverlay(a):r._removeOverlay(a)},!0),this.executed(["shape.create","shape.move","shape.delete"],ys,function(o){var a=o.oldParent,l=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(a),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(c)},!0),this.reverted(["shape.create","shape.move","shape.delete"],ys,function(o){var a=o.oldParent,l=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(a),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(c)},!0),t.on("import.render.complete",function(){i.filter(function(o){return r._canDrillDown(o)}).map(function(o){r._addOverlay(o)})})}rt(St,Be),St.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(!!e){var i=t.findRoot(e);i&&this._updateOverlayVisibility(i)}},St.prototype._canDrillDown=function(e){var t=this._canvas;return U(e,"bpmn:SubProcess")&&t.findRoot(bn(e))},St.prototype._updateOverlayVisibility=function(e){var t=this._overlays,i=pe(e),n=t.get({element:i.id,type:"drilldown"})[0];if(!!n){var r=i&&i.get("flowElements")&&i.get("flowElements").length;qt(n.html).toggle(Fh,!r)}},St.prototype._addOverlay=function(e){var t=this._canvas,i=this._overlays,n=i.get({element:e,type:"drilldown"});n.length&&this._removeOverlay(e);var r=Qe('<button class="bjs-drilldown">'+vh+"</button>");r.addEventListener("click",function(){t.setRootElement(t.findRoot(bn(e)))}),i.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},St.prototype._removeOverlay=function(e){var t=this._overlays;t.remove({element:e,type:"drilldown"})},St.$inject=["canvas","eventBus","elementRegistry","overlays"];const jh={__depends__:[Oo,Nh,Bh],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Lo],drilldownCentering:["type",vo],drilldownOverlayBehavior:["type",St],subprocessCompatibility:["type",Wt]},Qh=/^class[ {]/;function Uh(e){return Qh.test(e.toString())}function Cn(e){return Array.isArray(e)}function wn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function As(...e){e.length===1&&Cn(e[0])&&(e=e[0]),e=[...e];const t=e.pop();return t.$inject=e,t}const _h=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Gh=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,qh=/\/\*([^*]*)\*\//m;function Jh(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(Uh(e)?_h:Gh);if(!t)return[];const i=t[1]||t[2];return i&&i.split(",").map(n=>{const r=n.match(qh);return(r&&r[1]||n).trim()})||[]}function Qo(e,t){const i=t||{get:function(I,E){if(n.push(I),E===!1)return null;throw l(`No provider for "${I}"!`)}},n=[],r=this._providers=Object.create(i._providers||null),o=this._instances=Object.create(null),a=o.injector=this,l=function(I){const E=n.join(" -> ");return n.length=0,new Error(E?`${I} (Resolving: ${E})`:I)};function c(I,E){if(!r[I]&&I.includes(".")){const x=I.split(".");let S=c(x.shift());for(;x.length;)S=S[x.shift()];return S}if(wn(o,I))return o[I];if(wn(r,I)){if(n.indexOf(I)!==-1)throw n.push(I),l("Cannot resolve circular dependency!");return n.push(I),o[I]=r[I][0](r[I][1]),n.pop(),o[I]}return i.get(I,E)}function m(I,E){if(typeof E>"u"&&(E={}),typeof I!="function")if(Cn(I))I=As(I.slice());else throw l(`Cannot invoke "${I}". Expected a function!`);const S=(I.$inject||Jh(I)).map(D=>wn(E,D)?E[D]:c(D));return{fn:I,dependencies:S}}function u(I){const{fn:E,dependencies:x}=m(I),S=Function.prototype.bind.call(E,null,...x);return new S}function p(I,E,x){const{fn:S,dependencies:D}=m(I,x);return S.apply(E,D)}function y(I){return As(E=>I.get(E))}function k(I,E){if(E&&E.length){const x=Object.create(null),S=Object.create(null),D=[],w=[],V=[];let B,O,M,_;for(let K in r)B=r[K],E.indexOf(K)!==-1&&(B[2]==="private"?(O=D.indexOf(B[3]),O===-1?(M=B[3].createChild([],E),_=y(M),D.push(B[3]),w.push(M),V.push(_),x[K]=[_,K,"private",M]):x[K]=[V[O],K,"private",w[O]]):x[K]=[B[2],B[1]],S[K]=!0),(B[2]==="factory"||B[2]==="type")&&B[1].$scope&&E.forEach(it=>{B[1].$scope.indexOf(it)!==-1&&(x[K]=[B[2],B[1]],S[it]=!0)});E.forEach(K=>{if(!S[K])throw new Error('No provider for "'+K+'". Cannot use provider from the parent!')}),I.unshift(x)}return new Qo(I,a)}const C={factory:p,type:u,value:function(I){return I}};function v(I,E){const x=I.__init__||[];return function(){x.forEach(S=>{typeof S=="string"?E.get(S):E.invoke(S)})}}function F(I){const E=I.__exports__;if(E){const x=I.__modules__,S=Object.keys(I).reduce((O,M)=>(M!=="__exports__"&&M!=="__modules__"&&M!=="__init__"&&M!=="__depends__"&&(O[M]=I[M]),O),Object.create(null)),D=(x||[]).concat(S),w=k(D),V=As(function(O){return w.get(O)});E.forEach(function(O){r[O]=[V,O,"private",w]});const B=(I.__init__||[]).slice();return B.unshift(function(){w.init()}),I=Object.assign({},I,{__init__:B}),v(I,w)}return Object.keys(I).forEach(function(x){if(x==="__init__"||x==="__depends__")return;const S=I[x];if(S[2]==="private"){r[x]=S;return}const D=S[0],w=S[1];r[x]=[C[D],zh(D,w),D]}),v(I,a)}function z(I,E){return I.indexOf(E)!==-1||(I=(E.__depends__||[]).reduce(z,I),I.indexOf(E)!==-1)?I:I.concat(E)}function j(I){const E=I.reduce(z,[]).map(F);let x=!1;return function(){x||(x=!0,E.forEach(S=>S()))}}this.get=c,this.invoke=p,this.instantiate=u,this.createChild=k,this.init=j(e)}function zh(e,t){return e!=="value"&&Cn(t)&&(t=As(t.slice())),t}var Kh=1;function Dt(e,t){dt.call(this,e,Kh),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}rt(Dt,dt),Dt.prototype.canRender=function(){return!0},Dt.prototype.drawShape=function(t,i,n){var r=re("rect");return ne(r,{x:0,y:0,width:i.width||0,height:i.height||0}),Bo(i)?ne(r,q({},this.FRAME_STYLE,n||{})):ne(r,q({},this.SHAPE_STYLE,n||{})),he(t,r),r},Dt.prototype.drawConnection=function(t,i,n){var r=pn(i.waypoints,q({},this.CONNECTION_STYLE,n||{}));return he(t,r),r},Dt.prototype.getShapePath=function(t){var i=t.x,n=t.y,r=t.width,o=t.height,a=[["M",i,n],["l",r,0],["l",0,o],["l",-r,0],["z"]];return Gt(a)},Dt.prototype.getConnectionPath=function(t){var i=t.waypoints,n,r,o=[];for(n=0;r=i[n];n++)r=r.original||r,o.push([n===0?"M":"L",r.x,r.y]);return Gt(o)},Dt.$inject=["eventBus","styles"];function Hh(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(i,n,r){var o=this.style(n,r);return q(o,{class:i})},this.style=function(i,n){!Xe(i)&&!n&&(n=i,i=[]);var r=ci(i,function(o,a){return q(o,e[a]||{})},{});return n?q(r,n):r},this.computeStyle=function(i,n,r){return Xe(n)||(r=n,n=[]),t.style(n||[],q({},r,i||{}))}}const Wh={__init__:["defaultRenderer"],defaultRenderer:["type",Dt],styles:["type",Hh]};function Yh(e,t){if(!e||!t)return-1;var i=e.indexOf(t);return i!==-1&&e.splice(i,1),i}function Xh(e,t,i){if(!(!e||!t)){typeof i!="number"&&(i=-1);var n=e.indexOf(t);if(n!==-1){if(n===i)return;if(i!==-1)e.splice(n,1);else return}i!==-1?e.splice(i,0,t):e.push(t)}}function ks(e,t){return Math.round(e*t)/t}function Uo(e){return Nt(e)?e+"px":e}function Zh(e){for(;e.parent;)e=e.parent;return e}function $h(e){e=q({},{width:"100%",height:"100%"},e);const t=e.container||document.body,i=document.createElement("div");return i.setAttribute("class","djs-container djs-parent"),Ee(i,{position:"relative",overflow:"hidden",width:Uo(e.width),height:Uo(e.height)}),t.appendChild(i),i}function _o(e,t,i){const n=re("g");je(n).add(t);const r=i!==void 0?i:e.childNodes.length-1;return e.insertBefore(n,e.childNodes[r]||null),n}const eu="base",Go=0,tu=1,iu={shape:["x","y","width","height"],connection:["waypoints"]};function J(e,t,i,n){this._eventBus=t,this._elementRegistry=n,this._graphicsFactory=i,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}J.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],J.prototype._init=function(e){const t=this._eventBus,i=this._container=$h(e),n=this._svg=re("svg");ne(n,{width:"100%",height:"100%"}),he(i,n);const r=this._viewport=_o(n,"viewport");e.deferUpdate&&(this._viewboxChanged=Nd(It(this._viewboxChanged,this),300)),t.on("diagram.init",()=>{t.fire("canvas.init",{svg:n,viewport:r})}),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},J.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},J.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{const i=Io(t);i==="root"?this.removeRootElement(t):this._removeElement(t,i)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},J.prototype.getDefaultLayer=function(){return this.getLayer(eu,Go)},J.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let i=this._layers[e];if(i||(i=this._layers[e]=this._createLayer(e,t)),typeof t<"u"&&i.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return i.group},J.prototype._getChildIndex=function(e){return ci(this._layers,function(t,i){return i.visible&&e>=i.index&&t++,t},0)},J.prototype._createLayer=function(e,t){typeof t>"u"&&(t=tu);const i=this._getChildIndex(t);return{group:_o(this._viewport,"layer-"+e,i),index:t,visible:!0}},J.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=this._viewport,n=t.group,r=t.index;if(t.visible)return n;const o=this._getChildIndex(r);return i.insertBefore(n,i.childNodes[o]||null),t.visible=!0,n},J.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const i=t.group;return t.visible&&(Si(i),t.visible=!1),i},J.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],Si(t.group))},J.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},J.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(Zh(e))||{}).rootElement:void 0},J.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})},J.prototype._findPlaneForRoot=function(e){return $e(this._planes,function(t){return t.rootElement===e})},J.prototype.getContainer=function(){return this._container},J.prototype._updateMarker=function(e,t,i){let n;e.id||(e=this._elementRegistry.get(e)),n=this._elementRegistry._elements[e.id],n&&(R([n.gfx,n.secondaryGfx],function(r){r&&(i?je(r).add(t):je(r).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:n.gfx,marker:t,add:!!i}))},J.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},J.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},J.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));const i=this.getGraphics(e);return je(i).has(t)},J.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},J.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},J.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const i=e.layer="root-"+t;this._ensureValid("root",e);const n=this.getLayer(i,Go);return this.hideLayer(i),this._addRoot(e,n),this._planes.push({rootElement:e,layer:n}),e},J.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(i){return i.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e},J.prototype.setRootElement=function(e){if(e===this._rootElement)return;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},J.prototype._removeRoot=function(e){const t=this._elementRegistry,i=this._eventBus;i.fire("root.remove",{element:e}),i.fire("root.removed",{element:e}),t.remove(e)},J.prototype._addRoot=function(e,t){const i=this._elementRegistry,n=this._eventBus;n.fire("root.add",{element:e}),i.add(e,t),n.fire("root.added",{element:e,gfx:t})},J.prototype._setRoot=function(e,t){const i=this._rootElement;i&&(this._elementRegistry.updateGraphics(i,null,!0),this.hideLayer(i.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},J.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const i=iu[e];if(!Hr(i,function(r){return typeof t[r]<"u"}))throw new Error("must supply { "+i.join(", ")+" } with "+e)},J.prototype._setParent=function(e,t,i){Xh(t.children,e,i),e.parent=t},J.prototype._addElement=function(e,t,i,n){i=i||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:i}),this._setParent(t,i,n);const a=o.create(e,t,n);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},J.prototype.addShape=function(e,t,i){return this._addElement("shape",e,t,i)},J.prototype.addConnection=function(e,t,i){return this._addElement("connection",e,t,i)},J.prototype._removeElement=function(e,t){const i=this._elementRegistry,n=this._graphicsFactory,r=this._eventBus;if(e=i.get(e.id||e),!!e)return r.fire(t+".remove",{element:e}),n.remove(e),Yh(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),i.remove(e),e},J.prototype.removeShape=function(e){return this._removeElement(e,"shape")},J.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},J.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},J.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},J.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},J.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return this._cachedViewbox;const t=this._viewport,i=this.getSize();let n,r,o,a,l,c,m;if(e)this._changeViewbox(function(){l=Math.min(i.width/e.width,i.height/e.height);const u=this._svg.createSVGMatrix().scale(l).translate(-e.x,-e.y);Di(t,u)});else return o=this._rootElement?this.getActiveLayer():null,n=o&&o.getBBox()||{},a=Di(t),r=a?a.matrix:qd(),l=ks(r.a,1e3),c=ks(-r.e||0,1e3),m=ks(-r.f||0,1e3),e=this._cachedViewbox={x:c?c/l:0,y:m?m/l:0,width:i.width/l,height:i.height/l,scale:l,inner:{width:n.width||0,height:n.height||0,x:n.x||0,y:n.y||0},outer:i},e;return e},J.prototype.scroll=function(e){const t=this._viewport;let i=t.getCTM();return e&&this._changeViewbox(function(){e=q({dx:0,dy:0},e||{}),i=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(i),qo(t,i)}),{x:i.e,y:i.f}},J.prototype.scrollToElement=function(e,t){let i=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const n=this.findRoot(e);if(n!==this.getRootElement()&&this.setRootElement(n),n===e)return;t||(t={}),typeof t=="number"&&(i=t),t={top:t.top||i,right:t.right||i,bottom:t.bottom||i,left:t.left||i};const r=Kt(e),o=gn(r),a=this.viewbox(),l=this.zoom();let c,m;a.y+=t.top/l,a.x+=t.left/l,a.width-=(t.right+t.left)/l,a.height-=(t.bottom+t.top)/l;const u=gn(a);if(!(r.width<a.width&&r.height<a.height))c=r.x-a.x,m=r.y-a.y;else{const y=Math.max(0,o.right-u.right),k=Math.min(0,o.left-u.left),C=Math.max(0,o.bottom-u.bottom),v=Math.min(0,o.top-u.top);c=y||k,m=C||v}this.scroll({dx:-c*l,dy:-m*l})},J.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(t);let i,n;return this._changeViewbox(function(){typeof t!="object"&&(i=this.viewbox().outer,t={x:i.width/2,y:i.height/2}),n=this._setZoom(e,t)}),ks(n.a,1e3)};function qo(e,t){const i="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",i)}J.prototype._fitViewport=function(e){const t=this.viewbox(),i=t.outer,n=t.inner;let r,o;return n.x>=0&&n.y>=0&&n.x+n.width<=i.width&&n.y+n.height<=i.height&&!e?o={x:0,y:0,width:Math.max(n.width+n.x,i.width),height:Math.max(n.height+n.y,i.height)}:(r=Math.min(1,i.width/n.width,i.height/n.height),o={x:n.x+(e?n.width/2-i.width/r/2:0),y:n.y+(e?n.height/2-i.height/r/2:0),width:i.width/r,height:i.height/r}),this.viewbox(o),this.viewbox(!1).scale},J.prototype._setZoom=function(e,t){const i=this._svg,n=this._viewport,r=i.createSVGMatrix(),o=i.createSVGPoint();let a,l,c,m,u;c=n.getCTM();const p=c.a;return t?(a=q(o,t),l=a.matrixTransform(c.inverse()),m=r.translate(l.x,l.y).scale(1/p*e).translate(-l.x,-l.y),u=c.multiply(m)):u=r.scale(e),qo(this._viewport,u),u},J.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},J.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let i;e.waypoints?i=this.getGraphics(e).getBBox():i=e;const n=i.x*t.scale-t.x*t.scale,r=i.y*t.scale-t.y*t.scale,o=i.width*t.scale,a=i.height*t.scale;return{x:n,y:r,width:o,height:a}},J.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var mi="data-element-id";function Ue(e){this._elements={},this._eventBus=e}Ue.$inject=["eventBus"],Ue.prototype.add=function(e,t,i){var n=e.id;this._validateId(n),ne(t,mi,n),i&&ne(i,mi,n),this._elements[n]={element:e,gfx:t,secondaryGfx:i}},Ue.prototype.remove=function(e){var t=this._elements,i=e.id||e,n=i&&t[i];n&&(ne(n.gfx,mi,""),n.secondaryGfx&&ne(n.secondaryGfx,mi,""),delete t[i])},Ue.prototype.updateId=function(e,t){this._validateId(t),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var i=this.getGraphics(e),n=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,i,n)},Ue.prototype.updateGraphics=function(e,t,i){var n=e.id||e,r=this._elements[n];return i?r.secondaryGfx=t:r.gfx=t,t&&ne(t,mi,n),t},Ue.prototype.get=function(e){var t;typeof e=="string"?t=e:t=e&&ne(e,mi);var i=this._elements[t];return i&&i.element},Ue.prototype.filter=function(e){var t=[];return this.forEach(function(i,n){e(i,n)&&t.push(i)}),t},Ue.prototype.find=function(e){for(var t=this._elements,i=Object.keys(t),n=0;n<i.length;n++){var r=i[n],o=t[r],a=o.element,l=o.gfx;if(e(a,l))return a}},Ue.prototype.getAll=function(){return this.filter(function(e){return e})},Ue.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(i){var n=t[i],r=n.element,o=n.gfx;return e(r,o)})},Ue.prototype.getGraphics=function(e,t){var i=e.id||e,n=this._elements[i];return n&&(t?n.secondaryGfx:n.gfx)},Ue.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function su(e,t,i,n){var r=i.inverse;return Object.defineProperty(e,"remove",{value:function(o){var a=this.indexOf(o);return a!==-1&&(this.splice(a,1),t.unset(o,r,n)),o}}),Object.defineProperty(e,"contains",{value:function(o){return this.indexOf(o)!==-1}}),Object.defineProperty(e,"add",{value:function(o,a){var l=this.indexOf(o);if(typeof a>"u"){if(l!==-1)return;a=this.length}l!==-1&&this.splice(l,1),this.splice(a,0,o),l===-1&&t.set(o,r,n)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function nu(e){return e.__refs_collection===!0}function ru(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function Jo(e,t,i){var n=su(i[t.name]||[],e,t,i);Object.defineProperty(i,t.name,{enumerable:t.enumerable,value:n}),n.length&&n.forEach(function(r){e.set(r,t.inverse,i)})}function ou(e,t,i){var n=t.inverse,r=i[t.name];Object.defineProperty(i,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(o){if(o!==r){var a=r;r=null,a&&e.unset(a,n,i),r=o,e.set(r,n,i)}}})}function ze(e,t){if(!(this instanceof ze))return new ze(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}ze.prototype.bind=function(e,t){if(typeof t=="string"){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?Jo(this,t,e):ou(this,t,e)},ze.prototype.ensureRefsCollection=function(e,t){var i=e[t.name];return nu(i)||Jo(this,t,e),i},ze.prototype.ensureBound=function(e,t){ru(e,t)||this.bind(e,t)},ze.prototype.unset=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(i):e[t.name]=void 0)},ze.prototype.set=function(e,t,i){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(i):e[t.name]=i)};var Nn=new ze({name:"children",enumerable:!0,collection:!0},{name:"parent"}),zo=new ze({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ko=new ze({name:"attachers",collection:!0},{name:"host"}),Ho=new ze({name:"outgoing",collection:!0},{name:"source"}),Wo=new ze({name:"incoming",collection:!0},{name:"target"});function Oi(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,i=this.labels;!e&&t?i.remove(t):i.add(e,0)}}),Nn.bind(this,"parent"),zo.bind(this,"labels"),Ho.bind(this,"outgoing"),Wo.bind(this,"incoming")}function Ri(){Oi.call(this),Nn.bind(this,"children"),Ko.bind(this,"host"),Ko.bind(this,"attachers")}rt(Ri,Oi);function Yo(){Oi.call(this),Nn.bind(this,"children")}rt(Yo,Ri);function Xo(){Ri.call(this),zo.bind(this,"labelTarget")}rt(Xo,Ri);function Zo(){Oi.call(this),Ho.bind(this,"source"),Wo.bind(this,"target")}rt(Zo,Oi);var au={connection:Zo,shape:Ri,label:Xo,root:Yo};function lu(e,t){var i=au[e];if(!i)throw new Error("unknown type: <"+e+">");return q(new i,t)}function fi(){this._uid=12}fi.prototype.createRoot=function(e){return this.create("root",e)},fi.prototype.createLabel=function(e){return this.create("label",e)},fi.prototype.createShape=function(e){return this.create("shape",e)},fi.prototype.createConnection=function(e){return this.create("connection",e)},fi.prototype.create=function(e,t){return t=q({},t||{}),t.id||(t.id=e+"_"+this._uid++),lu(e,t)};var Es="__fn",$o=1e3,cu=Array.prototype.slice;function Re(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}Re.prototype.on=function(e,t,i,n){if(e=Xe(e)?e:[e],Tt(t)&&(n=i,i=t,t=$o),!Nt(t))throw new Error("priority must be a number");var r=i;n&&(r=It(i,n),r[Es]=i[Es]||i);var o=this;e.forEach(function(a){o._addListener(a,{priority:t,callback:r,next:null})})},Re.prototype.once=function(e,t,i,n){var r=this;if(Tt(t)&&(n=i,i=t,t=$o),!Nt(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=i.apply(n,arguments);return r.off(e,o),a}o[Es]=i,this.on(e,t,o)},Re.prototype.off=function(e,t){e=Xe(e)?e:[e];var i=this;e.forEach(function(n){i._removeListener(n,t)})},Re.prototype.createEvent=function(e){var t=new Li;return t.init(e),t},Re.prototype.fire=function(e,t){var i,n,r,o;if(o=cu.call(arguments),typeof e=="object"&&(t=e,e=t.type),!e)throw new Error("no event type specified");if(n=this._listeners[e],!!n){t instanceof Li?i=t:i=this.createEvent(t),o[0]=i;var a=i.type;e!==a&&(i.type=e);try{r=this._invokeListeners(i,o,n)}finally{e!==a&&(i.type=a)}return r===void 0&&i.defaultPrevented&&(r=!1),r}},Re.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},Re.prototype._destroy=function(){this._listeners={}},Re.prototype._invokeListeners=function(e,t,i){for(var n;i&&!e.cancelBubble;)n=this._invokeListener(e,t,i),i=i.next;return n},Re.prototype._invokeListener=function(e,t,i){var n;if(i.callback.__isTomb)return n;try{n=du(i.callback,t),n!==void 0&&(e.returnValue=n,e.stopPropagation()),n===!1&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return n},Re.prototype._addListener=function(e,t){var i=this._getListeners(e),n;if(!i){this._setListeners(e,t);return}for(;i;){if(i.priority<t.priority){t.next=i,n?n.next=t:this._setListeners(e,t);return}n=i,i=i.next}n.next=t},Re.prototype._getListeners=function(e){return this._listeners[e]},Re.prototype._setListeners=function(e,t){this._listeners[e]=t},Re.prototype._removeListener=function(e,t){var i=this._getListeners(e),n,r,o;if(!t){this._setListeners(e,null);return}for(;i;)n=i.next,o=i.callback,(o===t||o[Es]===t)&&(r?r.next=n:this._setListeners(e,n)),r=i,i=n};function Li(){}Li.prototype.stopPropagation=function(){this.cancelBubble=!0},Li.prototype.preventDefault=function(){this.defaultPrevented=!0},Li.prototype.init=function(e){q(this,e||{})};function du(e,t){return e.apply(null,t)}function pu(e){return e.childNodes[0]}function hu(e){return e.parentNode.childNodes[1]}function _e(e,t){this._eventBus=e,this._elementRegistry=t}_e.$inject=["eventBus","elementRegistry"],_e.prototype._getChildrenContainer=function(e){var t=this._elementRegistry.getGraphics(e),i;return e.parent?(i=hu(t),i||(i=re("g"),je(i).add("djs-children"),he(t.parentNode,i))):i=t,i},_e.prototype._clear=function(e){var t=pu(e);return uo(t),t},_e.prototype._createContainer=function(e,t,i,n){var r=re("g");je(r).add("djs-group"),typeof i<"u"?ea(r,t,t.childNodes[i]):he(t,r);var o=re("g");je(o).add("djs-element"),je(o).add("djs-"+e),n&&je(o).add("djs-frame"),he(r,o);var a=re("g");return je(a).add("djs-visual"),he(o,a),o},_e.prototype.create=function(e,t,i){var n=this._getChildrenContainer(t.parent);return this._createContainer(e,n,i,Bo(t))},_e.prototype.updateContainments=function(e){var t=this,i=this._elementRegistry,n;n=ci(e,function(r,o){return o.parent&&(r[o.parent.id]=o.parent),r},{}),R(n,function(r){var o=r.children;if(!!o){var a=t._getChildrenContainer(r);R(o.slice().reverse(),function(l){var c=i.getGraphics(l);ea(c.parentNode,a)})}})},_e.prototype.drawShape=function(e,t,i={}){var n=this._eventBus;return n.fire("render.shape",{gfx:e,element:t,attrs:i})},_e.prototype.getShapePath=function(e){var t=this._eventBus;return t.fire("render.getShapePath",e)},_e.prototype.drawConnection=function(e,t,i={}){var n=this._eventBus;return n.fire("render.connection",{gfx:e,element:t,attrs:i})},_e.prototype.getConnectionPath=function(e){var t=this._eventBus;return t.fire("render.getConnectionPath",e)},_e.prototype.update=function(e,t,i){if(!!t.parent){var n=this._clear(i);if(e==="shape")this.drawShape(n,t),Ao(i,t.x,t.y);else if(e==="connection")this.drawConnection(n,t);else throw new Error("unknown type: "+e);t.hidden?ne(i,"display","none"):ne(i,"display","block")}},_e.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);Si(t.parentNode)};function ea(e,t,i){var n=i||t.firstChild;e!==n&&t.insertBefore(e,n)}const uu={__depends__:[Wh],__init__:["canvas"],canvas:["type",J],elementRegistry:["type",Ue],elementFactory:["type",fi],eventBus:["type",Re],graphicsFactory:["type",_e]};function mu(e){var t=new Qo(e);return t.init(),t}function fu(e){e=e||{};var t={config:["value",e]},i=[t,uu].concat(e.modules||[]);return mu(i)}function gi(e,t){this._injector=t=t||fu(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}gi.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},gi.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Tn(){}Tn.prototype.get=function(e){return this.$model.properties.get(this,e)},Tn.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function ta(e,t){this.model=e,this.properties=t}ta.prototype.createType=function(e){var t=this.model,i=this.properties,n=Object.create(Tn.prototype);R(e.properties,function(a){!a.isMany&&a.default!==void 0&&(n[a.name]=a.default)}),i.defineModel(n,t),i.defineDescriptor(n,e);var r=e.ns.name;function o(a){i.define(this,"$type",{value:r,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),R(a,It(function(l,c){this.set(c,l)},this))}return o.prototype=n,o.hasType=n.$instanceOf=this.model.hasType,i.defineModel(o,t),i.defineDescriptor(o,e),o};var gu={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ia={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function In(e,t){var i=ia[e];return i?i(t):t}function Bn(e){return!!gu[e]}function sa(e){return!!ia[e]}function we(e,t){var i=e.split(/:/),n,r;if(i.length===1)n=e,r=t;else if(i.length===2)n=i[1],r=i[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(r?r+":":"")+n,{name:e,prefix:r,localName:n}}function Ge(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Ge.prototype.build=function(){return Id(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Ge.prototype.addProperty=function(e,t,i){typeof t=="boolean"&&(i=t,t=void 0),this.addNamedProperty(e,i!==!1);var n=this.properties;t!==void 0?n.splice(t,0,e):n.push(e)},Ge.prototype.replaceProperty=function(e,t,i){var n=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var l=r.indexOf(e);if(l===-1)throw new Error("property <"+n.name+"> not found in property list");r.splice(l,1),this.addProperty(t,i?void 0:l,a),o[n.name]=o[n.localName]=t},Ge.prototype.redefineProperty=function(e,t,i){var n=e.ns.prefix,r=t.split("#"),o=we(r[0],n),a=we(r[1],o.prefix).name,l=this.propertiesByName[a];if(l)this.replaceProperty(l,e,i);else throw new Error("refined property <"+a+"> not found");delete e.redefines},Ge.prototype.addNamedProperty=function(e,t){var i=e.ns,n=this.propertiesByName;t&&(this.assertNotDefined(e,i.name),this.assertNotDefined(e,i.localName)),n[i.name]=n[i.localName]=e},Ge.prototype.removeNamedProperty=function(e){var t=e.ns,i=this.propertiesByName;delete i[t.name],delete i[t.localName]},Ge.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Ge.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Ge.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},Ge.prototype.assertNotDefined=function(e,t){var i=e.name,n=this.propertiesByName[i];if(n)throw new Error("property <"+i+"> already defined; override of <"+n.definedBy.ns.name+"#"+n.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Ge.prototype.hasProperty=function(e){return this.propertiesByName[e]},Ge.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var i=this.allTypesByName,n=this.allTypes,r=e.name;r in i||(R(e.properties,It(function(o){o=q({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,l=o.redefines;a||l?this.redefineProperty(o,a||l,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),n.push(e),i[r]=e)};function Pt(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,R(e,It(this.registerPackage,this))}Pt.prototype.getPackage=function(e){return this.packageMap[e]},Pt.prototype.getPackages=function(){return this.packages},Pt.prototype.registerPackage=function(e){e=q({},e);var t=this.packageMap;na(t,e,"prefix"),na(t,e,"uri"),R(e.types,It(function(i){this.registerType(i,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},Pt.prototype.registerType=function(e,t){e=q({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:q(e.meta||{})});var i=we(e.name,t.prefix),n=i.name,r={};R(e.properties,It(function(o){var a=we(o.name,i.prefix),l=a.name;Bn(o.type)||(o.type=we(o.type,a.prefix).name),q(o,{ns:a,name:l}),r[l]=o},this)),q(e,{ns:i,name:n,propertiesByName:r}),R(e.extends,It(function(o){var a=we(o,i.prefix),l=this.typeMap[a.name];l.traits=l.traits||[],l.traits.push(n)},this)),this.definePackage(e,t),this.typeMap[n]=e},Pt.prototype.mapTypes=function(e,t,i){var n=Bn(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(c,m){var u=we(c,Bn(c)?"":e.prefix);r.mapTypes(u,t,m)}function a(c){return o(c,!0)}function l(c){return o(c,!1)}if(!n)throw new Error("unknown type <"+e.name+">");R(n.superClass,i?a:l),t(n,!i),R(n.traits,a)},Pt.prototype.getEffectiveDescriptor=function(e){var t=we(e),i=new Ge(t);this.mapTypes(t,function(r,o){i.addTrait(r,o)});var n=i.build();return this.definePackage(n,n.allTypes[n.allTypes.length-1].$pkg),n},Pt.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function na(e,t,i){var n=t[i];if(n in e)throw new Error("package with "+i+" <"+n+"> already defined")}function Yt(e){this.model=e}Yt.prototype.set=function(e,t,i){if(!Ze(t)||!t.length)throw new TypeError("property name must be a non-empty string");var n=this.getProperty(e,t),r=n&&n.name;yu(i)?n?delete e[r]:delete e.$attrs[xn(t)]:n?r in e?e[r]=i:ra(e,n,i):e.$attrs[xn(t)]=i},Yt.prototype.get=function(e,t){var i=this.getProperty(e,t);if(!i)return e.$attrs[xn(t)];var n=i.name;return!e[n]&&i.isMany&&ra(e,i,[]),e[n]},Yt.prototype.define=function(e,t,i){if(!i.writable){var n=i.value;i=q({},i,{get:function(){return n}}),delete i.value}Object.defineProperty(e,t,i)},Yt.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Yt.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Yt.prototype.getProperty=function(e,t){var i=this.model,n=i.getPropertyDescriptor(e,t);if(n)return n;if(t.includes(":"))return null;const r=i.config.strict;if(typeof r<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw o;typeof console<"u"}return null};function yu(e){return typeof e>"u"}function ra(e,t,i){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:i,configurable:!0})}function xn(e){return e.replace(/^:/,"")}function Ke(e,t={}){this.properties=new Yt(this),this.factory=new ta(this,this.properties),this.registry=new Pt(e,this.properties),this.typeCache={},this.config=t}Ke.prototype.create=function(e,t){var i=this.getType(e);if(!i)throw new Error("unknown type <"+e+">");return new i(t)},Ke.prototype.getType=function(e){var t=this.typeCache,i=Ze(e)?e:e.ns.name,n=t[i];return n||(e=this.registry.getEffectiveDescriptor(i),n=t[i]=this.factory.createType(e)),n},Ke.prototype.createAny=function(e,t,i){var n=we(e),r={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,l){Td(this,[a],l)}},o={name:e,isGeneric:!0,ns:{prefix:n.prefix,localName:n.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(i,function(a,l){Qt(a)&&a.value!==void 0?r[a.name]=a.value:r[l]=a}),r},Ke.prototype.getPackage=function(e){return this.registry.getPackage(e)},Ke.prototype.getPackages=function(){return this.registry.getPackages()},Ke.prototype.getElementDescriptor=function(e){return e.$descriptor},Ke.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var i=e.$model.getElementDescriptor(e);return t in i.allTypesByName},Ke.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Ke.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var oa=String.fromCharCode,Au=Object.prototype.hasOwnProperty,ku=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,vi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(vi).forEach(function(e){vi[e.toUpperCase()]=vi[e]});function Eu(e,t,i,n){return n?Au.call(vi,n)?vi[n]:"&"+n+";":oa(t||parseInt(i,16))}function Xt(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(ku,Eu):e}var bu="http://www.w3.org/2001/XMLSchema-instance",Cu="xsi",aa="xsi:type",la="non-whitespace outside of root node";function yi(e){return new Error(e)}function ca(e){return"missing namespace for prefix <"+e+">"}function bs(e){return{get:e,enumerable:!0}}function wu(e){var t={},i;for(i in e)t[i]=e[i];return t}function Sn(e){return e+"$uri"}function Nu(e){var t={},i,n;for(i in e)n=e[i],t[n]=n,t[Sn(n)]=i;return t}function da(){return{line:0,column:0}}function Tu(e){throw e}function pa(e){if(!this)return new pa(e);var t=e&&e.proxy,i,n,r,o,a=Tu,l,c,m,u,p=da,y=!1,k=!1,C=null,v=!1,F;function z(E){E instanceof Error||(E=yi(E)),C=E,a(E,p)}function j(E){!l||(E instanceof Error||(E=yi(E)),l(E,p))}this.on=function(E,x){if(typeof x!="function")throw yi("required args <name, cb>");switch(E){case"openTag":n=x;break;case"text":i=x;break;case"closeTag":r=x;break;case"error":a=x;break;case"warn":l=x;break;case"cdata":o=x;break;case"attention":u=x;break;case"question":m=x;break;case"comment":c=x;break;default:throw yi("unsupported event: "+E)}return this},this.ns=function(E){if(typeof E>"u"&&(E={}),typeof E!="object")throw yi("required args <nsMap={}>");var x={},S;for(S in E)x[S]=E[S];return x[bu]=Cu,k=!0,F=x,this},this.parse=function(E){if(typeof E!="string")throw yi("required args <xml=string>");return C=null,I(E),p=da,v=!1,C},this.stop=function(){v=!0};function I(E){var x=k?[]:null,S=k?Nu(F):null,D,w=[],V=0,B=!1,O=!1,M=0,_=0,K,it,ie,X,lt,ct,ge,ft,gt,N="",T=0,L;function ce(){if(L!==null)return L;var de,f,d,h=k&&S.xmlns,g=k&&y?[]:null,A=T,b=N,Q=b.length,Z,Y,$,ye,ee,Vt={},Bs={},Le,G,te;e:for(;A<Q;A++)if(Le=!1,G=b.charCodeAt(A),!(G===32||G<14&&G>8)){for((G<65||G>122||G>90&&G<97)&&G!==95&&G!==58&&(j("illegal first char attribute name"),Le=!0),te=A+1;te<Q;te++)if(G=b.charCodeAt(te),!(G>96&&G<123||G>64&&G<91||G>47&&G<59||G===46||G===45||G===95)){if(G===32||G<14&&G>8){j("missing attribute value"),A=te;continue e}if(G===61)break;j("illegal attribute name char"),Le=!0}if(ee=b.substring(A,te),ee==="xmlns:xmlns"&&(j("illegal declaration of xmlns"),Le=!0),G=b.charCodeAt(te+1),G===34)te=b.indexOf('"',A=te+2),te===-1&&(te=b.indexOf("'",A),te!==-1&&(j("attribute value quote missmatch"),Le=!0));else if(G===39)te=b.indexOf("'",A=te+2),te===-1&&(te=b.indexOf('"',A),te!==-1&&(j("attribute value quote missmatch"),Le=!0));else for(j("missing attribute value quotes"),Le=!0,te=te+1;te<Q&&(G=b.charCodeAt(te+1),!(G===32||G<14&&G>8));te++);for(te===-1&&(j("missing closing quotes"),te=Q,Le=!0),Le||($=b.substring(A,te)),A=te;te+1<Q&&(G=b.charCodeAt(te+1),!(G===32||G<14&&G>8));te++)A===te&&(j("illegal character after attribute end"),Le=!0);if(A=te+1,Le)continue e;if(ee in Bs){j("attribute <"+ee+"> already defined");continue}if(Bs[ee]=!0,!k){Vt[ee]=$;continue}if(y){if(Y=ee==="xmlns"?"xmlns":ee.charCodeAt(0)===120&&ee.substr(0,6)==="xmlns:"?ee.substr(6):null,Y!==null){if(de=Xt($),f=Sn(Y),ye=F[de],!ye){if(Y==="xmlns"||f in S&&S[f]!==de)do ye="ns"+V++;while(typeof S[ye]<"u");else ye=Y;F[de]=ye}S[Y]!==ye&&(Z||(S=wu(S),Z=!0),S[Y]=ye,Y==="xmlns"&&(S[Sn(ye)]=de,h=ye),S[f]=de),Vt[ee]=$;continue}g.push(ee,$);continue}if(G=ee.indexOf(":"),G===-1){Vt[ee]=$;continue}if(!(d=S[ee.substring(0,G)])){j(ca(ee.substring(0,G)));continue}ee=h===d?ee.substr(G+1):d+ee.substr(G),ee===aa&&(G=$.indexOf(":"),G!==-1?(d=$.substring(0,G),d=S[d]||d,$=d+$.substring(G)):$=h+":"+$),Vt[ee]=$}if(y)for(A=0,Q=g.length;A<Q;A++){if(ee=g[A++],$=g[A],G=ee.indexOf(":"),G!==-1){if(!(d=S[ee.substring(0,G)])){j(ca(ee.substring(0,G)));continue}ee=h===d?ee.substr(G+1):d+ee.substr(G),ee===aa&&(G=$.indexOf(":"),G!==-1?(d=$.substring(0,G),d=S[d]||d,$=d+$.substring(G)):$=h+":"+$)}Vt[ee]=$}return L=Vt}function ke(){for(var de=/(\r\n|\r|\n)/g,f=0,d=0,h=0,g=_,A,b;M>=h&&(A=de.exec(E),!(!A||(g=A[0].length+A.index,g>M)));)f+=1,h=g;return M==-1?(d=g,b=E.substring(_)):_===0?b=E.substring(_,M):(d=M-h,b=_==-1?E.substring(M):E.substring(M,_+1)),{data:b,line:f,column:d}}for(p=ke,t&&(gt=Object.create({},{name:bs(function(){return ge}),originalName:bs(function(){return ft}),attrs:bs(ce),ns:bs(function(){return S})}));_!==-1;){if(E.charCodeAt(_)===60?M=_:M=E.indexOf("<",_),M===-1){if(w.length)return z("unexpected end of file");if(_===0)return z("missing start tag");_<E.length&&E.substring(_).trim()&&j(la);return}if(_!==M){if(w.length){if(i&&(i(E.substring(_,M),Xt,p),v))return}else if(E.substring(_,M).trim()&&(j(la),v))return}if(X=E.charCodeAt(M+1),X===33){if(ie=E.charCodeAt(M+2),ie===91&&E.substr(M+3,6)==="CDATA["){if(_=E.indexOf("]]>",M),_===-1)return z("unclosed cdata");if(o&&(o(E.substring(M+9,_),p),v))return;_+=3;continue}if(ie===45&&E.charCodeAt(M+3)===45){if(_=E.indexOf("-->",M),_===-1)return z("unclosed comment");if(c&&(c(E.substring(M+4,_),Xt,p),v))return;_+=3;continue}}if(X===63){if(_=E.indexOf("?>",M),_===-1)return z("unclosed question");if(m&&(m(E.substring(M,_+2),p),v))return;_+=2;continue}for(K=M+1;;K++){if(lt=E.charCodeAt(K),isNaN(lt))return _=-1,z("unclosed tag");if(lt===34)ie=E.indexOf('"',K+1),K=ie!==-1?ie:K;else if(lt===39)ie=E.indexOf("'",K+1),K=ie!==-1?ie:K;else if(lt===62){_=K;break}}if(X===33){if(u&&(u(E.substring(M,_+1),Xt,p),v))return;_+=1;continue}if(L={},X===47){if(B=!1,O=!0,!w.length)return z("missing open tag");if(K=ge=w.pop(),ie=M+2+K.length,E.substring(M+2,ie)!==K)return z("closing tag mismatch");for(;ie<_;ie++)if(X=E.charCodeAt(ie),!(X===32||X>8&&X<14))return z("close tag")}else{if(E.charCodeAt(_-1)===47?(K=ge=E.substring(M+1,_-1),B=!0,O=!0):(K=ge=E.substring(M+1,_),B=!0,O=!1),!(X>96&&X<123||X>64&&X<91||X===95||X===58))return z("illegal first char nodeName");for(ie=1,it=K.length;ie<it;ie++)if(X=K.charCodeAt(ie),!(X>96&&X<123||X>64&&X<91||X>47&&X<59||X===45||X===95||X==46)){if(X===32||X<14&&X>8){ge=K.substring(0,ie),L=null;break}return z("invalid nodeName")}O||w.push(ge)}if(k){if(D=S,B&&(O||x.push(D),L===null&&(y=K.indexOf("xmlns",ie)!==-1)&&(T=ie,N=K,ce(),y=!1)),ft=ge,X=ge.indexOf(":"),X!==-1){if(ct=S[ge.substring(0,X)],!ct)return z("missing namespace on <"+ft+">");ge=ge.substr(X+1)}else ct=S.xmlns;ct&&(ge=ct+":"+ge)}if(B&&(T=ie,N=K,n&&(t?n(gt,Xt,O,p):n(ge,ce,Xt,O,p),v)))return;if(O){if(r&&(r(t?gt:ge,Xt,B,p),v))return;k&&(B?S=D:S=x.pop())}_+=1}}}function ha(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Iu={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Cs="xsi:type";function ua(e){return e.xml&&e.xml.serialize}function ma(e){return ua(e)===Cs}function Bu(e){return ua(e)==="property"}function xu(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fa(e,t){return ha(t)?e.prefix+":"+xu(e.localName):e.name}function Su(e,t){var i=e.name,n=e.localName,r=t.xml&&t.xml.typePrefix;return r&&n.indexOf(r)===0?e.prefix+":"+n.slice(r.length):i}function Du(e,t){var i=we(e),n=t.getPackage(i.prefix);return Su(i,n)}function Mt(e){return new Error(e)}function mt(e){return e.$descriptor}function Pu(e){q(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Mt("expected element");var i=this.elementsById,n=mt(t),r=n.idProperty,o;if(r&&(o=t.get(r.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(i[o])throw Mt("duplicate ID <"+o+">");i[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Fi(){}Fi.prototype.handleEnd=function(){},Fi.prototype.handleText=function(){},Fi.prototype.handleNode=function(){};function Dn(){}Dn.prototype=Object.create(Fi.prototype),Dn.prototype.handleNode=function(){return this};function Ai(){}Ai.prototype=Object.create(Fi.prototype),Ai.prototype.handleText=function(e){this.body=(this.body||"")+e};function ji(e,t){this.property=e,this.context=t}ji.prototype=Object.create(Ai.prototype),ji.prototype.handleNode=function(e){if(this.element)throw Mt("expected no sub nodes");return this.element=this.createReference(e),this},ji.prototype.handleEnd=function(){this.element.id=this.body},ji.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Pn(e,t){this.element=t,this.propertyDesc=e}Pn.prototype=Object.create(Ai.prototype),Pn.prototype.handleEnd=function(){var e=this.body||"",t=this.element,i=this.propertyDesc;e=In(i.type,e),i.isMany?t.get(i.name).push(e):t.set(i.name,e)};function ws(){}ws.prototype=Object.create(Ai.prototype),ws.prototype.handleNode=function(e){var t=this,i=this.element;return i?t=this.handleChild(e):(i=this.element=this.createElement(e),this.context.addElement(i)),t};function Ne(e,t,i){this.model=e,this.type=e.getType(t),this.context=i}Ne.prototype=Object.create(ws.prototype),Ne.prototype.addReference=function(e){this.context.addReference(e)},Ne.prototype.handleText=function(e){var t=this.element,i=mt(t),n=i.bodyProperty;if(!n)throw Mt("unexpected body text <"+e+">");Ai.prototype.handleText.call(this,e)},Ne.prototype.handleEnd=function(){var e=this.body,t=this.element,i=mt(t),n=i.bodyProperty;n&&e!==void 0&&(e=In(n.type,e),t.set(n.name,e))},Ne.prototype.createElement=function(e){var t=e.attributes,i=this.type,n=mt(i),r=this.context,o=new i({}),a=this.model,l;return R(t,function(c,m){var u=n.propertiesByName[m],p;u&&u.isReference?u.isMany?(p=c.split(" "),R(p,function(y){r.addReference({element:o,property:u.ns.name,id:y})})):r.addReference({element:o,property:u.ns.name,id:c}):(u?c=In(u.type,c):m!=="xmlns"&&(l=we(m,n.ns.prefix),a.getPackage(l.prefix)&&r.addWarning({message:"unknown attribute <"+m+">",element:o,property:m,value:c})),o.set(m,c))}),o},Ne.prototype.getPropertyForNode=function(e){var t=e.name,i=we(t),n=this.type,r=this.model,o=mt(n),a=i.name,l=o.propertiesByName[a],c,m;if(l&&!l.isAttr)return ma(l)&&(c=e.attributes[Cs],c)?(c=Du(c,r),m=r.getType(c),q({},l,{effectiveType:mt(m).name})):l;var u=r.getPackage(i.prefix);if(u){if(c=fa(i,u),m=r.getType(c),l=$e(o.properties,function(p){return!p.isVirtual&&!p.isReference&&!p.isAttribute&&m.hasType(p.type)}),l)return q({},l,{effectiveType:mt(m).name})}else if(l=$e(o.properties,function(p){return!p.isReference&&!p.isAttribute&&p.type==="Element"}),l)return l;throw Mt("unrecognized element <"+i.name+">")},Ne.prototype.toString=function(){return"ElementDescriptor["+mt(this.type).name+"]"},Ne.prototype.valueHandler=function(e,t){return new Pn(e,t)},Ne.prototype.referenceHandler=function(e){return new ji(e,this.context)},Ne.prototype.handler=function(e){return e==="Element"?new ki(this.model,e,this.context):new Ne(this.model,e,this.context)},Ne.prototype.handleChild=function(e){var t,i,n,r;if(t=this.getPropertyForNode(e),n=this.element,i=t.effectiveType||t.type,sa(i))return this.valueHandler(t,n);t.isReference?r=this.referenceHandler(t).handleNode(e):r=this.handler(i).handleNode(e);var o=r.element;return o!==void 0&&(t.isMany?n.get(t.name).push(o):n.set(t.name,o),t.isReference?(q(o,{element:n}),this.context.addReference(o)):o.$parent=n),r};function Mn(e,t,i){Ne.call(this,e,t,i)}Mn.prototype=Object.create(Ne.prototype),Mn.prototype.createElement=function(e){var t=e.name,i=we(t),n=this.model,r=this.type,o=n.getPackage(i.prefix),a=o&&fa(i,o)||t;if(!r.hasType(a))throw Mt("unexpected element <"+e.originalName+">");return Ne.prototype.createElement.call(this,e)};function ki(e,t,i){this.model=e,this.context=i}ki.prototype=Object.create(ws.prototype),ki.prototype.createElement=function(e){var t=e.name,i=we(t),n=i.prefix,r=e.ns[n+"$uri"],o=e.attributes;return this.model.createAny(t,r,o)},ki.prototype.handleChild=function(e){var t=new ki(this.model,"Element",this.context).handleNode(e),i=this.element,n=t.element,r;return n!==void 0&&(r=i.$children=i.$children||[],r.push(n),n.$parent=i),t},ki.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Vn(e){e instanceof Ke&&(e={model:e}),q(this,{lax:!1},e)}Vn.prototype.fromXML=function(e,t,i){var n=t.rootHandler;t instanceof Ne?(n=t,t={}):typeof t=="string"?(n=this.handler(t),t={}):typeof n=="string"&&(n=this.handler(n));var r=this.model,o=this.lax,a=new Pu(q({},t,{rootHandler:n})),l=new pa({proxy:!0}),c=Mu();n.context=a,c.push(n);function m(x,S,D){var w=S(),V=w.line,B=w.column,O=w.data;O.charAt(0)==="<"&&O.indexOf(" ")!==-1&&(O=O.slice(0,O.indexOf(" "))+">");var M="unparsable content "+(O?O+" ":"")+`detected
6
6
  line: `+V+`
7
7
  column: `+B+`
8
- nested error: `+x.message;if(D)return a.addWarning({message:M,error:x}),!0;throw Mt(M)}function u(x,S){return m(x,S,!0)}function p(){var x=a.elementsById,S=a.references,D,w;for(D=0;w=S[D];D++){var V=w.element,B=x[w.id],O=mt(V).propertiesByName[w.property];if(B||a.addWarning({message:"unresolved reference <"+w.id+">",element:w.element,property:w.property,value:w.id}),O.isMany){var M=V.get(O.name),G=M.indexOf(w);G===-1&&(G=M.length),B?M[G]=B:M.splice(G,1)}else V.set(O.name,B)}}function y(){c.pop().handleEnd()}var k=/^<\?xml /i,C=/ encoding="([^"]+)"/i,v=/^utf-8$/i;function F(x){if(!!k.test(x)){var S=C.exec(x),D=S&&S[1];!D||v.test(D)||a.addWarning({message:"unsupported document encoding <"+D+">, falling back to UTF-8"})}}function z(x,S){var D=c.peek();try{c.push(D.handleNode(x))}catch(w){m(w,S,o)&&c.push(new Dn)}}function j(x,S){try{c.peek().handleText(x)}catch(D){u(D,S)}}function I(x,S){!x.trim()||j(x,S)}var b=r.getPackages().reduce(function(x,S){return x[S.uri]=S.prefix,x},{"http://www.w3.org/XML/1998/namespace":"xml"});return l.ns(b).on("openTag",function(x,S,D,w){var V=x.attrs||{},B=Object.keys(V).reduce(function(M,G){var K=S(V[G]);return M[G]=K,M},{}),O={name:x.name,originalName:x.originalName,attributes:B,ns:x.ns};z(O,w)}).on("question",F).on("closeTag",y).on("cdata",j).on("text",function(x,S,D){I(S(x),D)}).on("error",m).on("warn",u),new Promise(function(x,S){var D;try{l.parse(e),p()}catch(M){D=M}var w=n.element;!D&&!w&&(D=Mt("failed to parse document as <"+n.type.$descriptor.name+">"));var V=a.warnings,B=a.references,O=a.elementsById;return D?(D.warnings=V,S(D)):x({rootElement:w,elementsById:O,references:B,warnings:V})})},Vn.prototype.handler=function(e){return new Mn(this.model,e)};function Mu(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var Vu=`<?xml version="1.0" encoding="UTF-8"?>
9
- `,Ou=/<|>|'|"|&|\n\r|\n/g,ga=/<|>|&/g;function Ru(e){var t={},i={},n={},r=[],o=[];this.byUri=function(a){return i[a]||e&&e.byUri(a)},this.add=function(a,l){i[a.uri]=a,l?r.push(a):o.push(a),this.mapPrefix(a.prefix,a.uri)},this.uriByPrefix=function(a){return t[a||"xmlns"]},this.mapPrefix=function(a,l){t[a||"xmlns"]=l},this.getNSKey=function(a){return a.prefix!==void 0?a.uri+"|"+a.prefix:a.uri},this.logUsed=function(a){var l=a.uri,c=this.getNSKey(a);n[c]=this.byUri(l),e&&e.logUsed(a)},this.getUsed=function(a){function l(u){var p=c.getNSKey(u);return n[p]}var c=this,m=[].concat(r,o);return m.filter(l)}}function Lu(e){return e.charAt(0).toLowerCase()+e.slice(1)}function vu(e,t){return ha(t)?Lu(e):e}function ya(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Aa(e){return Ze(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function Fu(e){return e.getUsed().filter(function(t){return t.prefix!=="xml"}).map(function(t){var i="xmlns"+(t.prefix?":"+t.prefix:"");return{name:i,value:t.uri}})}function ju(e,t){return t.isGeneric?q({localName:t.ns.localName},e):q({localName:vu(t.ns.localName,t.$pkg)},e)}function Qu(e,t){return q({localName:t.ns.localName},e)}function Uu(e){var t=e.$descriptor;return li(t.properties,function(i){var n=i.name;if(i.isVirtual||!ai(e,n))return!1;var r=e[n];return r===i.default||r===null?!1:i.isMany?r.length:!0})}var Gu={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},_u={"<":"lt",">":"gt","&":"amp"};function ka(e,t,i){return e=Ze(e)?e:""+e,e.replace(t,function(n){return"&"+i[n]+";"})}function qu(e){return ka(e,Ou,Gu)}function Ju(e){return ka(e,ga,_u)}function zu(e){return li(e,function(t){return t.isAttr})}function Ku(e){return li(e,function(t){return!t.isAttr})}function On(e){this.tagName=e}On.prototype.build=function(e){return this.element=e,this},On.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function Zt(){}Zt.prototype.serializeValue=Zt.prototype.serializeTo=function(e){e.append(this.escape?Ju(this.value):this.value)},Zt.prototype.build=function(e,t){return this.value=t,e.type==="String"&&t.search(ga)!==-1&&(this.escape=!0),this};function Rn(e){this.tagName=e}ya(Rn,Zt),Rn.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function le(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}le.prototype.build=function(e){this.element=e;var t=e.$descriptor,i=this.propertyDescriptor,n,r,o=t.isGeneric;return o?n=this.parseGeneric(e):n=this.parseNsAttributes(e),i?this.ns=this.nsPropertyTagName(i):this.ns=this.nsTagName(t),this.tagName=this.addTagName(this.ns),o||(r=Uu(e),this.parseAttributes(zu(r)),this.parseContainments(Ku(r))),this.parseGenericAttributes(e,n),this},le.prototype.nsTagName=function(e){var t=this.logNamespaceUsed(e.ns);return ju(t,e)},le.prototype.nsPropertyTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Qu(t,e)},le.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},le.prototype.nsAttributeName=function(e){var t;if(Ze(e)?t=we(e):t=e.ns,e.inherited)return{localName:t.localName};var i=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(i),this.isLocalNs(i)?{localName:t.localName}:q({localName:t.localName},i)},le.prototype.parseGeneric=function(e){var t=this,i=this.body,n=[];return R(e,function(r,o){var a;o==="$body"?i.push(new Zt().build({type:"String"},r)):o==="$children"?R(r,function(l){i.push(new le(t).build(l))}):o.indexOf("$")!==0&&(a=t.parseNsAttribute(e,o,r),a&&n.push({name:o,value:r}))}),n},le.prototype.parseNsAttribute=function(e,t,i){var n=e.$model,r=we(t),o;if(r.prefix==="xmlns"&&(o={prefix:r.localName,uri:i}),!r.prefix&&r.localName==="xmlns"&&(o={uri:i}),!o)return{name:t,value:i};if(n&&n.getPackage(i))this.logNamespace(o,!0,!0);else{var a=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(a)}},le.prototype.parseNsAttributes=function(e,t){var i=this,n=e.$attrs,r=[];return R(n,function(o,a){var l=i.parseNsAttribute(e,a,o);l&&r.push(l)}),r},le.prototype.parseGenericAttributes=function(e,t){var i=this;R(t,function(n){if(n.name!==Cs)try{i.addAttribute(i.nsAttributeName(n.name),n.value)}catch(r){n.name,n.value}})},le.prototype.parseContainments=function(e){var t=this,i=this.body,n=this.element;R(e,function(r){var o=n.get(r.name),a=r.isReference,l=r.isMany;if(l||(o=[o]),r.isBody)i.push(new Zt().build(r,o[0]));else if(sa(r.type))R(o,function(u){i.push(new Rn(t.addTagName(t.nsPropertyTagName(r))).build(r,u))});else if(a)R(o,function(u){i.push(new On(t.addTagName(t.nsPropertyTagName(r))).build(u))});else{var c=ma(r),m=Bu(r);R(o,function(u){var p;c?p=new Ns(t,r):m?p=new le(t,r):p=new le(t),i.push(p.build(u))})}})},le.prototype.getNamespaces=function(e){var t=this.namespaces,i=this.parent,n;return t||(n=i&&i.getNamespaces(),e||!n?this.namespaces=t=new Ru(n):t=n),t},le.prototype.logNamespace=function(e,t,i){var n=this.getNamespaces(i),r=e.uri,o=e.prefix,a=n.byUri(r);return(!a||i)&&n.add(e,t),n.mapPrefix(o,r),e},le.prototype.logNamespaceUsed=function(e,t){var i=this.element,n=i.$model,r=this.getNamespaces(t),o=e.prefix,a=e.uri,l,c,m;if(!o&&!a)return{localName:e.localName};if(m=Iu[o]||n&&(n.getPackage(o)||{}).uri,a=a||m||r.uriByPrefix(o),!a)throw new Error("no namespace uri given for prefix <"+o+">");if(e=r.byUri(a),!e){for(l=o,c=1;r.uriByPrefix(l);)l=o+"_"+c++;e=this.logNamespace({prefix:l,uri:a},m===a)}return o&&r.mapPrefix(o,a),e},le.prototype.parseAttributes=function(e){var t=this,i=this.element;R(e,function(n){var r=i.get(n.name);if(n.isReference)if(!n.isMany)r=r.id;else{var o=[];R(r,function(a){o.push(a.id)}),r=o.join(" ")}t.addAttribute(t.nsAttributeName(n),r)})},le.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Aa(e)},le.prototype.addAttribute=function(e,t){var i=this.attrs;Ze(t)&&(t=qu(t));var n=bd(i,function(o){return o.name.localName===e.localName&&o.name.uri===e.uri&&o.name.prefix===e.prefix}),r={name:e,value:t};n!==-1?i.splice(n,1,r):i.push(r)},le.prototype.serializeAttributes=function(e){var t=this.attrs,i=this.namespaces;i&&(t=Fu(i).concat(t)),R(t,function(n){e.append(" ").append(Aa(n.name)).append('="').append(n.value).append('"')})},le.prototype.serializeTo=function(e){var t=this.body[0],i=t&&t.constructor!==Zt;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(i&&e.appendNewLine().indent(),R(this.body,function(n){n.serializeTo(e)}),i&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()};function Ns(e,t){le.call(this,e,t)}ya(Ns,le),Ns.prototype.parseNsAttributes=function(e){var t=le.prototype.parseNsAttributes.call(this,e),i=e.$descriptor;if(i.name===this.propertyDescriptor.type)return t;var n=this.typeNs=this.nsTagName(i);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(n.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Cs),(n.prefix?n.prefix+":":"")+o+i.ns.localName),t},Ns.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Hu(){this.value="",this.write=function(e){this.value+=e}}function Wu(e,t){var i=[""];this.append=function(n){return e.write(n),this},this.appendNewLine=function(){return t&&e.write(`
10
- `),this},this.appendIndent=function(){return t&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function Yu(e){e=q({format:!1,preamble:!0},e||{});function t(i,n){var r=n||new Hu,o=new Wu(r,e.format);if(e.preamble&&o.append(Vu),new le().build(i).serializeTo(o),!n)return r.value}return{toXML:t}}function Ts(e,t){Ke.call(this,e,t)}Ts.prototype=Object.create(Ke.prototype),Ts.prototype.fromXML=function(e,t,i){Ze(t)||(i=t,t="bpmn:Definitions");var n=new Vn(q({model:this,lax:!0},i)),r=n.handler(t);return n.fromXML(e,r)},Ts.prototype.toXML=function(e,t){var i=new Yu(t);return new Promise(function(n,r){try{var o=i.toXML(e);return n({xml:o})}catch(a){return r(a)}})};var Xu="BPMN20",Zu="http://www.omg.org/spec/BPMN/20100524/MODEL",$u="bpmn",em=[],tm=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],im=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],sm={tagAlias:"lowerCase",typePrefix:"t"},nm={name:Xu,uri:Zu,prefix:$u,associations:em,types:tm,enumerations:im,xml:sm},rm="BPMNDI",om="http://www.omg.org/spec/BPMN/20100524/DI",am="bpmndi",lm=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],cm=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],dm=[],pm={name:rm,uri:om,prefix:am,types:lm,enumerations:cm,associations:dm},hm="DC",um="http://www.omg.org/spec/DD/20100524/DC",mm="dc",fm=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],gm=[],ym={name:hm,uri:um,prefix:mm,types:fm,associations:gm},Am="DI",km="http://www.omg.org/spec/DD/20100524/DI",bm="di",Em=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Cm=[],wm={tagAlias:"lowerCase"},Nm={name:Am,uri:km,prefix:bm,types:Em,associations:Cm,xml:wm},Tm="bpmn.io colors for BPMN",Im="http://bpmn.io/schema/bpmn/biocolor/1.0",Bm="bioc",xm=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],Sm=[],Dm=[],Pm={name:Tm,uri:Im,prefix:Bm,types:xm,enumerations:Sm,associations:Dm},Mm="BPMN in Color",Vm="http://www.omg.org/spec/BPMN/non-normative/color/1.0",Om="color",Rm=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],Lm=[],vm=[],Fm={name:Mm,uri:Vm,prefix:Om,types:Rm,enumerations:Lm,associations:vm},jm={bpmn:nm,bpmndi:pm,dc:ym,di:Nm,bioc:Pm,color:Fm};function Qm(e,t){var i=q({},jm,e);return new Ts(i,t)}var Um="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function Gm(e){ai(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Um)}})}function xe(e,t){return e.$instanceOf(t)}function _m(e){return $e(e.rootElements,function(t){return xe(t,"bpmn:Process")||xe(t,"bpmn:Collaboration")})}function qm(e,t){var i={},n=[],r={};function o(N,T){return function(L){N(L,T)}}function a(N){i[N.id]=N}function l(N){return i[N.id]}function c(N,T){var L=N.gfx;if(L)throw new Error(t("already rendered {element}",{element:Ee(N)}));return e.element(N,r[N.id],T)}function m(N,T){return e.root(N,r[N.id],T)}function u(N,T){try{var L=r[N.id]&&c(N,T);return a(N),L}catch(ce){p(ce.message,{element:N,error:ce}),console.error(t("failed to import {element}",{element:Ee(N)})),console.error(ce)}}function p(N,T){e.error(N,T)}var y=this.registerDi=function(T){var L=T.bpmnElement;L?r[L.id]?p(t("multiple DI elements defined for {element}",{element:Ee(L)}),{element:L}):(r[L.id]=T,Gm(L)):p(t("no bpmnElement referenced in {element}",{element:Ee(T)}),{element:T})};function k(N){C(N.plane)}function C(N){y(N),R(N.planeElement,v)}function v(N){y(N)}this.handleDefinitions=function(T,L){var ce=T.diagrams;if(L&&ce.indexOf(L)===-1)throw new Error(t("diagram not part of bpmn:Definitions"));if(!L&&ce&&ce.length&&(L=ce[0]),!L)throw new Error(t("no diagram to display"));r={},k(L);var ke=L.plane;if(!ke)throw new Error(t("no plane for {element}",{element:Ee(L)}));var de=ke.bpmnElement;if(!de)if(de=_m(T),de)p(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Ee(ke),rootElement:Ee(de)})),ke.bpmnElement=de,y(ke);else throw new Error(t("no process or collaboration to display"));var f=m(de,ke);if(xe(de,"bpmn:Process")||xe(de,"bpmn:SubProcess"))z(de,f);else if(xe(de,"bpmn:Collaboration"))ft(de,f),j(T.rootElements,f);else throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:Ee(ke),rootElement:Ee(de)}));F(n)};var F=this.handleDeferred=function(){for(var T;n.length;)T=n.shift(),T()};function z(N,T){lt(N,T),B(N.ioSpecification,T),V(N.artifacts,T),a(N)}function j(N,T){var L=li(N,function(ce){return!l(ce)&&xe(ce,"bpmn:Process")&&ce.laneSets});L.forEach(o(z,T))}function I(N,T){u(N,T)}function b(N,T){R(N,o(I,T))}function x(N,T){u(N,T)}function S(N,T){u(N,T)}function D(N,T){u(N,T)}function w(N,T){u(N,T)}function V(N,T){R(N,function(L){xe(L,"bpmn:Association")?n.push(function(){w(L,T)}):w(L,T)})}function B(N,T){!N||(R(N.dataInputs,o(S,T)),R(N.dataOutputs,o(D,T)))}var O=this.handleSubProcess=function(T,L){lt(T,L),V(T.artifacts,L)};function M(N,T){var L=u(N,T);xe(N,"bpmn:SubProcess")&&O(N,L||T),xe(N,"bpmn:Activity")&&B(N.ioSpecification,T),n.push(function(){R(N.dataInputAssociations,o(x,T)),R(N.dataOutputAssociations,o(x,T))})}function G(N,T){u(N,T)}function K(N,T){u(N,T)}function it(N,T){n.push(function(){var L=u(N,T);N.childLaneSet&&ie(N.childLaneSet,L||T),gt(N)})}function ie(N,T){R(N.lanes,o(it,T))}function X(N,T){R(N,o(ie,T))}function lt(N,T){ct(N.flowElements,T),N.laneSets&&X(N.laneSets,T)}function ct(N,T){R(N,function(L){xe(L,"bpmn:SequenceFlow")?n.push(function(){G(L,T)}):xe(L,"bpmn:BoundaryEvent")?n.unshift(function(){M(L,T)}):xe(L,"bpmn:FlowNode")?M(L,T):xe(L,"bpmn:DataObject")||(xe(L,"bpmn:DataStoreReference")||xe(L,"bpmn:DataObjectReference")?K(L,T):p(t("unrecognized flowElement {element} in context {context}",{element:Ee(L),context:T?Ee(T.businessObject):"null"}),{element:L,context:T}))})}function ge(N,T){var L=u(N,T),ce=N.processRef;ce&&z(ce,L||T)}function ft(N,T){R(N.participants,o(ge,T)),V(N.artifacts,T),n.push(function(){b(N.messageFlows,T)})}function gt(N){R(N.flowNodeRef,function(T){var L=T.get("lanes");L&&L.push(N)})}}function Jm(e,t,i){var n,r,o,a,l,c=[];function m(u,p){var y={root:function(F,z){return n.add(F,z)},element:function(F,z,j){return n.add(F,z,j)},error:function(F,z){c.push({message:F,context:z})}},k=new qm(y,o);p=p||u.diagrams&&u.diagrams[0];var C=zm(u,p);if(!C)throw new Error(o("no diagram to display"));R(C,function(F){k.handleDefinitions(u,F)});var v=p.plane.bpmnElement.id;a.setRootElement(a.findRoot(v+"_plane")||a.findRoot(v))}return new Promise(function(u,p){try{return n=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),a=e.get("canvas"),r.fire("import.render.start",{definitions:t}),m(t,i),r.fire("import.render.complete",{error:l,warnings:c}),u({warnings:c})}catch(y){return y.warnings=c,p(y)}})}function zm(e,t){if(!!t){var i=t.plane.bpmnElement,n=i;!U(i,"bpmn:Process")&&!U(i,"bpmn:Collaboration")&&(n=Km(i));var r;U(n,"bpmn:Collaboration")?r=n:r=$e(e.rootElements,function(m){if(!!U(m,"bpmn:Collaboration"))return $e(m.participants,function(u){return u.processRef===n})});var o=[n];r&&(o=Ed(r.participants,function(m){return m.processRef}),o.push(r));var a=ba(o),l=[t],c=[i];return R(e.diagrams,function(m){var u=m.plane.bpmnElement;a.indexOf(u)!==-1&&c.indexOf(u)===-1&&(l.push(m),c.push(u))}),l}}function ba(e){var t=[];return R(e,function(i){!i||(t.push(i),t=t.concat(ba(i.flowElements)))}),t}function Km(e){for(var t=e;t;){if(U(t,"bpmn:Process"))return t;t=t.$parent}}var Hm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',Ea=Hm,Ca={verticalAlign:"middle"},wa={color:"#404040"},Wm={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Ym={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Xm={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Zm='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+Ea+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',at;function $m(){at=Qe(Zm),be(at,Wm),be(et("svg",at),Ca),be(et(".backdrop",at),Ym),be(et(".notice",at),Xm),be(et(".link",at),wa,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function ef(){at||($m(),di.bind(at,".backdrop","click",function(e){document.body.removeChild(at)})),document.body.appendChild(at)}function ue(e){e=q({},sf,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),rf(this._container),this._init(this._container,this._moddle,e)}rt(ue,gi),ue.prototype.importXML=async function(t,i){const n=this;function r(a){return n.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(y){throw this._emit("import.parse.complete",{error:y}),y}let l=a.rootElement;const c=a.references,m=a.warnings,u=a.elementsById;o=o.concat(m),l=this._emit("import.parse.complete",r({error:null,definitions:l,elementsById:u,references:c,warnings:o}))||l;const p=await this.importDefinitions(l,i);return o=o.concat(p.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let l=a;throw o=o.concat(l.warnings||[]),Is(l,o),l=tf(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}},ue.prototype.importDefinitions=async function(t,i){return this._setDefinitions(t),{warnings:(await this.open(i)).warnings}},ue.prototype.open=async function(t){const i=this._definitions;let n=t;if(!i){const o=new Error("no XML imported");throw Is(o,[]),o}if(typeof t=="string"&&(n=nf(i,t),!n)){const o=new Error("BPMNDiagram <"+t+"> not found");throw Is(o,[]),o}try{this.clear()}catch(o){throw Is(o,[]),o}const{warnings:r}=await Jm(this,i,n);return{warnings:r}},ue.prototype.saveXML=async function(t){t=t||{};let i=this._definitions,n,r;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,r=(await this._moddle.toXML(i,t)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(a){n=a}const o=n?{error:n}:{xml:r};if(this._emit("saveXML.done",o),n)throw n;return o},ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,i;try{const n=this.get("canvas"),r=n.getActiveLayer(),o=et("defs",n._svg),a=lo(r),l=o?"<defs>"+lo(o)+"</defs>":"",c=r.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
8
+ nested error: `+x.message;if(D)return a.addWarning({message:M,error:x}),!0;throw Mt(M)}function u(x,S){return m(x,S,!0)}function p(){var x=a.elementsById,S=a.references,D,w;for(D=0;w=S[D];D++){var V=w.element,B=x[w.id],O=mt(V).propertiesByName[w.property];if(B||a.addWarning({message:"unresolved reference <"+w.id+">",element:w.element,property:w.property,value:w.id}),O.isMany){var M=V.get(O.name),_=M.indexOf(w);_===-1&&(_=M.length),B?M[_]=B:M.splice(_,1)}else V.set(O.name,B)}}function y(){c.pop().handleEnd()}var k=/^<\?xml /i,C=/ encoding="([^"]+)"/i,v=/^utf-8$/i;function F(x){if(!!k.test(x)){var S=C.exec(x),D=S&&S[1];!D||v.test(D)||a.addWarning({message:"unsupported document encoding <"+D+">, falling back to UTF-8"})}}function z(x,S){var D=c.peek();try{c.push(D.handleNode(x))}catch(w){m(w,S,o)&&c.push(new Dn)}}function j(x,S){try{c.peek().handleText(x)}catch(D){u(D,S)}}function I(x,S){!x.trim()||j(x,S)}var E=r.getPackages().reduce(function(x,S){return x[S.uri]=S.prefix,x},{"http://www.w3.org/XML/1998/namespace":"xml"});return l.ns(E).on("openTag",function(x,S,D,w){var V=x.attrs||{},B=Object.keys(V).reduce(function(M,_){var K=S(V[_]);return M[_]=K,M},{}),O={name:x.name,originalName:x.originalName,attributes:B,ns:x.ns};z(O,w)}).on("question",F).on("closeTag",y).on("cdata",j).on("text",function(x,S,D){I(S(x),D)}).on("error",m).on("warn",u),new Promise(function(x,S){var D;try{l.parse(e),p()}catch(M){D=M}var w=n.element;!D&&!w&&(D=Mt("failed to parse document as <"+n.type.$descriptor.name+">"));var V=a.warnings,B=a.references,O=a.elementsById;return D?(D.warnings=V,S(D)):x({rootElement:w,elementsById:O,references:B,warnings:V})})},Vn.prototype.handler=function(e){return new Mn(this.model,e)};function Mu(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var Vu=`<?xml version="1.0" encoding="UTF-8"?>
9
+ `,Ou=/<|>|'|"|&|\n\r|\n/g,ga=/<|>|&/g;function Ru(e){var t={},i={},n={},r=[],o=[];this.byUri=function(a){return i[a]||e&&e.byUri(a)},this.add=function(a,l){i[a.uri]=a,l?r.push(a):o.push(a),this.mapPrefix(a.prefix,a.uri)},this.uriByPrefix=function(a){return t[a||"xmlns"]},this.mapPrefix=function(a,l){t[a||"xmlns"]=l},this.getNSKey=function(a){return a.prefix!==void 0?a.uri+"|"+a.prefix:a.uri},this.logUsed=function(a){var l=a.uri,c=this.getNSKey(a);n[c]=this.byUri(l),e&&e.logUsed(a)},this.getUsed=function(a){function l(u){var p=c.getNSKey(u);return n[p]}var c=this,m=[].concat(r,o);return m.filter(l)}}function Lu(e){return e.charAt(0).toLowerCase()+e.slice(1)}function vu(e,t){return ha(t)?Lu(e):e}function ya(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Aa(e){return Ze(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function Fu(e){return e.getUsed().filter(function(t){return t.prefix!=="xml"}).map(function(t){var i="xmlns"+(t.prefix?":"+t.prefix:"");return{name:i,value:t.uri}})}function ju(e,t){return t.isGeneric?q({localName:t.ns.localName},e):q({localName:vu(t.ns.localName,t.$pkg)},e)}function Qu(e,t){return q({localName:t.ns.localName},e)}function Uu(e){var t=e.$descriptor;return li(t.properties,function(i){var n=i.name;if(i.isVirtual||!ai(e,n))return!1;var r=e[n];return r===i.default||r===null?!1:i.isMany?r.length:!0})}var _u={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},Gu={"<":"lt",">":"gt","&":"amp"};function ka(e,t,i){return e=Ze(e)?e:""+e,e.replace(t,function(n){return"&"+i[n]+";"})}function qu(e){return ka(e,Ou,_u)}function Ju(e){return ka(e,ga,Gu)}function zu(e){return li(e,function(t){return t.isAttr})}function Ku(e){return li(e,function(t){return!t.isAttr})}function On(e){this.tagName=e}On.prototype.build=function(e){return this.element=e,this},On.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function Zt(){}Zt.prototype.serializeValue=Zt.prototype.serializeTo=function(e){e.append(this.escape?Ju(this.value):this.value)},Zt.prototype.build=function(e,t){return this.value=t,e.type==="String"&&t.search(ga)!==-1&&(this.escape=!0),this};function Rn(e){this.tagName=e}ya(Rn,Zt),Rn.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function le(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}le.prototype.build=function(e){this.element=e;var t=e.$descriptor,i=this.propertyDescriptor,n,r,o=t.isGeneric;return o?n=this.parseGeneric(e):n=this.parseNsAttributes(e),i?this.ns=this.nsPropertyTagName(i):this.ns=this.nsTagName(t),this.tagName=this.addTagName(this.ns),o||(r=Uu(e),this.parseAttributes(zu(r)),this.parseContainments(Ku(r))),this.parseGenericAttributes(e,n),this},le.prototype.nsTagName=function(e){var t=this.logNamespaceUsed(e.ns);return ju(t,e)},le.prototype.nsPropertyTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Qu(t,e)},le.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},le.prototype.nsAttributeName=function(e){var t;if(Ze(e)?t=we(e):t=e.ns,e.inherited)return{localName:t.localName};var i=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(i),this.isLocalNs(i)?{localName:t.localName}:q({localName:t.localName},i)},le.prototype.parseGeneric=function(e){var t=this,i=this.body,n=[];return R(e,function(r,o){var a;o==="$body"?i.push(new Zt().build({type:"String"},r)):o==="$children"?R(r,function(l){i.push(new le(t).build(l))}):o.indexOf("$")!==0&&(a=t.parseNsAttribute(e,o,r),a&&n.push({name:o,value:r}))}),n},le.prototype.parseNsAttribute=function(e,t,i){var n=e.$model,r=we(t),o;if(r.prefix==="xmlns"&&(o={prefix:r.localName,uri:i}),!r.prefix&&r.localName==="xmlns"&&(o={uri:i}),!o)return{name:t,value:i};if(n&&n.getPackage(i))this.logNamespace(o,!0,!0);else{var a=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(a)}},le.prototype.parseNsAttributes=function(e,t){var i=this,n=e.$attrs,r=[];return R(n,function(o,a){var l=i.parseNsAttribute(e,a,o);l&&r.push(l)}),r},le.prototype.parseGenericAttributes=function(e,t){var i=this;R(t,function(n){if(n.name!==Cs)try{i.addAttribute(i.nsAttributeName(n.name),n.value)}catch(r){n.name,n.value}})},le.prototype.parseContainments=function(e){var t=this,i=this.body,n=this.element;R(e,function(r){var o=n.get(r.name),a=r.isReference,l=r.isMany;if(l||(o=[o]),r.isBody)i.push(new Zt().build(r,o[0]));else if(sa(r.type))R(o,function(u){i.push(new Rn(t.addTagName(t.nsPropertyTagName(r))).build(r,u))});else if(a)R(o,function(u){i.push(new On(t.addTagName(t.nsPropertyTagName(r))).build(u))});else{var c=ma(r),m=Bu(r);R(o,function(u){var p;c?p=new Ns(t,r):m?p=new le(t,r):p=new le(t),i.push(p.build(u))})}})},le.prototype.getNamespaces=function(e){var t=this.namespaces,i=this.parent,n;return t||(n=i&&i.getNamespaces(),e||!n?this.namespaces=t=new Ru(n):t=n),t},le.prototype.logNamespace=function(e,t,i){var n=this.getNamespaces(i),r=e.uri,o=e.prefix,a=n.byUri(r);return(!a||i)&&n.add(e,t),n.mapPrefix(o,r),e},le.prototype.logNamespaceUsed=function(e,t){var i=this.element,n=i.$model,r=this.getNamespaces(t),o=e.prefix,a=e.uri,l,c,m;if(!o&&!a)return{localName:e.localName};if(m=Iu[o]||n&&(n.getPackage(o)||{}).uri,a=a||m||r.uriByPrefix(o),!a)throw new Error("no namespace uri given for prefix <"+o+">");if(e=r.byUri(a),!e){for(l=o,c=1;r.uriByPrefix(l);)l=o+"_"+c++;e=this.logNamespace({prefix:l,uri:a},m===a)}return o&&r.mapPrefix(o,a),e},le.prototype.parseAttributes=function(e){var t=this,i=this.element;R(e,function(n){var r=i.get(n.name);if(n.isReference)if(!n.isMany)r=r.id;else{var o=[];R(r,function(a){o.push(a.id)}),r=o.join(" ")}t.addAttribute(t.nsAttributeName(n),r)})},le.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Aa(e)},le.prototype.addAttribute=function(e,t){var i=this.attrs;Ze(t)&&(t=qu(t));var n=Ed(i,function(o){return o.name.localName===e.localName&&o.name.uri===e.uri&&o.name.prefix===e.prefix}),r={name:e,value:t};n!==-1?i.splice(n,1,r):i.push(r)},le.prototype.serializeAttributes=function(e){var t=this.attrs,i=this.namespaces;i&&(t=Fu(i).concat(t)),R(t,function(n){e.append(" ").append(Aa(n.name)).append('="').append(n.value).append('"')})},le.prototype.serializeTo=function(e){var t=this.body[0],i=t&&t.constructor!==Zt;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(i&&e.appendNewLine().indent(),R(this.body,function(n){n.serializeTo(e)}),i&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()};function Ns(e,t){le.call(this,e,t)}ya(Ns,le),Ns.prototype.parseNsAttributes=function(e){var t=le.prototype.parseNsAttributes.call(this,e),i=e.$descriptor;if(i.name===this.propertyDescriptor.type)return t;var n=this.typeNs=this.nsTagName(i);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(n.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(Cs),(n.prefix?n.prefix+":":"")+o+i.ns.localName),t},Ns.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Hu(){this.value="",this.write=function(e){this.value+=e}}function Wu(e,t){var i=[""];this.append=function(n){return e.write(n),this},this.appendNewLine=function(){return t&&e.write(`
10
+ `),this},this.appendIndent=function(){return t&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function Yu(e){e=q({format:!1,preamble:!0},e||{});function t(i,n){var r=n||new Hu,o=new Wu(r,e.format);if(e.preamble&&o.append(Vu),new le().build(i).serializeTo(o),!n)return r.value}return{toXML:t}}function Ts(e,t){Ke.call(this,e,t)}Ts.prototype=Object.create(Ke.prototype),Ts.prototype.fromXML=function(e,t,i){Ze(t)||(i=t,t="bpmn:Definitions");var n=new Vn(q({model:this,lax:!0},i)),r=n.handler(t);return n.fromXML(e,r)},Ts.prototype.toXML=function(e,t){var i=new Yu(t);return new Promise(function(n,r){try{var o=i.toXML(e);return n({xml:o})}catch(a){return r(a)}})};var Xu="BPMN20",Zu="http://www.omg.org/spec/BPMN/20100524/MODEL",$u="bpmn",em=[],tm=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],im=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],sm={tagAlias:"lowerCase",typePrefix:"t"},nm={name:Xu,uri:Zu,prefix:$u,associations:em,types:tm,enumerations:im,xml:sm},rm="BPMNDI",om="http://www.omg.org/spec/BPMN/20100524/DI",am="bpmndi",lm=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],cm=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],dm=[],pm={name:rm,uri:om,prefix:am,types:lm,enumerations:cm,associations:dm},hm="DC",um="http://www.omg.org/spec/DD/20100524/DC",mm="dc",fm=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],gm=[],ym={name:hm,uri:um,prefix:mm,types:fm,associations:gm},Am="DI",km="http://www.omg.org/spec/DD/20100524/DI",Em="di",bm=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Cm=[],wm={tagAlias:"lowerCase"},Nm={name:Am,uri:km,prefix:Em,types:bm,associations:Cm,xml:wm},Tm="bpmn.io colors for BPMN",Im="http://bpmn.io/schema/bpmn/biocolor/1.0",Bm="bioc",xm=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],Sm=[],Dm=[],Pm={name:Tm,uri:Im,prefix:Bm,types:xm,enumerations:Sm,associations:Dm},Mm="BPMN in Color",Vm="http://www.omg.org/spec/BPMN/non-normative/color/1.0",Om="color",Rm=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],Lm=[],vm=[],Fm={name:Mm,uri:Vm,prefix:Om,types:Rm,enumerations:Lm,associations:vm},jm={bpmn:nm,bpmndi:pm,dc:ym,di:Nm,bioc:Pm,color:Fm};function Qm(e,t){var i=q({},jm,e);return new Ts(i,t)}var Um="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function _m(e){ai(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Um)}})}function xe(e,t){return e.$instanceOf(t)}function Gm(e){return $e(e.rootElements,function(t){return xe(t,"bpmn:Process")||xe(t,"bpmn:Collaboration")})}function qm(e,t){var i={},n=[],r={};function o(N,T){return function(L){N(L,T)}}function a(N){i[N.id]=N}function l(N){return i[N.id]}function c(N,T){var L=N.gfx;if(L)throw new Error(t("already rendered {element}",{element:be(N)}));return e.element(N,r[N.id],T)}function m(N,T){return e.root(N,r[N.id],T)}function u(N,T){try{var L=r[N.id]&&c(N,T);return a(N),L}catch(ce){p(ce.message,{element:N,error:ce}),console.error(t("failed to import {element}",{element:be(N)})),console.error(ce)}}function p(N,T){e.error(N,T)}var y=this.registerDi=function(T){var L=T.bpmnElement;L?r[L.id]?p(t("multiple DI elements defined for {element}",{element:be(L)}),{element:L}):(r[L.id]=T,_m(L)):p(t("no bpmnElement referenced in {element}",{element:be(T)}),{element:T})};function k(N){C(N.plane)}function C(N){y(N),R(N.planeElement,v)}function v(N){y(N)}this.handleDefinitions=function(T,L){var ce=T.diagrams;if(L&&ce.indexOf(L)===-1)throw new Error(t("diagram not part of bpmn:Definitions"));if(!L&&ce&&ce.length&&(L=ce[0]),!L)throw new Error(t("no diagram to display"));r={},k(L);var ke=L.plane;if(!ke)throw new Error(t("no plane for {element}",{element:be(L)}));var de=ke.bpmnElement;if(!de)if(de=Gm(T),de)p(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:be(ke),rootElement:be(de)})),ke.bpmnElement=de,y(ke);else throw new Error(t("no process or collaboration to display"));var f=m(de,ke);if(xe(de,"bpmn:Process")||xe(de,"bpmn:SubProcess"))z(de,f);else if(xe(de,"bpmn:Collaboration"))ft(de,f),j(T.rootElements,f);else throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:be(ke),rootElement:be(de)}));F(n)};var F=this.handleDeferred=function(){for(var T;n.length;)T=n.shift(),T()};function z(N,T){lt(N,T),B(N.ioSpecification,T),V(N.artifacts,T),a(N)}function j(N,T){var L=li(N,function(ce){return!l(ce)&&xe(ce,"bpmn:Process")&&ce.laneSets});L.forEach(o(z,T))}function I(N,T){u(N,T)}function E(N,T){R(N,o(I,T))}function x(N,T){u(N,T)}function S(N,T){u(N,T)}function D(N,T){u(N,T)}function w(N,T){u(N,T)}function V(N,T){R(N,function(L){xe(L,"bpmn:Association")?n.push(function(){w(L,T)}):w(L,T)})}function B(N,T){!N||(R(N.dataInputs,o(S,T)),R(N.dataOutputs,o(D,T)))}var O=this.handleSubProcess=function(T,L){lt(T,L),V(T.artifacts,L)};function M(N,T){var L=u(N,T);xe(N,"bpmn:SubProcess")&&O(N,L||T),xe(N,"bpmn:Activity")&&B(N.ioSpecification,T),n.push(function(){R(N.dataInputAssociations,o(x,T)),R(N.dataOutputAssociations,o(x,T))})}function _(N,T){u(N,T)}function K(N,T){u(N,T)}function it(N,T){n.push(function(){var L=u(N,T);N.childLaneSet&&ie(N.childLaneSet,L||T),gt(N)})}function ie(N,T){R(N.lanes,o(it,T))}function X(N,T){R(N,o(ie,T))}function lt(N,T){ct(N.flowElements,T),N.laneSets&&X(N.laneSets,T)}function ct(N,T){R(N,function(L){xe(L,"bpmn:SequenceFlow")?n.push(function(){_(L,T)}):xe(L,"bpmn:BoundaryEvent")?n.unshift(function(){M(L,T)}):xe(L,"bpmn:FlowNode")?M(L,T):xe(L,"bpmn:DataObject")||(xe(L,"bpmn:DataStoreReference")||xe(L,"bpmn:DataObjectReference")?K(L,T):p(t("unrecognized flowElement {element} in context {context}",{element:be(L),context:T?be(T.businessObject):"null"}),{element:L,context:T}))})}function ge(N,T){var L=u(N,T),ce=N.processRef;ce&&z(ce,L||T)}function ft(N,T){R(N.participants,o(ge,T)),V(N.artifacts,T),n.push(function(){E(N.messageFlows,T)})}function gt(N){R(N.flowNodeRef,function(T){var L=T.get("lanes");L&&L.push(N)})}}function Jm(e,t,i){var n,r,o,a,l,c=[];function m(u,p){var y={root:function(F,z){return n.add(F,z)},element:function(F,z,j){return n.add(F,z,j)},error:function(F,z){c.push({message:F,context:z})}},k=new qm(y,o);p=p||u.diagrams&&u.diagrams[0];var C=zm(u,p);if(!C)throw new Error(o("no diagram to display"));R(C,function(F){k.handleDefinitions(u,F)});var v=p.plane.bpmnElement.id;a.setRootElement(a.findRoot(v+"_plane")||a.findRoot(v))}return new Promise(function(u,p){try{return n=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),a=e.get("canvas"),r.fire("import.render.start",{definitions:t}),m(t,i),r.fire("import.render.complete",{error:l,warnings:c}),u({warnings:c})}catch(y){return y.warnings=c,p(y)}})}function zm(e,t){if(!!t){var i=t.plane.bpmnElement,n=i;!U(i,"bpmn:Process")&&!U(i,"bpmn:Collaboration")&&(n=Km(i));var r;U(n,"bpmn:Collaboration")?r=n:r=$e(e.rootElements,function(m){if(!!U(m,"bpmn:Collaboration"))return $e(m.participants,function(u){return u.processRef===n})});var o=[n];r&&(o=bd(r.participants,function(m){return m.processRef}),o.push(r));var a=Ea(o),l=[t],c=[i];return R(e.diagrams,function(m){var u=m.plane.bpmnElement;a.indexOf(u)!==-1&&c.indexOf(u)===-1&&(l.push(m),c.push(u))}),l}}function Ea(e){var t=[];return R(e,function(i){!i||(t.push(i),t=t.concat(Ea(i.flowElements)))}),t}function Km(e){for(var t=e;t;){if(U(t,"bpmn:Process"))return t;t=t.$parent}}var Hm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',ba=Hm,Ca={verticalAlign:"middle"},wa={color:"#404040"},Wm={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Ym={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Xm={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Zm='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+ba+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',at;function $m(){at=Qe(Zm),Ee(at,Wm),Ee(et("svg",at),Ca),Ee(et(".backdrop",at),Ym),Ee(et(".notice",at),Xm),Ee(et(".link",at),wa,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function ef(){at||($m(),di.bind(at,".backdrop","click",function(e){document.body.removeChild(at)})),document.body.appendChild(at)}function ue(e){e=q({},sf,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),rf(this._container),this._init(this._container,this._moddle,e)}rt(ue,gi),ue.prototype.importXML=async function(t,i){const n=this;function r(a){return n.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(y){throw this._emit("import.parse.complete",{error:y}),y}let l=a.rootElement;const c=a.references,m=a.warnings,u=a.elementsById;o=o.concat(m),l=this._emit("import.parse.complete",r({error:null,definitions:l,elementsById:u,references:c,warnings:o}))||l;const p=await this.importDefinitions(l,i);return o=o.concat(p.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let l=a;throw o=o.concat(l.warnings||[]),Is(l,o),l=tf(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}},ue.prototype.importDefinitions=async function(t,i){return this._setDefinitions(t),{warnings:(await this.open(i)).warnings}},ue.prototype.open=async function(t){const i=this._definitions;let n=t;if(!i){const o=new Error("no XML imported");throw Is(o,[]),o}if(typeof t=="string"&&(n=nf(i,t),!n)){const o=new Error("BPMNDiagram <"+t+"> not found");throw Is(o,[]),o}try{this.clear()}catch(o){throw Is(o,[]),o}const{warnings:r}=await Jm(this,i,n);return{warnings:r}},ue.prototype.saveXML=async function(t){t=t||{};let i=this._definitions,n,r;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,r=(await this._moddle.toXML(i,t)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(a){n=a}const o=n?{error:n}:{xml:r};if(this._emit("saveXML.done",o),n)throw n;return o},ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,i;try{const n=this.get("canvas"),r=n.getActiveLayer(),o=et("defs",n._svg),a=lo(r),l=o?"<defs>"+lo(o)+"</defs>":"",c=r.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
11
11
  <!-- created with bpmn-js / http://bpmn.io -->
12
12
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
13
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(n){i=n}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||gi.prototype.clear.call(this)},ue.prototype.destroy=function(){gi.prototype.destroy.call(this),pi(this._container)},ue.prototype.on=function(e,t,i,n){return this.get("eventBus").on(e,t,i,n)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=et(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const n=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,n,r),l=q(Bd(i,["additionalModules"]),{canvas:q({},i.canvas,{container:e}),modules:a});gi.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Qe('<div class="bjs-container"></div>');return be(t,{width:Na(e.width),height:Na(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=q({},this._moddleExtensions,e.moddleExtensions);return new Qm(t)},ue.prototype._modules=[];function Is(e,t){return e.warnings=t,e}function tf(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const sf={width:"100%",height:"100%",position:"relative"};function Na(e){return e+(Nt(e)?"px":"")}function nf(e,t){return t&&$e(e.diagrams,function(i){return i.id===t})||null}function rf(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Ea+"</a>",n=Qe(i);be(et("svg",n),Ca),be(n,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(n),Jt.bind(n,"click",function(r){ef(),r.preventDefault()})}function bi(e){ue.call(this,e)}rt(bi,ue),bi.prototype._modules=[lh,Eo,bh,Oo,jh],bi.prototype._moddleExtensions={};var of=/^djs-cursor-.*$/;function Ta(e){var t=qt(document.body);t.removeMatching(of),e&&t.add("djs-cursor-"+e)}function af(){Ta(null)}var lf=5e3;function cf(e,t){t=t||"element.click";function i(){return!1}return e.once(t,lf,i),function(){e.off(t,i)}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ba(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}var df=15;function xa(e,t){var i;function n(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,n):e.off("element.mousedown",n)});function r(l){var c=i.start,m=i.button,u=Ba(l),p=Ia(u,c);if(!i.dragging&&pf(p)>df&&(i.dragging=!0,m===0&&cf(e),Ta("grab")),i.dragging){var y=i.last||i.start;p=Ia(u,y),t.scroll({dx:p.x,dy:p.y}),i.last=u}l.preventDefault()}function o(l){Jt.unbind(document,"mousemove",r),Jt.unbind(document,"mouseup",o),i=null,af()}function a(l){if(!mo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Ba(l)},Jt.bind(document,"mousemove",r),Jt.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!i}}xa.$inject=["eventBus","canvas"];function pf(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Ln={__init__:["moveCanvas"],moveCanvas:["type",xa]};function Sa(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Sa.prototype.next=function(){return this._prefix+ ++this._counter};var hf=new Sa("tt");function uf(e){var t=Qe('<div class="djs-tooltip-container" />');return be(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function mf(e,t,i){be(e,{left:t+"px",top:i+"px"})}function vn(e,t){e.style.display=t===!1?"none":""}var Da="djs-tooltip",Fn="."+Da;function Se(e,t){this._eventBus=e,this._canvas=t,this._ids=hf,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=uf(t.getContainer());var i=this;di.bind(this._tooltipRoot,Fn,"mousedown",function(n){n.stopPropagation()}),di.bind(this._tooltipRoot,Fn,"mouseover",function(n){i.trigger("mouseover",n)}),di.bind(this._tooltipRoot,Fn,"mouseout",function(n){i.trigger("mouseout",n)}),this._init()}Se.$inject=["eventBus","canvas"],Se.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Se.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,n=this.get(ho(i,"data-tooltip-id"));!n||(e==="mouseover"&&n.timeout&&this.clearTimeout(n),e==="mouseout"&&n.timeout&&(n.timeout=1e3,this.setTimeout(n)))},Se.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Se.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Se.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},Se.prototype.remove=function(e){var t=this.get(e);t&&(pi(t.html),pi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Se.prototype.show=function(){vn(this._tooltipRoot)},Se.prototype.hide=function(){vn(this._tooltipRoot,!1)},Se.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,n="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=n,this._tooltipRoot.style["-ms-transform"]=n},Se.prototype._addTooltip=function(e){var t=e.id,i=e.html,n,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Ze(i)&&(i=Qe(i)),n=Qe('<div data-tooltip-id="'+t+'" class="'+Da+'">'),be(n,{position:"absolute"}),n.appendChild(i),e.type&&qt(n).add("djs-tooltip-"+e.type),e.className&&qt(n).add(e.className),e.htmlContainer=n,r.appendChild(n),this._tooltips[t]=e,this._updateTooltip(e)},Se.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;mf(i,t.x,t.y)},Se.prototype._updateTooltipVisibilty=function(e){R(this._tooltips,function(t){var i=t.show,n=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),vn(n,r))})},Se.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const jn={__init__:["tooltips"],tooltips:["type",Se]},ff=e=>{var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[t.call(e)]},Qn=e=>{var t=ff(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var n=0,r=e.length;n<r;n++)i.push(Qn(e[n]));else if(t==="object")for(var o in e)i[o]=Qn(e[o]);return i};function gf(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),n=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),m=i.getDay(),p={YYYY:n,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][m]};for(let y in p)t=t.replace(y,p[y]);return t}function yf(e){e=Qn(e);const t={};e.forEach(n=>{t[n.historyActivityId]?t[n.historyActivityId].push(n):t[n.historyActivityId]=[n]});for(let n in t){const r=t[n];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==n);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(n=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=n;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:n.historyActivityId,class:!a&&n.historyActivityType!="candidate"?"nodePrimary":""};let m="";if(r||l&&l.length>0){if(m=`<span title='${r}'>${r}</span><br>`,o){let p=(o||"").replaceAll("/","-");m+=`<span title='${o}'>${p}</span><br>`}if(l&&l.length>0){let p,{type:y,fullMessage:k}=l.find(C=>C.action=="AddComment")||{};y=="assigneeComment"&&(p="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+k,c.class="nodeWarn"),y=="dispatchComment"&&(p="\u8C03\u5EA6\uFF1A"+k,c.class="nodeWarn"),y=="transferComment"&&(p="\u8F6C\u529E\uFF1A"+k,c.class="nodeWarn"),y=="delegateComment"&&(p="\u59D4\u6258\uFF1A"+k,c.class="nodeWarn"),y=="rollbackComment"&&(p="\u6307\u5B9A\u56DE\u9000\uFF1A"+k,c.class="nodeError"),y=="terminateComment"&&(p="\u7EC8\u6B62\uFF1A"+k,c.class="nodeError"),(y=="addMultiInstanceComment"||(y||"").includes("\u52A0\u7B7E"))&&(p="\u52A0\u7B7E\uFF1A"+k,c.class="nodeWarn"),y=="deleteMultiInstanceComment"&&(p="\u51CF\u7B7E\uFF1A"+k,c.class="nodeError"),y=="withdrawComment"&&(p="\u64A4\u9500\uFF1A"+k,c.class="nodeWarn"),y=="deleteProcessComment"&&(p="\u5220\u9664\u6D41\u7A0B\uFF1A"+k,c.class="nodeError"),y=="cancelProcessComment"&&(p="\u62D2\u7EDD\uFF1A"+k,c.class="nodeError"),y=="comment"&&(p="\u5BA1\u6279\uFF1A"+k,c.class="nodeSuccess"),p&&(m+=`<span title='${p}'>${p}</span>`)}c.tooltip=m}n.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&n.historyActivityType!="candidate"&&(c.class="nodeSuccess");const u=i.findIndex(p=>p.id==n.historyActivityId);u!=-1?i.splice(u,1,c):i.push(c)}),i}function Pa(e){const t=[],i=[],n=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&n.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(n)]}}function Ma(e){const t=[];return e.forEach(i=>{let{assigneeName:n,createTime:r,endTime:o,comments:a}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(r=r.replace(/-/g,"/"),o=o.replace(/-/g,"/"));const l={id:i.historyActivityId,class:!o&&i.historyActivityType!="candidate"?"nodePrimary":""};let c="";if(n||a&&a.length>0){if(c=`<span title='${n}'>${n}</span><br>`,r&&(c+=`<span title='${r}'>${gf(r,"YYYY-MM-DD HH:mm")}</span><br>`),a&&a.length>0){let u,{type:p,fullMessage:y}=a.find(k=>k.action=="AddComment")||{};p=="assigneeComment"&&(u="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+y,l.class="nodeWarn"),p=="dispatchComment"&&(u="\u8C03\u5EA6\uFF1A"+y,l.class="nodeWarn"),p=="transferComment"&&(u="\u8F6C\u529E\uFF1A"+y,l.class="nodeWarn"),p=="delegateComment"&&(u="\u59D4\u6258\uFF1A"+y,l.class="nodeWarn"),p=="rollbackComment"&&(u="\u6307\u5B9A\u56DE\u9000\uFF1A"+y,l.class="nodeError"),p=="terminateComment"&&(u="\u7EC8\u6B62\uFF1A"+y,l.class="nodeError"),(p=="addMultiInstanceComment"||(p||"").includes("\u52A0\u7B7E"))&&(u="\u52A0\u7B7E\uFF1A"+y,l.class="nodeWarn"),p=="deleteMultiInstanceComment"&&(u="\u51CF\u7B7E\uFF1A"+y,l.class="nodeError"),p=="withdrawComment"&&(u="\u64A4\u9500\uFF1A"+y,l.class="nodeWarn"),p=="deleteProcessComment"&&(u="\u5220\u9664\u6D41\u7A0B\uFF1A"+y,l.class="nodeError"),p=="cancelProcessComment"&&(u="\u62D2\u7EDD\uFF1A"+y,l.class="nodeError"),p=="comment"&&(u="\u5BA1\u6279\uFF1A"+y,l.class="nodeSuccess"),u&&(c+=`<span title='${u}'>${u}</span>`)}l.tooltip=c}i.historyActivityType=="sequenceFlow"?l.class="lineWarn":!l.class&&i.historyActivityType!="candidate"&&(l.class="nodeSuccess");const m=t.findIndex(u=>u.id==i.historyActivityId);m!=-1?t.splice(m,1,l):t.push({...i,...l})}),t}const Af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTuUAStZ2NQBbcBbKAHh4pkBCumQmk0ZvdCmTW+9/TBLKAHh4pkBCumQmk0ZvdCmTW2xtkwbs5UiCNXrj1BgnhFmYCWUAXyAJ6eKRAQrhmJpBGb3YrkFlv3yAL3s2RA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AgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",bf=Ye({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return Af},loading(){return kf},success(){return Un}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),XE="",Ef={key:0},Cf={key:0,class:"top-tipss-text"},wf={class:"top-tipss-status"},Nf={key:0,class:"top-tipss-loadinig"},Tf=["src"],If={key:0,class:"top-tipss-status-text"},Bf={key:1,class:"top-tipss-success"},xf=["src"],Sf={key:0,class:"top-tipss-status-text"},Df={key:2,class:"top-tipss-error"},Pf=["src"],Mf={key:0,class:"top-tipss-status-text"};function Vf(e,t,i,n,r,o){return e.show?(s.openBlock(),s.createElementBlock("div",Ef,[e.statusTips?(s.openBlock(),s.createElementBlock("div",{key:1,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[s.createElementVNode("div",wf,[e.type=="loading"?(s.openBlock(),s.createElementBlock("div",Nf,[s.createElementVNode("img",{src:e.loading},null,8,Tf),e.text?(s.openBlock(),s.createElementBlock("div",If,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="success"?(s.openBlock(),s.createElementBlock("div",Bf,[s.createElementVNode("img",{src:e.success},null,8,xf),e.text?(s.openBlock(),s.createElementBlock("div",Sf,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="error"?(s.openBlock(),s.createElementBlock("div",Df,[s.createElementVNode("img",{src:e.error},null,8,Pf),e.text?(s.openBlock(),s.createElementBlock("div",Mf,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])],4)):(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(s.openBlock(),s.createElementBlock("div",Cf,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)],4)),s.createElementVNode("div",{class:"top-tipss-mask",style:s.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):s.createCommentVNode("",!0)}const tt=oe(bf,[["render",Vf],["__scopeId","data-v-239e459d"]]),Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0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JKJDfpvQ3wP0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Rf=Ye({name:"attchViews",components:{TopTips:tt,PreviewImage:ss,PreView:Fr,TopPopup:Fe},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Of},del(){return jr},doc(){return Qr},file(){return Ur},image(){return Gr},pdf(){return _r},xls(){return qr},zip(){return Jr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let n=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&n++,this.filesArr[c].name.includes(`(${n})`)&&n++,n>0){let m=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,m)} (${n}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),ZE="",Lf={class:"attch-upload"},vf={key:0,class:"attch-upload-mask"},Ff={class:"attch-upload-body"},jf={class:"upload-header"},Qf={class:"upload-header-title"},Uf={key:0,class:"upload-header-title--re"},Gf={class:"upload-header-upload"},_f=["src"],qf={class:"upload-body"},Jf={key:0,class:"upload-list"},zf={class:"list-items-icon"},Kf=["src"],Hf=["src"],Wf=["src"],Yf=["src"],Xf=["src"],Zf=["src"],$f={class:"list-items-info"},eg={class:"info-name"},tg={class:"info-attribute"},ig={class:"info-attribute-size"},sg=["onClick"],ng={key:0,class:"list-items-operation"},rg=["onClick"],og=["src"];function ag(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("PreviewImage"),c=s.resolveComponent("PreView"),m=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",Lf,[e.buttonLoading?(s.openBlock(),s.createElementBlock("div",vf)):s.createCommentVNode("",!0),s.createElementVNode("div",Ff,[s.createElementVNode("div",jf,[s.createElementVNode("div",Qf,[t[3]||(t[3]=s.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(s.openBlock(),s.createElementBlock("span",Uf,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",Gf,[e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[s.createElementVNode("img",{src:e.addFile},null,8,_f),t[4]||(t[4]=s.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),s.createElementVNode("div",qf,[e.filesArr.length>0?(s.openBlock(),s.createElementBlock("div",Jf,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.filesArr,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:"list-items",key:u.uuid},[s.createElementVNode("div",zf,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Kf)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Hf)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Wf)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Yf)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Xf)):(s.openBlock(),s.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Zf))]),s.createElementVNode("div",$f,[s.createElementVNode("div",eg,s.toDisplayString(u.name),1),s.createElementVNode("div",tg,[s.createElementVNode("span",ig,s.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+s.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),s.createElementVNode("span",{class:"info-attribute-views",onClick:y=>e.viewFile(u,p)}," \u9884\u89C8 ",8,sg)])]),e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",ng,[s.createElementVNode("div",{onClick:y=>e.handleDel(p,u),class:"list-items-operation-img"},[s.createElementVNode("img",{src:e.del},null,8,og)],8,rg)]))]))),128))])):s.createCommentVNode("",!0)])]),s.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:s.withCtx(()=>[e.visibleS?(s.openBlock(),s.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const $t=oe(Rf,[["render",ag],["__scopeId","data-v-69217b12"]]),$E="",lg={name:"nf-flow",components:{attchViews:$t},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ma,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},cg={type:"flex",class:"process-flow"},dg=["timestamp"],pg={class:"flow-name"},hg={class:"flow-time"},ug={class:"flow-node"},mg={key:0,class:"flow-time"},fg={class:"comment-user"},gg={key:1,style:{color:"gray","font-size":"12px"}},yg={class:"comment-type"},Ag={class:"comment-user"},kg={key:0,style:{color:"gray","font-size":"12px"}},bg={key:2,class:"flow-time"},Eg={class:"p-file"},Cg=["onClick"],wg=["onClick"];function Ng(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",cg,[s.createElementVNode("div",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.getColors(i.flowList),(a,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:"flow-item"},[s.createElementVNode("p",null,[s.createElementVNode("span",pg,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?a.comments[a.comments.length-1].userId:"")),1),t[1]||(t[1]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",hg,s.toDisplayString(a.createTime),1),t[2]||(t[2]=s.createTextVNode(" \u5F00\u59CB\u5904\u7406 ",-1)),s.createElementVNode("span",ug,s.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"),1),t[3]||(t[3]=s.createTextVNode(" \u73AF\u8282 ",-1))]),a.historyActivityDurationTime?(s.openBlock(),s.createElementBlock("p",mg," \u4EFB\u52A1\u5386\u65F6 "+s.toDisplayString(a.historyActivityDurationTime),1)):s.createCommentVNode("",!0),a.comments&&a.comments.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:m},[m<1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",{class:s.normalizeClass(["comment-type",a.class])},s.toDisplayString(r.commentMap[c.type]||c.type),3),s.createElementVNode("span",fg,s.toDisplayString(c.userId),1),t[4]||(t[4]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),a.comments.filter(u=>u.action==="AddComment").length>1?(s.openBlock(),s.createElementBlock("span",{key:0,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...u)=>o.handleClick&&o.handleClick(...u))},[s.createTextVNode(s.toDisplayString(r.toggleText)+" ",1),s.createElementVNode("i",{class:s.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):s.createCommentVNode("",!0),c.time&&r.isFlag?(s.openBlock(),s.createElementBlock("p",gg,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),m>0&&r.isFlag?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("span",yg,s.toDisplayString(r.commentMap[c.type]||c.type),1),s.createElementVNode("span",Ag,s.toDisplayString(c.userId),1),t[5]||(t[5]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),c.time?(s.openBlock(),s.createElementBlock("p",kg,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0)],64))),128)):s.createCommentVNode("",!0),a.endTime?(s.openBlock(),s.createElementBlock("p",bg,"\u7ED3\u675F\u65F6\u95F4: "+s.toDisplayString(a.endTime),1)):s.createCommentVNode("",!0),s.createElementVNode("div",Eg,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,Cg)):s.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(s.openBlock(),s.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,wg)):s.createCommentVNode("",!0)])],8,dg))],64))),256))])])}const Va=oe(lg,[["render",Ng],["__scopeId","data-v-cef15990"]]),e1="",Tg={components:{processFlow:Va},inject:["request"],data(){return{visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),Ma(t)},openDrawer(e,t){let i=t.filter(n=>n.historyActivityType=="userTask");this.curData=i.filter(n=>n.historyActivityId==e.id),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}};function Ig(e,t,i,n,r,o){const a=s.resolveComponent("processFlow");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["bpmnnd-box",r.visible?"bpmnnd-box-active":""])},[s.createVNode(a,{style:{width:"70vw"},request:o.request,"flow-list":o.formatFlow(r.curData)},null,8,["request","flow-list"])],2)}const Bg=oe(Tg,[["render",Ig],["__scopeId","data-v-122d7775"]]),t1="",xg={name:"bpmn-look",components:{bpmnNodeDetail:Bg},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{drawer:!1,isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(n){console.error(n)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(bi)=="[object Function]"?bi:bi.default,t=Object.prototype.toString.call(jn)=="[object Object]"?jn:jn.default,i=Object.prototype.toString.call(Ln)=="[object Object]"?Ln:Ln.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:n})=>{n||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())}),this.viewer.on("element.click",n=>{n.type,n.element,n&&n.element&&(n.element.type||"").includes("UserTask")?(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(n.element,this.approvalData)):(this.drawer=!1,this.$refs.bpmnNodeDetailRef.closeDrawer(n.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom("fit-viewport","auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),n=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,m=0,u=0;t.addEventListener("touchstart",p=>{r=!0;const y=p.touches[0];o=y.clientX,a=y.clientY;const k=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(k[4]),c=parseFloat(k[5]);const C=this.getTransformMatrix(n.style.transform);this.isAdd?(m=parseFloat(C[4]),u=parseFloat(C[5])):(m=parseFloat(C[4])+30,u=parseFloat(C[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",p=>{if(!r)return;const y=p.touches[0],k=y.clientX-o,C=y.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+k} ${c+C})`),n.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${m+k}, ${u+C});`)),e._cachedViewbox&&(e._cachedViewbox.x=k,e._cachedViewbox.y=C),p.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),n=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+90),n.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=yf(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}};function Sg(e,t,i,n,r,o){const a=s.resolveComponent("bpmnNodeDetail");return s.openBlock(),s.createElementBlock("div",{ref:"container",class:"bpmn-look",onWheel:t[0]||(t[0]=(...l)=>e.handleWheel&&e.handleWheel(...l))},[s.createVNode(a,{ref:"bpmnNodeDetailRef",onClose:o.closeDetail},null,8,["onClose"])],544)}const Oa=oe(xg,[["render",Sg],["__scopeId","data-v-ae1272fe"]]),Dg=Ye({name:"TopTab",components:{processFlow:Va,BpmnLook:Oa,TopPopup:Fe,ViewAttchList:zr,PreviewImage:ss},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,n)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),t},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let n=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+n}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let n=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-n}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),i1="",Pg={class:"tops-tab"},Mg={class:"tops-tab-header"},Vg=["onClick"],Og={key:0,class:"bottom-line"},Rg={class:"tops-tab-body"},Lg=["name"],vg={key:2,class:"textnone"},Fg={key:2,style:{height:"100%"}},jg={key:1,class:"textnone"},Qg={class:"seal-list__item--option"},Ug={style:{"max-width":"100px"}},Gg={class:"seal-list__item--option"},_g={style:{"max-width":"100px"}},qg={class:"seal-list__item--option"},Jg={style:{"max-width":"100px"}};function zg(e,t,i,n,r,o){const a=s.resolveComponent("BpmnLook"),l=s.resolveComponent("processFlow"),c=s.resolveComponent("ViewAttchList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("PreviewImage");return s.openBlock(),s.createElementBlock("div",Pg,[s.createElementVNode("div",Mg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,(p,y)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tops-tab-header-items",[p.key===e.active?"active":""]]),onClick:k=>e.handleActive(p.key,y)},s.toDisplayString(p.label),11,Vg))),256)),e.isTapList.length?(s.openBlock(),s.createElementBlock("div",Og)):s.createCommentVNode("",!0)]),s.createElementVNode("div",Rg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,p=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:p.key,style:{height:"100%"},class:s.normalizeClass([p.key==="c"&&"tops-tab-body-taskcommentlist"])},[p.key==="a"&&p.type==="default"?s.renderSlot(e.$slots,"default",{key:0},void 0,!0):s.createCommentVNode("",!0),e.active===p.key&&p.key==="b"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:p.slot},[e.processXml?(s.openBlock(),s.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):s.createCommentVNode("",!0),p.key==="b"&&e.processXml?(s.openBlock(),s.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(s.openBlock(),s.createElementBlock("div",vg," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,Lg)):s.createCommentVNode("",!0),p.key==="c"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",Fg,[p.key==="c"&&e.ProcessInsObj.flow?(s.openBlock(),s.createBlock(l,{key:0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["request","flow-list","onView"])):(s.openBlock(),s.createElementBlock("div",jg,"\u6682\u65E0\u6570\u636E"))])):s.createCommentVNode("",!0),p.type=="slot"?s.renderSlot(e.$slots,p.slot,{key:3},void 0,!0):s.createCommentVNode("",!0)],2)),[[s.vShow,e.active===p.key]])),128))]),s.createVNode(m,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:s.withCtx(()=>[s.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),s.createVNode(u,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=p=>e.signPreViewVisible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=p=>e.visibleTack=p),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:s.withCtx(()=>[e.trackListss&&e.trackListss.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.trackListss,(p,y)=>(s.openBlock(),s.createElementBlock("div",{key:p.id,class:"seal-list__item"},[s.createElementVNode("div",null,[s.createElementVNode("div",Qg,[t[4]||(t[4]=s.createElementVNode("span",null,"\u5E8F\u53F7",-1)),s.createElementVNode("span",Ug,s.toDisplayString(y+1),1)]),s.createElementVNode("div",Gg,[t[5]||(t[5]=s.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),s.createElementVNode("span",_g,s.toDisplayString(p.historyActivityName),1)]),s.createElementVNode("div",qg,[t[6]||(t[6]=s.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),s.createElementVNode("span",Jg,s.toDisplayString(p.assigneeName),1)])])]))),128)):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Kg=oe(Dg,[["render",zg],["__scopeId","data-v-3cb88319"]]),Hg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEPhFkL7v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IAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",Yg=Ye({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let n=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=n[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return Hg},check(){return Wg}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),s1="",Xg={class:"top-select"},Zg={key:0,style:{position:"relative","z-index":"80"}},$g=["src"],ey=["onClick"],ty=["src"];function iy(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",Xg,[e.isSlots?(s.openBlock(),s.createElementBlock("div",Zg,[s.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[s.createTextVNode(s.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,$g))],2)),e.maskShow?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-select-option-mask",style:s.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):s.createCommentVNode("",!0),e.lists&&e.lists.length?(s.openBlock(),s.createElementBlock("div",{key:3,class:s.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:s.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.lists,(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[s.createTextVNode(s.toDisplayString(a.name)+" ",1),e.active==a.id?(s.openBlock(),s.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,ty)):s.createCommentVNode("",!0)],10,ey))),128))],6)):s.createCommentVNode("",!0)])}const Ra=oe(Yg,[["render",iy],["__scopeId","data-v-15c177a8"]]),sy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5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PbYH4ZurlDmRsE9tHYACRXar/Xcx6K9aIGANkQKexJyk7fISzovPR9iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",n1="",ny=Ye({name:"selectFixedPerson",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],originFixedPersonList:[],mySelect:[],mySelectIds:[],searchText:"",showSelectPerson:!1}},watch:{searchText(){this.handleSearchPerson()},visible:{handler(e,t){this.showFixedPerson=e,e?(this.originFixedPersonList=this.list||[],this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.originFixedPersonList=[],this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},originFixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{handleClearSearch(){this.searchText="",this.handleSearchPerson()},handleSearchPerson(){this.fixedPersonList=this.originFixedPersonList.filter(e=>e.realName.includes(this.searchText))},expandSelect(){this.showSelectPerson=!0},updateSelectVisible(e){this.showSelectPerson=e},updateVisible(e){this.$emit("updateVisible",e)},handleRemoveSelect(e){this.mySelect=this.mySelect.filter(t=>t.userId!==e.userId),this.mySelectIds=this.mySelect.map(t=>t.userId),this.$emit("updateSelect",this.mySelect)},handleClearSelect(){this.mySelect=[],this.mySelectIds=[],this.$emit("updateSelect",this.mySelect)},handleClickFixedPerson(e){this.multiple||(this.mySelect=[],this.mySelectIds=[]),this.multiple?this.mySelectIds.includes(e.userId)?(this.mySelect=this.mySelect.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}}),ry={class:"st-head"},oy={class:"s-tree"},ay=["onClick"],ly={key:0,class:"radio-select"},cy={key:1,class:"radio-select-not"},dy=["src"],py={key:3,class:"node-avatar-text"},hy={class:"node-name"},uy={class:"node-name-text"},my={class:"node-name-phone"},fy={class:"st-footer-box"},gy={class:"st-footer"},yy={class:"st-footer-text"},Ay={class:"st-footer-right"},ky={class:"s-thead"},by={class:"s-thead-left"},Ey={class:"s-thead-right"},Cy={class:"s-tree"},wy=["onClick"],Ny={class:"stt-node-left"},Ty=["src"],Iy={key:1,class:"node-avatar-text stt-node-avatar-text"},By={class:"node-name"},xy={class:"node-name-text"},Sy={class:"node-name-phone"},Dy={class:"stt-node-right"};function Py(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createBlock(a,{visible:e.showFixedPerson,"onUpdate:visible":e.updateVisible,ref:"TopPopupFixedPerson",titleText:"\u9009\u62E9\u4EBA\u5458("+e.originFixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},{default:s.withCtx(()=>[s.createElementVNode("div",ry,[s.withDirectives(s.createElementVNode("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>e.searchText=l),placeholder:"\u8F93\u5165\u67E5\u8BE2",class:"st-head-input",onKeyup:t[1]||(t[1]=s.withKeys((...l)=>e.handleSearchPerson&&e.handleSearchPerson(...l),["enter"]))},null,544),[[s.vModelText,e.searchText]]),s.withDirectives(s.createElementVNode("div",{class:"st-head-clear",onClick:t[2]||(t[2]=(...l)=>e.handleClearSearch&&e.handleClearSearch(...l))},[...t[8]||(t[8]=[s.createElementVNode("svg",{t:"1766114768811",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7665"},[s.createElementVNode("path",{d:"M507.168 473.232L716.48 263.936a16 16 0 0 1 22.624 0l11.312 11.312a16 16 0 0 1 0 22.624L541.12 507.168 750.4 716.48a16 16 0 0 1 0 22.624l-11.312 11.312a16 16 0 0 1-22.624 0L507.168 541.12 297.872 750.4a16 16 0 0 1-22.624 0l-11.312-11.312a16 16 0 0 1 0-22.624l209.296-209.312-209.296-209.296a16 16 0 0 1 0-22.624l11.312-11.312a16 16 0 0 1 22.624 0l209.296 209.296z","p-id":"7666",fill:"#cdcdcd"})],-1)])],512),[[s.vShow,e.searchText]])]),s.createElementVNode("div",oy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.fixedPersonList],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[e.mySelectIds.includes(l.userId)?(s.openBlock(),s.createElementBlock("div",ly,[...t[9]||(t[9]=[s.createElementVNode("svg",{t:"1758260488735",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"},[s.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"})],-1)])])):(s.openBlock(),s.createElementBlock("div",cy,[...t[10]||(t[10]=[s.createElementVNode("svg",{t:"1758260589679",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"},[s.createElementVNode("path",{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"})],-1)])])),l.avatar?(s.openBlock(),s.createElementBlock("img",{key:2,class:"node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,dy)):(s.openBlock(),s.createElementBlock("div",py,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",hy,[s.createElementVNode("div",uy,s.toDisplayString(l.realName),1),s.createElementVNode("div",my,s.toDisplayString(l.phonenumber),1)])],8,ay))),128))]),s.createElementVNode("div",fy,[s.createElementVNode("div",gy,[s.createElementVNode("div",{class:"st-footer-left",onClick:t[3]||(t[3]=(...l)=>e.expandSelect&&e.expandSelect(...l))},[s.createElementVNode("div",yy,"\u5DF2\u9009\u62E9"+s.toDisplayString(e.mySelectIds.length)+"\u4E2A\u6210\u5458",1),t[11]||(t[11]=s.createElementVNode("div",{class:"st-footer-svg"},[s.createElementVNode("svg",{t:"1766111528552",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4604",id:"mx_n_1766111528554"},[s.createElementVNode("path",{d:"M166.997333 751.850667L106.666667 691.498667 520.832 277.333333l414.165333 414.165334L874.666667 751.850667 520.832 398.016z",fill:"#1389ff","p-id":"4605"})])],-1))]),s.createElementVNode("div",Ay,[s.createElementVNode("div",{class:"st-footer-btn",onClick:t[4]||(t[4]=(...l)=>e.handleSumbitFixedPerson&&e.handleSumbitFixedPerson(...l))},"\u786E\u5B9A")])])]),s.createVNode(a,{visible:e.showSelectPerson,"onUpdate:visible":e.updateSelectVisible,showHeader:!1,ref:"TopPopupSelectPerson",isIndex:120,className:"sumbmitPopup-index"},{default:s.withCtx(()=>[s.createElementVNode("div",ky,[s.createElementVNode("div",by," \u5DF2\u9009\u62E9\u4EBA\u5458("+s.toDisplayString(e.mySelect.length)+") ",1),s.createElementVNode("div",Ey,[s.createElementVNode("div",{class:"s-thead-btn",onClick:t[5]||(t[5]=(...l)=>e.handleClearSelect&&e.handleClearSelect(...l))},"\u6E05\u7A7A"),s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[6]||(t[6]=l=>e.updateSelectVisible(!1))},"\u5173\u95ED")])]),s.createElementVNode("div",Cy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.mySelect],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node stt-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[s.createElementVNode("div",Ny,[l.avatar?(s.openBlock(),s.createElementBlock("img",{key:0,class:"node-avatar stt-node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,Ty)):(s.openBlock(),s.createElementBlock("div",Iy,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",By,[s.createElementVNode("div",xy,s.toDisplayString(l.realName),1),s.createElementVNode("div",Sy,s.toDisplayString(l.phonenumber),1)])]),s.createElementVNode("div",Dy,[s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[7]||(t[7]=(...c)=>e.handleRemoveSelect&&e.handleRemoveSelect(...c))},"\u79FB\u9664")])],8,wy))),128))])]),_:1},8,["visible","onUpdate:visible"])]),_:1},8,["visible","onUpdate:visible","titleText","comfig"])}const La=oe(ny,[["render",Py],["__scopeId","data-v-f68e835c"]]),My=Ye({name:"TopSubmitPopup",components:{SelectFixedPerson:La,BpmnLook:Oa,TopPopup:Fe,TopDownSelect:Ra,PreviewImage:ss,departPerson:yt.departPerson,TopTips:tt},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return sy}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async getTaskModelDetail(){this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.extraParams.processId||this.extraParams.processInstId,taskId:this.taskId}:{processInstId:this.extraParams.processId||this.extraParams.processInstId}}).then(e=>{if(e.code==200){this.handleTips("",!1,"success");let t=(e.data||{}).process||{};this.checkedItem={id:t.processDefinitionId,key:t.processDefinitionKey,name:t.processDefinitionName,version:t.processDefinitionVersion},this.option=[this.checkedItem],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.businessDeptIdData||this.getNodeUserDept()}})},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,subjectId:this.businessSubjectId,processGroupName:this.processNameData,...this.extraParams};if(this.processNameData&&delete e.processGroupName,this.extraParams.processId||this.extraParams.processInstId){this.getTaskModelDetail();return}await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Pa(e);let n;try{n=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){}if(n.code==200){const r=this.firstPerson[t];r.userList=n.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let n={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!this.businessDeptIdData,id:m.users.map(u=>u.id),subjectId:m.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.selectDefaultValue!=e.id&&(this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t))},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{i.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(n=>{let r=[],o=[],a=!1;n.data.map(c=>{c.posts.map(m=>{o.push(...m.users),m.users.length==1?r.push(...m.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];n.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(m=>m.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.personObjId]=e,this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((n,r)=>{i.push(n.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((n,r)=>{t=n.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({id:n.id,subjectId:n.subjectId,type:n.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,n)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{businessType:this.businessType,deptId:this.businessDeptIdData,reactivate:!0,showType:"all",subjectId:this.businessSubjectId,...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),r1="",Vy={class:"sumbmitPopup-index-sumbit"},Oy={class:"sumbmitPopup-select"},Ry={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},Ly=["src"],vy={key:0,class:"person-views"},Fy={class:"views-items-label"},jy={class:"views-items-name"},Qy={class:"views-items-name-left"},Uy={key:0,class:"views-items-name--re"},Gy={class:"views-items-set"},_y={key:0},qy={key:0},Jy={key:1},zy={key:2},Ky={key:3},Hy=["onClick"],Wy=["onClick"],Yy={key:0,class:"views-items-includes"},Xy={class:"views-items-and2"},Zy={key:0},$y={class:"include"},eA={class:"include include-name"},tA={key:1,class:"person-views"},iA={class:"views-items"},sA={class:"views-items-name"},nA={class:"views-items-set"},rA=["onClick"],oA={key:1},aA={key:0},lA={key:2},cA={key:3},dA={key:2,class:"person-views-white"},pA={style:{height:"100%"}},hA={class:"tree"},uA=["onClick"],mA={key:0,class:"children"},fA=["onClick"],gA={style:{margin:"20px"}},yA=["innerHTML"],AA={class:"timeline"},kA={class:"item-top"},bA={class:"top-spot"},EA={class:"top-title"},CA={style:{color:"#009800"}};function wA(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("BpmnLook"),p=s.resolveComponent("PreviewImage"),y=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",Vy,[t[16]||(t[16]=s.createElementVNode("div",{class:"top-popup"},null,-1)),s.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=k=>(e.show=k,e.$emit("update:visible",k))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:s.withCtx(()=>[s.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:s.withCtx(k=>[s.createElementVNode("div",Oy,[s.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...C)=>e.handleSelect&&e.handleSelect(...C))},[t[10]||(t[10]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(k.data.name?k.data.name:k.data.placeholder),3)]),e.businessDeptIdData?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...C)=>e.handleDeptSelect&&e.handleDeptSelect(...C))},[t[11]||(t[11]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)])),s.createElementVNode("div",Ry,[e.checkedItem.id?(s.openBlock(),s.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...C)=>e.handleFlowSelect&&e.handleFlowSelect(...C))},[s.createElementVNode("img",{src:e.ProcessImg},null,8,Ly),t[12]||(t[12]=s.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):s.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(s.openBlock(),s.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...C)=>e.viewFlowForecast&&e.viewFlowForecast(...C))}," \u6D41\u7A0B\u9884\u6D4B ")):s.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(s.openBlock(),s.createElementBlock("div",vy,[t[14]||(t[14]=s.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.firstPerson,(k,C)=>{var v;return s.openBlock(),s.createElementBlock("div",{class:"views-items",key:C},[s.createElementVNode("div",Fy,[s.createElementVNode("div",jy,[s.createElementVNode("div",Qy,[s.createTextVNode(s.toDisplayString(k.name)+" ",1),C==0?(s.openBlock(),s.createElementBlock("span",Uy,"*")):s.createCommentVNode("",!0)])]),s.createElementVNode("div",Gy,[e.partNode[k.id]&&e.partNode[k.id].length?(s.openBlock(),s.createElementBlock("div",_y,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[k.id],(F,z)=>(s.openBlock(),s.createElementBlock("span",{key:z},s.toDisplayString(z>=3?"":z==0?F:`,${F}`),1))),128)),e.partNode[k.id].length>3?(s.openBlock(),s.createElementBlock("span",qy,"...\u7B49"+s.toDisplayString(e.partNode[k.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):k.routeTxt&&k.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Jy,s.toDisplayString(k.routeTxt.userNames),1)):s.createCommentVNode("",!0),k.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||k.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((v=e.partNode[k.id])==null?void 0:v.length)>0&&k.noPersonnel?(s.openBlock(),s.createElementBlock("div",zy)):k.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||k.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||k.noPersonnel?(s.openBlock(),s.createElementBlock("div",Ky," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):k.userList&&k.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:F=>e.handleOpenFixedPerson(k)}," \u9009\u62E9 ",8,Hy)):(s.openBlock(),s.createElementBlock("div",{key:5,class:"views-items-set-btn",onClick:F=>e.handleOpenPerson(k)}," \u8BBE\u7F6E ",8,Wy))])]),k.routeTxt&&k.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",Yy,[t[13]||(t[13]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",Xy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.routeTxt,(F,z)=>(s.openBlock(),s.createElementBlock("div",{key:F.type},[F.ids&&F.ids.length>0?(s.openBlock(),s.createElementBlock("div",Zy,[s.createElementVNode("div",$y,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+F.type]])},s.toDisplayString(F.type=="user"?"\u7528\u6237":F.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",eA,s.toDisplayString(F.name),1)]),z!==k.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(F.assigneeRetain?"true":"false")]])},s.toDisplayString(k.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)])}),128))])):s.createCommentVNode("",!0),e.personList&&e.personList.length?(s.openBlock(),s.createElementBlock("div",tA,[t[15]||(t[15]=s.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.personList,(k,C)=>(s.openBlock(),s.createElementBlock("div",iA,[s.createElementVNode("div",sA,s.toDisplayString(k.name),1),s.createElementVNode("div",nA,[k.noPersonnel?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(k)}," \u8BBE\u7F6E ",8,rA)),e.partNode[k.id]&&e.partNode[k.id].length?(s.openBlock(),s.createElementBlock("div",oA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[k.id],(v,F)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(F>=3?"":F==0?v:`,${v}`),1))),256)),e.partNode[k.id].length>3?(s.openBlock(),s.createElementBlock("span",aA,"...\u7B49"+s.toDisplayString(e.partNode[k.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):k.noPersonnel?(s.openBlock(),s.createElementBlock("div",lA,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(s.openBlock(),s.createElementBlock("div",cA))])]))),256))])):s.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(s.openBlock(),s.createElementBlock("div",dA," \u65E0\u9700\u8BBE\u7F6E ")):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=k=>e.visiblePerson=k),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:s.withCtx(()=>[s.createElementVNode("div",pA,[e.visiblePerson?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=k=>e.showDept=k),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:s.withCtx(()=>[s.createElementVNode("div",hA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.deptList],k=>(s.openBlock(),s.createElementBlock("div",{class:"node",key:k.id},[s.createElementVNode("div",{class:"node-p",onClick:C=>e.handleClickDept(k)},s.toDisplayString(k.label),9,uA),k.children?(s.openBlock(),s.createElementBlock("div",mA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.children,C=>(s.openBlock(),s.createElementBlock("div",{class:"node-s",onClick:v=>e.handleClickDept(C),key:C.id},s.toDisplayString(C.label),9,fA))),128))])):s.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),s.createVNode(m,{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:!0,select:e.fixedSelect[e.personObjId]||[],onUpdateList:e.handleClickFixedPerson,onUpdateVisible:e.updateFixedPersonVisible,onUpdateSelect:e.updateFixedSelect,onConfirm:e.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=k=>e.showFlow=k),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:s.withCtx(()=>[e.showFlow&&e.processXml?(s.openBlock(),s.createBlock(u,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(p,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=k=>e.taskurlshow=k),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),s.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=k=>e.flowForecastVisible=k),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:s.withCtx(()=>[s.createElementVNode("div",gA,[s.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,yA),s.createElementVNode("div",AA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.flowForecastData.processBudgetModelList,(k,C)=>(s.openBlock(),s.createElementBlock("div",{class:"timeline-item",key:C},[s.createElementVNode("div",kA,[s.createElementVNode("div",bA,[s.createElementVNode("div",{class:s.normalizeClass(["spot",{active:C==0}])},null,2)]),s.createElementVNode("div",EA,s.toDisplayString(k.title),1)]),s.createElementVNode("div",{class:s.normalizeClass(["item-bottom",{last:C==e.flowForecastData.processBudgetModelList.length-1}])},[s.createElementVNode("span",CA," \u6267\u884C\u4EBA\uFF1A"+s.toDisplayString(k.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const va=oe(My,[["render",wA],["__scopeId","data-v-862ceab8"]]),NA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAA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="",TA={name:"msgList",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return NA}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},IA={key:0,class:"top-msg"},BA=["onClick"],xA={class:"top-msg-items-text"},SA=["onClick"],DA=["src"];function PA(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",null,[i.visible?(s.openBlock(),s.createElementBlock("div",IA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.listData,l=>(s.openBlock(),s.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[s.createElementVNode("div",xA,s.toDisplayString(l.opinionName),1),s.createElementVNode("div",{class:"top-msg-items-del",onClick:s.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[s.createElementVNode("img",{src:o.Del},null,8,DA)],8,SA)],8,BA))),256))])):s.createCommentVNode("",!0),s.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Qi=oe(TA,[["render",PA],["__scopeId","data-v-87fc3e49"]]),a1="",MA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e=[];this.multiNodeParticipant[this.partObjId].map((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=e[1]?JSON.parse(e[1]):!1,this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},VA={class:"process-popup-content"},OA={class:"process-popup-content-msg"},RA={key:0},LA={class:"process-pc-value"},vA={class:"process-popup-textarea"},FA={class:"process-popup-textarea-num"},jA={key:0,class:"msg-btn"},QA={key:0,class:"process-popup-content-person"},UA=["onClick"],GA={class:"process-pc-value--people"},_A={key:0,class:"process-pc-value--data"},qA={key:1,class:"process-pc-value--data",style:{color:"#888"}},JA=["onClick"],zA={class:"process-pc-value--people"},KA={key:0,class:"process-pc-value--data"},HA={key:1,class:"process-pc-value--data",style:{color:"#888"}},WA={style:{height:"100%"}};function YA(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",VA,[s.createElementVNode("div",OA,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",RA,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",LA,[s.createElementVNode("div",vA,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",FA,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",jA,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",QA,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",GA,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",_A,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",qA,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,UA)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",zA,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",KA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",HA,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,JA)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",WA,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const XA=oe(MA,[["render",YA],["__scopeId","data-v-86bb40b8"]]),l1="",ZA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},$A={class:"process-popup-content"},ek={class:"process-popup-content-msg"},tk={key:0},ik={class:"process-pc-value"},sk={class:"process-popup-textarea"},nk={class:"process-popup-textarea-num"},rk={key:0,class:"msg-btn"},ok={key:0,class:"process-popup-content-person"},ak=["onClick"],lk={class:"process-pc-value--people"},ck={key:0,class:"process-pc-value--data"},dk={key:1,class:"process-pc-value--data",style:{color:"#888"}},pk=["onClick"],hk={class:"process-pc-value--people"},uk={key:0,class:"process-pc-value--data"},mk={key:1,class:"process-pc-value--data",style:{color:"#888"}},fk={style:{height:"100%"}};function gk(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",$A,[s.createElementVNode("div",ek,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",tk,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",ik,[s.createElementVNode("div",sk,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",nk,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",rk,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",ok,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",lk,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",ck,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",dk,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,ak)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",hk,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",uk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",mk,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,pk)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",fk,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const yk=oe(ZA,[["render",gk],["__scopeId","data-v-73a21e66"]]),Ak="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEA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0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",c1="",d1="",kk={name:"TreeNode",components:{SelectFixedPerson:La,TopPopup:Fe,TopTips:tt,departPerson:yt.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(n=>{this.partNodeArr,this.multiNodeParticipant;const r=this.partNodeArr[i.id].find(a=>a.name==n.name),o=this.multiNodeParticipant[i.id].find(a=>a==n.id);r||this.partNodeArr[i.id].push(n),o||this.multiNodeParticipant[i.id].push(n.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(n.id)||this.multiNodeParticipant[i.id].push(n.id),this.partNode[i.id].includes(n.name)||this.partNode[i.id].push(n.name),this.partNodeArr[i.id].find(r=>r.name==n.name)||this.partNodeArr[i.id].push(n)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let n={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:m.users.map(u=>u.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(n=>{n.code==200&&(this.personMakeList=n.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Un}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,n)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.partObjId]=e,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,r)=>{i.push({type:3,id:n.id,subjectId:n.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{n.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},bk={key:0,class:"treenode"},Ek={key:0,class:"treenode-multi"},Ck={class:"treenode-node",style:{"margin-top":"0"}},wk=["onClick"],Nk=["src"],Tk=["onClick"],Ik={class:"treenode-node"},Bk={key:0},xk={key:1,class:"personselect"},Sk={class:"personselect-name"},Dk={class:"items-person"},Pk=["onClick"],Mk=["onClick"],Vk={key:2,class:"items-person-name"},Ok={key:3,class:"items-person-name"},Rk={key:4,class:"items-person-name"},Lk={key:0,class:"views-items-includes"},vk={class:"views-items-and2"},Fk={key:0},jk={class:"include"},Qk={class:"include include-name"},Uk={class:"treenode-node"},Gk={key:0},_k={key:1,class:"personselect"},qk={class:"personselect-name"},Jk={class:"items-person"},zk=["onClick"],Kk=["onClick"],Hk={key:2,class:"items-person-name"},Wk={key:3,class:"items-person-name"},Yk={key:4,class:"items-person-name"},Xk={key:0,class:"views-items-includes"},Zk={class:"views-items-and2"},$k={key:0},e0={class:"include"},t0={class:"include include-name"},i0={key:1,class:"treenode-single"},s0={class:"treenode-single-items"},n0={class:"personselect"},r0={class:"personselect-name"},o0={key:0,class:"items-person"},a0=["onClick"],l0=["onClick"],c0={key:2,class:"items-person-name"},d0={class:"items-person-name"},p0={key:0},h0={key:1,class:"views-items-includes"},u0={class:"views-items-and2"},m0={key:0},f0={class:"include"},g0={class:"include include-name"};function y0(e,t,i,n,r,o){const a=s.resolveComponent("TreeNode",!0),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",bk,[i.endNode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ek,[s.createElementVNode("div",Ck,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(p.id)?"treenode-checkbox-active":""]),onClick:y=>o.handleCheckBoxClick(p)},[s.createElementVNode("span",null,[r.checkBoxArr.includes(p.id)?(s.openBlock(),s.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,Nk)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,wk)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["treenode-radio",r.radioArr==p.id?"treenode-radio-active":""]),onClick:y=>o.handleRadioClick(p)},[t[1]||(t[1]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,Tk)):s.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.checkBoxItem,p=>(s.openBlock(),s.createElementBlock("div",Ik,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Bk,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",xk,[s.createElementVNode("div",Sk,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",Dk,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,Pk)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Mk)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",Vk,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",Ok,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Rk,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",Lk,[t[2]||(t[2]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",vk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,k)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",Fk,[s.createElementVNode("div",jk,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",Qk,s.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.radioItem,p=>(s.openBlock(),s.createElementBlock("div",Uk,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Gk,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",_k,[s.createElementVNode("div",qk,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",Jk,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,zk)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Kk)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",Hk,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",Wk,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Yk,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",Xk,[t[3]||(t[3]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",Zk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,k)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",$k,[s.createElementVNode("div",e0,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",t0,s.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0)])),i.endNode?(s.openBlock(),s.createElementBlock("div",i0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock("div",s0,[s.createElementVNode("div",n0,[s.createElementVNode("div",r0,s.toDisplayString(p.name||p.nodeName),1),p.nodeType!=="endEvent"?(s.openBlock(),s.createElementBlock("div",o0,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,a0)):p.setPersonnel?(s.openBlock(),s.createElementBlock("div",c0,s.toDisplayString((p.assignees||[]).map(y=>y.name).join(",")),1)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,l0)),s.createElementVNode("div",d0,[!r.partNode[p.id]&&p.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&p.noPersonnel?(s.openBlock(),s.createElementBlock("div",p0," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)])])):s.createCommentVNode("",!0),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",h0,[t[4]||(t[4]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",u0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,k)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",m0,[s.createElementVNode("div",f0,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",g0,s.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)])]))),256))])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):s.createCommentVNode("",!0)]),_:1},8,["visible"]),s.createVNode(m,{visible:r.showFixedPerson,list:r.fixedPersonList,multiple:r.currentClickItem.loopCardinality==-1,select:r.fixedSelect[r.partObjId]||[],onUpdateList:o.handleClickFixedPerson,onUpdateVisible:o.updateFixedPersonVisible,onUpdateSelect:o.updateFixedSelect,onConfirm:o.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(u,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):s.createCommentVNode("",!0)}const A0=oe(kk,[["render",y0],["__scopeId","data-v-c32b0f83"]]),p1="",k0={name:"tree-person",components:{TreeNode:A0},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(n=>n):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(n=>n!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(n=>n.id!=i.id),this.firstMultiType=this.firstMultiType.filter(n=>n!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(n=>n!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(n=>n.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(n=>n!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(n=>n.id!=i.id),t.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}}}},b0={class:"test"},E0={key:0},C0={key:0},w0={key:0},N0={key:0,class:"treeperson-firstnode"},T0=["onClick"],I0={key:1,class:"treeperson-firstnode"},B0={key:2,class:"treeperson-firstnode"},x0=["onClick"],S0={key:3,class:"treeperson-firstnode"},D0=["onClick"],P0={class:"treeperson-checkbox-box"},M0=["onClick"],V0={key:0,class:"treeperson-firstnode"},O0={class:"treeperson-checkbox-box"},R0=["onClick"],L0={key:0,class:"treeperson-firstnode"},v0=["onClick"],F0=["onClick"];function j0(e,t,i,n,r,o){const a=s.resolveComponent("tree-person",!0),l=s.resolveComponent("TreeNode");return s.openBlock(),s.createElementBlock("div",b0,[i.param.nodeLoading?(s.openBlock(),s.createElementBlock("div",E0,[...t[3]||(t[3]=[s.createElementVNode("span",null,"\u4E0B\u4E00\u8282\u70B9: ",-1),s.createElementVNode("b",{style:{"font-size":"16px"}},"\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......",-1)])])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",C0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,(c,m)=>(s.openBlock(),s.createElementBlock("div",{class:"treeperson",key:m},[c.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",w0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):c.branches&&c.branches.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(s.openBlock(),s.createElementBlock("div",N0,[t[5]||(t[5]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[4]||(t[4]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.id.includes("Flow")?u.nodeName||u.name?u.nodeName||u.name:u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:"":u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name||u.nodeName||u.name:u.nodeName||u.name),1)],10,T0))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(s.openBlock(),s.createElementBlock("div",I0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",null,[t[6]||(t[6]=s.createElementVNode("span",null,null,-1)),s.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:u.branches&&u.branches.length>0?u.branches:[u],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",B0,[t[8]||(t[8]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u),key:p},[t[7]||(t[7]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,x0))),128))])):(s.openBlock(),s.createElementBlock("div",S0,[t[10]||(t[10]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,D0))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):r.childrenItems&&r.childrenItems.length>1&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[t[12]||(t[12]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",P0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.childrenItems,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheckSub.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClickSub(u,r.childrenItems),key:p},[t[11]||(t[11]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,M0))),128))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItemsSub(r.childrenItems),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[0]||(t[0]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):(s.openBlock(),s.createBlock(l,{key:6,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",V0,[t[14]||(t[14]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",O0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u,c.branches),key:p},[t[13]||(t[13]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,R0))),128))])])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItems(c.branches),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[1]||(t[1]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):s.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[t[16]||(t[16]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",L0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstCheck==u.id?"treeperson-checkbox-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[15]||(t[15]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,v0))),128))])),s.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[2]||(t[2]=u=>o.onMultiNode(u,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[t[17]||(t[17]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(s.openBlock(),s.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(s.openBlock(),s.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(s.openBlock(),s.createElementBlock(s.Fragment,{key:4},[i.nodeType=="nexting"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[t[19]||(t[19]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.nodeInfoDTO.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.nodeInfoDTO.branches),key:p},[t[18]||(t[18]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,F0))),128)),(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[t[20]||(t[20]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(s.openBlock(),s.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[],64))]))),128))])):s.createCommentVNode("",!0)],64))])}const Q0=oe(k0,[["render",j0],["__scopeId","data-v-d9292cc9"]]),h1="",U0={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},G0={class:"top-popup-header"},_0={class:"header-title"},q0={class:"top-popup-body"},J0={class:"top-popup-drawer--body"},z0={class:"top-tips-header"},K0={class:"top-tips-body"},H0={class:"top-tips-footer"};function W0(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["top-popup-zindex",i.className]),style:s.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[s.createElementVNode("div",{class:"top-popup-mask",style:s.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-popup",style:s.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[s.createElementVNode("div",G0,[s.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",_0,s.toDisplayString(i.titleText),1),s.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)]),s.createElementVNode("div",q0,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:s.normalizeStyle(i.width?`width:${i.width};`:"")},[s.createElementVNode("div",J0,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-tips",style:s.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[s.createElementVNode("div",z0,s.toDisplayString(i.titleText),1),s.createElementVNode("div",K0,s.toDisplayString(i.context),1),s.createElementVNode("div",H0,[s.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)])],4)):s.createCommentVNode("",!0)],6)}const Fa=oe(U0,[["render",W0],["__scopeId","data-v-06a80662"]]),u1="",Y0={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Fa},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,n),this.currentPath.push({x:i,y:n})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,n),this.ctx.stroke(),this.currentPath.push({x:i,y:n})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:n}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,n)):(this.ctx.lineTo(i,n),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let n=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(n*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(n*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=l,m.translate(a/2,l/2),m.rotate(o),m.drawImage(e,-n/2,-r/2,n,r),c.toBlob(u=>{this.uploadImage(u)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const n=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!n.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(n.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",n.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const n=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${n}px`,i.style.height=`${r}px`,i.width=n*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},X0={class:"canvas-container"},Z0={key:0,class:"tips"},$0={class:"history"},eb=["src"],tb=["src"],ib=["src"],sb={class:"actions-area"};function nb(e,t,i,n,r,o){const a=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",{class:"sign-container",style:s.normalizeStyle(o.setDynamicVars)},[s.createElementVNode("div",X0,[r.paths.length==0&&r.currentPath.length==0?(s.openBlock(),s.createElementBlock("div",Z0,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):s.createCommentVNode("",!0),s.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:s.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),s.createElementVNode("div",$0,[s.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,eb)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,tb)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,ib)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",sb,[s.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),s.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),s.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),s.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),s.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const rb=oe(Y0,[["render",nb],["__scopeId","data-v-d91bfd13"]]),m1="",ob={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi,TreePerson:Q0,TopSign:rb,signDrawer:Fa},computed:{check(){return Un},checkS(){return Ak},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const n=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData[0].branches[0],o?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const n=this.findUserTaskNode(this.nextNodeData.branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData.branches[0],o?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,n)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((n,r)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,r)=>{i.push({type:3,id:n})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{n.push({type:3,id:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,n)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let i=0;if(this.radioCheckNameList.map((n,r)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((o,a)=>{o.id==n&&(o.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||o.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!o.childNode||!o.childNode.length?i+=1:this.radioCheckNode.map((l,c)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&(i+=1),e[l]=this.multiNodeParticipant[l]}))}),e[n]=this.multiNodeParticipant[n]}),i>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(i=>{let n=this.param.vars||this.gateVars||{};n[i.itemName]||(n[i.itemName]="")}),this.handleTips("",!0,"loading");let t=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(e).forEach(l=>{Array.isArray(e[l])&&(e[l]=e[l].filter(c=>c)),(!e[l]||Array.isArray(e[l])&&e[l].length<=0)&&delete e[l]});let n=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",o=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((n||r||o)&&!Object.keys(e).length){let c={};return n?c=i:r?c=i.branches[0].nodeInfoDTO:o&&(c=i.branches[0]),this.handleTips(c.nodeType?"\u8BF7\u9009\u62E9["+c.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists)}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((r,o)=>{(!this.multiNodeParticipant[r]||!this.multiNodeParticipant[r].length)&&this.radioCheckChild.map((a,l)=>{a.id==r&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?n+=1:this.radioCheckNode.map((c,m)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&(n+=1),t[c]=this.multiNodeParticipant[c]}))}),t[r]=this.multiNodeParticipant[r]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(n=>{let r=this.param.vars||this.gateVars||{};r[n.itemName]||(r[n.itemName]="")});let i=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const n=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;n.setPersonnel?i=n.assignees:i=(this.partNodeArr[n.id]||[]).map(c=>({id:c.id,name:c.name})),Object.keys(t).forEach(c=>{Array.isArray(t[c])&&(t[c]=t[c].filter(m=>m)),(!t[c]||Array.isArray(t[c])&&t[c].length<=0)&&delete t[c]});let r=n&&n.nodeType!="endEvent"&&(!n.branches||n.branches.length<=0),o=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&n.branches[0].nodeInfoDTO&&n.branches[0].nodeInfoDTO.nodeType!="endEvent",a=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&!n.branches[0].nodeInfoDTO&&n.branches[0].nodeType!="endEvent";if((r||o||a)&&!Object.keys(t).length){let m={};return r?m=n:o?m=n.branches[0].nodeInfoDTO:a&&(m=n.branches[0]),this.handleTips(m.nodeType?"\u8BF7\u9009\u62E9["+m.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="completeButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},ab={class:"process-popup-content"},lb={key:0,class:"process-popup-content-msg"},cb={key:0,class:"process-pc-label"},db={key:1,class:"process-pc-value",style:{display:"flex"}},pb={class:"process-radio",style:{width:"100%"}},hb=["onClick"],ub=["onClick"],mb={key:2},fb={class:"process-pc-label"},gb={key:0,class:"process-pc-label--re"},yb={class:"process-pc-value"},Ab={class:"process-popup-textarea"},kb={class:"process-popup-textarea-num"},bb={key:0,class:"msg-btn"},Eb={class:"process-popup-content-person"},Cb={key:0},wb={key:1},Nb={style:{height:"100%"}},Tb={style:{height:"100%"}};function Ib(e,t,i,n,r,o){const a=s.resolveComponent("TreePerson"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("MsgList"),p=s.resolveComponent("attchViews"),y=s.resolveComponent("TopSign"),k=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",ab,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(s.openBlock(),s.createElementBlock("div",lb,[i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",cb,"\u5FEB\u6377\u56DE\u590D")):s.createCommentVNode("",!0),i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",db,[s.createElementVNode("div",pb,[i.param.isDocument?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.msgCheckList,C=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",C==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=C},[t[8]||(t[8]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(C),1)],10,hb))),256)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.msgCheckListS,C=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",C==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=C},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(C),1)],10,ub))),256)),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=C=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",mb,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=C=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),s.createElementVNode("div",fb,[t[10]||(t[10]=s.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(s.openBlock(),s.createElementBlock("span",gb,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",yb,[s.createElementVNode("div",Ab,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=C=>r.commentMsg=C),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",kb,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",bb,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=C=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",Eb,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",Cb," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):r.nextNodeData&&r.nextNodeData.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",wb," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):i.param.ProcessInsObj.taskParentId?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(a,{key:2,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),s.renderSlot(e.$slots,"completeSlot",{},void 0,!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=C=>r.visible=C),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",Nb,[r.visible?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=C=>r.visibleListMsg=C),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=C=>r.visibleMsgComfig=C)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(p,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(k,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=C=>r.signVisible=C),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:s.withCtx(()=>[s.createElementVNode("div",Tb,[r.signVisible?(s.openBlock(),s.createBlock(y,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const ja=oe(ob,[["render",Ib],["__scopeId","data-v-b5e59dc8"]]),f1="",Bb={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},xb={class:"process-popup-content"},Sb={class:"process-popup-content-msg"},Db={key:0},Pb={class:"process-pc-value"},Mb={class:"process-popup-textarea"},Vb={class:"process-popup-textarea-num"},Ob={key:0,class:"msg-btn"},Rb={key:0,class:"process-popup-content-person"},Lb=["onClick"],vb={class:"process-pc-value--people"},Fb={key:0,class:"process-pc-value--data"},jb={key:1,class:"process-pc-value--data",style:{color:"#888"}},Qb={style:{"font-size":"15px"}},Ub={style:{height:"100%"}};function Gb(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",xb,[s.createElementVNode("div",Sb,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",Db,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[7]||(t[7]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",Pb,[s.createElementVNode("div",Mb,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",Vb,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",Ob,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(s.openBlock(),s.createElementBlock("div",Rb,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>{var y,k;return s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption((k=(y=p==null?void 0:p.userTaskModelDTO)==null?void 0:y.humanPerformer)==null?void 0:k.name)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",null,[s.createTextVNode(s.toDisplayString(p.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=s.createElementVNode("br",null,null,-1)),t[9]||(t[9]=s.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=s.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),s.createElementVNode("div",{class:"process-pc-value",onClick:C=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",vb,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",Fb,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(C,v)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(v==0?C:`,${C}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",jb,[...t[11]||(t[11]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,Lb)],64)):s.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption(p.humanPerformerName)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",Qb,s.toDisplayString(p.name),1),t[13]||(t[13]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...y)=>o.handleOpenPopup&&o.handleOpenPopup(...y))},[...t[12]||(t[12]=[s.createElementVNode("div",{class:"process-pc-value--people"},s.toDisplayString(234),-1)])])],64)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",Ub,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const _b=oe(Bb,[["render",Gb],["__scopeId","data-v-59b811ec"]]),g1="",qb={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,TopDownSelect:Ra,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},Jb={class:"process-popup-content"},zb={class:"process-popup-content-msg"},Kb={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},Hb={class:"process-pc-value"},Wb={class:"process-popup-textarea"},Yb={class:"process-popup-textarea-num"};function Xb(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("MsgList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("attchViews");return s.openBlock(),s.createElementBlock("div",Jb,[s.createElementVNode("div",zb,[t[3]||(t[3]=s.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[s.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",Kb,[s.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",Hb,[s.createElementVNode("div",Wb,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",Yb,s.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(s.openBlock(),s.createBlock(u,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0)])}const Zb=oe(qb,[["render",Xb],["__scopeId","data-v-fcd1a869"]]),y1="",$b={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,departPerson:yt.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},eE={style:{height:"100%"}};function tE(e,t,i,n,r,o){const a=s.resolveComponent("departPerson"),l=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",eE,[i.param.visible?(s.openBlock(),s.createBlock(a,s.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):s.createCommentVNode("",!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const iE=oe($b,[["render",tE]]),A1="",sE={name:"nf-button",components:{TopTips:tt},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const n=i.data;this.backNodes=n})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},nE={class:"process-btns"},rE=["disabled"],oE={key:0},aE={key:1},lE=["disabled"],cE={key:0},dE={key:1},pE=["disabled"],hE=["disabled"],uE=["disabled"],mE=["disabled"],fE=["disabled"],gE=["disabled"],yE=["disabled"],AE=["disabled"],kE=["disabled"];function bE(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",nE,[i.process.status=="todo"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[o.getButton("wf_pass")?(s.openBlock(),s.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["deleted"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("span",oE,"\u91CD\u65B0\u63D0\u4EA4")):(s.openBlock(),s.createElementBlock("span",aE,s.toDisplayString(o.getButton("wf_pass").name),1))],8,rE)):s.createCommentVNode("",!0),o.getButton("wf_reject")?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(s.openBlock(),s.createElementBlock("span",cE,s.toDisplayString(o.getButton("wf_reject").name),1)):(s.openBlock(),s.createElementBlock("span",dE,s.toDisplayString(o.getButton("wf_reject").name),1))],8,lE)):s.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(s.openBlock(),s.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},[...t[11]||(t[11]=[s.createElementVNode("span",null,"\u50AC\u529E",-1)])],8,pE)):s.createCommentVNode("",!0),o.getButton("wf_transfer")?(s.openBlock(),s.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},s.toDisplayString(o.getButton("wf_transfer").name),9,hE)):s.createCommentVNode("",!0),o.getButton("wf_delegate")?(s.openBlock(),s.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},s.toDisplayString(o.getButton("wf_delegate").name),9,uE)):s.createCommentVNode("",!0),o.getButton("wf_rollback")?(s.openBlock(),s.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},s.toDisplayString(o.getButton("wf_rollback").name),9,mE)):s.createCommentVNode("",!0),o.getButton("wf_terminate")?(s.openBlock(),s.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},s.toDisplayString(o.getButton("wf_terminate").name),9,fE)):s.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(s.openBlock(),s.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},s.toDisplayString(o.getButton("wf_add_instance").name),9,gE)):s.createCommentVNode("",!0),o.getButton("wf_cctask")?(s.openBlock(),s.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[s.createElementVNode("span",null,s.toDisplayString(o.getButton("wf_cctask").name),1)],8,yE)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,AE)):s.createCommentVNode("",!0),o.getButton("wf_print")?(s.openBlock(),s.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},s.toDisplayString(o.getButton("wf_print").name),9,kE)):s.createCommentVNode("",!0)])}const EE=Ye({name:"TopProcess",provide(){return{request:this.request}},components:{processBtns:oe(sE,[["render",bE],["__scopeId","data-v-5024d104"]]),TopTab:Kg,TopPopup:Fe,TopTips:tt,TopSumbitPopup:va},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},taskId:{require:!1,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},businessSubjectId:{default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.$nextTick(()=>{this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.processInstId,taskId:this.taskId}:{processInstId:this.processInstId}}).then(i=>{var n;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((n=i.data)==null?void 0:n.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const r=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=r;const o=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=o,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())})},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let r={};r.name="\u91CD\u65B0\u63D0\u4EA4",r.btnProps={type:"default"},e.push(r),r.click=o=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},e.push(r),r.click=o=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(r=>{let o={};o.name=r.name,o.btnProps={type:r.type},e.push(o),o.click=r.click}),["wf_edit"].map(r=>{if(!this.isView&&t.status=="todo"&&this.getButton(r)){let o={};o.name=this.getButton(r).name,o.btnProps={},o.key=o.name,o.click=()=>{this.$emit("clickCustomButton",o.name)},e.push(o)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"default"},r.click=async o=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.btnProps={type:"default"},r.click=o=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(r)}if(t.status=="todo"&&this.getButton("wf_add_instance")){let r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.click=o=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(r)}if(t.isReturnable&&t.isOwner){let r={};r.name="\u50AC\u529E",r.btnProps={type:"default"},r.click=o=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(r)}if(t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"default"},r.click=o=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(r)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:this.taskId?{processInstId:this.processIntId,taskId:this.taskId}:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],n=(i.currentName||"").split(","),r=(i.avatar||"").split(",");n=n.map((o,a)=>({realName:o,avatar:r[a]||"",phone:"",ancestorNames:[]})),t.currentMan=n,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(ja,e)}):this.showOperation(ja,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(_b,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(yk,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(XA,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(Zb,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(iE,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(n){console.error(n),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let n=0;n<i.branches.length;n++){let r=i.branches[n],o=r.nodeInfoDTO?r.nodeInfoDTO:r;try{o=await this.getSelectFixData(o,t)}catch(a){}r.nodeInfoDTO?r.nodeInfoDTO=o:r=o,i.branches[n]=r}else if(i.nodeType=="userTask"&&!i.setPersonnel){let n=Pa(i),r;try{r=await this.getNodeUser({deptId:t,intersection:n.intersection?1:0,userIds:n.userIds,postIds:n.postIds,deptIds:n.deptIds}),r.code==$enum.apiCode.success}catch(o){}r.code==200&&(i.userList=r.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let n=0;n<i.data.length;n++){let r=i.data[n];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,n,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=n||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=n||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId,subjectId:this.formData.subjectId||this.businessSubjectId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),b1="",CE={class:"process-warp"},wE={key:0,class:"process-main",id:"process-header",ref:"processheader"},NE={class:"process-ml-item border"},TE={class:"process-mli-value"},IE={class:"process-ml-item border"},BE={class:"process-mli-value"},xE={key:0,class:"process-ml-item"},SE={class:"process-mli-value",style:{width:"50%","text-align":"right"}},DE={class:"process-mliv-jd"},PE=["slot"],ME={slot:"default",style:{height:"100%"}},VE=["slot"],OE={key:0,class:"footBtnRow"},RE=["onClick"],LE={slot:"completeSlot"},vE=["onClick"],FE=["onClick"],jE={slot:"completeSlot"};function QE(e,t,i,n,r,o){const a=s.resolveComponent("TopTab"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("TopTips"),m=s.resolveComponent("TopSumbitPopup");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",CE,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(s.openBlock(),s.createElementBlock("div",wE,[s.createElementVNode("div",NE,[t[5]||(t[5]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),s.createElementVNode("div",TE,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(s.openBlock(),s.createElementBlock("div",{key:0,class:"process-mliv-dd",style:s.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},s.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",IE,[t[6]||(t[6]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),s.createElementVNode("div",BE,[s.createElementVNode("span",null,s.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(s.openBlock(),s.createElementBlock("div",xE,[t[7]||(t[7]=s.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),s.createElementVNode("div",SE,[s.createElementVNode("span",DE,s.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):s.createCommentVNode("",!0)],512)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"process-card",style:s.normalizeStyle({height:e.processCardHeight})},[s.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:s.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.selfTapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,slot:u.slot,style:{height:"100%"}},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,PE))),128)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",ME,[s.renderSlot(e.$slots,"default",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{style:{height:"100%"},key:p,slot:u.slot},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,VE))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:s.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(s.openBlock(),s.createElementBlock("div",OE,[s.renderSlot(e.$slots,"btn",{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-button",style:s.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.operBtn,(u,p)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[p<3?(s.openBlock(),s.createElementBlock("div",{class:"top-button",style:s.normalizeStyle(e.getBtnStyle((u.btnProps.type||"default").toString())),key:u.name,onClick:y=>u.click(u.name)},s.toDisplayString(u.name),13,RE)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},[...t[8]||(t[8]=[s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1)])])):s.createCommentVNode("",!0)],64))],64))],4))]),s.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:s.withCtx(()=>[s.createElementVNode("div",LE,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),s.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),s.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-elips",style:s.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.taskNodeList,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(u),key:u.taskId},s.toDisplayString(u.name),9,vE))),128)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.actionBtn,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>u.click(u.name),key:u.name},s.toDisplayString(u.name),9,FE))),128)),s.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:s.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),s.createVNode(m,s.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),s.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=u=>e.cctaskTopPopup=u),isDrawer:!0},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:s.withCtx(()=>[s.createElementVNode("div",jE,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const UE=oe(EE,[["render",QE],["__scopeId","data-v-773f6eab"]]),Qa={name:"ddy-process-h5",version:"1.0.1-rc.3.97",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Qa.name+"%c v"+Qa.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),qe.TopProcess=UE,qe.TopSumbitPopup=va,qe.ViewAttchList=zr,qe.attchViews=$t,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
13
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(n){i=n}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||gi.prototype.clear.call(this)},ue.prototype.destroy=function(){gi.prototype.destroy.call(this),pi(this._container)},ue.prototype.on=function(e,t,i,n){return this.get("eventBus").on(e,t,i,n)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=et(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const n=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,n,r),l=q(Bd(i,["additionalModules"]),{canvas:q({},i.canvas,{container:e}),modules:a});gi.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Qe('<div class="bjs-container"></div>');return Ee(t,{width:Na(e.width),height:Na(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=q({},this._moddleExtensions,e.moddleExtensions);return new Qm(t)},ue.prototype._modules=[];function Is(e,t){return e.warnings=t,e}function tf(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const sf={width:"100%",height:"100%",position:"relative"};function Na(e){return e+(Nt(e)?"px":"")}function nf(e,t){return t&&$e(e.diagrams,function(i){return i.id===t})||null}function rf(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ba+"</a>",n=Qe(i);Ee(et("svg",n),Ca),Ee(n,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(n),Jt.bind(n,"click",function(r){ef(),r.preventDefault()})}function Ei(e){ue.call(this,e)}rt(Ei,ue),Ei.prototype._modules=[lh,bo,Eh,Oo,jh],Ei.prototype._moddleExtensions={};var of=/^djs-cursor-.*$/;function Ta(e){var t=qt(document.body);t.removeMatching(of),e&&t.add("djs-cursor-"+e)}function af(){Ta(null)}var lf=5e3;function cf(e,t){t=t||"element.click";function i(){return!1}return e.once(t,lf,i),function(){e.off(t,i)}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ba(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}var df=15;function xa(e,t){var i;function n(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,n):e.off("element.mousedown",n)});function r(l){var c=i.start,m=i.button,u=Ba(l),p=Ia(u,c);if(!i.dragging&&pf(p)>df&&(i.dragging=!0,m===0&&cf(e),Ta("grab")),i.dragging){var y=i.last||i.start;p=Ia(u,y),t.scroll({dx:p.x,dy:p.y}),i.last=u}l.preventDefault()}function o(l){Jt.unbind(document,"mousemove",r),Jt.unbind(document,"mouseup",o),i=null,af()}function a(l){if(!mo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Ba(l)},Jt.bind(document,"mousemove",r),Jt.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!i}}xa.$inject=["eventBus","canvas"];function pf(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Ln={__init__:["moveCanvas"],moveCanvas:["type",xa]};function Sa(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Sa.prototype.next=function(){return this._prefix+ ++this._counter};var hf=new Sa("tt");function uf(e){var t=Qe('<div class="djs-tooltip-container" />');return Ee(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function mf(e,t,i){Ee(e,{left:t+"px",top:i+"px"})}function vn(e,t){e.style.display=t===!1?"none":""}var Da="djs-tooltip",Fn="."+Da;function Se(e,t){this._eventBus=e,this._canvas=t,this._ids=hf,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=uf(t.getContainer());var i=this;di.bind(this._tooltipRoot,Fn,"mousedown",function(n){n.stopPropagation()}),di.bind(this._tooltipRoot,Fn,"mouseover",function(n){i.trigger("mouseover",n)}),di.bind(this._tooltipRoot,Fn,"mouseout",function(n){i.trigger("mouseout",n)}),this._init()}Se.$inject=["eventBus","canvas"],Se.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Se.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,n=this.get(ho(i,"data-tooltip-id"));!n||(e==="mouseover"&&n.timeout&&this.clearTimeout(n),e==="mouseout"&&n.timeout&&(n.timeout=1e3,this.setTimeout(n)))},Se.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Se.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Se.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},Se.prototype.remove=function(e){var t=this.get(e);t&&(pi(t.html),pi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Se.prototype.show=function(){vn(this._tooltipRoot)},Se.prototype.hide=function(){vn(this._tooltipRoot,!1)},Se.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,n="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=n,this._tooltipRoot.style["-ms-transform"]=n},Se.prototype._addTooltip=function(e){var t=e.id,i=e.html,n,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Ze(i)&&(i=Qe(i)),n=Qe('<div data-tooltip-id="'+t+'" class="'+Da+'">'),Ee(n,{position:"absolute"}),n.appendChild(i),e.type&&qt(n).add("djs-tooltip-"+e.type),e.className&&qt(n).add(e.className),e.htmlContainer=n,r.appendChild(n),this._tooltips[t]=e,this._updateTooltip(e)},Se.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;mf(i,t.x,t.y)},Se.prototype._updateTooltipVisibilty=function(e){R(this._tooltips,function(t){var i=t.show,n=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),vn(n,r))})},Se.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const jn={__init__:["tooltips"],tooltips:["type",Se]},ff=e=>{var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[t.call(e)]},Qn=e=>{var t=ff(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var n=0,r=e.length;n<r;n++)i.push(Qn(e[n]));else if(t==="object")for(var o in e)i[o]=Qn(e[o]);return i};function gf(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),n=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),m=i.getDay(),p={YYYY:n,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][m]};for(let y in p)t=t.replace(y,p[y]);return t}function yf(e){e=Qn(e);const t={};e.forEach(n=>{t[n.historyActivityId]?t[n.historyActivityId].push(n):t[n.historyActivityId]=[n]});for(let n in t){const r=t[n];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==n);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(n=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=n;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:n.historyActivityId,class:!a&&n.historyActivityType!="candidate"?"nodePrimary":""};let m="";if(r||l&&l.length>0){if(m=`<span title='${r}'>${r}</span><br>`,o){let p=(o||"").replaceAll("/","-");m+=`<span title='${o}'>${p}</span><br>`}if(l&&l.length>0){let p,{type:y,fullMessage:k}=l.find(C=>C.action=="AddComment")||{};y=="assigneeComment"&&(p="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+k,c.class="nodeWarn"),y=="dispatchComment"&&(p="\u8C03\u5EA6\uFF1A"+k,c.class="nodeWarn"),y=="transferComment"&&(p="\u8F6C\u529E\uFF1A"+k,c.class="nodeWarn"),y=="delegateComment"&&(p="\u59D4\u6258\uFF1A"+k,c.class="nodeWarn"),y=="rollbackComment"&&(p="\u6307\u5B9A\u56DE\u9000\uFF1A"+k,c.class="nodeError"),y=="terminateComment"&&(p="\u7EC8\u6B62\uFF1A"+k,c.class="nodeError"),(y=="addMultiInstanceComment"||(y||"").includes("\u52A0\u7B7E"))&&(p="\u52A0\u7B7E\uFF1A"+k,c.class="nodeWarn"),y=="deleteMultiInstanceComment"&&(p="\u51CF\u7B7E\uFF1A"+k,c.class="nodeError"),y=="withdrawComment"&&(p="\u64A4\u9500\uFF1A"+k,c.class="nodeWarn"),y=="deleteProcessComment"&&(p="\u5220\u9664\u6D41\u7A0B\uFF1A"+k,c.class="nodeError"),y=="cancelProcessComment"&&(p="\u62D2\u7EDD\uFF1A"+k,c.class="nodeError"),y=="comment"&&(p="\u5BA1\u6279\uFF1A"+k,c.class="nodeSuccess"),p&&(m+=`<span title='${p}'>${p}</span>`)}c.tooltip=m}n.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&n.historyActivityType!="candidate"&&(c.class="nodeSuccess");const u=i.findIndex(p=>p.id==n.historyActivityId);u!=-1?i.splice(u,1,c):i.push(c)}),i}function Pa(e){const t=[],i=[],n=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&n.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(n)]}}function Ma(e){const t=[];return e.forEach(i=>{let{assigneeName:n,createTime:r,endTime:o,comments:a}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(r=r.replace(/-/g,"/"),o=o.replace(/-/g,"/"));const l={id:i.historyActivityId,class:!o&&i.historyActivityType!="candidate"?"nodePrimary":""};let c="";if(n||a&&a.length>0){if(c=`<span title='${n}'>${n}</span><br>`,r&&(c+=`<span title='${r}'>${gf(r,"YYYY-MM-DD HH:mm")}</span><br>`),a&&a.length>0){let u,{type:p,fullMessage:y}=a.find(k=>k.action=="AddComment")||{};p=="assigneeComment"&&(u="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+y,l.class="nodeWarn"),p=="dispatchComment"&&(u="\u8C03\u5EA6\uFF1A"+y,l.class="nodeWarn"),p=="transferComment"&&(u="\u8F6C\u529E\uFF1A"+y,l.class="nodeWarn"),p=="delegateComment"&&(u="\u59D4\u6258\uFF1A"+y,l.class="nodeWarn"),p=="rollbackComment"&&(u="\u6307\u5B9A\u56DE\u9000\uFF1A"+y,l.class="nodeError"),p=="terminateComment"&&(u="\u7EC8\u6B62\uFF1A"+y,l.class="nodeError"),(p=="addMultiInstanceComment"||(p||"").includes("\u52A0\u7B7E"))&&(u="\u52A0\u7B7E\uFF1A"+y,l.class="nodeWarn"),p=="deleteMultiInstanceComment"&&(u="\u51CF\u7B7E\uFF1A"+y,l.class="nodeError"),p=="withdrawComment"&&(u="\u64A4\u9500\uFF1A"+y,l.class="nodeWarn"),p=="deleteProcessComment"&&(u="\u5220\u9664\u6D41\u7A0B\uFF1A"+y,l.class="nodeError"),p=="cancelProcessComment"&&(u="\u62D2\u7EDD\uFF1A"+y,l.class="nodeError"),p=="comment"&&(u="\u5BA1\u6279\uFF1A"+y,l.class="nodeSuccess"),u&&(c+=`<span title='${u}'>${u}</span>`)}l.tooltip=c}i.historyActivityType=="sequenceFlow"?l.class="lineWarn":!l.class&&i.historyActivityType!="candidate"&&(l.class="nodeSuccess");const m=t.findIndex(u=>u.id==i.historyActivityId);m!=-1?t.splice(m,1,l):t.push({...i,...l})}),t}const Af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTuUAStZ2NQBbcBbKAHh4pkBCumQmk0ZvdCmTW+9/TBLKAHh4pkBCumQmk0ZvdCmTW2xtkwbs5UiCNXrj1BgnhFmYCWUAXyAJ6eKRAQrhmJpBGb3YrkFlv3yAL3s2RAmn0wq03SAi3M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ITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",Ef=Ye({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return Af},loading(){return kf},success(){return Un}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),i1="",bf={key:0},Cf={key:0,class:"top-tipss-text"},wf={class:"top-tipss-status"},Nf={key:0,class:"top-tipss-loadinig"},Tf=["src"],If={key:0,class:"top-tipss-status-text"},Bf={key:1,class:"top-tipss-success"},xf=["src"],Sf={key:0,class:"top-tipss-status-text"},Df={key:2,class:"top-tipss-error"},Pf=["src"],Mf={key:0,class:"top-tipss-status-text"};function Vf(e,t,i,n,r,o){return e.show?(s.openBlock(),s.createElementBlock("div",bf,[e.statusTips?(s.openBlock(),s.createElementBlock("div",{key:1,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[s.createElementVNode("div",wf,[e.type=="loading"?(s.openBlock(),s.createElementBlock("div",Nf,[s.createElementVNode("img",{src:e.loading},null,8,Tf),e.text?(s.openBlock(),s.createElementBlock("div",If,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="success"?(s.openBlock(),s.createElementBlock("div",Bf,[s.createElementVNode("img",{src:e.success},null,8,xf),e.text?(s.openBlock(),s.createElementBlock("div",Sf,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="error"?(s.openBlock(),s.createElementBlock("div",Df,[s.createElementVNode("img",{src:e.error},null,8,Pf),e.text?(s.openBlock(),s.createElementBlock("div",Mf,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])],4)):(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(s.openBlock(),s.createElementBlock("div",Cf,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)],4)),s.createElementVNode("div",{class:"top-tipss-mask",style:s.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):s.createCommentVNode("",!0)}const tt=oe(Ef,[["render",Vf],["__scopeId","data-v-239e459d"]]),Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfg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P0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Rf=Ye({name:"attchViews",components:{TopTips:tt,PreviewImage:ss,PreView:Fr,TopPopup:Fe},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Of},del(){return jr},doc(){return Qr},file(){return Ur},image(){return _r},pdf(){return Gr},xls(){return qr},zip(){return Jr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let n=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&n++,this.filesArr[c].name.includes(`(${n})`)&&n++,n>0){let m=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,m)} (${n}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),s1="",Lf={class:"attch-upload"},vf={key:0,class:"attch-upload-mask"},Ff={class:"attch-upload-body"},jf={class:"upload-header"},Qf={class:"upload-header-title"},Uf={key:0,class:"upload-header-title--re"},_f={class:"upload-header-upload"},Gf=["src"],qf={class:"upload-body"},Jf={key:0,class:"upload-list"},zf={class:"list-items-icon"},Kf=["src"],Hf=["src"],Wf=["src"],Yf=["src"],Xf=["src"],Zf=["src"],$f={class:"list-items-info"},eg={class:"info-name"},tg={class:"info-attribute"},ig={class:"info-attribute-size"},sg=["onClick"],ng={key:0,class:"list-items-operation"},rg=["onClick"],og=["src"];function ag(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("PreviewImage"),c=s.resolveComponent("PreView"),m=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",Lf,[e.buttonLoading?(s.openBlock(),s.createElementBlock("div",vf)):s.createCommentVNode("",!0),s.createElementVNode("div",Ff,[s.createElementVNode("div",jf,[s.createElementVNode("div",Qf,[t[3]||(t[3]=s.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(s.openBlock(),s.createElementBlock("span",Uf,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",_f,[e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[s.createElementVNode("img",{src:e.addFile},null,8,Gf),t[4]||(t[4]=s.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),s.createElementVNode("div",qf,[e.filesArr.length>0?(s.openBlock(),s.createElementBlock("div",Jf,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.filesArr,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:"list-items",key:u.uuid},[s.createElementVNode("div",zf,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Kf)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Hf)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Wf)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Yf)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Xf)):(s.openBlock(),s.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Zf))]),s.createElementVNode("div",$f,[s.createElementVNode("div",eg,s.toDisplayString(u.name),1),s.createElementVNode("div",tg,[s.createElementVNode("span",ig,s.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+s.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),s.createElementVNode("span",{class:"info-attribute-views",onClick:y=>e.viewFile(u,p)}," \u9884\u89C8 ",8,sg)])]),e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",ng,[s.createElementVNode("div",{onClick:y=>e.handleDel(p,u),class:"list-items-operation-img"},[s.createElementVNode("img",{src:e.del},null,8,og)],8,rg)]))]))),128))])):s.createCommentVNode("",!0)])]),s.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:s.withCtx(()=>[e.visibleS?(s.openBlock(),s.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const $t=oe(Rf,[["render",ag],["__scopeId","data-v-69217b12"]]),n1="",lg={name:"nf-flow",components:{attchViews:$t},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ma,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{my(e){let t="->",i="\u2192",n=e.comments[0].fullMessage;if(n.includes(t))return n.split(t)[1];if(n.includes(i)){let r=n.split(i)[1];return r=r.split("\uFF1A")[0],r}},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},cg={type:"flex",class:"process-flow"},dg=["timestamp"],pg={key:0},hg={key:1},ug={class:"flow-name"},mg={class:"flow-time"},fg={key:2},gg={class:"flow-name"},yg={class:"flow-time"},Ag={class:"flow-node"},kg={key:3,class:"flow-time"},Eg={class:"comment-user"},bg={key:1,style:{color:"gray","font-size":"12px"}},Cg={class:"comment-type"},wg={class:"comment-user"},Ng={key:0,style:{color:"gray","font-size":"12px"}},Tg={key:5,class:"flow-time"},Ig={class:"p-file"},Bg=["onClick"],xg=["onClick"];function Sg(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",cg,[s.createElementVNode("div",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.getColors(i.flowList),(a,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:"flow-item"},[a.historyActivityType=="endEvent"?(s.openBlock(),s.createElementBlock("p",pg,[...t[1]||(t[1]=[s.createElementVNode("b",null,"\u6D41\u7A0B\u5DF2\u7ED3\u675F",-1)])])):a.historyActivityType=="startEvent"?(s.openBlock(),s.createElementBlock("p",hg,[s.createElementVNode("span",ug,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?o.my(a):"")),1),t[2]||(t[2]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",mg,s.toDisplayString(a.createTime),1),t[3]||(t[3]=s.createTextVNode(" \u53D1\u8D77\u4E86\u6D41\u7A0B ",-1))])):(s.openBlock(),s.createElementBlock("p",fg,[s.createElementVNode("span",gg,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?o.my(a):"")),1),t[4]||(t[4]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",yg,s.toDisplayString(a.createTime),1),t[5]||(t[5]=s.createTextVNode(" \u5F00\u59CB\u5904\u7406 ",-1)),s.createElementVNode("span",Ag,s.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"),1),t[6]||(t[6]=s.createTextVNode(" \u73AF\u8282 ",-1))])),a.historyActivityDurationTime?(s.openBlock(),s.createElementBlock("p",kg," \u4EFB\u52A1\u5386\u65F6 "+s.toDisplayString(a.historyActivityDurationTime),1)):s.createCommentVNode("",!0),a.comments&&a.comments.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:4},s.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:m},[m<1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",{class:s.normalizeClass(["comment-type",a.class])},s.toDisplayString(r.commentMap[c.type]||c.type),3),s.createElementVNode("span",Eg,s.toDisplayString(c.userId),1),t[7]||(t[7]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),a.comments.filter(u=>u.action==="AddComment").length>1?(s.openBlock(),s.createElementBlock("span",{key:0,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...u)=>o.handleClick&&o.handleClick(...u))},[s.createTextVNode(s.toDisplayString(r.toggleText)+" ",1),s.createElementVNode("i",{class:s.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):s.createCommentVNode("",!0),c.time&&r.isFlag?(s.openBlock(),s.createElementBlock("p",bg,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),m>0&&r.isFlag?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("span",Cg,s.toDisplayString(r.commentMap[c.type]||c.type),1),s.createElementVNode("span",wg,s.toDisplayString(c.userId),1),t[8]||(t[8]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),c.time?(s.openBlock(),s.createElementBlock("p",Ng,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0)],64))),128)):s.createCommentVNode("",!0),a.endTime&&a.historyActivityType!="startEvent"?(s.openBlock(),s.createElementBlock("p",Tg,"\u7ED3\u675F\u65F6\u95F4: "+s.toDisplayString(a.endTime),1)):s.createCommentVNode("",!0),s.createElementVNode("div",Ig,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,Bg)):s.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(s.openBlock(),s.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,xg)):s.createCommentVNode("",!0)])],8,dg))],64))),256))])])}const Va=oe(lg,[["render",Sg],["__scopeId","data-v-edd515aa"]]),r1="",Dg={components:{processFlow:Va},inject:["request"],data(){return{visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),Ma(t)},openDrawer(e,t){let i=t.filter(n=>n.historyActivityType=="userTask");this.curData=i.filter(n=>n.historyActivityId==e.id),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}};function Pg(e,t,i,n,r,o){const a=s.resolveComponent("processFlow");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["bpmnnd-box",r.visible?"bpmnnd-box-active":""])},[s.createVNode(a,{style:{width:"70vw"},request:o.request,"flow-list":o.formatFlow(r.curData)},null,8,["request","flow-list"])],2)}const Mg=oe(Dg,[["render",Pg],["__scopeId","data-v-122d7775"]]),o1="",Vg={name:"bpmn-look",components:{bpmnNodeDetail:Mg},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{drawer:!1,isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(n){console.error(n)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(Ei)=="[object Function]"?Ei:Ei.default,t=Object.prototype.toString.call(jn)=="[object Object]"?jn:jn.default,i=Object.prototype.toString.call(Ln)=="[object Object]"?Ln:Ln.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:n})=>{n||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())}),this.viewer.on("element.click",n=>{n.type,n.element,n&&n.element&&(n.element.type||"").includes("UserTask")?(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(n.element,this.approvalData)):(this.drawer=!1,this.$refs.bpmnNodeDetailRef.closeDrawer(n.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom("fit-viewport","auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),n=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,m=0,u=0;t.addEventListener("touchstart",p=>{r=!0;const y=p.touches[0];o=y.clientX,a=y.clientY;const k=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(k[4]),c=parseFloat(k[5]);const C=this.getTransformMatrix(n.style.transform);this.isAdd?(m=parseFloat(C[4]),u=parseFloat(C[5])):(m=parseFloat(C[4])+30,u=parseFloat(C[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",p=>{if(!r)return;const y=p.touches[0],k=y.clientX-o,C=y.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+k} ${c+C})`),n.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${m+k}, ${u+C});`)),e._cachedViewbox&&(e._cachedViewbox.x=k,e._cachedViewbox.y=C),p.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),n=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+90),n.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=yf(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}};function Og(e,t,i,n,r,o){const a=s.resolveComponent("bpmnNodeDetail");return s.openBlock(),s.createElementBlock("div",{ref:"container",class:"bpmn-look",onWheel:t[0]||(t[0]=(...l)=>e.handleWheel&&e.handleWheel(...l))},[s.createVNode(a,{ref:"bpmnNodeDetailRef",onClose:o.closeDetail},null,8,["onClose"])],544)}const Oa=oe(Vg,[["render",Og],["__scopeId","data-v-ae1272fe"]]),Rg=Ye({name:"TopTab",components:{processFlow:Va,BpmnLook:Oa,TopPopup:Fe,ViewAttchList:zr,PreviewImage:ss},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,n)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),t},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let n=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+n}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let n=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-n}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),a1="",Lg={class:"tops-tab"},vg={class:"tops-tab-header"},Fg=["onClick"],jg={key:0,class:"bottom-line"},Qg={class:"tops-tab-body"},Ug=["name"],_g={key:2,class:"textnone"},Gg={key:2,style:{height:"100%"}},qg={key:1,class:"textnone"},Jg={class:"seal-list__item--option"},zg={style:{"max-width":"100px"}},Kg={class:"seal-list__item--option"},Hg={style:{"max-width":"100px"}},Wg={class:"seal-list__item--option"},Yg={style:{"max-width":"100px"}};function Xg(e,t,i,n,r,o){const a=s.resolveComponent("BpmnLook"),l=s.resolveComponent("processFlow"),c=s.resolveComponent("ViewAttchList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("PreviewImage");return s.openBlock(),s.createElementBlock("div",Lg,[s.createElementVNode("div",vg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,(p,y)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tops-tab-header-items",[p.key===e.active?"active":""]]),onClick:k=>e.handleActive(p.key,y)},s.toDisplayString(p.label),11,Fg))),256)),e.isTapList.length?(s.openBlock(),s.createElementBlock("div",jg)):s.createCommentVNode("",!0)]),s.createElementVNode("div",Qg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,p=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:p.key,style:{height:"100%"},class:s.normalizeClass([p.key==="c"&&"tops-tab-body-taskcommentlist"])},[p.key==="a"&&p.type==="default"?s.renderSlot(e.$slots,"default",{key:0},void 0,!0):s.createCommentVNode("",!0),e.active===p.key&&p.key==="b"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:p.slot},[e.processXml?(s.openBlock(),s.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):s.createCommentVNode("",!0),p.key==="b"&&e.processXml?(s.openBlock(),s.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(s.openBlock(),s.createElementBlock("div",_g," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,Ug)):s.createCommentVNode("",!0),p.key==="c"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",Gg,[p.key==="c"&&e.ProcessInsObj.flow?(s.openBlock(),s.createBlock(l,{key:0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["request","flow-list","onView"])):(s.openBlock(),s.createElementBlock("div",qg,"\u6682\u65E0\u6570\u636E"))])):s.createCommentVNode("",!0),p.type=="slot"?s.renderSlot(e.$slots,p.slot,{key:3},void 0,!0):s.createCommentVNode("",!0)],2)),[[s.vShow,e.active===p.key]])),128))]),s.createVNode(m,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:s.withCtx(()=>[s.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),s.createVNode(u,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=p=>e.signPreViewVisible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=p=>e.visibleTack=p),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:s.withCtx(()=>[e.trackListss&&e.trackListss.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.trackListss,(p,y)=>(s.openBlock(),s.createElementBlock("div",{key:p.id,class:"seal-list__item"},[s.createElementVNode("div",null,[s.createElementVNode("div",Jg,[t[4]||(t[4]=s.createElementVNode("span",null,"\u5E8F\u53F7",-1)),s.createElementVNode("span",zg,s.toDisplayString(y+1),1)]),s.createElementVNode("div",Kg,[t[5]||(t[5]=s.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),s.createElementVNode("span",Hg,s.toDisplayString(p.historyActivityName),1)]),s.createElementVNode("div",Wg,[t[6]||(t[6]=s.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),s.createElementVNode("span",Yg,s.toDisplayString(p.assigneeName),1)])])]))),128)):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Zg=oe(Rg,[["render",Xg],["__scopeId","data-v-3cb88319"]]),$g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7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EJQgKOBItufYIckMFIwGHdzCTnJIEMQgKOJEu+5xmyQJyRgGPPViY6Kw3ECQk4Ei343qfIA+mMBBx7NzLZeYD8N5AO/7EoOJItd4/nAOQkxR1IwNFjGxPWAMj/hmJAAo6Ei93rSQA5k+QGJODotYlJ6wDkicGsQAKOpEvd81kAuZDmBSTg6LmFiWsB5JnhnEECjsQL3ftpAFmR6AmSa/5pnhWBFfoEICuHeUTy+Wb5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",ty=Ye({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let n=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=n[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return $g},check(){return ey}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),l1="",iy={class:"top-select"},sy={key:0,style:{position:"relative","z-index":"80"}},ny=["src"],ry=["onClick"],oy=["src"];function ay(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",iy,[e.isSlots?(s.openBlock(),s.createElementBlock("div",sy,[s.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[s.createTextVNode(s.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,ny))],2)),e.maskShow?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-select-option-mask",style:s.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):s.createCommentVNode("",!0),e.lists&&e.lists.length?(s.openBlock(),s.createElementBlock("div",{key:3,class:s.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:s.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.lists,(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[s.createTextVNode(s.toDisplayString(a.name)+" ",1),e.active==a.id?(s.openBlock(),s.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,oy)):s.createCommentVNode("",!0)],10,ry))),128))],6)):s.createCommentVNode("",!0)])}const Ra=oe(ty,[["render",ay],["__scopeId","data-v-15c177a8"]]),ly="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kkt4HoA0ODgSI9hkhfAAtDvYk3MQ3IXx/jSZzR3apClIcq0v1TpJufV+H/aoM/KLBDAZOApGnUwQHdUaQThQgOkej+x2W4UbANk84UMAfIqmo8VNB5eFrQKapJBaU77sIUIG9u4zVzncENwUCBbuYX4Z5rAO18K2AGkMPP8UFpSrUrgphy7VJowv9uApAGleNlyIewoHPc5ZowCVtcbw5IxTXHruhjTbJLoQn+e1NADMExhn6YX4bjCeYBXLZYQRquO7YnRKBzLNrBy6hAswpisHqgioCL3xRoBojJ6rGSJxJ9wINE0JIUaAJI2ltFcbmFxOof1iJWI1N5XG0A+RTvKNBZZV+zugsLOsVt3yzJXF7cBpDb+E1sA6JWWCLdz/8O51rmYbcPBaoD0sH0Cov1PnK3yiirA2LgqfnewmKatbdUbi+sDshhB+uP53vgWIe4Tfx9HQMgrymFh4b75pHb6+oD0sMCHc9D3CZ8rmMA5BXF8MAwN538XQ9AAIi/rBb0qD4g7V6MypYNFSRbMncNAAgW6e6SWtKh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GbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",c1="",cy=Ye({name:"selectFixedPerson",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],originFixedPersonList:[],mySelect:[],mySelectIds:[],searchText:"",showSelectPerson:!1}},watch:{searchText(){this.handleSearchPerson()},visible:{handler(e,t){this.showFixedPerson=e,e?(this.originFixedPersonList=this.list||[],this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.originFixedPersonList=[],this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},originFixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{handleClearSearch(){this.searchText="",this.handleSearchPerson()},handleSearchPerson(){this.fixedPersonList=this.originFixedPersonList.filter(e=>e.realName.includes(this.searchText))},expandSelect(){this.showSelectPerson=!0},updateSelectVisible(e){this.showSelectPerson=e},updateVisible(e){this.$emit("updateVisible",e)},handleRemoveSelect(e){this.mySelect=this.mySelect.filter(t=>t.userId!==e.userId),this.mySelectIds=this.mySelect.map(t=>t.userId),this.$emit("updateSelect",this.mySelect)},handleClearSelect(){this.mySelect=[],this.mySelectIds=[],this.$emit("updateSelect",this.mySelect)},handleClickFixedPerson(e){this.multiple||(this.mySelect=[],this.mySelectIds=[]),this.multiple?this.mySelectIds.includes(e.userId)?(this.mySelect=this.mySelect.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}}),dy={class:"st-head"},py={class:"s-tree"},hy=["onClick"],uy={key:0,class:"radio-select"},my={key:1,class:"radio-select-not"},fy=["src"],gy={key:3,class:"node-avatar-text"},yy={class:"node-name"},Ay={class:"node-name-text"},ky={class:"node-name-phone"},Ey={class:"st-footer-box"},by={class:"st-footer"},Cy={class:"st-footer-text"},wy={class:"st-footer-right"},Ny={class:"s-thead"},Ty={class:"s-thead-left"},Iy={class:"s-thead-right"},By={class:"s-tree"},xy=["onClick"],Sy={class:"stt-node-left"},Dy=["src"],Py={key:1,class:"node-avatar-text stt-node-avatar-text"},My={class:"node-name"},Vy={class:"node-name-text"},Oy={class:"node-name-phone"},Ry={class:"stt-node-right"};function Ly(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createBlock(a,{visible:e.showFixedPerson,"onUpdate:visible":e.updateVisible,ref:"TopPopupFixedPerson",titleText:"\u9009\u62E9\u4EBA\u5458("+e.originFixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},{default:s.withCtx(()=>[s.createElementVNode("div",dy,[s.withDirectives(s.createElementVNode("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>e.searchText=l),placeholder:"\u8F93\u5165\u67E5\u8BE2",class:"st-head-input",onKeyup:t[1]||(t[1]=s.withKeys((...l)=>e.handleSearchPerson&&e.handleSearchPerson(...l),["enter"]))},null,544),[[s.vModelText,e.searchText]]),s.withDirectives(s.createElementVNode("div",{class:"st-head-clear",onClick:t[2]||(t[2]=(...l)=>e.handleClearSearch&&e.handleClearSearch(...l))},[...t[8]||(t[8]=[s.createElementVNode("svg",{t:"1766114768811",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7665"},[s.createElementVNode("path",{d:"M507.168 473.232L716.48 263.936a16 16 0 0 1 22.624 0l11.312 11.312a16 16 0 0 1 0 22.624L541.12 507.168 750.4 716.48a16 16 0 0 1 0 22.624l-11.312 11.312a16 16 0 0 1-22.624 0L507.168 541.12 297.872 750.4a16 16 0 0 1-22.624 0l-11.312-11.312a16 16 0 0 1 0-22.624l209.296-209.312-209.296-209.296a16 16 0 0 1 0-22.624l11.312-11.312a16 16 0 0 1 22.624 0l209.296 209.296z","p-id":"7666",fill:"#cdcdcd"})],-1)])],512),[[s.vShow,e.searchText]])]),s.createElementVNode("div",py,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.fixedPersonList],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[e.mySelectIds.includes(l.userId)?(s.openBlock(),s.createElementBlock("div",uy,[...t[9]||(t[9]=[s.createElementVNode("svg",{t:"1758260488735",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"},[s.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"})],-1)])])):(s.openBlock(),s.createElementBlock("div",my,[...t[10]||(t[10]=[s.createElementVNode("svg",{t:"1758260589679",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"},[s.createElementVNode("path",{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"})],-1)])])),l.avatar?(s.openBlock(),s.createElementBlock("img",{key:2,class:"node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,fy)):(s.openBlock(),s.createElementBlock("div",gy,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",yy,[s.createElementVNode("div",Ay,s.toDisplayString(l.realName),1),s.createElementVNode("div",ky,s.toDisplayString(l.phonenumber),1)])],8,hy))),128))]),s.createElementVNode("div",Ey,[s.createElementVNode("div",by,[s.createElementVNode("div",{class:"st-footer-left",onClick:t[3]||(t[3]=(...l)=>e.expandSelect&&e.expandSelect(...l))},[s.createElementVNode("div",Cy,"\u5DF2\u9009\u62E9"+s.toDisplayString(e.mySelectIds.length)+"\u4E2A\u6210\u5458",1),t[11]||(t[11]=s.createElementVNode("div",{class:"st-footer-svg"},[s.createElementVNode("svg",{t:"1766111528552",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4604",id:"mx_n_1766111528554"},[s.createElementVNode("path",{d:"M166.997333 751.850667L106.666667 691.498667 520.832 277.333333l414.165333 414.165334L874.666667 751.850667 520.832 398.016z",fill:"#1389ff","p-id":"4605"})])],-1))]),s.createElementVNode("div",wy,[s.createElementVNode("div",{class:"st-footer-btn",onClick:t[4]||(t[4]=(...l)=>e.handleSumbitFixedPerson&&e.handleSumbitFixedPerson(...l))},"\u786E\u5B9A")])])]),s.createVNode(a,{visible:e.showSelectPerson,"onUpdate:visible":e.updateSelectVisible,showHeader:!1,ref:"TopPopupSelectPerson",isIndex:120,className:"sumbmitPopup-index"},{default:s.withCtx(()=>[s.createElementVNode("div",Ny,[s.createElementVNode("div",Ty," \u5DF2\u9009\u62E9\u4EBA\u5458("+s.toDisplayString(e.mySelect.length)+") ",1),s.createElementVNode("div",Iy,[s.createElementVNode("div",{class:"s-thead-btn",onClick:t[5]||(t[5]=(...l)=>e.handleClearSelect&&e.handleClearSelect(...l))},"\u6E05\u7A7A"),s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[6]||(t[6]=l=>e.updateSelectVisible(!1))},"\u5173\u95ED")])]),s.createElementVNode("div",By,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.mySelect],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node stt-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[s.createElementVNode("div",Sy,[l.avatar?(s.openBlock(),s.createElementBlock("img",{key:0,class:"node-avatar stt-node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,Dy)):(s.openBlock(),s.createElementBlock("div",Py,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",My,[s.createElementVNode("div",Vy,s.toDisplayString(l.realName),1),s.createElementVNode("div",Oy,s.toDisplayString(l.phonenumber),1)])]),s.createElementVNode("div",Ry,[s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[7]||(t[7]=(...c)=>e.handleRemoveSelect&&e.handleRemoveSelect(...c))},"\u79FB\u9664")])],8,xy))),128))])]),_:1},8,["visible","onUpdate:visible"])]),_:1},8,["visible","onUpdate:visible","titleText","comfig"])}const La=oe(cy,[["render",Ly],["__scopeId","data-v-f68e835c"]]),vy=Ye({name:"TopSubmitPopup",components:{SelectFixedPerson:La,BpmnLook:Oa,TopPopup:Fe,TopDownSelect:Ra,PreviewImage:ss,departPerson:yt.departPerson,TopTips:tt},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return ly}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async getTaskModelDetail(){this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.extraParams.processId||this.extraParams.processInstId,taskId:this.taskId}:{processInstId:this.extraParams.processId||this.extraParams.processInstId}}).then(e=>{if(e.code==200){this.handleTips("",!1,"success");let t=(e.data||{}).process||{};this.checkedItem={id:t.processDefinitionId,key:t.processDefinitionKey,name:t.processDefinitionName,version:t.processDefinitionVersion},this.option=[this.checkedItem],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.businessDeptIdData||this.getNodeUserDept()}})},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,subjectId:this.businessSubjectId,processGroupName:this.processNameData,...this.extraParams};if(this.processNameData&&delete e.processGroupName,this.extraParams.processId||this.extraParams.processInstId){this.getTaskModelDetail();return}await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Pa(e);let n;try{n=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){}if(n.code==200){const r=this.firstPerson[t];r.userList=n.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let n={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!this.businessDeptIdData,id:m.users.map(u=>u.id),subjectId:m.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.selectDefaultValue!=e.id&&(this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t))},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{i.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(n=>{let r=[],o=[],a=!1;n.data.map(c=>{c.posts.map(m=>{o.push(...m.users),m.users.length==1?r.push(...m.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];n.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(m=>m.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.personObjId]=e,this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((n,r)=>{i.push(n.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((n,r)=>{t=n.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({id:n.id,subjectId:n.subjectId,type:n.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,n)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{businessType:this.businessType,deptId:this.businessDeptIdData,reactivate:!0,showType:"all",subjectId:this.businessSubjectId,...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),d1="",Fy={class:"sumbmitPopup-index-sumbit"},jy={class:"sumbmitPopup-select"},Qy={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},Uy=["src"],_y={key:0,class:"person-views"},Gy={class:"views-items-label"},qy={class:"views-items-name"},Jy={class:"views-items-name-left"},zy={key:0,class:"views-items-name--re"},Ky={class:"views-items-set"},Hy={key:0},Wy={key:0},Yy={key:1},Xy={key:2},Zy={key:3},$y=["onClick"],eA=["onClick"],tA={key:0,class:"views-items-includes"},iA={class:"views-items-and2"},sA={key:0},nA={class:"include"},rA={class:"include include-name"},oA={key:1,class:"person-views"},aA={class:"views-items"},lA={class:"views-items-name"},cA={class:"views-items-set"},dA=["onClick"],pA={key:1},hA={key:0},uA={key:2},mA={key:3},fA={key:2,class:"person-views-white"},gA={style:{height:"100%"}},yA={class:"tree"},AA=["onClick"],kA={key:0,class:"children"},EA=["onClick"],bA={style:{margin:"20px"}},CA=["innerHTML"],wA={class:"timeline"},NA={class:"item-top"},TA={class:"top-spot"},IA={class:"top-title"},BA={style:{color:"#009800"}};function xA(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("BpmnLook"),p=s.resolveComponent("PreviewImage"),y=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",Fy,[t[16]||(t[16]=s.createElementVNode("div",{class:"top-popup"},null,-1)),s.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=k=>(e.show=k,e.$emit("update:visible",k))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:s.withCtx(()=>[s.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:s.withCtx(k=>[s.createElementVNode("div",jy,[s.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...C)=>e.handleSelect&&e.handleSelect(...C))},[t[10]||(t[10]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(k.data.name?k.data.name:k.data.placeholder),3)]),e.businessDeptIdData?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...C)=>e.handleDeptSelect&&e.handleDeptSelect(...C))},[t[11]||(t[11]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)])),s.createElementVNode("div",Qy,[e.checkedItem.id?(s.openBlock(),s.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...C)=>e.handleFlowSelect&&e.handleFlowSelect(...C))},[s.createElementVNode("img",{src:e.ProcessImg},null,8,Uy),t[12]||(t[12]=s.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):s.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(s.openBlock(),s.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...C)=>e.viewFlowForecast&&e.viewFlowForecast(...C))}," \u6D41\u7A0B\u9884\u6D4B ")):s.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(s.openBlock(),s.createElementBlock("div",_y,[t[14]||(t[14]=s.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.firstPerson,(k,C)=>{var v;return s.openBlock(),s.createElementBlock("div",{class:"views-items",key:C},[s.createElementVNode("div",Gy,[s.createElementVNode("div",qy,[s.createElementVNode("div",Jy,[s.createTextVNode(s.toDisplayString(k.name)+" ",1),C==0?(s.openBlock(),s.createElementBlock("span",zy,"*")):s.createCommentVNode("",!0)])]),s.createElementVNode("div",Ky,[e.partNode[k.id]&&e.partNode[k.id].length?(s.openBlock(),s.createElementBlock("div",Hy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[k.id],(F,z)=>(s.openBlock(),s.createElementBlock("span",{key:z},s.toDisplayString(z>=3?"":z==0?F:`,${F}`),1))),128)),e.partNode[k.id].length>3?(s.openBlock(),s.createElementBlock("span",Wy,"...\u7B49"+s.toDisplayString(e.partNode[k.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):k.routeTxt&&k.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Yy,s.toDisplayString(k.routeTxt.userNames),1)):s.createCommentVNode("",!0),k.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||k.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((v=e.partNode[k.id])==null?void 0:v.length)>0&&k.noPersonnel?(s.openBlock(),s.createElementBlock("div",Xy)):k.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||k.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||k.noPersonnel?(s.openBlock(),s.createElementBlock("div",Zy," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):k.userList&&k.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:F=>e.handleOpenFixedPerson(k)}," \u9009\u62E9 ",8,$y)):(s.openBlock(),s.createElementBlock("div",{key:5,class:"views-items-set-btn",onClick:F=>e.handleOpenPerson(k)}," \u8BBE\u7F6E ",8,eA))])]),k.routeTxt&&k.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",tA,[t[13]||(t[13]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",iA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.routeTxt,(F,z)=>(s.openBlock(),s.createElementBlock("div",{key:F.type},[F.ids&&F.ids.length>0?(s.openBlock(),s.createElementBlock("div",sA,[s.createElementVNode("div",nA,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+F.type]])},s.toDisplayString(F.type=="user"?"\u7528\u6237":F.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",rA,s.toDisplayString(F.name),1)]),z!==k.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(F.assigneeRetain?"true":"false")]])},s.toDisplayString(k.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)])}),128))])):s.createCommentVNode("",!0),e.personList&&e.personList.length?(s.openBlock(),s.createElementBlock("div",oA,[t[15]||(t[15]=s.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.personList,(k,C)=>(s.openBlock(),s.createElementBlock("div",aA,[s.createElementVNode("div",lA,s.toDisplayString(k.name),1),s.createElementVNode("div",cA,[k.noPersonnel?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(k)}," \u8BBE\u7F6E ",8,dA)),e.partNode[k.id]&&e.partNode[k.id].length?(s.openBlock(),s.createElementBlock("div",pA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[k.id],(v,F)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(F>=3?"":F==0?v:`,${v}`),1))),256)),e.partNode[k.id].length>3?(s.openBlock(),s.createElementBlock("span",hA,"...\u7B49"+s.toDisplayString(e.partNode[k.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):k.noPersonnel?(s.openBlock(),s.createElementBlock("div",uA,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(s.openBlock(),s.createElementBlock("div",mA))])]))),256))])):s.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(s.openBlock(),s.createElementBlock("div",fA," \u65E0\u9700\u8BBE\u7F6E ")):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=k=>e.visiblePerson=k),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:s.withCtx(()=>[s.createElementVNode("div",gA,[e.visiblePerson?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=k=>e.showDept=k),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:s.withCtx(()=>[s.createElementVNode("div",yA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.deptList],k=>(s.openBlock(),s.createElementBlock("div",{class:"node",key:k.id},[s.createElementVNode("div",{class:"node-p",onClick:C=>e.handleClickDept(k)},s.toDisplayString(k.label),9,AA),k.children?(s.openBlock(),s.createElementBlock("div",kA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.children,C=>(s.openBlock(),s.createElementBlock("div",{class:"node-s",onClick:v=>e.handleClickDept(C),key:C.id},s.toDisplayString(C.label),9,EA))),128))])):s.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),s.createVNode(m,{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:!0,select:e.fixedSelect[e.personObjId]||[],onUpdateList:e.handleClickFixedPerson,onUpdateVisible:e.updateFixedPersonVisible,onUpdateSelect:e.updateFixedSelect,onConfirm:e.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=k=>e.showFlow=k),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:s.withCtx(()=>[e.showFlow&&e.processXml?(s.openBlock(),s.createBlock(u,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(p,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=k=>e.taskurlshow=k),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),s.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=k=>e.flowForecastVisible=k),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:s.withCtx(()=>[s.createElementVNode("div",bA,[s.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,CA),s.createElementVNode("div",wA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.flowForecastData.processBudgetModelList,(k,C)=>(s.openBlock(),s.createElementBlock("div",{class:"timeline-item",key:C},[s.createElementVNode("div",NA,[s.createElementVNode("div",TA,[s.createElementVNode("div",{class:s.normalizeClass(["spot",{active:C==0}])},null,2)]),s.createElementVNode("div",IA,s.toDisplayString(k.title),1)]),s.createElementVNode("div",{class:s.normalizeClass(["item-bottom",{last:C==e.flowForecastData.processBudgetModelList.length-1}])},[s.createElementVNode("span",BA," \u6267\u884C\u4EBA\uFF1A"+s.toDisplayString(k.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const va=oe(vy,[["render",xA],["__scopeId","data-v-862ceab8"]]),SA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRhmbRP/+Gk6vRHGJdSCAAKpOBQqiWJji2MMD/GguWZl0SUVgehYfov01sJ4oQuzEOLN0XR6XaF7owqJQITpdiCM9d7MmhCvsV/5SUYg+eye1fzy/v1Z28XPonDSMHPrFZ8uOQ2zY0UgdmbPhfHu3UnTHHxqmnBWGKp2dWxXBmEEkgFtWcXzqrG5W/GKvUl60hFIOqvBWKqELs267ukcy/U6KQTyOqMfSvwzmXyMofmUUdVTFUSSkA0EkgBptcieiGPZJUTySv4RiEEgeyYORJKQewSSAKkvMswNeWLnQpgdTe9Ok0uP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OrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",p1="",DA={name:"msgList",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return SA}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},PA={key:0,class:"top-msg"},MA=["onClick"],VA={class:"top-msg-items-text"},OA=["onClick"],RA=["src"];function LA(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",null,[i.visible?(s.openBlock(),s.createElementBlock("div",PA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.listData,l=>(s.openBlock(),s.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[s.createElementVNode("div",VA,s.toDisplayString(l.opinionName),1),s.createElementVNode("div",{class:"top-msg-items-del",onClick:s.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[s.createElementVNode("img",{src:o.Del},null,8,RA)],8,OA)],8,MA))),256))])):s.createCommentVNode("",!0),s.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Qi=oe(DA,[["render",LA],["__scopeId","data-v-87fc3e49"]]),h1="",vA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e=[];this.multiNodeParticipant[this.partObjId].map((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=e[1]?JSON.parse(e[1]):!1,this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},FA={class:"process-popup-content"},jA={class:"process-popup-content-msg"},QA={key:0},UA={class:"process-pc-value"},_A={class:"process-popup-textarea"},GA={class:"process-popup-textarea-num"},qA={key:0,class:"msg-btn"},JA={key:0,class:"process-popup-content-person"},zA=["onClick"],KA={class:"process-pc-value--people"},HA={key:0,class:"process-pc-value--data"},WA={key:1,class:"process-pc-value--data",style:{color:"#888"}},YA=["onClick"],XA={class:"process-pc-value--people"},ZA={key:0,class:"process-pc-value--data"},$A={key:1,class:"process-pc-value--data",style:{color:"#888"}},ek={style:{height:"100%"}};function tk(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",FA,[s.createElementVNode("div",jA,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",QA,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",UA,[s.createElementVNode("div",_A,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",GA,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",qA,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",JA,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",KA,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",HA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",WA,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,zA)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",XA,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",ZA,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",$A,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,YA)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",ek,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const ik=oe(vA,[["render",tk],["__scopeId","data-v-86bb40b8"]]),u1="",sk={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},nk={class:"process-popup-content"},rk={class:"process-popup-content-msg"},ok={key:0},ak={class:"process-pc-value"},lk={class:"process-popup-textarea"},ck={class:"process-popup-textarea-num"},dk={key:0,class:"msg-btn"},pk={key:0,class:"process-popup-content-person"},hk=["onClick"],uk={class:"process-pc-value--people"},mk={key:0,class:"process-pc-value--data"},fk={key:1,class:"process-pc-value--data",style:{color:"#888"}},gk=["onClick"],yk={class:"process-pc-value--people"},Ak={key:0,class:"process-pc-value--data"},kk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ek={style:{height:"100%"}};function bk(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",nk,[s.createElementVNode("div",rk,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",ok,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",ak,[s.createElementVNode("div",lk,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",ck,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",dk,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",pk,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",uk,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",mk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",fk,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,hk)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",yk,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",Ak,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,k)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(k==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",kk,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,gk)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",Ek,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const Ck=oe(sk,[["render",bk],["__scopeId","data-v-73a21e66"]]),wk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8cekgdJCEFOGylQJL5o2XzswM0iqT7FtUgTLzxumREq9X00ZcsYpWAM4uKlBq3jjdgO9BKLkVKHC/e2dmnwtHkg4HHaRwxnD3ggL3uwmMCZCSnypwAEjJlOHrVIGMeWO/QzU4AISizlFg3suGkb2rwgEgkRRhc12BnGG8euc4BMlTLAq+nAJlv/w7Plf1zgEg5coCT5MCpb/8e1a1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jEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",m1="",f1="",Nk={name:"TreeNode",components:{SelectFixedPerson:La,TopPopup:Fe,TopTips:tt,departPerson:yt.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(n=>{this.partNodeArr,this.multiNodeParticipant;const r=this.partNodeArr[i.id].find(a=>a.name==n.name),o=this.multiNodeParticipant[i.id].find(a=>a==n.id);r||this.partNodeArr[i.id].push(n),o||this.multiNodeParticipant[i.id].push(n.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(n.id)||this.multiNodeParticipant[i.id].push(n.id),this.partNode[i.id].includes(n.name)||this.partNode[i.id].push(n.name),this.partNodeArr[i.id].find(r=>r.name==n.name)||this.partNodeArr[i.id].push(n)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let n={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:m.users.map(u=>u.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(n=>{n.code==200&&(this.personMakeList=n.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Un}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,n)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.partObjId]=e,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,r)=>{i.push({type:3,id:n.id,subjectId:n.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{n.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},Tk={key:0,class:"treenode"},Ik={key:0,class:"treenode-multi"},Bk={class:"treenode-node",style:{"margin-top":"0"}},xk=["onClick"],Sk=["src"],Dk=["onClick"],Pk={class:"treenode-node"},Mk={key:0},Vk={key:1,class:"personselect"},Ok={class:"personselect-name"},Rk={class:"items-person"},Lk=["onClick"],vk=["onClick"],Fk={key:2,class:"items-person-name"},jk={key:3,class:"items-person-name"},Qk={key:4,class:"items-person-name"},Uk={key:0,class:"views-items-includes"},_k={class:"views-items-and2"},Gk={key:0},qk={class:"include"},Jk={class:"include include-name"},zk={class:"treenode-node"},Kk={key:0},Hk={key:1,class:"personselect"},Wk={class:"personselect-name"},Yk={class:"items-person"},Xk=["onClick"],Zk=["onClick"],$k={key:2,class:"items-person-name"},e0={key:3,class:"items-person-name"},t0={key:4,class:"items-person-name"},i0={key:0,class:"views-items-includes"},s0={class:"views-items-and2"},n0={key:0},r0={class:"include"},o0={class:"include include-name"},a0={key:1,class:"treenode-single"},l0={class:"treenode-single-items"},c0={class:"personselect"},d0={class:"personselect-name"},p0={key:0,class:"items-person"},h0=["onClick"],u0=["onClick"],m0={key:2,class:"items-person-name"},f0={class:"items-person-name"},g0={key:0},y0={key:1,class:"views-items-includes"},A0={class:"views-items-and2"},k0={key:0},E0={class:"include"},b0={class:"include include-name"};function C0(e,t,i,n,r,o){const a=s.resolveComponent("TreeNode",!0),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",Tk,[i.endNode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ik,[s.createElementVNode("div",Bk,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(p.id)?"treenode-checkbox-active":""]),onClick:y=>o.handleCheckBoxClick(p)},[s.createElementVNode("span",null,[r.checkBoxArr.includes(p.id)?(s.openBlock(),s.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,Sk)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,xk)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["treenode-radio",r.radioArr==p.id?"treenode-radio-active":""]),onClick:y=>o.handleRadioClick(p)},[t[1]||(t[1]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,Dk)):s.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.checkBoxItem,p=>(s.openBlock(),s.createElementBlock("div",Pk,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Mk,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",Vk,[s.createElementVNode("div",Ok,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",Rk,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,Lk)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,vk)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",Fk,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",jk,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Qk,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",Uk,[t[2]||(t[2]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",_k,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,k)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",Gk,[s.createElementVNode("div",qk,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",Jk,s.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.radioItem,p=>(s.openBlock(),s.createElementBlock("div",zk,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Kk,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",Hk,[s.createElementVNode("div",Wk,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",Yk,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,Xk)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Zk)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",$k,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",e0,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",t0,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",i0,[t[3]||(t[3]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",s0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,k)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",n0,[s.createElementVNode("div",r0,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",o0,s.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0)])),i.endNode?(s.openBlock(),s.createElementBlock("div",a0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock("div",l0,[s.createElementVNode("div",c0,[s.createElementVNode("div",d0,s.toDisplayString(p.name||p.nodeName),1),p.nodeType!=="endEvent"?(s.openBlock(),s.createElementBlock("div",p0,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,h0)):p.setPersonnel?(s.openBlock(),s.createElementBlock("div",m0,s.toDisplayString((p.assignees||[]).map(y=>y.name).join(",")),1)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,u0)),s.createElementVNode("div",f0,[!r.partNode[p.id]&&p.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&p.noPersonnel?(s.openBlock(),s.createElementBlock("div",g0," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)])])):s.createCommentVNode("",!0),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",y0,[t[4]||(t[4]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",A0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,k)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",k0,[s.createElementVNode("div",E0,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",b0,s.toDisplayString(y.name),1)]),k!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)]))),128))])])):s.createCommentVNode("",!0)])]))),256))])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):s.createCommentVNode("",!0)]),_:1},8,["visible"]),s.createVNode(m,{visible:r.showFixedPerson,list:r.fixedPersonList,multiple:r.currentClickItem.loopCardinality==-1,select:r.fixedSelect[r.partObjId]||[],onUpdateList:o.handleClickFixedPerson,onUpdateVisible:o.updateFixedPersonVisible,onUpdateSelect:o.updateFixedSelect,onConfirm:o.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(u,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):s.createCommentVNode("",!0)}const w0=oe(Nk,[["render",C0],["__scopeId","data-v-c32b0f83"]]),g1="",N0={name:"tree-person",components:{TreeNode:w0},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(n=>n):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(n=>n!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(n=>n.id!=i.id),this.firstMultiType=this.firstMultiType.filter(n=>n!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(n=>n!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(n=>n.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(n=>n!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(n=>n.id!=i.id),t.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}}}},T0={class:"test"},I0={key:0},B0={key:0},x0={key:0},S0={key:0,class:"treeperson-firstnode"},D0=["onClick"],P0={key:1,class:"treeperson-firstnode"},M0={key:2,class:"treeperson-firstnode"},V0=["onClick"],O0={key:3,class:"treeperson-firstnode"},R0=["onClick"],L0={class:"treeperson-checkbox-box"},v0=["onClick"],F0={key:0,class:"treeperson-firstnode"},j0={class:"treeperson-checkbox-box"},Q0=["onClick"],U0={key:0,class:"treeperson-firstnode"},_0=["onClick"],G0=["onClick"];function q0(e,t,i,n,r,o){const a=s.resolveComponent("tree-person",!0),l=s.resolveComponent("TreeNode");return s.openBlock(),s.createElementBlock("div",T0,[i.param.nodeLoading?(s.openBlock(),s.createElementBlock("div",I0,[...t[3]||(t[3]=[s.createElementVNode("span",null,"\u4E0B\u4E00\u8282\u70B9: ",-1),s.createElementVNode("b",{style:{"font-size":"16px"}},"\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......",-1)])])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",B0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,(c,m)=>(s.openBlock(),s.createElementBlock("div",{class:"treeperson",key:m},[c.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",x0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):c.branches&&c.branches.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(s.openBlock(),s.createElementBlock("div",S0,[t[5]||(t[5]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[4]||(t[4]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.id.includes("Flow")?u.nodeName||u.name?u.nodeName||u.name:u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:"":u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name||u.nodeName||u.name:u.nodeName||u.name),1)],10,D0))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(s.openBlock(),s.createElementBlock("div",P0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",null,[t[6]||(t[6]=s.createElementVNode("span",null,null,-1)),s.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:u.branches&&u.branches.length>0?u.branches:[u],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",M0,[t[8]||(t[8]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u),key:p},[t[7]||(t[7]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,V0))),128))])):(s.openBlock(),s.createElementBlock("div",O0,[t[10]||(t[10]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,R0))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):r.childrenItems&&r.childrenItems.length>1&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[t[12]||(t[12]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",L0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.childrenItems,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheckSub.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClickSub(u,r.childrenItems),key:p},[t[11]||(t[11]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,v0))),128))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItemsSub(r.childrenItems),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[0]||(t[0]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):(s.openBlock(),s.createBlock(l,{key:6,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",F0,[t[14]||(t[14]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",j0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u,c.branches),key:p},[t[13]||(t[13]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,Q0))),128))])])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItems(c.branches),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[1]||(t[1]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):s.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[t[16]||(t[16]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",U0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstCheck==u.id?"treeperson-checkbox-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[15]||(t[15]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,_0))),128))])),s.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[2]||(t[2]=u=>o.onMultiNode(u,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[t[17]||(t[17]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(s.openBlock(),s.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(s.openBlock(),s.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(s.openBlock(),s.createElementBlock(s.Fragment,{key:4},[i.nodeType=="nexting"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[t[19]||(t[19]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.nodeInfoDTO.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.nodeInfoDTO.branches),key:p},[t[18]||(t[18]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,G0))),128)),(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[t[20]||(t[20]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(s.openBlock(),s.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[],64))]))),128))])):s.createCommentVNode("",!0)],64))])}const J0=oe(N0,[["render",q0],["__scopeId","data-v-d9292cc9"]]),y1="",z0={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},K0={class:"top-popup-header"},H0={class:"header-title"},W0={class:"top-popup-body"},Y0={class:"top-popup-drawer--body"},X0={class:"top-tips-header"},Z0={class:"top-tips-body"},$0={class:"top-tips-footer"};function eE(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["top-popup-zindex",i.className]),style:s.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[s.createElementVNode("div",{class:"top-popup-mask",style:s.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-popup",style:s.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[s.createElementVNode("div",K0,[s.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",H0,s.toDisplayString(i.titleText),1),s.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)]),s.createElementVNode("div",W0,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:s.normalizeStyle(i.width?`width:${i.width};`:"")},[s.createElementVNode("div",Y0,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-tips",style:s.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[s.createElementVNode("div",X0,s.toDisplayString(i.titleText),1),s.createElementVNode("div",Z0,s.toDisplayString(i.context),1),s.createElementVNode("div",$0,[s.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)])],4)):s.createCommentVNode("",!0)],6)}const Fa=oe(z0,[["render",eE],["__scopeId","data-v-06a80662"]]),A1="",tE={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Fa},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,n),this.currentPath.push({x:i,y:n})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,n),this.ctx.stroke(),this.currentPath.push({x:i,y:n})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:n}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,n)):(this.ctx.lineTo(i,n),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let n=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(n*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(n*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=l,m.translate(a/2,l/2),m.rotate(o),m.drawImage(e,-n/2,-r/2,n,r),c.toBlob(u=>{this.uploadImage(u)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const n=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!n.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(n.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",n.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const n=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${n}px`,i.style.height=`${r}px`,i.width=n*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},iE={class:"canvas-container"},sE={key:0,class:"tips"},nE={class:"history"},rE=["src"],oE=["src"],aE=["src"],lE={class:"actions-area"};function cE(e,t,i,n,r,o){const a=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",{class:"sign-container",style:s.normalizeStyle(o.setDynamicVars)},[s.createElementVNode("div",iE,[r.paths.length==0&&r.currentPath.length==0?(s.openBlock(),s.createElementBlock("div",sE,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):s.createCommentVNode("",!0),s.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:s.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),s.createElementVNode("div",nE,[s.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,rE)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,oE)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,aE)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",lE,[s.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),s.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),s.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),s.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),s.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const dE=oe(tE,[["render",cE],["__scopeId","data-v-d91bfd13"]]),k1="",pE={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi,TreePerson:J0,TopSign:dE,signDrawer:Fa},computed:{check(){return Un},checkS(){return wk},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const n=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData[0].branches[0],o?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const n=this.findUserTaskNode(this.nextNodeData.branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData.branches[0],o?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,n)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((n,r)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,r)=>{i.push({type:3,id:n})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{n.push({type:3,id:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,n)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let i=0;if(this.radioCheckNameList.map((n,r)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((o,a)=>{o.id==n&&(o.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||o.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!o.childNode||!o.childNode.length?i+=1:this.radioCheckNode.map((l,c)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&(i+=1),e[l]=this.multiNodeParticipant[l]}))}),e[n]=this.multiNodeParticipant[n]}),i>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(i=>{let n=this.param.vars||this.gateVars||{};n[i.itemName]||(n[i.itemName]="")}),this.handleTips("",!0,"loading");let t=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(e).forEach(l=>{Array.isArray(e[l])&&(e[l]=e[l].filter(c=>c)),(!e[l]||Array.isArray(e[l])&&e[l].length<=0)&&delete e[l]});let n=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",o=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((n||r||o)&&!Object.keys(e).length){let c={};return n?c=i:r?c=i.branches[0].nodeInfoDTO:o&&(c=i.branches[0]),this.handleTips(c.nodeType?"\u8BF7\u9009\u62E9["+c.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists)}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((r,o)=>{(!this.multiNodeParticipant[r]||!this.multiNodeParticipant[r].length)&&this.radioCheckChild.map((a,l)=>{a.id==r&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?n+=1:this.radioCheckNode.map((c,m)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&(n+=1),t[c]=this.multiNodeParticipant[c]}))}),t[r]=this.multiNodeParticipant[r]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(n=>{let r=this.param.vars||this.gateVars||{};r[n.itemName]||(r[n.itemName]="")});let i=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const n=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;n.setPersonnel?i=n.assignees:i=(this.partNodeArr[n.id]||[]).map(c=>({id:c.id,name:c.name})),Object.keys(t).forEach(c=>{Array.isArray(t[c])&&(t[c]=t[c].filter(m=>m)),(!t[c]||Array.isArray(t[c])&&t[c].length<=0)&&delete t[c]});let r=n&&n.nodeType!="endEvent"&&(!n.branches||n.branches.length<=0),o=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&n.branches[0].nodeInfoDTO&&n.branches[0].nodeInfoDTO.nodeType!="endEvent",a=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&!n.branches[0].nodeInfoDTO&&n.branches[0].nodeType!="endEvent";if((r||o||a)&&!Object.keys(t).length){let m={};return r?m=n:o?m=n.branches[0].nodeInfoDTO:a&&(m=n.branches[0]),this.handleTips(m.nodeType?"\u8BF7\u9009\u62E9["+m.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="completeButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},hE={class:"process-popup-content"},uE={key:0,class:"process-popup-content-msg"},mE={key:0,class:"process-pc-label"},fE={key:1,class:"process-pc-value",style:{display:"flex"}},gE={class:"process-radio",style:{width:"100%"}},yE=["onClick"],AE=["onClick"],kE={key:2},EE={class:"process-pc-label"},bE={key:0,class:"process-pc-label--re"},CE={class:"process-pc-value"},wE={class:"process-popup-textarea"},NE={class:"process-popup-textarea-num"},TE={key:0,class:"msg-btn"},IE={class:"process-popup-content-person"},BE={key:0},xE={key:1},SE={style:{height:"100%"}},DE={style:{height:"100%"}};function PE(e,t,i,n,r,o){const a=s.resolveComponent("TreePerson"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("MsgList"),p=s.resolveComponent("attchViews"),y=s.resolveComponent("TopSign"),k=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",hE,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(s.openBlock(),s.createElementBlock("div",uE,[i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",mE,"\u5FEB\u6377\u56DE\u590D")):s.createCommentVNode("",!0),i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",fE,[s.createElementVNode("div",gE,[i.param.isDocument?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.msgCheckList,C=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",C==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=C},[t[8]||(t[8]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(C),1)],10,yE))),256)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.msgCheckListS,C=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",C==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=C},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(C),1)],10,AE))),256)),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=C=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",kE,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=C=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),s.createElementVNode("div",EE,[t[10]||(t[10]=s.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(s.openBlock(),s.createElementBlock("span",bE,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",CE,[s.createElementVNode("div",wE,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=C=>r.commentMsg=C),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",NE,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",TE,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=C=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",IE,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",BE," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):r.nextNodeData&&r.nextNodeData.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",xE," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):i.param.ProcessInsObj.taskParentId?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(a,{key:2,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),s.renderSlot(e.$slots,"completeSlot",{},void 0,!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=C=>r.visible=C),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",SE,[r.visible?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=C=>r.visibleListMsg=C),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=C=>r.visibleMsgComfig=C)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(p,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(k,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=C=>r.signVisible=C),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:s.withCtx(()=>[s.createElementVNode("div",DE,[r.signVisible?(s.openBlock(),s.createBlock(y,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const ja=oe(pE,[["render",PE],["__scopeId","data-v-b5e59dc8"]]),E1="",ME={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,MsgList:Qi},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},VE={class:"process-popup-content"},OE={class:"process-popup-content-msg"},RE={key:0},LE={class:"process-pc-value"},vE={class:"process-popup-textarea"},FE={class:"process-popup-textarea-num"},jE={key:0,class:"msg-btn"},QE={key:0,class:"process-popup-content-person"},UE=["onClick"],_E={class:"process-pc-value--people"},GE={key:0,class:"process-pc-value--data"},qE={key:1,class:"process-pc-value--data",style:{color:"#888"}},JE={style:{"font-size":"15px"}},zE={style:{height:"100%"}};function KE(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",VE,[s.createElementVNode("div",OE,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",RE,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[7]||(t[7]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",LE,[s.createElementVNode("div",vE,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",FE,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",jE,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(s.openBlock(),s.createElementBlock("div",QE,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>{var y,k;return s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption((k=(y=p==null?void 0:p.userTaskModelDTO)==null?void 0:y.humanPerformer)==null?void 0:k.name)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",null,[s.createTextVNode(s.toDisplayString(p.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=s.createElementVNode("br",null,null,-1)),t[9]||(t[9]=s.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=s.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),s.createElementVNode("div",{class:"process-pc-value",onClick:C=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",_E,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",GE,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(C,v)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(v==0?C:`,${C}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",qE,[...t[11]||(t[11]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,UE)],64)):s.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption(p.humanPerformerName)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",JE,s.toDisplayString(p.name),1),t[13]||(t[13]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...y)=>o.handleOpenPopup&&o.handleOpenPopup(...y))},[...t[12]||(t[12]=[s.createElementVNode("div",{class:"process-pc-value--people"},s.toDisplayString(234),-1)])])],64)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",zE,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const HE=oe(ME,[["render",KE],["__scopeId","data-v-59b811ec"]]),b1="",WE={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,attchViews:$t,TopPopup:Fe,departPerson:yt.departPerson,TopDownSelect:Ra,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},YE={class:"process-popup-content"},XE={class:"process-popup-content-msg"},ZE={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},$E={class:"process-pc-value"},eb={class:"process-popup-textarea"},tb={class:"process-popup-textarea-num"};function ib(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("MsgList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("attchViews");return s.openBlock(),s.createElementBlock("div",YE,[s.createElementVNode("div",XE,[t[3]||(t[3]=s.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[s.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",ZE,[s.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",$E,[s.createElementVNode("div",eb,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",tb,s.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(s.openBlock(),s.createBlock(u,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0)])}const sb=oe(WE,[["render",ib],["__scopeId","data-v-fcd1a869"]]),C1="",nb={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:tt,departPerson:yt.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},rb={style:{height:"100%"}};function ob(e,t,i,n,r,o){const a=s.resolveComponent("departPerson"),l=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",rb,[i.param.visible?(s.openBlock(),s.createBlock(a,s.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):s.createCommentVNode("",!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const ab=oe(nb,[["render",ob]]),w1="",lb={name:"nf-button",components:{TopTips:tt},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const n=i.data;this.backNodes=n})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},cb={class:"process-btns"},db=["disabled"],pb={key:0},hb={key:1},ub=["disabled"],mb={key:0},fb={key:1},gb=["disabled"],yb=["disabled"],Ab=["disabled"],kb=["disabled"],Eb=["disabled"],bb=["disabled"],Cb=["disabled"],wb=["disabled"],Nb=["disabled"];function Tb(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",cb,[i.process.status=="todo"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[o.getButton("wf_pass")?(s.openBlock(),s.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["deleted"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("span",pb,"\u91CD\u65B0\u63D0\u4EA4")):(s.openBlock(),s.createElementBlock("span",hb,s.toDisplayString(o.getButton("wf_pass").name),1))],8,db)):s.createCommentVNode("",!0),o.getButton("wf_reject")?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(s.openBlock(),s.createElementBlock("span",mb,s.toDisplayString(o.getButton("wf_reject").name),1)):(s.openBlock(),s.createElementBlock("span",fb,s.toDisplayString(o.getButton("wf_reject").name),1))],8,ub)):s.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(s.openBlock(),s.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},[...t[11]||(t[11]=[s.createElementVNode("span",null,"\u50AC\u529E",-1)])],8,gb)):s.createCommentVNode("",!0),o.getButton("wf_transfer")?(s.openBlock(),s.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},s.toDisplayString(o.getButton("wf_transfer").name),9,yb)):s.createCommentVNode("",!0),o.getButton("wf_delegate")?(s.openBlock(),s.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},s.toDisplayString(o.getButton("wf_delegate").name),9,Ab)):s.createCommentVNode("",!0),o.getButton("wf_rollback")?(s.openBlock(),s.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},s.toDisplayString(o.getButton("wf_rollback").name),9,kb)):s.createCommentVNode("",!0),o.getButton("wf_terminate")?(s.openBlock(),s.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},s.toDisplayString(o.getButton("wf_terminate").name),9,Eb)):s.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(s.openBlock(),s.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},s.toDisplayString(o.getButton("wf_add_instance").name),9,bb)):s.createCommentVNode("",!0),o.getButton("wf_cctask")?(s.openBlock(),s.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[s.createElementVNode("span",null,s.toDisplayString(o.getButton("wf_cctask").name),1)],8,Cb)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,wb)):s.createCommentVNode("",!0),o.getButton("wf_print")?(s.openBlock(),s.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},s.toDisplayString(o.getButton("wf_print").name),9,Nb)):s.createCommentVNode("",!0)])}const Ib=Ye({name:"TopProcess",provide(){return{request:this.request}},components:{processBtns:oe(lb,[["render",Tb],["__scopeId","data-v-5024d104"]]),TopTab:Zg,TopPopup:Fe,TopTips:tt,TopSumbitPopup:va},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},taskId:{require:!1,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},businessSubjectId:{default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001",user:""}},watch:{processInstId:{async handler(e,t){this.$nextTick(()=>{this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.processInstId,taskId:this.taskId}:{processInstId:this.processInstId}}).then(i=>{var n;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data};let r=(this.ProcessInsObj.flow||[]).filter(c=>["userTask"].includes(c.historyActivityType)&&c.createTime),o=r[r.length-1].assigneeName;if(!o){let c=r[r.length-1],m="->",u="\u2192",p=c.comments[0].fullMessage;p.includes(m)?o=p.split(m)[1]:p.includes(u)&&(o=p.split(u)[1].split("\uFF1A")[0])}this.user=o,this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((n=i.data)==null?void 0:n.flow)||[]).filter(c=>["userTask","candidate"].includes(c.historyActivityType));const a=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=a;const l=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=l,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())})},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let r={};r.name="\u91CD\u65B0\u63D0\u4EA4",r.btnProps={type:"default"},e.push(r),r.click=o=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},e.push(r),r.click=o=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(r=>{let o={};o.name=r.name,o.btnProps={type:r.type},e.push(o),o.click=r.click}),["wf_edit"].map(r=>{if(!this.isView&&t.status=="todo"&&this.getButton(r)){let o={};o.name=this.getButton(r).name,o.btnProps={},o.key=o.name,o.click=()=>{this.$emit("clickCustomButton",o.name)},e.push(o)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"default"},r.click=async o=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.btnProps={type:"default"},r.click=o=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(r)}if(t.status=="todo"&&this.getButton("wf_add_instance")){let r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.click=o=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(r)}if(t.isReturnable&&t.isOwner){let r={};r.name="\u50AC\u529E",r.btnProps={type:"default"},r.click=o=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(r)}if(t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"default"},r.click=o=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(r)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:this.taskId?{processInstId:this.processIntId,taskId:this.taskId}:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],n=(i.currentName||"").split(","),r=(i.avatar||"").split(",");n=n.map((o,a)=>({realName:o,avatar:r[a]||"",phone:"",ancestorNames:[]})),t.currentMan=n,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(ja,e)}):this.showOperation(ja,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(HE,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(Ck,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(ik,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(sb,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(ab,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(n){console.error(n),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let n=0;n<i.branches.length;n++){let r=i.branches[n],o=r.nodeInfoDTO?r.nodeInfoDTO:r;try{o=await this.getSelectFixData(o,t)}catch(a){}r.nodeInfoDTO?r.nodeInfoDTO=o:r=o,i.branches[n]=r}else if(i.nodeType=="userTask"&&!i.setPersonnel){let n=Pa(i),r;try{r=await this.getNodeUser({deptId:t,intersection:n.intersection?1:0,userIds:n.userIds,postIds:n.postIds,deptIds:n.deptIds}),r.code==$enum.apiCode.success}catch(o){}r.code==200&&(i.userList=r.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let n=0;n<i.data.length;n++){let r=i.data[n];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,n,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=n||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=n||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId,subjectId:this.formData.subjectId||this.businessSubjectId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),T1="",Bb={class:"process-warp"},xb={key:0,class:"process-main",id:"process-header",ref:"processheader"},Sb={class:"process-ml-item border"},Db={class:"process-mli-value"},Pb={class:"process-ml-item border"},Mb={class:"process-mli-value"},Vb={key:0,class:"process-ml-item"},Ob={class:"process-mli-value",style:{width:"50%","text-align":"right"}},Rb={class:"process-mliv-jd"},Lb=["slot"],vb={slot:"default",style:{height:"100%"}},Fb=["slot"],jb={key:0,class:"footBtnRow"},Qb=["onClick"],Ub={slot:"completeSlot"},_b=["onClick"],Gb=["onClick"],qb={slot:"completeSlot"};function Jb(e,t,i,n,r,o){const a=s.resolveComponent("TopTab"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("TopTips"),m=s.resolveComponent("TopSumbitPopup");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Bb,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(s.openBlock(),s.createElementBlock("div",xb,[s.createElementVNode("div",Sb,[t[5]||(t[5]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),s.createElementVNode("div",Db,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(s.openBlock(),s.createElementBlock("div",{key:0,class:"process-mliv-dd",style:s.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},s.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",Pb,[t[6]||(t[6]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),s.createElementVNode("div",Mb,[s.createElementVNode("span",null,s.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(s.openBlock(),s.createElementBlock("div",Vb,[t[7]||(t[7]=s.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),s.createElementVNode("div",Ob,[s.createElementVNode("span",Rb,s.toDisplayString(`${e.user}\u5BA1\u6279\u4E2D`),1)])])):s.createCommentVNode("",!0)],512)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"process-card",style:s.normalizeStyle({height:e.processCardHeight})},[s.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:s.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.selfTapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,slot:u.slot,style:{height:"100%"}},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,Lb))),128)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",vb,[s.renderSlot(e.$slots,"default",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{style:{height:"100%"},key:p,slot:u.slot},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,Fb))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:s.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(s.openBlock(),s.createElementBlock("div",jb,[s.renderSlot(e.$slots,"btn",{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-button",style:s.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.operBtn,(u,p)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[p<3?(s.openBlock(),s.createElementBlock("div",{class:"top-button",style:s.normalizeStyle(e.getBtnStyle((u.btnProps.type||"default").toString())),key:u.name,onClick:y=>u.click(u.name)},s.toDisplayString(u.name),13,Qb)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},[...t[8]||(t[8]=[s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1)])])):s.createCommentVNode("",!0)],64))],64))],4))]),s.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:s.withCtx(()=>[s.createElementVNode("div",Ub,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),s.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),s.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-elips",style:s.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.taskNodeList,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(u),key:u.taskId},s.toDisplayString(u.name),9,_b))),128)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.actionBtn,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>u.click(u.name),key:u.name},s.toDisplayString(u.name),9,Gb))),128)),s.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:s.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),s.createVNode(m,s.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),s.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=u=>e.cctaskTopPopup=u),isDrawer:!0},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:s.withCtx(()=>[s.createElementVNode("div",qb,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const zb=oe(Ib,[["render",Jb],["__scopeId","data-v-fef39ea2"]]),Qa={name:"ddy-process-h5",version:"1.0.1-rc.3.99",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Qa.name+"%c v"+Qa.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),qe.TopProcess=zb,qe.TopSumbitPopup=va,qe.ViewAttchList=zr,qe.attchViews=$t,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});