@kestra-io/ui-libs 0.0.77 → 0.0.79

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,15 +0,0 @@
1
- (function($,je){typeof exports=="object"&&typeof module<"u"?je(exports,require("js-yaml"),require("yaml"),require("lodash"),require("humanize-duration"),require("moment"),require("@vue-flow/core"),require("vue"),require("@popperjs/core"),require("shiki"),require("@vue-flow/controls")):typeof define=="function"&&define.amd?define(["exports","js-yaml","yaml","lodash","humanize-duration","moment","@vue-flow/core","vue","@popperjs/core","shiki","@vue-flow/controls"],je):($=typeof globalThis<"u"?globalThis:$||self,je($.KestraUI={},$.JsYaml,$.yaml,$.lodash$1,$.humanizeDuration,$.moment,$.core,$.Vue,$.core$1,$.shiki,$.controls))})(this,function($,je,k,et,Kp,tt,D,a,Wp,Zp,As){"use strict";const ve={TASKS:"TASKS",TRIGGERS:"TRIGGERS"},w={EDIT:"edit",DELETE:"delete",SHOW_DESCRIPTION:"showDescription",COLLAPSE:"collapse",EXPAND:"expand",OPEN_LINK:"openLink",ADD_TASK:"addTask",SHOW_LOGS:"showLogs",MOUSE_OVER:"mouseover",MOUSE_LEAVE:"mouseleave",ADD_ERROR:"addError",EXPAND_DEPENDENCIES:"expandDependencies",SHOW_CONDITION:"showCondition"},Oe="cluster_",Ee={TASK_WIDTH:184,TASK_HEIGHT:44,TRIGGER_WIDTH:184,TRIGGER_HEIGHT:44,DOT_WIDTH:5,DOT_HEIGHT:5,COLLAPSED_CLUSTER_WIDTH:150,COLLAPSED_CLUSTER_HEIGHT:44,TRIGGER_CLUSTER_WIDTH:350,TRIGGER_CLUSTER_HEIGHT:180},ie={lineWidth:0};class H{static stringify(t){return typeof t>"u"?"":(t.deleted!==void 0&&delete t.deleted,je.dump(H._transform(et.cloneDeep(t)),{lineWidth:-1,noCompatMode:!0,quotingType:'"'}))}static parse(t){return je.load(t)}static extractTask(t,r){const n=k.parseDocument(t);let i=H._extractTask(n,r);return i===void 0?void 0:new k.Document(i).toString(ie)}static _extractTask(t,r,n){const i=s=>{if(s){if(s instanceof k.YAMLMap&&s.get("type")!==void 0&&r===s.get("id"))return n?n(s):s;if(s.items)for(const[l,c]of s.items.entries()){let u;if(c instanceof k.YAMLMap?u=i(c):u=i(c.value),u&&(n&&(s instanceof k.YAMLMap?s.set(c.key.value,u):s.items[l]=u),!n&&u))return u}}};let o=i(t.contents);if(o!==void 0)return n?new k.Document(o):new k.Document(o)}static replaceTaskInDocument(t,r,n){const i=k.parseDocument(t),o=i.createNode(k.parseDocument(n));return H._extractTask(i,r,s=>(H.replaceCommentInTask(s,o),o)),i.toString(ie)}static replaceCommentInTask(t,r){for(const n of t.items)for(const i of r.items)if(n.key.value===i.key.value&&i.value.comment===void 0){i.value.comment=n.value.comment;break}}static _transform(t){return t instanceof Array?t.map(r=>H._transform(r)):typeof t=="string"||t instanceof String?t:t instanceof Object?H.sort(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=H._transform(t[n])),r),Object.create({})):t}static sort(t){const r=["id","type","namespace","description","revision","inputs","variables","tasks","errors","triggers","listeners"];return Object.keys(t).sort().sort((n,i)=>H.index(r,n)-H.index(r,i))}static index(t,r){const n=t.indexOf(r);return n===-1?Number.MAX_SAFE_INTEGER:n}static extractAllTypes(t){const r=k.parseDocument(t),n=[];return r.contents&&r.contents.items&&r.contents.items.find(i=>["tasks","triggers","errors","layout"].includes(i.key.value))&&k.visit(r,{Map(i,o){var s;if(o.items){for(const l of o.items)if(l.key.value==="type"){const c=(s=l.value)==null?void 0:s.value;n.push({type:c,range:o.range})}}}}),n}static getTaskType(t,r){const n=this.extractAllTypes(t),i=new k.LineCounter;k.parseDocument(t,{lineCounter:i});const o=i.lineStarts[r.lineNumber-1]+r.column;for(const s of n.reverse())if(o>s.range[1]||o>=s.range[0]&&o<=s.range[1])return s.type;return null}static swapTasks(t,r,n){const i=k.parseDocument(t),o=H._extractTask(i,r),s=H._extractTask(i,n);return k.visit(i,{Pair(l,c){if(c.key.value==="dependsOn"&&c.value.items.map(u=>u.value).includes(n))throw{message:"dependency task",messageOptions:{taskId:n}}}}),H._extractTask(i,r,()=>s),H._extractTask(i,n,()=>o),i.toString(ie)}static insertTask(t,r,n,i){const o=k.parseDocument(t),s=o.createNode(k.parseDocument(n)),l=o.contents.items.find(u=>u.key.value==="tasks");if(!l||!(l!=null&&l.value.value)===null){l&&o.contents.items.splice(o.contents.items.indexOf(l),1);const u=new k.YAMLSeq;u.items.push(s);const d=new k.Pair(new k.Scalar("tasks"),u);return o.contents.items.push(d),o.toString(ie)}let c=!1;return k.visit(o,{Seq(u,d){for(const f of d.items)if(k.isMap(f)){if(c)return k.visit.BREAK;if(f.get("id")===r){const h=d.items.indexOf(f);return i==="before"?h===0?d.items.unshift(s):d.items.splice(h,0,s):h===d.items.length-1?d.items.push(s):d.items.splice(h+1,0,s),c=!0,d}}}}),o.toString(ie)}static insertTrigger(t,r){const n=k.parseDocument(t),i=n.createNode(k.parseDocument(r));let o=!1;const s=n.contents.items.find(l=>l.key.value==="triggers");if(s&&s.value.items)k.visit(n,{Pair(l,c){if(o)return k.visit.BREAK;if(c.key.value==="triggers")return c.value.items.push(i),o=!0,c}});else{s&&n.contents.items.splice(n.contents.items.indexOf(s),1);const l=new k.YAMLSeq;l.items.push(i);const c=new k.Pair(new k.Scalar("triggers"),l);n.contents.items.push(c)}return H.cleanMetadata(n.toString(ie))}static insertError(t,r){const n=k.parseDocument(t),i=n.createNode(k.parseDocument(r)),o=n.contents.items.find(s=>s.key.value==="errors");if(o&&o.value.items)n.contents.items[n.contents.items.indexOf(o)].value.items.push(i);else{o&&n.contents.items.splice(n.contents.items.indexOf(o),1);const s=new k.YAMLSeq;s.items.push(i);const l=new k.Pair(new k.Scalar("errors"),s);n.contents.items.push(l)}return H.cleanMetadata(n.toString(ie))}static insertErrorInFlowable(t,r,n){const i=k.parseDocument(t),o=i.createNode(k.parseDocument(r));let s=!1;return k.visit(i,{Map(l,c){if(s)return k.visit.BREAK;if(c.get("id")===n){if(c.items.find(u=>u.key.value==="errors"))c.items.find(u=>u.key.value==="errors").value.items.push(o);else{const u=new k.YAMLSeq;u.items.push(o);const d=new k.Pair(new k.Scalar("errors"),u);c.items.push(d)}return s=!0,c}}}),i.toString(ie)}static deleteTask(t,r,n){const i=n===ve.TASKS?["tasks","errors"]:["triggers"],o=k.parseDocument(t);return k.visit(o,{Pair(s,l){i.includes(l.key.value)&&k.visit(l.value,{Map(c,u){if(u.get("id")===r)return k.visit.REMOVE}})}}),k.visit(o,{Pair(s,l){if(k.isSeq(l.value)&&l.value.items.length===0)return k.visit.REMOVE}}),o.toString(ie)}static getFirstTask(t){let r=H.parse(t);return r&&r.tasks&&r.tasks[0].id}static checkTaskAlreadyExist(t,r){const n=k.parseDocument(t),i=H.parse(r);let o=!1;return k.visit(n,{Pair(s,l){l.key.value==="tasks"&&k.visit(l,{Map(c,u){if(u.get("id")===i.id)return o=!0,k.visit.BREAK}})}}),o?i.id:null}static isParentChildrenRelation(t,r,n){return H.isChildrenOf(t,n,r)||H.isChildrenOf(t,r,n)}static isChildrenOf(t,r,n){const i=k.parseDocument(H.extractTask(t,r));let o=!1;return k.visit(i,{Map(s,l){if(l.get("id")===n)return o=!0,k.visit.BREAK}}),o}static getChildrenTasks(t,r){const n=k.parseDocument(H.extractTask(t,r)),i=[];return k.visit(n,{Map(o,s){s.get("id")!==r&&i.push(s.get("id"))}}),i}static getParentTask(t,r){const n=k.parseDocument(t);let i=null;return k.visit(n,{Map(o,s){s.get("id")!==r&&k.visit(s,{Map(l,c){if(c.get("id")===r)return i=s.get("id"),k.visit.BREAK}})}}),i}static isTaskError(t,r){const n=k.parseDocument(t);let i=!1;return k.visit(n,{Pair(o,s){s.key.value==="errors"&&k.visit(s,{Map(l,c){if(c.get("id")===r)return i=!0,k.visit.BREAK}})}}),i}static isTrigger(t,r){const n=k.parseDocument(t);let i=!1;return k.visit(n,{Pair(o,s){s.key.value==="triggers"&&k.visit(s,{Map(l,c){if(c.get("id")===r)return i=!0,k.visit.BREAK}})}}),i}static replaceIdAndNamespace(t,r,n){return t.replace(/^(id\s*:\s*(["']?))\S*/m,"$1"+r+"$2").replace(/^(namespace\s*:\s*(["']?))\S*/m,"$1"+n+"$2")}static updateMetadata(t,r){const n=k.parseDocument(t);for(const i in r)n.contents.items.find(o=>o.key.value===i)?n.contents.items.find(o=>o.key.value===i).value=r[i]:n.contents.items.push(new k.Pair(new k.Scalar(i),r[i]));return H.cleanMetadata(n.toString(ie))}static cleanMetadata(t){const r=k.parseDocument(t),n=["id","namespace","description","labels","inputs","variables","tasks","triggers","errors","taskDefaults"],i=[];for(const o of n){const s=r.contents.items.find(l=>l.key.value===o);s&&((k.isSeq(s.value)||k.isMap(s.value))&&s.value.items.length>0||s.value.value)&&i.push(s)}return r.contents.items=i,r.toString(ie)}static getMetadata(t){const r=k.parseDocument(t),n={};for(const i of r.contents.items)i.key.value!=="tasks"&&i.key.value!=="triggers"&&i.key.value!=="errors"&&(n[i.key.value]=k.isMap(i.value)||k.isSeq(i.value)?i.value.toJSON():i.value.value);return n}static flowHaveTasks(t){const r=k.parseDocument(t).contents.items.find(n=>n.key.value==="tasks");return r&&r.value.items&&r.value.items.length>=1}static getNextTaskId(t,r,n){for(;H.extractTask(r,t)===void 0;){const i=n.edges.find(o=>o.source===t);if(!i)return null;t=i.target}return t}static isTaskParallel(t,r){const n=H.parse(H.extractTask(r,t));return(n==null?void 0:n.type)==="io.kestra.core.tasks.flows.EachParallel"||(n==null?void 0:n.type)==="io.kestra.core.tasks.flows.Parallel"?n:void 0}}const Xp={en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"},fr:{y:()=>"a",mo:()=>"mo",w:()=>"se",d:()=>"j",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}};class x{static splitFirst(t,r){return t.split(r).slice(1).join(r)}static duration(t){return tt.duration(t,tt.ISO_8601).asMilliseconds()/1e3}static humanDuration(t,r){return r=r||{maxDecimalPoints:2},r.spacer="",r.language=localStorage.getItem("lang")||"en",r.languages=Xp,r.largest=2,typeof t!="number"&&(t=x.duration(t)),Kp(t*1e3,r).replace(/\.([0-9])s$/i,".$10s")}static afterLastDot(t){return t.split(".").pop()}static translate(t){return typeof $t<"u"&&typeof $t=="function"?$t(t):t}}var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nr,Os;function Jp(){if(Os)return nr;Os=1;function e(){this.__data__=[],this.size=0}return nr=e,nr}var ir,Bs;function Fe(){if(Bs)return ir;Bs=1;function e(t,r){return t===r||t!==t&&r!==r}return ir=e,ir}var ar,Vs;function gt(){if(Vs)return ar;Vs=1;var e=Fe();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return ar=t,ar}var or,Ls;function Qp(){if(Ls)return or;Ls=1;var e=gt(),t=Array.prototype,r=t.splice;function n(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var l=o.length-1;return s==l?o.pop():r.call(o,s,1),--this.size,!0}return or=n,or}var sr,Ds;function em(){if(Ds)return sr;Ds=1;var e=gt();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return sr=t,sr}var lr,xs;function tm(){if(xs)return lr;xs=1;var e=gt();function t(r){return e(this.__data__,r)>-1}return lr=t,lr}var cr,Ps;function rm(){if(Ps)return cr;Ps=1;var e=gt();function t(r,n){var i=this.__data__,o=e(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this}return cr=t,cr}var ur,$s;function _t(){if($s)return ur;$s=1;var e=Jp(),t=Qp(),r=em(),n=tm(),i=rm();function o(s){var l=-1,c=s==null?0:s.length;for(this.clear();++l<c;){var u=s[l];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,ur=o,ur}var dr,Ms;function nm(){if(Ms)return dr;Ms=1;var e=_t();function t(){this.__data__=new e,this.size=0}return dr=t,dr}var fr,Hs;function im(){if(Hs)return fr;Hs=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return fr=e,fr}var hr,Gs;function am(){if(Gs)return hr;Gs=1;function e(t){return this.__data__.get(t)}return hr=e,hr}var pr,js;function om(){if(js)return pr;js=1;function e(t){return this.__data__.has(t)}return pr=e,pr}var mr,Fs;function zs(){if(Fs)return mr;Fs=1;var e=typeof mt=="object"&&mt&&mt.Object===Object&&mt;return mr=e,mr}var gr,Us;function ae(){if(Us)return gr;Us=1;var e=zs(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return gr=r,gr}var _r,Ks;function ze(){if(Ks)return _r;Ks=1;var e=ae(),t=e.Symbol;return _r=t,_r}var yr,Ws;function sm(){if(Ws)return yr;Ws=1;var e=ze(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(s){var l=r.call(s,i),c=s[i];try{s[i]=void 0;var u=!0}catch{}var d=n.call(s);return u&&(l?s[i]=c:delete s[i]),d}return yr=o,yr}var br,Zs;function lm(){if(Zs)return br;Zs=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return br=r,br}var vr,Xs;function Be(){if(Xs)return vr;Xs=1;var e=ze(),t=sm(),r=lm(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(l){return l==null?l===void 0?i:n:o&&o in Object(l)?t(l):r(l)}return vr=s,vr}var Er,Ys;function re(){if(Ys)return Er;Ys=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Er=e,Er}var kr,Js;function rt(){if(Js)return kr;Js=1;var e=Be(),t=re(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(l){if(!t(l))return!1;var c=e(l);return c==n||c==i||c==r||c==o}return kr=s,kr}var Cr,Qs;function cm(){if(Qs)return Cr;Qs=1;var e=ae(),t=e["__core-js_shared__"];return Cr=t,Cr}var wr,el;function um(){if(el)return wr;el=1;var e=cm(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return wr=r,wr}var Sr,tl;function rl(){if(tl)return Sr;tl=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Sr=r,Sr}var Nr,nl;function dm(){if(nl)return Nr;nl=1;var e=rt(),t=um(),r=re(),n=rl(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?d:o;return p.test(n(h))}return Nr=f,Nr}var Tr,il;function fm(){if(il)return Tr;il=1;function e(t,r){return t==null?void 0:t[r]}return Tr=e,Tr}var Ir,al;function Ve(){if(al)return Ir;al=1;var e=dm(),t=fm();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return Ir=r,Ir}var qr,ol;function Rr(){if(ol)return qr;ol=1;var e=Ve(),t=ae(),r=e(t,"Map");return qr=r,qr}var Ar,sl;function yt(){if(sl)return Ar;sl=1;var e=Ve(),t=e(Object,"create");return Ar=t,Ar}var Or,ll;function hm(){if(ll)return Or;ll=1;var e=yt();function t(){this.__data__=e?e(null):{},this.size=0}return Or=t,Or}var Br,cl;function pm(){if(cl)return Br;cl=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Br=e,Br}var Vr,ul;function mm(){if(ul)return Vr;ul=1;var e=yt(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(o){var s=this.__data__;if(e){var l=s[o];return l===t?void 0:l}return n.call(s,o)?s[o]:void 0}return Vr=i,Vr}var Lr,dl;function gm(){if(dl)return Lr;dl=1;var e=yt(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return Lr=n,Lr}var Dr,fl;function _m(){if(fl)return Dr;fl=1;var e=yt(),t="__lodash_hash_undefined__";function r(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?t:i,this}return Dr=r,Dr}var xr,hl;function ym(){if(hl)return xr;hl=1;var e=hm(),t=pm(),r=mm(),n=gm(),i=_m();function o(s){var l=-1,c=s==null?0:s.length;for(this.clear();++l<c;){var u=s[l];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,xr=o,xr}var Pr,pl;function bm(){if(pl)return Pr;pl=1;var e=ym(),t=_t(),r=Rr();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Pr=n,Pr}var $r,ml;function vm(){if(ml)return $r;ml=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return $r=e,$r}var Mr,gl;function bt(){if(gl)return Mr;gl=1;var e=vm();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Mr=t,Mr}var Hr,_l;function Em(){if(_l)return Hr;_l=1;var e=bt();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Hr=t,Hr}var Gr,yl;function km(){if(yl)return Gr;yl=1;var e=bt();function t(r){return e(this,r).get(r)}return Gr=t,Gr}var jr,bl;function Cm(){if(bl)return jr;bl=1;var e=bt();function t(r){return e(this,r).has(r)}return jr=t,jr}var Fr,vl;function wm(){if(vl)return Fr;vl=1;var e=bt();function t(r,n){var i=e(this,r),o=i.size;return i.set(r,n),this.size+=i.size==o?0:1,this}return Fr=t,Fr}var zr,El;function Ur(){if(El)return zr;El=1;var e=bm(),t=Em(),r=km(),n=Cm(),i=wm();function o(s){var l=-1,c=s==null?0:s.length;for(this.clear();++l<c;){var u=s[l];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,zr=o,zr}var Kr,kl;function Sm(){if(kl)return Kr;kl=1;var e=_t(),t=Rr(),r=Ur(),n=200;function i(o,s){var l=this.__data__;if(l instanceof e){var c=l.__data__;if(!t||c.length<n-1)return c.push([o,s]),this.size=++l.size,this;l=this.__data__=new r(c)}return l.set(o,s),this.size=l.size,this}return Kr=i,Kr}var Wr,Cl;function vt(){if(Cl)return Wr;Cl=1;var e=_t(),t=nm(),r=im(),n=am(),i=om(),o=Sm();function s(l){var c=this.__data__=new e(l);this.size=c.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=o,Wr=s,Wr}var Zr,wl;function Xr(){if(wl)return Zr;wl=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return Zr=e,Zr}var Yr,Sl;function Nl(){if(Sl)return Yr;Sl=1;var e=Ve(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Yr=t,Yr}var Jr,Tl;function Et(){if(Tl)return Jr;Tl=1;var e=Nl();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Jr=t,Jr}var Qr,Il;function kt(){if(Il)return Qr;Il=1;var e=Et(),t=Fe(),r=Object.prototype,n=r.hasOwnProperty;function i(o,s,l){var c=o[s];(!(n.call(o,s)&&t(c,l))||l===void 0&&!(s in o))&&e(o,s,l)}return Qr=i,Qr}var en,ql;function nt(){if(ql)return en;ql=1;var e=kt(),t=Et();function r(n,i,o,s){var l=!o;o||(o={});for(var c=-1,u=i.length;++c<u;){var d=i[c],f=s?s(o[d],n[d],d,o,n):void 0;f===void 0&&(f=n[d]),l?t(o,d,f):e(o,d,f)}return o}return en=r,en}var tn,Rl;function Nm(){if(Rl)return tn;Rl=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return tn=e,tn}var rn,Al;function de(){if(Al)return rn;Al=1;function e(t){return t!=null&&typeof t=="object"}return rn=e,rn}var nn,Ol;function Tm(){if(Ol)return nn;Ol=1;var e=Be(),t=de(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return nn=n,nn}var an,Bl;function it(){if(Bl)return an;Bl=1;var e=Tm(),t=de(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(s){return t(s)&&n.call(s,"callee")&&!i.call(s,"callee")};return an=o,an}var on,Vl;function K(){if(Vl)return on;Vl=1;var e=Array.isArray;return on=e,on}var at={exports:{}},sn,Ll;function Im(){if(Ll)return sn;Ll=1;function e(){return!1}return sn=e,sn}at.exports;var Dl;function Ue(){return Dl||(Dl=1,function(e,t){var r=ae(),n=Im(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;e.exports=u}(at,at.exports)),at.exports}var ln,xl;function Ct(){if(xl)return ln;xl=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return ln=r,ln}var cn,Pl;function un(){if(Pl)return cn;Pl=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return cn=t,cn}var dn,$l;function qm(){if($l)return dn;$l=1;var e=Be(),t=un(),r=de(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",g="[object String]",m="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",C="[object Float32Array]",v="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",R="[object Int32Array]",I="[object Uint8Array]",V="[object Uint8ClampedArray]",P="[object Uint16Array]",E="[object Uint32Array]",b={};b[C]=b[v]=b[T]=b[A]=b[R]=b[I]=b[V]=b[P]=b[E]=!0,b[n]=b[i]=b[y]=b[o]=b[_]=b[s]=b[l]=b[c]=b[u]=b[d]=b[f]=b[h]=b[p]=b[g]=b[m]=!1;function q(S){return r(S)&&t(S.length)&&!!b[e(S)]}return dn=q,dn}var fn,Ml;function wt(){if(Ml)return fn;Ml=1;function e(t){return function(r){return t(r)}}return fn=e,fn}var ot={exports:{}};ot.exports;var Hl;function hn(){return Hl||(Hl=1,function(e,t){var r=zs(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o&&r.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l}(ot,ot.exports)),ot.exports}var pn,Gl;function st(){if(Gl)return pn;Gl=1;var e=qm(),t=wt(),r=hn(),n=r&&r.isTypedArray,i=n?t(n):e;return pn=i,pn}var mn,jl;function Fl(){if(jl)return mn;jl=1;var e=Nm(),t=it(),r=K(),n=Ue(),i=Ct(),o=st(),s=Object.prototype,l=s.hasOwnProperty;function c(u,d){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),g=!f&&!h&&!p&&o(u),m=f||h||p||g,y=m?e(u.length,String):[],_=y.length;for(var C in u)(d||l.call(u,C))&&!(m&&(C=="length"||p&&(C=="offset"||C=="parent")||g&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,_)))&&y.push(C);return y}return mn=c,mn}var gn,zl;function St(){if(zl)return gn;zl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return gn=t,gn}var _n,Ul;function Kl(){if(Ul)return _n;Ul=1;function e(t,r){return function(n){return t(r(n))}}return _n=e,_n}var yn,Wl;function Rm(){if(Wl)return yn;Wl=1;var e=Kl(),t=e(Object.keys,Object);return yn=t,yn}var bn,Zl;function vn(){if(Zl)return bn;Zl=1;var e=St(),t=Rm(),r=Object.prototype,n=r.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var l in Object(o))n.call(o,l)&&l!="constructor"&&s.push(l);return s}return bn=i,bn}var En,Xl;function pe(){if(Xl)return En;Xl=1;var e=rt(),t=un();function r(n){return n!=null&&t(n.length)&&!e(n)}return En=r,En}var kn,Yl;function ke(){if(Yl)return kn;Yl=1;var e=Fl(),t=vn(),r=pe();function n(i){return r(i)?e(i):t(i)}return kn=n,kn}var Cn,Jl;function Am(){if(Jl)return Cn;Jl=1;var e=nt(),t=ke();function r(n,i){return n&&e(i,t(i),n)}return Cn=r,Cn}var wn,Ql;function Om(){if(Ql)return wn;Ql=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return wn=e,wn}var Sn,ec;function Bm(){if(ec)return Sn;ec=1;var e=re(),t=St(),r=Om(),n=Object.prototype,i=n.hasOwnProperty;function o(s){if(!e(s))return r(s);var l=t(s),c=[];for(var u in s)u=="constructor"&&(l||!i.call(s,u))||c.push(u);return c}return Sn=o,Sn}var Nn,tc;function Le(){if(tc)return Nn;tc=1;var e=Fl(),t=Bm(),r=pe();function n(i){return r(i)?e(i,!0):t(i)}return Nn=n,Nn}var Tn,rc;function Vm(){if(rc)return Tn;rc=1;var e=nt(),t=Le();function r(n,i){return n&&e(i,t(i),n)}return Tn=r,Tn}var lt={exports:{}};lt.exports;var nc;function ic(){return nc||(nc=1,function(e,t){var r=ae(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,h=l?l(f):new u.constructor(f);return u.copy(h),h}e.exports=c}(lt,lt.exports)),lt.exports}var In,ac;function oc(){if(ac)return In;ac=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return In=e,In}var qn,sc;function lc(){if(sc)return qn;sc=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=0,s=[];++n<i;){var l=t[n];r(l,n,t)&&(s[o++]=l)}return s}return qn=e,qn}var Rn,cc;function uc(){if(cc)return Rn;cc=1;function e(){return[]}return Rn=e,Rn}var An,dc;function On(){if(dc)return An;dc=1;var e=lc(),t=uc(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(l){return n.call(s,l)}))}:t;return An=o,An}var Bn,fc;function Lm(){if(fc)return Bn;fc=1;var e=nt(),t=On();function r(n,i){return e(n,t(n),i)}return Bn=r,Bn}var Vn,hc;function Ln(){if(hc)return Vn;hc=1;function e(t,r){for(var n=-1,i=r.length,o=t.length;++n<i;)t[o+n]=r[n];return t}return Vn=e,Vn}var Dn,pc;function Nt(){if(pc)return Dn;pc=1;var e=Kl(),t=e(Object.getPrototypeOf,Object);return Dn=t,Dn}var xn,mc;function gc(){if(mc)return xn;mc=1;var e=Ln(),t=Nt(),r=On(),n=uc(),i=Object.getOwnPropertySymbols,o=i?function(s){for(var l=[];s;)e(l,r(s)),s=t(s);return l}:n;return xn=o,xn}var Pn,_c;function Dm(){if(_c)return Pn;_c=1;var e=nt(),t=gc();function r(n,i){return e(n,t(n),i)}return Pn=r,Pn}var $n,yc;function bc(){if(yc)return $n;yc=1;var e=Ln(),t=K();function r(n,i,o){var s=i(n);return t(n)?s:e(s,o(n))}return $n=r,$n}var Mn,vc;function Ec(){if(vc)return Mn;vc=1;var e=bc(),t=On(),r=ke();function n(i){return e(i,r,t)}return Mn=n,Mn}var Hn,kc;function xm(){if(kc)return Hn;kc=1;var e=bc(),t=gc(),r=Le();function n(i){return e(i,r,t)}return Hn=n,Hn}var Gn,Cc;function Pm(){if(Cc)return Gn;Cc=1;var e=Ve(),t=ae(),r=e(t,"DataView");return Gn=r,Gn}var jn,wc;function $m(){if(wc)return jn;wc=1;var e=Ve(),t=ae(),r=e(t,"Promise");return jn=r,jn}var Fn,Sc;function Nc(){if(Sc)return Fn;Sc=1;var e=Ve(),t=ae(),r=e(t,"Set");return Fn=r,Fn}var zn,Tc;function Mm(){if(Tc)return zn;Tc=1;var e=Ve(),t=ae(),r=e(t,"WeakMap");return zn=r,zn}var Un,Ic;function Ke(){if(Ic)return Un;Ic=1;var e=Pm(),t=Rr(),r=$m(),n=Nc(),i=Mm(),o=Be(),s=rl(),l="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",p=s(e),g=s(t),m=s(r),y=s(n),_=s(i),C=o;return(e&&C(new e(new ArrayBuffer(1)))!=h||t&&C(new t)!=l||r&&C(r.resolve())!=u||n&&C(new n)!=d||i&&C(new i)!=f)&&(C=function(v){var T=o(v),A=T==c?v.constructor:void 0,R=A?s(A):"";if(R)switch(R){case p:return h;case g:return l;case m:return u;case y:return d;case _:return f}return T}),Un=C,Un}var Kn,qc;function Hm(){if(qc)return Kn;qc=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,o=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(o.index=n.index,o.input=n.input),o}return Kn=r,Kn}var Wn,Rc;function Ac(){if(Rc)return Wn;Rc=1;var e=ae(),t=e.Uint8Array;return Wn=t,Wn}var Zn,Oc;function Xn(){if(Oc)return Zn;Oc=1;var e=Ac();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Zn=t,Zn}var Yn,Bc;function Gm(){if(Bc)return Yn;Bc=1;var e=Xn();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Yn=t,Yn}var Jn,Vc;function jm(){if(Vc)return Jn;Vc=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Jn=t,Jn}var Qn,Lc;function Fm(){if(Lc)return Qn;Lc=1;var e=ze(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Qn=n,Qn}var ei,Dc;function xc(){if(Dc)return ei;Dc=1;var e=Xn();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return ei=t,ei}var ti,Pc;function zm(){if(Pc)return ti;Pc=1;var e=Xn(),t=Gm(),r=jm(),n=Fm(),i=xc(),o="[object Boolean]",s="[object Date]",l="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",f="[object String]",h="[object Symbol]",p="[object ArrayBuffer]",g="[object DataView]",m="[object Float32Array]",y="[object Float64Array]",_="[object Int8Array]",C="[object Int16Array]",v="[object Int32Array]",T="[object Uint8Array]",A="[object Uint8ClampedArray]",R="[object Uint16Array]",I="[object Uint32Array]";function V(P,E,b){var q=P.constructor;switch(E){case p:return e(P);case o:case s:return new q(+P);case g:return t(P,b);case m:case y:case _:case C:case v:case T:case A:case R:case I:return i(P,b);case l:return new q;case c:case f:return new q(P);case u:return r(P);case d:return new q;case h:return n(P)}}return ti=V,ti}var ri,$c;function Mc(){if($c)return ri;$c=1;var e=re(),t=Object.create,r=function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var o=new n;return n.prototype=void 0,o}}();return ri=r,ri}var ni,Hc;function Gc(){if(Hc)return ni;Hc=1;var e=Mc(),t=Nt(),r=St();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return ni=n,ni}var ii,jc;function Um(){if(jc)return ii;jc=1;var e=Ke(),t=de(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return ii=n,ii}var ai,Fc;function Km(){if(Fc)return ai;Fc=1;var e=Um(),t=wt(),r=hn(),n=r&&r.isMap,i=n?t(n):e;return ai=i,ai}var oi,zc;function Wm(){if(zc)return oi;zc=1;var e=Ke(),t=de(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return oi=n,oi}var si,Uc;function Zm(){if(Uc)return si;Uc=1;var e=Wm(),t=wt(),r=hn(),n=r&&r.isSet,i=n?t(n):e;return si=i,si}var li,Kc;function Wc(){if(Kc)return li;Kc=1;var e=vt(),t=Xr(),r=kt(),n=Am(),i=Vm(),o=ic(),s=oc(),l=Lm(),c=Dm(),u=Ec(),d=xm(),f=Ke(),h=Hm(),p=zm(),g=Gc(),m=K(),y=Ue(),_=Km(),C=re(),v=Zm(),T=ke(),A=Le(),R=1,I=2,V=4,P="[object Arguments]",E="[object Array]",b="[object Boolean]",q="[object Date]",S="[object Error]",Z="[object Function]",X="[object GeneratorFunction]",Ie="[object Map]",Yt="[object Number]",ht="[object Object]",N="[object RegExp]",Y="[object Set]",ue="[object String]",qe="[object Symbol]",He="[object WeakMap]",pt="[object ArrayBuffer]",vw="[object DataView]",Ew="[object Float32Array]",kw="[object Float64Array]",Cw="[object Int8Array]",ww="[object Int16Array]",Sw="[object Int32Array]",Nw="[object Uint8Array]",Tw="[object Uint8ClampedArray]",Iw="[object Uint16Array]",qw="[object Uint32Array]",F={};F[P]=F[E]=F[pt]=F[vw]=F[b]=F[q]=F[Ew]=F[kw]=F[Cw]=F[ww]=F[Sw]=F[Ie]=F[Yt]=F[ht]=F[N]=F[Y]=F[ue]=F[qe]=F[Nw]=F[Tw]=F[Iw]=F[qw]=!0,F[S]=F[Z]=F[He]=!1;function Jt(G,Ye,Je,Rw,Qt,Re){var Q,er=Ye&R,tr=Ye&I,Aw=Ye&V;if(Je&&(Q=Qt?Je(G,Rw,Qt,Re):Je(G)),Q!==void 0)return Q;if(!C(G))return G;var jp=m(G);if(jp){if(Q=h(G),!er)return s(G,Q)}else{var Qe=f(G),Fp=Qe==Z||Qe==X;if(y(G))return o(G,er);if(Qe==ht||Qe==P||Fp&&!Qt){if(Q=tr||Fp?{}:g(G),!er)return tr?c(G,i(Q,G)):l(G,n(Q,G))}else{if(!F[Qe])return Qt?G:{};Q=p(G,Qe,er)}}Re||(Re=new e);var zp=Re.get(G);if(zp)return zp;Re.set(G,Q),v(G)?G.forEach(function(Ae){Q.add(Jt(Ae,Ye,Je,Ae,G,Re))}):_(G)&&G.forEach(function(Ae,Ge){Q.set(Ge,Jt(Ae,Ye,Je,Ge,G,Re))});var Ow=Aw?tr?d:u:tr?A:T,Up=jp?void 0:Ow(G);return t(Up||G,function(Ae,Ge){Up&&(Ge=Ae,Ae=G[Ge]),r(Q,Ge,Jt(Ae,Ye,Je,Ge,G,Re))}),Q}return li=Jt,li}var ci,Zc;function Xm(){if(Zc)return ci;Zc=1;var e=Wc(),t=4;function r(n){return e(n,t)}return ci=r,ci}var ui,Xc;function di(){if(Xc)return ui;Xc=1;function e(t){return function(){return t}}return ui=e,ui}var fi,Yc;function Ym(){if(Yc)return fi;Yc=1;function e(t){return function(r,n,i){for(var o=-1,s=Object(r),l=i(r),c=l.length;c--;){var u=l[t?c:++o];if(n(s[u],u,s)===!1)break}return r}}return fi=e,fi}var hi,Jc;function pi(){if(Jc)return hi;Jc=1;var e=Ym(),t=e();return hi=t,hi}var mi,Qc;function gi(){if(Qc)return mi;Qc=1;var e=pi(),t=ke();function r(n,i){return n&&e(n,i,t)}return mi=r,mi}var _i,eu;function Jm(){if(eu)return _i;eu=1;var e=pe();function t(r,n){return function(i,o){if(i==null)return i;if(!e(i))return r(i,o);for(var s=i.length,l=n?s:-1,c=Object(i);(n?l--:++l<s)&&o(c[l],l,c)!==!1;);return i}}return _i=t,_i}var yi,tu;function Tt(){if(tu)return yi;tu=1;var e=gi(),t=Jm(),r=t(e);return yi=r,yi}var bi,ru;function De(){if(ru)return bi;ru=1;function e(t){return t}return bi=e,bi}var vi,nu;function iu(){if(nu)return vi;nu=1;var e=De();function t(r){return typeof r=="function"?r:e}return vi=t,vi}var Ei,au;function ou(){if(au)return Ei;au=1;var e=Xr(),t=Tt(),r=iu(),n=K();function i(o,s){var l=n(o)?e:t;return l(o,r(s))}return Ei=i,Ei}var ki,su;function lu(){return su||(su=1,ki=ou()),ki}var Ci,cu;function Qm(){if(cu)return Ci;cu=1;var e=Tt();function t(r,n){var i=[];return e(r,function(o,s,l){n(o,s,l)&&i.push(o)}),i}return Ci=t,Ci}var wi,uu;function eg(){if(uu)return wi;uu=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return wi=t,wi}var Si,du;function tg(){if(du)return Si;du=1;function e(t){return this.__data__.has(t)}return Si=e,Si}var Ni,fu;function hu(){if(fu)return Ni;fu=1;var e=Ur(),t=eg(),r=tg();function n(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Ni=n,Ni}var Ti,pu;function rg(){if(pu)return Ti;pu=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Ti=e,Ti}var Ii,mu;function gu(){if(mu)return Ii;mu=1;function e(t,r){return t.has(r)}return Ii=e,Ii}var qi,_u;function yu(){if(_u)return qi;_u=1;var e=hu(),t=rg(),r=gu(),n=1,i=2;function o(s,l,c,u,d,f){var h=c&n,p=s.length,g=l.length;if(p!=g&&!(h&&g>p))return!1;var m=f.get(s),y=f.get(l);if(m&&y)return m==l&&y==s;var _=-1,C=!0,v=c&i?new e:void 0;for(f.set(s,l),f.set(l,s);++_<p;){var T=s[_],A=l[_];if(u)var R=h?u(A,T,_,l,s,f):u(T,A,_,s,l,f);if(R!==void 0){if(R)continue;C=!1;break}if(v){if(!t(l,function(I,V){if(!r(v,V)&&(T===I||d(T,I,c,u,f)))return v.push(V)})){C=!1;break}}else if(!(T===A||d(T,A,c,u,f))){C=!1;break}}return f.delete(s),f.delete(l),C}return qi=o,qi}var Ri,bu;function ng(){if(bu)return Ri;bu=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return Ri=e,Ri}var Ai,vu;function Oi(){if(vu)return Ai;vu=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ai=e,Ai}var Bi,Eu;function ig(){if(Eu)return Bi;Eu=1;var e=ze(),t=Ac(),r=Fe(),n=yu(),i=ng(),o=Oi(),s=1,l=2,c="[object Boolean]",u="[object Date]",d="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",g="[object Set]",m="[object String]",y="[object Symbol]",_="[object ArrayBuffer]",C="[object DataView]",v=e?e.prototype:void 0,T=v?v.valueOf:void 0;function A(R,I,V,P,E,b,q){switch(V){case C:if(R.byteLength!=I.byteLength||R.byteOffset!=I.byteOffset)return!1;R=R.buffer,I=I.buffer;case _:return!(R.byteLength!=I.byteLength||!b(new t(R),new t(I)));case c:case u:case h:return r(+R,+I);case d:return R.name==I.name&&R.message==I.message;case p:case m:return R==I+"";case f:var S=i;case g:var Z=P&s;if(S||(S=o),R.size!=I.size&&!Z)return!1;var X=q.get(R);if(X)return X==I;P|=l,q.set(R,I);var Ie=n(S(R),S(I),P,E,b,q);return q.delete(R),Ie;case y:if(T)return T.call(R)==T.call(I)}return!1}return Bi=A,Bi}var Vi,ku;function ag(){if(ku)return Vi;ku=1;var e=Ec(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,s,l,c,u,d){var f=l&t,h=e(o),p=h.length,g=e(s),m=g.length;if(p!=m&&!f)return!1;for(var y=p;y--;){var _=h[y];if(!(f?_ in s:n.call(s,_)))return!1}var C=d.get(o),v=d.get(s);if(C&&v)return C==s&&v==o;var T=!0;d.set(o,s),d.set(s,o);for(var A=f;++y<p;){_=h[y];var R=o[_],I=s[_];if(c)var V=f?c(I,R,_,s,o,d):c(R,I,_,o,s,d);if(!(V===void 0?R===I||u(R,I,l,c,d):V)){T=!1;break}A||(A=_=="constructor")}if(T&&!A){var P=o.constructor,E=s.constructor;P!=E&&"constructor"in o&&"constructor"in s&&!(typeof P=="function"&&P instanceof P&&typeof E=="function"&&E instanceof E)&&(T=!1)}return d.delete(o),d.delete(s),T}return Vi=i,Vi}var Li,Cu;function og(){if(Cu)return Li;Cu=1;var e=vt(),t=yu(),r=ig(),n=ag(),i=Ke(),o=K(),s=Ue(),l=st(),c=1,u="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function g(m,y,_,C,v,T){var A=o(m),R=o(y),I=A?d:i(m),V=R?d:i(y);I=I==u?f:I,V=V==u?f:V;var P=I==f,E=V==f,b=I==V;if(b&&s(m)){if(!s(y))return!1;A=!0,P=!1}if(b&&!P)return T||(T=new e),A||l(m)?t(m,y,_,C,v,T):r(m,y,I,_,C,v,T);if(!(_&c)){var q=P&&p.call(m,"__wrapped__"),S=E&&p.call(y,"__wrapped__");if(q||S){var Z=q?m.value():m,X=S?y.value():y;return T||(T=new e),v(Z,X,_,C,T)}}return b?(T||(T=new e),n(m,y,_,C,v,T)):!1}return Li=g,Li}var Di,wu;function Su(){if(wu)return Di;wu=1;var e=og(),t=de();function r(n,i,o,s,l){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,o,s,r,l)}return Di=r,Di}var xi,Nu;function sg(){if(Nu)return xi;Nu=1;var e=vt(),t=Su(),r=1,n=2;function i(o,s,l,c){var u=l.length,d=u,f=!c;if(o==null)return!d;for(o=Object(o);u--;){var h=l[u];if(f&&h[2]?h[1]!==o[h[0]]:!(h[0]in o))return!1}for(;++u<d;){h=l[u];var p=h[0],g=o[p],m=h[1];if(f&&h[2]){if(g===void 0&&!(p in o))return!1}else{var y=new e;if(c)var _=c(g,m,p,o,s,y);if(!(_===void 0?t(m,g,r|n,c,y):_))return!1}}return!0}return xi=i,xi}var Pi,Tu;function Iu(){if(Tu)return Pi;Tu=1;var e=re();function t(r){return r===r&&!e(r)}return Pi=t,Pi}var $i,qu;function lg(){if(qu)return $i;qu=1;var e=Iu(),t=ke();function r(n){for(var i=t(n),o=i.length;o--;){var s=i[o],l=n[s];i[o]=[s,l,e(l)]}return i}return $i=r,$i}var Mi,Ru;function Au(){if(Ru)return Mi;Ru=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Mi=e,Mi}var Hi,Ou;function cg(){if(Ou)return Hi;Ou=1;var e=sg(),t=lg(),r=Au();function n(i){var o=t(i);return o.length==1&&o[0][2]?r(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return Hi=n,Hi}var Gi,Bu;function We(){if(Bu)return Gi;Bu=1;var e=Be(),t=de(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Gi=n,Gi}var ji,Vu;function Fi(){if(Vu)return ji;Vu=1;var e=K(),t=We(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(o,s){if(e(o))return!1;var l=typeof o;return l=="number"||l=="symbol"||l=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||s!=null&&o in Object(s)}return ji=i,ji}var zi,Lu;function ug(){if(Lu)return zi;Lu=1;var e=Ur(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,l=i?i.apply(this,s):s[0],c=o.cache;if(c.has(l))return c.get(l);var u=n.apply(this,s);return o.cache=c.set(l,u)||c,u};return o.cache=new(r.Cache||e),o}return r.Cache=e,zi=r,zi}var Ui,Du;function dg(){if(Du)return Ui;Du=1;var e=ug(),t=500;function r(n){var i=e(n,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return Ui=r,Ui}var Ki,xu;function fg(){if(xu)return Ki;xu=1;var e=dg(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,l,c,u){o.push(c?u.replace(r,"$1"):l||s)}),o});return Ki=n,Ki}var Wi,Pu;function It(){if(Pu)return Wi;Pu=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=Array(i);++n<i;)o[n]=r(t[n],n,t);return o}return Wi=e,Wi}var Zi,$u;function hg(){if($u)return Zi;$u=1;var e=ze(),t=It(),r=K(),n=We(),i=1/0,o=e?e.prototype:void 0,s=o?o.toString:void 0;function l(c){if(typeof c=="string")return c;if(r(c))return t(c,l)+"";if(n(c))return s?s.call(c):"";var u=c+"";return u=="0"&&1/c==-i?"-0":u}return Zi=l,Zi}var Xi,Mu;function Hu(){if(Mu)return Xi;Mu=1;var e=hg();function t(r){return r==null?"":e(r)}return Xi=t,Xi}var Yi,Gu;function qt(){if(Gu)return Yi;Gu=1;var e=K(),t=Fi(),r=fg(),n=Hu();function i(o,s){return e(o)?o:t(o,s)?[o]:r(n(o))}return Yi=i,Yi}var Ji,ju;function ct(){if(ju)return Ji;ju=1;var e=We(),t=1/0;function r(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-t?"-0":i}return Ji=r,Ji}var Qi,Fu;function Rt(){if(Fu)return Qi;Fu=1;var e=qt(),t=ct();function r(n,i){i=e(i,n);for(var o=0,s=i.length;n!=null&&o<s;)n=n[t(i[o++])];return o&&o==s?n:void 0}return Qi=r,Qi}var ea,zu;function pg(){if(zu)return ea;zu=1;var e=Rt();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return ea=t,ea}var ta,Uu;function mg(){if(Uu)return ta;Uu=1;function e(t,r){return t!=null&&r in Object(t)}return ta=e,ta}var ra,Ku;function Wu(){if(Ku)return ra;Ku=1;var e=qt(),t=it(),r=K(),n=Ct(),i=un(),o=ct();function s(l,c,u){c=e(c,l);for(var d=-1,f=c.length,h=!1;++d<f;){var p=o(c[d]);if(!(h=l!=null&&u(l,p)))break;l=l[p]}return h||++d!=f?h:(f=l==null?0:l.length,!!f&&i(f)&&n(p,f)&&(r(l)||t(l)))}return ra=s,ra}var na,Zu;function Xu(){if(Zu)return na;Zu=1;var e=mg(),t=Wu();function r(n,i){return n!=null&&t(n,i,e)}return na=r,na}var ia,Yu;function gg(){if(Yu)return ia;Yu=1;var e=Su(),t=pg(),r=Xu(),n=Fi(),i=Iu(),o=Au(),s=ct(),l=1,c=2;function u(d,f){return n(d)&&i(f)?o(s(d),f):function(h){var p=t(h,d);return p===void 0&&p===f?r(h,d):e(f,p,l|c)}}return ia=u,ia}var aa,Ju;function Qu(){if(Ju)return aa;Ju=1;function e(t){return function(r){return r==null?void 0:r[t]}}return aa=e,aa}var oa,ed;function _g(){if(ed)return oa;ed=1;var e=Rt();function t(r){return function(n){return e(n,r)}}return oa=t,oa}var sa,td;function yg(){if(td)return sa;td=1;var e=Qu(),t=_g(),r=Fi(),n=ct();function i(o){return r(o)?e(n(o)):t(o)}return sa=i,sa}var la,rd;function me(){if(rd)return la;rd=1;var e=cg(),t=gg(),r=De(),n=K(),i=yg();function o(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):i(s)}return la=o,la}var ca,nd;function id(){if(nd)return ca;nd=1;var e=lc(),t=Qm(),r=me(),n=K();function i(o,s){var l=n(o)?e:t;return l(o,r(s,3))}return ca=i,ca}var ua,ad;function bg(){if(ad)return ua;ad=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return ua=r,ua}var da,od;function sd(){if(od)return da;od=1;var e=bg(),t=Wu();function r(n,i){return n!=null&&t(n,i,e)}return da=r,da}var fa,ld;function vg(){if(ld)return fa;ld=1;var e=vn(),t=Ke(),r=it(),n=K(),i=pe(),o=Ue(),s=St(),l=st(),c="[object Map]",u="[object Set]",d=Object.prototype,f=d.hasOwnProperty;function h(p){if(p==null)return!0;if(i(p)&&(n(p)||typeof p=="string"||typeof p.splice=="function"||o(p)||l(p)||r(p)))return!p.length;var g=t(p);if(g==c||g==u)return!p.size;if(s(p))return!e(p).length;for(var m in p)if(f.call(p,m))return!1;return!0}return fa=h,fa}var ha,cd;function ud(){if(cd)return ha;cd=1;function e(t){return t===void 0}return ha=e,ha}var pa,dd;function fd(){if(dd)return pa;dd=1;var e=Tt(),t=pe();function r(n,i){var o=-1,s=t(n)?Array(n.length):[];return e(n,function(l,c,u){s[++o]=i(l,c,u)}),s}return pa=r,pa}var ma,hd;function pd(){if(hd)return ma;hd=1;var e=It(),t=me(),r=fd(),n=K();function i(o,s){var l=n(o)?e:r;return l(o,t(s,3))}return ma=i,ma}var ga,md;function Eg(){if(md)return ga;md=1;function e(t,r,n,i){var o=-1,s=t==null?0:t.length;for(i&&s&&(n=t[++o]);++o<s;)n=r(n,t[o],o,t);return n}return ga=e,ga}var _a,gd;function kg(){if(gd)return _a;gd=1;function e(t,r,n,i,o){return o(t,function(s,l,c){n=i?(i=!1,s):r(n,s,l,c)}),n}return _a=e,_a}var ya,_d;function yd(){if(_d)return ya;_d=1;var e=Eg(),t=Tt(),r=me(),n=kg(),i=K();function o(s,l,c){var u=i(s)?e:n,d=arguments.length<3;return u(s,r(l,4),c,d,t)}return ya=o,ya}var ba,bd;function Cg(){if(bd)return ba;bd=1;var e=Be(),t=K(),r=de(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return ba=i,ba}var va,vd;function wg(){if(vd)return va;vd=1;var e=Qu(),t=e("length");return va=t,va}var Ea,Ed;function Sg(){if(Ed)return Ea;Ed=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+e+i+o+"]");function c(u){return l.test(u)}return Ea=c,Ea}var ka,kd;function Ng(){if(kd)return ka;kd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",s="["+e+"]",l="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",g=u+"?",m="["+o+"]?",y="(?:"+p+"(?:"+[d,f,h].join("|")+")"+m+g+")*",_=m+g+y,C="(?:"+[d+l+"?",l,f,h,s].join("|")+")",v=RegExp(c+"(?="+c+")|"+C+_,"g");function T(A){for(var R=v.lastIndex=0;v.test(A);)++R;return R}return ka=T,ka}var Ca,Cd;function Tg(){if(Cd)return Ca;Cd=1;var e=wg(),t=Sg(),r=Ng();function n(i){return t(i)?r(i):e(i)}return Ca=n,Ca}var wa,wd;function Ig(){if(wd)return wa;wd=1;var e=vn(),t=Ke(),r=pe(),n=Cg(),i=Tg(),o="[object Map]",s="[object Set]";function l(c){if(c==null)return 0;if(r(c))return n(c)?i(c):c.length;var u=t(c);return u==o||u==s?c.size:e(c).length}return wa=l,wa}var Sa,Sd;function qg(){if(Sd)return Sa;Sd=1;var e=Xr(),t=Mc(),r=gi(),n=me(),i=Nt(),o=K(),s=Ue(),l=rt(),c=re(),u=st();function d(f,h,p){var g=o(f),m=g||s(f)||u(f);if(h=n(h,4),p==null){var y=f&&f.constructor;m?p=g?new y:[]:c(f)?p=l(y)?t(i(f)):{}:p={}}return(m?e:r)(f,function(_,C,v){return h(p,_,C,v)}),p}return Sa=d,Sa}var Na,Nd;function Rg(){if(Nd)return Na;Nd=1;var e=ze(),t=it(),r=K(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return Na=i,Na}var Ta,Td;function Ia(){if(Td)return Ta;Td=1;var e=Ln(),t=Rg();function r(n,i,o,s,l){var c=-1,u=n.length;for(o||(o=t),l||(l=[]);++c<u;){var d=n[c];i>0&&o(d)?i>1?r(d,i-1,o,s,l):e(l,d):s||(l[l.length]=d)}return l}return Ta=r,Ta}var qa,Id;function Ag(){if(Id)return qa;Id=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return qa=e,qa}var Ra,qd;function Rd(){if(qd)return Ra;qd=1;var e=Ag(),t=Math.max;function r(n,i,o){return i=t(i===void 0?n.length-1:i,0),function(){for(var s=arguments,l=-1,c=t(s.length-i,0),u=Array(c);++l<c;)u[l]=s[i+l];l=-1;for(var d=Array(i+1);++l<i;)d[l]=s[l];return d[i]=o(u),e(n,this,d)}}return Ra=r,Ra}var Aa,Ad;function Og(){if(Ad)return Aa;Ad=1;var e=di(),t=Nl(),r=De(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return Aa=n,Aa}var Oa,Od;function Bg(){if(Od)return Oa;Od=1;var e=800,t=16,r=Date.now;function n(i){var o=0,s=0;return function(){var l=r(),c=t-(l-s);if(s=l,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Oa=n,Oa}var Ba,Bd;function Vd(){if(Bd)return Ba;Bd=1;var e=Og(),t=Bg(),r=t(e);return Ba=r,Ba}var Va,Ld;function At(){if(Ld)return Va;Ld=1;var e=De(),t=Rd(),r=Vd();function n(i,o){return r(t(i,o,e),i+"")}return Va=n,Va}var La,Dd;function xd(){if(Dd)return La;Dd=1;function e(t,r,n,i){for(var o=t.length,s=n+(i?1:-1);i?s--:++s<o;)if(r(t[s],s,t))return s;return-1}return La=e,La}var Da,Pd;function Vg(){if(Pd)return Da;Pd=1;function e(t){return t!==t}return Da=e,Da}var xa,$d;function Lg(){if($d)return xa;$d=1;function e(t,r,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===r)return i;return-1}return xa=e,xa}var Pa,Md;function Dg(){if(Md)return Pa;Md=1;var e=xd(),t=Vg(),r=Lg();function n(i,o,s){return o===o?r(i,o,s):e(i,t,s)}return Pa=n,Pa}var $a,Hd;function xg(){if(Hd)return $a;Hd=1;var e=Dg();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return $a=t,$a}var Ma,Gd;function Pg(){if(Gd)return Ma;Gd=1;function e(t,r,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(n(r,t[i]))return!0;return!1}return Ma=e,Ma}var Ha,jd;function $g(){if(jd)return Ha;jd=1;function e(){}return Ha=e,Ha}var Ga,Fd;function Mg(){if(Fd)return Ga;Fd=1;var e=Nc(),t=$g(),r=Oi(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return Ga=i,Ga}var ja,zd;function Hg(){if(zd)return ja;zd=1;var e=hu(),t=xg(),r=Pg(),n=gu(),i=Mg(),o=Oi(),s=200;function l(c,u,d){var f=-1,h=t,p=c.length,g=!0,m=[],y=m;if(d)g=!1,h=r;else if(p>=s){var _=u?null:i(c);if(_)return o(_);g=!1,h=n,y=new e}else y=u?[]:m;e:for(;++f<p;){var C=c[f],v=u?u(C):C;if(C=d||C!==0?C:0,g&&v===v){for(var T=y.length;T--;)if(y[T]===v)continue e;u&&y.push(v),m.push(C)}else h(y,v,d)||(y!==m&&y.push(v),m.push(C))}return m}return ja=l,ja}var Fa,Ud;function Kd(){if(Ud)return Fa;Ud=1;var e=pe(),t=de();function r(n){return t(n)&&e(n)}return Fa=r,Fa}var za,Wd;function Gg(){if(Wd)return za;Wd=1;var e=Ia(),t=At(),r=Hg(),n=Kd(),i=t(function(o){return r(e(o,1,n,!0))});return za=i,za}var Ua,Zd;function jg(){if(Zd)return Ua;Zd=1;var e=It();function t(r,n){return e(n,function(i){return r[i]})}return Ua=t,Ua}var Ka,Xd;function Yd(){if(Xd)return Ka;Xd=1;var e=jg(),t=ke();function r(n){return n==null?[]:e(n,t(n))}return Ka=r,Ka}var Wa,Jd;function ne(){if(Jd)return Wa;Jd=1;var e;if(typeof rr=="function")try{e={clone:Xm(),constant:di(),each:lu(),filter:id(),has:sd(),isArray:K(),isEmpty:vg(),isFunction:rt(),isUndefined:ud(),keys:ke(),map:pd(),reduce:yd(),size:Ig(),transform:qg(),union:Gg(),values:Yd()}}catch{}return e||(e=window._),Wa=e,Wa}var Za,Qd;function Xa(){if(Qd)return Za;Qd=1;var e=ne();Za=i;var t="\0",r="\0",n="";function i(d){this._isDirected=e.has(d,"directed")?d.directed:!0,this._isMultigraph=e.has(d,"multigraph")?d.multigraph:!1,this._isCompound=e.has(d,"compound")?d.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[r]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(d){return this._label=d,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(d){return e.isFunction(d)||(d=e.constant(d)),this._defaultNodeLabelFn=d,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var d=this;return e.filter(this.nodes(),function(f){return e.isEmpty(d._in[f])})},i.prototype.sinks=function(){var d=this;return e.filter(this.nodes(),function(f){return e.isEmpty(d._out[f])})},i.prototype.setNodes=function(d,f){var h=arguments,p=this;return e.each(d,function(g){h.length>1?p.setNode(g,f):p.setNode(g)}),this},i.prototype.setNode=function(d,f){return e.has(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=f),this):(this._nodes[d]=arguments.length>1?f:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]=r,this._children[d]={},this._children[r][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)},i.prototype.node=function(d){return this._nodes[d]},i.prototype.hasNode=function(d){return e.has(this._nodes,d)},i.prototype.removeNode=function(d){var f=this;if(e.has(this._nodes,d)){var h=function(p){f.removeEdge(f._edgeObjs[p])};delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],e.each(this.children(d),function(p){f.setParent(p)}),delete this._children[d]),e.each(e.keys(this._in[d]),h),delete this._in[d],delete this._preds[d],e.each(e.keys(this._out[d]),h),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this},i.prototype.setParent=function(d,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var h=f;!e.isUndefined(h);h=this.parent(h))if(h===d)throw new Error("Setting "+f+" as parent of "+d+" would create a cycle");this.setNode(f)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=f,this._children[f][d]=!0,this},i.prototype._removeFromParentsChildList=function(d){delete this._children[this._parent[d]][d]},i.prototype.parent=function(d){if(this._isCompound){var f=this._parent[d];if(f!==r)return f}},i.prototype.children=function(d){if(e.isUndefined(d)&&(d=r),this._isCompound){var f=this._children[d];if(f)return e.keys(f)}else{if(d===r)return this.nodes();if(this.hasNode(d))return[]}},i.prototype.predecessors=function(d){var f=this._preds[d];if(f)return e.keys(f)},i.prototype.successors=function(d){var f=this._sucs[d];if(f)return e.keys(f)},i.prototype.neighbors=function(d){var f=this.predecessors(d);if(f)return e.union(f,this.successors(d))},i.prototype.isLeaf=function(d){var f;return this.isDirected()?f=this.successors(d):f=this.neighbors(d),f.length===0},i.prototype.filterNodes=function(d){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var h=this;e.each(this._nodes,function(m,y){d(y)&&f.setNode(y,m)}),e.each(this._edgeObjs,function(m){f.hasNode(m.v)&&f.hasNode(m.w)&&f.setEdge(m,h.edge(m))});var p={};function g(m){var y=h.parent(m);return y===void 0||f.hasNode(y)?(p[m]=y,y):y in p?p[y]:g(y)}return this._isCompound&&e.each(f.nodes(),function(m){f.setParent(m,g(m))}),f},i.prototype.setDefaultEdgeLabel=function(d){return e.isFunction(d)||(d=e.constant(d)),this._defaultEdgeLabelFn=d,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(d,f){var h=this,p=arguments;return e.reduce(d,function(g,m){return p.length>1?h.setEdge(g,m,f):h.setEdge(g,m),m}),this},i.prototype.setEdge=function(){var d,f,h,p,g=!1,m=arguments[0];typeof m=="object"&&m!==null&&"v"in m?(d=m.v,f=m.w,h=m.name,arguments.length===2&&(p=arguments[1],g=!0)):(d=m,f=arguments[1],h=arguments[3],arguments.length>2&&(p=arguments[2],g=!0)),d=""+d,f=""+f,e.isUndefined(h)||(h=""+h);var y=l(this._isDirected,d,f,h);if(e.has(this._edgeLabels,y))return g&&(this._edgeLabels[y]=p),this;if(!e.isUndefined(h)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(f),this._edgeLabels[y]=g?p:this._defaultEdgeLabelFn(d,f,h);var _=c(this._isDirected,d,f,h);return d=_.v,f=_.w,Object.freeze(_),this._edgeObjs[y]=_,o(this._preds[f],d),o(this._sucs[d],f),this._in[f][y]=_,this._out[d][y]=_,this._edgeCount++,this},i.prototype.edge=function(d,f,h){var p=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,d,f,h);return this._edgeLabels[p]},i.prototype.hasEdge=function(d,f,h){var p=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,d,f,h);return e.has(this._edgeLabels,p)},i.prototype.removeEdge=function(d,f,h){var p=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,d,f,h),g=this._edgeObjs[p];return g&&(d=g.v,f=g.w,delete this._edgeLabels[p],delete this._edgeObjs[p],s(this._preds[f],d),s(this._sucs[d],f),delete this._in[f][p],delete this._out[d][p],this._edgeCount--),this},i.prototype.inEdges=function(d,f){var h=this._in[d];if(h){var p=e.values(h);return f?e.filter(p,function(g){return g.v===f}):p}},i.prototype.outEdges=function(d,f){var h=this._out[d];if(h){var p=e.values(h);return f?e.filter(p,function(g){return g.w===f}):p}},i.prototype.nodeEdges=function(d,f){var h=this.inEdges(d,f);if(h)return h.concat(this.outEdges(d,f))};function o(d,f){d[f]?d[f]++:d[f]=1}function s(d,f){--d[f]||delete d[f]}function l(d,f,h,p){var g=""+f,m=""+h;if(!d&&g>m){var y=g;g=m,m=y}return g+n+m+n+(e.isUndefined(p)?t:p)}function c(d,f,h,p){var g=""+f,m=""+h;if(!d&&g>m){var y=g;g=m,m=y}var _={v:g,w:m};return p&&(_.name=p),_}function u(d,f){return l(d,f.v,f.w,f.name)}return Za}var Ya,ef;function Fg(){return ef||(ef=1,Ya="2.1.8"),Ya}var Ja,tf;function zg(){return tf||(tf=1,Ja={Graph:Xa(),version:Fg()}),Ja}var Qa,rf;function Ug(){if(rf)return Qa;rf=1;var e=ne(),t=Xa();Qa={write:r,read:o};function r(s){var l={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:i(s)};return e.isUndefined(s.graph())||(l.value=e.clone(s.graph())),l}function n(s){return e.map(s.nodes(),function(l){var c=s.node(l),u=s.parent(l),d={v:l};return e.isUndefined(c)||(d.value=c),e.isUndefined(u)||(d.parent=u),d})}function i(s){return e.map(s.edges(),function(l){var c=s.edge(l),u={v:l.v,w:l.w};return e.isUndefined(l.name)||(u.name=l.name),e.isUndefined(c)||(u.value=c),u})}function o(s){var l=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(c){l.setNode(c.v,c.value),c.parent&&l.setParent(c.v,c.parent)}),e.each(s.edges,function(c){l.setEdge({v:c.v,w:c.w,name:c.name},c.value)}),l}return Qa}var eo,nf;function Kg(){if(nf)return eo;nf=1;var e=ne();eo=t;function t(r){var n={},i=[],o;function s(l){e.has(n,l)||(n[l]=!0,o.push(l),e.each(r.successors(l),s),e.each(r.predecessors(l),s))}return e.each(r.nodes(),function(l){o=[],s(l),o.length&&i.push(o)}),i}return eo}var to,af;function of(){if(af)return to;af=1;var e=ne();to=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var i=this._keyIndices;if(r=String(r),!e.has(i,r)){var o=this._arr,s=o.length;return i[r]=s,o.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var i=this._keyIndices[r];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},t.prototype._heapify=function(r){var n=this._arr,i=2*r,o=i+1,s=r;i<n.length&&(s=n[i].priority<n[s].priority?i:s,o<n.length&&(s=n[o].priority<n[s].priority?o:s),s!==r&&(this._swap(r,s),this._heapify(s)))},t.prototype._decrease=function(r){for(var n=this._arr,i=n[r].priority,o;r!==0&&(o=r>>1,!(n[o].priority<i));)this._swap(r,o),r=o},t.prototype._swap=function(r,n){var i=this._arr,o=this._keyIndices,s=i[r],l=i[n];i[r]=l,i[n]=s,o[l.key]=r,o[s.key]=n},to}var ro,sf;function lf(){if(sf)return ro;sf=1;var e=ne(),t=of();ro=n;var r=e.constant(1);function n(o,s,l,c){return i(o,String(s),l||r,c||function(u){return o.outEdges(u)})}function i(o,s,l,c){var u={},d=new t,f,h,p=function(g){var m=g.v!==f?g.v:g.w,y=u[m],_=l(g),C=h.distance+_;if(_<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+_);C<y.distance&&(y.distance=C,y.predecessor=f,d.decrease(m,C))};for(o.nodes().forEach(function(g){var m=g===s?0:Number.POSITIVE_INFINITY;u[g]={distance:m},d.add(g,m)});d.size()>0&&(f=d.removeMin(),h=u[f],h.distance!==Number.POSITIVE_INFINITY);)c(f).forEach(p);return u}return ro}var no,cf;function Wg(){if(cf)return no;cf=1;var e=lf(),t=ne();no=r;function r(n,i,o){return t.transform(n.nodes(),function(s,l){s[l]=e(n,l,i,o)},{})}return no}var io,uf;function df(){if(uf)return io;uf=1;var e=ne();io=t;function t(r){var n=0,i=[],o={},s=[];function l(c){var u=o[c]={onStack:!0,lowlink:n,index:n++};if(i.push(c),r.successors(c).forEach(function(h){e.has(o,h)?o[h].onStack&&(u.lowlink=Math.min(u.lowlink,o[h].index)):(l(h),u.lowlink=Math.min(u.lowlink,o[h].lowlink))}),u.lowlink===u.index){var d=[],f;do f=i.pop(),o[f].onStack=!1,d.push(f);while(c!==f);s.push(d)}}return r.nodes().forEach(function(c){e.has(o,c)||l(c)}),s}return io}var ao,ff;function Zg(){if(ff)return ao;ff=1;var e=ne(),t=df();ao=r;function r(n){return e.filter(t(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return ao}var oo,hf;function Xg(){if(hf)return oo;hf=1;var e=ne();oo=r;var t=e.constant(1);function r(i,o,s){return n(i,o||t,s||function(l){return i.outEdges(l)})}function n(i,o,s){var l={},c=i.nodes();return c.forEach(function(u){l[u]={},l[u][u]={distance:0},c.forEach(function(d){u!==d&&(l[u][d]={distance:Number.POSITIVE_INFINITY})}),s(u).forEach(function(d){var f=d.v===u?d.w:d.v,h=o(d);l[u][f]={distance:h,predecessor:u}})}),c.forEach(function(u){var d=l[u];c.forEach(function(f){var h=l[f];c.forEach(function(p){var g=h[u],m=d[p],y=h[p],_=g.distance+m.distance;_<y.distance&&(y.distance=_,y.predecessor=m.predecessor)})})}),l}return oo}var so,pf;function mf(){if(pf)return so;pf=1;var e=ne();so=t,t.CycleException=r;function t(n){var i={},o={},s=[];function l(c){if(e.has(o,c))throw new r;e.has(i,c)||(o[c]=!0,i[c]=!0,e.each(n.predecessors(c),l),delete o[c],s.push(c))}if(e.each(n.sinks(),l),e.size(i)!==n.nodeCount())throw new r;return s}function r(){}return r.prototype=new Error,so}var lo,gf;function Yg(){if(gf)return lo;gf=1;var e=mf();lo=t;function t(r){try{e(r)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}return lo}var co,_f;function yf(){if(_f)return co;_f=1;var e=ne();co=t;function t(n,i,o){e.isArray(i)||(i=[i]);var s=(n.isDirected()?n.successors:n.neighbors).bind(n),l=[],c={};return e.each(i,function(u){if(!n.hasNode(u))throw new Error("Graph does not have node: "+u);r(n,u,o==="post",c,s,l)}),l}function r(n,i,o,s,l,c){e.has(s,i)||(s[i]=!0,o||c.push(i),e.each(l(i),function(u){r(n,u,o,s,l,c)}),o&&c.push(i))}return co}var uo,bf;function Jg(){if(bf)return uo;bf=1;var e=yf();uo=t;function t(r,n){return e(r,n,"post")}return uo}var fo,vf;function Qg(){if(vf)return fo;vf=1;var e=yf();fo=t;function t(r,n){return e(r,n,"pre")}return fo}var ho,Ef;function e1(){if(Ef)return ho;Ef=1;var e=ne(),t=Xa(),r=of();ho=n;function n(i,o){var s=new t,l={},c=new r,u;function d(h){var p=h.v===u?h.w:h.v,g=c.priority(p);if(g!==void 0){var m=o(h);m<g&&(l[p]=u,c.decrease(p,m))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(h){c.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),c.decrease(i.nodes()[0],0);for(var f=!1;c.size()>0;){if(u=c.removeMin(),e.has(l,u))s.setEdge(u,l[u]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(u).forEach(d)}return s}return ho}var po,kf;function t1(){return kf||(kf=1,po={components:Kg(),dijkstra:lf(),dijkstraAll:Wg(),findCycles:Zg(),floydWarshall:Xg(),isAcyclic:Yg(),postorder:Jg(),preorder:Qg(),prim:e1(),tarjan:df(),topsort:mf()}),po}var mo,Cf;function r1(){if(Cf)return mo;Cf=1;var e=zg();return mo={Graph:e.Graph,json:Ug(),alg:t1(),version:e.version},mo}var Ot;if(typeof rr=="function")try{Ot=r1()}catch{}Ot||(Ot=window.graphlib);var oe=Ot,go,wf;function n1(){if(wf)return go;wf=1;var e=Wc(),t=1,r=4;function n(i){return e(i,t|r)}return go=n,go}var _o,Sf;function Bt(){if(Sf)return _o;Sf=1;var e=Fe(),t=pe(),r=Ct(),n=re();function i(o,s,l){if(!n(l))return!1;var c=typeof s;return(c=="number"?t(l)&&r(s,l.length):c=="string"&&s in l)?e(l[s],o):!1}return _o=i,_o}var yo,Nf;function i1(){if(Nf)return yo;Nf=1;var e=At(),t=Fe(),r=Bt(),n=Le(),i=Object.prototype,o=i.hasOwnProperty,s=e(function(l,c){l=Object(l);var u=-1,d=c.length,f=d>2?c[2]:void 0;for(f&&r(c[0],c[1],f)&&(d=1);++u<d;)for(var h=c[u],p=n(h),g=-1,m=p.length;++g<m;){var y=p[g],_=l[y];(_===void 0||t(_,i[y])&&!o.call(l,y))&&(l[y]=h[y])}return l});return yo=s,yo}var bo,Tf;function a1(){if(Tf)return bo;Tf=1;var e=me(),t=pe(),r=ke();function n(i){return function(o,s,l){var c=Object(o);if(!t(o)){var u=e(s,3);o=r(o),s=function(f){return u(c[f],f,c)}}var d=i(o,s,l);return d>-1?c[u?o[d]:d]:void 0}}return bo=n,bo}var vo,If;function o1(){if(If)return vo;If=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return vo=t,vo}var Eo,qf;function s1(){if(qf)return Eo;qf=1;var e=o1(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Eo=r,Eo}var ko,Rf;function l1(){if(Rf)return ko;Rf=1;var e=s1(),t=re(),r=We(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=o.test(u);return f||s.test(u)?l(u.slice(2),f?2:8):i.test(u)?n:+u}return ko=c,ko}var Co,Af;function Of(){if(Af)return Co;Af=1;var e=l1(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*r}return i===i?i:0}return Co=n,Co}var wo,Bf;function c1(){if(Bf)return wo;Bf=1;var e=Of();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return wo=t,wo}var So,Vf;function u1(){if(Vf)return So;Vf=1;var e=xd(),t=me(),r=c1(),n=Math.max;function i(o,s,l){var c=o==null?0:o.length;if(!c)return-1;var u=l==null?0:r(l);return u<0&&(u=n(c+u,0)),e(o,t(s,3),u)}return So=i,So}var No,Lf;function d1(){if(Lf)return No;Lf=1;var e=a1(),t=u1(),r=e(t);return No=r,No}var To,Df;function xf(){if(Df)return To;Df=1;var e=Ia();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return To=t,To}var Io,Pf;function f1(){if(Pf)return Io;Pf=1;var e=pi(),t=iu(),r=Le();function n(i,o){return i==null?i:e(i,t(o),r)}return Io=n,Io}var qo,$f;function h1(){if($f)return qo;$f=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return qo=e,qo}var Ro,Mf;function p1(){if(Mf)return Ro;Mf=1;var e=Et(),t=gi(),r=me();function n(i,o){var s={};return o=r(o,3),t(i,function(l,c,u){e(s,c,o(l,c,u))}),s}return Ro=n,Ro}var Ao,Hf;function Oo(){if(Hf)return Ao;Hf=1;var e=We();function t(r,n,i){for(var o=-1,s=r.length;++o<s;){var l=r[o],c=n(l);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,d=l}return d}return Ao=t,Ao}var Bo,Gf;function m1(){if(Gf)return Bo;Gf=1;function e(t,r){return t>r}return Bo=e,Bo}var Vo,jf;function g1(){if(jf)return Vo;jf=1;var e=Oo(),t=m1(),r=De();function n(i){return i&&i.length?e(i,r,t):void 0}return Vo=n,Vo}var Lo,Ff;function zf(){if(Ff)return Lo;Ff=1;var e=Et(),t=Fe();function r(n,i,o){(o!==void 0&&!t(n[i],o)||o===void 0&&!(i in n))&&e(n,i,o)}return Lo=r,Lo}var Do,Uf;function _1(){if(Uf)return Do;Uf=1;var e=Be(),t=Nt(),r=de(),n="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,l=o.hasOwnProperty,c=s.call(Object);function u(d){if(!r(d)||e(d)!=n)return!1;var f=t(d);if(f===null)return!0;var h=l.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==c}return Do=u,Do}var xo,Kf;function Wf(){if(Kf)return xo;Kf=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return xo=e,xo}var Po,Zf;function y1(){if(Zf)return Po;Zf=1;var e=nt(),t=Le();function r(n){return e(n,t(n))}return Po=r,Po}var $o,Xf;function b1(){if(Xf)return $o;Xf=1;var e=zf(),t=ic(),r=xc(),n=oc(),i=Gc(),o=it(),s=K(),l=Kd(),c=Ue(),u=rt(),d=re(),f=_1(),h=st(),p=Wf(),g=y1();function m(y,_,C,v,T,A,R){var I=p(y,C),V=p(_,C),P=R.get(V);if(P){e(y,C,P);return}var E=A?A(I,V,C+"",y,_,R):void 0,b=E===void 0;if(b){var q=s(V),S=!q&&c(V),Z=!q&&!S&&h(V);E=V,q||S||Z?s(I)?E=I:l(I)?E=n(I):S?(b=!1,E=t(V,!0)):Z?(b=!1,E=r(V,!0)):E=[]:f(V)||o(V)?(E=I,o(I)?E=g(I):(!d(I)||u(I))&&(E=i(V))):b=!1}b&&(R.set(V,E),T(E,V,v,A,R),R.delete(V)),e(y,C,E)}return $o=m,$o}var Mo,Yf;function v1(){if(Yf)return Mo;Yf=1;var e=vt(),t=zf(),r=pi(),n=b1(),i=re(),o=Le(),s=Wf();function l(c,u,d,f,h){c!==u&&r(u,function(p,g){if(h||(h=new e),i(p))n(c,u,g,d,l,f,h);else{var m=f?f(s(c,g),p,g+"",c,u,h):void 0;m===void 0&&(m=p),t(c,g,m)}},o)}return Mo=l,Mo}var Ho,Jf;function E1(){if(Jf)return Ho;Jf=1;var e=At(),t=Bt();function r(n){return e(function(i,o){var s=-1,l=o.length,c=l>1?o[l-1]:void 0,u=l>2?o[2]:void 0;for(c=n.length>3&&typeof c=="function"?(l--,c):void 0,u&&t(o[0],o[1],u)&&(c=l<3?void 0:c,l=1),i=Object(i);++s<l;){var d=o[s];d&&n(i,d,s,c)}return i})}return Ho=r,Ho}var Go,Qf;function k1(){if(Qf)return Go;Qf=1;var e=v1(),t=E1(),r=t(function(n,i,o){e(n,i,o)});return Go=r,Go}var jo,eh;function th(){if(eh)return jo;eh=1;function e(t,r){return t<r}return jo=e,jo}var Fo,rh;function C1(){if(rh)return Fo;rh=1;var e=Oo(),t=th(),r=De();function n(i){return i&&i.length?e(i,r,t):void 0}return Fo=n,Fo}var zo,nh;function w1(){if(nh)return zo;nh=1;var e=Oo(),t=me(),r=th();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return zo=n,zo}var Uo,ih;function S1(){if(ih)return Uo;ih=1;var e=ae(),t=function(){return e.Date.now()};return Uo=t,Uo}var Ko,ah;function N1(){if(ah)return Ko;ah=1;var e=kt(),t=qt(),r=Ct(),n=re(),i=ct();function o(s,l,c,u){if(!n(s))return s;l=t(l,s);for(var d=-1,f=l.length,h=f-1,p=s;p!=null&&++d<f;){var g=i(l[d]),m=c;if(g==="__proto__"||g==="constructor"||g==="prototype")return s;if(d!=h){var y=p[g];m=u?u(y,g,p):void 0,m===void 0&&(m=n(y)?y:r(l[d+1])?[]:{})}e(p,g,m),p=p[g]}return s}return Ko=o,Ko}var Wo,oh;function T1(){if(oh)return Wo;oh=1;var e=Rt(),t=N1(),r=qt();function n(i,o,s){for(var l=-1,c=o.length,u={};++l<c;){var d=o[l],f=e(i,d);s(f,d)&&t(u,r(d,i),f)}return u}return Wo=n,Wo}var Zo,sh;function I1(){if(sh)return Zo;sh=1;var e=T1(),t=Xu();function r(n,i){return e(n,i,function(o,s){return t(n,s)})}return Zo=r,Zo}var Xo,lh;function q1(){if(lh)return Xo;lh=1;var e=xf(),t=Rd(),r=Vd();function n(i){return r(t(i,void 0,e),i+"")}return Xo=n,Xo}var Yo,ch;function R1(){if(ch)return Yo;ch=1;var e=I1(),t=q1(),r=t(function(n,i){return n==null?{}:e(n,i)});return Yo=r,Yo}var Jo,uh;function A1(){if(uh)return Jo;uh=1;var e=Math.ceil,t=Math.max;function r(n,i,o,s){for(var l=-1,c=t(e((i-n)/(o||1)),0),u=Array(c);c--;)u[s?c:++l]=n,n+=o;return u}return Jo=r,Jo}var Qo,dh;function O1(){if(dh)return Qo;dh=1;var e=A1(),t=Bt(),r=Of();function n(i){return function(o,s,l){return l&&typeof l!="number"&&t(o,s,l)&&(s=l=void 0),o=r(o),s===void 0?(s=o,o=0):s=r(s),l=l===void 0?o<s?1:-1:r(l),e(o,s,l,i)}}return Qo=n,Qo}var es,fh;function B1(){if(fh)return es;fh=1;var e=O1(),t=e();return es=t,es}var ts,hh;function V1(){if(hh)return ts;hh=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return ts=e,ts}var rs,ph;function L1(){if(ph)return rs;ph=1;var e=We();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,s=r===r,l=e(r),c=n!==void 0,u=n===null,d=n===n,f=e(n);if(!u&&!f&&!l&&r>n||l&&c&&d&&!u&&!f||o&&c&&d||!i&&d||!s)return 1;if(!o&&!l&&!f&&r<n||f&&i&&s&&!o&&!l||u&&i&&s||!c&&s||!d)return-1}return 0}return rs=t,rs}var ns,mh;function D1(){if(mh)return ns;mh=1;var e=L1();function t(r,n,i){for(var o=-1,s=r.criteria,l=n.criteria,c=s.length,u=i.length;++o<c;){var d=e(s[o],l[o]);if(d){if(o>=u)return d;var f=i[o];return d*(f=="desc"?-1:1)}}return r.index-n.index}return ns=t,ns}var is,gh;function x1(){if(gh)return is;gh=1;var e=It(),t=Rt(),r=me(),n=fd(),i=V1(),o=wt(),s=D1(),l=De(),c=K();function u(d,f,h){f.length?f=e(f,function(m){return c(m)?function(y){return t(y,m.length===1?m[0]:m)}:m}):f=[l];var p=-1;f=e(f,o(r));var g=n(d,function(m,y,_){var C=e(f,function(v){return v(m)});return{criteria:C,index:++p,value:m}});return i(g,function(m,y){return s(m,y,h)})}return is=u,is}var as,_h;function P1(){if(_h)return as;_h=1;var e=Ia(),t=x1(),r=At(),n=Bt(),i=r(function(o,s){if(o==null)return[];var l=s.length;return l>1&&n(o,s[0],s[1])?s=[]:l>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(o,e(s,1),[])});return as=i,as}var os,yh;function $1(){if(yh)return os;yh=1;var e=Hu(),t=0;function r(n){var i=++t;return e(n)+i}return os=r,os}var ss,bh;function M1(){if(bh)return ss;bh=1;function e(t,r,n){for(var i=-1,o=t.length,s=r.length,l={};++i<o;){var c=i<s?r[i]:void 0;n(l,t[i],c)}return l}return ss=e,ss}var ls,vh;function H1(){if(vh)return ls;vh=1;var e=kt(),t=M1();function r(n,i){return t(n||[],i||[],e)}return ls=r,ls}var Vt;if(typeof rr=="function")try{Vt={cloneDeep:n1(),constant:di(),defaults:i1(),each:lu(),filter:id(),find:d1(),flatten:xf(),forEach:ou(),forIn:f1(),has:sd(),isUndefined:ud(),last:h1(),map:pd(),mapValues:p1(),max:g1(),merge:k1(),min:C1(),minBy:w1(),now:S1(),pick:R1(),range:B1(),reduce:yd(),sortBy:P1(),uniqueId:$1(),values:Yd(),zipObject:H1()}}catch{}Vt||(Vt=window._);var z=Vt,G1=Lt;function Lt(){var e={};e._next=e._prev=e,this._sentinel=e}Lt.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return Eh(t),t},Lt.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&Eh(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},Lt.prototype.toString=function(){for(var e=[],t=this._sentinel,r=t._prev;r!==t;)e.push(JSON.stringify(r,j1)),r=r._prev;return"["+e.join(", ")+"]"};function Eh(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function j1(e,t){if(e!=="_next"&&e!=="_prev")return t}var ge=z,F1=oe.Graph,z1=G1,U1=W1,K1=ge.constant(1);function W1(e,t){if(e.nodeCount()<=1)return[];var r=X1(e,t||K1),n=Z1(r.graph,r.buckets,r.zeroIdx);return ge.flatten(ge.map(n,function(i){return e.outEdges(i.v,i.w)}),!0)}function Z1(e,t,r){for(var n=[],i=t[t.length-1],o=t[0],s;e.nodeCount();){for(;s=o.dequeue();)cs(e,t,r,s);for(;s=i.dequeue();)cs(e,t,r,s);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(s=t[l].dequeue(),s){n=n.concat(cs(e,t,r,s,!0));break}}}return n}function cs(e,t,r,n,i){var o=i?[]:void 0;return ge.forEach(e.inEdges(n.v),function(s){var l=e.edge(s),c=e.node(s.v);i&&o.push({v:s.v,w:s.w}),c.out-=l,us(t,r,c)}),ge.forEach(e.outEdges(n.v),function(s){var l=e.edge(s),c=s.w,u=e.node(c);u.in-=l,us(t,r,u)}),e.removeNode(n.v),o}function X1(e,t){var r=new F1,n=0,i=0;ge.forEach(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),ge.forEach(e.edges(),function(l){var c=r.edge(l.v,l.w)||0,u=t(l),d=c+u;r.setEdge(l.v,l.w,d),i=Math.max(i,r.node(l.v).out+=u),n=Math.max(n,r.node(l.w).in+=u)});var o=ge.range(i+n+3).map(function(){return new z1}),s=n+1;return ge.forEach(r.nodes(),function(l){us(o,s,r.node(l))}),{graph:r,buckets:o,zeroIdx:s}}function us(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var xe=z,Y1=U1,J1={run:Q1,undo:t_};function Q1(e){var t=e.graph().acyclicer==="greedy"?Y1(e,r(e)):e_(e);xe.forEach(t,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,xe.uniqueId("rev"))});function r(n){return function(i){return n.edge(i).weight}}}function e_(e){var t=[],r={},n={};function i(o){xe.has(n,o)||(n[o]=!0,r[o]=!0,xe.forEach(e.outEdges(o),function(s){xe.has(r,s.w)?t.push(s):i(s.w)}),delete r[o])}return xe.forEach(e.nodes(),i),t}function t_(e){xe.forEach(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var M=z,kh=oe.Graph,J={addDummyNode:Ch,simplify:r_,asNonCompoundGraph:n_,successorWeights:i_,predecessorWeights:a_,intersectRect:o_,buildLayerMatrix:s_,normalizeRanks:l_,removeEmptyRanks:c_,addBorderNode:u_,maxRank:wh,partition:d_,time:f_,notime:h_};function Ch(e,t,r,n){var i;do i=M.uniqueId(n);while(e.hasNode(i));return r.dummy=t,e.setNode(i,r),i}function r_(e){var t=new kh().setGraph(e.graph());return M.forEach(e.nodes(),function(r){t.setNode(r,e.node(r))}),M.forEach(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),t}function n_(e){var t=new kh({multigraph:e.isMultigraph()}).setGraph(e.graph());return M.forEach(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),M.forEach(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function i_(e){var t=M.map(e.nodes(),function(r){var n={};return M.forEach(e.outEdges(r),function(i){n[i.w]=(n[i.w]||0)+e.edge(i).weight}),n});return M.zipObject(e.nodes(),t)}function a_(e){var t=M.map(e.nodes(),function(r){var n={};return M.forEach(e.inEdges(r),function(i){n[i.v]=(n[i.v]||0)+e.edge(i).weight}),n});return M.zipObject(e.nodes(),t)}function o_(e,t){var r=e.x,n=e.y,i=t.x-r,o=t.y-n,s=e.width/2,l=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var c,u;return Math.abs(o)*s>Math.abs(i)*l?(o<0&&(l=-l),c=l*i/o,u=l):(i<0&&(s=-s),c=s,u=s*o/i),{x:r+c,y:n+u}}function s_(e){var t=M.map(M.range(wh(e)+1),function(){return[]});return M.forEach(e.nodes(),function(r){var n=e.node(r),i=n.rank;M.isUndefined(i)||(t[i][n.order]=r)}),t}function l_(e){var t=M.min(M.map(e.nodes(),function(r){return e.node(r).rank}));M.forEach(e.nodes(),function(r){var n=e.node(r);M.has(n,"rank")&&(n.rank-=t)})}function c_(e){var t=M.min(M.map(e.nodes(),function(o){return e.node(o).rank})),r=[];M.forEach(e.nodes(),function(o){var s=e.node(o).rank-t;r[s]||(r[s]=[]),r[s].push(o)});var n=0,i=e.graph().nodeRankFactor;M.forEach(r,function(o,s){M.isUndefined(o)&&s%i!==0?--n:n&&M.forEach(o,function(l){e.node(l).rank+=n})})}function u_(e,t,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),Ch(e,"border",i,t)}function wh(e){return M.max(M.map(e.nodes(),function(t){var r=e.node(t).rank;if(!M.isUndefined(r))return r}))}function d_(e,t){var r={lhs:[],rhs:[]};return M.forEach(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function f_(e,t){var r=M.now();try{return t()}finally{console.log(e+" time: "+(M.now()-r)+"ms")}}function h_(e,t){return t()}var Sh=z,p_=J,m_={run:g_,undo:y_};function g_(e){e.graph().dummyChains=[],Sh.forEach(e.edges(),function(t){__(e,t)})}function __(e,t){var r=t.v,n=e.node(r).rank,i=t.w,o=e.node(i).rank,s=t.name,l=e.edge(t),c=l.labelRank;if(o!==n+1){e.removeEdge(t);var u,d,f;for(f=0,++n;n<o;++f,++n)l.points=[],d={width:0,height:0,edgeLabel:l,edgeObj:t,rank:n},u=p_.addDummyNode(e,"edge",d,"_d"),n===c&&(d.width=l.width,d.height=l.height,d.dummy="edge-label",d.labelpos=l.labelpos),e.setEdge(r,u,{weight:l.weight},s),f===0&&e.graph().dummyChains.push(u),r=u;e.setEdge(r,i,{weight:l.weight},s)}}function y_(e){Sh.forEach(e.graph().dummyChains,function(t){var r=e.node(t),n=r.edgeLabel,i;for(e.setEdge(r.edgeObj,n);r.dummy;)i=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=i,r=e.node(t)})}var Dt=z,xt={longestPath:b_,slack:v_};function b_(e){var t={};function r(n){var i=e.node(n);if(Dt.has(t,n))return i.rank;t[n]=!0;var o=Dt.min(Dt.map(e.outEdges(n),function(s){return r(s.w)-e.edge(s).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}Dt.forEach(e.sources(),r)}function v_(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var Pt=z,E_=oe.Graph,Mt=xt.slack,Nh=k_;function k_(e){var t=new E_({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var i,o;C_(t,e)<n;)i=w_(t,e),o=t.hasNode(i.v)?Mt(e,i):-Mt(e,i),S_(t,e,o);return t}function C_(e,t){function r(n){Pt.forEach(t.nodeEdges(n),function(i){var o=i.v,s=n===o?i.w:o;!e.hasNode(s)&&!Mt(t,i)&&(e.setNode(s,{}),e.setEdge(n,s,{}),r(s))})}return Pt.forEach(e.nodes(),r),e.nodeCount()}function w_(e,t){return Pt.minBy(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return Mt(t,r)})}function S_(e,t,r){Pt.forEach(e.nodes(),function(n){t.node(n).rank+=r})}var _e=z,N_=Nh,T_=xt.slack,I_=xt.longestPath,q_=oe.alg.preorder,R_=oe.alg.postorder,A_=J.simplify,O_=Pe;Pe.initLowLimValues=fs,Pe.initCutValues=ds,Pe.calcCutValue=Th,Pe.leaveEdge=qh,Pe.enterEdge=Rh,Pe.exchangeEdges=Ah;function Pe(e){e=A_(e),I_(e);var t=N_(e);fs(t),ds(t,e);for(var r,n;r=qh(t);)n=Rh(t,e,r),Ah(t,e,r,n)}function ds(e,t){var r=R_(e,e.nodes());r=r.slice(0,r.length-1),_e.forEach(r,function(n){B_(e,t,n)})}function B_(e,t,r){var n=e.node(r),i=n.parent;e.edge(r,i).cutvalue=Th(e,t,r)}function Th(e,t,r){var n=e.node(r),i=n.parent,o=!0,s=t.edge(r,i),l=0;return s||(o=!1,s=t.edge(i,r)),l=s.weight,_e.forEach(t.nodeEdges(r),function(c){var u=c.v===r,d=u?c.w:c.v;if(d!==i){var f=u===o,h=t.edge(c).weight;if(l+=f?h:-h,L_(e,r,d)){var p=e.edge(r,d).cutvalue;l+=f?-p:p}}}),l}function fs(e,t){arguments.length<2&&(t=e.nodes()[0]),Ih(e,{},1,t)}function Ih(e,t,r,n,i){var o=r,s=e.node(n);return t[n]=!0,_e.forEach(e.neighbors(n),function(l){_e.has(t,l)||(r=Ih(e,t,r,l,n))}),s.low=o,s.lim=r++,i?s.parent=i:delete s.parent,r}function qh(e){return _e.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function Rh(e,t,r){var n=r.v,i=r.w;t.hasEdge(n,i)||(n=r.w,i=r.v);var o=e.node(n),s=e.node(i),l=o,c=!1;o.lim>s.lim&&(l=s,c=!0);var u=_e.filter(t.edges(),function(d){return c===Oh(e,e.node(d.v),l)&&c!==Oh(e,e.node(d.w),l)});return _e.minBy(u,function(d){return T_(t,d)})}function Ah(e,t,r,n){var i=r.v,o=r.w;e.removeEdge(i,o),e.setEdge(n.v,n.w,{}),fs(e),ds(e,t),V_(e,t)}function V_(e,t){var r=_e.find(e.nodes(),function(i){return!t.node(i).parent}),n=q_(e,r);n=n.slice(1),_e.forEach(n,function(i){var o=e.node(i).parent,s=t.edge(i,o),l=!1;s||(s=t.edge(o,i),l=!0),t.node(i).rank=t.node(o).rank+(l?s.minlen:-s.minlen)})}function L_(e,t,r){return e.hasEdge(t,r)}function Oh(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var D_=xt,Bh=D_.longestPath,x_=Nh,P_=O_,$_=M_;function M_(e){switch(e.graph().ranker){case"network-simplex":Vh(e);break;case"tight-tree":G_(e);break;case"longest-path":H_(e);break;default:Vh(e)}}var H_=Bh;function G_(e){Bh(e),x_(e)}function Vh(e){P_(e)}var hs=z,j_=F_;function F_(e){var t=U_(e);hs.forEach(e.graph().dummyChains,function(r){for(var n=e.node(r),i=n.edgeObj,o=z_(e,t,i.v,i.w),s=o.path,l=o.lca,c=0,u=s[c],d=!0;r!==i.w;){if(n=e.node(r),d){for(;(u=s[c])!==l&&e.node(u).maxRank<n.rank;)c++;u===l&&(d=!1)}if(!d){for(;c<s.length-1&&e.node(u=s[c+1]).minRank<=n.rank;)c++;u=s[c]}e.setParent(r,u),r=e.successors(r)[0]}})}function z_(e,t,r,n){var i=[],o=[],s=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim),c,u;c=r;do c=e.parent(c),i.push(c);while(c&&(t[c].low>s||l>t[c].lim));for(u=c,c=n;(c=e.parent(c))!==u;)o.push(c);return{path:i.concat(o.reverse()),lca:u}}function U_(e){var t={},r=0;function n(i){var o=r;hs.forEach(e.children(i),n),t[i]={low:o,lim:r++}}return hs.forEach(e.children(),n),t}var ye=z,ps=J,K_={run:W_,cleanup:Y_};function W_(e){var t=ps.addDummyNode(e,"root",{},"_root"),r=Z_(e),n=ye.max(ye.values(r))-1,i=2*n+1;e.graph().nestingRoot=t,ye.forEach(e.edges(),function(s){e.edge(s).minlen*=i});var o=X_(e)+1;ye.forEach(e.children(),function(s){Lh(e,t,i,o,n,r,s)}),e.graph().nodeRankFactor=i}function Lh(e,t,r,n,i,o,s){var l=e.children(s);if(!l.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:r});return}var c=ps.addBorderNode(e,"_bt"),u=ps.addBorderNode(e,"_bb"),d=e.node(s);e.setParent(c,s),d.borderTop=c,e.setParent(u,s),d.borderBottom=u,ye.forEach(l,function(f){Lh(e,t,r,n,i,o,f);var h=e.node(f),p=h.borderTop?h.borderTop:f,g=h.borderBottom?h.borderBottom:f,m=h.borderTop?n:2*n,y=p!==g?1:i-o[s]+1;e.setEdge(c,p,{weight:m,minlen:y,nestingEdge:!0}),e.setEdge(g,u,{weight:m,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,c,{weight:0,minlen:i+o[s]})}function Z_(e){var t={};function r(n,i){var o=e.children(n);o&&o.length&&ye.forEach(o,function(s){r(s,i+1)}),t[n]=i}return ye.forEach(e.children(),function(n){r(n,1)}),t}function X_(e){return ye.reduce(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function Y_(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,ye.forEach(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var ms=z,J_=J,Q_=ey;function ey(e){function t(r){var n=e.children(r),i=e.node(r);if(n.length&&ms.forEach(n,t),ms.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,s=i.maxRank+1;o<s;++o)Dh(e,"borderLeft","_bl",r,i,o),Dh(e,"borderRight","_br",r,i,o)}}ms.forEach(e.children(),t)}function Dh(e,t,r,n,i,o){var s={width:0,height:0,rank:o,borderType:t},l=i[t][o-1],c=J_.addDummyNode(e,"border",s,r);i[t][o]=c,e.setParent(c,n),l&&e.setEdge(l,c,{weight:1})}var fe=z,ty={adjust:ry,undo:ny};function ry(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&xh(e)}function ny(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&iy(e),(t==="lr"||t==="rl")&&(ay(e),xh(e))}function xh(e){fe.forEach(e.nodes(),function(t){Ph(e.node(t))}),fe.forEach(e.edges(),function(t){Ph(e.edge(t))})}function Ph(e){var t=e.width;e.width=e.height,e.height=t}function iy(e){fe.forEach(e.nodes(),function(t){gs(e.node(t))}),fe.forEach(e.edges(),function(t){var r=e.edge(t);fe.forEach(r.points,gs),fe.has(r,"y")&&gs(r)})}function gs(e){e.y=-e.y}function ay(e){fe.forEach(e.nodes(),function(t){_s(e.node(t))}),fe.forEach(e.edges(),function(t){var r=e.edge(t);fe.forEach(r.points,_s),fe.has(r,"x")&&_s(r)})}function _s(e){var t=e.x;e.x=e.y,e.y=t}var be=z,oy=sy;function sy(e){var t={},r=be.filter(e.nodes(),function(l){return!e.children(l).length}),n=be.max(be.map(r,function(l){return e.node(l).rank})),i=be.map(be.range(n+1),function(){return[]});function o(l){if(!be.has(t,l)){t[l]=!0;var c=e.node(l);i[c.rank].push(l),be.forEach(e.successors(l),o)}}var s=be.sortBy(r,function(l){return e.node(l).rank});return be.forEach(s,o),i}var Ce=z,ly=cy;function cy(e,t){for(var r=0,n=1;n<t.length;++n)r+=uy(e,t[n-1],t[n]);return r}function uy(e,t,r){for(var n=Ce.zipObject(r,Ce.map(r,function(u,d){return d})),i=Ce.flatten(Ce.map(t,function(u){return Ce.sortBy(Ce.map(e.outEdges(u),function(d){return{pos:n[d.w],weight:e.edge(d).weight}}),"pos")}),!0),o=1;o<r.length;)o<<=1;var s=2*o-1;o-=1;var l=Ce.map(new Array(s),function(){return 0}),c=0;return Ce.forEach(i.forEach(function(u){var d=u.pos+o;l[d]+=u.weight;for(var f=0;d>0;)d%2&&(f+=l[d+1]),d=d-1>>1,l[d]+=u.weight;c+=u.weight*f})),c}var $h=z,dy=fy;function fy(e,t){return $h.map(t,function(r){var n=e.inEdges(r);if(n.length){var i=$h.reduce(n,function(o,s){var l=e.edge(s),c=e.node(s.v);return{sum:o.sum+l.weight*c.order,weight:o.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var ee=z,hy=py;function py(e,t){var r={};ee.forEach(e,function(i,o){var s=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};ee.isUndefined(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),ee.forEach(t.edges(),function(i){var o=r[i.v],s=r[i.w];!ee.isUndefined(o)&&!ee.isUndefined(s)&&(s.indegree++,o.out.push(r[i.w]))});var n=ee.filter(r,function(i){return!i.indegree});return my(n)}function my(e){var t=[];function r(o){return function(s){s.merged||(ee.isUndefined(s.barycenter)||ee.isUndefined(o.barycenter)||s.barycenter>=o.barycenter)&&gy(o,s)}}function n(o){return function(s){s.in.push(o),--s.indegree===0&&e.push(s)}}for(;e.length;){var i=e.pop();t.push(i),ee.forEach(i.in.reverse(),r(i)),ee.forEach(i.out,n(i))}return ee.map(ee.filter(t,function(o){return!o.merged}),function(o){return ee.pick(o,["vs","i","barycenter","weight"])})}function gy(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var ut=z,_y=J,yy=by;function by(e,t){var r=_y.partition(e,function(d){return ut.has(d,"barycenter")}),n=r.lhs,i=ut.sortBy(r.rhs,function(d){return-d.i}),o=[],s=0,l=0,c=0;n.sort(vy(!!t)),c=Mh(o,i,c),ut.forEach(n,function(d){c+=d.vs.length,o.push(d.vs),s+=d.barycenter*d.weight,l+=d.weight,c=Mh(o,i,c)});var u={vs:ut.flatten(o,!0)};return l&&(u.barycenter=s/l,u.weight=l),u}function Mh(e,t,r){for(var n;t.length&&(n=ut.last(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function vy(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}var we=z,Ey=dy,ky=hy,Cy=yy,wy=Hh;function Hh(e,t,r,n){var i=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,l=o?o.borderRight:void 0,c={};s&&(i=we.filter(i,function(g){return g!==s&&g!==l}));var u=Ey(e,i);we.forEach(u,function(g){if(e.children(g.v).length){var m=Hh(e,g.v,r,n);c[g.v]=m,we.has(m,"barycenter")&&Ny(g,m)}});var d=ky(u,r);Sy(d,c);var f=Cy(d,n);if(s&&(f.vs=we.flatten([s,f.vs,l],!0),e.predecessors(s).length)){var h=e.node(e.predecessors(s)[0]),p=e.node(e.predecessors(l)[0]);we.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+h.order+p.order)/(f.weight+2),f.weight+=2}return f}function Sy(e,t){we.forEach(e,function(r){r.vs=we.flatten(r.vs.map(function(n){return t[n]?t[n].vs:n}),!0)})}function Ny(e,t){we.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var dt=z,Ty=oe.Graph,Iy=qy;function qy(e,t,r){var n=Ry(e),i=new Ty({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(o){return e.node(o)});return dt.forEach(e.nodes(),function(o){var s=e.node(o),l=e.parent(o);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(i.setNode(o),i.setParent(o,l||n),dt.forEach(e[r](o),function(c){var u=c.v===o?c.w:c.v,d=i.edge(u,o),f=dt.isUndefined(d)?0:d.weight;i.setEdge(u,o,{weight:e.edge(c).weight+f})}),dt.has(s,"minRank")&&i.setNode(o,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),i}function Ry(e){for(var t;e.hasNode(t=dt.uniqueId("_root")););return t}var Ay=z,Oy=By;function By(e,t,r){var n={},i;Ay.forEach(r,function(o){for(var s=e.parent(o),l,c;s;){if(l=e.parent(s),l?(c=n[l],n[l]=s):(c=i,i=s),c&&c!==s){t.setEdge(c,s);return}s=l}})}var Se=z,Vy=oy,Ly=ly,Dy=wy,xy=Iy,Py=Oy,$y=oe.Graph,Gh=J,My=Hy;function Hy(e){var t=Gh.maxRank(e),r=jh(e,Se.range(1,t+1),"inEdges"),n=jh(e,Se.range(t-1,-1,-1),"outEdges"),i=Vy(e);Fh(e,i);for(var o=Number.POSITIVE_INFINITY,s,l=0,c=0;c<4;++l,++c){Gy(l%2?r:n,l%4>=2),i=Gh.buildLayerMatrix(e);var u=Ly(e,i);u<o&&(c=0,s=Se.cloneDeep(i),o=u)}Fh(e,s)}function jh(e,t,r){return Se.map(t,function(n){return xy(e,n,r)})}function Gy(e,t){var r=new $y;Se.forEach(e,function(n){var i=n.graph().root,o=Dy(n,i,r,t);Se.forEach(o.vs,function(s,l){n.node(s).order=l}),Py(n,r,o.vs)})}function Fh(e,t){Se.forEach(t,function(r){Se.forEach(r,function(n,i){e.node(n).order=i})})}var O=z,jy=oe.Graph,Fy=J,zy={positionX:Wy,findType1Conflicts:zh,findType2Conflicts:Uh,addConflict:ys,hasConflict:Kh,verticalAlignment:Wh,horizontalCompaction:Zh,alignCoordinates:Yh,findSmallestWidthAlignment:Xh,balance:Jh};function zh(e,t){var r={};function n(i,o){var s=0,l=0,c=i.length,u=O.last(o);return O.forEach(o,function(d,f){var h=Uy(e,d),p=h?e.node(h).order:c;(h||d===u)&&(O.forEach(o.slice(l,f+1),function(g){O.forEach(e.predecessors(g),function(m){var y=e.node(m),_=y.order;(_<s||p<_)&&!(y.dummy&&e.node(g).dummy)&&ys(r,m,g)})}),l=f+1,s=p)}),o}return O.reduce(t,n),r}function Uh(e,t){var r={};function n(o,s,l,c,u){var d;O.forEach(O.range(s,l),function(f){d=o[f],e.node(d).dummy&&O.forEach(e.predecessors(d),function(h){var p=e.node(h);p.dummy&&(p.order<c||p.order>u)&&ys(r,h,d)})})}function i(o,s){var l=-1,c,u=0;return O.forEach(s,function(d,f){if(e.node(d).dummy==="border"){var h=e.predecessors(d);h.length&&(c=e.node(h[0]).order,n(s,u,f,l,c),u=f,l=c)}n(s,u,s.length,c,o.length)}),s}return O.reduce(t,i),r}function Uy(e,t){if(e.node(t).dummy)return O.find(e.predecessors(t),function(r){return e.node(r).dummy})}function ys(e,t,r){if(t>r){var n=t;t=r,r=n}var i=e[t];i||(e[t]=i={}),i[r]=!0}function Kh(e,t,r){if(t>r){var n=t;t=r,r=n}return O.has(e[t],r)}function Wh(e,t,r,n){var i={},o={},s={};return O.forEach(t,function(l){O.forEach(l,function(c,u){i[c]=c,o[c]=c,s[c]=u})}),O.forEach(t,function(l){var c=-1;O.forEach(l,function(u){var d=n(u);if(d.length){d=O.sortBy(d,function(m){return s[m]});for(var f=(d.length-1)/2,h=Math.floor(f),p=Math.ceil(f);h<=p;++h){var g=d[h];o[u]===u&&c<s[g]&&!Kh(r,u,g)&&(o[g]=u,o[u]=i[u]=i[g],c=s[g])}}})}),{root:i,align:o}}function Zh(e,t,r,n,i){var o={},s=Ky(e,t,r,i),l=i?"borderLeft":"borderRight";function c(f,h){for(var p=s.nodes(),g=p.pop(),m={};g;)m[g]?f(g):(m[g]=!0,p.push(g),p=p.concat(h(g))),g=p.pop()}function u(f){o[f]=s.inEdges(f).reduce(function(h,p){return Math.max(h,o[p.v]+s.edge(p))},0)}function d(f){var h=s.outEdges(f).reduce(function(g,m){return Math.min(g,o[m.w]-s.edge(m))},Number.POSITIVE_INFINITY),p=e.node(f);h!==Number.POSITIVE_INFINITY&&p.borderType!==l&&(o[f]=Math.max(o[f],h))}return c(u,s.predecessors.bind(s)),c(d,s.successors.bind(s)),O.forEach(n,function(f){o[f]=o[r[f]]}),o}function Ky(e,t,r,n){var i=new jy,o=e.graph(),s=Zy(o.nodesep,o.edgesep,n);return O.forEach(t,function(l){var c;O.forEach(l,function(u){var d=r[u];if(i.setNode(d),c){var f=r[c],h=i.edge(f,d);i.setEdge(f,d,Math.max(s(e,u,c),h||0))}c=u})}),i}function Xh(e,t){return O.minBy(O.values(t),function(r){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return O.forIn(r,function(o,s){var l=Xy(e,s)/2;n=Math.max(o+l,n),i=Math.min(o-l,i)}),n-i})}function Yh(e,t){var r=O.values(t),n=O.min(r),i=O.max(r);O.forEach(["u","d"],function(o){O.forEach(["l","r"],function(s){var l=o+s,c=e[l],u;if(c!==t){var d=O.values(c);u=s==="l"?n-O.min(d):i-O.max(d),u&&(e[l]=O.mapValues(c,function(f){return f+u}))}})})}function Jh(e,t){return O.mapValues(e.ul,function(r,n){if(t)return e[t.toLowerCase()][n];var i=O.sortBy(O.map(e,n));return(i[1]+i[2])/2})}function Wy(e){var t=Fy.buildLayerMatrix(e),r=O.merge(zh(e,t),Uh(e,t)),n={},i;O.forEach(["u","d"],function(s){i=s==="u"?t:O.values(t).reverse(),O.forEach(["l","r"],function(l){l==="r"&&(i=O.map(i,function(f){return O.values(f).reverse()}));var c=(s==="u"?e.predecessors:e.successors).bind(e),u=Wh(e,i,r,c),d=Zh(e,i,u.root,u.align,l==="r");l==="r"&&(d=O.mapValues(d,function(f){return-f})),n[s+l]=d})});var o=Xh(e,n);return Yh(n,o),Jh(n,e.graph().align)}function Zy(e,t,r){return function(n,i,o){var s=n.node(i),l=n.node(o),c=0,u;if(c+=s.width/2,O.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2;break}if(u&&(c+=r?u:-u),u=0,c+=(s.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,O.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":u=l.width/2;break;case"r":u=-l.width/2;break}return u&&(c+=r?u:-u),u=0,c}}function Xy(e,t){return e.node(t).width}var ft=z,Qh=J,Yy=zy.positionX,Jy=Qy;function Qy(e){e=Qh.asNonCompoundGraph(e),eb(e),ft.forEach(Yy(e),function(t,r){e.node(r).x=t})}function eb(e){var t=Qh.buildLayerMatrix(e),r=e.graph().ranksep,n=0;ft.forEach(t,function(i){var o=ft.max(ft.map(i,function(s){return e.node(s).height}));ft.forEach(i,function(s){e.node(s).y=n+o/2}),n+=o+r})}var L=z,ep=J1,tp=m_,tb=$_,rb=J.normalizeRanks,nb=j_,ib=J.removeEmptyRanks,rp=K_,ab=Q_,np=ty,ob=My,sb=Jy,Ne=J,lb=oe.Graph,cb=ub;function ub(e,t){var r=t&&t.debugTiming?Ne.time:Ne.notime;r("layout",function(){var n=r(" buildLayoutGraph",function(){return Eb(e)});r(" runLayout",function(){db(n,r)}),r(" updateInputGraph",function(){fb(e,n)})})}function db(e,t){t(" makeSpaceForEdgeLabels",function(){kb(e)}),t(" removeSelfEdges",function(){Ab(e)}),t(" acyclic",function(){ep.run(e)}),t(" nestingGraph.run",function(){rp.run(e)}),t(" rank",function(){tb(Ne.asNonCompoundGraph(e))}),t(" injectEdgeLabelProxies",function(){Cb(e)}),t(" removeEmptyRanks",function(){ib(e)}),t(" nestingGraph.cleanup",function(){rp.cleanup(e)}),t(" normalizeRanks",function(){rb(e)}),t(" assignRankMinMax",function(){wb(e)}),t(" removeEdgeLabelProxies",function(){Sb(e)}),t(" normalize.run",function(){tp.run(e)}),t(" parentDummyChains",function(){nb(e)}),t(" addBorderSegments",function(){ab(e)}),t(" order",function(){ob(e)}),t(" insertSelfEdges",function(){Ob(e)}),t(" adjustCoordinateSystem",function(){np.adjust(e)}),t(" position",function(){sb(e)}),t(" positionSelfEdges",function(){Bb(e)}),t(" removeBorderNodes",function(){Rb(e)}),t(" normalize.undo",function(){tp.undo(e)}),t(" fixupEdgeLabelCoords",function(){Ib(e)}),t(" undoCoordinateSystem",function(){np.undo(e)}),t(" translateGraph",function(){Nb(e)}),t(" assignNodeIntersects",function(){Tb(e)}),t(" reversePoints",function(){qb(e)}),t(" acyclic.undo",function(){ep.undo(e)})}function fb(e,t){L.forEach(e.nodes(),function(r){var n=e.node(r),i=t.node(r);n&&(n.x=i.x,n.y=i.y,t.children(r).length&&(n.width=i.width,n.height=i.height))}),L.forEach(e.edges(),function(r){var n=e.edge(r),i=t.edge(r);n.points=i.points,L.has(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var hb=["nodesep","edgesep","ranksep","marginx","marginy"],pb={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},mb=["acyclicer","ranker","rankdir","align"],gb=["width","height"],_b={width:0,height:0},yb=["minlen","weight","width","height","labeloffset"],bb={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},vb=["labelpos"];function Eb(e){var t=new lb({multigraph:!0,compound:!0}),r=vs(e.graph());return t.setGraph(L.merge({},pb,bs(r,hb),L.pick(r,mb))),L.forEach(e.nodes(),function(n){var i=vs(e.node(n));t.setNode(n,L.defaults(bs(i,gb),_b)),t.setParent(n,e.parent(n))}),L.forEach(e.edges(),function(n){var i=vs(e.edge(n));t.setEdge(n,L.merge({},bb,bs(i,yb),L.pick(i,vb)))}),t}function kb(e){var t=e.graph();t.ranksep/=2,L.forEach(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function Cb(e){L.forEach(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i=e.node(t.w),o={rank:(i.rank-n.rank)/2+n.rank,e:t};Ne.addDummyNode(e,"edge-proxy",o,"_ep")}})}function wb(e){var t=0;L.forEach(e.nodes(),function(r){var n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=L.max(t,n.maxRank))}),e.graph().maxRank=t}function Sb(e){L.forEach(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function Nb(e){var t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,o=e.graph(),s=o.marginx||0,l=o.marginy||0;function c(u){var d=u.x,f=u.y,h=u.width,p=u.height;t=Math.min(t,d-h/2),r=Math.max(r,d+h/2),n=Math.min(n,f-p/2),i=Math.max(i,f+p/2)}L.forEach(e.nodes(),function(u){c(e.node(u))}),L.forEach(e.edges(),function(u){var d=e.edge(u);L.has(d,"x")&&c(d)}),t-=s,n-=l,L.forEach(e.nodes(),function(u){var d=e.node(u);d.x-=t,d.y-=n}),L.forEach(e.edges(),function(u){var d=e.edge(u);L.forEach(d.points,function(f){f.x-=t,f.y-=n}),L.has(d,"x")&&(d.x-=t),L.has(d,"y")&&(d.y-=n)}),o.width=r-t+s,o.height=i-n+l}function Tb(e){L.forEach(e.edges(),function(t){var r=e.edge(t),n=e.node(t.v),i=e.node(t.w),o,s;r.points?(o=r.points[0],s=r.points[r.points.length-1]):(r.points=[],o=i,s=n),r.points.unshift(Ne.intersectRect(n,o)),r.points.push(Ne.intersectRect(i,s))})}function Ib(e){L.forEach(e.edges(),function(t){var r=e.edge(t);if(L.has(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qb(e){L.forEach(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function Rb(e){L.forEach(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),n=e.node(r.borderTop),i=e.node(r.borderBottom),o=e.node(L.last(r.borderLeft)),s=e.node(L.last(r.borderRight));r.width=Math.abs(s.x-o.x),r.height=Math.abs(i.y-n.y),r.x=o.x+r.width/2,r.y=n.y+r.height/2}}),L.forEach(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function Ab(e){L.forEach(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Ob(e){var t=Ne.buildLayerMatrix(e);L.forEach(t,function(r){var n=0;L.forEach(r,function(i,o){var s=e.node(i);s.order=o+n,L.forEach(s.selfEdges,function(l){Ne.addDummyNode(e,"selfedge",{width:l.label.width,height:l.label.height,rank:s.rank,order:o+ ++n,e:l.e,label:l.label},"_se")}),delete s.selfEdges})})}function Bb(e){L.forEach(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),i=n.x+n.width/2,o=n.y,s=r.x-i,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*s/3,y:o-l},{x:i+5*s/6,y:o-l},{x:i+s,y:o},{x:i+5*s/6,y:o+l},{x:i+2*s/3,y:o+l}],r.label.x=r.x,r.label.y=r.y}})}function bs(e,t){return L.mapValues(L.pick(e,t),Number)}function vs(e){var t={};return L.forEach(e,function(r,n){t[n.toLowerCase()]=r}),t}var Ht=z,Vb=J,Lb=oe.Graph,Db={debugOrdering:xb};function xb(e){var t=Vb.buildLayerMatrix(e),r=new Lb({compound:!0,multigraph:!0}).setGraph({});return Ht.forEach(e.nodes(),function(n){r.setNode(n,{label:n}),r.setParent(n,"layer"+e.node(n).rank)}),Ht.forEach(e.edges(),function(n){r.setEdge(n.v,n.w,{},n.name)}),Ht.forEach(t,function(n,i){var o="layer"+i;r.setNode(o,{rank:"same"}),Ht.reduce(n,function(s,l){return r.setEdge(s,l,{style:"invis"}),l})}),r}var Pb="0.8.5",$b={graphlib:oe,layout:cb,debug:Db,util:{time:J.time,notime:J.notime},version:Pb};const ip=Yp($b),Te="root.Triggers";class Gt{static predecessorsEdge(t,r){const{getEdges:n}=D.useVueFlow(t);let i=[];for(const o of n.value)if(o.target===r){i.push(o);let s=this.predecessorsEdge(t,o.source);s.length>0&&i.push(...s)}return i}static successorsEdge(t,r){const{getEdges:n}=D.useVueFlow(t);let i=[];for(const o of n.value)if(o.source===r){i.push(o);let s=this.successorsEdge(t,o.target);s.length>0&&i.push(...s)}return i}static predecessorsNode(t,r){const{getEdges:n,findNode:i}=D.useVueFlow(t);let o=[i(r)];for(const s of n.value)if(s.target===r){o.push(s.sourceNode);let l=this.predecessorsNode(t,s.source);l.length>0&&o.push(...l)}return o}static successorsNode(t,r){const{getEdges:n,findNode:i}=D.useVueFlow(t);let o=[i(r)];for(const s of n.value)if(s.source===r){o.push(s.targetNode);let l=this.successorsNode(t,s.target);l.length>0&&o.push(...l)}return o}static linkedElements(t,r){return[...this.predecessorsEdge(t,r),...this.predecessorsNode(t,r),...this.successorsEdge(t,r),...this.successorsNode(t,r)]}static generateDagreGraph(t,r,n,i,o,s,l){const c=new ip.graphlib.Graph({compound:!0});c.setDefaultEdgeLabel(()=>({})),c.setGraph({rankdir:n?"LR":"TB"});for(const u of t.nodes)r.includes(u.uid)||c.setNode(u.uid,{width:this.getNodeWidth(u),height:this.getNodeHeight(u)});for(let u of t.clusters||[]){const d=u.cluster.uid.replace(Oe,"");if(i.includes(u.cluster.uid)&&s.has(d)){const f={uid:d,type:"collapsedcluster"};c.setNode(d,{width:this.getNodeWidth(f),height:this.getNodeHeight(f)}),l.push(f);continue}if(!o[u.cluster.uid]){c.setNode(u.cluster.uid,{clusterLabelPos:"top"});for(let f of u.nodes||[])r.includes(f)||c.setParent(f,u.cluster.uid)}if(u.parents){const f=o[u.cluster.uid]?o[u.cluster.uid]:u.cluster.uid;r.includes(f)||c.setParent(f,u.parents[u.parents.length-1])}}for(const u of t.edges||[]){const d=this.replaceIfCollapsed(u.source,u.target,o,r);d&&c.setEdge(d.source,d.target)}return ip.layout(c),c}static getNodePosition(t,r){const n={x:t.x-t.width/2,y:t.y-t.height/2};if(r){const i=this.getNodePosition(r);n.x=n.x-i.x,n.y=n.y-i.y}return n}static getNodeWidth(t){return this.isTaskNode(t)||this.isTriggerNode(t)?Ee.TASK_WIDTH:this.isCollapsedCluster(t)?Ee.COLLAPSED_CLUSTER_WIDTH:Ee.DOT_WIDTH}static getNodeHeight(t){return this.isTaskNode(t)||this.isTriggerNode(t)?Ee.TASK_HEIGHT:this.isCollapsedCluster(t)?Ee.COLLAPSED_CLUSTER_HEIGHT:Ee.DOT_HEIGHT}static isTaskNode(t){return["GraphTask","SubflowGraphTask"].some(r=>t.type.endsWith(r))}static isTriggerNode(t){return t.type.endsWith("GraphTrigger")}static isCollapsedCluster(t){return t.type==="collapsedcluster"}static replaceIfCollapsed(t,r,n,i){const o=n[t]?n[t]:t,s=n[r]?n[r]:r;return o===s||i.includes(o)||i.includes(s)?null:{target:s,source:o}}static cleanGraph(t){const{getEdges:r,getNodes:n,getElements:i,removeEdges:o,removeNodes:s,removeSelectedElements:l}=D.useVueFlow(t);o(r.value),s(n.value),l(i.value)}static flowHaveTasks(t){return t?H.flowHaveTasks(t):!1}static nodeColor(t,r){return t.uid===Te?"success":t.type==="dot"?null:this.isTriggerNode(t)||this.isCollapsedCluster(t)?"success":t.type.endsWith("SubflowGraphTask")?"primary":t.error?"danger":r.has(t.uid)?"blue":"default"}static haveAdd(t,r,n,i){var d,f,h;if(i.some(p=>t.source.startsWith(p)&&t.target.startsWith(p))||n.includes(t.target)||t.source.startsWith(Te)||t.target.startsWith(Te))return;const o=t.target.split(".");o.pop();const s=o.join("."),l=x.afterLastDot(s),c=r[t.target];if(c.type.endsWith("GraphClusterEnd")&&((h=(f=(d=r[s])==null?void 0:d.task)==null?void 0:f.type)!=null&&h.endsWith("Parallel")))return;if(c.type.endsWith("GraphClusterRoot"))return[l,"before"];const u=r[t.source].type.endsWith("GraphClusterEnd");if(!u&&c.type.endsWith("GraphClusterEnd"))return[x.afterLastDot(t.source),"after"];if(u){const p=t.source.split(".");return[p[p.length-2],"after"]}return[x.afterLastDot(t.target),"before"]}static getEdgeColor(t,r){const n=r[t.source],i=r[t.target];return n.error&&i.error||n.type.endsWith("GraphClusterRoot")&&i.error||n.error&&i.type.endsWith("GraphClusterEnd")?"danger":null}static generateGraph(t,r,n,i,o,s,l,c,u,d,f,h,p){var V,P,E,b,q,S,Z,X,Ie,Yt,ht;const g=[],m=[Oe+Te];if(!i||o&&!this.flowHaveTasks(o)){g.push({id:"start",type:"dot",position:{x:0,y:0},style:{width:"5px",height:"5px"},sourcePosition:l?D.Position.Right:D.Position.Bottom,targetPosition:l?D.Position.Left:D.Position.Top,parentNode:void 0,draggable:!1}),g.push({id:"end",type:"dot",position:l?{x:50,y:0}:{x:0,y:50},style:{width:"5px",height:"5px"},sourcePosition:l?D.Position.Right:D.Position.Bottom,targetPosition:l?D.Position.Left:D.Position.Top,parentNode:void 0,draggable:!1}),g.push({id:"start|end",source:"start",target:"end",type:"edge",data:{edge:{relation:{relationType:"SEQUENTIAL"}},isFlowable:!1,initTask:!0,color:"primary"}});return}const y=this.generateDagreGraph(i,s,l,m,c,u,d),_={},C=i.clusters||[],v=C.map(N=>N.cluster),T=v.filter(N=>N.type.endsWith("SubflowGraphCluster")).map(N=>N.taskNode.uid),A=Object.fromEntries(i.nodes.concat(d).map(N=>[N.uid,N]));for(let N of C)if(!c[N.cluster.uid]&&!u.has(N.cluster.uid)){((P=(V=N.cluster.taskNode)==null?void 0:V.task)==null?void 0:P.type)==="io.kestra.core.tasks.flows.Dag"&&T.push(N.cluster.taskNode.uid);for(let pt of N.nodes)_[pt]=N.cluster;const Y=N.cluster.uid,ue=y.node(Y),qe=N.parents?N.parents[N.parents.length-1]:void 0,He=this.computeClusterColor(N.cluster);g.push({id:Y,type:"cluster",parentNode:qe,position:this.getNodePosition(ue,qe?y.node(qe):void 0),style:{width:Y===Te&&l?Ee.TRIGGER_CLUSTER_WIDTH+"px":ue.width+"px",height:Y===Te&&!l?Ee.TRIGGER_CLUSTER_HEIGHT+"px":ue.height+"px"},data:{collapsable:!0,color:He,taskNode:N.cluster.taskNode,unused:N.cluster.taskNode?A[N.cluster.taskNode.uid].unused:!1},class:`bg-light-${He}-border rounded p-2`})}for(const N of i.nodes.concat(d))if(!s.includes(N.uid)){const Y=y.node(N.uid);let ue="task";this.isClusterRootOrEnd(N)?ue="dot":N.type.includes("GraphTrigger")?ue="trigger":N.type==="collapsedcluster"&&(ue="collapsedcluster");const qe=this.nodeColor(N,u),He=f||((b=(E=N.task)==null?void 0:E.type)==null?void 0:b.includes("$"))||T.some(pt=>N.uid.startsWith(pt+"."));g.push({id:N.uid,type:ue,position:this.getNodePosition(Y,_[N.uid]?y.node(_[N.uid].uid):void 0),style:{width:this.getNodeWidth(N)+"px",height:this.getNodeHeight(N)+"px"},sourcePosition:l?D.Position.Right:D.Position.Bottom,targetPosition:l?D.Position.Left:D.Position.Top,parentNode:_[N.uid]?_[N.uid].uid:void 0,draggable:ue==="task"?!He:!1,data:{node:N,namespace:((Z=(S=(q=_[N.uid])==null?void 0:q.taskNode)==null?void 0:S.task)==null?void 0:Z.namespace)??n,flowId:((Yt=(Ie=(X=_[N.uid])==null?void 0:X.taskNode)==null?void 0:Ie.task)==null?void 0:Yt.flowId)??r,isFlowable:((ht=_[N.uid])==null?void 0:ht.uid)===Oe+N.uid&&!N.type.endsWith("SubflowGraphTask"),color:qe,expandable:this.isExpandableTask(N,_,c,p),isReadOnly:He,iconComponent:this.isCollapsedCluster(N)?"lightning-bolt":null,executionId:N.executionId,unused:N.unused},class:N.type==="collapsedcluster"?`bg-light-${qe}-border rounded`:""})}const R=v.filter(N=>N.taskNode).map(N=>N.taskNode.uid),I=i.edges??[];for(const N of I){const Y=this.replaceIfCollapsed(N.source,N.target,c,s);Y&&g.push({id:Y.source+"|"+Y.target,source:Y.source,target:Y.target,type:"edge",markerEnd:this.isClusterRootOrEnd(A[Y.target])?"":{id:A[Y.target].error?"marker-danger":"marker-custom",type:D.MarkerType.ArrowClosed},data:{haveAdd:!f&&h&&this.haveAdd(N,A,R,T),haveDashArray:A[N.source].type.endsWith("GraphTrigger")||A[N.target].type.endsWith("GraphTrigger")||N.source.startsWith(Te),color:this.getEdgeColor(N,A),unused:N.unused},style:{zIndex:10}})}return g}static isClusterRootOrEnd(t){return["GraphClusterRoot","GraphClusterEnd"].some(r=>t.type.endsWith(r))}static computeClusterColor(t){return t.uid===Oe+Te?"success":t.type.endsWith("SubflowGraphCluster")?"primary":t.error?"danger":"blue"}static isExpandableTask(t,r,n,i){var o,s;return Object.values(n).includes(t.uid)||this.isCollapsedCluster(t)?!0:t.type.endsWith("SubflowGraphTask")&&((s=(o=r[t.uid])==null?void 0:o.uid)==null?void 0:s.replace(Oe,""))!==t.uid&&i}}const B=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},Mb={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hb=["aria-hidden","aria-label"],Gb=["fill","width","height"],jb={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},Fb={key:0};function zb(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",jb,[r.title?(a.openBlock(),a.createElementBlock("title",Fb,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Gb))],16,Hb)}const Ub=B(Mb,[["render",zb]]);let ap;document&&(ap=import("bootstrap"));const Kb={props:{title:{type:String,default:void 0},placement:{type:String,default:"top"}},data(){return{tooltip:void 0}},async mounted(){document&&(this.tooltip=new(await ap).Tooltip(this.$refs.tooltip,{trigger:"hover",html:!0,placement:this.placement,title:this.$refs.tooltipContent.innerHTML,customClass:"tooltip-custom"}))},async beforeUnmount(){var e;(e=this.tooltip)==null||e.dispose()}},Wb={class:"d-none",ref:"tooltipContent"};function Zb(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("span",a.mergeProps({ref:"tooltip"},e.$attrs),[a.renderSlot(e.$slots,"default")],16),a.createElementVNode("span",Wb,[a.renderSlot(e.$slots,"content",{},()=>[a.createTextVNode(a.toDisplayString(r.title),1)])],512)],64)}const j=B(Kb,[["render",Zb]]),Xb={class:"top-button-div text-white d-flex"},Yb=Object.assign({inheritAttrs:!1,components:{Tooltip:j},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){var t;const e=this.data.taskNode;if((t=e==null?void 0:e.type)!=null&&t.endsWith("SubflowGraphTask")){const r=e.task.subflowId??e.task;return r.namespace+" "+r.flowId}return x.afterLastDot(this.id)}}},{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:D.Position,default:void 0},targetPosition:{type:D.Position,default:void 0},id:{type:String,default:void 0}},emits:[w.COLLAPSE],setup(e,{emit:t}){const r=e,n=t,i=()=>{n(w.COLLAPSE,r.id)};return(o,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(o.classes)},[a.createElementVNode("span",{class:a.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},a.toDisplayString(o.clusterName),3),a.createElementVNode("div",Xb,[e.data.collapsable?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>i())},[a.createVNode(j,{title:a.unref(x).translate("collapse")},{default:a.withCtx(()=>[a.createVNode(Ub,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0)])],2))}}),op=B(Yb,[["__scopeId","data-v-c86183e9"]]),Jb={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qb=["aria-hidden","aria-label"],ev=["fill","width","height"],tv={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},rv={key:0};function nv(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",tv,[r.title?(a.openBlock(),a.createElementBlock("title",rv,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,ev))],16,Qb)}const iv=B(Jb,[["render",nv]]),av={name:"Dot",components:{Handle:D.Handle,CircleIcon:iv},inheritAttrs:!1,props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},label:{type:String,default:void 0}},computed:{classes(){return{"unused-path":this.data.unused}}}},ov={class:"dot"};function sv(e,t,r,n,i,o){const s=a.resolveComponent("Handle"),l=a.resolveComponent("CircleIcon");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(o.classes)},[a.createVNode(s,{type:"source",class:"custom-handle",position:r.sourcePosition},null,8,["position"]),a.createElementVNode("div",ov,[a.createVNode(l,{class:a.normalizeClass([{"text-danger":r.data.node.error},"circle"]),alt:"circle"},null,8,["class"])]),a.createVNode(s,{type:"target",class:"custom-handle",position:r.targetPosition},null,8,["position"])],2)}const sp=B(av,[["render",sv],["__scopeId","data-v-00cf8c59"]]),lv={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cv=["aria-hidden","aria-label"],uv=["fill","width","height"],dv={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},fv={key:0};function hv(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon plus-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",dv,[r.title?(a.openBlock(),a.createElementBlock("title",fv,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,uv))],16,cv)}const pv={name:"AddTaskButton",components:{Plus:B(lv,[["render",hv]])},props:{addTask:{type:Boolean,default:!1}}},mv={class:"add-task-div rounded d-flex justify-content-center align-items-center"};function gv(e,t,r,n,i,o){const s=a.resolveComponent("Plus");return a.openBlock(),a.createElementBlock("div",mv,[r.addTask?(a.openBlock(),a.createBlock(s,{key:0,alt:"add task icon"})):a.createCommentVNode("",!0)])}const lp=B(pv,[["render",gv],["__scopeId","data-v-2bdfbc4f"]]),_v={data(){return{tooltips:[]}},props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},components:{AddTaskButton:lp,EdgeLabelRenderer:D.EdgeLabelRenderer,Tooltip:j},computed:{Utils(){return x},EVENTS(){return w},classes(){return{"vue-flow__edge-path":!0,["stroke-"+this.data.color]:this.data.color,"unused-path":this.data.unused}}},setup(e){return{path:a.computed(()=>D.getSmoothStepPath(e))}},inheritAttrs:!1},yv=["id","d","marker-end"];function bv(e,t,r,n,i,o){const s=a.resolveComponent("AddTaskButton"),l=a.resolveComponent("tooltip"),c=a.resolveComponent("EdgeLabelRenderer");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("path",{id:r.id,class:a.normalizeClass(o.classes),style:a.normalizeStyle(r.data.haveDashArray?{strokeDasharray:"2"}:{}),d:n.path[0],"marker-end":r.markerEnd},null,14,yv),a.createVNode(c,{style:{"z-index":"10"}},{default:a.withCtx(()=>[a.createElementVNode("div",{style:a.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${n.path[1]}px,${n.path[2]}px)`})},[a.createVNode(l,{title:o.Utils.translate("add task")},{default:a.withCtx(()=>[r.data.haveAdd?(a.openBlock(),a.createBlock(s,{key:0,"add-task":!0,onClick:t[0]||(t[0]=u=>e.$emit(o.EVENTS.ADD_TASK,r.data.haveAdd)),class:a.normalizeClass({"text-danger":r.data.color})},null,8,["class"])):a.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})],64)}const cp=B(_v,[["render",bv]]);String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.hashCode=function(){var e=0;if(this.length===0)return e;for(var t=0;t<this.length;t++){var r=this.charCodeAt(t);e=(e<<5)-e+r,e=e&e}return e+""};const se=e=>{const t=document.querySelector(":root");return getComputedStyle(t).getPropertyValue(e)},vv={name:"TaskIcon",components:{Tooltip:j},props:{customIcon:{type:Object,default:void 0},cls:{type:String,default:void 0},theme:{type:String,default:void 0,validator(e){return["dark","light"].includes(e)}},icons:{type:Object,default:void 0},onlyIcon:{type:Boolean,default:!1},variable:{type:String,default:void 0}},computed:{backgroundImage(){return`data:image/svg+xml;base64,${this.imageBase64}`},classes(){return{flowable:this.icon?this.icon.flowable:!1}},styles(){return{backgroundImage:`url(data:image/svg+xml;base64,${this.imageBase64})`}},imageBase64(){let e=this.icon&&this.icon.icon?window.atob(this.icon.icon):void 0;e||(e='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const t=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let r=se(t?"--bs-gray-900":"--bs-black");return this.theme&&(r=this.theme==="dark"?se("--bs-gray-900"):se("--bs-black")),this.variable&&(r=se(this.variable)),e=e.replaceAll("currentColor",r),window.btoa(e)},icon(){return this.cls?(this.icons||{})[this.innerClassToParent(this.cls)]:this.customIcon}},methods:{innerClassToParent(e){return e.includes("$")?e.substring(0,e.indexOf("$")):e}}};function Ev(e,t,r,n,i,o){const s=a.resolveComponent("Tooltip");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([o.classes,"wrapper"])},[r.onlyIcon?(a.openBlock(),a.createElementBlock("div",{key:1,class:"icon",style:a.normalizeStyle(o.styles)},null,4)):(a.openBlock(),a.createBlock(s,{key:0,title:r.cls},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"icon",style:a.normalizeStyle(o.styles)},null,4)]),_:1},8,["title"]))],2)}const jt=B(vv,[["render",Ev],["__scopeId","data-v-d741b593"]]),kv={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cv=["aria-hidden","aria-label"],wv=["fill","width","height"],Sv={d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"},Nv={key:0};function Tv(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon information-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",Sv,[r.title?(a.openBlock(),a.createElementBlock("title",Nv,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,wv))],16,Cv)}const up=B(kv,[["render",Tv]]),Iv={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qv=["aria-hidden","aria-label"],Rv=["fill","width","height"],Av={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Ov={key:0};function Bv(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",Av,[r.title?(a.openBlock(),a.createElementBlock("title",Ov,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Rv))],16,qv)}const Ft=B(Iv,[["render",Bv]]),Vv={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Lv=["aria-hidden","aria-label"],Dv=["fill","width","height"],xv={d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},Pv={key:0};function $v(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",xv,[r.title?(a.openBlock(),a.createElementBlock("title",Pv,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Dv))],16,Lv)}const zt=B(Vv,[["render",$v]]);function Mv(){return dp().__VUE_DEVTOOLS_GLOBAL_HOOK__}function dp(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Hv=typeof Proxy=="function",Gv="devtools-plugin:setup",jv="plugin:settings:set";let Ze,Es;function Fv(){var e;return Ze!==void 0||(typeof window<"u"&&window.performance?(Ze=!0,Es=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ze=!0,Es=globalThis.perf_hooks.performance):Ze=!1),Ze}function zv(){return Fv()?Es.now():Date.now()}class Uv{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const s in t.settings){const l=t.settings[s];n[s]=l.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},n);try{const s=localStorage.getItem(i),l=JSON.parse(s);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}o=s},now(){return zv()}},r&&r.on(jv,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Kv(e,t){const r=e,n=dp(),i=Mv(),o=Hv&&r.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(Gv,e,t);else{const s=o?new Uv(r,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
2
- * vuex v4.1.0
3
- * (c) 2022 Evan You
4
- * @license MIT
5
- */var Wv="store";function $e(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function fp(e){return e!==null&&typeof e=="object"}function Zv(e){return e&&typeof e.then=="function"}function le(e,t){if(!e)throw new Error("[vuex] "+t)}function Xv(e,t){return function(){return e(t)}}function hp(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function pp(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;Ut(e,r,[],e._modules.root,!0),ks(e,r,t)}function ks(e,t,r){var n=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},l={},c=a.effectScope(!0);c.run(function(){$e(o,function(u,d){s[d]=Xv(u,e),l[d]=a.computed(function(){return s[d]()}),Object.defineProperty(e.getters,d,{get:function(){return l[d].value},enumerable:!0})})}),e._state=a.reactive({data:t}),e._scope=c,e.strict&&tE(e),n&&r&&e._withCommit(function(){n.data=null}),i&&i.stop()}function Ut(e,t,r,n,i){var o=!r.length,s=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[s]=n),!o&&!i){var l=Cs(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&c in l&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+r.join(".")+'"'),l[c]=n.state})}var u=n.context=Yv(e,s,r);n.forEachMutation(function(d,f){var h=s+f;Jv(e,h,d,u)}),n.forEachAction(function(d,f){var h=d.root?f:s+f,p=d.handler||d;Qv(e,h,p,u)}),n.forEachGetter(function(d,f){var h=s+f;eE(e,h,d,u)}),n.forEachChild(function(d,f){Ut(e,t,r.concat(f),d,i)})}function Yv(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(o,s,l){var c=Kt(o,s,l),u=c.payload,d=c.options,f=c.type;if((!d||!d.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._actions[f])){console.error("[vuex] unknown local action type: "+c.type+", global type: "+f);return}return e.dispatch(f,u)},commit:n?e.commit:function(o,s,l){var c=Kt(o,s,l),u=c.payload,d=c.options,f=c.type;if((!d||!d.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._mutations[f])){console.error("[vuex] unknown local mutation type: "+c.type+", global type: "+f);return}e.commit(f,u,d)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return mp(e,t)}},state:{get:function(){return Cs(e.state,r)}}}),i}function mp(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function Jv(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){r.call(e,n.state,s)})}function Qv(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var l=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},s);return Zv(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):l})}function eE(e,t,r,n){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(o){return r(n.state,n.getters,o.state,o.getters)}}function tE(e){a.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&le(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Cs(e,t){return t.reduce(function(r,n){return r[n]},e)}function Kt(e,t,r){return fp(e)&&e.type&&(r=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&le(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}var rE="vuex bindings",gp="vuex:mutations",ws="vuex:actions",Xe="vuex",nE=0;function iE(e,t){Kv({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[rE]},function(r){r.addTimelineLayer({id:gp,label:"Vuex Mutations",color:_p}),r.addTimelineLayer({id:ws,label:"Vuex Actions",color:_p}),r.addInspector({id:Xe,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===Xe)if(n.filter){var i=[];Ep(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[vp(t._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===Xe){var i=n.nodeId;mp(t,i),n.state=sE(cE(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),r.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===Xe){var i=n.nodeId,o=n.path;i!=="root"&&(o=i.split("/").filter(Boolean).concat(o)),t._withCommit(function(){n.set(t._state.data,o,n.state.value)})}}),t.subscribe(function(n,i){var o={};n.payload&&(o.payload=n.payload),o.state=i,r.notifyComponentUpdate(),r.sendInspectorTree(Xe),r.sendInspectorState(Xe),r.addTimelineEvent({layerId:gp,event:{time:Date.now(),title:n.type,data:o}})}),t.subscribeAction({before:function(n,i){var o={};n.payload&&(o.payload=n.payload),n._id=nE++,n._time=Date.now(),o.state=i,r.addTimelineEvent({layerId:ws,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:o}})},after:function(n,i){var o={},s=Date.now()-n._time;o.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},n.payload&&(o.payload=n.payload),o.state=i,r.addTimelineEvent({layerId:ws,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:o}})}})})}var _p=8702998,aE=6710886,oE=16777215,yp={label:"namespaced",textColor:oE,backgroundColor:aE};function bp(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function vp(e,t){return{id:t||"root",label:bp(t),tags:e.namespaced?[yp]:[],children:Object.keys(e._children).map(function(r){return vp(e._children[r],t+r+"/")})}}function Ep(e,t,r,n){n.includes(r)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[yp]:[]}),Object.keys(t._children).forEach(function(i){Ep(e,t._children[i],r,n+i+"/")})}function sE(e,t,r){t=r==="root"?t:t[r];var n=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(n.length){var o=lE(t);i.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?bp(s):s,editable:!1,value:Ss(function(){return o[s]})}})}return i}function lE(e){var t={};return Object.keys(e).forEach(function(r){var n=r.split("/");if(n.length>1){var i=t,o=n.pop();n.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[o]=Ss(function(){return e[r]})}else t[r]=Ss(function(){return e[r]})}),t}function cE(e,t){var r=t.split("/").filter(function(n){return n});return r.reduce(function(n,i,o){var s=n[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return o===r.length-1?s:s._children},t==="root"?e:e.root._children)}function Ss(e){try{return e()}catch(t){return t}}var ce=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},kp={namespaced:{configurable:!0}};kp.namespaced.get=function(){return!!this._rawModule.namespaced},ce.prototype.addChild=function(t,r){this._children[t]=r},ce.prototype.removeChild=function(t){delete this._children[t]},ce.prototype.getChild=function(t){return this._children[t]},ce.prototype.hasChild=function(t){return t in this._children},ce.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},ce.prototype.forEachChild=function(t){$e(this._children,t)},ce.prototype.forEachGetter=function(t){this._rawModule.getters&&$e(this._rawModule.getters,t)},ce.prototype.forEachAction=function(t){this._rawModule.actions&&$e(this._rawModule.actions,t)},ce.prototype.forEachMutation=function(t){this._rawModule.mutations&&$e(this._rawModule.mutations,t)},Object.defineProperties(ce.prototype,kp);var Me=function(t){this.register([],t,!1)};Me.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)},Me.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")},Me.prototype.update=function(t){Cp([],this.root,t)},Me.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&Np(t,r);var o=new ce(r,n);if(t.length===0)this.root=o;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],o)}r.modules&&$e(r.modules,function(l,c){i.register(t.concat(c),l,n)})},Me.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1],i=r.getChild(n);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+n+"', which is not registered");return}i.runtime&&r.removeChild(n)},Me.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function Cp(e,t,r){if(process.env.NODE_ENV!=="production"&&Np(e,r),t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");return}Cp(e.concat(n),t.getChild(n),r.modules[n])}}var wp={assert:function(e){return typeof e=="function"},expected:"function"},uE={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Sp={getters:wp,mutations:wp,actions:uE};function Np(e,t){Object.keys(Sp).forEach(function(r){if(t[r]){var n=Sp[r];$e(t[r],function(i,o){le(n.assert(i),dE(e,r,o,i,n.expected))})}})}function dE(e,t,r,n,i){var o=t+" should be "+i+' but "'+t+"."+r+'"';return e.length>0&&(o+=' in module "'+e.join(".")+'"'),o+=" is "+JSON.stringify(n)+".",o}var te=function e(t){var r=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(le(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),le(this instanceof e,"store must be called with the new operator."));var n=t.plugins;n===void 0&&(n=[]);var i=t.strict;i===void 0&&(i=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Me(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,l=this,c=l.dispatch,u=l.commit;this.dispatch=function(h,p){return c.call(s,h,p)},this.commit=function(h,p,g){return u.call(s,h,p,g)},this.strict=i;var d=this._modules.root.state;Ut(this,d,[],this._modules.root),ks(this,d),n.forEach(function(f){return f(r)})},Ns={state:{configurable:!0}};te.prototype.install=function(t,r){t.provide(r||Wv,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;n&&iE(t,this)},Ns.state.get=function(){return this._state.data},Ns.state.set=function(e){process.env.NODE_ENV!=="production"&&le(!1,"use store.replaceState() to explicit replace store state.")},te.prototype.commit=function(t,r,n){var i=this,o=Kt(t,r,n),s=o.type,l=o.payload,c=o.options,u={type:s,payload:l},d=this._mutations[s];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+s);return}this._withCommit(function(){d.forEach(function(h){h(l)})}),this._subscribers.slice().forEach(function(f){return f(u,i.state)}),process.env.NODE_ENV!=="production"&&c&&c.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")},te.prototype.dispatch=function(t,r){var n=this,i=Kt(t,r),o=i.type,s=i.payload,l={type:o,payload:s},c=this._actions[o];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+o);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(l,n.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var u=c.length>1?Promise.all(c.map(function(d){return d(s)})):c[0](s);return new Promise(function(d,f){u.then(function(h){try{n._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(l,n.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(p))}d(h)},function(h){try{n._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(l,n.state,h)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(p))}f(h)})})},te.prototype.subscribe=function(t,r){return hp(t,this._subscribers,r)},te.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return hp(n,this._actionSubscribers,r)},te.prototype.watch=function(t,r,n){var i=this;return process.env.NODE_ENV!=="production"&&le(typeof t=="function","store.watch only accepts a function."),a.watch(function(){return t(i.state,i.getters)},r,Object.assign({},n))},te.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})},te.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(le(Array.isArray(t),"module path must be a string or an Array."),le(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,r),Ut(this,this.state,t,this._modules.get(t),n.preserveState),ks(this,this.state)},te.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&le(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=Cs(r.state,t.slice(0,-1));delete n[t[t.length-1]]}),pp(this)},te.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&le(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},te.prototype.hotUpdate=function(t){this._modules.update(t),pp(this,!0)},te.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r},Object.defineProperties(te.prototype,Ns);var Ts=Ip(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!Is(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Tp(t).forEach(function(n){var i=n.key,o=n.val;r[i]=function(){var l=this.$store.state,c=this.$store.getters;if(e){var u=qp(this.$store,"mapState",e);if(!u)return;l=u.context.state,c=u.context.getters}return typeof o=="function"?o.call(this,l,c):l[o]},r[i].vuex=!0}),r}),fE=Ip(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!Is(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Tp(t).forEach(function(n){var i=n.key,o=n.val;o=e+o,r[i]=function(){if(!(e&&!qp(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(o in this.$store.getters)){console.error("[vuex] unknown getter: "+o);return}return this.$store.getters[o]}},r[i].vuex=!0}),r});function Tp(e){return Is(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function Is(e){return Array.isArray(e)||fp(e)}function Ip(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function qp(e,t,r){var n=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!n&&console.error("[vuex] module namespace not found in "+t+"(): "+r),n}const hE={class:"icon rounded"},pE={class:"node-content"},mE={class:"d-flex node-title"},gE={class:"text-truncate task-title"},_E={key:0,class:"d-flex"},yE={class:"text-white top-button-div"},bE={components:{ArrowExpand:Ft,InformationOutline:up,OpenInNew:zt,Tooltip:j},emits:[w.EXPAND,w.OPEN_LINK,w.SHOW_LOGS,w.MOUSE_OVER,w.MOUSE_LEAVE,w.ADD_ERROR,w.EDIT,w.DELETE,w.ADD_TASK,w.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(w.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(w.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return x},...Ts("execution",["execution"]),borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return w},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return x.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:(e=this.data.node.task)==null?void 0:e.disabled,[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){if(this.data.node.type.endsWith("SubflowGraphTask")){const e=this.data.node.task.subflowId??this.data.node.task;return e.namespace+" "+e.flowId}return this.trimmedId}}},qs=B(Object.assign(bE,{__name:"BasicNode",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:r[3]||(r[3]=(...n)=>t.mouseover&&t.mouseover(...n)),onMouseleave:r[4]||(r[4]=(...n)=>t.mouseleave&&t.mouseleave(...n))},[e.state?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",hE,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.iconComponent||jt),{cls:t.cls,class:a.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),a.createElementVNode("div",pE,[a.createElementVNode("div",mE,[a.createElementVNode("div",gE,[a.createVNode(j,{title:t.hoverTooltip},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(a.openBlock(),a.createElementBlock("span",_E,[a.createVNode(j,{title:a.unref(x).translate("show description"),class:"d-flex align-items-center"},{default:a.withCtx(()=>[a.createVNode(up,{onClick:r[0]||(r[0]=n=>t.$emit(a.unref(w).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):a.createCommentVNode("",!0)]),a.renderSlot(t.$slots,"content",{},void 0,!0)]),a.createElementVNode("div",yE,[a.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:r[1]||(r[1]=n=>t.$emit(a.unref(w).OPEN_LINK,{link:e.data.link}))},[a.createVNode(j,{title:a.unref(x).translate("open")},{default:a.withCtx(()=>[a.createVNode(zt,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),t.expandable?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:r[2]||(r[2]=n=>t.$emit(a.unref(w).EXPAND))},[a.createVNode(j,{title:a.unref(x).translate("expand")},{default:a.withCtx(()=>[a.createVNode(Ft,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),[["__scopeId","data-v-aa670693"]]),vE={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},EE=["aria-hidden","aria-label"],kE=["fill","width","height"],CE={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},wE={key:0};function SE(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",CE,[r.title?(a.openBlock(),a.createElementBlock("title",wE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,kE))],16,EE)}const NE=B(vE,[["render",SE]]),TE={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},IE=["aria-hidden","aria-label"],qE=["fill","width","height"],RE={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},AE={key:0};function OE(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon check-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",RE,[r.title?(a.openBlock(),a.createElementBlock("title",AE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,qE))],16,IE)}const BE=B(TE,[["render",OE]]),VE={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},LE=["aria-hidden","aria-label"],DE=["fill","width","height"],xE={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},PE={key:0};function $E(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon play-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",xE,[r.title?(a.openBlock(),a.createElementBlock("title",PE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,DE))],16,LE)}const ME=B(VE,[["render",$E]]),HE={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},GE=["aria-hidden","aria-label"],jE=["fill","width","height"],FE={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},zE={key:0};function UE(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon close-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",FE,[r.title?(a.openBlock(),a.createElementBlock("title",zE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,jE))],16,GE)}const Rp=B(HE,[["render",UE]]),KE={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},WE=["aria-hidden","aria-label"],ZE=["fill","width","height"],XE={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},YE={key:0};function JE(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",XE,[r.title?(a.openBlock(),a.createElementBlock("title",YE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,ZE))],16,WE)}const QE=B(KE,[["render",JE]]),e0={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},t0=["aria-hidden","aria-label"],r0=["fill","width","height"],n0={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},i0={key:0};function a0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",n0,[r.title?(a.openBlock(),a.createElementBlock("title",i0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,r0))],16,t0)}const o0=B(e0,[["render",a0]]),s0={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},l0=["aria-hidden","aria-label"],c0=["fill","width","height"],u0={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},d0={key:0};function f0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",u0,[r.title?(a.openBlock(),a.createElementBlock("title",d0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,c0))],16,l0)}const h0=B(s0,[["render",f0]]),p0={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},m0=["aria-hidden","aria-label"],g0=["fill","width","height"],_0={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},y0={key:0};function b0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",_0,[r.title?(a.openBlock(),a.createElementBlock("title",y0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,g0))],16,m0)}const U=Object.freeze({CREATED:{name:"CREATED",colorClass:"cyan",icon:B(p0,[["render",b0]]),isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",colorClass:"cyan",icon:o0,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",colorClass:"green",icon:BE,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",colorClass:"purple",icon:ME,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",colorClass:"yellow",icon:Rp,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",colorClass:"yellow",icon:QE,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",colorClass:"orange",icon:h0,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",colorClass:"red",icon:Rp,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",colorClass:"indigo",icon:NE,isRunning:!0,isKillable:!0,isFailed:!1}});let W=class{static get CREATED(){return U.CREATED.name}static get RESTARTED(){return U.RESTARTED.name}static get SUCCESS(){return U.SUCCESS.name}static get RUNNING(){return U.RUNNING.name}static get KILLING(){return U.KILLING.name}static get KILLED(){return U.KILLED.name}static get FAILED(){return U.FAILED.name}static get WARNING(){return U.WARNING.name}static get PAUSED(){return U.PAUSED.name}static isRunning(t){return U[t]&&U[t].isRunning}static isKillable(t){return U[t]&&U[t].isKillable}static isPaused(t){return U[t]&&U[t]===U.PAUSED}static isFailed(t){return U[t]&&U[t].isFailed}static allStates(){return et.mapValues(U,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(U)}static colorClass(){return et.mapValues(U,t=>t.colorClass)}static color(){return et.mapValues(U,()=>'cssVariable("--bs-" + state.colorClass)')}static icon(){return et.mapValues(U,t=>t.icon)}};const Ap=e=>new Date(e).getTime(),v0={components:{Tooltip:j},props:{histories:{type:Array,default:void 0}},watch:{histories(e,t){t[0].date!==e[0].date&&this.paint()}},data(){return{duration:"",refreshHandler:void 0}},mounted(){this.paint()},computed:{start(){return this.histories&&this.histories.length&&Ap(this.histories[0].date)},lastStep(){return this.histories[this.histories.length-1]},filteredHistories(){return this.histories.filter(e=>e.date&&e.date.isValid()&&e.state)}},methods:{paint(){this.refreshHandler||(this.refreshHandler=setInterval(()=>{this.computeDuration(),this.histories&&!W.isRunning(this.lastStep.state)&&this.cancel()},100))},cancel(){this.refreshHandler&&(clearInterval(this.refreshHandler),this.refreshHandler=void 0)},delta(){return this.stop()-this.start},stop(){return!this.histories||W.isRunning(this.lastStep.state)?+new Date:Ap(this.lastStep.date)},computeDuration(){this.duration=this.filteredHistories.length===0?"&nbsp;":x.humanDuration(this.delta()/1e3)},squareClass(e){return["bg-"+W.colorClass()[e]]}},beforeUnmount(){this.cancel()}},E0=["innerHTML"];function k0(e,t,r,n,i,o){const s=a.resolveComponent("tooltip");return a.openBlock(),a.createBlock(s,{key:o.lastStep.date},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.filteredHistories,(l,c)=>(a.openBlock(),a.createElementBlock("span",{key:"tt-"+c,class:"duration-tt"},[a.createElementVNode("span",{class:a.normalizeClass(["square",o.squareClass(l.state)])},null,2),a.createElementVNode("strong",null,a.toDisplayString(l.state)+": ",1),a.createTextVNode(a.toDisplayString(e.$filters.date(l.date,"iso"))+" ",1),t[0]||(t[0]=a.createElementVNode("br",null,null,-1))]))),128))]),default:a.withCtx(()=>[a.createElementVNode("span",{innerHTML:i.duration},null,8,E0)]),_:1})}const C0={name:"ExecutionInformations",computed:{EVENTS(){return w},taskRunList(){return this.execution&&this.execution.taskRunList?this.execution.taskRunList:[]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===x.afterLastDot(this.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(n=>n.state.current),t=[W.FAILED,W.KILLED,W.WARNING,W.KILLING,W.RUNNING,W.SUCCESS,W.RESTARTED,W.CREATED];return e.map(n=>{const i=t.indexOf(n[1]);return t[i]=void 0,[i,n]}).sort().map(n=>n[1])[0]},histories(){if(!this.taskRuns)return;const e=Math.max(...this.taskRuns.filter(r=>r.state.histories&&r.state.histories.length>0).map(r=>new Date(r.state.histories[r.state.histories.length-1].date).getTime())),t=Math.max(...this.taskRuns.map(r=>tt.duration(r.state.duration).asMilliseconds()/1e3,0));return[{date:tt(e).subtract(t,"second"),state:"CREATED"},{date:tt(e),state:this.state}]}},components:{Duration:B(v0,[["render",k0]])},props:{color:{type:String,default:"primary"},execution:{type:Object,default:null},task:{type:Object,default:null},uid:{type:String,default:null}}},w0={class:"btn-group content rounded-1 content-children text-truncate"},S0={key:0,class:"taskRunCount"},N0={key:1};function T0(e,t,r,n,i,o){const s=a.resolveComponent("duration");return a.openBlock(),a.createElementBlock("div",w0,[o.taskRuns.length>0?(a.openBlock(),a.createElementBlock("span",S0,a.toDisplayString(o.taskRuns.length)+" task runs",1)):a.createCommentVNode("",!0),o.taskRuns.length>0?(a.openBlock(),a.createElementBlock("span",N0," | ")):a.createCommentVNode("",!0),a.createElementVNode("span",null,[a.createVNode(s,{histories:o.histories},null,8,["histories"])])])}const Rs=B(C0,[["render",T0],["__scopeId","data-v-9bea95bb"]]),I0={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},q0=["aria-hidden","aria-label"],R0=["fill","width","height"],A0={d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},O0={key:0};function B0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",A0,[r.title?(a.openBlock(),a.createElementBlock("title",O0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,R0))],16,q0)}const Wt=B(I0,[["render",B0]]),V0={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},L0=["aria-hidden","aria-label"],D0=["fill","width","height"],x0={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},P0={key:0};function $0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",x0,[r.title?(a.openBlock(),a.createElementBlock("title",P0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,D0))],16,L0)}const Zt=B(V0,[["render",$0]]),M0={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},H0=["aria-hidden","aria-label"],G0=["fill","width","height"],j0={d:"M15.5,12C18,12 20,14 20,16.5C20,17.38 19.75,18.21 19.31,18.9L22.39,22L21,23.39L17.88,20.32C17.19,20.75 16.37,21 15.5,21C13,21 11,19 11,16.5C11,14 13,12 15.5,12M15.5,14A2.5,2.5 0 0,0 13,16.5A2.5,2.5 0 0,0 15.5,19A2.5,2.5 0 0,0 18,16.5A2.5,2.5 0 0,0 15.5,14M7,15V17H9C9.14,18.55 9.8,19.94 10.81,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19A2,2 0 0,1 21,5V13.03C19.85,11.21 17.82,10 15.5,10C14.23,10 13.04,10.37 12.04,11H7V13H10C9.64,13.6 9.34,14.28 9.17,15H7M17,9V7H7V9H17Z"},F0={key:0};function z0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",j0,[r.title?(a.openBlock(),a.createElementBlock("title",F0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,G0))],16,H0)}const Op=B(M0,[["render",z0]]),U0={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},K0=["aria-hidden","aria-label"],W0=["fill","width","height"],Z0={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},X0={key:0};function Y0(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",Z0,[r.title?(a.openBlock(),a.createElementBlock("title",X0,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,W0))],16,K0)}const Bp=B(U0,[["render",Y0]]),J0={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Q0=["aria-hidden","aria-label"],ek=["fill","width","height"],tk={d:"M23,18V17.5A2.5,2.5 0 0,0 20.5,15A2.5,2.5 0 0,0 18,17.5V18A1,1 0 0,0 17,19V23A1,1 0 0,0 18,24H23A1,1 0 0,0 24,23V19A1,1 0 0,0 23,18M22,18H19V17.5A1.5,1.5 0 0,1 20.5,16A1.5,1.5 0 0,1 22,17.5V18M23,12L2,21V14L17,12L2,10V3L23,12Z"},rk={key:0};function nk(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",tk,[r.title?(a.openBlock(),a.createElementBlock("title",rk,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,ek))],16,Q0)}const Vp=B(J0,[["render",nk]]),ik={name:"Task",components:{Pencil:Wt,Delete:Zt,ExecutionInformations:Rs,Handle:D.Handle,TextBoxSearch:Op,AlertOutline:Bp,Tooltip:j,SendLock:Vp},inheritAttrs:!1,computed:{...Ts("execution",["execution"]),...fE("execution",["subflowsExecutions"]),SECTIONS(){return ve},EVENTS(){return w},color(){return this.data.color??"primary"},taskId(){return x.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,r;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(r=Object.values(this.subflowsExecutions).filter(n=>n.id===this.data.executionId))==null?void 0:r[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===x.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(n=>n.state.current),t=[W.FAILED,W.KILLED,W.WARNING,W.KILLING,W.RUNNING,W.SUCCESS,W.RESTARTED,W.CREATED];return e.map(n=>{const i=t.indexOf(n[1]);return t[i]=void 0,[i,n]}).sort().map(n=>n[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,t,r,n;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const i=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:i.namespace,id:i.flowId,executionId:(n=(r=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(o=>{var s;return o.taskId===this.data.node.task.id&&((s=o.outputs)==null?void 0:s.executionId)}))==null?void 0:t[0])==null?void 0:r.outputs)==null?void 0:n.executionId}}}return this.data}},emits:[w.EXPAND,w.OPEN_LINK,w.SHOW_LOGS,w.MOUSE_OVER,w.MOUSE_LEAVE,w.ADD_ERROR,w.EDIT,w.DELETE,w.ADD_TASK,w.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Lp=Object.assign(ik,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(D.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createVNode(qs,{id:e.id,data:t.dataWithLink,state:t.state,class:a.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:r[5]||(r[5]=n=>t.forwardEvent(a.unref(w).SHOW_DESCRIPTION,n)),onExpand:r[6]||(r[6]=n=>t.forwardEvent(a.unref(w).EXPAND,t.expandData)),onOpenLink:r[7]||(r[7]=n=>t.forwardEvent(a.unref(w).OPEN_LINK,n)),onMouseover:r[8]||(r[8]=n=>t.forwardEvent(a.unref(w).MOUSE_OVER,n)),onMouseleave:r[9]||(r[9]=n=>t.forwardEvent(a.unref(w).MOUSE_LEAVE))},{content:a.withCtx(()=>[t.taskExecution?(a.openBlock(),a.createBlock(Rs,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):a.createCommentVNode("",!0)]),"badge-button-before":a.withCtx(()=>[e.data.node.task.runIf?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["circle-button",["bg-warning"]]),onClick:r[0]||(r[0]=n=>t.$emit(a.unref(w).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:a.unref(ve).TASKS}))},[a.createVNode(j,{title:a.unref(x).translate("show task condition")},{default:a.withCtx(()=>[a.createVNode(Vp,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):a.createCommentVNode("",!0),t.taskExecution?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:r[1]||(r[1]=n=>t.$emit(a.unref(w).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[a.createVNode(j,{title:a.unref(x).translate("show task logs")},{default:a.withCtx(()=>[a.createVNode(Op,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:r[2]||(r[2]=n=>t.$emit(a.unref(w).ADD_ERROR,{task:e.data.node.task}))},[a.createVNode(j,{title:a.unref(x).translate("add error handler")},{default:a.withCtx(()=>[a.createVNode(Bp,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(a.openBlock(),a.createElementBlock("span",{key:3,class:a.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:r[3]||(r[3]=n=>t.$emit(a.unref(w).EDIT,{task:e.data.node.task,section:a.unref(ve).TASKS}))},[a.createVNode(j,{title:a.unref(x).translate("edit")},{default:a.withCtx(()=>[a.createVNode(Wt,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(a.openBlock(),a.createElementBlock("span",{key:4,class:a.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:r[4]||(r[4]=n=>t.$emit(a.unref(w).DELETE,{id:t.taskId,section:a.unref(ve).TASKS}))},[a.createVNode(j,{title:a.unref(x).translate("delete")},{default:a.withCtx(()=>[a.createVNode(Zt,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),a.createVNode(a.unref(D.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),ak={name:"Task",inheritAttrs:!1,computed:{...Ts("execution",["execution"]),SECTIONS(){return ve},EVENTS(){return w},color(){return this.data.color??"primary"},formattedData(){var e,t,r,n;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((n=(r=this.data.node)==null?void 0:r.trigger)==null?void 0:n.disabled)}},triggerId(){return x.afterLastDot(this.id)}},emits:[w.DELETE,w.EDIT,w.SHOW_DESCRIPTION],components:{Delete:Zt,Pencil:Wt,Handle:D.Handle,Tooltip:j},props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Dp=Object.assign(ak,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(D.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createVNode(qs,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:r[2]||(r[2]=n=>t.forwardEvent(a.unref(w).SHOW_DESCRIPTION,n)),onExpand:r[3]||(r[3]=n=>t.forwardEvent(a.unref(w).EXPAND,{id:e.id}))},a.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:a.withCtx(()=>[t.execution?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:r[0]||(r[0]=n=>t.$emit(a.unref(w).EDIT,{task:e.data.node.triggerDeclaration,section:a.unref(ve).TRIGGERS}))},[a.createVNode(j,{title:a.unref(x).translate("edit")},{default:a.withCtx(()=>[a.createVNode(Wt,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:r[1]||(r[1]=n=>t.$emit(a.unref(w).DELETE,{id:t.triggerId,section:a.unref(ve).TRIGGERS}))},[a.createVNode(j,{title:a.unref(x).translate("delete")},{default:a.withCtx(()=>[a.createVNode(Zt,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),a.createVNode(a.unref(D.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),ok={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sk=["aria-hidden","aria-label"],lk=["fill","width","height"],ck={d:"M11 15H6L13 1V9H18L11 23V15Z"},uk={key:0};function dk(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",ck,[r.title?(a.openBlock(),a.createElementBlock("title",uk,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,lk))],16,sk)}const fk=B(ok,[["render",dk]]),hk={class:"collapsed-cluster-node d-flex"},pk={class:"node-text"},mk={class:"text-white top-button-div"},gk={components:{Tooltip:j,Handle:D.Handle,ArrowExpand:Ft,LightningBolt:fk},inheritAttrs:!1,props:{id:{type:String,default:void 0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},data:{type:Object,required:!0}},data(){return{filter:void 0,isOpen:!1}},computed:{EVENTS(){return w},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},xp=B(Object.assign(gk,{__name:"CollapsedClusterNode",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(D.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createElementVNode("div",hk,[a.createElementVNode("span",pk,[e.data.iconComponent?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.data.iconComponent),{key:0,class:a.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(a.unref(x).afterLastDot(e.id)),1)]),a.createElementVNode("div",mk,[a.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:r[0]||(r[0]=n=>t.$emit(a.unref(w).EXPAND,{id:e.id}))},[a.createVNode(j,{title:a.unref(x).translate("expand")},{default:a.withCtx(()=>[a.createVNode(Ft,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),a.createVNode(a.unref(D.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),[["__scopeId","data-v-e12d4062"]]),_k={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},yk=["aria-hidden","aria-label"],bk=["fill","width","height"],vk={d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"},Ek={key:0};function kk(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",vk,[r.title?(a.openBlock(),a.createElementBlock("title",Ek,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,bk))],16,yk)}const Pp=B(_k,[["render",kk]]),Ck={class:"dependency-text d-flex flex-column flex-grow-1"},wk={class:"dependency-flow-text text-truncate"},Sk={class:"dependency-namespace-text text-truncate"},Nk={class:"text-white top-button-div"},Tk={name:"Dependencies",components:{ArrowExpandAll:Pp,OpenInNew:zt,TaskIcon:jt,Handle:D.Handle,Tooltip:j},inheritAttrs:!1,emits:[w.EXPAND_DEPENDENCIES,w.OPEN_LINK,w.MOUSE_OVER,w.MOUSE_LEAVE],computed:{EVENTS(){return w},icon(){return window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
6
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
7
- </svg>`)}},props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}}},Ik=B(Object.assign(Tk,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(D.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createElementVNode("div",{class:a.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[a.createVNode(jt,{"custom-icon":{icon:t.icon},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),a.createElementVNode("div",Ck,[a.createElementVNode("div",wk,[a.createVNode(j,{title:e.data.flowId},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),a.createElementVNode("div",Sk,[a.createVNode(j,{title:e.data.namespace},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),a.createElementVNode("div",Nk,[a.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:r[0]||(r[0]=n=>t.$emit(a.unref(w).OPEN_LINK,e.data))},[a.createVNode(j,{title:a.unref(x).translate("open")},{default:a.withCtx(()=>[a.createVNode(zt,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),e.data.expandEnabled?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:r[1]||(r[1]=n=>t.$emit(a.unref(w).EXPAND_DEPENDENCIES,e.data))},[a.createVNode(j,{title:a.unref(x).translate("expand")},{default:a.withCtx(()=>[a.createVNode(Pp,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],2),a.createVNode(a.unref(D.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),[["__scopeId","data-v-cff03edd"]]),qk={name:"SplitCellsVerticalIcon",emits:["click"]},Rk={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ak(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",Rk,t[0]||(t[0]=[a.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[a.createElementVNode("path",{d:"M1.97852 2.63349C1.97852 2.26366 2.27832 1.96387 2.64814 1.96387L13.3621 1.96387C13.7319 1.96387 14.0317 2.26366 14.0317 2.63349L14.0317 13.3475C14.0317 13.7173 13.7319 14.0171 13.3621 14.0171L2.64814 14.0171C2.27832 14.0171 1.97852 13.7173 1.97852 13.3475L1.97852 2.63349ZM3.31776 8.6601L3.31776 12.6778L12.6925 12.6778L12.6925 8.6601L10.014 8.6601L10.014 7.32085L12.6925 7.32085L12.6925 3.30311L3.31776 3.30311L3.31776 7.32086L5.99626 7.32085L5.99626 8.6601L3.31776 8.6601ZM5.99626 5.98161L8.00513 3.97274L10.014 5.98161L8.67475 5.98161L8.67475 9.99935L10.014 9.99935L8.00513 12.0082L5.99626 9.99935L7.3355 9.99935L7.3355 5.98161L5.99626 5.98161Z",fill:"currentColor"})],-1),a.createElementVNode("defs",null,[a.createElementVNode("clipPath",{id:"clip0_1111_7266"},[a.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const Ok=B(qk,[["render",Ak],["__scopeId","data-v-084c51e6"]]),Bk={name:"SplitCellsHorizontalIcon",emits:["click"]},Vk={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lk(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",Vk,t[0]||(t[0]=[a.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[a.createElementVNode("path",{d:"M13.367 1.979C13.7368 1.979 14.0366 2.27881 14.0366 2.64863V13.3626C14.0366 13.7324 13.7368 14.0322 13.367 14.0322H2.65302C2.2832 14.0322 1.9834 13.7324 1.9834 13.3626V2.64863C1.9834 2.27881 2.2832 1.979 2.65302 1.979H13.367ZM7.34039 3.31825H3.32265V12.693H7.34039V10.0145H8.67963V12.693H12.6974V3.31825H8.67963V5.99675H7.34039V3.31825ZM10.0189 5.99675L12.0278 8.00562L10.0189 10.0145V8.67524H6.00114V10.0145L3.99227 8.00562L6.00114 5.99675V7.33599H10.0189V5.99675Z",fill:"currentColor"})],-1),a.createElementVNode("defs",null,[a.createElementVNode("clipPath",{id:"clip0_796_3996"},[a.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Dk=B(Bk,[["render",Lk],["__scopeId","data-v-c77c1469"]]);var he=(e=>(e.Lines="lines",e.Dots="dots",e))(he||{});const $p=function({dimensions:e,size:t,color:r}){return a.h("path",{stroke:r,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Mp=function({radius:e,color:t}){return a.h("circle",{cx:e,cy:e,r:e,fill:t})};he.Lines+"",he.Dots+"";const xk={[he.Dots]:"#81818a",[he.Lines]:"#eee"},Pk=["id","x","y","width","height","patternTransform"],$k={key:2,height:"100",width:"100"},Mk=["fill"],Hk=["x","y","fill"],Gk={name:"Background",compatConfig:{MODE:3}},jk=a.defineComponent({...Gk,props:{id:{},variant:{default:()=>he.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:2}},setup(e){const{id:t,viewport:r}=D.useVueFlow(),n=a.computed(()=>{const[s,l]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],c=[s*r.value.zoom||1,l*r.value.zoom||1],u=e.size*r.value.zoom,d=e.variant===he.Dots?[u/e.offset,u/e.offset]:[c[0]/e.offset,c[1]/e.offset];return{scaledGap:c,offset:d,size:u}}),i=a.toRef(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),o=a.toRef(()=>e.color||e.patternColor||xk[e.variant||he.Dots]);return(s,l)=>(a.openBlock(),a.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:a.normalizeStyle({height:`${s.height>100?100:s.height}%`,width:`${s.width>100?100:s.width}%`})},[a.renderSlot(s.$slots,"pattern-container",{id:i.value},()=>[a.createElementVNode("pattern",{id:i.value,x:a.unref(r).x%n.value.scaledGap[0],y:a.unref(r).y%n.value.scaledGap[1],width:n.value.scaledGap[0],height:n.value.scaledGap[1],patternTransform:`translate(-${n.value.offset[0]},-${n.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[a.renderSlot(s.$slots,"pattern",{},()=>[s.variant===a.unref(he).Lines?(a.openBlock(),a.createBlock(a.unref($p),{key:0,size:s.lineWidth,color:o.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===a.unref(he).Dots?(a.openBlock(),a.createBlock(a.unref(Mp),{key:1,color:o.value,radius:n.value.size/s.offset},null,8,["color","radius"])):a.createCommentVNode("",!0),s.bgColor?(a.openBlock(),a.createElementBlock("svg",$k,[a.createElementVNode("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,Mk)])):a.createCommentVNode("",!0)])],8,Pk)]),a.createElementVNode("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${i.value})`},null,8,Hk),a.renderSlot(s.$slots,"default",{id:i.value})],4))}}),Fk={__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,required:!1,default:void 0},namespace:{type:String,required:!1,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},emits:[w.EDIT,w.DELETE,w.OPEN_LINK,w.SHOW_LOGS,w.SHOW_DESCRIPTION,"on-add-flowable-error",w.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",w.SHOW_CONDITION],setup(e,{emit:t}){const r=e,n=a.ref(!1),i=a.ref(null),{getNodes:o,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:c,fitView:u,setElements:d}=D.useVueFlow({id:r.id}),f=a.ref({}),h=a.ref([]),p=a.ref(new Set),g=a.ref([]),m=t;a.onMounted(()=>{y()}),a.watch(()=>r.flowGraph,()=>{y()}),a.watch(()=>r.isHorizontal,()=>{y()});const y=()=>{Gt.cleanGraph(r.id),a.nextTick(()=>{_("loading",!0);const E=p.value;p.value=new Set,h.value=[],f.value={},E.forEach(q=>I(Oe+q,!1,!1));const b=Gt.generateGraph(r.id,r.flowId,r.namespace,r.flowGraph,r.source,h.value,r.isHorizontal,f.value,p.value,g.value,r.isReadOnly,r.isAllowedEdit,r.enableSubflowInteraction);d(b),u(),_("loading",!1)})},_=(E,b)=>{m(E,b)},C=E=>{n.value||Gt.linkedElements(r.id,E.uid).forEach(b=>{(b==null?void 0:b.type)==="task"&&(b.style={...b.style,outline:"0.5px solid "+se("--bs-gray-900")},b.class="rounded-3")})},v=()=>{T()},T=()=>{o.value.filter(E=>E.type==="task"||E.type==="trigger").forEach(E=>{E.style={...E.style,opacity:"1",outline:"none"},E.class=""})};l(E=>{n.value=!0,T(),E.node.style={...E.node.style,zIndex:1976},i.value=E.node.position}),c(E=>{if(n.value=!1,R(E.intersections,E.node)===null){const b=E.node,q=E.intersections.find(S=>S.type==="task");if(q)try{m("swapped-task",{newSource:H.swapTasks(r.source,x.afterLastDot(b.id),x.afterLastDot(q.id)),swappedTasks:[b.id,q.id]})}catch(S){m("message",{variant:"error",title:"cannot swap tasks",message:`${S.message}, ${S.messageOptions}`}),b.position=i.value}else b.position=i.value}else E.node.position=i.value;T(),E.node.style={...E.node.style,zIndex:5},i.value=null});const A=a.computed(()=>{var E;return(E=r.flowGraph)!=null&&E.clusters?r.flowGraph.clusters.filter(b=>b.cluster.type.endsWith("SubflowGraphCluster")).map(b=>b.cluster.taskNode.uid+"."):[]});s(E=>{T(),o.value.filter(b=>b.id!==E.node.id).forEach(b=>{var q;b.type==="trigger"||b.type==="task"&&(b.id.startsWith(E.node.id+".")||E.node.id.startsWith(b.id+"."))||(q=A==null?void 0:A.value)!=null&&q.some(S=>b.id.startsWith(S))?b.style={...b.style,opacity:"0.5"}:b.style={...b.style,opacity:"1"}}),!R(E.intersections,E.node)&&E.intersections.filter(b=>b.type==="task").length===1&&(E.intersections.forEach(b=>{b.type==="task"&&(b.style={...b.style,outline:"0.5px solid "+se("--bs-primary")},b.class="rounded-3")}),E.node.style={...E.node.style,outline:"0.5px solid "+se("--bs-primary")},E.node.class="rounded-3")});const R=(E,b)=>{const q=E.filter(S=>S.type==="task").map(S=>x.afterLastDot(S.id));if(q.length>1)return"toomuchtaskerror";try{if(q.length===1&&H.isParentChildrenRelation(r.source,x.afterLastDot(q[0]),x.afterLastDot(b.id)))return"parentchildrenerror"}catch{return"parentchildrenerror"}return E.filter(S=>S.type==="trigger").length>0?"triggererror":null},I=(E,b,q)=>{const S=r.flowGraph.clusters.find(X=>X.cluster.uid.endsWith(E)),Z=E.replace(Oe,"");p.value.add(Z),h.value=h.value.concat(S.nodes.filter(X=>X!==Z||q)),h.value=h.value.concat([S.cluster.uid]),f.value={...f.value,[S.cluster.uid]:Z,[S.start]:Z,[S.end]:Z};for(let X of S.nodes)r.flowGraph.clusters.map(Ie=>Ie.cluster.uid).includes(X)&&I(X,!1,!0);b&&y()},V=E=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(E.type)&&!r.expandedSubflows.includes(E.id)){_("expand-subflow",[...r.expandedSubflows,E.id]);return}f.value={},h.value=[],g.value=[],p.value.delete(E.id),p.value.forEach(q=>I(q,!1,!1)),y()},P=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;return(E,b)=>(a.openBlock(),a.createBlock(a.unref(D.VueFlow),{id:e.id,"default-marker-color":a.unref(se)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":a.withCtx(q=>[a.createVNode(a.unref(op),a.mergeProps(q,{onCollapse:b[0]||(b[0]=S=>I(S,!0))}),null,16)]),"node-dot":a.withCtx(q=>[a.createVNode(a.unref(sp),a.normalizeProps(a.guardReactiveProps(q)),null,16)]),"node-task":a.withCtx(q=>[a.createVNode(a.unref(Lp),a.mergeProps(q,{icons:e.icons,"icon-component":e.iconComponent,onEdit:b[1]||(b[1]=S=>_(a.unref(w).EDIT,S)),onDelete:b[2]||(b[2]=S=>_(a.unref(w).DELETE,S)),onExpand:b[3]||(b[3]=S=>V(S)),onOpenLink:b[4]||(b[4]=S=>_(a.unref(w).OPEN_LINK,S)),onShowLogs:b[5]||(b[5]=S=>_(a.unref(w).SHOW_LOGS,S)),onShowDescription:b[6]||(b[6]=S=>_(a.unref(w).SHOW_DESCRIPTION,S)),onShowCondition:b[7]||(b[7]=S=>_(a.unref(w).SHOW_CONDITION,S)),onMouseover:b[8]||(b[8]=S=>C(S)),onMouseleave:b[9]||(b[9]=S=>v()),onAddError:b[10]||(b[10]=S=>_("on-add-flowable-error",S)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":a.withCtx(q=>[a.createVNode(a.unref(Dp),a.mergeProps(q,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:b[11]||(b[11]=S=>_(a.unref(w).DELETE,S)),onEdit:b[12]||(b[12]=S=>_(a.unref(w).EDIT,S)),onShowDescription:b[13]||(b[13]=S=>_(a.unref(w).SHOW_DESCRIPTION,S))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":a.withCtx(q=>[a.createVNode(a.unref(xp),a.mergeProps(q,{onExpand:b[14]||(b[14]=S=>V(S))}),null,16)]),"edge-edge":a.withCtx(q=>[a.createVNode(a.unref(cp),a.mergeProps(q,{"yaml-source":e.source,onAddTask:b[15]||(b[15]=S=>_(a.unref(w).ADD_TASK,S)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:a.withCtx(()=>[a.createVNode(a.unref(jk),{"pattern-color":P?a.unref(se)("--bs-grey-500"):a.unref(se)("--bs-grey-300")},null,8,["pattern-color"]),a.createVNode(a.unref(As.Controls),{"show-interactive":!1},{default:a.withCtx(()=>[e.toggleOrientationButton?(a.openBlock(),a.createBlock(a.unref(As.ControlButton),{key:0,onClick:b[16]||(b[16]=q=>_("toggle-orientation",q))},{default:a.withCtx(()=>[e.isHorizontal?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Ok,{key:0,size:48})),e.isHorizontal?(a.openBlock(),a.createBlock(Dk,{key:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)]),_:1})]),_:1},8,["id","default-marker-color"]))}},zk=B(Fk,[["__scopeId","data-v-d7b42e22"]]),Uk={name:"AlertOctagonOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kk=["aria-hidden","aria-label"],Wk=["fill","width","height"],Zk={d:"M8.27,3L3,8.27V15.73L8.27,21H15.73C17.5,19.24 21,15.73 21,15.73V8.27L15.73,3M9.1,5H14.9L19,9.1V14.9L14.9,19H9.1L5,14.9V9.1M11,15H13V17H11V15M11,7H13V13H11V7"},Xk={key:0};function Yk(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon alert-octagon-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",Zk,[r.title?(a.openBlock(),a.createElementBlock("title",Xk,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Wk))],16,Kk)}const Xt=B(Uk,[["render",Yk]]),Jk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},rC={key:0};function nC(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",tC,[r.title?(a.openBlock(),a.createElementBlock("title",rC,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,eC))],16,Qk)}const Hp=B(Jk,[["render",nC]]),iC={name:"State",props:{color:{type:String,default:"primary"}},computed:{stateIcon(){switch(this.color){case"primary":return Xt;case"danger":return Xt;case"success":return Hp;case"warning":return Xt;default:return Xt}},stateText(){switch(this.color){case"primary":return"Running";case"danger":return"Failed";case"success":return"Success";case"warning":return"Warning";default:return"Error"}}}};function aC(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([`text-${r.color}`])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.stateIcon),{class:"icon","fill-color":"#ff0000"})),a.createElementVNode("span",null,a.toDisplayString(o.stateText),1)],2)}const oC=B(iC,[["render",aC],["__scopeId","data-v-6e5cce27"]]),sC={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lC=["aria-hidden","aria-label"],cC=["fill","width","height"],uC={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},dC={key:0};function fC(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("span",a.mergeProps(e.$attrs,{"aria-hidden":r.title?null:!0,"aria-label":r.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(a.openBlock(),a.createElementBlock("svg",{fill:r.fillColor,class:"material-design-icon__svg",width:r.size,height:r.size,viewBox:"0 0 24 24"},[a.createElementVNode("path",uC,[r.title?(a.openBlock(),a.createElementBlock("title",dC,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,cC))],16,lC)}const hC=B(sC,[["render",fC]]),pC=a.defineComponent({props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null}},data(){return{icons:a.shallowRef({ContentCopy:a.shallowRef(hC),Check:a.shallowRef(Hp)}),copyIcon:void 0,copyIconResetTimer:void 0,isHoveringCode:!1,codeData:null}},async created(){this.copyIcon=this.icons.ContentCopy,this.codeData=await Zp.codeToHtml(this.code,{lang:this.language,theme:"github-dark"})},methods:{hoverCode(){this.isHoveringCode=!0,this.copyIconResetTimer&&a.nextTick(()=>{Wp.createPopper(this.$refs.copyButton,this.$refs.copyTooltip,{placement:"left"})})},copyToClipboard(){clearTimeout(this.copyIconResetTimer),navigator.clipboard.writeText(this.code.trimEnd()),this.copyIcon=this.icons.Check,this.copyIconResetTimer=setTimeout(()=>{this.copyIcon=this.icons.ContentCopy,this.copyIconResetTimer=void 0},2e3)}}}),mC={key:0,class:"language"},gC={ref:"copyButton",class:"copy"},_C={key:0,ref:"copyTooltip",id:"copied-tooltip",role:"tooltip"},yC=["innerHTML"];function bC(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",{class:"code-block mb-3",onMouseover:t[0]||(t[0]=(...s)=>e.hoverCode&&e.hoverCode(...s)),onMouseleave:t[1]||(t[1]=s=>e.isHoveringCode=!1)},[e.language?(a.openBlock(),a.createElementBlock("div",mC,a.toDisplayString(e.language),1)):a.createCommentVNode("",!0),e.isHoveringCode?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",gC,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.copyIcon),{onClick:e.copyToClipboard},null,8,["onClick"]))],512),e.copyIconResetTimer?(a.openBlock(),a.createElementBlock("div",_C,t[2]||(t[2]=[a.createTextVNode(" Copied! "),a.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),a.createElementVNode("div",{innerHTML:e.codeData},null,8,yC)],32)}const Gp=B(pC,[["render",bC],["__scopeId","data-v-331760e3"]]),vC={class:"bd-markdown"},EC={key:0,class:"doc-alert alert alert-warning",role:"alert"},kC={key:1},CC=["innerHTML"],wC={key:3,id:"examples"},SC=["id"],NC=["href"],TC=["id"],IC=["href"],qC={key:0,class:"doc-alert alert alert-warning",role:"alert"},RC=["href"],AC={class:"type-mark type-mark-default"},OC={key:1,class:"type-mark type-mark-default"},BC={key:2},VC={class:"type-mark type-mark-default"},LC={key:0},DC=["href"],xC={class:"type-mark type-mark-default"},PC={key:1,class:"type-mark type-mark-default"},$C={key:1,class:"type-mark type-mark-default"},MC={key:1},HC={key:2},GC={key:3},jC={key:4},FC={key:5},zC={class:"nested-fw-bolder"},UC=["innerHTML"],KC={key:1,class:"blockquote"},WC=["innerHTML"],ZC=["id"],XC=["href"],YC={key:0,id:"properties-1"},JC=["id"],QC=["href"],ew=["href"],tw={class:"type-mark type-mark-default"},rw={key:1,class:"type-mark type-mark-default"},nw={key:2},iw={class:"type-mark type-mark-default"},aw={key:0},ow=["href"],sw={class:"type-mark type-mark-default"},lw={key:1,class:"type-mark type-mark-default"},cw={key:1,class:"type-mark type-mark-default"},uw={key:1},dw={key:2},fw={key:3},hw={key:4},pw={key:5},mw={class:"nested-fw-bolder"},gw=["innerHTML"],_w={class:"blockquote"},yw=["innerHTML"],bw=B({__name:"SchemaToHtml",props:{page:{type:Object,required:!0},getPageName:{type:Function,required:!0}},setup(e){const t=e;function r(c){return c.charAt(0).toUpperCase()+c.slice(1)}const n=c=>{var u;return c=(u=c==null?void 0:c.split("```")[0])==null?void 0:u.replace(/`([^`]*)`/g,"<code>$1</code>"),c=c==null?void 0:c.replace(/\[(.*?)\]\((.*?)\)/g,(d,f,h)=>f&&h?`<a href="${h}" rel="nofollow" target="_blank">${f}</a>`:d),c==null?void 0:c.split("```")[0]},i=c=>{if(c){const u=c==null?void 0:c.split("/");return`#${u[(u==null?void 0:u.length)-1]}`}};a.computed(()=>{var d;const c=(d=t.page)==null?void 0:d.description.split(`
8
-
9
- `);let u="";return c.forEach(f=>{var g;const h=n(f),p=h==null?void 0:h.split(/:\s?\n/);if(p){const m=p[0].split(/::alert{type="warning"}\n/),y=m.length>1?`<div class="doc-alert alert alert-warning" role="alert">
10
- <p>${n((g=m[1])==null?void 0:g.split(":")[0])}</p>
11
- </div>`:`<p>${p[0]}:</p>`,_=p[1]?`<ul>${s(p[1])}</ul>`:"";u+=y+_}else u+=`<p>${h}</p>`}),u});const o=c=>{const u=[],d=[];for(const p in c)c[p].$required?u.push(p):d.push(p);const f=[...u.sort(),...d.sort()],h={};return f.forEach(p=>{h[p]=c[p]}),h},s=c=>{let u="";return c==null||c.split(/[-*]/).forEach(d=>{d.trim()&&(u+=`
12
- <li>${n(d)}</li>
13
- `)}),u},l=c=>{var u,d;return c!=null&&c.full?c.code:`id: "${(d=(u=t.getPageName())==null?void 0:u.split(".").reverse()[0])==null?void 0:d.toLowerCase()}"
14
- type: "${t.getPageName()}"
15
- `.concat(c.code)};return(c,u)=>{var d,f,h,p,g;return a.openBlock(),a.createElementBlock("div",vC,[e.page.deprecated?(a.openBlock(),a.createElementBlock("div",EC,u[0]||(u[0]=[a.createElementVNode("p",null,"⚠ Deprecated",-1)]))):a.createCommentVNode("",!0),a.createVNode(Gp,{language:"yaml",code:`type: "${e.getPageName()}"`},null,8,["code"]),e.page.title?(a.openBlock(),a.createElementBlock("p",kC,[a.createElementVNode("span",{style:{"font-size":"1.5em"},innerHTML:n(e.page.title)},null,8,CC)])):a.createCommentVNode("",!0),e.page.description?a.renderSlot(c.$slots,"markdown",{key:2,content:e.page.description},void 0,!0):a.createCommentVNode("",!0),e.page.body.children.examples?(a.openBlock(),a.createElementBlock("h2",wC,u[1]||(u[1]=[a.createElementVNode("a",{href:"#examples"},"Examples",-1)]))):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((h=(f=(d=e.page)==null?void 0:d.body)==null?void 0:f.children)==null?void 0:h.examples)??[],(m,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:y},[m.title?a.renderSlot(c.$slots,"markdown",{key:0,content:m.title},void 0,!0):a.createCommentVNode("",!0),m.code?(a.openBlock(),a.createBlock(Gp,{key:1,language:m.lang,code:l(m)},null,8,["language","code"])):a.createCommentVNode("",!0)],64))),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((g=(p=e.page)==null?void 0:p.body)==null?void 0:g.children)??[],(m,y)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:y},[y!=="examples"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("h2",{id:y},[a.createElementVNode("a",{href:`#${y}`},a.toDisplayString(r(y)),9,NC)],8,SC),y!=="definitions"?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(o(m),(_,C)=>{var v;return a.openBlock(),a.createElementBlock(a.Fragment,{key:C},[a.createElementVNode("h3",{id:_.name??C},[a.createElementVNode("a",{href:`#${_.name??C}`},[a.createElementVNode("code",null,a.toDisplayString(_.name??C),1)],8,IC)],8,TC),_.$deprecated?(a.openBlock(),a.createElementBlock("div",qC,u[2]||(u[2]=[a.createElementVNode("p",null,"⚠ Deprecated",-1)]))):a.createCommentVNode("",!0),a.createElementVNode("ul",null,[a.createElementVNode("li",null,[u[3]||(u[3]=a.createElementVNode("strong",null,"Type: ",-1)),_.$ref?(a.openBlock(),a.createElementBlock("a",{key:0,"aria-current":"page",href:i(_.$ref),class:"router-link-active router-link-exact-active"},[a.createElementVNode("mark",AC,a.toDisplayString((v=_.$ref)==null?void 0:v.split(".").reverse()[0]),1)],8,RC)):_.type?(a.openBlock(),a.createElementBlock("mark",OC,a.toDisplayString(_.type),1)):_.anyOf?(a.openBlock(),a.createElementBlock("ul",BC,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.anyOf,(T,A)=>(a.openBlock(),a.createElementBlock("li",{key:A},[a.createElementVNode("mark",VC,a.toDisplayString(T.type),1)]))),128))])):a.createCommentVNode("",!0)]),_.items??_.additionalProperties?(a.openBlock(),a.createElementBlock("li",LC,[u[4]||(u[4]=a.createElementVNode("strong",null,"SubType: ",-1)),_.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[_.items.$ref?(a.openBlock(),a.createElementBlock("a",{key:0,"aria-current":"page",href:i(_.items.$ref),class:"router-link-active router-link-exact-active"},[a.createElementVNode("mark",xC,a.toDisplayString(_.items.$ref.split(".").reverse()[0]),1)],8,DC)):(a.openBlock(),a.createElementBlock("mark",PC,a.toDisplayString(_.items.type??"string"),1))],64)):_.additionalProperties.type?(a.openBlock(),a.createElementBlock("mark",$C,[_.additionalProperties.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(_.additionalProperties.items.type??"string"),1)],64)):_.additionalProperties.type?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(_.additionalProperties.type),1)],64)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("li",null,[u[5]||(u[5]=a.createElementVNode("strong",null,"Dynamic: ",-1)),a.createTextVNode(a.toDisplayString(_.$dynamic===!0?"✔️":_.$dynamic===!1?"❌":"❓"),1)]),a.createElementVNode("li",null,[u[6]||(u[6]=a.createElementVNode("strong",null,"Required: ",-1)),a.createTextVNode(" "+a.toDisplayString(_.$required===!0?"✔️":_.$required===!1?"❌":"❓"),1)]),_.default!==void 0?(a.openBlock(),a.createElementBlock("li",MC,[u[7]||(u[7]=a.createElementVNode("strong",null,"Default: ",-1)),a.createElementVNode("code",null,a.toDisplayString(_.default),1)])):a.createCommentVNode("",!0),_.format?(a.openBlock(),a.createElementBlock("li",HC,[u[8]||(u[8]=a.createElementVNode("strong",null,"Format: ",-1)),a.createElementVNode("code",null,a.toDisplayString(_.format),1)])):a.createCommentVNode("",!0),_.minItems?(a.openBlock(),a.createElementBlock("li",GC,[u[9]||(u[9]=a.createElementVNode("strong",null,"Min items: ",-1)),a.createElementVNode("code",null,a.toDisplayString(_.minItems),1)])):a.createCommentVNode("",!0),_.minLength?(a.openBlock(),a.createElementBlock("li",jC,[u[10]||(u[10]=a.createElementVNode("strong",null,"Min length: ",-1)),a.createElementVNode("code",null,a.toDisplayString(_.minLength),1)])):a.createCommentVNode("",!0),_.enum?(a.openBlock(),a.createElementBlock("li",FC,[u[11]||(u[11]=a.createElementVNode("strong",null,"Possible Values:",-1)),a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.enum,(T,A)=>(a.openBlock(),a.createElementBlock("li",{key:A},[a.createElementVNode("code",null,a.toDisplayString(T),1)]))),128))])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",zC,[_.title?a.renderSlot(c.$slots,"markdown",{key:0,content:_.title},()=>[a.createElementVNode("template",{innerHTML:n(_.title)},null,8,UC)],!0):a.createCommentVNode("",!0)]),_.description?(a.openBlock(),a.createElementBlock("blockquote",KC,[a.renderSlot(c.$slots,"markdown",{content:_.description},()=>[a.createElementVNode("template",{innerHTML:n(_.description)},null,8,WC)],!0)])):a.createCommentVNode("",!0)],64)}),128)):m?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(m,(_,C)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:C},[a.createElementVNode("h3",{id:C},[a.createElementVNode("a",{href:`#${C}`},[a.createElementVNode("code",null,a.toDisplayString(C),1)],8,XC)],8,ZC),_.properties?(a.openBlock(),a.createElementBlock("h4",YC,u[12]||(u[12]=[a.createElementVNode("a",{href:"#properties-1"},"Properties",-1)]))):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.properties??[],(v,T)=>{var A;return a.openBlock(),a.createElementBlock(a.Fragment,{key:T},[a.createElementVNode("h5",{id:v.name??T},[a.createElementVNode("a",{href:`#${v.name??T}`},[a.createElementVNode("code",null,a.toDisplayString(v.name??T),1)],8,QC)],8,JC),a.createElementVNode("ul",null,[a.createElementVNode("li",null,[u[13]||(u[13]=a.createElementVNode("strong",null,"Type: ",-1)),v.$ref?(a.openBlock(),a.createElementBlock("a",{key:0,"aria-current":"page",href:i(v.$ref),class:"router-link-active router-link-exact-active"},[a.createElementVNode("mark",tw,a.toDisplayString((A=v.$ref)==null?void 0:A.split(".").reverse()[0]),1)],8,ew)):v.type?(a.openBlock(),a.createElementBlock("mark",rw,a.toDisplayString(v.type),1)):v.anyOf?(a.openBlock(),a.createElementBlock("ul",nw,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.anyOf,(R,I)=>(a.openBlock(),a.createElementBlock("li",{key:I},[a.createElementVNode("mark",iw,a.toDisplayString(R.type),1)]))),128))])):a.createCommentVNode("",!0)]),v.items?(a.openBlock(),a.createElementBlock("li",aw,[u[14]||(u[14]=a.createElementVNode("strong",null,"SubType: ",-1)),v.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[v.items.$ref?(a.openBlock(),a.createElementBlock("a",{key:0,"aria-current":"page",href:i(v.items.$ref),class:"router-link-active router-link-exact-active"},[a.createElementVNode("mark",sw,a.toDisplayString(v.items.$ref.split(".").reverse()[0]),1)],8,ow)):(a.openBlock(),a.createElementBlock("mark",lw,a.toDisplayString(v.items.type??"string"),1))],64)):v.additionalProperties.type?(a.openBlock(),a.createElementBlock("mark",cw,[v.additionalProperties.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(v.additionalProperties.items.type??"string"),1)],64)):v.additionalProperties.type?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(v.additionalProperties.type),1)],64)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("li",null,[u[15]||(u[15]=a.createElementVNode("strong",null,"Dynamic: ",-1)),a.createTextVNode(" "+a.toDisplayString(v.$dynamic===!0?"✔️":v.$dynamic===!1?"❌":"❓"),1)]),a.createElementVNode("li",null,[u[16]||(u[16]=a.createElementVNode("strong",null,"Required: ",-1)),a.createTextVNode(" "+a.toDisplayString(v.$required===!0?"✔️":v.$required===!1?"❌":"❓"),1)]),v.default!==void 0?(a.openBlock(),a.createElementBlock("li",uw,[u[17]||(u[17]=a.createElementVNode("strong",null,"Default: ",-1)),a.createElementVNode("code",null,a.toDisplayString(v.default),1)])):a.createCommentVNode("",!0),v.format?(a.openBlock(),a.createElementBlock("li",dw,[u[18]||(u[18]=a.createElementVNode("strong",null,"Format: ",-1)),a.createElementVNode("code",null,a.toDisplayString(v.format),1)])):a.createCommentVNode("",!0),v.minItems?(a.openBlock(),a.createElementBlock("li",fw,[u[19]||(u[19]=a.createElementVNode("strong",null,"Min items: ",-1)),a.createElementVNode("code",null,a.toDisplayString(v.minItems),1)])):a.createCommentVNode("",!0),v.minLength?(a.openBlock(),a.createElementBlock("li",hw,[u[20]||(u[20]=a.createElementVNode("strong",null,"Min length: ",-1)),a.createElementVNode("code",null,a.toDisplayString(v.minLength),1)])):a.createCommentVNode("",!0),v.enum?(a.openBlock(),a.createElementBlock("li",pw,[u[21]||(u[21]=a.createElementVNode("strong",null,"Possible Values:",-1)),a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.enum,(R,I)=>(a.openBlock(),a.createElementBlock("li",{key:I},[a.createElementVNode("code",null,a.toDisplayString(R),1)]))),128))])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",mw,[v.title?a.renderSlot(c.$slots,"markdown",{key:0,content:v.title},()=>[a.createElementVNode("template",{innerHTML:n(v.title)},null,8,gw)],!0):a.createCommentVNode("",!0)]),a.createElementVNode("blockquote",_w,[v.description?a.renderSlot(c.$slots,"markdown",{key:0,content:v.description},()=>[a.createElementVNode("template",{innerHTML:n(v.description)},null,8,yw)],!0):a.createCommentVNode("",!0)])],64)}),128))],64))),128)):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0)],64))),128))])}}},[["__scopeId","data-v-ea128188"]]);$.AddTaskButton=lp,$.BasicNode=qs,$.ClusterNode=op,$.CollapsedClusterNode=xp,$.DependenciesNode=Ik,$.DotNode=sp,$.EdgeNode=cp,$.ExecutionInformations=Rs,$.SchemaToHtml=bw,$.State=oC,$.TaskIcon=jt,$.TaskNode=Lp,$.Topology=zk,$.TriggerNode=Dp,$.Utils=x,$.VueFlowUtils=Gt,$.YamlUtils=H,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .tooltip-custom .tooltip-inner{max-width:none}.circle-button[data-v-c86183e9]{border-radius:1rem;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;pointer-events:auto!important}.button-icon[data-v-c86183e9]{font-size:.75rem}.badge[data-v-c86183e9]{top:-3px;position:relative;left:-3px;display:inline-block;max-width:100%}.text-color[data-v-c86183e9]{color:var(--bs-white);font-size:.5rem;font-weight:700;padding:.25rem .5rem}.top-button-div[data-v-c86183e9]{position:absolute;top:-.5rem;right:-.5rem;justify-content:center;padding-right:3px;display:flex}.custom-handle[data-v-00cf8c59]{visibility:hidden}.dot[data-v-00cf8c59]{display:flex;flex-direction:column;align-items:center;font-size:5px}.add-task-div[data-v-2bdfbc4f]{margin:.2rem;width:25px;height:25px;border:.4px solid var(--bs-border-color);background-color:var(--bs-white)}html.dark .add-task-div[data-v-2bdfbc4f]{background-color:var(--card-bg)}.add-task-div.text-danger[data-v-2bdfbc4f]{border-color:#e36065}.wrapper[data-v-d741b593]{display:inline-block;width:100%;height:100%;position:relative}.wrapper[data-v-d741b593] span{position:absolute;padding:1px;left:0;display:block;width:100%;height:100%}.wrapper[data-v-d741b593] .icon{width:100%;height:100%;display:block;background-size:contain;background-repeat:no-repeat;background-position:center center}.node-wrapper[data-v-aa670693]{background-color:var(--bs-white);width:184px;height:44px;margin:0;padding:8px;display:flex;z-index:150000;align-items:center;box-shadow:0 12px 12px #82679e1a}html.dark .node-wrapper[data-v-aa670693]{background-color:var(--bs-gray-300)}.node-wrapper.execution-no-taskrun[data-v-aa670693],.node-wrapper.disabled[data-v-aa670693]{background-color:var(--bs-gray-200)}html.dark .node-wrapper.execution-no-taskrun[data-v-aa670693],html.dark .node-wrapper.disabled[data-v-aa670693]{background-color:var(--bs-gray-500)}.node-wrapper.disabled .task-title[data-v-aa670693]{color:var(--bs-gray-500);text-decoration:line-through}html.dark .node-wrapper.disabled .task-title[data-v-aa670693]{color:var(--bs-gray-600)}.node-wrapper .icon[data-v-aa670693]{margin:.2rem;width:25px;height:25px;border:.4px solid var(--bs-border-color)}.node-content[data-v-aa670693]{display:flex;flex-direction:column;justify-content:center;margin-left:.7rem}.node-content>.node-title[data-v-aa670693]{width:125px}.description-button[data-v-aa670693]{color:var(--bs-gray-700);cursor:pointer}.material-design-icon.icon-rounded[data-v-aa670693]{border-radius:1rem;padding:1px}.circle-button[data-v-aa670693]{border-radius:1rem;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center;margin-left:.25rem}.button-icon[data-v-aa670693]{font-size:.75rem}.task-title[data-v-aa670693]{font-size:.75rem;font-weight:700;color:var(--bs-black);flex-grow:1}html.dark .task-title[data-v-aa670693]{color:var(--bs-white)}.status-div[data-v-aa670693]{width:8px;height:100%;position:absolute;left:-.04438rem;border-radius:.5rem 0 0 .5rem}.duration-tt{text-align:left;white-space:nowrap;max-width:none}.duration-tt .square{display:inline-block;width:10px;height:10px;margin-right:5px}.content[data-v-9bea95bb]{color:var(--bs-gray-700)}.content-children[data-v-9bea95bb]{font-size:.7rem}.collapsed-cluster-node[data-v-e12d4062]{width:150px;height:44px;padding:8px}.node-text[data-v-e12d4062]{color:#000;font-size:.9rem;display:flex;align-items:center}html.dark .node-text[data-v-e12d4062]{color:#fff}.circle-button[data-v-e12d4062]{border-radius:1rem;width:1rem;height:1rem;display:flex;justify-content:center;align-items:center}.button-icon[data-v-e12d4062]{font-size:.75rem}.dependency-node-wrapper[data-v-cff03edd]{background-color:var(--bs-white);color:var(--bs-black);width:184px;height:44px;margin:0;padding:8px 18px 8px 6px;display:flex;align-items:center;box-shadow:0 12px 12px #82679e1a}html.dark .dependency-node-wrapper[data-v-cff03edd]{background-color:var(--card-bg);color:var(--bs-white)}.wrapper[data-v-cff03edd]{width:26px}.dependency-text[data-v-cff03edd]{margin-left:.5rem}.dependency-flow-text[data-v-cff03edd]{font-size:.85rem;font-weight:700;max-width:121px}.dependency-namespace-text[data-v-cff03edd]{font-size:.625rem;font-weight:400;color:#564a75;max-width:121px}html.dark .dependency-namespace-text[data-v-cff03edd]{color:#e3dbff}svg[data-v-084c51e6]{transform:scale(1.5)}svg[data-v-c77c1469]{transform:scale(1.5)}[data-v-d7b42e22] .unused-path{opacity:.3}.icon[data-v-6e5cce27]{margin-right:.3rem}.code-block[data-v-331760e3]{background-color:#161617;border:1px solid #252526;padding:1.25rem 1.5rem;border-radius:var(--bs-border-radius-lg);color:var(--bs-white);position:relative}.code-block .language[data-v-331760e3]{position:absolute;right:.35rem;top:.25rem;color:var(--bs-gray-600);font-size:.75rem}.code-block[data-v-331760e3] pre{margin-bottom:0}.code-block[data-v-331760e3] .github-dark{background-color:transparent!important}.code-block[data-v-331760e3] .github-dark code{display:flex;flex-direction:column}.code-block .copy[data-v-331760e3]{position:absolute;right:0;bottom:.1rem;color:#7081b9;border:none;background:none}.code-block #copied-tooltip[data-v-331760e3]{border-radius:.25rem;background:#8997bd;padding:4px 8px;font-size:.75rem;margin-right:.2rem!important}.code-block #copied-tooltip #arrow[data-v-331760e3],.code-block #copied-tooltip #arrow[data-v-331760e3]:before{position:absolute;width:8px;height:8px;background:inherit}.code-block #copied-tooltip #arrow[data-v-331760e3]{visibility:hidden;right:-4px}.code-block #copied-tooltip #arrow[data-v-331760e3]:before{visibility:visible;content:"";transform:rotate(45deg)}[data-v-331760e3] pre code .line{display:block;min-height:1rem}.bd-markdown p code[data-v-ea128188]{background:#161617;border:1px solid #252526;border-radius:var(--bs-border-radius);color:#b9b9ba;padding:0 .25rem}