@kestra-io/ui-libs 0.0.185 → 0.0.187
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.
- package/dist/components/plugins/CollapsibleProperties.vue.d.ts +1 -1
- package/dist/components/plugins/CollapsibleProperties.vue.d.ts.map +1 -1
- package/dist/components/plugins/PropertyDetail.vue.d.ts +1 -5
- package/dist/components/plugins/PropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/plugins/SchemaToHtml.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +12 -12
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +671 -684
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +5 -5
- package/src/components/plugins/CollapsibleProperties.vue +2 -1
- package/src/components/plugins/PropertyDetail.vue +3 -18
- package/src/components/plugins/SchemaToHtml.vue +0 -1
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";var B_=Object.create;var Hu=Object.defineProperty;var V_=Object.getOwnPropertyDescriptor;var x_=Object.getOwnPropertyNames;var M_=Object.getPrototypeOf,q_=Object.prototype.hasOwnProperty;var $_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of x_(t))!q_.call(e,i)&&i!==r&&Hu(e,i,{get:()=>t[i],enumerable:!(n=V_(t,i))||n.enumerable});return e};var F_=(e,t,r)=>(r=e!=null?B_(M_(e)):{},$_(t||!e||!e.__esModule?Hu(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ot=require("yaml"),de=require("./kestra-flowyamlutils.cjs.js"),a=require("vue"),U_=require("humanize-duration"),ir=require("moment"),H_=require("moment-timezone"),te=require("@vue-flow/core"),hn=require("@vue-flow/controls"),G_=require("@popperjs/core"),Tr=require("vue-router"),ft={TASKS:"TASKS",TRIGGERS:"TRIGGERS",TASK_RUNNERS:"TASK_RUNNERS"},U={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"},Ct="cluster_",j_={EXECUTIONS:"executions",TASKRUNS:"taskruns"},z_={ALL:"all",ERROR:"error",HIDDEN:"hidden",DEFAULT:"all"},ct={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},W_={STORAGE_KEY:"view-type",SOURCE:"source",SOURCE_TOPOLOGY:"source-topology",SOURCE_DOC:"source-doc",TOPOLOGY:"topology",SOURCE_BLUEPRINTS:"source-blueprints"},K_={DISPLAY_EXECUTIONS_COLUMNS:"displayExecutionsColumns",DISPLAY_FLOW_EXECUTIONS_COLUMNS:"displayFlowExecutionsColumns",SELECTED_TENANT:"selectedTenant",EXECUTE_FLOW_BEHAVIOUR:"executeFlowBehaviour",SHOW_CHART:"showChart",SHOW_FLOWS_CHART:"showFlowsChart",SHOW_LOGS_CHART:"showLogsChart",DEFAULT_NAMESPACE:"defaultNamespace",LATEST_NAMESPACE:"latestNamespace",PAGINATION_SIZE:"paginationSize",IMPERSONATE:"impersonate",EDITOR_VIEW_TYPE:"editorViewType"},Y_={SAME_TAB:"same tab",NEW_TAB:"new tab"},X_={INPROGRESS:"IN-PROGRESS"},Z_={lineWidth:0},Gu=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],J_={stringify:de.stringify,parse:de.parse,pairsToMap:de.pairsToMap,extractTask(e,t){for(const r of Gu){const n=de.extractBlock({source:e,section:r,key:t});if(n)return n}},_extractTask(e,t,r){function n(o){if(o){if(o instanceof Ot.YAMLMap&&o.get("type")!==void 0&&t===o.get("id"))return r?r(o):o;if(o.items)for(const[s,l]of o.items.entries()){let u;if(l instanceof Ot.YAMLMap?u=n(l):u=n(l.value),u&&(r&&(o instanceof Ot.YAMLMap?o.set(l.key.value,u):o.items[s]=u),!r&&u))return u}}}const i=n(e.contents);if(i!==void 0)return r?new Ot.Document(i):new Ot.Document(i)},replaceTaskInDocument(e,t,r,n="tasks",i="id"){return de.replaceBlockInDocument({source:e,section:n,keyName:i,key:t,newContent:r})},sort:de.sort,getAllCharts:de.getAllCharts,getChartAtPosition:de.getChartAtPosition,localizeElementAtIndex:de.localizeElementAtIndex,getTaskType:de.getTypeAtPosition,swapTasks(e,t,r){const n=Ot.parseDocument(e),i=this._extractTask(n,t),o=this._extractTask(n,r);return Ot.visit(n,{Pair(s,l){if(l.key.value==="dependsOn"&&l.value.items.map(u=>u.value).includes(r))throw{message:"dependency task",messageOptions:{taskId:r}}}}),this._extractTask(n,t,()=>o),this._extractTask(n,r,()=>i),n.toString(Z_)},insertTask(e,t,r,n,i){return de.insertBlock({source:e,section:"tasks",newBlock:r,refKey:t,position:n,parentKey:i})},insertSection(e,t,r){return de.insertBlock({source:t,section:e,newBlock:r})},insertErrorInFlowable:de.insertErrorInFlowable,deleteSection(e,t,r){return de.deleteBlock({source:e,section:t,key:r})},deleteTask(e,t,r){return(r===ft.TASKS?["tasks","errors"]:["triggers"]).reduce((i,o)=>de.deleteBlock({source:i,section:o,key:t}),e)},getLastTask(e,t){return de.getLastBlock({source:e,section:"tasks",parentKey:t})},checkTaskAlreadyExist(e,t){return de.checkBlockAlreadyExists({source:e,section:"tasks",newContent:t,keyName:"id"})},isParentChildrenRelation(e,t,r){return de.isParentChildrenRelation({source:e,sections:Gu,key1:t,key2:r,keyName:"id"})},replaceIdAndNamespace:de.replaceIdAndNamespace,updateMetadata:de.updateMetadata,cleanMetadata:de.cleanMetadata,getMetadata:de.getMetadata,deleteMetadata:de.deleteMetadata,flowHaveTasks:de.flowHaveTasks,extractPluginDefault:de.extractPluginDefault,replacePluginDefaultsInDocument:de.replacePluginDefaultsInDocument,deletePluginDefaults:de.deletePluginDefaults},Ge=e=>{const t=document.querySelector(":root"),r=t?getComputedStyle(t):null;return r==null?void 0:r.getPropertyValue(e)};var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pn,ju;function ag(){if(ju)return pn;ju=1;var e=typeof mr=="object"&&mr&&mr.Object===Object&&mr;return pn=e,pn}var mn,zu;function et(){if(zu)return mn;zu=1;var e=ag(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return mn=r,mn}var gn,Wu;function Wt(){if(Wu)return gn;Wu=1;var e=et(),t=e.Symbol;return gn=t,gn}var vn,Ku;function Q_(){if(Ku)return vn;Ku=1;var e=Wt(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(s){var l=r.call(s,i),u=s[i];try{s[i]=void 0;var c=!0}catch{}var d=n.call(s);return c&&(l?s[i]=u:delete s[i]),d}return vn=o,vn}var _n,Yu;function e1(){if(Yu)return _n;Yu=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _n=r,_n}var yn,Xu;function Pt(){if(Xu)return yn;Xu=1;var e=Wt(),t=Q_(),r=e1(),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 yn=s,yn}var En,Zu;function Ke(){if(Zu)return En;Zu=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return En=e,En}var bn,Ju;function ur(){if(Ju)return bn;Ju=1;var e=Pt(),t=Ke(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(l){if(!t(l))return!1;var u=e(l);return u==n||u==i||u==r||u==o}return bn=s,bn}var Cn,Qu;function t1(){if(Qu)return Cn;Qu=1;var e=et(),t=e["__core-js_shared__"];return Cn=t,Cn}var kn,ec;function r1(){if(ec)return kn;ec=1;var e=t1(),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 kn=r,kn}var wn,tc;function og(){if(tc)return wn;tc=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 wn=r,wn}var Sn,rc;function n1(){if(rc)return Sn;rc=1;var e=ur(),t=r1(),r=Ke(),n=og(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var m=e(h)?d:o;return m.test(n(h))}return Sn=f,Sn}var Nn,nc;function i1(){if(nc)return Nn;nc=1;function e(t,r){return t==null?void 0:t[r]}return Nn=e,Nn}var Tn,ic;function Bt(){if(ic)return Tn;ic=1;var e=n1(),t=i1();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return Tn=r,Tn}var Ln,ac;function sg(){if(ac)return Ln;ac=1;var e=Bt(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Ln=t,Ln}var On,oc;function Mr(){if(oc)return On;oc=1;var e=sg();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return On=t,On}var In,sc;function a1(){if(sc)return In;sc=1;function e(t){return function(r,n,i){for(var o=-1,s=Object(r),l=i(r),u=l.length;u--;){var c=l[t?u:++o];if(n(s[c],c,s)===!1)break}return r}}return In=e,In}var An,lc;function au(){if(lc)return An;lc=1;var e=a1(),t=e();return An=t,An}var Rn,uc;function o1(){if(uc)return Rn;uc=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Rn=e,Rn}var Dn,cc;function lt(){if(cc)return Dn;cc=1;function e(t){return t!=null&&typeof t=="object"}return Dn=e,Dn}var Pn,dc;function s1(){if(dc)return Pn;dc=1;var e=Pt(),t=lt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pn=n,Pn}var Bn,fc;function cr(){if(fc)return Bn;fc=1;var e=s1(),t=lt(),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 Bn=o,Bn}var Vn,hc;function Ne(){if(hc)return Vn;hc=1;var e=Array.isArray;return Vn=e,Vn}var tr={exports:{}},xn,pc;function l1(){if(pc)return xn;pc=1;function e(){return!1}return xn=e,xn}tr.exports;var mc;function Kt(){return mc||(mc=1,function(e,t){var r=et(),n=l1(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||n;e.exports=c}(tr,tr.exports)),tr.exports}var Mn,gc;function qr(){if(gc)return Mn;gc=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 Mn=r,Mn}var qn,vc;function ou(){if(vc)return qn;vc=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qn=t,qn}var $n,_c;function u1(){if(_c)return $n;_c=1;var e=Pt(),t=ou(),r=lt(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",c="[object Map]",d="[object Number]",f="[object Object]",h="[object RegExp]",m="[object Set]",C="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",b="[object Uint8Array]",L="[object Uint8ClampedArray]",T="[object Uint16Array]",A="[object Uint32Array]",D={};D[g]=D[E]=D[_]=D[k]=D[S]=D[b]=D[L]=D[T]=D[A]=!0,D[n]=D[i]=D[v]=D[o]=D[p]=D[s]=D[l]=D[u]=D[c]=D[d]=D[f]=D[h]=D[m]=D[C]=D[y]=!1;function $(z){return r(z)&&t(z.length)&&!!D[e(z)]}return $n=$,$n}var Fn,yc;function $r(){if(yc)return Fn;yc=1;function e(t){return function(r){return t(r)}}return Fn=e,Fn}var rr={exports:{}};rr.exports;var Ec;function su(){return Ec||(Ec=1,function(e,t){var r=ag(),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 u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l}(rr,rr.exports)),rr.exports}var Un,bc;function dr(){if(bc)return Un;bc=1;var e=u1(),t=$r(),r=su(),n=r&&r.isTypedArray,i=n?t(n):e;return Un=i,Un}var Hn,Cc;function lg(){if(Cc)return Hn;Cc=1;var e=o1(),t=cr(),r=Ne(),n=Kt(),i=qr(),o=dr(),s=Object.prototype,l=s.hasOwnProperty;function u(c,d){var f=r(c),h=!f&&t(c),m=!f&&!h&&n(c),C=!f&&!h&&!m&&o(c),y=f||h||m||C,v=y?e(c.length,String):[],p=v.length;for(var g in c)(d||l.call(c,g))&&!(y&&(g=="length"||m&&(g=="offset"||g=="parent")||C&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,p)))&&v.push(g);return v}return Hn=u,Hn}var Gn,kc;function Fr(){if(kc)return Gn;kc=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 jn,wc;function ug(){if(wc)return jn;wc=1;function e(t,r){return function(n){return t(r(n))}}return jn=e,jn}var zn,Sc;function c1(){if(Sc)return zn;Sc=1;var e=ug(),t=e(Object.keys,Object);return zn=t,zn}var Wn,Nc;function lu(){if(Nc)return Wn;Nc=1;var e=Fr(),t=c1(),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 Wn=i,Wn}var Kn,Tc;function mt(){if(Tc)return Kn;Tc=1;var e=ur(),t=ou();function r(n){return n!=null&&t(n.length)&&!e(n)}return Kn=r,Kn}var Yn,Lc;function wt(){if(Lc)return Yn;Lc=1;var e=lg(),t=lu(),r=mt();function n(i){return r(i)?e(i):t(i)}return Yn=n,Yn}var Xn,Oc;function uu(){if(Oc)return Xn;Oc=1;var e=au(),t=wt();function r(n,i){return n&&e(n,i,t)}return Xn=r,Xn}var Zn,Ic;function d1(){if(Ic)return Zn;Ic=1;function e(){this.__data__=[],this.size=0}return Zn=e,Zn}var Jn,Ac;function Yt(){if(Ac)return Jn;Ac=1;function e(t,r){return t===r||t!==t&&r!==r}return Jn=e,Jn}var Qn,Rc;function Ur(){if(Rc)return Qn;Rc=1;var e=Yt();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Qn=t,Qn}var ei,Dc;function f1(){if(Dc)return ei;Dc=1;var e=Ur(),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 ei=n,ei}var ti,Pc;function h1(){if(Pc)return ti;Pc=1;var e=Ur();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ti=t,ti}var ri,Bc;function p1(){if(Bc)return ri;Bc=1;var e=Ur();function t(r){return e(this.__data__,r)>-1}return ri=t,ri}var ni,Vc;function m1(){if(Vc)return ni;Vc=1;var e=Ur();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 ni=t,ni}var ii,xc;function Hr(){if(xc)return ii;xc=1;var e=d1(),t=f1(),r=h1(),n=p1(),i=m1();function o(s){var l=-1,u=s==null?0:s.length;for(this.clear();++l<u;){var c=s[l];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,ii=o,ii}var ai,Mc;function g1(){if(Mc)return ai;Mc=1;var e=Hr();function t(){this.__data__=new e,this.size=0}return ai=t,ai}var oi,qc;function v1(){if(qc)return oi;qc=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return oi=e,oi}var si,$c;function _1(){if($c)return si;$c=1;function e(t){return this.__data__.get(t)}return si=e,si}var li,Fc;function y1(){if(Fc)return li;Fc=1;function e(t){return this.__data__.has(t)}return li=e,li}var ui,Uc;function cu(){if(Uc)return ui;Uc=1;var e=Bt(),t=et(),r=e(t,"Map");return ui=r,ui}var ci,Hc;function Gr(){if(Hc)return ci;Hc=1;var e=Bt(),t=e(Object,"create");return ci=t,ci}var di,Gc;function E1(){if(Gc)return di;Gc=1;var e=Gr();function t(){this.__data__=e?e(null):{},this.size=0}return di=t,di}var fi,jc;function b1(){if(jc)return fi;jc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return fi=e,fi}var hi,zc;function C1(){if(zc)return hi;zc=1;var e=Gr(),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 hi=i,hi}var pi,Wc;function k1(){if(Wc)return pi;Wc=1;var e=Gr(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return pi=n,pi}var mi,Kc;function w1(){if(Kc)return mi;Kc=1;var e=Gr(),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 mi=r,mi}var gi,Yc;function S1(){if(Yc)return gi;Yc=1;var e=E1(),t=b1(),r=C1(),n=k1(),i=w1();function o(s){var l=-1,u=s==null?0:s.length;for(this.clear();++l<u;){var c=s[l];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,gi=o,gi}var vi,Xc;function N1(){if(Xc)return vi;Xc=1;var e=S1(),t=Hr(),r=cu();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return vi=n,vi}var _i,Zc;function T1(){if(Zc)return _i;Zc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _i=e,_i}var yi,Jc;function jr(){if(Jc)return yi;Jc=1;var e=T1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return yi=t,yi}var Ei,Qc;function L1(){if(Qc)return Ei;Qc=1;var e=jr();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ei=t,Ei}var bi,ed;function O1(){if(ed)return bi;ed=1;var e=jr();function t(r){return e(this,r).get(r)}return bi=t,bi}var Ci,td;function I1(){if(td)return Ci;td=1;var e=jr();function t(r){return e(this,r).has(r)}return Ci=t,Ci}var ki,rd;function A1(){if(rd)return ki;rd=1;var e=jr();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 ki=t,ki}var wi,nd;function du(){if(nd)return wi;nd=1;var e=N1(),t=L1(),r=O1(),n=I1(),i=A1();function o(s){var l=-1,u=s==null?0:s.length;for(this.clear();++l<u;){var c=s[l];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,wi=o,wi}var Si,id;function R1(){if(id)return Si;id=1;var e=Hr(),t=cu(),r=du(),n=200;function i(o,s){var l=this.__data__;if(l instanceof e){var u=l.__data__;if(!t||u.length<n-1)return u.push([o,s]),this.size=++l.size,this;l=this.__data__=new r(u)}return l.set(o,s),this.size=l.size,this}return Si=i,Si}var Ni,ad;function zr(){if(ad)return Ni;ad=1;var e=Hr(),t=g1(),r=v1(),n=_1(),i=y1(),o=R1();function s(l){var u=this.__data__=new e(l);this.size=u.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=o,Ni=s,Ni}var Ti,od;function D1(){if(od)return Ti;od=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ti=t,Ti}var Li,sd;function P1(){if(sd)return Li;sd=1;function e(t){return this.__data__.has(t)}return Li=e,Li}var Oi,ld;function cg(){if(ld)return Oi;ld=1;var e=du(),t=D1(),r=P1();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,Oi=n,Oi}var Ii,ud;function B1(){if(ud)return Ii;ud=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 Ii=e,Ii}var Ai,cd;function dg(){if(cd)return Ai;cd=1;function e(t,r){return t.has(r)}return Ai=e,Ai}var Ri,dd;function fg(){if(dd)return Ri;dd=1;var e=cg(),t=B1(),r=dg(),n=1,i=2;function o(s,l,u,c,d,f){var h=u&n,m=s.length,C=l.length;if(m!=C&&!(h&&C>m))return!1;var y=f.get(s),v=f.get(l);if(y&&v)return y==l&&v==s;var p=-1,g=!0,E=u&i?new e:void 0;for(f.set(s,l),f.set(l,s);++p<m;){var _=s[p],k=l[p];if(c)var S=h?c(k,_,p,l,s,f):c(_,k,p,s,l,f);if(S!==void 0){if(S)continue;g=!1;break}if(E){if(!t(l,function(b,L){if(!r(E,L)&&(_===b||d(_,b,u,c,f)))return E.push(L)})){g=!1;break}}else if(!(_===k||d(_,k,u,c,f))){g=!1;break}}return f.delete(s),f.delete(l),g}return Ri=o,Ri}var Di,fd;function hg(){if(fd)return Di;fd=1;var e=et(),t=e.Uint8Array;return Di=t,Di}var Pi,hd;function V1(){if(hd)return Pi;hd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return Pi=e,Pi}var Bi,pd;function fu(){if(pd)return Bi;pd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Bi=e,Bi}var Vi,md;function x1(){if(md)return Vi;md=1;var e=Wt(),t=hg(),r=Yt(),n=fg(),i=V1(),o=fu(),s=1,l=2,u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Map]",h="[object Number]",m="[object RegExp]",C="[object Set]",y="[object String]",v="[object Symbol]",p="[object ArrayBuffer]",g="[object DataView]",E=e?e.prototype:void 0,_=E?E.valueOf:void 0;function k(S,b,L,T,A,D,$){switch(L){case g:if(S.byteLength!=b.byteLength||S.byteOffset!=b.byteOffset)return!1;S=S.buffer,b=b.buffer;case p:return!(S.byteLength!=b.byteLength||!D(new t(S),new t(b)));case u:case c:case h:return r(+S,+b);case d:return S.name==b.name&&S.message==b.message;case m:case y:return S==b+"";case f:var z=i;case C:var Z=T&s;if(z||(z=o),S.size!=b.size&&!Z)return!1;var V=$.get(S);if(V)return V==b;T|=l,$.set(S,b);var R=n(z(S),z(b),T,A,D,$);return $.delete(S),R;case v:if(_)return _.call(S)==_.call(b)}return!1}return Vi=k,Vi}var xi,gd;function hu(){if(gd)return xi;gd=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 xi=e,xi}var Mi,vd;function pg(){if(vd)return Mi;vd=1;var e=hu(),t=Ne();function r(n,i,o){var s=i(n);return t(n)?s:e(s,o(n))}return Mi=r,Mi}var qi,_d;function mg(){if(_d)return qi;_d=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 qi=e,qi}var $i,yd;function gg(){if(yd)return $i;yd=1;function e(){return[]}return $i=e,$i}var Fi,Ed;function pu(){if(Ed)return Fi;Ed=1;var e=mg(),t=gg(),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 Fi=o,Fi}var Ui,bd;function vg(){if(bd)return Ui;bd=1;var e=pg(),t=pu(),r=wt();function n(i){return e(i,r,t)}return Ui=n,Ui}var Hi,Cd;function M1(){if(Cd)return Hi;Cd=1;var e=vg(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,s,l,u,c,d){var f=l&t,h=e(o),m=h.length,C=e(s),y=C.length;if(m!=y&&!f)return!1;for(var v=m;v--;){var p=h[v];if(!(f?p in s:n.call(s,p)))return!1}var g=d.get(o),E=d.get(s);if(g&&E)return g==s&&E==o;var _=!0;d.set(o,s),d.set(s,o);for(var k=f;++v<m;){p=h[v];var S=o[p],b=s[p];if(u)var L=f?u(b,S,p,s,o,d):u(S,b,p,o,s,d);if(!(L===void 0?S===b||c(S,b,l,u,d):L)){_=!1;break}k||(k=p=="constructor")}if(_&&!k){var T=o.constructor,A=s.constructor;T!=A&&"constructor"in o&&"constructor"in s&&!(typeof T=="function"&&T instanceof T&&typeof A=="function"&&A instanceof A)&&(_=!1)}return d.delete(o),d.delete(s),_}return Hi=i,Hi}var Gi,kd;function q1(){if(kd)return Gi;kd=1;var e=Bt(),t=et(),r=e(t,"DataView");return Gi=r,Gi}var ji,wd;function $1(){if(wd)return ji;wd=1;var e=Bt(),t=et(),r=e(t,"Promise");return ji=r,ji}var zi,Sd;function _g(){if(Sd)return zi;Sd=1;var e=Bt(),t=et(),r=e(t,"Set");return zi=r,zi}var Wi,Nd;function F1(){if(Nd)return Wi;Nd=1;var e=Bt(),t=et(),r=e(t,"WeakMap");return Wi=r,Wi}var Ki,Td;function Xt(){if(Td)return Ki;Td=1;var e=q1(),t=cu(),r=$1(),n=_g(),i=F1(),o=Pt(),s=og(),l="[object Map]",u="[object Object]",c="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",m=s(e),C=s(t),y=s(r),v=s(n),p=s(i),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=h||t&&g(new t)!=l||r&&g(r.resolve())!=c||n&&g(new n)!=d||i&&g(new i)!=f)&&(g=function(E){var _=o(E),k=_==u?E.constructor:void 0,S=k?s(k):"";if(S)switch(S){case m:return h;case C:return l;case y:return c;case v:return d;case p:return f}return _}),Ki=g,Ki}var Yi,Ld;function U1(){if(Ld)return Yi;Ld=1;var e=zr(),t=fg(),r=x1(),n=M1(),i=Xt(),o=Ne(),s=Kt(),l=dr(),u=1,c="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function C(y,v,p,g,E,_){var k=o(y),S=o(v),b=k?d:i(y),L=S?d:i(v);b=b==c?f:b,L=L==c?f:L;var T=b==f,A=L==f,D=b==L;if(D&&s(y)){if(!s(v))return!1;k=!0,T=!1}if(D&&!T)return _||(_=new e),k||l(y)?t(y,v,p,g,E,_):r(y,v,b,p,g,E,_);if(!(p&u)){var $=T&&m.call(y,"__wrapped__"),z=A&&m.call(v,"__wrapped__");if($||z){var Z=$?y.value():y,V=z?v.value():v;return _||(_=new e),E(Z,V,p,g,_)}}return D?(_||(_=new e),n(y,v,p,g,E,_)):!1}return Yi=C,Yi}var Xi,Od;function yg(){if(Od)return Xi;Od=1;var e=U1(),t=lt();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 Xi=r,Xi}var Zi,Id;function H1(){if(Id)return Zi;Id=1;var e=zr(),t=yg(),r=1,n=2;function i(o,s,l,u){var c=l.length,d=c,f=!u;if(o==null)return!d;for(o=Object(o);c--;){var h=l[c];if(f&&h[2]?h[1]!==o[h[0]]:!(h[0]in o))return!1}for(;++c<d;){h=l[c];var m=h[0],C=o[m],y=h[1];if(f&&h[2]){if(C===void 0&&!(m in o))return!1}else{var v=new e;if(u)var p=u(C,y,m,o,s,v);if(!(p===void 0?t(y,C,r|n,u,v):p))return!1}}return!0}return Zi=i,Zi}var Ji,Ad;function Eg(){if(Ad)return Ji;Ad=1;var e=Ke();function t(r){return r===r&&!e(r)}return Ji=t,Ji}var Qi,Rd;function G1(){if(Rd)return Qi;Rd=1;var e=Eg(),t=wt();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 Qi=r,Qi}var ea,Dd;function bg(){if(Dd)return ea;Dd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ea=e,ea}var ta,Pd;function j1(){if(Pd)return ta;Pd=1;var e=H1(),t=G1(),r=bg();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 ta=n,ta}var ra,Bd;function Zt(){if(Bd)return ra;Bd=1;var e=Pt(),t=lt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ra=n,ra}var na,Vd;function mu(){if(Vd)return na;Vd=1;var e=Ne(),t=Zt(),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 na=i,na}var ia,xd;function z1(){if(xd)return ia;xd=1;var e=du(),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],u=o.cache;if(u.has(l))return u.get(l);var c=n.apply(this,s);return o.cache=u.set(l,c)||u,c};return o.cache=new(r.Cache||e),o}return r.Cache=e,ia=r,ia}var aa,Md;function W1(){if(Md)return aa;Md=1;var e=z1(),t=500;function r(n){var i=e(n,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return aa=r,aa}var oa,qd;function K1(){if(qd)return oa;qd=1;var e=W1(),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,u,c){o.push(u?c.replace(r,"$1"):l||s)}),o});return oa=n,oa}var sa,$d;function Wr(){if($d)return sa;$d=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 sa=e,sa}var la,Fd;function Y1(){if(Fd)return la;Fd=1;var e=Wt(),t=Wr(),r=Ne(),n=Zt(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(l){if(typeof l=="string")return l;if(r(l))return t(l,s)+"";if(n(l))return o?o.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return la=s,la}var ua,Ud;function Cg(){if(Ud)return ua;Ud=1;var e=Y1();function t(r){return r==null?"":e(r)}return ua=t,ua}var ca,Hd;function Kr(){if(Hd)return ca;Hd=1;var e=Ne(),t=mu(),r=K1(),n=Cg();function i(o,s){return e(o)?o:t(o,s)?[o]:r(n(o))}return ca=i,ca}var da,Gd;function fr(){if(Gd)return da;Gd=1;var e=Zt();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return da=t,da}var fa,jd;function Yr(){if(jd)return fa;jd=1;var e=Kr(),t=fr();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 fa=r,fa}var ha,zd;function X1(){if(zd)return ha;zd=1;var e=Yr();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return ha=t,ha}var pa,Wd;function Z1(){if(Wd)return pa;Wd=1;function e(t,r){return t!=null&&r in Object(t)}return pa=e,pa}var ma,Kd;function kg(){if(Kd)return ma;Kd=1;var e=Kr(),t=cr(),r=Ne(),n=qr(),i=ou(),o=fr();function s(l,u,c){u=e(u,l);for(var d=-1,f=u.length,h=!1;++d<f;){var m=o(u[d]);if(!(h=l!=null&&c(l,m)))break;l=l[m]}return h||++d!=f?h:(f=l==null?0:l.length,!!f&&i(f)&&n(m,f)&&(r(l)||t(l)))}return ma=s,ma}var ga,Yd;function wg(){if(Yd)return ga;Yd=1;var e=Z1(),t=kg();function r(n,i){return n!=null&&t(n,i,e)}return ga=r,ga}var va,Xd;function J1(){if(Xd)return va;Xd=1;var e=yg(),t=X1(),r=wg(),n=mu(),i=Eg(),o=bg(),s=fr(),l=1,u=2;function c(d,f){return n(d)&&i(f)?o(s(d),f):function(h){var m=t(h,d);return m===void 0&&m===f?r(h,d):e(f,m,l|u)}}return va=c,va}var _a,Zd;function Vt(){if(Zd)return _a;Zd=1;function e(t){return t}return _a=e,_a}var ya,Jd;function Sg(){if(Jd)return ya;Jd=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ya=e,ya}var Ea,Qd;function Q1(){if(Qd)return Ea;Qd=1;var e=Yr();function t(r){return function(n){return e(n,r)}}return Ea=t,Ea}var ba,ef;function ey(){if(ef)return ba;ef=1;var e=Sg(),t=Q1(),r=mu(),n=fr();function i(o){return r(o)?e(n(o)):t(o)}return ba=i,ba}var Ca,tf;function gt(){if(tf)return Ca;tf=1;var e=j1(),t=J1(),r=Vt(),n=Ne(),i=ey();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 Ca=o,Ca}var ka,rf;function Ng(){if(rf)return ka;rf=1;var e=Mr(),t=uu(),r=gt();function n(i,o){var s={};return o=r(o,3),t(i,function(l,u,c){e(s,u,o(l,u,c))}),s}return ka=n,ka}var ty=Ng();const gr=iu(ty),K=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},ry={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ny=["aria-hidden","aria-label"],iy=["fill","width","height"],ay={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"},oy={key:0};function sy(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",ay,[r.title?(a.openBlock(),a.createElementBlock("title",oy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,iy))],16,ny)}const ly=K(ry,[["render",sy]]),uy={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cy=["aria-hidden","aria-label"],dy=["fill","width","height"],fy={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"},hy={key:0};function py(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",fy,[r.title?(a.openBlock(),a.createElementBlock("title",hy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,dy))],16,cy)}const my=K(uy,[["render",py]]),gy={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vy=["aria-hidden","aria-label"],_y=["fill","width","height"],yy={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"},Ey={key:0};function by(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",yy,[r.title?(a.openBlock(),a.createElementBlock("title",Ey,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,_y))],16,vy)}const Cy=K(gy,[["render",by]]),ky={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wy=["aria-hidden","aria-label"],Sy=["fill","width","height"],Ny={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"},Ty={key:0};function Ly(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",Ny,[r.title?(a.openBlock(),a.createElementBlock("title",Ty,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Sy))],16,wy)}const Ml=K(ky,[["render",Ly]]),Oy={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Iy=["aria-hidden","aria-label"],Ay=["fill","width","height"],Ry={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"},Dy={key:0};function Py(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",Ry,[r.title?(a.openBlock(),a.createElementBlock("title",Dy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Ay))],16,Iy)}const By=K(Oy,[["render",Py]]),Vy={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xy=["aria-hidden","aria-label"],My=["fill","width","height"],qy={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"},$y={key:0};function Fy(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",qy,[r.title?(a.openBlock(),a.createElementBlock("title",$y,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,My))],16,xy)}const Uy=K(Vy,[["render",Fy]]),Hy={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gy=["aria-hidden","aria-label"],jy=["fill","width","height"],zy={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"},Wy={key:0};function Ky(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",zy,[r.title?(a.openBlock(),a.createElementBlock("title",Wy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,jy))],16,Gy)}const ql=K(Hy,[["render",Ky]]),Yy={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xy=["aria-hidden","aria-label"],Zy=["fill","width","height"],Jy={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"},Qy={key:0};function eE(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",Jy,[r.title?(a.openBlock(),a.createElementBlock("title",Qy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Zy))],16,Xy)}const tE=K(Yy,[["render",eE]]),rE={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nE=["aria-hidden","aria-label"],iE=["fill","width","height"],aE={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},oE={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 motion-pause-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",aE,[r.title?(a.openBlock(),a.createElementBlock("title",oE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,iE))],16,nE)}const lE=K(rE,[["render",sE]]),uE={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cE=["aria-hidden","aria-label"],dE=["fill","width","height"],fE={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},hE={key:0};function pE(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 refresh-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",hE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,dE))],16,cE)}const nf=K(uE,[["render",pE]]),mE={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gE=["aria-hidden","aria-label"],vE=["fill","width","height"],_E={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},yE={key:0};function EE(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 cancel-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",_E,[r.title?(a.openBlock(),a.createElementBlock("title",yE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,vE))],16,gE)}const af=K(mE,[["render",EE]]),se=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:tE,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Uy,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:my,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Cy,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:Ml,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:By,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:ql,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:Ml,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:ly,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:af,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:af,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:lE,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:nf,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:nf,isRunning:!1,isKillable:!1,isFailed:!1}});class Te{static get CREATED(){return se.CREATED.name}static get RESTARTED(){return se.RESTARTED.name}static get SUCCESS(){return se.SUCCESS.name}static get RUNNING(){return se.RUNNING.name}static get KILLING(){return se.KILLING.name}static get KILLED(){return se.KILLED.name}static get FAILED(){return se.FAILED.name}static get WARNING(){return se.WARNING.name}static get PAUSED(){return se.PAUSED.name}static get CANCELLED(){return se.CANCELLED.name}static get QUEUED(){return se.QUEUED.name}static get RETRYING(){return se.RETRYING.name}static get RETRIED(){return se.RETRIED.name}static isRunning(t){return se[t]&&se[t].isRunning}static isKillable(t){return se[t]&&se[t].isKillable}static isPaused(t){return se[t]&&se[t]===se.PAUSED}static isFailed(t){return se[t]&&se[t].isFailed}static isQueued(t){return se[t]&&se[t]===se.QUEUED}static allStates(){return gr(se,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(se)}static colorClass(){return gr(se,t=>t.colorClass)}static color(){return gr(se,t=>Ge("--bs-"+t.colorClass))}static getStateColor(t){return se[t].color}static icon(){return gr(se,t=>t.icon)}static getTerminatedStates(){return Object.values(se).filter(t=>!t.isRunning).map(t=>t.name)}}const bE={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"}},CE="dateFormat",kE="timezone",Ce={capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),dateFilter:(e,t)=>{var o,s;const r=(o=a.getCurrentInstance())==null?void 0:o.appContext.config.globalProperties.$moment().locale(),n=(s=a.getCurrentInstance())==null?void 0:s.appContext.config.globalProperties.$moment(e).locale(r);let i;return t==="iso"?i="YYYY-MM-DD HH:mm:ss.SSS":i=t??localStorage.getItem(CE)??"llll",n.tz(localStorage.getItem(kE)??H_.tz.guess()).format(i)},splitFirst(e,t){return e.split(t).slice(1).join(t)},duration(e){return ir.duration(e,ir.ISO_8601).asMilliseconds()/1e3},humanDuration(e,t){return t=t||{maxDecimalPoints:2},t.spacer="",t.language=localStorage.getItem("lang")||"en",t.languages=bE,t.largest=2,typeof e!="number"&&(e=this.duration(e)),U_(e*1e3,t).replace(/\.([0-9])s$/i,".$10s")},afterLastDot(e){return e.split(".").pop()},distinctFilter(e,t,r){return r.indexOf(e)===t}};function gu(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 wa,of;function vu(){if(of)return wa;of=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 wa=e,wa}var Sa,sf;function Xr(){if(sf)return Sa;sf=1;var e=Mr(),t=Yt(),r=Object.prototype,n=r.hasOwnProperty;function i(o,s,l){var u=o[s];(!(n.call(o,s)&&t(u,l))||l===void 0&&!(s in o))&&e(o,s,l)}return Sa=i,Sa}var Na,lf;function hr(){if(lf)return Na;lf=1;var e=Xr(),t=Mr();function r(n,i,o,s){var l=!o;o||(o={});for(var u=-1,c=i.length;++u<c;){var d=i[u],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 Na=r,Na}var Ta,uf;function wE(){if(uf)return Ta;uf=1;var e=hr(),t=wt();function r(n,i){return n&&e(i,t(i),n)}return Ta=r,Ta}var La,cf;function SE(){if(cf)return La;cf=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return La=e,La}var Oa,df;function NE(){if(df)return Oa;df=1;var e=Ke(),t=Fr(),r=SE(),n=Object.prototype,i=n.hasOwnProperty;function o(s){if(!e(s))return r(s);var l=t(s),u=[];for(var c in s)c=="constructor"&&(l||!i.call(s,c))||u.push(c);return u}return Oa=o,Oa}var Ia,ff;function xt(){if(ff)return Ia;ff=1;var e=lg(),t=NE(),r=mt();function n(i){return r(i)?e(i,!0):t(i)}return Ia=n,Ia}var Aa,hf;function TE(){if(hf)return Aa;hf=1;var e=hr(),t=xt();function r(n,i){return n&&e(i,t(i),n)}return Aa=r,Aa}var nr={exports:{}};nr.exports;var pf;function Tg(){return pf||(pf=1,function(e,t){var r=et(),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 u(c,d){if(d)return c.slice();var f=c.length,h=l?l(f):new c.constructor(f);return c.copy(h),h}e.exports=u}(nr,nr.exports)),nr.exports}var Ra,mf;function Lg(){if(mf)return Ra;mf=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 Ra=e,Ra}var Da,gf;function LE(){if(gf)return Da;gf=1;var e=hr(),t=pu();function r(n,i){return e(n,t(n),i)}return Da=r,Da}var Pa,vf;function Zr(){if(vf)return Pa;vf=1;var e=ug(),t=e(Object.getPrototypeOf,Object);return Pa=t,Pa}var Ba,_f;function Og(){if(_f)return Ba;_f=1;var e=hu(),t=Zr(),r=pu(),n=gg(),i=Object.getOwnPropertySymbols,o=i?function(s){for(var l=[];s;)e(l,r(s)),s=t(s);return l}:n;return Ba=o,Ba}var Va,yf;function OE(){if(yf)return Va;yf=1;var e=hr(),t=Og();function r(n,i){return e(n,t(n),i)}return Va=r,Va}var xa,Ef;function IE(){if(Ef)return xa;Ef=1;var e=pg(),t=Og(),r=xt();function n(i){return e(i,r,t)}return xa=n,xa}var Ma,bf;function AE(){if(bf)return Ma;bf=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 Ma=r,Ma}var qa,Cf;function _u(){if(Cf)return qa;Cf=1;var e=hg();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return qa=t,qa}var $a,kf;function RE(){if(kf)return $a;kf=1;var e=_u();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return $a=t,$a}var Fa,wf;function DE(){if(wf)return Fa;wf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Fa=t,Fa}var Ua,Sf;function PE(){if(Sf)return Ua;Sf=1;var e=Wt(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Ua=n,Ua}var Ha,Nf;function Ig(){if(Nf)return Ha;Nf=1;var e=_u();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return Ha=t,Ha}var Ga,Tf;function BE(){if(Tf)return Ga;Tf=1;var e=_u(),t=RE(),r=DE(),n=PE(),i=Ig(),o="[object Boolean]",s="[object Date]",l="[object Map]",u="[object Number]",c="[object RegExp]",d="[object Set]",f="[object String]",h="[object Symbol]",m="[object ArrayBuffer]",C="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",p="[object Int8Array]",g="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",b="[object Uint32Array]";function L(T,A,D){var $=T.constructor;switch(A){case m:return e(T);case o:case s:return new $(+T);case C:return t(T,D);case y:case v:case p:case g:case E:case _:case k:case S:case b:return i(T,D);case l:return new $;case u:case f:return new $(T);case c:return r(T);case d:return new $;case h:return n(T)}}return Ga=L,Ga}var ja,Lf;function Ag(){if(Lf)return ja;Lf=1;var e=Ke(),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 ja=r,ja}var za,Of;function Rg(){if(Of)return za;Of=1;var e=Ag(),t=Zr(),r=Fr();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return za=n,za}var Wa,If;function VE(){if(If)return Wa;If=1;var e=Xt(),t=lt(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Wa=n,Wa}var Ka,Af;function xE(){if(Af)return Ka;Af=1;var e=VE(),t=$r(),r=su(),n=r&&r.isMap,i=n?t(n):e;return Ka=i,Ka}var Ya,Rf;function ME(){if(Rf)return Ya;Rf=1;var e=Xt(),t=lt(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Ya=n,Ya}var Xa,Df;function qE(){if(Df)return Xa;Df=1;var e=ME(),t=$r(),r=su(),n=r&&r.isSet,i=n?t(n):e;return Xa=i,Xa}var Za,Pf;function Dg(){if(Pf)return Za;Pf=1;var e=zr(),t=vu(),r=Xr(),n=wE(),i=TE(),o=Tg(),s=Lg(),l=LE(),u=OE(),c=vg(),d=IE(),f=Xt(),h=AE(),m=BE(),C=Rg(),y=Ne(),v=Kt(),p=xE(),g=Ke(),E=qE(),_=wt(),k=xt(),S=1,b=2,L=4,T="[object Arguments]",A="[object Array]",D="[object Boolean]",$="[object Date]",z="[object Error]",Z="[object Function]",V="[object GeneratorFunction]",R="[object Map]",X="[object Number]",G="[object Object]",F="[object RegExp]",ne="[object Set]",ve="[object String]",De="[object Symbol]",Be="[object WeakMap]",O="[object ArrayBuffer]",P="[object DataView]",q="[object Float32Array]",H="[object Float64Array]",Q="[object Int8Array]",he="[object Int16Array]",_e="[object Int32Array]",Oe="[object Uint8Array]",_t="[object Uint8ClampedArray]",we="[object Uint16Array]",be="[object Uint32Array]",ee={};ee[T]=ee[A]=ee[O]=ee[P]=ee[D]=ee[$]=ee[q]=ee[H]=ee[Q]=ee[he]=ee[_e]=ee[R]=ee[X]=ee[G]=ee[F]=ee[ne]=ee[ve]=ee[De]=ee[Oe]=ee[_t]=ee[we]=ee[be]=!0,ee[z]=ee[Z]=ee[Be]=!1;function Fe(ie,w,N,B,W,ce){var ae,re=w&S,I=w&b,x=w&L;if(N&&(ae=W?N(ie,B,W,ce):N(ie)),ae!==void 0)return ae;if(!g(ie))return ie;var oe=y(ie);if(oe){if(ae=h(ie),!re)return s(ie,ae)}else{var pe=f(ie),rt=pe==Z||pe==V;if(v(ie))return o(ie,re);if(pe==G||pe==T||rt&&!W){if(ae=I||rt?{}:C(ie),!re)return I?u(ie,i(ae,ie)):l(ie,n(ae,ie))}else{if(!ee[pe])return W?ie:{};ae=m(ie,pe,re)}}ce||(ce=new e);var Lt=ce.get(ie);if(Lt)return Lt;ce.set(ie,ae),E(ie)?ie.forEach(function(it){ae.add(Fe(it,w,N,it,ie,ce))}):p(ie)&&ie.forEach(function(it,at){ae.set(at,Fe(it,w,N,at,ie,ce))});var yt=x?I?d:c:I?k:_,nt=oe?void 0:yt(ie);return t(nt||ie,function(it,at){nt&&(at=it,it=ie[at]),r(ae,at,Fe(it,w,N,at,ie,ce))}),ae}return Za=Fe,Za}var Ja,Bf;function $E(){if(Bf)return Ja;Bf=1;var e=Dg(),t=4;function r(n){return e(n,t)}return Ja=r,Ja}var Qa,Vf;function yu(){if(Vf)return Qa;Vf=1;function e(t){return function(){return t}}return Qa=e,Qa}var eo,xf;function FE(){if(xf)return eo;xf=1;var e=mt();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,u=Object(i);(n?l--:++l<s)&&o(u[l],l,u)!==!1;);return i}}return eo=t,eo}var to,Mf;function Jr(){if(Mf)return to;Mf=1;var e=uu(),t=FE(),r=t(e);return to=r,to}var ro,qf;function Pg(){if(qf)return ro;qf=1;var e=Vt();function t(r){return typeof r=="function"?r:e}return ro=t,ro}var no,$f;function Bg(){if($f)return no;$f=1;var e=vu(),t=Jr(),r=Pg(),n=Ne();function i(o,s){var l=n(o)?e:t;return l(o,r(s))}return no=i,no}var io,Ff;function Vg(){return Ff||(Ff=1,io=Bg()),io}var ao,Uf;function UE(){if(Uf)return ao;Uf=1;var e=Jr();function t(r,n){var i=[];return e(r,function(o,s,l){n(o,s,l)&&i.push(o)}),i}return ao=t,ao}var oo,Hf;function xg(){if(Hf)return oo;Hf=1;var e=mg(),t=UE(),r=gt(),n=Ne();function i(o,s){var l=n(o)?e:t;return l(o,r(s,3))}return oo=i,oo}var so,Gf;function HE(){if(Gf)return so;Gf=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return so=r,so}var lo,jf;function Mg(){if(jf)return lo;jf=1;var e=HE(),t=kg();function r(n,i){return n!=null&&t(n,i,e)}return lo=r,lo}var uo,zf;function GE(){if(zf)return uo;zf=1;var e=lu(),t=Xt(),r=cr(),n=Ne(),i=mt(),o=Kt(),s=Fr(),l=dr(),u="[object Map]",c="[object Set]",d=Object.prototype,f=d.hasOwnProperty;function h(m){if(m==null)return!0;if(i(m)&&(n(m)||typeof m=="string"||typeof m.splice=="function"||o(m)||l(m)||r(m)))return!m.length;var C=t(m);if(C==u||C==c)return!m.size;if(s(m))return!e(m).length;for(var y in m)if(f.call(m,y))return!1;return!0}return uo=h,uo}var co,Wf;function qg(){if(Wf)return co;Wf=1;function e(t){return t===void 0}return co=e,co}var fo,Kf;function $g(){if(Kf)return fo;Kf=1;var e=Jr(),t=mt();function r(n,i){var o=-1,s=t(n)?Array(n.length):[];return e(n,function(l,u,c){s[++o]=i(l,u,c)}),s}return fo=r,fo}var ho,Yf;function Fg(){if(Yf)return ho;Yf=1;var e=Wr(),t=gt(),r=$g(),n=Ne();function i(o,s){var l=n(o)?e:r;return l(o,t(s,3))}return ho=i,ho}var po,Xf;function jE(){if(Xf)return po;Xf=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 po=e,po}var mo,Zf;function zE(){if(Zf)return mo;Zf=1;function e(t,r,n,i,o){return o(t,function(s,l,u){n=i?(i=!1,s):r(n,s,l,u)}),n}return mo=e,mo}var go,Jf;function Ug(){if(Jf)return go;Jf=1;var e=jE(),t=Jr(),r=gt(),n=zE(),i=Ne();function o(s,l,u){var c=i(s)?e:n,d=arguments.length<3;return c(s,r(l,4),u,d,t)}return go=o,go}var vo,Qf;function WE(){if(Qf)return vo;Qf=1;var e=Pt(),t=Ne(),r=lt(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return vo=i,vo}var _o,eh;function KE(){if(eh)return _o;eh=1;var e=Sg(),t=e("length");return _o=t,_o}var yo,th;function YE(){if(th)return yo;th=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 u(c){return l.test(c)}return yo=u,yo}var Eo,rh;function XE(){if(rh)return Eo;rh=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+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+u+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",C=c+"?",y="["+o+"]?",v="(?:"+m+"(?:"+[d,f,h].join("|")+")"+y+C+")*",p=y+C+v,g="(?:"+[d+l+"?",l,f,h,s].join("|")+")",E=RegExp(u+"(?="+u+")|"+g+p,"g");function _(k){for(var S=E.lastIndex=0;E.test(k);)++S;return S}return Eo=_,Eo}var bo,nh;function ZE(){if(nh)return bo;nh=1;var e=KE(),t=YE(),r=XE();function n(i){return t(i)?r(i):e(i)}return bo=n,bo}var Co,ih;function JE(){if(ih)return Co;ih=1;var e=lu(),t=Xt(),r=mt(),n=WE(),i=ZE(),o="[object Map]",s="[object Set]";function l(u){if(u==null)return 0;if(r(u))return n(u)?i(u):u.length;var c=t(u);return c==o||c==s?u.size:e(u).length}return Co=l,Co}var ko,ah;function QE(){if(ah)return ko;ah=1;var e=vu(),t=Ag(),r=uu(),n=gt(),i=Zr(),o=Ne(),s=Kt(),l=ur(),u=Ke(),c=dr();function d(f,h,m){var C=o(f),y=C||s(f)||c(f);if(h=n(h,4),m==null){var v=f&&f.constructor;y?m=C?new v:[]:u(f)?m=l(v)?t(i(f)):{}:m={}}return(y?e:r)(f,function(p,g,E){return h(m,p,g,E)}),m}return ko=d,ko}var wo,oh;function eb(){if(oh)return wo;oh=1;var e=Wt(),t=cr(),r=Ne(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return wo=i,wo}var So,sh;function Eu(){if(sh)return So;sh=1;var e=hu(),t=eb();function r(n,i,o,s,l){var u=-1,c=n.length;for(o||(o=t),l||(l=[]);++u<c;){var d=n[u];i>0&&o(d)?i>1?r(d,i-1,o,s,l):e(l,d):s||(l[l.length]=d)}return l}return So=r,So}var No,lh;function tb(){if(lh)return No;lh=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 No=e,No}var To,uh;function Hg(){if(uh)return To;uh=1;var e=tb(),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,u=t(s.length-i,0),c=Array(u);++l<u;)c[l]=s[i+l];l=-1;for(var d=Array(i+1);++l<i;)d[l]=s[l];return d[i]=o(c),e(n,this,d)}}return To=r,To}var Lo,ch;function rb(){if(ch)return Lo;ch=1;var e=yu(),t=sg(),r=Vt(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return Lo=n,Lo}var Oo,dh;function nb(){if(dh)return Oo;dh=1;var e=800,t=16,r=Date.now;function n(i){var o=0,s=0;return function(){var l=r(),u=t-(l-s);if(s=l,u>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Oo=n,Oo}var Io,fh;function Gg(){if(fh)return Io;fh=1;var e=rb(),t=nb(),r=t(e);return Io=r,Io}var Ao,hh;function Qr(){if(hh)return Ao;hh=1;var e=Vt(),t=Hg(),r=Gg();function n(i,o){return r(t(i,o,e),i+"")}return Ao=n,Ao}var Ro,ph;function jg(){if(ph)return Ro;ph=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 Ro=e,Ro}var Do,mh;function ib(){if(mh)return Do;mh=1;function e(t){return t!==t}return Do=e,Do}var Po,gh;function ab(){if(gh)return Po;gh=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 Po=e,Po}var Bo,vh;function ob(){if(vh)return Bo;vh=1;var e=jg(),t=ib(),r=ab();function n(i,o,s){return o===o?r(i,o,s):e(i,t,s)}return Bo=n,Bo}var Vo,_h;function sb(){if(_h)return Vo;_h=1;var e=ob();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Vo=t,Vo}var xo,yh;function lb(){if(yh)return xo;yh=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 xo=e,xo}var Mo,Eh;function ub(){if(Eh)return Mo;Eh=1;function e(){}return Mo=e,Mo}var qo,bh;function cb(){if(bh)return qo;bh=1;var e=_g(),t=ub(),r=fu(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return qo=i,qo}var $o,Ch;function db(){if(Ch)return $o;Ch=1;var e=cg(),t=sb(),r=lb(),n=dg(),i=cb(),o=fu(),s=200;function l(u,c,d){var f=-1,h=t,m=u.length,C=!0,y=[],v=y;if(d)C=!1,h=r;else if(m>=s){var p=c?null:i(u);if(p)return o(p);C=!1,h=n,v=new e}else v=c?[]:y;e:for(;++f<m;){var g=u[f],E=c?c(g):g;if(g=d||g!==0?g:0,C&&E===E){for(var _=v.length;_--;)if(v[_]===E)continue e;c&&v.push(E),y.push(g)}else h(v,E,d)||(v!==y&&v.push(E),y.push(g))}return y}return $o=l,$o}var Fo,kh;function zg(){if(kh)return Fo;kh=1;var e=mt(),t=lt();function r(n){return t(n)&&e(n)}return Fo=r,Fo}var Uo,wh;function fb(){if(wh)return Uo;wh=1;var e=Eu(),t=Qr(),r=db(),n=zg(),i=t(function(o){return r(e(o,1,n,!0))});return Uo=i,Uo}var Ho,Sh;function hb(){if(Sh)return Ho;Sh=1;var e=Wr();function t(r,n){return e(n,function(i){return r[i]})}return Ho=t,Ho}var Go,Nh;function Wg(){if(Nh)return Go;Nh=1;var e=hb(),t=wt();function r(n){return n==null?[]:e(n,t(n))}return Go=r,Go}var jo,Th;function Ye(){if(Th)return jo;Th=1;var e;if(typeof gu=="function")try{e={clone:$E(),constant:yu(),each:Vg(),filter:xg(),has:Mg(),isArray:Ne(),isEmpty:GE(),isFunction:ur(),isUndefined:qg(),keys:wt(),map:Fg(),reduce:Ug(),size:JE(),transform:QE(),union:fb(),values:Wg()}}catch{}return e||(e=window._),jo=e,jo}var zo,Lh;function bu(){if(Lh)return zo;Lh=1;var e=Ye();zo=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,m=this;return e.each(d,function(C){h.length>1?m.setNode(C,f):m.setNode(C)}),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(m){f.removeEdge(f._edgeObjs[m])};delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],e.each(this.children(d),function(m){f.setParent(m)}),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(y,v){d(v)&&f.setNode(v,y)}),e.each(this._edgeObjs,function(y){f.hasNode(y.v)&&f.hasNode(y.w)&&f.setEdge(y,h.edge(y))});var m={};function C(y){var v=h.parent(y);return v===void 0||f.hasNode(v)?(m[y]=v,v):v in m?m[v]:C(v)}return this._isCompound&&e.each(f.nodes(),function(y){f.setParent(y,C(y))}),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,m=arguments;return e.reduce(d,function(C,y){return m.length>1?h.setEdge(C,y,f):h.setEdge(C,y),y}),this},i.prototype.setEdge=function(){var d,f,h,m,C=!1,y=arguments[0];typeof y=="object"&&y!==null&&"v"in y?(d=y.v,f=y.w,h=y.name,arguments.length===2&&(m=arguments[1],C=!0)):(d=y,f=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],C=!0)),d=""+d,f=""+f,e.isUndefined(h)||(h=""+h);var v=l(this._isDirected,d,f,h);if(e.has(this._edgeLabels,v))return C&&(this._edgeLabels[v]=m),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[v]=C?m:this._defaultEdgeLabelFn(d,f,h);var p=u(this._isDirected,d,f,h);return d=p.v,f=p.w,Object.freeze(p),this._edgeObjs[v]=p,o(this._preds[f],d),o(this._sucs[d],f),this._in[f][v]=p,this._out[d][v]=p,this._edgeCount++,this},i.prototype.edge=function(d,f,h){var m=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,f,h);return this._edgeLabels[m]},i.prototype.hasEdge=function(d,f,h){var m=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,f,h);return e.has(this._edgeLabels,m)},i.prototype.removeEdge=function(d,f,h){var m=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,f,h),C=this._edgeObjs[m];return C&&(d=C.v,f=C.w,delete this._edgeLabels[m],delete this._edgeObjs[m],s(this._preds[f],d),s(this._sucs[d],f),delete this._in[f][m],delete this._out[d][m],this._edgeCount--),this},i.prototype.inEdges=function(d,f){var h=this._in[d];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.v===f}):m}},i.prototype.outEdges=function(d,f){var h=this._out[d];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.w===f}):m}},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,m){var C=""+f,y=""+h;if(!d&&C>y){var v=C;C=y,y=v}return C+n+y+n+(e.isUndefined(m)?t:m)}function u(d,f,h,m){var C=""+f,y=""+h;if(!d&&C>y){var v=C;C=y,y=v}var p={v:C,w:y};return m&&(p.name=m),p}function c(d,f){return l(d,f.v,f.w,f.name)}return zo}var Wo,Oh;function pb(){return Oh||(Oh=1,Wo="2.1.8"),Wo}var Ko,Ih;function mb(){return Ih||(Ih=1,Ko={Graph:bu(),version:pb()}),Ko}var Yo,Ah;function gb(){if(Ah)return Yo;Ah=1;var e=Ye(),t=bu();Yo={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 u=s.node(l),c=s.parent(l),d={v:l};return e.isUndefined(u)||(d.value=u),e.isUndefined(c)||(d.parent=c),d})}function i(s){return e.map(s.edges(),function(l){var u=s.edge(l),c={v:l.v,w:l.w};return e.isUndefined(l.name)||(c.name=l.name),e.isUndefined(u)||(c.value=u),c})}function o(s){var l=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(u){l.setNode(u.v,u.value),u.parent&&l.setParent(u.v,u.parent)}),e.each(s.edges,function(u){l.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),l}return Yo}var Xo,Rh;function vb(){if(Rh)return Xo;Rh=1;var e=Ye();Xo=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 Xo}var Zo,Dh;function Kg(){if(Dh)return Zo;Dh=1;var e=Ye();Zo=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},Zo}var Jo,Ph;function Yg(){if(Ph)return Jo;Ph=1;var e=Ye(),t=Kg();Jo=n;var r=e.constant(1);function n(o,s,l,u){return i(o,String(s),l||r,u||function(c){return o.outEdges(c)})}function i(o,s,l,u){var c={},d=new t,f,h,m=function(C){var y=C.v!==f?C.v:C.w,v=c[y],p=l(C),g=h.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+C+" Weight: "+p);g<v.distance&&(v.distance=g,v.predecessor=f,d.decrease(y,g))};for(o.nodes().forEach(function(C){var y=C===s?0:Number.POSITIVE_INFINITY;c[C]={distance:y},d.add(C,y)});d.size()>0&&(f=d.removeMin(),h=c[f],h.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(m);return c}return Jo}var Qo,Bh;function _b(){if(Bh)return Qo;Bh=1;var e=Yg(),t=Ye();Qo=r;function r(n,i,o){return t.transform(n.nodes(),function(s,l){s[l]=e(n,l,i,o)},{})}return Qo}var es,Vh;function Xg(){if(Vh)return es;Vh=1;var e=Ye();es=t;function t(r){var n=0,i=[],o={},s=[];function l(u){var c=o[u]={onStack:!0,lowlink:n,index:n++};if(i.push(u),r.successors(u).forEach(function(h){e.has(o,h)?o[h].onStack&&(c.lowlink=Math.min(c.lowlink,o[h].index)):(l(h),c.lowlink=Math.min(c.lowlink,o[h].lowlink))}),c.lowlink===c.index){var d=[],f;do f=i.pop(),o[f].onStack=!1,d.push(f);while(u!==f);s.push(d)}}return r.nodes().forEach(function(u){e.has(o,u)||l(u)}),s}return es}var ts,xh;function yb(){if(xh)return ts;xh=1;var e=Ye(),t=Xg();ts=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 ts}var rs,Mh;function Eb(){if(Mh)return rs;Mh=1;var e=Ye();rs=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={},u=i.nodes();return u.forEach(function(c){l[c]={},l[c][c]={distance:0},u.forEach(function(d){c!==d&&(l[c][d]={distance:Number.POSITIVE_INFINITY})}),s(c).forEach(function(d){var f=d.v===c?d.w:d.v,h=o(d);l[c][f]={distance:h,predecessor:c}})}),u.forEach(function(c){var d=l[c];u.forEach(function(f){var h=l[f];u.forEach(function(m){var C=h[c],y=d[m],v=h[m],p=C.distance+y.distance;p<v.distance&&(v.distance=p,v.predecessor=y.predecessor)})})}),l}return rs}var ns,qh;function Zg(){if(qh)return ns;qh=1;var e=Ye();ns=t,t.CycleException=r;function t(n){var i={},o={},s=[];function l(u){if(e.has(o,u))throw new r;e.has(i,u)||(o[u]=!0,i[u]=!0,e.each(n.predecessors(u),l),delete o[u],s.push(u))}if(e.each(n.sinks(),l),e.size(i)!==n.nodeCount())throw new r;return s}function r(){}return r.prototype=new Error,ns}var is,$h;function bb(){if($h)return is;$h=1;var e=Zg();is=t;function t(r){try{e(r)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}return is}var as,Fh;function Jg(){if(Fh)return as;Fh=1;var e=Ye();as=t;function t(n,i,o){e.isArray(i)||(i=[i]);var s=(n.isDirected()?n.successors:n.neighbors).bind(n),l=[],u={};return e.each(i,function(c){if(!n.hasNode(c))throw new Error("Graph does not have node: "+c);r(n,c,o==="post",u,s,l)}),l}function r(n,i,o,s,l,u){e.has(s,i)||(s[i]=!0,o||u.push(i),e.each(l(i),function(c){r(n,c,o,s,l,u)}),o&&u.push(i))}return as}var os,Uh;function Cb(){if(Uh)return os;Uh=1;var e=Jg();os=t;function t(r,n){return e(r,n,"post")}return os}var ss,Hh;function kb(){if(Hh)return ss;Hh=1;var e=Jg();ss=t;function t(r,n){return e(r,n,"pre")}return ss}var ls,Gh;function wb(){if(Gh)return ls;Gh=1;var e=Ye(),t=bu(),r=Kg();ls=n;function n(i,o){var s=new t,l={},u=new r,c;function d(h){var m=h.v===c?h.w:h.v,C=u.priority(m);if(C!==void 0){var y=o(h);y<C&&(l[m]=c,u.decrease(m,y))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(h){u.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),u.decrease(i.nodes()[0],0);for(var f=!1;u.size()>0;){if(c=u.removeMin(),e.has(l,c))s.setEdge(c,l[c]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(c).forEach(d)}return s}return ls}var us,jh;function Sb(){return jh||(jh=1,us={components:vb(),dijkstra:Yg(),dijkstraAll:_b(),findCycles:yb(),floydWarshall:Eb(),isAcyclic:bb(),postorder:Cb(),preorder:kb(),prim:wb(),tarjan:Xg(),topsort:Zg()}),us}var cs,zh;function Nb(){if(zh)return cs;zh=1;var e=mb();return cs={Graph:e.Graph,json:gb(),alg:Sb(),version:e.version},cs}var ds,Wh;function Je(){if(Wh)return ds;Wh=1;var e;if(typeof gu=="function")try{e=Nb()}catch{}return e||(e=window.graphlib),ds=e,ds}var fs,Kh;function Tb(){if(Kh)return fs;Kh=1;var e=Dg(),t=1,r=4;function n(i){return e(i,t|r)}return fs=n,fs}var hs,Yh;function en(){if(Yh)return hs;Yh=1;var e=Yt(),t=mt(),r=qr(),n=Ke();function i(o,s,l){if(!n(l))return!1;var u=typeof s;return(u=="number"?t(l)&&r(s,l.length):u=="string"&&s in l)?e(l[s],o):!1}return hs=i,hs}var ps,Xh;function Lb(){if(Xh)return ps;Xh=1;var e=Qr(),t=Yt(),r=en(),n=xt(),i=Object.prototype,o=i.hasOwnProperty,s=e(function(l,u){l=Object(l);var c=-1,d=u.length,f=d>2?u[2]:void 0;for(f&&r(u[0],u[1],f)&&(d=1);++c<d;)for(var h=u[c],m=n(h),C=-1,y=m.length;++C<y;){var v=m[C],p=l[v];(p===void 0||t(p,i[v])&&!o.call(l,v))&&(l[v]=h[v])}return l});return ps=s,ps}var ms,Zh;function Ob(){if(Zh)return ms;Zh=1;var e=gt(),t=mt(),r=wt();function n(i){return function(o,s,l){var u=Object(o);if(!t(o)){var c=e(s,3);o=r(o),s=function(f){return c(u[f],f,u)}}var d=i(o,s,l);return d>-1?u[c?o[d]:d]:void 0}}return ms=n,ms}var gs,Jh;function Ib(){if(Jh)return gs;Jh=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return gs=t,gs}var vs,Qh;function Ab(){if(Qh)return vs;Qh=1;var e=Ib(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return vs=r,vs}var _s,ep;function Rb(){if(ep)return _s;ep=1;var e=Ab(),t=Ke(),r=Zt(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=o.test(c);return f||s.test(c)?l(c.slice(2),f?2:8):i.test(c)?n:+c}return _s=u,_s}var ys,tp;function Qg(){if(tp)return ys;tp=1;var e=Rb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var o=i<0?-1:1;return o*r}return i===i?i:0}return ys=n,ys}var Es,rp;function Db(){if(rp)return Es;rp=1;var e=Qg();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Es=t,Es}var bs,np;function Pb(){if(np)return bs;np=1;var e=jg(),t=gt(),r=Db(),n=Math.max;function i(o,s,l){var u=o==null?0:o.length;if(!u)return-1;var c=l==null?0:r(l);return c<0&&(c=n(u+c,0)),e(o,t(s,3),c)}return bs=i,bs}var Cs,ip;function Bb(){if(ip)return Cs;ip=1;var e=Ob(),t=Pb(),r=e(t);return Cs=r,Cs}var ks,ap;function ev(){if(ap)return ks;ap=1;var e=Eu();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return ks=t,ks}var ws,op;function Vb(){if(op)return ws;op=1;var e=au(),t=Pg(),r=xt();function n(i,o){return i==null?i:e(i,t(o),r)}return ws=n,ws}var Ss,sp;function xb(){if(sp)return Ss;sp=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Ss=e,Ss}var Ns,lp;function Cu(){if(lp)return Ns;lp=1;var e=Zt();function t(r,n,i){for(var o=-1,s=r.length;++o<s;){var l=r[o],u=n(l);if(u!=null&&(c===void 0?u===u&&!e(u):i(u,c)))var c=u,d=l}return d}return Ns=t,Ns}var Ts,up;function Mb(){if(up)return Ts;up=1;function e(t,r){return t>r}return Ts=e,Ts}var Ls,cp;function qb(){if(cp)return Ls;cp=1;var e=Cu(),t=Mb(),r=Vt();function n(i){return i&&i.length?e(i,r,t):void 0}return Ls=n,Ls}var Os,dp;function tv(){if(dp)return Os;dp=1;var e=Mr(),t=Yt();function r(n,i,o){(o!==void 0&&!t(n[i],o)||o===void 0&&!(i in n))&&e(n,i,o)}return Os=r,Os}var Is,fp;function $b(){if(fp)return Is;fp=1;var e=Pt(),t=Zr(),r=lt(),n="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,l=o.hasOwnProperty,u=s.call(Object);function c(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)==u}return Is=c,Is}var As,hp;function rv(){if(hp)return As;hp=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return As=e,As}var Rs,pp;function Fb(){if(pp)return Rs;pp=1;var e=hr(),t=xt();function r(n){return e(n,t(n))}return Rs=r,Rs}var Ds,mp;function Ub(){if(mp)return Ds;mp=1;var e=tv(),t=Tg(),r=Ig(),n=Lg(),i=Rg(),o=cr(),s=Ne(),l=zg(),u=Kt(),c=ur(),d=Ke(),f=$b(),h=dr(),m=rv(),C=Fb();function y(v,p,g,E,_,k,S){var b=m(v,g),L=m(p,g),T=S.get(L);if(T){e(v,g,T);return}var A=k?k(b,L,g+"",v,p,S):void 0,D=A===void 0;if(D){var $=s(L),z=!$&&u(L),Z=!$&&!z&&h(L);A=L,$||z||Z?s(b)?A=b:l(b)?A=n(b):z?(D=!1,A=t(L,!0)):Z?(D=!1,A=r(L,!0)):A=[]:f(L)||o(L)?(A=b,o(b)?A=C(b):(!d(b)||c(b))&&(A=i(L))):D=!1}D&&(S.set(L,A),_(A,L,E,k,S),S.delete(L)),e(v,g,A)}return Ds=y,Ds}var Ps,gp;function Hb(){if(gp)return Ps;gp=1;var e=zr(),t=tv(),r=au(),n=Ub(),i=Ke(),o=xt(),s=rv();function l(u,c,d,f,h){u!==c&&r(c,function(m,C){if(h||(h=new e),i(m))n(u,c,C,d,l,f,h);else{var y=f?f(s(u,C),m,C+"",u,c,h):void 0;y===void 0&&(y=m),t(u,C,y)}},o)}return Ps=l,Ps}var Bs,vp;function Gb(){if(vp)return Bs;vp=1;var e=Qr(),t=en();function r(n){return e(function(i,o){var s=-1,l=o.length,u=l>1?o[l-1]:void 0,c=l>2?o[2]:void 0;for(u=n.length>3&&typeof u=="function"?(l--,u):void 0,c&&t(o[0],o[1],c)&&(u=l<3?void 0:u,l=1),i=Object(i);++s<l;){var d=o[s];d&&n(i,d,s,u)}return i})}return Bs=r,Bs}var Vs,_p;function jb(){if(_p)return Vs;_p=1;var e=Hb(),t=Gb(),r=t(function(n,i,o){e(n,i,o)});return Vs=r,Vs}var xs,yp;function nv(){if(yp)return xs;yp=1;function e(t,r){return t<r}return xs=e,xs}var Ms,Ep;function zb(){if(Ep)return Ms;Ep=1;var e=Cu(),t=nv(),r=Vt();function n(i){return i&&i.length?e(i,r,t):void 0}return Ms=n,Ms}var qs,bp;function Wb(){if(bp)return qs;bp=1;var e=Cu(),t=gt(),r=nv();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return qs=n,qs}var $s,Cp;function Kb(){if(Cp)return $s;Cp=1;var e=et(),t=function(){return e.Date.now()};return $s=t,$s}var Fs,kp;function Yb(){if(kp)return Fs;kp=1;var e=Xr(),t=Kr(),r=qr(),n=Ke(),i=fr();function o(s,l,u,c){if(!n(s))return s;l=t(l,s);for(var d=-1,f=l.length,h=f-1,m=s;m!=null&&++d<f;){var C=i(l[d]),y=u;if(C==="__proto__"||C==="constructor"||C==="prototype")return s;if(d!=h){var v=m[C];y=c?c(v,C,m):void 0,y===void 0&&(y=n(v)?v:r(l[d+1])?[]:{})}e(m,C,y),m=m[C]}return s}return Fs=o,Fs}var Us,wp;function Xb(){if(wp)return Us;wp=1;var e=Yr(),t=Yb(),r=Kr();function n(i,o,s){for(var l=-1,u=o.length,c={};++l<u;){var d=o[l],f=e(i,d);s(f,d)&&t(c,r(d,i),f)}return c}return Us=n,Us}var Hs,Sp;function Zb(){if(Sp)return Hs;Sp=1;var e=Xb(),t=wg();function r(n,i){return e(n,i,function(o,s){return t(n,s)})}return Hs=r,Hs}var Gs,Np;function Jb(){if(Np)return Gs;Np=1;var e=ev(),t=Hg(),r=Gg();function n(i){return r(t(i,void 0,e),i+"")}return Gs=n,Gs}var js,Tp;function Qb(){if(Tp)return js;Tp=1;var e=Zb(),t=Jb(),r=t(function(n,i){return n==null?{}:e(n,i)});return js=r,js}var zs,Lp;function e0(){if(Lp)return zs;Lp=1;var e=Math.ceil,t=Math.max;function r(n,i,o,s){for(var l=-1,u=t(e((i-n)/(o||1)),0),c=Array(u);u--;)c[s?u:++l]=n,n+=o;return c}return zs=r,zs}var Ws,Op;function t0(){if(Op)return Ws;Op=1;var e=e0(),t=en(),r=Qg();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 Ws=n,Ws}var Ks,Ip;function r0(){if(Ip)return Ks;Ip=1;var e=t0(),t=e();return Ks=t,Ks}var Ys,Ap;function n0(){if(Ap)return Ys;Ap=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ys=e,Ys}var Xs,Rp;function i0(){if(Rp)return Xs;Rp=1;var e=Zt();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,s=r===r,l=e(r),u=n!==void 0,c=n===null,d=n===n,f=e(n);if(!c&&!f&&!l&&r>n||l&&u&&d&&!c&&!f||o&&u&&d||!i&&d||!s)return 1;if(!o&&!l&&!f&&r<n||f&&i&&s&&!o&&!l||c&&i&&s||!u&&s||!d)return-1}return 0}return Xs=t,Xs}var Zs,Dp;function a0(){if(Dp)return Zs;Dp=1;var e=i0();function t(r,n,i){for(var o=-1,s=r.criteria,l=n.criteria,u=s.length,c=i.length;++o<u;){var d=e(s[o],l[o]);if(d){if(o>=c)return d;var f=i[o];return d*(f=="desc"?-1:1)}}return r.index-n.index}return Zs=t,Zs}var Js,Pp;function o0(){if(Pp)return Js;Pp=1;var e=Wr(),t=Yr(),r=gt(),n=$g(),i=n0(),o=$r(),s=a0(),l=Vt(),u=Ne();function c(d,f,h){f.length?f=e(f,function(y){return u(y)?function(v){return t(v,y.length===1?y[0]:y)}:y}):f=[l];var m=-1;f=e(f,o(r));var C=n(d,function(y,v,p){var g=e(f,function(E){return E(y)});return{criteria:g,index:++m,value:y}});return i(C,function(y,v){return s(y,v,h)})}return Js=c,Js}var Qs,Bp;function s0(){if(Bp)return Qs;Bp=1;var e=Eu(),t=o0(),r=Qr(),n=en(),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 Qs=i,Qs}var el,Vp;function l0(){if(Vp)return el;Vp=1;var e=Cg(),t=0;function r(n){var i=++t;return e(n)+i}return el=r,el}var tl,xp;function u0(){if(xp)return tl;xp=1;function e(t,r,n){for(var i=-1,o=t.length,s=r.length,l={};++i<o;){var u=i<s?r[i]:void 0;n(l,t[i],u)}return l}return tl=e,tl}var rl,Mp;function c0(){if(Mp)return rl;Mp=1;var e=Xr(),t=u0();function r(n,i){return t(n||[],i||[],e)}return rl=r,rl}var nl,qp;function Ee(){if(qp)return nl;qp=1;var e;if(typeof gu=="function")try{e={cloneDeep:Tb(),constant:yu(),defaults:Lb(),each:Vg(),filter:xg(),find:Bb(),flatten:ev(),forEach:Bg(),forIn:Vb(),has:Mg(),isUndefined:qg(),last:xb(),map:Fg(),mapValues:Ng(),max:qb(),merge:jb(),min:zb(),minBy:Wb(),now:Kb(),pick:Qb(),range:r0(),reduce:Ug(),sortBy:s0(),uniqueId:l0(),values:Wg(),zipObject:c0()}}catch{}return e||(e=window._),nl=e,nl}var il,$p;function d0(){if($p)return il;$p=1,il=e;function e(){var n={};n._next=n._prev=n,this._sentinel=n}e.prototype.dequeue=function(){var n=this._sentinel,i=n._prev;if(i!==n)return t(i),i},e.prototype.enqueue=function(n){var i=this._sentinel;n._prev&&n._next&&t(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i},e.prototype.toString=function(){for(var n=[],i=this._sentinel,o=i._prev;o!==i;)n.push(JSON.stringify(o,r)),o=o._prev;return"["+n.join(", ")+"]"};function t(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function r(n,i){if(n!=="_next"&&n!=="_prev")return i}return il}var al,Fp;function f0(){if(Fp)return al;Fp=1;var e=Ee(),t=Je().Graph,r=d0();al=i;var n=e.constant(1);function i(c,d){if(c.nodeCount()<=1)return[];var f=l(c,d||n),h=o(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(m){return c.outEdges(m.v,m.w)}),!0)}function o(c,d,f){for(var h=[],m=d[d.length-1],C=d[0],y;c.nodeCount();){for(;y=C.dequeue();)s(c,d,f,y);for(;y=m.dequeue();)s(c,d,f,y);if(c.nodeCount()){for(var v=d.length-2;v>0;--v)if(y=d[v].dequeue(),y){h=h.concat(s(c,d,f,y,!0));break}}}return h}function s(c,d,f,h,m){var C=m?[]:void 0;return e.forEach(c.inEdges(h.v),function(y){var v=c.edge(y),p=c.node(y.v);m&&C.push({v:y.v,w:y.w}),p.out-=v,u(d,f,p)}),e.forEach(c.outEdges(h.v),function(y){var v=c.edge(y),p=y.w,g=c.node(p);g.in-=v,u(d,f,g)}),c.removeNode(h.v),C}function l(c,d){var f=new t,h=0,m=0;e.forEach(c.nodes(),function(v){f.setNode(v,{v,in:0,out:0})}),e.forEach(c.edges(),function(v){var p=f.edge(v.v,v.w)||0,g=d(v),E=p+g;f.setEdge(v.v,v.w,E),m=Math.max(m,f.node(v.v).out+=g),h=Math.max(h,f.node(v.w).in+=g)});var C=e.range(m+h+3).map(function(){return new r}),y=h+1;return e.forEach(f.nodes(),function(v){u(C,y,f.node(v))}),{graph:f,buckets:C,zeroIdx:y}}function u(c,d,f){f.out?f.in?c[f.out-f.in+d].enqueue(f):c[c.length-1].enqueue(f):c[0].enqueue(f)}return al}var ol,Up;function h0(){if(Up)return ol;Up=1;var e=Ee(),t=f0();ol={run:r,undo:i};function r(o){var s=o.graph().acyclicer==="greedy"?t(o,l(o)):n(o);e.forEach(s,function(u){var c=o.edge(u);o.removeEdge(u),c.forwardName=u.name,c.reversed=!0,o.setEdge(u.w,u.v,c,e.uniqueId("rev"))});function l(u){return function(c){return u.edge(c).weight}}}function n(o){var s=[],l={},u={};function c(d){e.has(u,d)||(u[d]=!0,l[d]=!0,e.forEach(o.outEdges(d),function(f){e.has(l,f.w)?s.push(f):c(f.w)}),delete l[d])}return e.forEach(o.nodes(),c),s}function i(o){e.forEach(o.edges(),function(s){var l=o.edge(s);if(l.reversed){o.removeEdge(s);var u=l.forwardName;delete l.reversed,delete l.forwardName,o.setEdge(s.w,s.v,l,u)}})}return ol}var sl,Hp;function Me(){if(Hp)return sl;Hp=1;var e=Ee(),t=Je().Graph;sl={addDummyNode:r,simplify:n,asNonCompoundGraph:i,successorWeights:o,predecessorWeights:s,intersectRect:l,buildLayerMatrix:u,normalizeRanks:c,removeEmptyRanks:d,addBorderNode:f,maxRank:h,partition:m,time:C,notime:y};function r(v,p,g,E){var _;do _=e.uniqueId(E);while(v.hasNode(_));return g.dummy=p,v.setNode(_,g),_}function n(v){var p=new t().setGraph(v.graph());return e.forEach(v.nodes(),function(g){p.setNode(g,v.node(g))}),e.forEach(v.edges(),function(g){var E=p.edge(g.v,g.w)||{weight:0,minlen:1},_=v.edge(g);p.setEdge(g.v,g.w,{weight:E.weight+_.weight,minlen:Math.max(E.minlen,_.minlen)})}),p}function i(v){var p=new t({multigraph:v.isMultigraph()}).setGraph(v.graph());return e.forEach(v.nodes(),function(g){v.children(g).length||p.setNode(g,v.node(g))}),e.forEach(v.edges(),function(g){p.setEdge(g,v.edge(g))}),p}function o(v){var p=e.map(v.nodes(),function(g){var E={};return e.forEach(v.outEdges(g),function(_){E[_.w]=(E[_.w]||0)+v.edge(_).weight}),E});return e.zipObject(v.nodes(),p)}function s(v){var p=e.map(v.nodes(),function(g){var E={};return e.forEach(v.inEdges(g),function(_){E[_.v]=(E[_.v]||0)+v.edge(_).weight}),E});return e.zipObject(v.nodes(),p)}function l(v,p){var g=v.x,E=v.y,_=p.x-g,k=p.y-E,S=v.width/2,b=v.height/2;if(!_&&!k)throw new Error("Not possible to find intersection inside of the rectangle");var L,T;return Math.abs(k)*S>Math.abs(_)*b?(k<0&&(b=-b),L=b*_/k,T=b):(_<0&&(S=-S),L=S,T=S*k/_),{x:g+L,y:E+T}}function u(v){var p=e.map(e.range(h(v)+1),function(){return[]});return e.forEach(v.nodes(),function(g){var E=v.node(g),_=E.rank;e.isUndefined(_)||(p[_][E.order]=g)}),p}function c(v){var p=e.min(e.map(v.nodes(),function(g){return v.node(g).rank}));e.forEach(v.nodes(),function(g){var E=v.node(g);e.has(E,"rank")&&(E.rank-=p)})}function d(v){var p=e.min(e.map(v.nodes(),function(k){return v.node(k).rank})),g=[];e.forEach(v.nodes(),function(k){var S=v.node(k).rank-p;g[S]||(g[S]=[]),g[S].push(k)});var E=0,_=v.graph().nodeRankFactor;e.forEach(g,function(k,S){e.isUndefined(k)&&S%_!==0?--E:E&&e.forEach(k,function(b){v.node(b).rank+=E})})}function f(v,p,g,E){var _={width:0,height:0};return arguments.length>=4&&(_.rank=g,_.order=E),r(v,"border",_,p)}function h(v){return e.max(e.map(v.nodes(),function(p){var g=v.node(p).rank;if(!e.isUndefined(g))return g}))}function m(v,p){var g={lhs:[],rhs:[]};return e.forEach(v,function(E){p(E)?g.lhs.push(E):g.rhs.push(E)}),g}function C(v,p){var g=e.now();try{return p()}finally{console.log(v+" time: "+(e.now()-g)+"ms")}}function y(v,p){return p()}return sl}var ll,Gp;function p0(){if(Gp)return ll;Gp=1;var e=Ee(),t=Me();ll={run:r,undo:i};function r(o){o.graph().dummyChains=[],e.forEach(o.edges(),function(s){n(o,s)})}function n(o,s){var l=s.v,u=o.node(l).rank,c=s.w,d=o.node(c).rank,f=s.name,h=o.edge(s),m=h.labelRank;if(d!==u+1){o.removeEdge(s);var C,y,v;for(v=0,++u;u<d;++v,++u)h.points=[],y={width:0,height:0,edgeLabel:h,edgeObj:s,rank:u},C=t.addDummyNode(o,"edge",y,"_d"),u===m&&(y.width=h.width,y.height=h.height,y.dummy="edge-label",y.labelpos=h.labelpos),o.setEdge(l,C,{weight:h.weight},f),v===0&&o.graph().dummyChains.push(C),l=C;o.setEdge(l,c,{weight:h.weight},f)}}function i(o){e.forEach(o.graph().dummyChains,function(s){var l=o.node(s),u=l.edgeLabel,c;for(o.setEdge(l.edgeObj,u);l.dummy;)c=o.successors(s)[0],o.removeNode(s),u.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(u.x=l.x,u.y=l.y,u.width=l.width,u.height=l.height),s=c,l=o.node(s)})}return ll}var ul,jp;function Lr(){if(jp)return ul;jp=1;var e=Ee();ul={longestPath:t,slack:r};function t(n){var i={};function o(s){var l=n.node(s);if(e.has(i,s))return l.rank;i[s]=!0;var u=e.min(e.map(n.outEdges(s),function(c){return o(c.w)-n.edge(c).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),l.rank=u}e.forEach(n.sources(),o)}function r(n,i){return n.node(i.w).rank-n.node(i.v).rank-n.edge(i).minlen}return ul}var cl,zp;function iv(){if(zp)return cl;zp=1;var e=Ee(),t=Je().Graph,r=Lr().slack;cl=n;function n(l){var u=new t({directed:!1}),c=l.nodes()[0],d=l.nodeCount();u.setNode(c,{});for(var f,h;i(u,l)<d;)f=o(u,l),h=u.hasNode(f.v)?r(l,f):-r(l,f),s(u,l,h);return u}function i(l,u){function c(d){e.forEach(u.nodeEdges(d),function(f){var h=f.v,m=d===h?f.w:h;!l.hasNode(m)&&!r(u,f)&&(l.setNode(m,{}),l.setEdge(d,m,{}),c(m))})}return e.forEach(l.nodes(),c),l.nodeCount()}function o(l,u){return e.minBy(u.edges(),function(c){if(l.hasNode(c.v)!==l.hasNode(c.w))return r(u,c)})}function s(l,u,c){e.forEach(l.nodes(),function(d){u.node(d).rank+=c})}return cl}var dl,Wp;function m0(){if(Wp)return dl;Wp=1;var e=Ee(),t=iv(),r=Lr().slack,n=Lr().longestPath,i=Je().alg.preorder,o=Je().alg.postorder,s=Me().simplify;dl=l,l.initLowLimValues=f,l.initCutValues=u,l.calcCutValue=d,l.leaveEdge=m,l.enterEdge=C,l.exchangeEdges=y;function l(E){E=s(E),n(E);var _=t(E);f(_),u(_,E);for(var k,S;k=m(_);)S=C(_,E,k),y(_,E,k,S)}function u(E,_){var k=o(E,E.nodes());k=k.slice(0,k.length-1),e.forEach(k,function(S){c(E,_,S)})}function c(E,_,k){var S=E.node(k),b=S.parent;E.edge(k,b).cutvalue=d(E,_,k)}function d(E,_,k){var S=E.node(k),b=S.parent,L=!0,T=_.edge(k,b),A=0;return T||(L=!1,T=_.edge(b,k)),A=T.weight,e.forEach(_.nodeEdges(k),function(D){var $=D.v===k,z=$?D.w:D.v;if(z!==b){var Z=$===L,V=_.edge(D).weight;if(A+=Z?V:-V,p(E,k,z)){var R=E.edge(k,z).cutvalue;A+=Z?-R:R}}}),A}function f(E,_){arguments.length<2&&(_=E.nodes()[0]),h(E,{},1,_)}function h(E,_,k,S,b){var L=k,T=E.node(S);return _[S]=!0,e.forEach(E.neighbors(S),function(A){e.has(_,A)||(k=h(E,_,k,A,S))}),T.low=L,T.lim=k++,b?T.parent=b:delete T.parent,k}function m(E){return e.find(E.edges(),function(_){return E.edge(_).cutvalue<0})}function C(E,_,k){var S=k.v,b=k.w;_.hasEdge(S,b)||(S=k.w,b=k.v);var L=E.node(S),T=E.node(b),A=L,D=!1;L.lim>T.lim&&(A=T,D=!0);var $=e.filter(_.edges(),function(z){return D===g(E,E.node(z.v),A)&&D!==g(E,E.node(z.w),A)});return e.minBy($,function(z){return r(_,z)})}function y(E,_,k,S){var b=k.v,L=k.w;E.removeEdge(b,L),E.setEdge(S.v,S.w,{}),f(E),u(E,_),v(E,_)}function v(E,_){var k=e.find(E.nodes(),function(b){return!_.node(b).parent}),S=i(E,k);S=S.slice(1),e.forEach(S,function(b){var L=E.node(b).parent,T=_.edge(b,L),A=!1;T||(T=_.edge(L,b),A=!0),_.node(b).rank=_.node(L).rank+(A?T.minlen:-T.minlen)})}function p(E,_,k){return E.hasEdge(_,k)}function g(E,_,k){return k.low<=_.lim&&_.lim<=k.lim}return dl}var fl,Kp;function g0(){if(Kp)return fl;Kp=1;var e=Lr(),t=e.longestPath,r=iv(),n=m0();fl=i;function i(u){switch(u.graph().ranker){case"network-simplex":l(u);break;case"tight-tree":s(u);break;case"longest-path":o(u);break;default:l(u)}}var o=t;function s(u){t(u),r(u)}function l(u){n(u)}return fl}var hl,Yp;function v0(){if(Yp)return hl;Yp=1;var e=Ee();hl=t;function t(i){var o=n(i);e.forEach(i.graph().dummyChains,function(s){for(var l=i.node(s),u=l.edgeObj,c=r(i,o,u.v,u.w),d=c.path,f=c.lca,h=0,m=d[h],C=!0;s!==u.w;){if(l=i.node(s),C){for(;(m=d[h])!==f&&i.node(m).maxRank<l.rank;)h++;m===f&&(C=!1)}if(!C){for(;h<d.length-1&&i.node(m=d[h+1]).minRank<=l.rank;)h++;m=d[h]}i.setParent(s,m),s=i.successors(s)[0]}})}function r(i,o,s,l){var u=[],c=[],d=Math.min(o[s].low,o[l].low),f=Math.max(o[s].lim,o[l].lim),h,m;h=s;do h=i.parent(h),u.push(h);while(h&&(o[h].low>d||f>o[h].lim));for(m=h,h=l;(h=i.parent(h))!==m;)c.push(h);return{path:u.concat(c.reverse()),lca:m}}function n(i){var o={},s=0;function l(u){var c=s;e.forEach(i.children(u),l),o[u]={low:c,lim:s++}}return e.forEach(i.children(),l),o}return hl}var pl,Xp;function _0(){if(Xp)return pl;Xp=1;var e=Ee(),t=Me();pl={run:r,cleanup:s};function r(l){var u=t.addDummyNode(l,"root",{},"_root"),c=i(l),d=e.max(e.values(c))-1,f=2*d+1;l.graph().nestingRoot=u,e.forEach(l.edges(),function(m){l.edge(m).minlen*=f});var h=o(l)+1;e.forEach(l.children(),function(m){n(l,u,f,h,d,c,m)}),l.graph().nodeRankFactor=f}function n(l,u,c,d,f,h,m){var C=l.children(m);if(!C.length){m!==u&&l.setEdge(u,m,{weight:0,minlen:c});return}var y=t.addBorderNode(l,"_bt"),v=t.addBorderNode(l,"_bb"),p=l.node(m);l.setParent(y,m),p.borderTop=y,l.setParent(v,m),p.borderBottom=v,e.forEach(C,function(g){n(l,u,c,d,f,h,g);var E=l.node(g),_=E.borderTop?E.borderTop:g,k=E.borderBottom?E.borderBottom:g,S=E.borderTop?d:2*d,b=_!==k?1:f-h[m]+1;l.setEdge(y,_,{weight:S,minlen:b,nestingEdge:!0}),l.setEdge(k,v,{weight:S,minlen:b,nestingEdge:!0})}),l.parent(m)||l.setEdge(u,y,{weight:0,minlen:f+h[m]})}function i(l){var u={};function c(d,f){var h=l.children(d);h&&h.length&&e.forEach(h,function(m){c(m,f+1)}),u[d]=f}return e.forEach(l.children(),function(d){c(d,1)}),u}function o(l){return e.reduce(l.edges(),function(u,c){return u+l.edge(c).weight},0)}function s(l){var u=l.graph();l.removeNode(u.nestingRoot),delete u.nestingRoot,e.forEach(l.edges(),function(c){var d=l.edge(c);d.nestingEdge&&l.removeEdge(c)})}return pl}var ml,Zp;function y0(){if(Zp)return ml;Zp=1;var e=Ee(),t=Me();ml=r;function r(i){function o(s){var l=i.children(s),u=i.node(s);if(l.length&&e.forEach(l,o),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var c=u.minRank,d=u.maxRank+1;c<d;++c)n(i,"borderLeft","_bl",s,u,c),n(i,"borderRight","_br",s,u,c)}}e.forEach(i.children(),o)}function n(i,o,s,l,u,c){var d={width:0,height:0,rank:c,borderType:o},f=u[o][c-1],h=t.addDummyNode(i,"border",d,s);u[o][c]=h,i.setParent(h,l),f&&i.setEdge(f,h,{weight:1})}return ml}var gl,Jp;function E0(){if(Jp)return gl;Jp=1;var e=Ee();gl={adjust:t,undo:r};function t(c){var d=c.graph().rankdir.toLowerCase();(d==="lr"||d==="rl")&&n(c)}function r(c){var d=c.graph().rankdir.toLowerCase();(d==="bt"||d==="rl")&&o(c),(d==="lr"||d==="rl")&&(l(c),n(c))}function n(c){e.forEach(c.nodes(),function(d){i(c.node(d))}),e.forEach(c.edges(),function(d){i(c.edge(d))})}function i(c){var d=c.width;c.width=c.height,c.height=d}function o(c){e.forEach(c.nodes(),function(d){s(c.node(d))}),e.forEach(c.edges(),function(d){var f=c.edge(d);e.forEach(f.points,s),e.has(f,"y")&&s(f)})}function s(c){c.y=-c.y}function l(c){e.forEach(c.nodes(),function(d){u(c.node(d))}),e.forEach(c.edges(),function(d){var f=c.edge(d);e.forEach(f.points,u),e.has(f,"x")&&u(f)})}function u(c){var d=c.x;c.x=c.y,c.y=d}return gl}var vl,Qp;function b0(){if(Qp)return vl;Qp=1;var e=Ee();vl=t;function t(r){var n={},i=e.filter(r.nodes(),function(c){return!r.children(c).length}),o=e.max(e.map(i,function(c){return r.node(c).rank})),s=e.map(e.range(o+1),function(){return[]});function l(c){if(!e.has(n,c)){n[c]=!0;var d=r.node(c);s[d.rank].push(c),e.forEach(r.successors(c),l)}}var u=e.sortBy(i,function(c){return r.node(c).rank});return e.forEach(u,l),s}return vl}var _l,em;function C0(){if(em)return _l;em=1;var e=Ee();_l=t;function t(n,i){for(var o=0,s=1;s<i.length;++s)o+=r(n,i[s-1],i[s]);return o}function r(n,i,o){for(var s=e.zipObject(o,e.map(o,function(h,m){return m})),l=e.flatten(e.map(i,function(h){return e.sortBy(e.map(n.outEdges(h),function(m){return{pos:s[m.w],weight:n.edge(m).weight}}),"pos")}),!0),u=1;u<o.length;)u<<=1;var c=2*u-1;u-=1;var d=e.map(new Array(c),function(){return 0}),f=0;return e.forEach(l.forEach(function(h){var m=h.pos+u;d[m]+=h.weight;for(var C=0;m>0;)m%2&&(C+=d[m+1]),m=m-1>>1,d[m]+=h.weight;f+=h.weight*C})),f}return _l}var yl,tm;function k0(){if(tm)return yl;tm=1;var e=Ee();yl=t;function t(r,n){return e.map(n,function(i){var o=r.inEdges(i);if(o.length){var s=e.reduce(o,function(l,u){var c=r.edge(u),d=r.node(u.v);return{sum:l.sum+c.weight*d.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:i,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:i}})}return yl}var El,rm;function w0(){if(rm)return El;rm=1;var e=Ee();El=t;function t(i,o){var s={};e.forEach(i,function(u,c){var d=s[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:c};e.isUndefined(u.barycenter)||(d.barycenter=u.barycenter,d.weight=u.weight)}),e.forEach(o.edges(),function(u){var c=s[u.v],d=s[u.w];!e.isUndefined(c)&&!e.isUndefined(d)&&(d.indegree++,c.out.push(s[u.w]))});var l=e.filter(s,function(u){return!u.indegree});return r(l)}function r(i){var o=[];function s(c){return function(d){d.merged||(e.isUndefined(d.barycenter)||e.isUndefined(c.barycenter)||d.barycenter>=c.barycenter)&&n(c,d)}}function l(c){return function(d){d.in.push(c),--d.indegree===0&&i.push(d)}}for(;i.length;){var u=i.pop();o.push(u),e.forEach(u.in.reverse(),s(u)),e.forEach(u.out,l(u))}return e.map(e.filter(o,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function n(i,o){var s=0,l=0;i.weight&&(s+=i.barycenter*i.weight,l+=i.weight),o.weight&&(s+=o.barycenter*o.weight,l+=o.weight),i.vs=o.vs.concat(i.vs),i.barycenter=s/l,i.weight=l,i.i=Math.min(o.i,i.i),o.merged=!0}return El}var bl,nm;function S0(){if(nm)return bl;nm=1;var e=Ee(),t=Me();bl=r;function r(o,s){var l=t.partition(o,function(y){return e.has(y,"barycenter")}),u=l.lhs,c=e.sortBy(l.rhs,function(y){return-y.i}),d=[],f=0,h=0,m=0;u.sort(i(!!s)),m=n(d,c,m),e.forEach(u,function(y){m+=y.vs.length,d.push(y.vs),f+=y.barycenter*y.weight,h+=y.weight,m=n(d,c,m)});var C={vs:e.flatten(d,!0)};return h&&(C.barycenter=f/h,C.weight=h),C}function n(o,s,l){for(var u;s.length&&(u=e.last(s)).i<=l;)s.pop(),o.push(u.vs),l++;return l}function i(o){return function(s,l){return s.barycenter<l.barycenter?-1:s.barycenter>l.barycenter?1:o?l.i-s.i:s.i-l.i}}return bl}var Cl,im;function N0(){if(im)return Cl;im=1;var e=Ee(),t=k0(),r=w0(),n=S0();Cl=i;function i(l,u,c,d){var f=l.children(u),h=l.node(u),m=h?h.borderLeft:void 0,C=h?h.borderRight:void 0,y={};m&&(f=e.filter(f,function(k){return k!==m&&k!==C}));var v=t(l,f);e.forEach(v,function(k){if(l.children(k.v).length){var S=i(l,k.v,c,d);y[k.v]=S,e.has(S,"barycenter")&&s(k,S)}});var p=r(v,c);o(p,y);var g=n(p,d);if(m&&(g.vs=e.flatten([m,g.vs,C],!0),l.predecessors(m).length)){var E=l.node(l.predecessors(m)[0]),_=l.node(l.predecessors(C)[0]);e.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+E.order+_.order)/(g.weight+2),g.weight+=2}return g}function o(l,u){e.forEach(l,function(c){c.vs=e.flatten(c.vs.map(function(d){return u[d]?u[d].vs:d}),!0)})}function s(l,u){e.isUndefined(l.barycenter)?(l.barycenter=u.barycenter,l.weight=u.weight):(l.barycenter=(l.barycenter*l.weight+u.barycenter*u.weight)/(l.weight+u.weight),l.weight+=u.weight)}return Cl}var kl,am;function T0(){if(am)return kl;am=1;var e=Ee(),t=Je().Graph;kl=r;function r(i,o,s){var l=n(i),u=new t({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(c){return i.node(c)});return e.forEach(i.nodes(),function(c){var d=i.node(c),f=i.parent(c);(d.rank===o||d.minRank<=o&&o<=d.maxRank)&&(u.setNode(c),u.setParent(c,f||l),e.forEach(i[s](c),function(h){var m=h.v===c?h.w:h.v,C=u.edge(m,c),y=e.isUndefined(C)?0:C.weight;u.setEdge(m,c,{weight:i.edge(h).weight+y})}),e.has(d,"minRank")&&u.setNode(c,{borderLeft:d.borderLeft[o],borderRight:d.borderRight[o]}))}),u}function n(i){for(var o;i.hasNode(o=e.uniqueId("_root")););return o}return kl}var wl,om;function L0(){if(om)return wl;om=1;var e=Ee();wl=t;function t(r,n,i){var o={},s;e.forEach(i,function(l){for(var u=r.parent(l),c,d;u;){if(c=r.parent(u),c?(d=o[c],o[c]=u):(d=s,s=u),d&&d!==u){n.setEdge(d,u);return}u=c}})}return wl}var Sl,sm;function O0(){if(sm)return Sl;sm=1;var e=Ee(),t=b0(),r=C0(),n=N0(),i=T0(),o=L0(),s=Je().Graph,l=Me();Sl=u;function u(h){var m=l.maxRank(h),C=c(h,e.range(1,m+1),"inEdges"),y=c(h,e.range(m-1,-1,-1),"outEdges"),v=t(h);f(h,v);for(var p=Number.POSITIVE_INFINITY,g,E=0,_=0;_<4;++E,++_){d(E%2?C:y,E%4>=2),v=l.buildLayerMatrix(h);var k=r(h,v);k<p&&(_=0,g=e.cloneDeep(v),p=k)}f(h,g)}function c(h,m,C){return e.map(m,function(y){return i(h,y,C)})}function d(h,m){var C=new s;e.forEach(h,function(y){var v=y.graph().root,p=n(y,v,C,m);e.forEach(p.vs,function(g,E){y.node(g).order=E}),o(y,C,p.vs)})}function f(h,m){e.forEach(m,function(C){e.forEach(C,function(y,v){h.node(y).order=v})})}return Sl}var Nl,lm;function I0(){if(lm)return Nl;lm=1;var e=Ee(),t=Je().Graph,r=Me();Nl={positionX:C,findType1Conflicts:n,findType2Conflicts:i,addConflict:s,hasConflict:l,verticalAlignment:u,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:f,balance:m};function n(p,g){var E={};function _(k,S){var b=0,L=0,T=k.length,A=e.last(S);return e.forEach(S,function(D,$){var z=o(p,D),Z=z?p.node(z).order:T;(z||D===A)&&(e.forEach(S.slice(L,$+1),function(V){e.forEach(p.predecessors(V),function(R){var X=p.node(R),G=X.order;(G<b||Z<G)&&!(X.dummy&&p.node(V).dummy)&&s(E,R,V)})}),L=$+1,b=Z)}),S}return e.reduce(g,_),E}function i(p,g){var E={};function _(S,b,L,T,A){var D;e.forEach(e.range(b,L),function($){D=S[$],p.node(D).dummy&&e.forEach(p.predecessors(D),function(z){var Z=p.node(z);Z.dummy&&(Z.order<T||Z.order>A)&&s(E,z,D)})})}function k(S,b){var L=-1,T,A=0;return e.forEach(b,function(D,$){if(p.node(D).dummy==="border"){var z=p.predecessors(D);z.length&&(T=p.node(z[0]).order,_(b,A,$,L,T),A=$,L=T)}_(b,A,b.length,T,S.length)}),b}return e.reduce(g,k),E}function o(p,g){if(p.node(g).dummy)return e.find(p.predecessors(g),function(E){return p.node(E).dummy})}function s(p,g,E){if(g>E){var _=g;g=E,E=_}var k=p[g];k||(p[g]=k={}),k[E]=!0}function l(p,g,E){if(g>E){var _=g;g=E,E=_}return e.has(p[g],E)}function u(p,g,E,_){var k={},S={},b={};return e.forEach(g,function(L){e.forEach(L,function(T,A){k[T]=T,S[T]=T,b[T]=A})}),e.forEach(g,function(L){var T=-1;e.forEach(L,function(A){var D=_(A);if(D.length){D=e.sortBy(D,function(R){return b[R]});for(var $=(D.length-1)/2,z=Math.floor($),Z=Math.ceil($);z<=Z;++z){var V=D[z];S[A]===A&&T<b[V]&&!l(E,A,V)&&(S[V]=A,S[A]=k[A]=k[V],T=b[V])}}})}),{root:k,align:S}}function c(p,g,E,_,k){var S={},b=d(p,g,E,k),L=k?"borderLeft":"borderRight";function T($,z){for(var Z=b.nodes(),V=Z.pop(),R={};V;)R[V]?$(V):(R[V]=!0,Z.push(V),Z=Z.concat(z(V))),V=Z.pop()}function A($){S[$]=b.inEdges($).reduce(function(z,Z){return Math.max(z,S[Z.v]+b.edge(Z))},0)}function D($){var z=b.outEdges($).reduce(function(V,R){return Math.min(V,S[R.w]-b.edge(R))},Number.POSITIVE_INFINITY),Z=p.node($);z!==Number.POSITIVE_INFINITY&&Z.borderType!==L&&(S[$]=Math.max(S[$],z))}return T(A,b.predecessors.bind(b)),T(D,b.successors.bind(b)),e.forEach(_,function($){S[$]=S[E[$]]}),S}function d(p,g,E,_){var k=new t,S=p.graph(),b=y(S.nodesep,S.edgesep,_);return e.forEach(g,function(L){var T;e.forEach(L,function(A){var D=E[A];if(k.setNode(D),T){var $=E[T],z=k.edge($,D);k.setEdge($,D,Math.max(b(p,A,T),z||0))}T=A})}),k}function f(p,g){return e.minBy(e.values(g),function(E){var _=Number.NEGATIVE_INFINITY,k=Number.POSITIVE_INFINITY;return e.forIn(E,function(S,b){var L=v(p,b)/2;_=Math.max(S+L,_),k=Math.min(S-L,k)}),_-k})}function h(p,g){var E=e.values(g),_=e.min(E),k=e.max(E);e.forEach(["u","d"],function(S){e.forEach(["l","r"],function(b){var L=S+b,T=p[L],A;if(T!==g){var D=e.values(T);A=b==="l"?_-e.min(D):k-e.max(D),A&&(p[L]=e.mapValues(T,function($){return $+A}))}})})}function m(p,g){return e.mapValues(p.ul,function(E,_){if(g)return p[g.toLowerCase()][_];var k=e.sortBy(e.map(p,_));return(k[1]+k[2])/2})}function C(p){var g=r.buildLayerMatrix(p),E=e.merge(n(p,g),i(p,g)),_={},k;e.forEach(["u","d"],function(b){k=b==="u"?g:e.values(g).reverse(),e.forEach(["l","r"],function(L){L==="r"&&(k=e.map(k,function($){return e.values($).reverse()}));var T=(b==="u"?p.predecessors:p.successors).bind(p),A=u(p,k,E,T),D=c(p,k,A.root,A.align,L==="r");L==="r"&&(D=e.mapValues(D,function($){return-$})),_[b+L]=D})});var S=f(p,_);return h(_,S),m(_,p.graph().align)}function y(p,g,E){return function(_,k,S){var b=_.node(k),L=_.node(S),T=0,A;if(T+=b.width/2,e.has(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":A=-b.width/2;break;case"r":A=b.width/2;break}if(A&&(T+=E?A:-A),A=0,T+=(b.dummy?g:p)/2,T+=(L.dummy?g:p)/2,T+=L.width/2,e.has(L,"labelpos"))switch(L.labelpos.toLowerCase()){case"l":A=L.width/2;break;case"r":A=-L.width/2;break}return A&&(T+=E?A:-A),A=0,T}}function v(p,g){return p.node(g).width}return Nl}var Tl,um;function A0(){if(um)return Tl;um=1;var e=Ee(),t=Me(),r=I0().positionX;Tl=n;function n(o){o=t.asNonCompoundGraph(o),i(o),e.forEach(r(o),function(s,l){o.node(l).x=s})}function i(o){var s=t.buildLayerMatrix(o),l=o.graph().ranksep,u=0;e.forEach(s,function(c){var d=e.max(e.map(c,function(f){return o.node(f).height}));e.forEach(c,function(f){o.node(f).y=u+d/2}),u+=d+l})}return Tl}var Ll,cm;function R0(){if(cm)return Ll;cm=1;var e=Ee(),t=h0(),r=p0(),n=g0(),i=Me().normalizeRanks,o=v0(),s=Me().removeEmptyRanks,l=_0(),u=y0(),c=E0(),d=O0(),f=A0(),h=Me(),m=Je().Graph;Ll=C;function C(O,P){var q=P&&P.debugTiming?h.time:h.notime;q("layout",function(){var H=q(" buildLayoutGraph",function(){return T(O)});q(" runLayout",function(){y(H,q)}),q(" updateInputGraph",function(){v(O,H)})})}function y(O,P){P(" makeSpaceForEdgeLabels",function(){A(O)}),P(" removeSelfEdges",function(){F(O)}),P(" acyclic",function(){t.run(O)}),P(" nestingGraph.run",function(){l.run(O)}),P(" rank",function(){n(h.asNonCompoundGraph(O))}),P(" injectEdgeLabelProxies",function(){D(O)}),P(" removeEmptyRanks",function(){s(O)}),P(" nestingGraph.cleanup",function(){l.cleanup(O)}),P(" normalizeRanks",function(){i(O)}),P(" assignRankMinMax",function(){$(O)}),P(" removeEdgeLabelProxies",function(){z(O)}),P(" normalize.run",function(){r.run(O)}),P(" parentDummyChains",function(){o(O)}),P(" addBorderSegments",function(){u(O)}),P(" order",function(){d(O)}),P(" insertSelfEdges",function(){ne(O)}),P(" adjustCoordinateSystem",function(){c.adjust(O)}),P(" position",function(){f(O)}),P(" positionSelfEdges",function(){ve(O)}),P(" removeBorderNodes",function(){G(O)}),P(" normalize.undo",function(){r.undo(O)}),P(" fixupEdgeLabelCoords",function(){R(O)}),P(" undoCoordinateSystem",function(){c.undo(O)}),P(" translateGraph",function(){Z(O)}),P(" assignNodeIntersects",function(){V(O)}),P(" reversePoints",function(){X(O)}),P(" acyclic.undo",function(){t.undo(O)})}function v(O,P){e.forEach(O.nodes(),function(q){var H=O.node(q),Q=P.node(q);H&&(H.x=Q.x,H.y=Q.y,P.children(q).length&&(H.width=Q.width,H.height=Q.height))}),e.forEach(O.edges(),function(q){var H=O.edge(q),Q=P.edge(q);H.points=Q.points,e.has(Q,"x")&&(H.x=Q.x,H.y=Q.y)}),O.graph().width=P.graph().width,O.graph().height=P.graph().height}var p=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},E=["acyclicer","ranker","rankdir","align"],_=["width","height"],k={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},L=["labelpos"];function T(O){var P=new m({multigraph:!0,compound:!0}),q=Be(O.graph());return P.setGraph(e.merge({},g,De(q,p),e.pick(q,E))),e.forEach(O.nodes(),function(H){var Q=Be(O.node(H));P.setNode(H,e.defaults(De(Q,_),k)),P.setParent(H,O.parent(H))}),e.forEach(O.edges(),function(H){var Q=Be(O.edge(H));P.setEdge(H,e.merge({},b,De(Q,S),e.pick(Q,L)))}),P}function A(O){var P=O.graph();P.ranksep/=2,e.forEach(O.edges(),function(q){var H=O.edge(q);H.minlen*=2,H.labelpos.toLowerCase()!=="c"&&(P.rankdir==="TB"||P.rankdir==="BT"?H.width+=H.labeloffset:H.height+=H.labeloffset)})}function D(O){e.forEach(O.edges(),function(P){var q=O.edge(P);if(q.width&&q.height){var H=O.node(P.v),Q=O.node(P.w),he={rank:(Q.rank-H.rank)/2+H.rank,e:P};h.addDummyNode(O,"edge-proxy",he,"_ep")}})}function $(O){var P=0;e.forEach(O.nodes(),function(q){var H=O.node(q);H.borderTop&&(H.minRank=O.node(H.borderTop).rank,H.maxRank=O.node(H.borderBottom).rank,P=e.max(P,H.maxRank))}),O.graph().maxRank=P}function z(O){e.forEach(O.nodes(),function(P){var q=O.node(P);q.dummy==="edge-proxy"&&(O.edge(q.e).labelRank=q.rank,O.removeNode(P))})}function Z(O){var P=Number.POSITIVE_INFINITY,q=0,H=Number.POSITIVE_INFINITY,Q=0,he=O.graph(),_e=he.marginx||0,Oe=he.marginy||0;function _t(we){var be=we.x,ee=we.y,Fe=we.width,ie=we.height;P=Math.min(P,be-Fe/2),q=Math.max(q,be+Fe/2),H=Math.min(H,ee-ie/2),Q=Math.max(Q,ee+ie/2)}e.forEach(O.nodes(),function(we){_t(O.node(we))}),e.forEach(O.edges(),function(we){var be=O.edge(we);e.has(be,"x")&&_t(be)}),P-=_e,H-=Oe,e.forEach(O.nodes(),function(we){var be=O.node(we);be.x-=P,be.y-=H}),e.forEach(O.edges(),function(we){var be=O.edge(we);e.forEach(be.points,function(ee){ee.x-=P,ee.y-=H}),e.has(be,"x")&&(be.x-=P),e.has(be,"y")&&(be.y-=H)}),he.width=q-P+_e,he.height=Q-H+Oe}function V(O){e.forEach(O.edges(),function(P){var q=O.edge(P),H=O.node(P.v),Q=O.node(P.w),he,_e;q.points?(he=q.points[0],_e=q.points[q.points.length-1]):(q.points=[],he=Q,_e=H),q.points.unshift(h.intersectRect(H,he)),q.points.push(h.intersectRect(Q,_e))})}function R(O){e.forEach(O.edges(),function(P){var q=O.edge(P);if(e.has(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function X(O){e.forEach(O.edges(),function(P){var q=O.edge(P);q.reversed&&q.points.reverse()})}function G(O){e.forEach(O.nodes(),function(P){if(O.children(P).length){var q=O.node(P),H=O.node(q.borderTop),Q=O.node(q.borderBottom),he=O.node(e.last(q.borderLeft)),_e=O.node(e.last(q.borderRight));q.width=Math.abs(_e.x-he.x),q.height=Math.abs(Q.y-H.y),q.x=he.x+q.width/2,q.y=H.y+q.height/2}}),e.forEach(O.nodes(),function(P){O.node(P).dummy==="border"&&O.removeNode(P)})}function F(O){e.forEach(O.edges(),function(P){if(P.v===P.w){var q=O.node(P.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:P,label:O.edge(P)}),O.removeEdge(P)}})}function ne(O){var P=h.buildLayerMatrix(O);e.forEach(P,function(q){var H=0;e.forEach(q,function(Q,he){var _e=O.node(Q);_e.order=he+H,e.forEach(_e.selfEdges,function(Oe){h.addDummyNode(O,"selfedge",{width:Oe.label.width,height:Oe.label.height,rank:_e.rank,order:he+ ++H,e:Oe.e,label:Oe.label},"_se")}),delete _e.selfEdges})})}function ve(O){e.forEach(O.nodes(),function(P){var q=O.node(P);if(q.dummy==="selfedge"){var H=O.node(q.e.v),Q=H.x+H.width/2,he=H.y,_e=q.x-Q,Oe=H.height/2;O.setEdge(q.e,q.label),O.removeNode(P),q.label.points=[{x:Q+2*_e/3,y:he-Oe},{x:Q+5*_e/6,y:he-Oe},{x:Q+_e,y:he},{x:Q+5*_e/6,y:he+Oe},{x:Q+2*_e/3,y:he+Oe}],q.label.x=q.x,q.label.y=q.y}})}function De(O,P){return e.mapValues(e.pick(O,P),Number)}function Be(O){var P={};return e.forEach(O,function(q,H){P[H.toLowerCase()]=q}),P}return Ll}var Ol,dm;function D0(){if(dm)return Ol;dm=1;var e=Ee(),t=Me(),r=Je().Graph;Ol={debugOrdering:n};function n(i){var o=t.buildLayerMatrix(i),s=new r({compound:!0,multigraph:!0}).setGraph({});return e.forEach(i.nodes(),function(l){s.setNode(l,{label:l}),s.setParent(l,"layer"+i.node(l).rank)}),e.forEach(i.edges(),function(l){s.setEdge(l.v,l.w,{},l.name)}),e.forEach(o,function(l,u){var c="layer"+u;s.setNode(c,{rank:"same"}),e.reduce(l,function(d,f){return s.setEdge(d,f,{style:"invis"}),f})}),s}return Ol}var Il,fm;function P0(){return fm||(fm=1,Il="0.8.5"),Il}var Al,hm;function B0(){return hm||(hm=1,Al={graphlib:Je(),layout:R0(),debug:D0(),util:{time:Me().time,notime:Me().notime},version:P0()}),Al}var V0=B0();const pm=iu(V0),Et="root.Triggers",wr={predecessorsEdge(e,t){const{getEdges:r}=te.useVueFlow(e),n=[];for(const i of r.value)if(i.target===t){n.push(i);const o=this.predecessorsEdge(e,i.source);o.length>0&&n.push(...o)}return n},successorsEdge(e,t){const{getEdges:r}=te.useVueFlow(e),n=[];for(const i of r.value)if(i.source===t){n.push(i);const o=this.successorsEdge(e,i.target);o.length>0&&n.push(...o)}return n},predecessorsNode(e,t){const{getEdges:r,findNode:n}=te.useVueFlow(e),i=n(t),o=i?[i]:[];for(const s of r.value)if(s.target===t){o.push(s.sourceNode);const l=this.predecessorsNode(e,s.source);l.length>0&&o.push(...l)}return o},successorsNode(e,t){const{getEdges:r,findNode:n}=te.useVueFlow(e),i=[n(t)];for(const o of r.value)if(o.source===t){i.push(o.targetNode);const s=this.successorsNode(e,o.target);s.length>0&&i.push(...s)}return i},linkedElements(e,t){return[...this.predecessorsEdge(e,t),...this.predecessorsNode(e,t),...this.successorsEdge(e,t),...this.successorsNode(e,t)]},generateDagreGraph(e,t,r,n,i,o,s){const l=new pm.graphlib.Graph({compound:!0});l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:r?"LR":"TB"});for(const u of e.nodes)t.includes(u.uid)||l.setNode(u.uid,{width:this.getNodeWidth(u),height:this.getNodeHeight(u)});for(const u of e.clusters||[]){const c=u.cluster.uid.replace(Ct,"");if(n.includes(u.cluster.uid)&&o.has(c)){const d={uid:c,type:"collapsedcluster"};l.setNode(c,{width:this.getNodeWidth(d),height:this.getNodeHeight(d)}),s.push(d);continue}if(!i[u.cluster.uid]){l.setNode(u.cluster.uid,{clusterLabelPos:"top"});for(const d of u.nodes||[])t.includes(d)||l.setParent(d,u.cluster.uid)}if(u.parents){const d=i[u.cluster.uid]?i[u.cluster.uid]:u.cluster.uid;t.includes(d)||l.setParent(d,u.parents[u.parents.length-1])}}for(const u of e.edges||[]){const c=this.replaceIfCollapsed(u.source,u.target,i,t);c&&l.setEdge(c.source,c.target)}return pm.layout(l),l},getNodePosition(e,t){const r={x:e.x-e.width/2,y:e.y-e.height/2};if(t){const n=this.getNodePosition(t);r.x=r.x-n.x,r.y=r.y-n.y}return r},getNodeWidth(e){return this.isTaskNode(e)||this.isTriggerNode(e)?ct.TASK_WIDTH:this.isCollapsedCluster(e)?ct.COLLAPSED_CLUSTER_WIDTH:ct.DOT_WIDTH},getNodeHeight(e){return this.isTaskNode(e)||this.isTriggerNode(e)?ct.TASK_HEIGHT:this.isCollapsedCluster(e)?ct.COLLAPSED_CLUSTER_HEIGHT:ct.DOT_HEIGHT},isTaskNode(e){return["GraphTask","SubflowGraphTask$1"].some(t=>e.type.endsWith(t))},isTriggerNode(e){return e.type.endsWith("GraphTrigger")},isCollapsedCluster(e){return e.type==="collapsedcluster"},replaceIfCollapsed(e,t,r,n){const i=r[e]?r[e]:e,o=r[t]?r[t]:t;return i===o||n.includes(i)||n.includes(o)?null:{target:o,source:i}},cleanGraph(e){const{getEdges:t,getNodes:r,getElements:n,removeEdges:i,removeNodes:o,removeSelectedElements:s}=te.useVueFlow(e);i(t.value),o(r.value),s(n.value)},flowHaveTasks(e){return e?de.flowHaveTasks(e):!1},nodeColor(e,t){return e.uid===Et||this.isTriggerNode(e)||this.isCollapsedCluster(e)?"success":e.type.endsWith("SubflowGraphTask")?"primary":e.branchType=="ERROR"?"danger":e.branchType=="FINALLY"?"warning":t.has(e.uid)?"blue":"default"},haveAdd(e,t,r,n){var c,d,f;if(n.some(h=>e.source.startsWith(h)&&e.target.startsWith(h))||r.includes(e.target)||e.source.startsWith(Et)||e.target.startsWith(Et))return;const i=e.target.split(".");i.pop();const o=i.join("."),s=Ce.afterLastDot(o),l=t[e.target];if(l.type.endsWith("GraphClusterEnd")&&((f=(d=(c=t[o])==null?void 0:c.task)==null?void 0:d.type)!=null&&f.endsWith("Parallel")))return;if(l.type.endsWith("GraphClusterRoot"))return[s,"before"];const u=t[e.source].type.endsWith("GraphClusterEnd");if(!u&&l.type.endsWith("GraphClusterEnd"))return[Ce.afterLastDot(e.source),"after"];if(u){const h=e.source.split(".");return[h[h.length-2],"after"]}return[Ce.afterLastDot(e.target),"before"]},getEdgeColor(e,t){const r=t[e.source],n=t[e.target];return n.branchType==="ERROR"||r.branchType==="ERROR"?"error":n.branchType==="FINALLY"||r.branchType==="FINALLY"?"warning":null},generateGraph(e,t,r,n,i,o,s,l,u,c,d,f,h){var b,L,T,A,D,$,z,Z,V,R,X,G;const m=[],C=[Ct+Et];if(!n||i&&!this.flowHaveTasks(i)){m.push({id:"start",type:"dot",position:{x:0,y:0},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.push({id:"end",type:"dot",position:s?{x:50,y:0}:{x:0,y:50},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.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(n,o,s,C,l,u,c),v={},p=n.clusters||[],g=p.map(F=>F.cluster),E=g.filter(F=>F.type.endsWith("SubflowGraphCluster")).map(F=>F.taskNode.uid),_=Object.fromEntries(n.nodes.concat(c).map(F=>[F.uid,F]));for(const F of p)if(!l[F.cluster.uid]&&!u.has(F.cluster.uid)){((L=(b=F.cluster.taskNode)==null?void 0:b.task)==null?void 0:L.type)==="io.kestra.core.tasks.flows.Dag"&&E.push(F.cluster.taskNode.uid);for(const O of F.nodes)v[O]=F.cluster;const ne=F.cluster.uid,ve=y.node(ne),De=F.parents?F.parents[F.parents.length-1]:void 0,Be=this.computeClusterColor(F.cluster);m.push({id:ne,type:"cluster",parentNode:De,position:this.getNodePosition(ve,De?y.node(De):void 0),style:{width:ne===Et&&s?ct.TRIGGER_CLUSTER_WIDTH+"px":ve.width+"px",height:ne===Et&&!s?ct.TRIGGER_CLUSTER_HEIGHT+"px":ve.height+"px"},data:{collapsable:!0,color:Be,taskNode:F.cluster.taskNode,unused:F.cluster.taskNode?_[F.cluster.taskNode.uid].unused:!1},class:`ks-topology-${Be}-border rounded p-2`})}for(const F of n.nodes.concat(c))if(!o.includes(F.uid)){const ne=y.node(F.uid);let ve="task";this.isClusterRootOrEnd(F)?ve="dot":F.type.includes("GraphTrigger")?ve="trigger":F.type==="collapsedcluster"&&(ve="collapsedcluster");const De=this.nodeColor(F,u),Be=d||((A=(T=F.task)==null?void 0:T.type)==null?void 0:A.includes("$"))||E.some(O=>F.uid.startsWith(O+"."));m.push({id:F.uid,type:ve,position:this.getNodePosition(ne,v[F.uid]?y.node(v[F.uid].uid):void 0),style:{width:this.getNodeWidth(F)+"px",height:this.getNodeHeight(F)+"px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:v[F.uid]?v[F.uid].uid:void 0,draggable:ve==="task"?!Be:!1,data:{node:F,namespace:((z=($=(D=v[F.uid])==null?void 0:D.taskNode)==null?void 0:$.task)==null?void 0:z.namespace)??r,flowId:((R=(V=(Z=v[F.uid])==null?void 0:Z.taskNode)==null?void 0:V.task)==null?void 0:R.flowId)??t,isFlowable:((X=v[F.uid])==null?void 0:X.uid)===Ct+F.uid&&!F.type.endsWith("SubflowGraphTask"),color:De,expandable:this.isExpandableTask(F,v,l,h),isReadOnly:Be,iconComponent:this.isCollapsedCluster(F)?"lightning-bolt":null,executionId:F.executionId,unused:F.unused},class:F.type==="collapsedcluster"?`ks-topology-${De}-border rounded`:""})}const k=g.filter(F=>F.taskNode).map(F=>F.taskNode.uid),S=n.edges??[];for(const F of S){const ne=this.replaceIfCollapsed(F.source,F.target,l,o);if(ne){const ve=this.getEdgeColor(F,_);m.push({id:ne.source+"|"+ne.target,source:ne.source,target:ne.target,type:"edge",markerEnd:this.isClusterRootOrEnd(_[ne.target])?"":{id:"marker-"+(_[ne.target].branchType?(G=_[ne.target].branchType)==null?void 0:G.toLocaleLowerCase():"custom"),type:te.MarkerType.ArrowClosed,color:ve?`var(--ks-border-${ve})`:"var(--ks-topology-edge-color)"},data:{haveAdd:!d&&f&&this.haveAdd(F,_,k,E),haveDashArray:_[F.source].type.endsWith("GraphTrigger")||_[F.target].type.endsWith("GraphTrigger")||F.source.startsWith(Et),color:ve,unused:F.unused},style:{zIndex:10}})}}return m},isClusterRootOrEnd(e){return["GraphClusterRoot","GraphClusterFinally","GraphClusterAfterExecution","GraphClusterEnd"].some(t=>e.type.endsWith(t))},computeClusterColor(e){return e.uid===Ct+Et?"success":e.type.endsWith("SubflowGraphCluster")?"primary":e.branchType==="ERROR"?"danger":"blue"},isExpandableTask(e,t,r,n){var i,o;return Object.values(r).includes(e.uid)||this.isCollapsedCluster(e)?!0:e.type.endsWith("SubflowGraphTask")&&((o=(i=t[e.uid])==null?void 0:i.uid)==null?void 0:o.replace(Ct,""))!==e.uid&&n}};let vr;async function x0(){if(vr)return vr;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(r=>r.useMarkdownParser);return vr=await(e.default??e)(),vr}var Sr={exports:{}},M0=Sr.exports,mm;function q0(){return mm||(mm=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",M0,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var l=n[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,d=o.normalize().split("").reduce(function(f,h){var m=l[h];return m===void 0&&(m=r[h]),m===void 0&&(m=h),m===u&&(m=" "),f+m.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),c&&(d=d.trim()),d=d.replace(/\s+/g,u),s.lower&&(d=d.toLowerCase()),d}return i.extend=function(o){Object.assign(r,o)},i})}(Sr)),Sr.exports}var $0=q0();const av=iu($0);av.extend({"(":"-",")":""});function It(e){return av(e,{lower:!0,locale:"en"})}function ov(e,t){return Array.isArray(t)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(t.length===0||typeof t[0]=="string")}function Ht(e){const t=e.title.replaceAll(/\.([a-zA-Z])/g,(r,n)=>` ${n.toUpperCase()}`);return t.charAt(0).toUpperCase()+t.slice(1)}/*!
|
|
1
|
+
"use strict";var B_=Object.create;var Hu=Object.defineProperty;var V_=Object.getOwnPropertyDescriptor;var x_=Object.getOwnPropertyNames;var M_=Object.getPrototypeOf,q_=Object.prototype.hasOwnProperty;var $_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of x_(t))!q_.call(e,i)&&i!==r&&Hu(e,i,{get:()=>t[i],enumerable:!(n=V_(t,i))||n.enumerable});return e};var F_=(e,t,r)=>(r=e!=null?B_(M_(e)):{},$_(t||!e||!e.__esModule?Hu(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ot=require("yaml"),de=require("./kestra-flowyamlutils.cjs.js"),a=require("vue"),U_=require("humanize-duration"),ir=require("moment"),H_=require("moment-timezone"),te=require("@vue-flow/core"),hn=require("@vue-flow/controls"),G_=require("@popperjs/core"),Tr=require("vue-router"),ft={TASKS:"TASKS",TRIGGERS:"TRIGGERS",TASK_RUNNERS:"TASK_RUNNERS"},U={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"},Ct="cluster_",j_={EXECUTIONS:"executions",TASKRUNS:"taskruns"},z_={ALL:"all",ERROR:"error",HIDDEN:"hidden",DEFAULT:"all"},ct={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},W_={STORAGE_KEY:"view-type",SOURCE:"source",SOURCE_TOPOLOGY:"source-topology",SOURCE_DOC:"source-doc",TOPOLOGY:"topology",SOURCE_BLUEPRINTS:"source-blueprints"},K_={DISPLAY_EXECUTIONS_COLUMNS:"displayExecutionsColumns",DISPLAY_FLOW_EXECUTIONS_COLUMNS:"displayFlowExecutionsColumns",SELECTED_TENANT:"selectedTenant",EXECUTE_FLOW_BEHAVIOUR:"executeFlowBehaviour",SHOW_CHART:"showChart",SHOW_FLOWS_CHART:"showFlowsChart",SHOW_LOGS_CHART:"showLogsChart",DEFAULT_NAMESPACE:"defaultNamespace",LATEST_NAMESPACE:"latestNamespace",PAGINATION_SIZE:"paginationSize",IMPERSONATE:"impersonate",EDITOR_VIEW_TYPE:"editorViewType"},Y_={SAME_TAB:"same tab",NEW_TAB:"new tab"},X_={INPROGRESS:"IN-PROGRESS"},Z_={lineWidth:0},Gu=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],J_={stringify:de.stringify,parse:de.parse,pairsToMap:de.pairsToMap,extractTask(e,t){for(const r of Gu){const n=de.extractBlock({source:e,section:r,key:t});if(n)return n}},_extractTask(e,t,r){function n(o){if(o){if(o instanceof Ot.YAMLMap&&o.get("type")!==void 0&&t===o.get("id"))return r?r(o):o;if(o.items)for(const[s,l]of o.items.entries()){let u;if(l instanceof Ot.YAMLMap?u=n(l):u=n(l.value),u&&(r&&(o instanceof Ot.YAMLMap?o.set(l.key.value,u):o.items[s]=u),!r&&u))return u}}}const i=n(e.contents);if(i!==void 0)return r?new Ot.Document(i):new Ot.Document(i)},replaceTaskInDocument(e,t,r,n="tasks",i="id"){return de.replaceBlockInDocument({source:e,section:n,keyName:i,key:t,newContent:r})},sort:de.sort,getAllCharts:de.getAllCharts,getChartAtPosition:de.getChartAtPosition,localizeElementAtIndex:de.localizeElementAtIndex,getTaskType:de.getTypeAtPosition,swapTasks(e,t,r){const n=Ot.parseDocument(e),i=this._extractTask(n,t),o=this._extractTask(n,r);return Ot.visit(n,{Pair(s,l){if(l.key.value==="dependsOn"&&l.value.items.map(u=>u.value).includes(r))throw{message:"dependency task",messageOptions:{taskId:r}}}}),this._extractTask(n,t,()=>o),this._extractTask(n,r,()=>i),n.toString(Z_)},insertTask(e,t,r,n,i){return de.insertBlock({source:e,section:"tasks",newBlock:r,refKey:t,position:n,parentKey:i})},insertSection(e,t,r){return de.insertBlock({source:t,section:e,newBlock:r})},insertErrorInFlowable:de.insertErrorInFlowable,deleteSection(e,t,r){return de.deleteBlock({source:e,section:t,key:r})},deleteTask(e,t,r){return(r===ft.TASKS?["tasks","errors"]:["triggers"]).reduce((i,o)=>de.deleteBlock({source:i,section:o,key:t}),e)},getLastTask(e,t){return de.getLastBlock({source:e,section:"tasks",parentKey:t})},checkTaskAlreadyExist(e,t){return de.checkBlockAlreadyExists({source:e,section:"tasks",newContent:t,keyName:"id"})},isParentChildrenRelation(e,t,r){return de.isParentChildrenRelation({source:e,sections:Gu,key1:t,key2:r,keyName:"id"})},replaceIdAndNamespace:de.replaceIdAndNamespace,updateMetadata:de.updateMetadata,cleanMetadata:de.cleanMetadata,getMetadata:de.getMetadata,deleteMetadata:de.deleteMetadata,flowHaveTasks:de.flowHaveTasks,extractPluginDefault:de.extractPluginDefault,replacePluginDefaultsInDocument:de.replacePluginDefaultsInDocument,deletePluginDefaults:de.deletePluginDefaults},Ge=e=>{const t=document.querySelector(":root"),r=t?getComputedStyle(t):null;return r==null?void 0:r.getPropertyValue(e)};var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pn,ju;function ag(){if(ju)return pn;ju=1;var e=typeof mr=="object"&&mr&&mr.Object===Object&&mr;return pn=e,pn}var mn,zu;function et(){if(zu)return mn;zu=1;var e=ag(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return mn=r,mn}var gn,Wu;function Wt(){if(Wu)return gn;Wu=1;var e=et(),t=e.Symbol;return gn=t,gn}var vn,Ku;function Q_(){if(Ku)return vn;Ku=1;var e=Wt(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(s){var l=r.call(s,i),u=s[i];try{s[i]=void 0;var c=!0}catch{}var d=n.call(s);return c&&(l?s[i]=u:delete s[i]),d}return vn=o,vn}var _n,Yu;function e1(){if(Yu)return _n;Yu=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _n=r,_n}var yn,Xu;function Pt(){if(Xu)return yn;Xu=1;var e=Wt(),t=Q_(),r=e1(),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 yn=s,yn}var En,Zu;function Ke(){if(Zu)return En;Zu=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return En=e,En}var bn,Ju;function ur(){if(Ju)return bn;Ju=1;var e=Pt(),t=Ke(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(l){if(!t(l))return!1;var u=e(l);return u==n||u==i||u==r||u==o}return bn=s,bn}var Cn,Qu;function t1(){if(Qu)return Cn;Qu=1;var e=et(),t=e["__core-js_shared__"];return Cn=t,Cn}var kn,ec;function r1(){if(ec)return kn;ec=1;var e=t1(),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 kn=r,kn}var Sn,tc;function og(){if(tc)return Sn;tc=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 Sn=r,Sn}var wn,rc;function n1(){if(rc)return wn;rc=1;var e=ur(),t=r1(),r=Ke(),n=og(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var m=e(h)?d:o;return m.test(n(h))}return wn=f,wn}var Nn,nc;function i1(){if(nc)return Nn;nc=1;function e(t,r){return t==null?void 0:t[r]}return Nn=e,Nn}var Tn,ic;function Bt(){if(ic)return Tn;ic=1;var e=n1(),t=i1();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return Tn=r,Tn}var Ln,ac;function sg(){if(ac)return Ln;ac=1;var e=Bt(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Ln=t,Ln}var On,oc;function Mr(){if(oc)return On;oc=1;var e=sg();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return On=t,On}var In,sc;function a1(){if(sc)return In;sc=1;function e(t){return function(r,n,i){for(var o=-1,s=Object(r),l=i(r),u=l.length;u--;){var c=l[t?u:++o];if(n(s[c],c,s)===!1)break}return r}}return In=e,In}var An,lc;function au(){if(lc)return An;lc=1;var e=a1(),t=e();return An=t,An}var Rn,uc;function o1(){if(uc)return Rn;uc=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Rn=e,Rn}var Dn,cc;function lt(){if(cc)return Dn;cc=1;function e(t){return t!=null&&typeof t=="object"}return Dn=e,Dn}var Pn,dc;function s1(){if(dc)return Pn;dc=1;var e=Pt(),t=lt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pn=n,Pn}var Bn,fc;function cr(){if(fc)return Bn;fc=1;var e=s1(),t=lt(),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 Bn=o,Bn}var Vn,hc;function Ne(){if(hc)return Vn;hc=1;var e=Array.isArray;return Vn=e,Vn}var tr={exports:{}},xn,pc;function l1(){if(pc)return xn;pc=1;function e(){return!1}return xn=e,xn}tr.exports;var mc;function Kt(){return mc||(mc=1,function(e,t){var r=et(),n=l1(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||n;e.exports=c}(tr,tr.exports)),tr.exports}var Mn,gc;function qr(){if(gc)return Mn;gc=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 Mn=r,Mn}var qn,vc;function ou(){if(vc)return qn;vc=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qn=t,qn}var $n,_c;function u1(){if(_c)return $n;_c=1;var e=Pt(),t=ou(),r=lt(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",c="[object Map]",d="[object Number]",f="[object Object]",h="[object RegExp]",m="[object Set]",C="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",k="[object Int16Array]",w="[object Int32Array]",b="[object Uint8Array]",L="[object Uint8ClampedArray]",T="[object Uint16Array]",A="[object Uint32Array]",D={};D[g]=D[E]=D[_]=D[k]=D[w]=D[b]=D[L]=D[T]=D[A]=!0,D[n]=D[i]=D[v]=D[o]=D[p]=D[s]=D[l]=D[u]=D[c]=D[d]=D[f]=D[h]=D[m]=D[C]=D[y]=!1;function $(z){return r(z)&&t(z.length)&&!!D[e(z)]}return $n=$,$n}var Fn,yc;function $r(){if(yc)return Fn;yc=1;function e(t){return function(r){return t(r)}}return Fn=e,Fn}var rr={exports:{}};rr.exports;var Ec;function su(){return Ec||(Ec=1,function(e,t){var r=ag(),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 u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l}(rr,rr.exports)),rr.exports}var Un,bc;function dr(){if(bc)return Un;bc=1;var e=u1(),t=$r(),r=su(),n=r&&r.isTypedArray,i=n?t(n):e;return Un=i,Un}var Hn,Cc;function lg(){if(Cc)return Hn;Cc=1;var e=o1(),t=cr(),r=Ne(),n=Kt(),i=qr(),o=dr(),s=Object.prototype,l=s.hasOwnProperty;function u(c,d){var f=r(c),h=!f&&t(c),m=!f&&!h&&n(c),C=!f&&!h&&!m&&o(c),y=f||h||m||C,v=y?e(c.length,String):[],p=v.length;for(var g in c)(d||l.call(c,g))&&!(y&&(g=="length"||m&&(g=="offset"||g=="parent")||C&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,p)))&&v.push(g);return v}return Hn=u,Hn}var Gn,kc;function Fr(){if(kc)return Gn;kc=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 jn,Sc;function ug(){if(Sc)return jn;Sc=1;function e(t,r){return function(n){return t(r(n))}}return jn=e,jn}var zn,wc;function c1(){if(wc)return zn;wc=1;var e=ug(),t=e(Object.keys,Object);return zn=t,zn}var Wn,Nc;function lu(){if(Nc)return Wn;Nc=1;var e=Fr(),t=c1(),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 Wn=i,Wn}var Kn,Tc;function mt(){if(Tc)return Kn;Tc=1;var e=ur(),t=ou();function r(n){return n!=null&&t(n.length)&&!e(n)}return Kn=r,Kn}var Yn,Lc;function St(){if(Lc)return Yn;Lc=1;var e=lg(),t=lu(),r=mt();function n(i){return r(i)?e(i):t(i)}return Yn=n,Yn}var Xn,Oc;function uu(){if(Oc)return Xn;Oc=1;var e=au(),t=St();function r(n,i){return n&&e(n,i,t)}return Xn=r,Xn}var Zn,Ic;function d1(){if(Ic)return Zn;Ic=1;function e(){this.__data__=[],this.size=0}return Zn=e,Zn}var Jn,Ac;function Yt(){if(Ac)return Jn;Ac=1;function e(t,r){return t===r||t!==t&&r!==r}return Jn=e,Jn}var Qn,Rc;function Ur(){if(Rc)return Qn;Rc=1;var e=Yt();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Qn=t,Qn}var ei,Dc;function f1(){if(Dc)return ei;Dc=1;var e=Ur(),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 ei=n,ei}var ti,Pc;function h1(){if(Pc)return ti;Pc=1;var e=Ur();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ti=t,ti}var ri,Bc;function p1(){if(Bc)return ri;Bc=1;var e=Ur();function t(r){return e(this.__data__,r)>-1}return ri=t,ri}var ni,Vc;function m1(){if(Vc)return ni;Vc=1;var e=Ur();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 ni=t,ni}var ii,xc;function Hr(){if(xc)return ii;xc=1;var e=d1(),t=f1(),r=h1(),n=p1(),i=m1();function o(s){var l=-1,u=s==null?0:s.length;for(this.clear();++l<u;){var c=s[l];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,ii=o,ii}var ai,Mc;function g1(){if(Mc)return ai;Mc=1;var e=Hr();function t(){this.__data__=new e,this.size=0}return ai=t,ai}var oi,qc;function v1(){if(qc)return oi;qc=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return oi=e,oi}var si,$c;function _1(){if($c)return si;$c=1;function e(t){return this.__data__.get(t)}return si=e,si}var li,Fc;function y1(){if(Fc)return li;Fc=1;function e(t){return this.__data__.has(t)}return li=e,li}var ui,Uc;function cu(){if(Uc)return ui;Uc=1;var e=Bt(),t=et(),r=e(t,"Map");return ui=r,ui}var ci,Hc;function Gr(){if(Hc)return ci;Hc=1;var e=Bt(),t=e(Object,"create");return ci=t,ci}var di,Gc;function E1(){if(Gc)return di;Gc=1;var e=Gr();function t(){this.__data__=e?e(null):{},this.size=0}return di=t,di}var fi,jc;function b1(){if(jc)return fi;jc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return fi=e,fi}var hi,zc;function C1(){if(zc)return hi;zc=1;var e=Gr(),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 hi=i,hi}var pi,Wc;function k1(){if(Wc)return pi;Wc=1;var e=Gr(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return pi=n,pi}var mi,Kc;function S1(){if(Kc)return mi;Kc=1;var e=Gr(),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 mi=r,mi}var gi,Yc;function w1(){if(Yc)return gi;Yc=1;var e=E1(),t=b1(),r=C1(),n=k1(),i=S1();function o(s){var l=-1,u=s==null?0:s.length;for(this.clear();++l<u;){var c=s[l];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,gi=o,gi}var vi,Xc;function N1(){if(Xc)return vi;Xc=1;var e=w1(),t=Hr(),r=cu();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return vi=n,vi}var _i,Zc;function T1(){if(Zc)return _i;Zc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _i=e,_i}var yi,Jc;function jr(){if(Jc)return yi;Jc=1;var e=T1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return yi=t,yi}var Ei,Qc;function L1(){if(Qc)return Ei;Qc=1;var e=jr();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ei=t,Ei}var bi,ed;function O1(){if(ed)return bi;ed=1;var e=jr();function t(r){return e(this,r).get(r)}return bi=t,bi}var Ci,td;function I1(){if(td)return Ci;td=1;var e=jr();function t(r){return e(this,r).has(r)}return Ci=t,Ci}var ki,rd;function A1(){if(rd)return ki;rd=1;var e=jr();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 ki=t,ki}var Si,nd;function du(){if(nd)return Si;nd=1;var e=N1(),t=L1(),r=O1(),n=I1(),i=A1();function o(s){var l=-1,u=s==null?0:s.length;for(this.clear();++l<u;){var c=s[l];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Si=o,Si}var wi,id;function R1(){if(id)return wi;id=1;var e=Hr(),t=cu(),r=du(),n=200;function i(o,s){var l=this.__data__;if(l instanceof e){var u=l.__data__;if(!t||u.length<n-1)return u.push([o,s]),this.size=++l.size,this;l=this.__data__=new r(u)}return l.set(o,s),this.size=l.size,this}return wi=i,wi}var Ni,ad;function zr(){if(ad)return Ni;ad=1;var e=Hr(),t=g1(),r=v1(),n=_1(),i=y1(),o=R1();function s(l){var u=this.__data__=new e(l);this.size=u.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=o,Ni=s,Ni}var Ti,od;function D1(){if(od)return Ti;od=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ti=t,Ti}var Li,sd;function P1(){if(sd)return Li;sd=1;function e(t){return this.__data__.has(t)}return Li=e,Li}var Oi,ld;function cg(){if(ld)return Oi;ld=1;var e=du(),t=D1(),r=P1();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,Oi=n,Oi}var Ii,ud;function B1(){if(ud)return Ii;ud=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 Ii=e,Ii}var Ai,cd;function dg(){if(cd)return Ai;cd=1;function e(t,r){return t.has(r)}return Ai=e,Ai}var Ri,dd;function fg(){if(dd)return Ri;dd=1;var e=cg(),t=B1(),r=dg(),n=1,i=2;function o(s,l,u,c,d,f){var h=u&n,m=s.length,C=l.length;if(m!=C&&!(h&&C>m))return!1;var y=f.get(s),v=f.get(l);if(y&&v)return y==l&&v==s;var p=-1,g=!0,E=u&i?new e:void 0;for(f.set(s,l),f.set(l,s);++p<m;){var _=s[p],k=l[p];if(c)var w=h?c(k,_,p,l,s,f):c(_,k,p,s,l,f);if(w!==void 0){if(w)continue;g=!1;break}if(E){if(!t(l,function(b,L){if(!r(E,L)&&(_===b||d(_,b,u,c,f)))return E.push(L)})){g=!1;break}}else if(!(_===k||d(_,k,u,c,f))){g=!1;break}}return f.delete(s),f.delete(l),g}return Ri=o,Ri}var Di,fd;function hg(){if(fd)return Di;fd=1;var e=et(),t=e.Uint8Array;return Di=t,Di}var Pi,hd;function V1(){if(hd)return Pi;hd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return Pi=e,Pi}var Bi,pd;function fu(){if(pd)return Bi;pd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Bi=e,Bi}var Vi,md;function x1(){if(md)return Vi;md=1;var e=Wt(),t=hg(),r=Yt(),n=fg(),i=V1(),o=fu(),s=1,l=2,u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Map]",h="[object Number]",m="[object RegExp]",C="[object Set]",y="[object String]",v="[object Symbol]",p="[object ArrayBuffer]",g="[object DataView]",E=e?e.prototype:void 0,_=E?E.valueOf:void 0;function k(w,b,L,T,A,D,$){switch(L){case g:if(w.byteLength!=b.byteLength||w.byteOffset!=b.byteOffset)return!1;w=w.buffer,b=b.buffer;case p:return!(w.byteLength!=b.byteLength||!D(new t(w),new t(b)));case u:case c:case h:return r(+w,+b);case d:return w.name==b.name&&w.message==b.message;case m:case y:return w==b+"";case f:var z=i;case C:var Z=T&s;if(z||(z=o),w.size!=b.size&&!Z)return!1;var V=$.get(w);if(V)return V==b;T|=l,$.set(w,b);var R=n(z(w),z(b),T,A,D,$);return $.delete(w),R;case v:if(_)return _.call(w)==_.call(b)}return!1}return Vi=k,Vi}var xi,gd;function hu(){if(gd)return xi;gd=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 xi=e,xi}var Mi,vd;function pg(){if(vd)return Mi;vd=1;var e=hu(),t=Ne();function r(n,i,o){var s=i(n);return t(n)?s:e(s,o(n))}return Mi=r,Mi}var qi,_d;function mg(){if(_d)return qi;_d=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 qi=e,qi}var $i,yd;function gg(){if(yd)return $i;yd=1;function e(){return[]}return $i=e,$i}var Fi,Ed;function pu(){if(Ed)return Fi;Ed=1;var e=mg(),t=gg(),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 Fi=o,Fi}var Ui,bd;function vg(){if(bd)return Ui;bd=1;var e=pg(),t=pu(),r=St();function n(i){return e(i,r,t)}return Ui=n,Ui}var Hi,Cd;function M1(){if(Cd)return Hi;Cd=1;var e=vg(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,s,l,u,c,d){var f=l&t,h=e(o),m=h.length,C=e(s),y=C.length;if(m!=y&&!f)return!1;for(var v=m;v--;){var p=h[v];if(!(f?p in s:n.call(s,p)))return!1}var g=d.get(o),E=d.get(s);if(g&&E)return g==s&&E==o;var _=!0;d.set(o,s),d.set(s,o);for(var k=f;++v<m;){p=h[v];var w=o[p],b=s[p];if(u)var L=f?u(b,w,p,s,o,d):u(w,b,p,o,s,d);if(!(L===void 0?w===b||c(w,b,l,u,d):L)){_=!1;break}k||(k=p=="constructor")}if(_&&!k){var T=o.constructor,A=s.constructor;T!=A&&"constructor"in o&&"constructor"in s&&!(typeof T=="function"&&T instanceof T&&typeof A=="function"&&A instanceof A)&&(_=!1)}return d.delete(o),d.delete(s),_}return Hi=i,Hi}var Gi,kd;function q1(){if(kd)return Gi;kd=1;var e=Bt(),t=et(),r=e(t,"DataView");return Gi=r,Gi}var ji,Sd;function $1(){if(Sd)return ji;Sd=1;var e=Bt(),t=et(),r=e(t,"Promise");return ji=r,ji}var zi,wd;function _g(){if(wd)return zi;wd=1;var e=Bt(),t=et(),r=e(t,"Set");return zi=r,zi}var Wi,Nd;function F1(){if(Nd)return Wi;Nd=1;var e=Bt(),t=et(),r=e(t,"WeakMap");return Wi=r,Wi}var Ki,Td;function Xt(){if(Td)return Ki;Td=1;var e=q1(),t=cu(),r=$1(),n=_g(),i=F1(),o=Pt(),s=og(),l="[object Map]",u="[object Object]",c="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",m=s(e),C=s(t),y=s(r),v=s(n),p=s(i),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=h||t&&g(new t)!=l||r&&g(r.resolve())!=c||n&&g(new n)!=d||i&&g(new i)!=f)&&(g=function(E){var _=o(E),k=_==u?E.constructor:void 0,w=k?s(k):"";if(w)switch(w){case m:return h;case C:return l;case y:return c;case v:return d;case p:return f}return _}),Ki=g,Ki}var Yi,Ld;function U1(){if(Ld)return Yi;Ld=1;var e=zr(),t=fg(),r=x1(),n=M1(),i=Xt(),o=Ne(),s=Kt(),l=dr(),u=1,c="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function C(y,v,p,g,E,_){var k=o(y),w=o(v),b=k?d:i(y),L=w?d:i(v);b=b==c?f:b,L=L==c?f:L;var T=b==f,A=L==f,D=b==L;if(D&&s(y)){if(!s(v))return!1;k=!0,T=!1}if(D&&!T)return _||(_=new e),k||l(y)?t(y,v,p,g,E,_):r(y,v,b,p,g,E,_);if(!(p&u)){var $=T&&m.call(y,"__wrapped__"),z=A&&m.call(v,"__wrapped__");if($||z){var Z=$?y.value():y,V=z?v.value():v;return _||(_=new e),E(Z,V,p,g,_)}}return D?(_||(_=new e),n(y,v,p,g,E,_)):!1}return Yi=C,Yi}var Xi,Od;function yg(){if(Od)return Xi;Od=1;var e=U1(),t=lt();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 Xi=r,Xi}var Zi,Id;function H1(){if(Id)return Zi;Id=1;var e=zr(),t=yg(),r=1,n=2;function i(o,s,l,u){var c=l.length,d=c,f=!u;if(o==null)return!d;for(o=Object(o);c--;){var h=l[c];if(f&&h[2]?h[1]!==o[h[0]]:!(h[0]in o))return!1}for(;++c<d;){h=l[c];var m=h[0],C=o[m],y=h[1];if(f&&h[2]){if(C===void 0&&!(m in o))return!1}else{var v=new e;if(u)var p=u(C,y,m,o,s,v);if(!(p===void 0?t(y,C,r|n,u,v):p))return!1}}return!0}return Zi=i,Zi}var Ji,Ad;function Eg(){if(Ad)return Ji;Ad=1;var e=Ke();function t(r){return r===r&&!e(r)}return Ji=t,Ji}var Qi,Rd;function G1(){if(Rd)return Qi;Rd=1;var e=Eg(),t=St();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 Qi=r,Qi}var ea,Dd;function bg(){if(Dd)return ea;Dd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ea=e,ea}var ta,Pd;function j1(){if(Pd)return ta;Pd=1;var e=H1(),t=G1(),r=bg();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 ta=n,ta}var ra,Bd;function Zt(){if(Bd)return ra;Bd=1;var e=Pt(),t=lt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ra=n,ra}var na,Vd;function mu(){if(Vd)return na;Vd=1;var e=Ne(),t=Zt(),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 na=i,na}var ia,xd;function z1(){if(xd)return ia;xd=1;var e=du(),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],u=o.cache;if(u.has(l))return u.get(l);var c=n.apply(this,s);return o.cache=u.set(l,c)||u,c};return o.cache=new(r.Cache||e),o}return r.Cache=e,ia=r,ia}var aa,Md;function W1(){if(Md)return aa;Md=1;var e=z1(),t=500;function r(n){var i=e(n,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return aa=r,aa}var oa,qd;function K1(){if(qd)return oa;qd=1;var e=W1(),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,u,c){o.push(u?c.replace(r,"$1"):l||s)}),o});return oa=n,oa}var sa,$d;function Wr(){if($d)return sa;$d=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 sa=e,sa}var la,Fd;function Y1(){if(Fd)return la;Fd=1;var e=Wt(),t=Wr(),r=Ne(),n=Zt(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(l){if(typeof l=="string")return l;if(r(l))return t(l,s)+"";if(n(l))return o?o.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return la=s,la}var ua,Ud;function Cg(){if(Ud)return ua;Ud=1;var e=Y1();function t(r){return r==null?"":e(r)}return ua=t,ua}var ca,Hd;function Kr(){if(Hd)return ca;Hd=1;var e=Ne(),t=mu(),r=K1(),n=Cg();function i(o,s){return e(o)?o:t(o,s)?[o]:r(n(o))}return ca=i,ca}var da,Gd;function fr(){if(Gd)return da;Gd=1;var e=Zt();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return da=t,da}var fa,jd;function Yr(){if(jd)return fa;jd=1;var e=Kr(),t=fr();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 fa=r,fa}var ha,zd;function X1(){if(zd)return ha;zd=1;var e=Yr();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return ha=t,ha}var pa,Wd;function Z1(){if(Wd)return pa;Wd=1;function e(t,r){return t!=null&&r in Object(t)}return pa=e,pa}var ma,Kd;function kg(){if(Kd)return ma;Kd=1;var e=Kr(),t=cr(),r=Ne(),n=qr(),i=ou(),o=fr();function s(l,u,c){u=e(u,l);for(var d=-1,f=u.length,h=!1;++d<f;){var m=o(u[d]);if(!(h=l!=null&&c(l,m)))break;l=l[m]}return h||++d!=f?h:(f=l==null?0:l.length,!!f&&i(f)&&n(m,f)&&(r(l)||t(l)))}return ma=s,ma}var ga,Yd;function Sg(){if(Yd)return ga;Yd=1;var e=Z1(),t=kg();function r(n,i){return n!=null&&t(n,i,e)}return ga=r,ga}var va,Xd;function J1(){if(Xd)return va;Xd=1;var e=yg(),t=X1(),r=Sg(),n=mu(),i=Eg(),o=bg(),s=fr(),l=1,u=2;function c(d,f){return n(d)&&i(f)?o(s(d),f):function(h){var m=t(h,d);return m===void 0&&m===f?r(h,d):e(f,m,l|u)}}return va=c,va}var _a,Zd;function Vt(){if(Zd)return _a;Zd=1;function e(t){return t}return _a=e,_a}var ya,Jd;function wg(){if(Jd)return ya;Jd=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ya=e,ya}var Ea,Qd;function Q1(){if(Qd)return Ea;Qd=1;var e=Yr();function t(r){return function(n){return e(n,r)}}return Ea=t,Ea}var ba,ef;function ey(){if(ef)return ba;ef=1;var e=wg(),t=Q1(),r=mu(),n=fr();function i(o){return r(o)?e(n(o)):t(o)}return ba=i,ba}var Ca,tf;function gt(){if(tf)return Ca;tf=1;var e=j1(),t=J1(),r=Vt(),n=Ne(),i=ey();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 Ca=o,Ca}var ka,rf;function Ng(){if(rf)return ka;rf=1;var e=Mr(),t=uu(),r=gt();function n(i,o){var s={};return o=r(o,3),t(i,function(l,u,c){e(s,u,o(l,u,c))}),s}return ka=n,ka}var ty=Ng();const gr=iu(ty),K=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},ry={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ny=["aria-hidden","aria-label"],iy=["fill","width","height"],ay={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"},oy={key:0};function sy(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",ay,[r.title?(a.openBlock(),a.createElementBlock("title",oy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,iy))],16,ny)}const ly=K(ry,[["render",sy]]),uy={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cy=["aria-hidden","aria-label"],dy=["fill","width","height"],fy={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"},hy={key:0};function py(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",fy,[r.title?(a.openBlock(),a.createElementBlock("title",hy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,dy))],16,cy)}const my=K(uy,[["render",py]]),gy={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vy=["aria-hidden","aria-label"],_y=["fill","width","height"],yy={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"},Ey={key:0};function by(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",yy,[r.title?(a.openBlock(),a.createElementBlock("title",Ey,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,_y))],16,vy)}const Cy=K(gy,[["render",by]]),ky={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sy=["aria-hidden","aria-label"],wy=["fill","width","height"],Ny={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"},Ty={key:0};function Ly(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",Ny,[r.title?(a.openBlock(),a.createElementBlock("title",Ty,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,wy))],16,Sy)}const Ml=K(ky,[["render",Ly]]),Oy={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Iy=["aria-hidden","aria-label"],Ay=["fill","width","height"],Ry={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"},Dy={key:0};function Py(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",Ry,[r.title?(a.openBlock(),a.createElementBlock("title",Dy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Ay))],16,Iy)}const By=K(Oy,[["render",Py]]),Vy={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xy=["aria-hidden","aria-label"],My=["fill","width","height"],qy={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"},$y={key:0};function Fy(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",qy,[r.title?(a.openBlock(),a.createElementBlock("title",$y,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,My))],16,xy)}const Uy=K(Vy,[["render",Fy]]),Hy={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gy=["aria-hidden","aria-label"],jy=["fill","width","height"],zy={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"},Wy={key:0};function Ky(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",zy,[r.title?(a.openBlock(),a.createElementBlock("title",Wy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,jy))],16,Gy)}const ql=K(Hy,[["render",Ky]]),Yy={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xy=["aria-hidden","aria-label"],Zy=["fill","width","height"],Jy={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"},Qy={key:0};function eE(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",Jy,[r.title?(a.openBlock(),a.createElementBlock("title",Qy,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Zy))],16,Xy)}const tE=K(Yy,[["render",eE]]),rE={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nE=["aria-hidden","aria-label"],iE=["fill","width","height"],aE={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},oE={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 motion-pause-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",aE,[r.title?(a.openBlock(),a.createElementBlock("title",oE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,iE))],16,nE)}const lE=K(rE,[["render",sE]]),uE={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cE=["aria-hidden","aria-label"],dE=["fill","width","height"],fE={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},hE={key:0};function pE(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 refresh-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",hE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,dE))],16,cE)}const nf=K(uE,[["render",pE]]),mE={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gE=["aria-hidden","aria-label"],vE=["fill","width","height"],_E={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},yE={key:0};function EE(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 cancel-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",_E,[r.title?(a.openBlock(),a.createElementBlock("title",yE,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,vE))],16,gE)}const af=K(mE,[["render",EE]]),se=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:tE,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Uy,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:my,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Cy,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:Ml,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:By,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:ql,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:Ml,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:ly,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:af,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:af,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:lE,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:nf,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:nf,isRunning:!1,isKillable:!1,isFailed:!1}});class Te{static get CREATED(){return se.CREATED.name}static get RESTARTED(){return se.RESTARTED.name}static get SUCCESS(){return se.SUCCESS.name}static get RUNNING(){return se.RUNNING.name}static get KILLING(){return se.KILLING.name}static get KILLED(){return se.KILLED.name}static get FAILED(){return se.FAILED.name}static get WARNING(){return se.WARNING.name}static get PAUSED(){return se.PAUSED.name}static get CANCELLED(){return se.CANCELLED.name}static get QUEUED(){return se.QUEUED.name}static get RETRYING(){return se.RETRYING.name}static get RETRIED(){return se.RETRIED.name}static isRunning(t){return se[t]&&se[t].isRunning}static isKillable(t){return se[t]&&se[t].isKillable}static isPaused(t){return se[t]&&se[t]===se.PAUSED}static isFailed(t){return se[t]&&se[t].isFailed}static isQueued(t){return se[t]&&se[t]===se.QUEUED}static allStates(){return gr(se,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(se)}static colorClass(){return gr(se,t=>t.colorClass)}static color(){return gr(se,t=>Ge("--bs-"+t.colorClass))}static getStateColor(t){return se[t].color}static icon(){return gr(se,t=>t.icon)}static getTerminatedStates(){return Object.values(se).filter(t=>!t.isRunning).map(t=>t.name)}}const bE={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"}},CE="dateFormat",kE="timezone",Ce={capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),dateFilter:(e,t)=>{var o,s;const r=(o=a.getCurrentInstance())==null?void 0:o.appContext.config.globalProperties.$moment().locale(),n=(s=a.getCurrentInstance())==null?void 0:s.appContext.config.globalProperties.$moment(e).locale(r);let i;return t==="iso"?i="YYYY-MM-DD HH:mm:ss.SSS":i=t??localStorage.getItem(CE)??"llll",n.tz(localStorage.getItem(kE)??H_.tz.guess()).format(i)},splitFirst(e,t){return e.split(t).slice(1).join(t)},duration(e){return ir.duration(e,ir.ISO_8601).asMilliseconds()/1e3},humanDuration(e,t){return t=t||{maxDecimalPoints:2},t.spacer="",t.language=localStorage.getItem("lang")||"en",t.languages=bE,t.largest=2,typeof e!="number"&&(e=this.duration(e)),U_(e*1e3,t).replace(/\.([0-9])s$/i,".$10s")},afterLastDot(e){return e.split(".").pop()},distinctFilter(e,t,r){return r.indexOf(e)===t}};function gu(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 Sa,of;function vu(){if(of)return Sa;of=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 Sa=e,Sa}var wa,sf;function Xr(){if(sf)return wa;sf=1;var e=Mr(),t=Yt(),r=Object.prototype,n=r.hasOwnProperty;function i(o,s,l){var u=o[s];(!(n.call(o,s)&&t(u,l))||l===void 0&&!(s in o))&&e(o,s,l)}return wa=i,wa}var Na,lf;function hr(){if(lf)return Na;lf=1;var e=Xr(),t=Mr();function r(n,i,o,s){var l=!o;o||(o={});for(var u=-1,c=i.length;++u<c;){var d=i[u],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 Na=r,Na}var Ta,uf;function SE(){if(uf)return Ta;uf=1;var e=hr(),t=St();function r(n,i){return n&&e(i,t(i),n)}return Ta=r,Ta}var La,cf;function wE(){if(cf)return La;cf=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return La=e,La}var Oa,df;function NE(){if(df)return Oa;df=1;var e=Ke(),t=Fr(),r=wE(),n=Object.prototype,i=n.hasOwnProperty;function o(s){if(!e(s))return r(s);var l=t(s),u=[];for(var c in s)c=="constructor"&&(l||!i.call(s,c))||u.push(c);return u}return Oa=o,Oa}var Ia,ff;function xt(){if(ff)return Ia;ff=1;var e=lg(),t=NE(),r=mt();function n(i){return r(i)?e(i,!0):t(i)}return Ia=n,Ia}var Aa,hf;function TE(){if(hf)return Aa;hf=1;var e=hr(),t=xt();function r(n,i){return n&&e(i,t(i),n)}return Aa=r,Aa}var nr={exports:{}};nr.exports;var pf;function Tg(){return pf||(pf=1,function(e,t){var r=et(),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 u(c,d){if(d)return c.slice();var f=c.length,h=l?l(f):new c.constructor(f);return c.copy(h),h}e.exports=u}(nr,nr.exports)),nr.exports}var Ra,mf;function Lg(){if(mf)return Ra;mf=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 Ra=e,Ra}var Da,gf;function LE(){if(gf)return Da;gf=1;var e=hr(),t=pu();function r(n,i){return e(n,t(n),i)}return Da=r,Da}var Pa,vf;function Zr(){if(vf)return Pa;vf=1;var e=ug(),t=e(Object.getPrototypeOf,Object);return Pa=t,Pa}var Ba,_f;function Og(){if(_f)return Ba;_f=1;var e=hu(),t=Zr(),r=pu(),n=gg(),i=Object.getOwnPropertySymbols,o=i?function(s){for(var l=[];s;)e(l,r(s)),s=t(s);return l}:n;return Ba=o,Ba}var Va,yf;function OE(){if(yf)return Va;yf=1;var e=hr(),t=Og();function r(n,i){return e(n,t(n),i)}return Va=r,Va}var xa,Ef;function IE(){if(Ef)return xa;Ef=1;var e=pg(),t=Og(),r=xt();function n(i){return e(i,r,t)}return xa=n,xa}var Ma,bf;function AE(){if(bf)return Ma;bf=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 Ma=r,Ma}var qa,Cf;function _u(){if(Cf)return qa;Cf=1;var e=hg();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return qa=t,qa}var $a,kf;function RE(){if(kf)return $a;kf=1;var e=_u();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return $a=t,$a}var Fa,Sf;function DE(){if(Sf)return Fa;Sf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Fa=t,Fa}var Ua,wf;function PE(){if(wf)return Ua;wf=1;var e=Wt(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Ua=n,Ua}var Ha,Nf;function Ig(){if(Nf)return Ha;Nf=1;var e=_u();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return Ha=t,Ha}var Ga,Tf;function BE(){if(Tf)return Ga;Tf=1;var e=_u(),t=RE(),r=DE(),n=PE(),i=Ig(),o="[object Boolean]",s="[object Date]",l="[object Map]",u="[object Number]",c="[object RegExp]",d="[object Set]",f="[object String]",h="[object Symbol]",m="[object ArrayBuffer]",C="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",p="[object Int8Array]",g="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",k="[object Uint8ClampedArray]",w="[object Uint16Array]",b="[object Uint32Array]";function L(T,A,D){var $=T.constructor;switch(A){case m:return e(T);case o:case s:return new $(+T);case C:return t(T,D);case y:case v:case p:case g:case E:case _:case k:case w:case b:return i(T,D);case l:return new $;case u:case f:return new $(T);case c:return r(T);case d:return new $;case h:return n(T)}}return Ga=L,Ga}var ja,Lf;function Ag(){if(Lf)return ja;Lf=1;var e=Ke(),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 ja=r,ja}var za,Of;function Rg(){if(Of)return za;Of=1;var e=Ag(),t=Zr(),r=Fr();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return za=n,za}var Wa,If;function VE(){if(If)return Wa;If=1;var e=Xt(),t=lt(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Wa=n,Wa}var Ka,Af;function xE(){if(Af)return Ka;Af=1;var e=VE(),t=$r(),r=su(),n=r&&r.isMap,i=n?t(n):e;return Ka=i,Ka}var Ya,Rf;function ME(){if(Rf)return Ya;Rf=1;var e=Xt(),t=lt(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Ya=n,Ya}var Xa,Df;function qE(){if(Df)return Xa;Df=1;var e=ME(),t=$r(),r=su(),n=r&&r.isSet,i=n?t(n):e;return Xa=i,Xa}var Za,Pf;function Dg(){if(Pf)return Za;Pf=1;var e=zr(),t=vu(),r=Xr(),n=SE(),i=TE(),o=Tg(),s=Lg(),l=LE(),u=OE(),c=vg(),d=IE(),f=Xt(),h=AE(),m=BE(),C=Rg(),y=Ne(),v=Kt(),p=xE(),g=Ke(),E=qE(),_=St(),k=xt(),w=1,b=2,L=4,T="[object Arguments]",A="[object Array]",D="[object Boolean]",$="[object Date]",z="[object Error]",Z="[object Function]",V="[object GeneratorFunction]",R="[object Map]",X="[object Number]",G="[object Object]",F="[object RegExp]",ne="[object Set]",ve="[object String]",De="[object Symbol]",Be="[object WeakMap]",O="[object ArrayBuffer]",P="[object DataView]",q="[object Float32Array]",H="[object Float64Array]",Q="[object Int8Array]",he="[object Int16Array]",_e="[object Int32Array]",Oe="[object Uint8Array]",_t="[object Uint8ClampedArray]",Se="[object Uint16Array]",be="[object Uint32Array]",ee={};ee[T]=ee[A]=ee[O]=ee[P]=ee[D]=ee[$]=ee[q]=ee[H]=ee[Q]=ee[he]=ee[_e]=ee[R]=ee[X]=ee[G]=ee[F]=ee[ne]=ee[ve]=ee[De]=ee[Oe]=ee[_t]=ee[Se]=ee[be]=!0,ee[z]=ee[Z]=ee[Be]=!1;function Fe(ie,S,N,B,W,ce){var ae,re=S&w,I=S&b,x=S&L;if(N&&(ae=W?N(ie,B,W,ce):N(ie)),ae!==void 0)return ae;if(!g(ie))return ie;var oe=y(ie);if(oe){if(ae=h(ie),!re)return s(ie,ae)}else{var pe=f(ie),rt=pe==Z||pe==V;if(v(ie))return o(ie,re);if(pe==G||pe==T||rt&&!W){if(ae=I||rt?{}:C(ie),!re)return I?u(ie,i(ae,ie)):l(ie,n(ae,ie))}else{if(!ee[pe])return W?ie:{};ae=m(ie,pe,re)}}ce||(ce=new e);var Lt=ce.get(ie);if(Lt)return Lt;ce.set(ie,ae),E(ie)?ie.forEach(function(it){ae.add(Fe(it,S,N,it,ie,ce))}):p(ie)&&ie.forEach(function(it,at){ae.set(at,Fe(it,S,N,at,ie,ce))});var yt=x?I?d:c:I?k:_,nt=oe?void 0:yt(ie);return t(nt||ie,function(it,at){nt&&(at=it,it=ie[at]),r(ae,at,Fe(it,S,N,at,ie,ce))}),ae}return Za=Fe,Za}var Ja,Bf;function $E(){if(Bf)return Ja;Bf=1;var e=Dg(),t=4;function r(n){return e(n,t)}return Ja=r,Ja}var Qa,Vf;function yu(){if(Vf)return Qa;Vf=1;function e(t){return function(){return t}}return Qa=e,Qa}var eo,xf;function FE(){if(xf)return eo;xf=1;var e=mt();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,u=Object(i);(n?l--:++l<s)&&o(u[l],l,u)!==!1;);return i}}return eo=t,eo}var to,Mf;function Jr(){if(Mf)return to;Mf=1;var e=uu(),t=FE(),r=t(e);return to=r,to}var ro,qf;function Pg(){if(qf)return ro;qf=1;var e=Vt();function t(r){return typeof r=="function"?r:e}return ro=t,ro}var no,$f;function Bg(){if($f)return no;$f=1;var e=vu(),t=Jr(),r=Pg(),n=Ne();function i(o,s){var l=n(o)?e:t;return l(o,r(s))}return no=i,no}var io,Ff;function Vg(){return Ff||(Ff=1,io=Bg()),io}var ao,Uf;function UE(){if(Uf)return ao;Uf=1;var e=Jr();function t(r,n){var i=[];return e(r,function(o,s,l){n(o,s,l)&&i.push(o)}),i}return ao=t,ao}var oo,Hf;function xg(){if(Hf)return oo;Hf=1;var e=mg(),t=UE(),r=gt(),n=Ne();function i(o,s){var l=n(o)?e:t;return l(o,r(s,3))}return oo=i,oo}var so,Gf;function HE(){if(Gf)return so;Gf=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return so=r,so}var lo,jf;function Mg(){if(jf)return lo;jf=1;var e=HE(),t=kg();function r(n,i){return n!=null&&t(n,i,e)}return lo=r,lo}var uo,zf;function GE(){if(zf)return uo;zf=1;var e=lu(),t=Xt(),r=cr(),n=Ne(),i=mt(),o=Kt(),s=Fr(),l=dr(),u="[object Map]",c="[object Set]",d=Object.prototype,f=d.hasOwnProperty;function h(m){if(m==null)return!0;if(i(m)&&(n(m)||typeof m=="string"||typeof m.splice=="function"||o(m)||l(m)||r(m)))return!m.length;var C=t(m);if(C==u||C==c)return!m.size;if(s(m))return!e(m).length;for(var y in m)if(f.call(m,y))return!1;return!0}return uo=h,uo}var co,Wf;function qg(){if(Wf)return co;Wf=1;function e(t){return t===void 0}return co=e,co}var fo,Kf;function $g(){if(Kf)return fo;Kf=1;var e=Jr(),t=mt();function r(n,i){var o=-1,s=t(n)?Array(n.length):[];return e(n,function(l,u,c){s[++o]=i(l,u,c)}),s}return fo=r,fo}var ho,Yf;function Fg(){if(Yf)return ho;Yf=1;var e=Wr(),t=gt(),r=$g(),n=Ne();function i(o,s){var l=n(o)?e:r;return l(o,t(s,3))}return ho=i,ho}var po,Xf;function jE(){if(Xf)return po;Xf=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 po=e,po}var mo,Zf;function zE(){if(Zf)return mo;Zf=1;function e(t,r,n,i,o){return o(t,function(s,l,u){n=i?(i=!1,s):r(n,s,l,u)}),n}return mo=e,mo}var go,Jf;function Ug(){if(Jf)return go;Jf=1;var e=jE(),t=Jr(),r=gt(),n=zE(),i=Ne();function o(s,l,u){var c=i(s)?e:n,d=arguments.length<3;return c(s,r(l,4),u,d,t)}return go=o,go}var vo,Qf;function WE(){if(Qf)return vo;Qf=1;var e=Pt(),t=Ne(),r=lt(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return vo=i,vo}var _o,eh;function KE(){if(eh)return _o;eh=1;var e=wg(),t=e("length");return _o=t,_o}var yo,th;function YE(){if(th)return yo;th=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 u(c){return l.test(c)}return yo=u,yo}var Eo,rh;function XE(){if(rh)return Eo;rh=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+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+u+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",C=c+"?",y="["+o+"]?",v="(?:"+m+"(?:"+[d,f,h].join("|")+")"+y+C+")*",p=y+C+v,g="(?:"+[d+l+"?",l,f,h,s].join("|")+")",E=RegExp(u+"(?="+u+")|"+g+p,"g");function _(k){for(var w=E.lastIndex=0;E.test(k);)++w;return w}return Eo=_,Eo}var bo,nh;function ZE(){if(nh)return bo;nh=1;var e=KE(),t=YE(),r=XE();function n(i){return t(i)?r(i):e(i)}return bo=n,bo}var Co,ih;function JE(){if(ih)return Co;ih=1;var e=lu(),t=Xt(),r=mt(),n=WE(),i=ZE(),o="[object Map]",s="[object Set]";function l(u){if(u==null)return 0;if(r(u))return n(u)?i(u):u.length;var c=t(u);return c==o||c==s?u.size:e(u).length}return Co=l,Co}var ko,ah;function QE(){if(ah)return ko;ah=1;var e=vu(),t=Ag(),r=uu(),n=gt(),i=Zr(),o=Ne(),s=Kt(),l=ur(),u=Ke(),c=dr();function d(f,h,m){var C=o(f),y=C||s(f)||c(f);if(h=n(h,4),m==null){var v=f&&f.constructor;y?m=C?new v:[]:u(f)?m=l(v)?t(i(f)):{}:m={}}return(y?e:r)(f,function(p,g,E){return h(m,p,g,E)}),m}return ko=d,ko}var So,oh;function eb(){if(oh)return So;oh=1;var e=Wt(),t=cr(),r=Ne(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return So=i,So}var wo,sh;function Eu(){if(sh)return wo;sh=1;var e=hu(),t=eb();function r(n,i,o,s,l){var u=-1,c=n.length;for(o||(o=t),l||(l=[]);++u<c;){var d=n[u];i>0&&o(d)?i>1?r(d,i-1,o,s,l):e(l,d):s||(l[l.length]=d)}return l}return wo=r,wo}var No,lh;function tb(){if(lh)return No;lh=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 No=e,No}var To,uh;function Hg(){if(uh)return To;uh=1;var e=tb(),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,u=t(s.length-i,0),c=Array(u);++l<u;)c[l]=s[i+l];l=-1;for(var d=Array(i+1);++l<i;)d[l]=s[l];return d[i]=o(c),e(n,this,d)}}return To=r,To}var Lo,ch;function rb(){if(ch)return Lo;ch=1;var e=yu(),t=sg(),r=Vt(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return Lo=n,Lo}var Oo,dh;function nb(){if(dh)return Oo;dh=1;var e=800,t=16,r=Date.now;function n(i){var o=0,s=0;return function(){var l=r(),u=t-(l-s);if(s=l,u>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Oo=n,Oo}var Io,fh;function Gg(){if(fh)return Io;fh=1;var e=rb(),t=nb(),r=t(e);return Io=r,Io}var Ao,hh;function Qr(){if(hh)return Ao;hh=1;var e=Vt(),t=Hg(),r=Gg();function n(i,o){return r(t(i,o,e),i+"")}return Ao=n,Ao}var Ro,ph;function jg(){if(ph)return Ro;ph=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 Ro=e,Ro}var Do,mh;function ib(){if(mh)return Do;mh=1;function e(t){return t!==t}return Do=e,Do}var Po,gh;function ab(){if(gh)return Po;gh=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 Po=e,Po}var Bo,vh;function ob(){if(vh)return Bo;vh=1;var e=jg(),t=ib(),r=ab();function n(i,o,s){return o===o?r(i,o,s):e(i,t,s)}return Bo=n,Bo}var Vo,_h;function sb(){if(_h)return Vo;_h=1;var e=ob();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Vo=t,Vo}var xo,yh;function lb(){if(yh)return xo;yh=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 xo=e,xo}var Mo,Eh;function ub(){if(Eh)return Mo;Eh=1;function e(){}return Mo=e,Mo}var qo,bh;function cb(){if(bh)return qo;bh=1;var e=_g(),t=ub(),r=fu(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return qo=i,qo}var $o,Ch;function db(){if(Ch)return $o;Ch=1;var e=cg(),t=sb(),r=lb(),n=dg(),i=cb(),o=fu(),s=200;function l(u,c,d){var f=-1,h=t,m=u.length,C=!0,y=[],v=y;if(d)C=!1,h=r;else if(m>=s){var p=c?null:i(u);if(p)return o(p);C=!1,h=n,v=new e}else v=c?[]:y;e:for(;++f<m;){var g=u[f],E=c?c(g):g;if(g=d||g!==0?g:0,C&&E===E){for(var _=v.length;_--;)if(v[_]===E)continue e;c&&v.push(E),y.push(g)}else h(v,E,d)||(v!==y&&v.push(E),y.push(g))}return y}return $o=l,$o}var Fo,kh;function zg(){if(kh)return Fo;kh=1;var e=mt(),t=lt();function r(n){return t(n)&&e(n)}return Fo=r,Fo}var Uo,Sh;function fb(){if(Sh)return Uo;Sh=1;var e=Eu(),t=Qr(),r=db(),n=zg(),i=t(function(o){return r(e(o,1,n,!0))});return Uo=i,Uo}var Ho,wh;function hb(){if(wh)return Ho;wh=1;var e=Wr();function t(r,n){return e(n,function(i){return r[i]})}return Ho=t,Ho}var Go,Nh;function Wg(){if(Nh)return Go;Nh=1;var e=hb(),t=St();function r(n){return n==null?[]:e(n,t(n))}return Go=r,Go}var jo,Th;function Ye(){if(Th)return jo;Th=1;var e;if(typeof gu=="function")try{e={clone:$E(),constant:yu(),each:Vg(),filter:xg(),has:Mg(),isArray:Ne(),isEmpty:GE(),isFunction:ur(),isUndefined:qg(),keys:St(),map:Fg(),reduce:Ug(),size:JE(),transform:QE(),union:fb(),values:Wg()}}catch{}return e||(e=window._),jo=e,jo}var zo,Lh;function bu(){if(Lh)return zo;Lh=1;var e=Ye();zo=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,m=this;return e.each(d,function(C){h.length>1?m.setNode(C,f):m.setNode(C)}),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(m){f.removeEdge(f._edgeObjs[m])};delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],e.each(this.children(d),function(m){f.setParent(m)}),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(y,v){d(v)&&f.setNode(v,y)}),e.each(this._edgeObjs,function(y){f.hasNode(y.v)&&f.hasNode(y.w)&&f.setEdge(y,h.edge(y))});var m={};function C(y){var v=h.parent(y);return v===void 0||f.hasNode(v)?(m[y]=v,v):v in m?m[v]:C(v)}return this._isCompound&&e.each(f.nodes(),function(y){f.setParent(y,C(y))}),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,m=arguments;return e.reduce(d,function(C,y){return m.length>1?h.setEdge(C,y,f):h.setEdge(C,y),y}),this},i.prototype.setEdge=function(){var d,f,h,m,C=!1,y=arguments[0];typeof y=="object"&&y!==null&&"v"in y?(d=y.v,f=y.w,h=y.name,arguments.length===2&&(m=arguments[1],C=!0)):(d=y,f=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],C=!0)),d=""+d,f=""+f,e.isUndefined(h)||(h=""+h);var v=l(this._isDirected,d,f,h);if(e.has(this._edgeLabels,v))return C&&(this._edgeLabels[v]=m),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[v]=C?m:this._defaultEdgeLabelFn(d,f,h);var p=u(this._isDirected,d,f,h);return d=p.v,f=p.w,Object.freeze(p),this._edgeObjs[v]=p,o(this._preds[f],d),o(this._sucs[d],f),this._in[f][v]=p,this._out[d][v]=p,this._edgeCount++,this},i.prototype.edge=function(d,f,h){var m=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,f,h);return this._edgeLabels[m]},i.prototype.hasEdge=function(d,f,h){var m=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,f,h);return e.has(this._edgeLabels,m)},i.prototype.removeEdge=function(d,f,h){var m=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,f,h),C=this._edgeObjs[m];return C&&(d=C.v,f=C.w,delete this._edgeLabels[m],delete this._edgeObjs[m],s(this._preds[f],d),s(this._sucs[d],f),delete this._in[f][m],delete this._out[d][m],this._edgeCount--),this},i.prototype.inEdges=function(d,f){var h=this._in[d];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.v===f}):m}},i.prototype.outEdges=function(d,f){var h=this._out[d];if(h){var m=e.values(h);return f?e.filter(m,function(C){return C.w===f}):m}},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,m){var C=""+f,y=""+h;if(!d&&C>y){var v=C;C=y,y=v}return C+n+y+n+(e.isUndefined(m)?t:m)}function u(d,f,h,m){var C=""+f,y=""+h;if(!d&&C>y){var v=C;C=y,y=v}var p={v:C,w:y};return m&&(p.name=m),p}function c(d,f){return l(d,f.v,f.w,f.name)}return zo}var Wo,Oh;function pb(){return Oh||(Oh=1,Wo="2.1.8"),Wo}var Ko,Ih;function mb(){return Ih||(Ih=1,Ko={Graph:bu(),version:pb()}),Ko}var Yo,Ah;function gb(){if(Ah)return Yo;Ah=1;var e=Ye(),t=bu();Yo={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 u=s.node(l),c=s.parent(l),d={v:l};return e.isUndefined(u)||(d.value=u),e.isUndefined(c)||(d.parent=c),d})}function i(s){return e.map(s.edges(),function(l){var u=s.edge(l),c={v:l.v,w:l.w};return e.isUndefined(l.name)||(c.name=l.name),e.isUndefined(u)||(c.value=u),c})}function o(s){var l=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(u){l.setNode(u.v,u.value),u.parent&&l.setParent(u.v,u.parent)}),e.each(s.edges,function(u){l.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),l}return Yo}var Xo,Rh;function vb(){if(Rh)return Xo;Rh=1;var e=Ye();Xo=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 Xo}var Zo,Dh;function Kg(){if(Dh)return Zo;Dh=1;var e=Ye();Zo=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},Zo}var Jo,Ph;function Yg(){if(Ph)return Jo;Ph=1;var e=Ye(),t=Kg();Jo=n;var r=e.constant(1);function n(o,s,l,u){return i(o,String(s),l||r,u||function(c){return o.outEdges(c)})}function i(o,s,l,u){var c={},d=new t,f,h,m=function(C){var y=C.v!==f?C.v:C.w,v=c[y],p=l(C),g=h.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+C+" Weight: "+p);g<v.distance&&(v.distance=g,v.predecessor=f,d.decrease(y,g))};for(o.nodes().forEach(function(C){var y=C===s?0:Number.POSITIVE_INFINITY;c[C]={distance:y},d.add(C,y)});d.size()>0&&(f=d.removeMin(),h=c[f],h.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(m);return c}return Jo}var Qo,Bh;function _b(){if(Bh)return Qo;Bh=1;var e=Yg(),t=Ye();Qo=r;function r(n,i,o){return t.transform(n.nodes(),function(s,l){s[l]=e(n,l,i,o)},{})}return Qo}var es,Vh;function Xg(){if(Vh)return es;Vh=1;var e=Ye();es=t;function t(r){var n=0,i=[],o={},s=[];function l(u){var c=o[u]={onStack:!0,lowlink:n,index:n++};if(i.push(u),r.successors(u).forEach(function(h){e.has(o,h)?o[h].onStack&&(c.lowlink=Math.min(c.lowlink,o[h].index)):(l(h),c.lowlink=Math.min(c.lowlink,o[h].lowlink))}),c.lowlink===c.index){var d=[],f;do f=i.pop(),o[f].onStack=!1,d.push(f);while(u!==f);s.push(d)}}return r.nodes().forEach(function(u){e.has(o,u)||l(u)}),s}return es}var ts,xh;function yb(){if(xh)return ts;xh=1;var e=Ye(),t=Xg();ts=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 ts}var rs,Mh;function Eb(){if(Mh)return rs;Mh=1;var e=Ye();rs=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={},u=i.nodes();return u.forEach(function(c){l[c]={},l[c][c]={distance:0},u.forEach(function(d){c!==d&&(l[c][d]={distance:Number.POSITIVE_INFINITY})}),s(c).forEach(function(d){var f=d.v===c?d.w:d.v,h=o(d);l[c][f]={distance:h,predecessor:c}})}),u.forEach(function(c){var d=l[c];u.forEach(function(f){var h=l[f];u.forEach(function(m){var C=h[c],y=d[m],v=h[m],p=C.distance+y.distance;p<v.distance&&(v.distance=p,v.predecessor=y.predecessor)})})}),l}return rs}var ns,qh;function Zg(){if(qh)return ns;qh=1;var e=Ye();ns=t,t.CycleException=r;function t(n){var i={},o={},s=[];function l(u){if(e.has(o,u))throw new r;e.has(i,u)||(o[u]=!0,i[u]=!0,e.each(n.predecessors(u),l),delete o[u],s.push(u))}if(e.each(n.sinks(),l),e.size(i)!==n.nodeCount())throw new r;return s}function r(){}return r.prototype=new Error,ns}var is,$h;function bb(){if($h)return is;$h=1;var e=Zg();is=t;function t(r){try{e(r)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}return is}var as,Fh;function Jg(){if(Fh)return as;Fh=1;var e=Ye();as=t;function t(n,i,o){e.isArray(i)||(i=[i]);var s=(n.isDirected()?n.successors:n.neighbors).bind(n),l=[],u={};return e.each(i,function(c){if(!n.hasNode(c))throw new Error("Graph does not have node: "+c);r(n,c,o==="post",u,s,l)}),l}function r(n,i,o,s,l,u){e.has(s,i)||(s[i]=!0,o||u.push(i),e.each(l(i),function(c){r(n,c,o,s,l,u)}),o&&u.push(i))}return as}var os,Uh;function Cb(){if(Uh)return os;Uh=1;var e=Jg();os=t;function t(r,n){return e(r,n,"post")}return os}var ss,Hh;function kb(){if(Hh)return ss;Hh=1;var e=Jg();ss=t;function t(r,n){return e(r,n,"pre")}return ss}var ls,Gh;function Sb(){if(Gh)return ls;Gh=1;var e=Ye(),t=bu(),r=Kg();ls=n;function n(i,o){var s=new t,l={},u=new r,c;function d(h){var m=h.v===c?h.w:h.v,C=u.priority(m);if(C!==void 0){var y=o(h);y<C&&(l[m]=c,u.decrease(m,y))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(h){u.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),u.decrease(i.nodes()[0],0);for(var f=!1;u.size()>0;){if(c=u.removeMin(),e.has(l,c))s.setEdge(c,l[c]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(c).forEach(d)}return s}return ls}var us,jh;function wb(){return jh||(jh=1,us={components:vb(),dijkstra:Yg(),dijkstraAll:_b(),findCycles:yb(),floydWarshall:Eb(),isAcyclic:bb(),postorder:Cb(),preorder:kb(),prim:Sb(),tarjan:Xg(),topsort:Zg()}),us}var cs,zh;function Nb(){if(zh)return cs;zh=1;var e=mb();return cs={Graph:e.Graph,json:gb(),alg:wb(),version:e.version},cs}var ds,Wh;function Je(){if(Wh)return ds;Wh=1;var e;if(typeof gu=="function")try{e=Nb()}catch{}return e||(e=window.graphlib),ds=e,ds}var fs,Kh;function Tb(){if(Kh)return fs;Kh=1;var e=Dg(),t=1,r=4;function n(i){return e(i,t|r)}return fs=n,fs}var hs,Yh;function en(){if(Yh)return hs;Yh=1;var e=Yt(),t=mt(),r=qr(),n=Ke();function i(o,s,l){if(!n(l))return!1;var u=typeof s;return(u=="number"?t(l)&&r(s,l.length):u=="string"&&s in l)?e(l[s],o):!1}return hs=i,hs}var ps,Xh;function Lb(){if(Xh)return ps;Xh=1;var e=Qr(),t=Yt(),r=en(),n=xt(),i=Object.prototype,o=i.hasOwnProperty,s=e(function(l,u){l=Object(l);var c=-1,d=u.length,f=d>2?u[2]:void 0;for(f&&r(u[0],u[1],f)&&(d=1);++c<d;)for(var h=u[c],m=n(h),C=-1,y=m.length;++C<y;){var v=m[C],p=l[v];(p===void 0||t(p,i[v])&&!o.call(l,v))&&(l[v]=h[v])}return l});return ps=s,ps}var ms,Zh;function Ob(){if(Zh)return ms;Zh=1;var e=gt(),t=mt(),r=St();function n(i){return function(o,s,l){var u=Object(o);if(!t(o)){var c=e(s,3);o=r(o),s=function(f){return c(u[f],f,u)}}var d=i(o,s,l);return d>-1?u[c?o[d]:d]:void 0}}return ms=n,ms}var gs,Jh;function Ib(){if(Jh)return gs;Jh=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return gs=t,gs}var vs,Qh;function Ab(){if(Qh)return vs;Qh=1;var e=Ib(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return vs=r,vs}var _s,ep;function Rb(){if(ep)return _s;ep=1;var e=Ab(),t=Ke(),r=Zt(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=o.test(c);return f||s.test(c)?l(c.slice(2),f?2:8):i.test(c)?n:+c}return _s=u,_s}var ys,tp;function Qg(){if(tp)return ys;tp=1;var e=Rb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var o=i<0?-1:1;return o*r}return i===i?i:0}return ys=n,ys}var Es,rp;function Db(){if(rp)return Es;rp=1;var e=Qg();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Es=t,Es}var bs,np;function Pb(){if(np)return bs;np=1;var e=jg(),t=gt(),r=Db(),n=Math.max;function i(o,s,l){var u=o==null?0:o.length;if(!u)return-1;var c=l==null?0:r(l);return c<0&&(c=n(u+c,0)),e(o,t(s,3),c)}return bs=i,bs}var Cs,ip;function Bb(){if(ip)return Cs;ip=1;var e=Ob(),t=Pb(),r=e(t);return Cs=r,Cs}var ks,ap;function ev(){if(ap)return ks;ap=1;var e=Eu();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return ks=t,ks}var Ss,op;function Vb(){if(op)return Ss;op=1;var e=au(),t=Pg(),r=xt();function n(i,o){return i==null?i:e(i,t(o),r)}return Ss=n,Ss}var ws,sp;function xb(){if(sp)return ws;sp=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ws=e,ws}var Ns,lp;function Cu(){if(lp)return Ns;lp=1;var e=Zt();function t(r,n,i){for(var o=-1,s=r.length;++o<s;){var l=r[o],u=n(l);if(u!=null&&(c===void 0?u===u&&!e(u):i(u,c)))var c=u,d=l}return d}return Ns=t,Ns}var Ts,up;function Mb(){if(up)return Ts;up=1;function e(t,r){return t>r}return Ts=e,Ts}var Ls,cp;function qb(){if(cp)return Ls;cp=1;var e=Cu(),t=Mb(),r=Vt();function n(i){return i&&i.length?e(i,r,t):void 0}return Ls=n,Ls}var Os,dp;function tv(){if(dp)return Os;dp=1;var e=Mr(),t=Yt();function r(n,i,o){(o!==void 0&&!t(n[i],o)||o===void 0&&!(i in n))&&e(n,i,o)}return Os=r,Os}var Is,fp;function $b(){if(fp)return Is;fp=1;var e=Pt(),t=Zr(),r=lt(),n="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,l=o.hasOwnProperty,u=s.call(Object);function c(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)==u}return Is=c,Is}var As,hp;function rv(){if(hp)return As;hp=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return As=e,As}var Rs,pp;function Fb(){if(pp)return Rs;pp=1;var e=hr(),t=xt();function r(n){return e(n,t(n))}return Rs=r,Rs}var Ds,mp;function Ub(){if(mp)return Ds;mp=1;var e=tv(),t=Tg(),r=Ig(),n=Lg(),i=Rg(),o=cr(),s=Ne(),l=zg(),u=Kt(),c=ur(),d=Ke(),f=$b(),h=dr(),m=rv(),C=Fb();function y(v,p,g,E,_,k,w){var b=m(v,g),L=m(p,g),T=w.get(L);if(T){e(v,g,T);return}var A=k?k(b,L,g+"",v,p,w):void 0,D=A===void 0;if(D){var $=s(L),z=!$&&u(L),Z=!$&&!z&&h(L);A=L,$||z||Z?s(b)?A=b:l(b)?A=n(b):z?(D=!1,A=t(L,!0)):Z?(D=!1,A=r(L,!0)):A=[]:f(L)||o(L)?(A=b,o(b)?A=C(b):(!d(b)||c(b))&&(A=i(L))):D=!1}D&&(w.set(L,A),_(A,L,E,k,w),w.delete(L)),e(v,g,A)}return Ds=y,Ds}var Ps,gp;function Hb(){if(gp)return Ps;gp=1;var e=zr(),t=tv(),r=au(),n=Ub(),i=Ke(),o=xt(),s=rv();function l(u,c,d,f,h){u!==c&&r(c,function(m,C){if(h||(h=new e),i(m))n(u,c,C,d,l,f,h);else{var y=f?f(s(u,C),m,C+"",u,c,h):void 0;y===void 0&&(y=m),t(u,C,y)}},o)}return Ps=l,Ps}var Bs,vp;function Gb(){if(vp)return Bs;vp=1;var e=Qr(),t=en();function r(n){return e(function(i,o){var s=-1,l=o.length,u=l>1?o[l-1]:void 0,c=l>2?o[2]:void 0;for(u=n.length>3&&typeof u=="function"?(l--,u):void 0,c&&t(o[0],o[1],c)&&(u=l<3?void 0:u,l=1),i=Object(i);++s<l;){var d=o[s];d&&n(i,d,s,u)}return i})}return Bs=r,Bs}var Vs,_p;function jb(){if(_p)return Vs;_p=1;var e=Hb(),t=Gb(),r=t(function(n,i,o){e(n,i,o)});return Vs=r,Vs}var xs,yp;function nv(){if(yp)return xs;yp=1;function e(t,r){return t<r}return xs=e,xs}var Ms,Ep;function zb(){if(Ep)return Ms;Ep=1;var e=Cu(),t=nv(),r=Vt();function n(i){return i&&i.length?e(i,r,t):void 0}return Ms=n,Ms}var qs,bp;function Wb(){if(bp)return qs;bp=1;var e=Cu(),t=gt(),r=nv();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return qs=n,qs}var $s,Cp;function Kb(){if(Cp)return $s;Cp=1;var e=et(),t=function(){return e.Date.now()};return $s=t,$s}var Fs,kp;function Yb(){if(kp)return Fs;kp=1;var e=Xr(),t=Kr(),r=qr(),n=Ke(),i=fr();function o(s,l,u,c){if(!n(s))return s;l=t(l,s);for(var d=-1,f=l.length,h=f-1,m=s;m!=null&&++d<f;){var C=i(l[d]),y=u;if(C==="__proto__"||C==="constructor"||C==="prototype")return s;if(d!=h){var v=m[C];y=c?c(v,C,m):void 0,y===void 0&&(y=n(v)?v:r(l[d+1])?[]:{})}e(m,C,y),m=m[C]}return s}return Fs=o,Fs}var Us,Sp;function Xb(){if(Sp)return Us;Sp=1;var e=Yr(),t=Yb(),r=Kr();function n(i,o,s){for(var l=-1,u=o.length,c={};++l<u;){var d=o[l],f=e(i,d);s(f,d)&&t(c,r(d,i),f)}return c}return Us=n,Us}var Hs,wp;function Zb(){if(wp)return Hs;wp=1;var e=Xb(),t=Sg();function r(n,i){return e(n,i,function(o,s){return t(n,s)})}return Hs=r,Hs}var Gs,Np;function Jb(){if(Np)return Gs;Np=1;var e=ev(),t=Hg(),r=Gg();function n(i){return r(t(i,void 0,e),i+"")}return Gs=n,Gs}var js,Tp;function Qb(){if(Tp)return js;Tp=1;var e=Zb(),t=Jb(),r=t(function(n,i){return n==null?{}:e(n,i)});return js=r,js}var zs,Lp;function e0(){if(Lp)return zs;Lp=1;var e=Math.ceil,t=Math.max;function r(n,i,o,s){for(var l=-1,u=t(e((i-n)/(o||1)),0),c=Array(u);u--;)c[s?u:++l]=n,n+=o;return c}return zs=r,zs}var Ws,Op;function t0(){if(Op)return Ws;Op=1;var e=e0(),t=en(),r=Qg();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 Ws=n,Ws}var Ks,Ip;function r0(){if(Ip)return Ks;Ip=1;var e=t0(),t=e();return Ks=t,Ks}var Ys,Ap;function n0(){if(Ap)return Ys;Ap=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ys=e,Ys}var Xs,Rp;function i0(){if(Rp)return Xs;Rp=1;var e=Zt();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,s=r===r,l=e(r),u=n!==void 0,c=n===null,d=n===n,f=e(n);if(!c&&!f&&!l&&r>n||l&&u&&d&&!c&&!f||o&&u&&d||!i&&d||!s)return 1;if(!o&&!l&&!f&&r<n||f&&i&&s&&!o&&!l||c&&i&&s||!u&&s||!d)return-1}return 0}return Xs=t,Xs}var Zs,Dp;function a0(){if(Dp)return Zs;Dp=1;var e=i0();function t(r,n,i){for(var o=-1,s=r.criteria,l=n.criteria,u=s.length,c=i.length;++o<u;){var d=e(s[o],l[o]);if(d){if(o>=c)return d;var f=i[o];return d*(f=="desc"?-1:1)}}return r.index-n.index}return Zs=t,Zs}var Js,Pp;function o0(){if(Pp)return Js;Pp=1;var e=Wr(),t=Yr(),r=gt(),n=$g(),i=n0(),o=$r(),s=a0(),l=Vt(),u=Ne();function c(d,f,h){f.length?f=e(f,function(y){return u(y)?function(v){return t(v,y.length===1?y[0]:y)}:y}):f=[l];var m=-1;f=e(f,o(r));var C=n(d,function(y,v,p){var g=e(f,function(E){return E(y)});return{criteria:g,index:++m,value:y}});return i(C,function(y,v){return s(y,v,h)})}return Js=c,Js}var Qs,Bp;function s0(){if(Bp)return Qs;Bp=1;var e=Eu(),t=o0(),r=Qr(),n=en(),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 Qs=i,Qs}var el,Vp;function l0(){if(Vp)return el;Vp=1;var e=Cg(),t=0;function r(n){var i=++t;return e(n)+i}return el=r,el}var tl,xp;function u0(){if(xp)return tl;xp=1;function e(t,r,n){for(var i=-1,o=t.length,s=r.length,l={};++i<o;){var u=i<s?r[i]:void 0;n(l,t[i],u)}return l}return tl=e,tl}var rl,Mp;function c0(){if(Mp)return rl;Mp=1;var e=Xr(),t=u0();function r(n,i){return t(n||[],i||[],e)}return rl=r,rl}var nl,qp;function Ee(){if(qp)return nl;qp=1;var e;if(typeof gu=="function")try{e={cloneDeep:Tb(),constant:yu(),defaults:Lb(),each:Vg(),filter:xg(),find:Bb(),flatten:ev(),forEach:Bg(),forIn:Vb(),has:Mg(),isUndefined:qg(),last:xb(),map:Fg(),mapValues:Ng(),max:qb(),merge:jb(),min:zb(),minBy:Wb(),now:Kb(),pick:Qb(),range:r0(),reduce:Ug(),sortBy:s0(),uniqueId:l0(),values:Wg(),zipObject:c0()}}catch{}return e||(e=window._),nl=e,nl}var il,$p;function d0(){if($p)return il;$p=1,il=e;function e(){var n={};n._next=n._prev=n,this._sentinel=n}e.prototype.dequeue=function(){var n=this._sentinel,i=n._prev;if(i!==n)return t(i),i},e.prototype.enqueue=function(n){var i=this._sentinel;n._prev&&n._next&&t(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i},e.prototype.toString=function(){for(var n=[],i=this._sentinel,o=i._prev;o!==i;)n.push(JSON.stringify(o,r)),o=o._prev;return"["+n.join(", ")+"]"};function t(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function r(n,i){if(n!=="_next"&&n!=="_prev")return i}return il}var al,Fp;function f0(){if(Fp)return al;Fp=1;var e=Ee(),t=Je().Graph,r=d0();al=i;var n=e.constant(1);function i(c,d){if(c.nodeCount()<=1)return[];var f=l(c,d||n),h=o(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(m){return c.outEdges(m.v,m.w)}),!0)}function o(c,d,f){for(var h=[],m=d[d.length-1],C=d[0],y;c.nodeCount();){for(;y=C.dequeue();)s(c,d,f,y);for(;y=m.dequeue();)s(c,d,f,y);if(c.nodeCount()){for(var v=d.length-2;v>0;--v)if(y=d[v].dequeue(),y){h=h.concat(s(c,d,f,y,!0));break}}}return h}function s(c,d,f,h,m){var C=m?[]:void 0;return e.forEach(c.inEdges(h.v),function(y){var v=c.edge(y),p=c.node(y.v);m&&C.push({v:y.v,w:y.w}),p.out-=v,u(d,f,p)}),e.forEach(c.outEdges(h.v),function(y){var v=c.edge(y),p=y.w,g=c.node(p);g.in-=v,u(d,f,g)}),c.removeNode(h.v),C}function l(c,d){var f=new t,h=0,m=0;e.forEach(c.nodes(),function(v){f.setNode(v,{v,in:0,out:0})}),e.forEach(c.edges(),function(v){var p=f.edge(v.v,v.w)||0,g=d(v),E=p+g;f.setEdge(v.v,v.w,E),m=Math.max(m,f.node(v.v).out+=g),h=Math.max(h,f.node(v.w).in+=g)});var C=e.range(m+h+3).map(function(){return new r}),y=h+1;return e.forEach(f.nodes(),function(v){u(C,y,f.node(v))}),{graph:f,buckets:C,zeroIdx:y}}function u(c,d,f){f.out?f.in?c[f.out-f.in+d].enqueue(f):c[c.length-1].enqueue(f):c[0].enqueue(f)}return al}var ol,Up;function h0(){if(Up)return ol;Up=1;var e=Ee(),t=f0();ol={run:r,undo:i};function r(o){var s=o.graph().acyclicer==="greedy"?t(o,l(o)):n(o);e.forEach(s,function(u){var c=o.edge(u);o.removeEdge(u),c.forwardName=u.name,c.reversed=!0,o.setEdge(u.w,u.v,c,e.uniqueId("rev"))});function l(u){return function(c){return u.edge(c).weight}}}function n(o){var s=[],l={},u={};function c(d){e.has(u,d)||(u[d]=!0,l[d]=!0,e.forEach(o.outEdges(d),function(f){e.has(l,f.w)?s.push(f):c(f.w)}),delete l[d])}return e.forEach(o.nodes(),c),s}function i(o){e.forEach(o.edges(),function(s){var l=o.edge(s);if(l.reversed){o.removeEdge(s);var u=l.forwardName;delete l.reversed,delete l.forwardName,o.setEdge(s.w,s.v,l,u)}})}return ol}var sl,Hp;function Me(){if(Hp)return sl;Hp=1;var e=Ee(),t=Je().Graph;sl={addDummyNode:r,simplify:n,asNonCompoundGraph:i,successorWeights:o,predecessorWeights:s,intersectRect:l,buildLayerMatrix:u,normalizeRanks:c,removeEmptyRanks:d,addBorderNode:f,maxRank:h,partition:m,time:C,notime:y};function r(v,p,g,E){var _;do _=e.uniqueId(E);while(v.hasNode(_));return g.dummy=p,v.setNode(_,g),_}function n(v){var p=new t().setGraph(v.graph());return e.forEach(v.nodes(),function(g){p.setNode(g,v.node(g))}),e.forEach(v.edges(),function(g){var E=p.edge(g.v,g.w)||{weight:0,minlen:1},_=v.edge(g);p.setEdge(g.v,g.w,{weight:E.weight+_.weight,minlen:Math.max(E.minlen,_.minlen)})}),p}function i(v){var p=new t({multigraph:v.isMultigraph()}).setGraph(v.graph());return e.forEach(v.nodes(),function(g){v.children(g).length||p.setNode(g,v.node(g))}),e.forEach(v.edges(),function(g){p.setEdge(g,v.edge(g))}),p}function o(v){var p=e.map(v.nodes(),function(g){var E={};return e.forEach(v.outEdges(g),function(_){E[_.w]=(E[_.w]||0)+v.edge(_).weight}),E});return e.zipObject(v.nodes(),p)}function s(v){var p=e.map(v.nodes(),function(g){var E={};return e.forEach(v.inEdges(g),function(_){E[_.v]=(E[_.v]||0)+v.edge(_).weight}),E});return e.zipObject(v.nodes(),p)}function l(v,p){var g=v.x,E=v.y,_=p.x-g,k=p.y-E,w=v.width/2,b=v.height/2;if(!_&&!k)throw new Error("Not possible to find intersection inside of the rectangle");var L,T;return Math.abs(k)*w>Math.abs(_)*b?(k<0&&(b=-b),L=b*_/k,T=b):(_<0&&(w=-w),L=w,T=w*k/_),{x:g+L,y:E+T}}function u(v){var p=e.map(e.range(h(v)+1),function(){return[]});return e.forEach(v.nodes(),function(g){var E=v.node(g),_=E.rank;e.isUndefined(_)||(p[_][E.order]=g)}),p}function c(v){var p=e.min(e.map(v.nodes(),function(g){return v.node(g).rank}));e.forEach(v.nodes(),function(g){var E=v.node(g);e.has(E,"rank")&&(E.rank-=p)})}function d(v){var p=e.min(e.map(v.nodes(),function(k){return v.node(k).rank})),g=[];e.forEach(v.nodes(),function(k){var w=v.node(k).rank-p;g[w]||(g[w]=[]),g[w].push(k)});var E=0,_=v.graph().nodeRankFactor;e.forEach(g,function(k,w){e.isUndefined(k)&&w%_!==0?--E:E&&e.forEach(k,function(b){v.node(b).rank+=E})})}function f(v,p,g,E){var _={width:0,height:0};return arguments.length>=4&&(_.rank=g,_.order=E),r(v,"border",_,p)}function h(v){return e.max(e.map(v.nodes(),function(p){var g=v.node(p).rank;if(!e.isUndefined(g))return g}))}function m(v,p){var g={lhs:[],rhs:[]};return e.forEach(v,function(E){p(E)?g.lhs.push(E):g.rhs.push(E)}),g}function C(v,p){var g=e.now();try{return p()}finally{console.log(v+" time: "+(e.now()-g)+"ms")}}function y(v,p){return p()}return sl}var ll,Gp;function p0(){if(Gp)return ll;Gp=1;var e=Ee(),t=Me();ll={run:r,undo:i};function r(o){o.graph().dummyChains=[],e.forEach(o.edges(),function(s){n(o,s)})}function n(o,s){var l=s.v,u=o.node(l).rank,c=s.w,d=o.node(c).rank,f=s.name,h=o.edge(s),m=h.labelRank;if(d!==u+1){o.removeEdge(s);var C,y,v;for(v=0,++u;u<d;++v,++u)h.points=[],y={width:0,height:0,edgeLabel:h,edgeObj:s,rank:u},C=t.addDummyNode(o,"edge",y,"_d"),u===m&&(y.width=h.width,y.height=h.height,y.dummy="edge-label",y.labelpos=h.labelpos),o.setEdge(l,C,{weight:h.weight},f),v===0&&o.graph().dummyChains.push(C),l=C;o.setEdge(l,c,{weight:h.weight},f)}}function i(o){e.forEach(o.graph().dummyChains,function(s){var l=o.node(s),u=l.edgeLabel,c;for(o.setEdge(l.edgeObj,u);l.dummy;)c=o.successors(s)[0],o.removeNode(s),u.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(u.x=l.x,u.y=l.y,u.width=l.width,u.height=l.height),s=c,l=o.node(s)})}return ll}var ul,jp;function Lr(){if(jp)return ul;jp=1;var e=Ee();ul={longestPath:t,slack:r};function t(n){var i={};function o(s){var l=n.node(s);if(e.has(i,s))return l.rank;i[s]=!0;var u=e.min(e.map(n.outEdges(s),function(c){return o(c.w)-n.edge(c).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),l.rank=u}e.forEach(n.sources(),o)}function r(n,i){return n.node(i.w).rank-n.node(i.v).rank-n.edge(i).minlen}return ul}var cl,zp;function iv(){if(zp)return cl;zp=1;var e=Ee(),t=Je().Graph,r=Lr().slack;cl=n;function n(l){var u=new t({directed:!1}),c=l.nodes()[0],d=l.nodeCount();u.setNode(c,{});for(var f,h;i(u,l)<d;)f=o(u,l),h=u.hasNode(f.v)?r(l,f):-r(l,f),s(u,l,h);return u}function i(l,u){function c(d){e.forEach(u.nodeEdges(d),function(f){var h=f.v,m=d===h?f.w:h;!l.hasNode(m)&&!r(u,f)&&(l.setNode(m,{}),l.setEdge(d,m,{}),c(m))})}return e.forEach(l.nodes(),c),l.nodeCount()}function o(l,u){return e.minBy(u.edges(),function(c){if(l.hasNode(c.v)!==l.hasNode(c.w))return r(u,c)})}function s(l,u,c){e.forEach(l.nodes(),function(d){u.node(d).rank+=c})}return cl}var dl,Wp;function m0(){if(Wp)return dl;Wp=1;var e=Ee(),t=iv(),r=Lr().slack,n=Lr().longestPath,i=Je().alg.preorder,o=Je().alg.postorder,s=Me().simplify;dl=l,l.initLowLimValues=f,l.initCutValues=u,l.calcCutValue=d,l.leaveEdge=m,l.enterEdge=C,l.exchangeEdges=y;function l(E){E=s(E),n(E);var _=t(E);f(_),u(_,E);for(var k,w;k=m(_);)w=C(_,E,k),y(_,E,k,w)}function u(E,_){var k=o(E,E.nodes());k=k.slice(0,k.length-1),e.forEach(k,function(w){c(E,_,w)})}function c(E,_,k){var w=E.node(k),b=w.parent;E.edge(k,b).cutvalue=d(E,_,k)}function d(E,_,k){var w=E.node(k),b=w.parent,L=!0,T=_.edge(k,b),A=0;return T||(L=!1,T=_.edge(b,k)),A=T.weight,e.forEach(_.nodeEdges(k),function(D){var $=D.v===k,z=$?D.w:D.v;if(z!==b){var Z=$===L,V=_.edge(D).weight;if(A+=Z?V:-V,p(E,k,z)){var R=E.edge(k,z).cutvalue;A+=Z?-R:R}}}),A}function f(E,_){arguments.length<2&&(_=E.nodes()[0]),h(E,{},1,_)}function h(E,_,k,w,b){var L=k,T=E.node(w);return _[w]=!0,e.forEach(E.neighbors(w),function(A){e.has(_,A)||(k=h(E,_,k,A,w))}),T.low=L,T.lim=k++,b?T.parent=b:delete T.parent,k}function m(E){return e.find(E.edges(),function(_){return E.edge(_).cutvalue<0})}function C(E,_,k){var w=k.v,b=k.w;_.hasEdge(w,b)||(w=k.w,b=k.v);var L=E.node(w),T=E.node(b),A=L,D=!1;L.lim>T.lim&&(A=T,D=!0);var $=e.filter(_.edges(),function(z){return D===g(E,E.node(z.v),A)&&D!==g(E,E.node(z.w),A)});return e.minBy($,function(z){return r(_,z)})}function y(E,_,k,w){var b=k.v,L=k.w;E.removeEdge(b,L),E.setEdge(w.v,w.w,{}),f(E),u(E,_),v(E,_)}function v(E,_){var k=e.find(E.nodes(),function(b){return!_.node(b).parent}),w=i(E,k);w=w.slice(1),e.forEach(w,function(b){var L=E.node(b).parent,T=_.edge(b,L),A=!1;T||(T=_.edge(L,b),A=!0),_.node(b).rank=_.node(L).rank+(A?T.minlen:-T.minlen)})}function p(E,_,k){return E.hasEdge(_,k)}function g(E,_,k){return k.low<=_.lim&&_.lim<=k.lim}return dl}var fl,Kp;function g0(){if(Kp)return fl;Kp=1;var e=Lr(),t=e.longestPath,r=iv(),n=m0();fl=i;function i(u){switch(u.graph().ranker){case"network-simplex":l(u);break;case"tight-tree":s(u);break;case"longest-path":o(u);break;default:l(u)}}var o=t;function s(u){t(u),r(u)}function l(u){n(u)}return fl}var hl,Yp;function v0(){if(Yp)return hl;Yp=1;var e=Ee();hl=t;function t(i){var o=n(i);e.forEach(i.graph().dummyChains,function(s){for(var l=i.node(s),u=l.edgeObj,c=r(i,o,u.v,u.w),d=c.path,f=c.lca,h=0,m=d[h],C=!0;s!==u.w;){if(l=i.node(s),C){for(;(m=d[h])!==f&&i.node(m).maxRank<l.rank;)h++;m===f&&(C=!1)}if(!C){for(;h<d.length-1&&i.node(m=d[h+1]).minRank<=l.rank;)h++;m=d[h]}i.setParent(s,m),s=i.successors(s)[0]}})}function r(i,o,s,l){var u=[],c=[],d=Math.min(o[s].low,o[l].low),f=Math.max(o[s].lim,o[l].lim),h,m;h=s;do h=i.parent(h),u.push(h);while(h&&(o[h].low>d||f>o[h].lim));for(m=h,h=l;(h=i.parent(h))!==m;)c.push(h);return{path:u.concat(c.reverse()),lca:m}}function n(i){var o={},s=0;function l(u){var c=s;e.forEach(i.children(u),l),o[u]={low:c,lim:s++}}return e.forEach(i.children(),l),o}return hl}var pl,Xp;function _0(){if(Xp)return pl;Xp=1;var e=Ee(),t=Me();pl={run:r,cleanup:s};function r(l){var u=t.addDummyNode(l,"root",{},"_root"),c=i(l),d=e.max(e.values(c))-1,f=2*d+1;l.graph().nestingRoot=u,e.forEach(l.edges(),function(m){l.edge(m).minlen*=f});var h=o(l)+1;e.forEach(l.children(),function(m){n(l,u,f,h,d,c,m)}),l.graph().nodeRankFactor=f}function n(l,u,c,d,f,h,m){var C=l.children(m);if(!C.length){m!==u&&l.setEdge(u,m,{weight:0,minlen:c});return}var y=t.addBorderNode(l,"_bt"),v=t.addBorderNode(l,"_bb"),p=l.node(m);l.setParent(y,m),p.borderTop=y,l.setParent(v,m),p.borderBottom=v,e.forEach(C,function(g){n(l,u,c,d,f,h,g);var E=l.node(g),_=E.borderTop?E.borderTop:g,k=E.borderBottom?E.borderBottom:g,w=E.borderTop?d:2*d,b=_!==k?1:f-h[m]+1;l.setEdge(y,_,{weight:w,minlen:b,nestingEdge:!0}),l.setEdge(k,v,{weight:w,minlen:b,nestingEdge:!0})}),l.parent(m)||l.setEdge(u,y,{weight:0,minlen:f+h[m]})}function i(l){var u={};function c(d,f){var h=l.children(d);h&&h.length&&e.forEach(h,function(m){c(m,f+1)}),u[d]=f}return e.forEach(l.children(),function(d){c(d,1)}),u}function o(l){return e.reduce(l.edges(),function(u,c){return u+l.edge(c).weight},0)}function s(l){var u=l.graph();l.removeNode(u.nestingRoot),delete u.nestingRoot,e.forEach(l.edges(),function(c){var d=l.edge(c);d.nestingEdge&&l.removeEdge(c)})}return pl}var ml,Zp;function y0(){if(Zp)return ml;Zp=1;var e=Ee(),t=Me();ml=r;function r(i){function o(s){var l=i.children(s),u=i.node(s);if(l.length&&e.forEach(l,o),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var c=u.minRank,d=u.maxRank+1;c<d;++c)n(i,"borderLeft","_bl",s,u,c),n(i,"borderRight","_br",s,u,c)}}e.forEach(i.children(),o)}function n(i,o,s,l,u,c){var d={width:0,height:0,rank:c,borderType:o},f=u[o][c-1],h=t.addDummyNode(i,"border",d,s);u[o][c]=h,i.setParent(h,l),f&&i.setEdge(f,h,{weight:1})}return ml}var gl,Jp;function E0(){if(Jp)return gl;Jp=1;var e=Ee();gl={adjust:t,undo:r};function t(c){var d=c.graph().rankdir.toLowerCase();(d==="lr"||d==="rl")&&n(c)}function r(c){var d=c.graph().rankdir.toLowerCase();(d==="bt"||d==="rl")&&o(c),(d==="lr"||d==="rl")&&(l(c),n(c))}function n(c){e.forEach(c.nodes(),function(d){i(c.node(d))}),e.forEach(c.edges(),function(d){i(c.edge(d))})}function i(c){var d=c.width;c.width=c.height,c.height=d}function o(c){e.forEach(c.nodes(),function(d){s(c.node(d))}),e.forEach(c.edges(),function(d){var f=c.edge(d);e.forEach(f.points,s),e.has(f,"y")&&s(f)})}function s(c){c.y=-c.y}function l(c){e.forEach(c.nodes(),function(d){u(c.node(d))}),e.forEach(c.edges(),function(d){var f=c.edge(d);e.forEach(f.points,u),e.has(f,"x")&&u(f)})}function u(c){var d=c.x;c.x=c.y,c.y=d}return gl}var vl,Qp;function b0(){if(Qp)return vl;Qp=1;var e=Ee();vl=t;function t(r){var n={},i=e.filter(r.nodes(),function(c){return!r.children(c).length}),o=e.max(e.map(i,function(c){return r.node(c).rank})),s=e.map(e.range(o+1),function(){return[]});function l(c){if(!e.has(n,c)){n[c]=!0;var d=r.node(c);s[d.rank].push(c),e.forEach(r.successors(c),l)}}var u=e.sortBy(i,function(c){return r.node(c).rank});return e.forEach(u,l),s}return vl}var _l,em;function C0(){if(em)return _l;em=1;var e=Ee();_l=t;function t(n,i){for(var o=0,s=1;s<i.length;++s)o+=r(n,i[s-1],i[s]);return o}function r(n,i,o){for(var s=e.zipObject(o,e.map(o,function(h,m){return m})),l=e.flatten(e.map(i,function(h){return e.sortBy(e.map(n.outEdges(h),function(m){return{pos:s[m.w],weight:n.edge(m).weight}}),"pos")}),!0),u=1;u<o.length;)u<<=1;var c=2*u-1;u-=1;var d=e.map(new Array(c),function(){return 0}),f=0;return e.forEach(l.forEach(function(h){var m=h.pos+u;d[m]+=h.weight;for(var C=0;m>0;)m%2&&(C+=d[m+1]),m=m-1>>1,d[m]+=h.weight;f+=h.weight*C})),f}return _l}var yl,tm;function k0(){if(tm)return yl;tm=1;var e=Ee();yl=t;function t(r,n){return e.map(n,function(i){var o=r.inEdges(i);if(o.length){var s=e.reduce(o,function(l,u){var c=r.edge(u),d=r.node(u.v);return{sum:l.sum+c.weight*d.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:i,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:i}})}return yl}var El,rm;function S0(){if(rm)return El;rm=1;var e=Ee();El=t;function t(i,o){var s={};e.forEach(i,function(u,c){var d=s[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:c};e.isUndefined(u.barycenter)||(d.barycenter=u.barycenter,d.weight=u.weight)}),e.forEach(o.edges(),function(u){var c=s[u.v],d=s[u.w];!e.isUndefined(c)&&!e.isUndefined(d)&&(d.indegree++,c.out.push(s[u.w]))});var l=e.filter(s,function(u){return!u.indegree});return r(l)}function r(i){var o=[];function s(c){return function(d){d.merged||(e.isUndefined(d.barycenter)||e.isUndefined(c.barycenter)||d.barycenter>=c.barycenter)&&n(c,d)}}function l(c){return function(d){d.in.push(c),--d.indegree===0&&i.push(d)}}for(;i.length;){var u=i.pop();o.push(u),e.forEach(u.in.reverse(),s(u)),e.forEach(u.out,l(u))}return e.map(e.filter(o,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function n(i,o){var s=0,l=0;i.weight&&(s+=i.barycenter*i.weight,l+=i.weight),o.weight&&(s+=o.barycenter*o.weight,l+=o.weight),i.vs=o.vs.concat(i.vs),i.barycenter=s/l,i.weight=l,i.i=Math.min(o.i,i.i),o.merged=!0}return El}var bl,nm;function w0(){if(nm)return bl;nm=1;var e=Ee(),t=Me();bl=r;function r(o,s){var l=t.partition(o,function(y){return e.has(y,"barycenter")}),u=l.lhs,c=e.sortBy(l.rhs,function(y){return-y.i}),d=[],f=0,h=0,m=0;u.sort(i(!!s)),m=n(d,c,m),e.forEach(u,function(y){m+=y.vs.length,d.push(y.vs),f+=y.barycenter*y.weight,h+=y.weight,m=n(d,c,m)});var C={vs:e.flatten(d,!0)};return h&&(C.barycenter=f/h,C.weight=h),C}function n(o,s,l){for(var u;s.length&&(u=e.last(s)).i<=l;)s.pop(),o.push(u.vs),l++;return l}function i(o){return function(s,l){return s.barycenter<l.barycenter?-1:s.barycenter>l.barycenter?1:o?l.i-s.i:s.i-l.i}}return bl}var Cl,im;function N0(){if(im)return Cl;im=1;var e=Ee(),t=k0(),r=S0(),n=w0();Cl=i;function i(l,u,c,d){var f=l.children(u),h=l.node(u),m=h?h.borderLeft:void 0,C=h?h.borderRight:void 0,y={};m&&(f=e.filter(f,function(k){return k!==m&&k!==C}));var v=t(l,f);e.forEach(v,function(k){if(l.children(k.v).length){var w=i(l,k.v,c,d);y[k.v]=w,e.has(w,"barycenter")&&s(k,w)}});var p=r(v,c);o(p,y);var g=n(p,d);if(m&&(g.vs=e.flatten([m,g.vs,C],!0),l.predecessors(m).length)){var E=l.node(l.predecessors(m)[0]),_=l.node(l.predecessors(C)[0]);e.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+E.order+_.order)/(g.weight+2),g.weight+=2}return g}function o(l,u){e.forEach(l,function(c){c.vs=e.flatten(c.vs.map(function(d){return u[d]?u[d].vs:d}),!0)})}function s(l,u){e.isUndefined(l.barycenter)?(l.barycenter=u.barycenter,l.weight=u.weight):(l.barycenter=(l.barycenter*l.weight+u.barycenter*u.weight)/(l.weight+u.weight),l.weight+=u.weight)}return Cl}var kl,am;function T0(){if(am)return kl;am=1;var e=Ee(),t=Je().Graph;kl=r;function r(i,o,s){var l=n(i),u=new t({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(c){return i.node(c)});return e.forEach(i.nodes(),function(c){var d=i.node(c),f=i.parent(c);(d.rank===o||d.minRank<=o&&o<=d.maxRank)&&(u.setNode(c),u.setParent(c,f||l),e.forEach(i[s](c),function(h){var m=h.v===c?h.w:h.v,C=u.edge(m,c),y=e.isUndefined(C)?0:C.weight;u.setEdge(m,c,{weight:i.edge(h).weight+y})}),e.has(d,"minRank")&&u.setNode(c,{borderLeft:d.borderLeft[o],borderRight:d.borderRight[o]}))}),u}function n(i){for(var o;i.hasNode(o=e.uniqueId("_root")););return o}return kl}var Sl,om;function L0(){if(om)return Sl;om=1;var e=Ee();Sl=t;function t(r,n,i){var o={},s;e.forEach(i,function(l){for(var u=r.parent(l),c,d;u;){if(c=r.parent(u),c?(d=o[c],o[c]=u):(d=s,s=u),d&&d!==u){n.setEdge(d,u);return}u=c}})}return Sl}var wl,sm;function O0(){if(sm)return wl;sm=1;var e=Ee(),t=b0(),r=C0(),n=N0(),i=T0(),o=L0(),s=Je().Graph,l=Me();wl=u;function u(h){var m=l.maxRank(h),C=c(h,e.range(1,m+1),"inEdges"),y=c(h,e.range(m-1,-1,-1),"outEdges"),v=t(h);f(h,v);for(var p=Number.POSITIVE_INFINITY,g,E=0,_=0;_<4;++E,++_){d(E%2?C:y,E%4>=2),v=l.buildLayerMatrix(h);var k=r(h,v);k<p&&(_=0,g=e.cloneDeep(v),p=k)}f(h,g)}function c(h,m,C){return e.map(m,function(y){return i(h,y,C)})}function d(h,m){var C=new s;e.forEach(h,function(y){var v=y.graph().root,p=n(y,v,C,m);e.forEach(p.vs,function(g,E){y.node(g).order=E}),o(y,C,p.vs)})}function f(h,m){e.forEach(m,function(C){e.forEach(C,function(y,v){h.node(y).order=v})})}return wl}var Nl,lm;function I0(){if(lm)return Nl;lm=1;var e=Ee(),t=Je().Graph,r=Me();Nl={positionX:C,findType1Conflicts:n,findType2Conflicts:i,addConflict:s,hasConflict:l,verticalAlignment:u,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:f,balance:m};function n(p,g){var E={};function _(k,w){var b=0,L=0,T=k.length,A=e.last(w);return e.forEach(w,function(D,$){var z=o(p,D),Z=z?p.node(z).order:T;(z||D===A)&&(e.forEach(w.slice(L,$+1),function(V){e.forEach(p.predecessors(V),function(R){var X=p.node(R),G=X.order;(G<b||Z<G)&&!(X.dummy&&p.node(V).dummy)&&s(E,R,V)})}),L=$+1,b=Z)}),w}return e.reduce(g,_),E}function i(p,g){var E={};function _(w,b,L,T,A){var D;e.forEach(e.range(b,L),function($){D=w[$],p.node(D).dummy&&e.forEach(p.predecessors(D),function(z){var Z=p.node(z);Z.dummy&&(Z.order<T||Z.order>A)&&s(E,z,D)})})}function k(w,b){var L=-1,T,A=0;return e.forEach(b,function(D,$){if(p.node(D).dummy==="border"){var z=p.predecessors(D);z.length&&(T=p.node(z[0]).order,_(b,A,$,L,T),A=$,L=T)}_(b,A,b.length,T,w.length)}),b}return e.reduce(g,k),E}function o(p,g){if(p.node(g).dummy)return e.find(p.predecessors(g),function(E){return p.node(E).dummy})}function s(p,g,E){if(g>E){var _=g;g=E,E=_}var k=p[g];k||(p[g]=k={}),k[E]=!0}function l(p,g,E){if(g>E){var _=g;g=E,E=_}return e.has(p[g],E)}function u(p,g,E,_){var k={},w={},b={};return e.forEach(g,function(L){e.forEach(L,function(T,A){k[T]=T,w[T]=T,b[T]=A})}),e.forEach(g,function(L){var T=-1;e.forEach(L,function(A){var D=_(A);if(D.length){D=e.sortBy(D,function(R){return b[R]});for(var $=(D.length-1)/2,z=Math.floor($),Z=Math.ceil($);z<=Z;++z){var V=D[z];w[A]===A&&T<b[V]&&!l(E,A,V)&&(w[V]=A,w[A]=k[A]=k[V],T=b[V])}}})}),{root:k,align:w}}function c(p,g,E,_,k){var w={},b=d(p,g,E,k),L=k?"borderLeft":"borderRight";function T($,z){for(var Z=b.nodes(),V=Z.pop(),R={};V;)R[V]?$(V):(R[V]=!0,Z.push(V),Z=Z.concat(z(V))),V=Z.pop()}function A($){w[$]=b.inEdges($).reduce(function(z,Z){return Math.max(z,w[Z.v]+b.edge(Z))},0)}function D($){var z=b.outEdges($).reduce(function(V,R){return Math.min(V,w[R.w]-b.edge(R))},Number.POSITIVE_INFINITY),Z=p.node($);z!==Number.POSITIVE_INFINITY&&Z.borderType!==L&&(w[$]=Math.max(w[$],z))}return T(A,b.predecessors.bind(b)),T(D,b.successors.bind(b)),e.forEach(_,function($){w[$]=w[E[$]]}),w}function d(p,g,E,_){var k=new t,w=p.graph(),b=y(w.nodesep,w.edgesep,_);return e.forEach(g,function(L){var T;e.forEach(L,function(A){var D=E[A];if(k.setNode(D),T){var $=E[T],z=k.edge($,D);k.setEdge($,D,Math.max(b(p,A,T),z||0))}T=A})}),k}function f(p,g){return e.minBy(e.values(g),function(E){var _=Number.NEGATIVE_INFINITY,k=Number.POSITIVE_INFINITY;return e.forIn(E,function(w,b){var L=v(p,b)/2;_=Math.max(w+L,_),k=Math.min(w-L,k)}),_-k})}function h(p,g){var E=e.values(g),_=e.min(E),k=e.max(E);e.forEach(["u","d"],function(w){e.forEach(["l","r"],function(b){var L=w+b,T=p[L],A;if(T!==g){var D=e.values(T);A=b==="l"?_-e.min(D):k-e.max(D),A&&(p[L]=e.mapValues(T,function($){return $+A}))}})})}function m(p,g){return e.mapValues(p.ul,function(E,_){if(g)return p[g.toLowerCase()][_];var k=e.sortBy(e.map(p,_));return(k[1]+k[2])/2})}function C(p){var g=r.buildLayerMatrix(p),E=e.merge(n(p,g),i(p,g)),_={},k;e.forEach(["u","d"],function(b){k=b==="u"?g:e.values(g).reverse(),e.forEach(["l","r"],function(L){L==="r"&&(k=e.map(k,function($){return e.values($).reverse()}));var T=(b==="u"?p.predecessors:p.successors).bind(p),A=u(p,k,E,T),D=c(p,k,A.root,A.align,L==="r");L==="r"&&(D=e.mapValues(D,function($){return-$})),_[b+L]=D})});var w=f(p,_);return h(_,w),m(_,p.graph().align)}function y(p,g,E){return function(_,k,w){var b=_.node(k),L=_.node(w),T=0,A;if(T+=b.width/2,e.has(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":A=-b.width/2;break;case"r":A=b.width/2;break}if(A&&(T+=E?A:-A),A=0,T+=(b.dummy?g:p)/2,T+=(L.dummy?g:p)/2,T+=L.width/2,e.has(L,"labelpos"))switch(L.labelpos.toLowerCase()){case"l":A=L.width/2;break;case"r":A=-L.width/2;break}return A&&(T+=E?A:-A),A=0,T}}function v(p,g){return p.node(g).width}return Nl}var Tl,um;function A0(){if(um)return Tl;um=1;var e=Ee(),t=Me(),r=I0().positionX;Tl=n;function n(o){o=t.asNonCompoundGraph(o),i(o),e.forEach(r(o),function(s,l){o.node(l).x=s})}function i(o){var s=t.buildLayerMatrix(o),l=o.graph().ranksep,u=0;e.forEach(s,function(c){var d=e.max(e.map(c,function(f){return o.node(f).height}));e.forEach(c,function(f){o.node(f).y=u+d/2}),u+=d+l})}return Tl}var Ll,cm;function R0(){if(cm)return Ll;cm=1;var e=Ee(),t=h0(),r=p0(),n=g0(),i=Me().normalizeRanks,o=v0(),s=Me().removeEmptyRanks,l=_0(),u=y0(),c=E0(),d=O0(),f=A0(),h=Me(),m=Je().Graph;Ll=C;function C(O,P){var q=P&&P.debugTiming?h.time:h.notime;q("layout",function(){var H=q(" buildLayoutGraph",function(){return T(O)});q(" runLayout",function(){y(H,q)}),q(" updateInputGraph",function(){v(O,H)})})}function y(O,P){P(" makeSpaceForEdgeLabels",function(){A(O)}),P(" removeSelfEdges",function(){F(O)}),P(" acyclic",function(){t.run(O)}),P(" nestingGraph.run",function(){l.run(O)}),P(" rank",function(){n(h.asNonCompoundGraph(O))}),P(" injectEdgeLabelProxies",function(){D(O)}),P(" removeEmptyRanks",function(){s(O)}),P(" nestingGraph.cleanup",function(){l.cleanup(O)}),P(" normalizeRanks",function(){i(O)}),P(" assignRankMinMax",function(){$(O)}),P(" removeEdgeLabelProxies",function(){z(O)}),P(" normalize.run",function(){r.run(O)}),P(" parentDummyChains",function(){o(O)}),P(" addBorderSegments",function(){u(O)}),P(" order",function(){d(O)}),P(" insertSelfEdges",function(){ne(O)}),P(" adjustCoordinateSystem",function(){c.adjust(O)}),P(" position",function(){f(O)}),P(" positionSelfEdges",function(){ve(O)}),P(" removeBorderNodes",function(){G(O)}),P(" normalize.undo",function(){r.undo(O)}),P(" fixupEdgeLabelCoords",function(){R(O)}),P(" undoCoordinateSystem",function(){c.undo(O)}),P(" translateGraph",function(){Z(O)}),P(" assignNodeIntersects",function(){V(O)}),P(" reversePoints",function(){X(O)}),P(" acyclic.undo",function(){t.undo(O)})}function v(O,P){e.forEach(O.nodes(),function(q){var H=O.node(q),Q=P.node(q);H&&(H.x=Q.x,H.y=Q.y,P.children(q).length&&(H.width=Q.width,H.height=Q.height))}),e.forEach(O.edges(),function(q){var H=O.edge(q),Q=P.edge(q);H.points=Q.points,e.has(Q,"x")&&(H.x=Q.x,H.y=Q.y)}),O.graph().width=P.graph().width,O.graph().height=P.graph().height}var p=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},E=["acyclicer","ranker","rankdir","align"],_=["width","height"],k={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},L=["labelpos"];function T(O){var P=new m({multigraph:!0,compound:!0}),q=Be(O.graph());return P.setGraph(e.merge({},g,De(q,p),e.pick(q,E))),e.forEach(O.nodes(),function(H){var Q=Be(O.node(H));P.setNode(H,e.defaults(De(Q,_),k)),P.setParent(H,O.parent(H))}),e.forEach(O.edges(),function(H){var Q=Be(O.edge(H));P.setEdge(H,e.merge({},b,De(Q,w),e.pick(Q,L)))}),P}function A(O){var P=O.graph();P.ranksep/=2,e.forEach(O.edges(),function(q){var H=O.edge(q);H.minlen*=2,H.labelpos.toLowerCase()!=="c"&&(P.rankdir==="TB"||P.rankdir==="BT"?H.width+=H.labeloffset:H.height+=H.labeloffset)})}function D(O){e.forEach(O.edges(),function(P){var q=O.edge(P);if(q.width&&q.height){var H=O.node(P.v),Q=O.node(P.w),he={rank:(Q.rank-H.rank)/2+H.rank,e:P};h.addDummyNode(O,"edge-proxy",he,"_ep")}})}function $(O){var P=0;e.forEach(O.nodes(),function(q){var H=O.node(q);H.borderTop&&(H.minRank=O.node(H.borderTop).rank,H.maxRank=O.node(H.borderBottom).rank,P=e.max(P,H.maxRank))}),O.graph().maxRank=P}function z(O){e.forEach(O.nodes(),function(P){var q=O.node(P);q.dummy==="edge-proxy"&&(O.edge(q.e).labelRank=q.rank,O.removeNode(P))})}function Z(O){var P=Number.POSITIVE_INFINITY,q=0,H=Number.POSITIVE_INFINITY,Q=0,he=O.graph(),_e=he.marginx||0,Oe=he.marginy||0;function _t(Se){var be=Se.x,ee=Se.y,Fe=Se.width,ie=Se.height;P=Math.min(P,be-Fe/2),q=Math.max(q,be+Fe/2),H=Math.min(H,ee-ie/2),Q=Math.max(Q,ee+ie/2)}e.forEach(O.nodes(),function(Se){_t(O.node(Se))}),e.forEach(O.edges(),function(Se){var be=O.edge(Se);e.has(be,"x")&&_t(be)}),P-=_e,H-=Oe,e.forEach(O.nodes(),function(Se){var be=O.node(Se);be.x-=P,be.y-=H}),e.forEach(O.edges(),function(Se){var be=O.edge(Se);e.forEach(be.points,function(ee){ee.x-=P,ee.y-=H}),e.has(be,"x")&&(be.x-=P),e.has(be,"y")&&(be.y-=H)}),he.width=q-P+_e,he.height=Q-H+Oe}function V(O){e.forEach(O.edges(),function(P){var q=O.edge(P),H=O.node(P.v),Q=O.node(P.w),he,_e;q.points?(he=q.points[0],_e=q.points[q.points.length-1]):(q.points=[],he=Q,_e=H),q.points.unshift(h.intersectRect(H,he)),q.points.push(h.intersectRect(Q,_e))})}function R(O){e.forEach(O.edges(),function(P){var q=O.edge(P);if(e.has(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function X(O){e.forEach(O.edges(),function(P){var q=O.edge(P);q.reversed&&q.points.reverse()})}function G(O){e.forEach(O.nodes(),function(P){if(O.children(P).length){var q=O.node(P),H=O.node(q.borderTop),Q=O.node(q.borderBottom),he=O.node(e.last(q.borderLeft)),_e=O.node(e.last(q.borderRight));q.width=Math.abs(_e.x-he.x),q.height=Math.abs(Q.y-H.y),q.x=he.x+q.width/2,q.y=H.y+q.height/2}}),e.forEach(O.nodes(),function(P){O.node(P).dummy==="border"&&O.removeNode(P)})}function F(O){e.forEach(O.edges(),function(P){if(P.v===P.w){var q=O.node(P.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:P,label:O.edge(P)}),O.removeEdge(P)}})}function ne(O){var P=h.buildLayerMatrix(O);e.forEach(P,function(q){var H=0;e.forEach(q,function(Q,he){var _e=O.node(Q);_e.order=he+H,e.forEach(_e.selfEdges,function(Oe){h.addDummyNode(O,"selfedge",{width:Oe.label.width,height:Oe.label.height,rank:_e.rank,order:he+ ++H,e:Oe.e,label:Oe.label},"_se")}),delete _e.selfEdges})})}function ve(O){e.forEach(O.nodes(),function(P){var q=O.node(P);if(q.dummy==="selfedge"){var H=O.node(q.e.v),Q=H.x+H.width/2,he=H.y,_e=q.x-Q,Oe=H.height/2;O.setEdge(q.e,q.label),O.removeNode(P),q.label.points=[{x:Q+2*_e/3,y:he-Oe},{x:Q+5*_e/6,y:he-Oe},{x:Q+_e,y:he},{x:Q+5*_e/6,y:he+Oe},{x:Q+2*_e/3,y:he+Oe}],q.label.x=q.x,q.label.y=q.y}})}function De(O,P){return e.mapValues(e.pick(O,P),Number)}function Be(O){var P={};return e.forEach(O,function(q,H){P[H.toLowerCase()]=q}),P}return Ll}var Ol,dm;function D0(){if(dm)return Ol;dm=1;var e=Ee(),t=Me(),r=Je().Graph;Ol={debugOrdering:n};function n(i){var o=t.buildLayerMatrix(i),s=new r({compound:!0,multigraph:!0}).setGraph({});return e.forEach(i.nodes(),function(l){s.setNode(l,{label:l}),s.setParent(l,"layer"+i.node(l).rank)}),e.forEach(i.edges(),function(l){s.setEdge(l.v,l.w,{},l.name)}),e.forEach(o,function(l,u){var c="layer"+u;s.setNode(c,{rank:"same"}),e.reduce(l,function(d,f){return s.setEdge(d,f,{style:"invis"}),f})}),s}return Ol}var Il,fm;function P0(){return fm||(fm=1,Il="0.8.5"),Il}var Al,hm;function B0(){return hm||(hm=1,Al={graphlib:Je(),layout:R0(),debug:D0(),util:{time:Me().time,notime:Me().notime},version:P0()}),Al}var V0=B0();const pm=iu(V0),Et="root.Triggers",Sr={predecessorsEdge(e,t){const{getEdges:r}=te.useVueFlow(e),n=[];for(const i of r.value)if(i.target===t){n.push(i);const o=this.predecessorsEdge(e,i.source);o.length>0&&n.push(...o)}return n},successorsEdge(e,t){const{getEdges:r}=te.useVueFlow(e),n=[];for(const i of r.value)if(i.source===t){n.push(i);const o=this.successorsEdge(e,i.target);o.length>0&&n.push(...o)}return n},predecessorsNode(e,t){const{getEdges:r,findNode:n}=te.useVueFlow(e),i=n(t),o=i?[i]:[];for(const s of r.value)if(s.target===t){o.push(s.sourceNode);const l=this.predecessorsNode(e,s.source);l.length>0&&o.push(...l)}return o},successorsNode(e,t){const{getEdges:r,findNode:n}=te.useVueFlow(e),i=[n(t)];for(const o of r.value)if(o.source===t){i.push(o.targetNode);const s=this.successorsNode(e,o.target);s.length>0&&i.push(...s)}return i},linkedElements(e,t){return[...this.predecessorsEdge(e,t),...this.predecessorsNode(e,t),...this.successorsEdge(e,t),...this.successorsNode(e,t)]},generateDagreGraph(e,t,r,n,i,o,s){const l=new pm.graphlib.Graph({compound:!0});l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:r?"LR":"TB"});for(const u of e.nodes)t.includes(u.uid)||l.setNode(u.uid,{width:this.getNodeWidth(u),height:this.getNodeHeight(u)});for(const u of e.clusters||[]){const c=u.cluster.uid.replace(Ct,"");if(n.includes(u.cluster.uid)&&o.has(c)){const d={uid:c,type:"collapsedcluster"};l.setNode(c,{width:this.getNodeWidth(d),height:this.getNodeHeight(d)}),s.push(d);continue}if(!i[u.cluster.uid]){l.setNode(u.cluster.uid,{clusterLabelPos:"top"});for(const d of u.nodes||[])t.includes(d)||l.setParent(d,u.cluster.uid)}if(u.parents){const d=i[u.cluster.uid]?i[u.cluster.uid]:u.cluster.uid;t.includes(d)||l.setParent(d,u.parents[u.parents.length-1])}}for(const u of e.edges||[]){const c=this.replaceIfCollapsed(u.source,u.target,i,t);c&&l.setEdge(c.source,c.target)}return pm.layout(l),l},getNodePosition(e,t){const r={x:e.x-e.width/2,y:e.y-e.height/2};if(t){const n=this.getNodePosition(t);r.x=r.x-n.x,r.y=r.y-n.y}return r},getNodeWidth(e){return this.isTaskNode(e)||this.isTriggerNode(e)?ct.TASK_WIDTH:this.isCollapsedCluster(e)?ct.COLLAPSED_CLUSTER_WIDTH:ct.DOT_WIDTH},getNodeHeight(e){return this.isTaskNode(e)||this.isTriggerNode(e)?ct.TASK_HEIGHT:this.isCollapsedCluster(e)?ct.COLLAPSED_CLUSTER_HEIGHT:ct.DOT_HEIGHT},isTaskNode(e){return["GraphTask","SubflowGraphTask$1"].some(t=>e.type.endsWith(t))},isTriggerNode(e){return e.type.endsWith("GraphTrigger")},isCollapsedCluster(e){return e.type==="collapsedcluster"},replaceIfCollapsed(e,t,r,n){const i=r[e]?r[e]:e,o=r[t]?r[t]:t;return i===o||n.includes(i)||n.includes(o)?null:{target:o,source:i}},cleanGraph(e){const{getEdges:t,getNodes:r,getElements:n,removeEdges:i,removeNodes:o,removeSelectedElements:s}=te.useVueFlow(e);i(t.value),o(r.value),s(n.value)},flowHaveTasks(e){return e?de.flowHaveTasks(e):!1},nodeColor(e,t){return e.uid===Et||this.isTriggerNode(e)||this.isCollapsedCluster(e)?"success":e.type.endsWith("SubflowGraphTask")?"primary":e.branchType=="ERROR"?"danger":e.branchType=="FINALLY"?"warning":t.has(e.uid)?"blue":"default"},haveAdd(e,t,r,n){var c,d,f;if(n.some(h=>e.source.startsWith(h)&&e.target.startsWith(h))||r.includes(e.target)||e.source.startsWith(Et)||e.target.startsWith(Et))return;const i=e.target.split(".");i.pop();const o=i.join("."),s=Ce.afterLastDot(o),l=t[e.target];if(l.type.endsWith("GraphClusterEnd")&&((f=(d=(c=t[o])==null?void 0:c.task)==null?void 0:d.type)!=null&&f.endsWith("Parallel")))return;if(l.type.endsWith("GraphClusterRoot"))return[s,"before"];const u=t[e.source].type.endsWith("GraphClusterEnd");if(!u&&l.type.endsWith("GraphClusterEnd"))return[Ce.afterLastDot(e.source),"after"];if(u){const h=e.source.split(".");return[h[h.length-2],"after"]}return[Ce.afterLastDot(e.target),"before"]},getEdgeColor(e,t){const r=t[e.source],n=t[e.target];return n.branchType==="ERROR"||r.branchType==="ERROR"?"error":n.branchType==="FINALLY"||r.branchType==="FINALLY"?"warning":null},generateGraph(e,t,r,n,i,o,s,l,u,c,d,f,h){var b,L,T,A,D,$,z,Z,V,R,X,G;const m=[],C=[Ct+Et];if(!n||i&&!this.flowHaveTasks(i)){m.push({id:"start",type:"dot",position:{x:0,y:0},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.push({id:"end",type:"dot",position:s?{x:50,y:0}:{x:0,y:50},style:{width:"5px",height:"5px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:void 0,draggable:!1}),m.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(n,o,s,C,l,u,c),v={},p=n.clusters||[],g=p.map(F=>F.cluster),E=g.filter(F=>F.type.endsWith("SubflowGraphCluster")).map(F=>F.taskNode.uid),_=Object.fromEntries(n.nodes.concat(c).map(F=>[F.uid,F]));for(const F of p)if(!l[F.cluster.uid]&&!u.has(F.cluster.uid)){((L=(b=F.cluster.taskNode)==null?void 0:b.task)==null?void 0:L.type)==="io.kestra.core.tasks.flows.Dag"&&E.push(F.cluster.taskNode.uid);for(const O of F.nodes)v[O]=F.cluster;const ne=F.cluster.uid,ve=y.node(ne),De=F.parents?F.parents[F.parents.length-1]:void 0,Be=this.computeClusterColor(F.cluster);m.push({id:ne,type:"cluster",parentNode:De,position:this.getNodePosition(ve,De?y.node(De):void 0),style:{width:ne===Et&&s?ct.TRIGGER_CLUSTER_WIDTH+"px":ve.width+"px",height:ne===Et&&!s?ct.TRIGGER_CLUSTER_HEIGHT+"px":ve.height+"px"},data:{collapsable:!0,color:Be,taskNode:F.cluster.taskNode,unused:F.cluster.taskNode?_[F.cluster.taskNode.uid].unused:!1},class:`ks-topology-${Be}-border rounded p-2`})}for(const F of n.nodes.concat(c))if(!o.includes(F.uid)){const ne=y.node(F.uid);let ve="task";this.isClusterRootOrEnd(F)?ve="dot":F.type.includes("GraphTrigger")?ve="trigger":F.type==="collapsedcluster"&&(ve="collapsedcluster");const De=this.nodeColor(F,u),Be=d||((A=(T=F.task)==null?void 0:T.type)==null?void 0:A.includes("$"))||E.some(O=>F.uid.startsWith(O+"."));m.push({id:F.uid,type:ve,position:this.getNodePosition(ne,v[F.uid]?y.node(v[F.uid].uid):void 0),style:{width:this.getNodeWidth(F)+"px",height:this.getNodeHeight(F)+"px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:v[F.uid]?v[F.uid].uid:void 0,draggable:ve==="task"?!Be:!1,data:{node:F,namespace:((z=($=(D=v[F.uid])==null?void 0:D.taskNode)==null?void 0:$.task)==null?void 0:z.namespace)??r,flowId:((R=(V=(Z=v[F.uid])==null?void 0:Z.taskNode)==null?void 0:V.task)==null?void 0:R.flowId)??t,isFlowable:((X=v[F.uid])==null?void 0:X.uid)===Ct+F.uid&&!F.type.endsWith("SubflowGraphTask"),color:De,expandable:this.isExpandableTask(F,v,l,h),isReadOnly:Be,iconComponent:this.isCollapsedCluster(F)?"lightning-bolt":null,executionId:F.executionId,unused:F.unused},class:F.type==="collapsedcluster"?`ks-topology-${De}-border rounded`:""})}const k=g.filter(F=>F.taskNode).map(F=>F.taskNode.uid),w=n.edges??[];for(const F of w){const ne=this.replaceIfCollapsed(F.source,F.target,l,o);if(ne){const ve=this.getEdgeColor(F,_);m.push({id:ne.source+"|"+ne.target,source:ne.source,target:ne.target,type:"edge",markerEnd:this.isClusterRootOrEnd(_[ne.target])?"":{id:"marker-"+(_[ne.target].branchType?(G=_[ne.target].branchType)==null?void 0:G.toLocaleLowerCase():"custom"),type:te.MarkerType.ArrowClosed,color:ve?`var(--ks-border-${ve})`:"var(--ks-topology-edge-color)"},data:{haveAdd:!d&&f&&this.haveAdd(F,_,k,E),haveDashArray:_[F.source].type.endsWith("GraphTrigger")||_[F.target].type.endsWith("GraphTrigger")||F.source.startsWith(Et),color:ve,unused:F.unused},style:{zIndex:10}})}}return m},isClusterRootOrEnd(e){return["GraphClusterRoot","GraphClusterFinally","GraphClusterAfterExecution","GraphClusterEnd"].some(t=>e.type.endsWith(t))},computeClusterColor(e){return e.uid===Ct+Et?"success":e.type.endsWith("SubflowGraphCluster")?"primary":e.branchType==="ERROR"?"danger":"blue"},isExpandableTask(e,t,r,n){var i,o;return Object.values(r).includes(e.uid)||this.isCollapsedCluster(e)?!0:e.type.endsWith("SubflowGraphTask")&&((o=(i=t[e.uid])==null?void 0:i.uid)==null?void 0:o.replace(Ct,""))!==e.uid&&n}};let vr;async function x0(){if(vr)return vr;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(r=>r.useMarkdownParser);return vr=await(e.default??e)(),vr}var wr={exports:{}},M0=wr.exports,mm;function q0(){return mm||(mm=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",M0,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var l=n[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,d=o.normalize().split("").reduce(function(f,h){var m=l[h];return m===void 0&&(m=r[h]),m===void 0&&(m=h),m===u&&(m=" "),f+m.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),c&&(d=d.trim()),d=d.replace(/\s+/g,u),s.lower&&(d=d.toLowerCase()),d}return i.extend=function(o){Object.assign(r,o)},i})}(wr)),wr.exports}var $0=q0();const av=iu($0);av.extend({"(":"-",")":""});function It(e){return av(e,{lower:!0,locale:"en"})}function ov(e,t){return Array.isArray(t)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(t.length===0||typeof t[0]=="string")}function Ht(e){const t=e.title.replaceAll(/\.([a-zA-Z])/g,(r,n)=>` ${n.toUpperCase()}`);return t.charAt(0).toUpperCase()+t.slice(1)}/*!
|
|
2
2
|
* shared v11.1.3
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
5
|
-
*/const pt=typeof window<"u";let je,Rt;if(process.env.NODE_ENV!=="production"){const e=pt&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(je=t=>{e.mark(t)},Rt=(t,r,n)=>{e.measure(t,r,n),e.clearMarks(r),e.clearMarks(n)})}const F0=/\{([0-9a-zA-Z]+)\}/g;function tn(e,...t){return t.length===1&&ue(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(F0,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const vt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),U0=(e,t,r)=>H0({l:e,k:t,s:r}),H0=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),G0=e=>ku(e)==="[object Date]",Or=e=>ku(e)==="[object RegExp]",rn=e=>le(e)&&Object.keys(e).length===0,Ae=Object.assign,j0=Object.create,me=(e=null)=>j0(e);let gm;const At=()=>gm||(gm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:me());function vm(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const z0=Object.prototype.hasOwnProperty;function Xe(e,t){return z0.call(e,t)}const Le=Array.isArray,ye=e=>typeof e=="function",j=e=>typeof e=="string",ke=e=>typeof e=="boolean",ue=e=>e!==null&&typeof e=="object",W0=e=>ue(e)&&ye(e.then)&&ye(e.catch),sv=Object.prototype.toString,ku=e=>sv.call(e),le=e=>ku(e)==="[object Object]",K0=e=>e==null?"":Le(e)||le(e)&&e.toString===sv?JSON.stringify(e,null,2):String(e);function
|
|
6
|
-
`)}function
|
|
5
|
+
*/const pt=typeof window<"u";let je,Rt;if(process.env.NODE_ENV!=="production"){const e=pt&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(je=t=>{e.mark(t)},Rt=(t,r,n)=>{e.measure(t,r,n),e.clearMarks(r),e.clearMarks(n)})}const F0=/\{([0-9a-zA-Z]+)\}/g;function tn(e,...t){return t.length===1&&ue(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(F0,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const vt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),U0=(e,t,r)=>H0({l:e,k:t,s:r}),H0=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),G0=e=>ku(e)==="[object Date]",Or=e=>ku(e)==="[object RegExp]",rn=e=>le(e)&&Object.keys(e).length===0,Ae=Object.assign,j0=Object.create,me=(e=null)=>j0(e);let gm;const At=()=>gm||(gm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:me());function vm(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const z0=Object.prototype.hasOwnProperty;function Xe(e,t){return z0.call(e,t)}const Le=Array.isArray,ye=e=>typeof e=="function",j=e=>typeof e=="string",ke=e=>typeof e=="boolean",ue=e=>e!==null&&typeof e=="object",W0=e=>ue(e)&&ye(e.then)&&ye(e.catch),sv=Object.prototype.toString,ku=e=>sv.call(e),le=e=>ku(e)==="[object Object]",K0=e=>e==null?"":Le(e)||le(e)&&e.toString===sv?JSON.stringify(e,null,2):String(e);function Su(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}const _m=2;function Y0(e,t=0,r=e.length){const n=e.split(/\r?\n/);let i=0;const o=[];for(let s=0;s<n.length;s++)if(i+=n[s].length+1,i>=t){for(let l=s-_m;l<=s+_m||r>i;l++){if(l<0||l>=n.length)continue;const u=l+1;o.push(`${u}${" ".repeat(3-String(u).length)}| ${n[l]}`);const c=n[l].length;if(l===s){const d=t-(i-c)+1,f=Math.max(1,r>i?c-d:r-t);o.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(l>s){if(r>i){const d=Math.max(Math.min(r-i,c),1);o.push(" | "+"^".repeat(d))}i+=c+1}}break}return o.join(`
|
|
6
|
+
`)}function wt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ym={};function X0(e){ym[e]||(ym[e]=!0,wt(e))}function Z0(){const e=new Map;return{events:e,on(r,n){const i=e.get(r);i&&i.push(n)||e.set(r,[n])},off(r,n){const i=e.get(r);i&&i.splice(i.indexOf(n)>>>0,1)},emit(r,n){(e.get(r)||[]).slice().map(i=>i(n)),(e.get("*")||[]).slice().map(i=>i(r,n))}}}const _r=e=>!ue(e)||Le(e);function Nr(e,t){if(_r(e)||_r(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:i}=r.pop();Object.keys(n).forEach(o=>{o!=="__proto__"&&(ue(n[o])&&!ue(i[o])&&(i[o]=Array.isArray(n[o])?[]:me()),_r(i[o])||_r(n[o])?i[o]=n[o]:r.push({src:n[o],des:i[o]}))})}}/*!
|
|
7
7
|
* message-compiler v11.1.3
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
*/function J0(e,t,r){return{line:e,column:t,offset:r}}function $l(e,t,r){return{start:e,end:t}}const Y={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Q0=17,eC={[Y.EXPECTED_TOKEN]:"Expected token: '{0}'",[Y.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Y.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Y.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Y.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Y.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Y.EMPTY_PLACEHOLDER]:"Empty placeholder",[Y.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Y.INVALID_LINKED_FORMAT]:"Invalid linked format",[Y.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Y.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Y.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Y.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Y.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Y.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Jt(e,t,r={}){const{domain:n,messages:i,args:o}=r,s=process.env.NODE_ENV!=="production"?tn((i||eC)[e]||"",...o||[]):e,l=new SyntaxError(String(s));return l.code=e,t&&(l.location=t),l.domain=n,l}function tC(e){throw e}const rC=/<\/?[\w\s="/.':;#-\/]+>/,nC=e=>rC.test(e),ut=" ",iC="\r",Ve=`
|
|
11
|
-
`,aC="\u2028",oC="\u2029";function sC(e){const t=e;let r=0,n=1,i=1,o=0;const s=b=>t[b]===iC&&t[b+1]===Ve,l=b=>t[b]===Ve,u=b=>t[b]===oC,c=b=>t[b]===aC,d=b=>s(b)||l(b)||u(b)||c(b),f=()=>r,h=()=>n,m=()=>i,C=()=>o,y=b=>s(b)||u(b)||c(b)?Ve:t[b],v=()=>y(r),p=()=>y(r+o);function g(){return o=0,d(r)&&(n++,i=0),s(r)&&r++,r++,i++,t[r]}function E(){return s(r+o)&&o++,o++,t[r+o]}function _(){r=0,n=1,i=1,o=0}function k(b=0){o=b}function S(){const b=r+o;for(;b!==r;)g();o=0}return{index:f,line:h,column:m,peekOffset:C,charAt:y,currentChar:v,currentPeek:p,next:g,peek:E,reset:_,resetPeek:k,skipToPeek:S}}const bt=void 0,lC=".",Em="'",uC="tokenizer";function cC(e,t={}){const r=t.location!==!1,n=sC(e),i=()=>n.index(),o=()=>J0(n.line(),n.column(),n.index()),s=o(),l=i(),u={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:d}=t;function f(w,N,B,...W){const ce=c();if(N.column+=B,N.offset+=B,d){const ae=r?$l(ce.startLoc,N):null,re=Jt(w,ae,{domain:uC,args:W});d(re)}}function h(w,N,B){w.endLoc=o(),w.currentType=N;const W={type:N};return r&&(W.loc=$l(w.startLoc,w.endLoc)),B!=null&&(W.value=B),W}const m=w=>h(w,13);function C(w,N){return w.currentChar()===N?(w.next(),N):(f(Y.EXPECTED_TOKEN,o(),0,N),"")}function y(w){let N="";for(;w.currentPeek()===ut||w.currentPeek()===Ve;)N+=w.currentPeek(),w.peek();return N}function v(w){const N=y(w);return w.skipToPeek(),N}function p(w){if(w===bt)return!1;const N=w.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N===95}function g(w){if(w===bt)return!1;const N=w.charCodeAt(0);return N>=48&&N<=57}function E(w,N){const{currentType:B}=N;if(B!==2)return!1;y(w);const W=p(w.currentPeek());return w.resetPeek(),W}function _(w,N){const{currentType:B}=N;if(B!==2)return!1;y(w);const W=w.currentPeek()==="-"?w.peek():w.currentPeek(),ce=g(W);return w.resetPeek(),ce}function k(w,N){const{currentType:B}=N;if(B!==2)return!1;y(w);const W=w.currentPeek()===Em;return w.resetPeek(),W}function S(w,N){const{currentType:B}=N;if(B!==7)return!1;y(w);const W=w.currentPeek()===".";return w.resetPeek(),W}function b(w,N){const{currentType:B}=N;if(B!==8)return!1;y(w);const W=p(w.currentPeek());return w.resetPeek(),W}function L(w,N){const{currentType:B}=N;if(!(B===7||B===11))return!1;y(w);const W=w.currentPeek()===":";return w.resetPeek(),W}function T(w,N){const{currentType:B}=N;if(B!==9)return!1;const W=()=>{const ae=w.currentPeek();return ae==="{"?p(w.peek()):ae==="@"||ae==="|"||ae===":"||ae==="."||ae===ut||!ae?!1:ae===Ve?(w.peek(),W()):D(w,!1)},ce=W();return w.resetPeek(),ce}function A(w){y(w);const N=w.currentPeek()==="|";return w.resetPeek(),N}function D(w,N=!0){const B=(ce=!1,ae="")=>{const re=w.currentPeek();return re==="{"||re==="@"||!re?ce:re==="|"?!(ae===ut||ae===Ve):re===ut?(w.peek(),B(!0,ut)):re===Ve?(w.peek(),B(!0,Ve)):!0},W=B();return N&&w.resetPeek(),W}function $(w,N){const B=w.currentChar();return B===bt?bt:N(B)?(w.next(),B):null}function z(w){const N=w.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36}function Z(w){return $(w,z)}function V(w){const N=w.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36||N===45}function R(w){return $(w,V)}function X(w){const N=w.charCodeAt(0);return N>=48&&N<=57}function G(w){return $(w,X)}function F(w){const N=w.charCodeAt(0);return N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102}function ne(w){return $(w,F)}function ve(w){let N="",B="";for(;N=G(w);)B+=N;return B}function De(w){let N="";for(;;){const B=w.currentChar();if(B==="{"||B==="}"||B==="@"||B==="|"||!B)break;if(B===ut||B===Ve)if(D(w))N+=B,w.next();else{if(A(w))break;N+=B,w.next()}else N+=B,w.next()}return N}function Be(w){v(w);let N="",B="";for(;N=R(w);)B+=N;return w.currentChar()===bt&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),B}function O(w){v(w);let N="";return w.currentChar()==="-"?(w.next(),N+=`-${ve(w)}`):N+=ve(w),w.currentChar()===bt&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),N}function P(w){return w!==Em&&w!==Ve}function q(w){v(w),C(w,"'");let N="",B="";for(;N=$(w,P);)N==="\\"?B+=H(w):B+=N;const W=w.currentChar();return W===Ve||W===bt?(f(Y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),W===Ve&&(w.next(),C(w,"'")),B):(C(w,"'"),B)}function H(w){const N=w.currentChar();switch(N){case"\\":case"'":return w.next(),`\\${N}`;case"u":return Q(w,N,4);case"U":return Q(w,N,6);default:return f(Y.UNKNOWN_ESCAPE_SEQUENCE,o(),0,N),""}}function Q(w,N,B){C(w,N);let W="";for(let ce=0;ce<B;ce++){const ae=ne(w);if(!ae){f(Y.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${N}${W}${w.currentChar()}`);break}W+=ae}return`\\${N}${W}`}function he(w){return w!=="{"&&w!=="}"&&w!==ut&&w!==Ve}function _e(w){v(w);let N="",B="";for(;N=$(w,he);)B+=N;return B}function Oe(w){let N="",B="";for(;N=Z(w);)B+=N;return B}function _t(w){const N=B=>{const W=w.currentChar();return W==="{"||W==="@"||W==="|"||W==="("||W===")"||!W||W===ut?B:(B+=W,w.next(),N(B))};return N("")}function we(w){v(w);const N=C(w,"|");return v(w),N}function be(w,N){let B=null;switch(w.currentChar()){case"{":return N.braceNest>=1&&f(Y.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),w.next(),B=h(N,2,"{"),v(w),N.braceNest++,B;case"}":return N.braceNest>0&&N.currentType===2&&f(Y.EMPTY_PLACEHOLDER,o(),0),w.next(),B=h(N,3,"}"),N.braceNest--,N.braceNest>0&&v(w),N.inLinked&&N.braceNest===0&&(N.inLinked=!1),B;case"@":return N.braceNest>0&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),B=ee(w,N)||m(N),N.braceNest=0,B;default:{let ce=!0,ae=!0,re=!0;if(A(w))return N.braceNest>0&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),B=h(N,1,we(w)),N.braceNest=0,N.inLinked=!1,B;if(N.braceNest>0&&(N.currentType===4||N.currentType===5||N.currentType===6))return f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),N.braceNest=0,Fe(w,N);if(ce=E(w,N))return B=h(N,4,Be(w)),v(w),B;if(ae=_(w,N))return B=h(N,5,O(w)),v(w),B;if(re=k(w,N))return B=h(N,6,q(w)),v(w),B;if(!ce&&!ae&&!re)return B=h(N,12,_e(w)),f(Y.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,B.value),v(w),B;break}}return B}function ee(w,N){const{currentType:B}=N;let W=null;const ce=w.currentChar();switch((B===7||B===8||B===11||B===9)&&(ce===Ve||ce===ut)&&f(Y.INVALID_LINKED_FORMAT,o(),0),ce){case"@":return w.next(),W=h(N,7,"@"),N.inLinked=!0,W;case".":return v(w),w.next(),h(N,8,".");case":":return v(w),w.next(),h(N,9,":");default:return A(w)?(W=h(N,1,we(w)),N.braceNest=0,N.inLinked=!1,W):S(w,N)||L(w,N)?(v(w),ee(w,N)):b(w,N)?(v(w),h(N,11,Oe(w))):T(w,N)?(v(w),ce==="{"?be(w,N)||W:h(N,10,_t(w))):(B===7&&f(Y.INVALID_LINKED_FORMAT,o(),0),N.braceNest=0,N.inLinked=!1,Fe(w,N))}}function Fe(w,N){let B={type:13};if(N.braceNest>0)return be(w,N)||m(N);if(N.inLinked)return ee(w,N)||m(N);switch(w.currentChar()){case"{":return be(w,N)||m(N);case"}":return f(Y.UNBALANCED_CLOSING_BRACE,o(),0),w.next(),h(N,3,"}");case"@":return ee(w,N)||m(N);default:{if(A(w))return B=h(N,1,we(w)),N.braceNest=0,N.inLinked=!1,B;if(D(w))return h(N,0,De(w));break}}return B}function ie(){const{currentType:w,offset:N,startLoc:B,endLoc:W}=u;return u.lastType=w,u.lastOffset=N,u.lastStartLoc=B,u.lastEndLoc=W,u.offset=i(),u.startLoc=o(),n.currentChar()===bt?h(u,13):Fe(n,u)}return{nextToken:ie,currentOffset:i,currentPosition:o,context:c}}const dC="parser",fC=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function hC(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function pC(e={}){const t=e.location!==!1,{onError:r}=e;function n(p,g,E,_,...k){const S=p.currentPosition();if(S.offset+=_,S.column+=_,r){const b=t?$l(E,S):null,L=Jt(g,b,{domain:dC,args:k});r(L)}}function i(p,g,E){const _={type:p};return t&&(_.start=g,_.end=g,_.loc={start:E,end:E}),_}function o(p,g,E,_){t&&(p.end=g,p.loc&&(p.loc.end=E))}function s(p,g){const E=p.context(),_=i(3,E.offset,E.startLoc);return _.value=g,o(_,p.currentOffset(),p.currentPosition()),_}function l(p,g){const E=p.context(),{lastOffset:_,lastStartLoc:k}=E,S=i(5,_,k);return S.index=parseInt(g,10),p.nextToken(),o(S,p.currentOffset(),p.currentPosition()),S}function u(p,g){const E=p.context(),{lastOffset:_,lastStartLoc:k}=E,S=i(4,_,k);return S.key=g,p.nextToken(),o(S,p.currentOffset(),p.currentPosition()),S}function c(p,g){const E=p.context(),{lastOffset:_,lastStartLoc:k}=E,S=i(9,_,k);return S.value=g.replace(fC,hC),p.nextToken(),o(S,p.currentOffset(),p.currentPosition()),S}function d(p){const g=p.nextToken(),E=p.context(),{lastOffset:_,lastStartLoc:k}=E,S=i(8,_,k);return g.type!==11?(n(p,Y.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),S.value="",o(S,_,k),{nextConsumeToken:g,node:S}):(g.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(g)),S.value=g.value||"",o(S,p.currentOffset(),p.currentPosition()),{node:S})}function f(p,g){const E=p.context(),_=i(7,E.offset,E.startLoc);return _.value=g,o(_,p.currentOffset(),p.currentPosition()),_}function h(p){const g=p.context(),E=i(6,g.offset,g.startLoc);let _=p.nextToken();if(_.type===8){const k=d(p);E.modifier=k.node,_=k.nextConsumeToken||p.nextToken()}switch(_.type!==9&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),_=p.nextToken(),_.type===2&&(_=p.nextToken()),_.type){case 10:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=f(p,_.value||"");break;case 4:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=u(p,_.value||"");break;case 5:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=l(p,_.value||"");break;case 6:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=c(p,_.value||"");break;default:{n(p,Y.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const k=p.context(),S=i(7,k.offset,k.startLoc);return S.value="",o(S,k.offset,k.startLoc),E.key=S,o(E,k.offset,k.startLoc),{nextConsumeToken:_,node:E}}}return o(E,p.currentOffset(),p.currentPosition()),{node:E}}function m(p){const g=p.context(),E=g.currentType===1?p.currentOffset():g.offset,_=g.currentType===1?g.endLoc:g.startLoc,k=i(2,E,_);k.items=[];let S=null;do{const T=S||p.nextToken();switch(S=null,T.type){case 0:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(s(p,T.value||""));break;case 5:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(l(p,T.value||""));break;case 4:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(u(p,T.value||""));break;case 6:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(c(p,T.value||""));break;case 7:{const A=h(p);k.items.push(A.node),S=A.nextConsumeToken||null;break}}}while(g.currentType!==13&&g.currentType!==1);const b=g.currentType===1?g.lastOffset:p.currentOffset(),L=g.currentType===1?g.lastEndLoc:p.currentPosition();return o(k,b,L),k}function C(p,g,E,_){const k=p.context();let S=_.items.length===0;const b=i(1,g,E);b.cases=[],b.cases.push(_);do{const L=m(p);S||(S=L.items.length===0),b.cases.push(L)}while(k.currentType!==13);return S&&n(p,Y.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),o(b,p.currentOffset(),p.currentPosition()),b}function y(p){const g=p.context(),{offset:E,startLoc:_}=g,k=m(p);return g.currentType===13?k:C(p,E,_,k)}function v(p){const g=cC(p,Ae({},e)),E=g.context(),_=i(0,E.offset,E.startLoc);return t&&_.loc&&(_.loc.source=p),_.body=y(g),e.onCacheKey&&(_.cacheKey=e.onCacheKey(p)),E.currentType!==13&&n(g,Y.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,p[E.offset]||""),o(_,g.currentOffset(),g.currentPosition()),_}return{parse:v}}function ot(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function mC(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:o=>(r.helpers.add(o),o)}}function bm(e,t){for(let r=0;r<e.length;r++)Su(e[r],t)}function Su(e,t){switch(e.type){case 1:bm(e.cases,t),t.helper("plural");break;case 2:bm(e.items,t);break;case 6:{Su(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function gC(e,t={}){const r=mC(e);r.helper("normalize"),e.body&&Su(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function vC(e){const t=e.body;return t.type===2?Cm(t):t.cases.forEach(r=>Cm(r)),e}function Cm(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=wu(t);for(let r=0;r<e.items.length;r++){const n=e.items[r];(n.type===3||n.type===9)&&delete n.value}}}}const _C="minifier";function Gt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Gt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let n=0;n<r.length;n++)Gt(r[n]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let n=0;n<r.length;n++)Gt(r[n]);t.i=r,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Gt(t.key),t.k=t.key,delete t.key,t.modifier&&(Gt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Jt(Y.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:_C,args:[e.type]})}delete e.type}const yC="parser";function EC(e,t){const{filename:r,breakLineCode:n,needIndent:i}=t,o=t.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:i,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(y,v){s.code+=y}function c(y,v=!0){const p=v?n:"";u(i?p+" ".repeat(y):p)}function d(y=!0){const v=++s.indentLevel;y&&c(v)}function f(y=!0){const v=--s.indentLevel;y&&c(v)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:y=>`_${y}`,needIndent:()=>s.needIndent}}function bC(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),zt(e,t.key),t.modifier?(e.push(", "),zt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function CC(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const i=t.items.length;for(let o=0;o<i&&(zt(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(n()),e.push("])")}function kC(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const i=t.cases.length;for(let o=0;o<i&&(zt(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(n()),e.push("])")}}function wC(e,t){t.body?zt(e,t.body):e.push("null")}function zt(e,t){const{helper:r}=e;switch(t.type){case 0:wC(e,t);break;case 1:kC(e,t);break;case 2:CC(e,t);break;case 6:bC(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Jt(Y.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:yC,args:[t.type]})}}const SC=(e,t={})=>{const r=j(t.mode)?t.mode:"normal",n=j(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
|
12
|
-
`,o=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=EC(e,{filename:n,breakLineCode:i,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${
|
|
11
|
+
`,aC="\u2028",oC="\u2029";function sC(e){const t=e;let r=0,n=1,i=1,o=0;const s=b=>t[b]===iC&&t[b+1]===Ve,l=b=>t[b]===Ve,u=b=>t[b]===oC,c=b=>t[b]===aC,d=b=>s(b)||l(b)||u(b)||c(b),f=()=>r,h=()=>n,m=()=>i,C=()=>o,y=b=>s(b)||u(b)||c(b)?Ve:t[b],v=()=>y(r),p=()=>y(r+o);function g(){return o=0,d(r)&&(n++,i=0),s(r)&&r++,r++,i++,t[r]}function E(){return s(r+o)&&o++,o++,t[r+o]}function _(){r=0,n=1,i=1,o=0}function k(b=0){o=b}function w(){const b=r+o;for(;b!==r;)g();o=0}return{index:f,line:h,column:m,peekOffset:C,charAt:y,currentChar:v,currentPeek:p,next:g,peek:E,reset:_,resetPeek:k,skipToPeek:w}}const bt=void 0,lC=".",Em="'",uC="tokenizer";function cC(e,t={}){const r=t.location!==!1,n=sC(e),i=()=>n.index(),o=()=>J0(n.line(),n.column(),n.index()),s=o(),l=i(),u={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:d}=t;function f(S,N,B,...W){const ce=c();if(N.column+=B,N.offset+=B,d){const ae=r?$l(ce.startLoc,N):null,re=Jt(S,ae,{domain:uC,args:W});d(re)}}function h(S,N,B){S.endLoc=o(),S.currentType=N;const W={type:N};return r&&(W.loc=$l(S.startLoc,S.endLoc)),B!=null&&(W.value=B),W}const m=S=>h(S,13);function C(S,N){return S.currentChar()===N?(S.next(),N):(f(Y.EXPECTED_TOKEN,o(),0,N),"")}function y(S){let N="";for(;S.currentPeek()===ut||S.currentPeek()===Ve;)N+=S.currentPeek(),S.peek();return N}function v(S){const N=y(S);return S.skipToPeek(),N}function p(S){if(S===bt)return!1;const N=S.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N===95}function g(S){if(S===bt)return!1;const N=S.charCodeAt(0);return N>=48&&N<=57}function E(S,N){const{currentType:B}=N;if(B!==2)return!1;y(S);const W=p(S.currentPeek());return S.resetPeek(),W}function _(S,N){const{currentType:B}=N;if(B!==2)return!1;y(S);const W=S.currentPeek()==="-"?S.peek():S.currentPeek(),ce=g(W);return S.resetPeek(),ce}function k(S,N){const{currentType:B}=N;if(B!==2)return!1;y(S);const W=S.currentPeek()===Em;return S.resetPeek(),W}function w(S,N){const{currentType:B}=N;if(B!==7)return!1;y(S);const W=S.currentPeek()===".";return S.resetPeek(),W}function b(S,N){const{currentType:B}=N;if(B!==8)return!1;y(S);const W=p(S.currentPeek());return S.resetPeek(),W}function L(S,N){const{currentType:B}=N;if(!(B===7||B===11))return!1;y(S);const W=S.currentPeek()===":";return S.resetPeek(),W}function T(S,N){const{currentType:B}=N;if(B!==9)return!1;const W=()=>{const ae=S.currentPeek();return ae==="{"?p(S.peek()):ae==="@"||ae==="|"||ae===":"||ae==="."||ae===ut||!ae?!1:ae===Ve?(S.peek(),W()):D(S,!1)},ce=W();return S.resetPeek(),ce}function A(S){y(S);const N=S.currentPeek()==="|";return S.resetPeek(),N}function D(S,N=!0){const B=(ce=!1,ae="")=>{const re=S.currentPeek();return re==="{"||re==="@"||!re?ce:re==="|"?!(ae===ut||ae===Ve):re===ut?(S.peek(),B(!0,ut)):re===Ve?(S.peek(),B(!0,Ve)):!0},W=B();return N&&S.resetPeek(),W}function $(S,N){const B=S.currentChar();return B===bt?bt:N(B)?(S.next(),B):null}function z(S){const N=S.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36}function Z(S){return $(S,z)}function V(S){const N=S.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36||N===45}function R(S){return $(S,V)}function X(S){const N=S.charCodeAt(0);return N>=48&&N<=57}function G(S){return $(S,X)}function F(S){const N=S.charCodeAt(0);return N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102}function ne(S){return $(S,F)}function ve(S){let N="",B="";for(;N=G(S);)B+=N;return B}function De(S){let N="";for(;;){const B=S.currentChar();if(B==="{"||B==="}"||B==="@"||B==="|"||!B)break;if(B===ut||B===Ve)if(D(S))N+=B,S.next();else{if(A(S))break;N+=B,S.next()}else N+=B,S.next()}return N}function Be(S){v(S);let N="",B="";for(;N=R(S);)B+=N;return S.currentChar()===bt&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),B}function O(S){v(S);let N="";return S.currentChar()==="-"?(S.next(),N+=`-${ve(S)}`):N+=ve(S),S.currentChar()===bt&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),N}function P(S){return S!==Em&&S!==Ve}function q(S){v(S),C(S,"'");let N="",B="";for(;N=$(S,P);)N==="\\"?B+=H(S):B+=N;const W=S.currentChar();return W===Ve||W===bt?(f(Y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),W===Ve&&(S.next(),C(S,"'")),B):(C(S,"'"),B)}function H(S){const N=S.currentChar();switch(N){case"\\":case"'":return S.next(),`\\${N}`;case"u":return Q(S,N,4);case"U":return Q(S,N,6);default:return f(Y.UNKNOWN_ESCAPE_SEQUENCE,o(),0,N),""}}function Q(S,N,B){C(S,N);let W="";for(let ce=0;ce<B;ce++){const ae=ne(S);if(!ae){f(Y.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${N}${W}${S.currentChar()}`);break}W+=ae}return`\\${N}${W}`}function he(S){return S!=="{"&&S!=="}"&&S!==ut&&S!==Ve}function _e(S){v(S);let N="",B="";for(;N=$(S,he);)B+=N;return B}function Oe(S){let N="",B="";for(;N=Z(S);)B+=N;return B}function _t(S){const N=B=>{const W=S.currentChar();return W==="{"||W==="@"||W==="|"||W==="("||W===")"||!W||W===ut?B:(B+=W,S.next(),N(B))};return N("")}function Se(S){v(S);const N=C(S,"|");return v(S),N}function be(S,N){let B=null;switch(S.currentChar()){case"{":return N.braceNest>=1&&f(Y.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),S.next(),B=h(N,2,"{"),v(S),N.braceNest++,B;case"}":return N.braceNest>0&&N.currentType===2&&f(Y.EMPTY_PLACEHOLDER,o(),0),S.next(),B=h(N,3,"}"),N.braceNest--,N.braceNest>0&&v(S),N.inLinked&&N.braceNest===0&&(N.inLinked=!1),B;case"@":return N.braceNest>0&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),B=ee(S,N)||m(N),N.braceNest=0,B;default:{let ce=!0,ae=!0,re=!0;if(A(S))return N.braceNest>0&&f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),B=h(N,1,Se(S)),N.braceNest=0,N.inLinked=!1,B;if(N.braceNest>0&&(N.currentType===4||N.currentType===5||N.currentType===6))return f(Y.UNTERMINATED_CLOSING_BRACE,o(),0),N.braceNest=0,Fe(S,N);if(ce=E(S,N))return B=h(N,4,Be(S)),v(S),B;if(ae=_(S,N))return B=h(N,5,O(S)),v(S),B;if(re=k(S,N))return B=h(N,6,q(S)),v(S),B;if(!ce&&!ae&&!re)return B=h(N,12,_e(S)),f(Y.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,B.value),v(S),B;break}}return B}function ee(S,N){const{currentType:B}=N;let W=null;const ce=S.currentChar();switch((B===7||B===8||B===11||B===9)&&(ce===Ve||ce===ut)&&f(Y.INVALID_LINKED_FORMAT,o(),0),ce){case"@":return S.next(),W=h(N,7,"@"),N.inLinked=!0,W;case".":return v(S),S.next(),h(N,8,".");case":":return v(S),S.next(),h(N,9,":");default:return A(S)?(W=h(N,1,Se(S)),N.braceNest=0,N.inLinked=!1,W):w(S,N)||L(S,N)?(v(S),ee(S,N)):b(S,N)?(v(S),h(N,11,Oe(S))):T(S,N)?(v(S),ce==="{"?be(S,N)||W:h(N,10,_t(S))):(B===7&&f(Y.INVALID_LINKED_FORMAT,o(),0),N.braceNest=0,N.inLinked=!1,Fe(S,N))}}function Fe(S,N){let B={type:13};if(N.braceNest>0)return be(S,N)||m(N);if(N.inLinked)return ee(S,N)||m(N);switch(S.currentChar()){case"{":return be(S,N)||m(N);case"}":return f(Y.UNBALANCED_CLOSING_BRACE,o(),0),S.next(),h(N,3,"}");case"@":return ee(S,N)||m(N);default:{if(A(S))return B=h(N,1,Se(S)),N.braceNest=0,N.inLinked=!1,B;if(D(S))return h(N,0,De(S));break}}return B}function ie(){const{currentType:S,offset:N,startLoc:B,endLoc:W}=u;return u.lastType=S,u.lastOffset=N,u.lastStartLoc=B,u.lastEndLoc=W,u.offset=i(),u.startLoc=o(),n.currentChar()===bt?h(u,13):Fe(n,u)}return{nextToken:ie,currentOffset:i,currentPosition:o,context:c}}const dC="parser",fC=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function hC(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function pC(e={}){const t=e.location!==!1,{onError:r}=e;function n(p,g,E,_,...k){const w=p.currentPosition();if(w.offset+=_,w.column+=_,r){const b=t?$l(E,w):null,L=Jt(g,b,{domain:dC,args:k});r(L)}}function i(p,g,E){const _={type:p};return t&&(_.start=g,_.end=g,_.loc={start:E,end:E}),_}function o(p,g,E,_){t&&(p.end=g,p.loc&&(p.loc.end=E))}function s(p,g){const E=p.context(),_=i(3,E.offset,E.startLoc);return _.value=g,o(_,p.currentOffset(),p.currentPosition()),_}function l(p,g){const E=p.context(),{lastOffset:_,lastStartLoc:k}=E,w=i(5,_,k);return w.index=parseInt(g,10),p.nextToken(),o(w,p.currentOffset(),p.currentPosition()),w}function u(p,g){const E=p.context(),{lastOffset:_,lastStartLoc:k}=E,w=i(4,_,k);return w.key=g,p.nextToken(),o(w,p.currentOffset(),p.currentPosition()),w}function c(p,g){const E=p.context(),{lastOffset:_,lastStartLoc:k}=E,w=i(9,_,k);return w.value=g.replace(fC,hC),p.nextToken(),o(w,p.currentOffset(),p.currentPosition()),w}function d(p){const g=p.nextToken(),E=p.context(),{lastOffset:_,lastStartLoc:k}=E,w=i(8,_,k);return g.type!==11?(n(p,Y.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),w.value="",o(w,_,k),{nextConsumeToken:g,node:w}):(g.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ot(g)),w.value=g.value||"",o(w,p.currentOffset(),p.currentPosition()),{node:w})}function f(p,g){const E=p.context(),_=i(7,E.offset,E.startLoc);return _.value=g,o(_,p.currentOffset(),p.currentPosition()),_}function h(p){const g=p.context(),E=i(6,g.offset,g.startLoc);let _=p.nextToken();if(_.type===8){const k=d(p);E.modifier=k.node,_=k.nextConsumeToken||p.nextToken()}switch(_.type!==9&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),_=p.nextToken(),_.type===2&&(_=p.nextToken()),_.type){case 10:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=f(p,_.value||"");break;case 4:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=u(p,_.value||"");break;case 5:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=l(p,_.value||"");break;case 6:_.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(_)),E.key=c(p,_.value||"");break;default:{n(p,Y.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const k=p.context(),w=i(7,k.offset,k.startLoc);return w.value="",o(w,k.offset,k.startLoc),E.key=w,o(E,k.offset,k.startLoc),{nextConsumeToken:_,node:E}}}return o(E,p.currentOffset(),p.currentPosition()),{node:E}}function m(p){const g=p.context(),E=g.currentType===1?p.currentOffset():g.offset,_=g.currentType===1?g.endLoc:g.startLoc,k=i(2,E,_);k.items=[];let w=null;do{const T=w||p.nextToken();switch(w=null,T.type){case 0:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(s(p,T.value||""));break;case 5:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(l(p,T.value||""));break;case 4:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(u(p,T.value||""));break;case 6:T.value==null&&n(p,Y.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,ot(T)),k.items.push(c(p,T.value||""));break;case 7:{const A=h(p);k.items.push(A.node),w=A.nextConsumeToken||null;break}}}while(g.currentType!==13&&g.currentType!==1);const b=g.currentType===1?g.lastOffset:p.currentOffset(),L=g.currentType===1?g.lastEndLoc:p.currentPosition();return o(k,b,L),k}function C(p,g,E,_){const k=p.context();let w=_.items.length===0;const b=i(1,g,E);b.cases=[],b.cases.push(_);do{const L=m(p);w||(w=L.items.length===0),b.cases.push(L)}while(k.currentType!==13);return w&&n(p,Y.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),o(b,p.currentOffset(),p.currentPosition()),b}function y(p){const g=p.context(),{offset:E,startLoc:_}=g,k=m(p);return g.currentType===13?k:C(p,E,_,k)}function v(p){const g=cC(p,Ae({},e)),E=g.context(),_=i(0,E.offset,E.startLoc);return t&&_.loc&&(_.loc.source=p),_.body=y(g),e.onCacheKey&&(_.cacheKey=e.onCacheKey(p)),E.currentType!==13&&n(g,Y.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,p[E.offset]||""),o(_,g.currentOffset(),g.currentPosition()),_}return{parse:v}}function ot(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function mC(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:o=>(r.helpers.add(o),o)}}function bm(e,t){for(let r=0;r<e.length;r++)wu(e[r],t)}function wu(e,t){switch(e.type){case 1:bm(e.cases,t),t.helper("plural");break;case 2:bm(e.items,t);break;case 6:{wu(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function gC(e,t={}){const r=mC(e);r.helper("normalize"),e.body&&wu(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function vC(e){const t=e.body;return t.type===2?Cm(t):t.cases.forEach(r=>Cm(r)),e}function Cm(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=Su(t);for(let r=0;r<e.items.length;r++){const n=e.items[r];(n.type===3||n.type===9)&&delete n.value}}}}const _C="minifier";function Gt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Gt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let n=0;n<r.length;n++)Gt(r[n]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let n=0;n<r.length;n++)Gt(r[n]);t.i=r,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Gt(t.key),t.k=t.key,delete t.key,t.modifier&&(Gt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Jt(Y.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:_C,args:[e.type]})}delete e.type}const yC="parser";function EC(e,t){const{filename:r,breakLineCode:n,needIndent:i}=t,o=t.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:i,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(y,v){s.code+=y}function c(y,v=!0){const p=v?n:"";u(i?p+" ".repeat(y):p)}function d(y=!0){const v=++s.indentLevel;y&&c(v)}function f(y=!0){const v=--s.indentLevel;y&&c(v)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:y=>`_${y}`,needIndent:()=>s.needIndent}}function bC(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),zt(e,t.key),t.modifier?(e.push(", "),zt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function CC(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const i=t.items.length;for(let o=0;o<i&&(zt(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(n()),e.push("])")}function kC(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const i=t.cases.length;for(let o=0;o<i&&(zt(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(n()),e.push("])")}}function SC(e,t){t.body?zt(e,t.body):e.push("null")}function zt(e,t){const{helper:r}=e;switch(t.type){case 0:SC(e,t);break;case 1:kC(e,t);break;case 2:CC(e,t);break;case 6:bC(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Jt(Y.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:yC,args:[t.type]})}}const wC=(e,t={})=>{const r=j(t.mode)?t.mode:"normal",n=j(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
|
12
|
+
`,o=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=EC(e,{filename:n,breakLineCode:i,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${Su(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),zt(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function NC(e,t={}){const r=Ae({},t),n=!!r.jit,i=!!r.minify,o=r.optimize==null?!0:r.optimize,l=pC(r).parse(e);return n?(o&&vC(l),i&&Gt(l),{ast:l,code:""}):(gC(l,r),wC(l,r))}/*!
|
|
13
13
|
* core-base v11.1.3
|
|
14
14
|
* (c) 2025 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function TC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(At().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(At().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Ze(e){return ue(e)&&Nu(e)===0&&(Xe(e,"b")||Xe(e,"body"))}const lv=["b","body"];function LC(e){return Nt(e,lv)}const uv=["c","cases"];function OC(e){return Nt(e,uv,[])}const cv=["s","static"];function IC(e){return Nt(e,cv)}const dv=["i","items"];function AC(e){return Nt(e,dv,[])}const fv=["t","type"];function Nu(e){return Nt(e,fv)}const hv=["v","value"];function yr(e,t){const r=Nt(e,hv);if(r!=null)return r;throw ar(t)}const pv=["m","modifier"];function RC(e){return Nt(e,pv)}const mv=["k","key"];function DC(e){const t=Nt(e,mv);if(t)return t;throw ar(6)}function Nt(e,t,r){for(let n=0;n<t.length;n++){const i=t[n];if(Xe(e,i)&&e[i]!=null)return e[i]}return r}const gv=[...lv,...uv,...cv,...dv,...mv,...pv,...hv,...fv];function ar(e){return new Error(`unhandled node type: ${e}`)}function Rl(e){return r=>PC(r,e)}function PC(e,t){const r=LC(t);if(r==null)throw ar(0);if(Nu(r)===1){const o=OC(r);return e.plural(o.reduce((s,l)=>[...s,km(e,l)],[]))}else return km(e,r)}function km(e,t){const r=IC(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=AC(t).reduce((i,o)=>[...i,Fl(e,o)],[]);return e.normalize(n)}}function Fl(e,t){const r=Nu(t);switch(r){case 3:return yr(t,r);case 9:return yr(t,r);case 4:{const n=t;if(Xe(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(Xe(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw ar(r)}case 5:{const n=t;if(Xe(n,"i")&&Ie(n.i))return e.interpolate(e.list(n.i));if(Xe(n,"index")&&Ie(n.index))return e.interpolate(e.list(n.index));throw ar(r)}case 6:{const n=t,i=RC(n),o=DC(n);return e.linked(Fl(e,o),i?Fl(e,i):void 0,e.type)}case 7:return yr(t,r);case 8:return yr(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const BC="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function VC(e,t){t&&nC(e)&&St(tn(BC,{source:e}))}const xC=e=>e;let Er=me();function MC(e,t={}){let r=!1;const n=t.onError||tC;return t.onError=i=>{r=!0,n(i)},{...NC(e,t),detectError:r}}function qC(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){const r=ke(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&VC(e,r);const i=(t.onCacheKey||xC)(e),o=Er[i];if(o)return o;const{ast:s,detectError:l}=MC(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Rl(s);return l?u:Er[i]=u}else{if(process.env.NODE_ENV!=="production"&&!Ze(e))return St(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const r=e.cacheKey;if(r){const n=Er[r];return n||(Er[r]=Rl(e))}else return Rl(e)}}let or=null;function $C(e){or=e}function FC(e,t,r){or&&or.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const UC=HC("function:translate");function HC(e){return t=>or&&or.emit(e,t)}const Pe={INVALID_ARGUMENT:Q0,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},GC=24;function dt(e){return Jt(e,null,process.env.NODE_ENV!=="production"?{messages:jC}:void 0)}const jC={[Pe.INVALID_ARGUMENT]:"Invalid arguments",[Pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Tu(e,t){return t.locale!=null?wm(t.locale):wm(e.locale)}let Dl;function wm(e){if(j(e))return e;if(ye(e)){if(e.resolvedOnce&&Dl!=null)return Dl;if(e.constructor.name==="Function"){const t=e();if(W0(t))throw dt(Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dl=t}else throw dt(Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw dt(Pe.NOT_SUPPORT_LOCALE_TYPE)}function zC(e,t,r){return[...new Set([r,...Le(t)?t:ue(t)?Object.keys(t):j(t)?[t]:[r]])]}function vv(e,t,r){const n=j(r)?r:Ir,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let s=[r];for(;Le(s);)s=Sm(o,s,t);const l=Le(t)||!le(t)?t:t.default?t.default:null;s=j(l)?[l]:l,Le(s)&&Sm(o,s,!1),i.__localeChainCache.set(n,o)}return o}function Sm(e,t,r){let n=!0;for(let i=0;i<t.length&&ke(n);i++){const o=t[i];j(o)&&(n=WC(e,t[i],r))}return n}function WC(e,t,r){let n;const i=t.split("-");do{const o=i.join("-");n=KC(e,o,r),i.splice(-1,1)}while(i.length&&n===!0);return n}function KC(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Le(r)||le(r))&&r[i]&&(n=r[i])}return n}const Tt=[];Tt[0]={w:[0],i:[3,0],"[":[4],o:[7]};Tt[1]={w:[1],".":[2],"[":[4],o:[7]};Tt[2]={w:[2],i:[3,0],0:[3,0]};Tt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Tt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Tt[5]={"'":[4,0],o:8,l:[5,0]};Tt[6]={'"':[4,0],o:8,l:[6,0]};const YC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function XC(e){return YC.test(e)}function ZC(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function JC(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function QC(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:XC(t)?ZC(t):"*"+t}function ek(e){const t=[];let r=-1,n=0,i=0,o,s,l,u,c,d,f;const h=[];h[0]=()=>{s===void 0?s=l:s+=l},h[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,n=4,h[0]();else{if(i=0,s===void 0||(s=QC(s),s===!1))return!1;h[1]()}};function m(){const C=e[r+1];if(n===5&&C==="'"||n===6&&C==='"')return r++,l="\\"+C,h[0](),!0}for(;n!==null;)if(r++,o=e[r],!(o==="\\"&&m())){if(u=JC(o),f=Tt[n],c=f[u]||f.l||8,c===8||(n=c[0],c[1]!==void 0&&(d=h[c[1]],d&&(l=o,d()===!1))))return;if(n===7)return t}}const Nm=new Map;function tk(e,t){return ue(e)?e[t]:null}function rk(e,t){if(!ue(e))return null;let r=Nm.get(t);if(r||(r=ek(t),r&&Nm.set(t,r)),!r)return null;const n=r.length;let i=e,o=0;for(;o<n;){const s=r[o];if(gv.includes(s)&&Ze(i))return null;const l=i[s];if(l===void 0||ye(i))return null;i=l,o++}return i}const xe={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},nk=8,ik={[xe.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[xe.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[xe.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[xe.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[xe.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[xe.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[xe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Dt(e,...t){return tn(ik[e],...t)}const ak="11.1.3",nn=-1,Ir="en-US",Ar="",Tm=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ok(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?Tm(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Tm(e.children):e}}let _v;function sk(e){_v=e}let yv;function lk(e){yv=e}let Ev;function uk(e){Ev=e}let bv=null;const ck=e=>{bv=e},dk=()=>bv;let Cv=null;const Lm=e=>{Cv=e},fk=()=>Cv;let Om=0;function hk(e={}){const t=ye(e.onWarn)?e.onWarn:St,r=j(e.version)?e.version:ak,n=j(e.locale)||ye(e.locale)?e.locale:Ir,i=ye(n)?Ir:n,o=Le(e.fallbackLocale)||le(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,s=le(e.messages)?e.messages:Pl(i),l=le(e.datetimeFormats)?e.datetimeFormats:Pl(i),u=le(e.numberFormats)?e.numberFormats:Pl(i),c=Ae(me(),e.modifiers,ok()),d=e.pluralRules||me(),f=ye(e.missing)?e.missing:null,h=ke(e.missingWarn)||Or(e.missingWarn)?e.missingWarn:!0,m=ke(e.fallbackWarn)||Or(e.fallbackWarn)?e.fallbackWarn:!0,C=!!e.fallbackFormat,y=!!e.unresolving,v=ye(e.postTranslation)?e.postTranslation:null,p=le(e.processor)?e.processor:null,g=ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,_=ye(e.messageCompiler)?e.messageCompiler:_v;process.env.NODE_ENV!=="production"&&ye(e.messageCompiler)&&X0(Dt(xe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=ye(e.messageResolver)?e.messageResolver:yv||tk,S=ye(e.localeFallbacker)?e.localeFallbacker:Ev||zC,b=ue(e.fallbackContext)?e.fallbackContext:void 0,L=e,T=ue(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,A=ue(L.__numberFormatters)?L.__numberFormatters:new Map,D=ue(L.__meta)?L.__meta:{};Om++;const $={version:r,cid:Om,locale:n,fallbackLocale:o,messages:s,modifiers:c,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:C,unresolving:y,postTranslation:v,processor:p,warnHtmlMessage:g,escapeParameter:E,messageCompiler:_,messageResolver:k,localeFallbacker:S,fallbackContext:b,onWarn:t,__meta:D};return $.datetimeFormats=l,$.numberFormats=u,$.__datetimeFormatters=T,$.__numberFormatters=A,process.env.NODE_ENV!=="production"&&($.__v_emitter=L.__v_emitter!=null?L.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&FC($,r,D),$}const Pl=e=>({[e]:me()});function an(e,t){return e instanceof RegExp?e.test(t):e}function kv(e,t){return e instanceof RegExp?e.test(t):e}function Lu(e,t,r,n,i){const{missing:o,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:r,key:t,type:i,groupId:`${i}:${t}`})}if(o!==null){const l=o(e,r,t,i);return j(l)?l:t}else return process.env.NODE_ENV!=="production"&&kv(n,t)&&s(Dt(xe.NOT_FOUND_KEY,{key:t,locale:r})),t}function er(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function wv(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function pk(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n<t.length;n++)if(wv(e,t[n]))return!0;return!1}const Im=typeof Intl<"u",Sv={dateTimeFormat:Im&&typeof Intl.DateTimeFormat<"u",numberFormat:Im&&typeof Intl.NumberFormat<"u"};function Am(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Sv.dateTimeFormat)return o(Dt(xe.CANNOT_FORMAT_DATE)),Ar;const[u,c,d,f]=Ul(...t),h=ke(d.missingWarn)?d.missingWarn:e.missingWarn,m=ke(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,y=Tu(e,d),v=s(e,i,y);if(!j(u)||u==="")return new Intl.DateTimeFormat(y,f).format(c);let p={},g,E=null,_=y,k=null;const S="datetime format";for(let T=0;T<v.length;T++){if(g=k=v[T],process.env.NODE_ENV!=="production"&&y!==g&&an(m,u)&&o(Dt(xe.FALLBACK_TO_DATE_FORMAT,{key:u,target:g})),process.env.NODE_ENV!=="production"&&y!==g){const A=e.__v_emitter;A&&A.emit("fallback",{type:S,key:u,from:_,to:k,groupId:`${S}:${u}`})}if(p=r[g]||{},E=p[u],le(E))break;Lu(e,u,g,h,S),_=k}if(!le(E)||!j(g))return n?nn:u;let b=`${g}__${u}`;rn(f)||(b=`${b}__${JSON.stringify(f)}`);let L=l.get(b);return L||(L=new Intl.DateTimeFormat(g,Ae({},E,f)),l.set(b,L)),C?L.formatToParts(c):L.format(c)}const Nv=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ul(...e){const[t,r,n,i]=e,o=me();let s=me(),l;if(j(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw dt(Pe.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();l=new Date(c);try{l.toISOString()}catch{throw dt(Pe.INVALID_ISO_DATE_ARGUMENT)}}else if(G0(t)){if(isNaN(t.getTime()))throw dt(Pe.INVALID_DATE_ARGUMENT);l=t}else if(Ie(t))l=t;else throw dt(Pe.INVALID_ARGUMENT);return j(r)?o.key=r:le(r)&&Object.keys(r).forEach(u=>{Nv.includes(u)?s[u]=r[u]:o[u]=r[u]}),j(n)?o.locale=n:le(n)&&(s=n),le(i)&&(s=i),[o.key||"",l,o,s]}function Rm(e,t,r){const n=e;for(const i in r){const o=`${t}__${i}`;n.__datetimeFormatters.has(o)&&n.__datetimeFormatters.delete(o)}}function Dm(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Sv.numberFormat)return o(Dt(xe.CANNOT_FORMAT_NUMBER)),Ar;const[u,c,d,f]=Hl(...t),h=ke(d.missingWarn)?d.missingWarn:e.missingWarn,m=ke(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,y=Tu(e,d),v=s(e,i,y);if(!j(u)||u==="")return new Intl.NumberFormat(y,f).format(c);let p={},g,E=null,_=y,k=null;const S="number format";for(let T=0;T<v.length;T++){if(g=k=v[T],process.env.NODE_ENV!=="production"&&y!==g&&an(m,u)&&o(Dt(xe.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:g})),process.env.NODE_ENV!=="production"&&y!==g){const A=e.__v_emitter;A&&A.emit("fallback",{type:S,key:u,from:_,to:k,groupId:`${S}:${u}`})}if(p=r[g]||{},E=p[u],le(E))break;Lu(e,u,g,h,S),_=k}if(!le(E)||!j(g))return n?nn:u;let b=`${g}__${u}`;rn(f)||(b=`${b}__${JSON.stringify(f)}`);let L=l.get(b);return L||(L=new Intl.NumberFormat(g,Ae({},E,f)),l.set(b,L)),C?L.formatToParts(c):L.format(c)}const Tv=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hl(...e){const[t,r,n,i]=e,o=me();let s=me();if(!Ie(t))throw dt(Pe.INVALID_ARGUMENT);const l=t;return j(r)?o.key=r:le(r)&&Object.keys(r).forEach(u=>{Tv.includes(u)?s[u]=r[u]:o[u]=r[u]}),j(n)?o.locale=n:le(n)&&(s=n),le(i)&&(s=i),[o.key||"",l,o,s]}function Pm(e,t,r){const n=e;for(const i in r){const o=`${t}__${i}`;n.__numberFormatters.has(o)&&n.__numberFormatters.delete(o)}}const mk=e=>e,gk=e=>"",vk="text",_k=e=>e.length===0?"":wu(e),yk=K0;function Bm(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ek(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function bk(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ck(e={}){const t=e.locale,r=Ek(e),n=ue(e.pluralRules)&&j(t)&&ye(e.pluralRules[t])?e.pluralRules[t]:Bm,i=ue(e.pluralRules)&&j(t)&&ye(e.pluralRules[t])?Bm:void 0,o=p=>p[n(r,p.length,i)],s=e.list||[],l=p=>s[p],u=e.named||me();Ie(e.pluralIndex)&&bk(r,u);const c=p=>u[p];function d(p,g){const E=ye(e.messages)?e.messages(p,!!g):ue(e.messages)?e.messages[p]:!1;return E||(e.parent?e.parent.message(p):gk)}const f=p=>e.modifiers?e.modifiers[p]:mk,h=le(e.processor)&&ye(e.processor.normalize)?e.processor.normalize:_k,m=le(e.processor)&&ye(e.processor.interpolate)?e.processor.interpolate:yk,C=le(e.processor)&&j(e.processor.type)?e.processor.type:vk,v={list:l,named:c,plural:o,linked:(p,...g)=>{const[E,_]=g;let k="text",S="";g.length===1?ue(E)?(S=E.modifier||S,k=E.type||k):j(E)&&(S=E||S):g.length===2&&(j(E)&&(S=E||S),j(_)&&(k=_||k));const b=d(p,!0)(v),L=k==="vnode"&&Le(b)&&S?b[0]:b;return S?f(S)(L,k):L},message:d,type:C,interpolate:m,normalize:h,values:Ae(me(),s,u)};return v}const Vm=()=>"",We=e=>ye(e);function xm(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:l}=e,[u,c]=Gl(...t),d=ke(c.missingWarn)?c.missingWarn:e.missingWarn,f=ke(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=ke(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,C=j(c.default)||ke(c.default)?ke(c.default)?o?u:()=>u:c.default:r?o?u:()=>u:null,y=r||C!=null&&(j(C)||ye(C)),v=Tu(e,c);h&&kk(c);let[p,g,E]=m?[u,v,l[v]||me()]:Lv(e,u,v,s,f,d),_=p,k=u;if(!m&&!(j(_)||Ze(_)||We(_))&&y&&(_=C,k=_),!m&&(!(j(_)||Ze(_)||We(_))||!j(g)))return i?nn:u;if(process.env.NODE_ENV!=="production"&&j(_)&&e.messageCompiler==null)return St(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let S=!1;const b=()=>{S=!0},L=We(_)?_:Ov(e,u,g,_,k,b);if(S)return _;const T=Tk(e,g,E,c),A=Ck(T),D=wk(e,L,A),$=n?n(D,u):D;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const z={timestamp:Date.now(),key:j(u)?u:We(_)?_.key:"",locale:g||(We(_)?_.locale:""),format:j(_)?_:We(_)?_.source:"",message:$};z.meta=Ae({},e.__meta,dk()||{}),UC(z)}return $}function kk(e){Le(e.list)?e.list=e.list.map(t=>j(t)?vm(t):t):ue(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=vm(e.named[t]))})}function Lv(e,t,r,n,i,o){const{messages:s,onWarn:l,messageResolver:u,localeFallbacker:c}=e,d=c(e,n,r);let f=me(),h,m=null,C=r,y=null;const v="translate";for(let p=0;p<d.length;p++){if(h=y=d[p],process.env.NODE_ENV!=="production"&&r!==h&&!wv(r,h)&&an(i,t)&&l(Dt(xe.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&r!==h){const k=e.__v_emitter;k&&k.emit("fallback",{type:v,key:t,from:C,to:y,groupId:`${v}:${t}`})}f=s[h]||me();let g=null,E,_;if(process.env.NODE_ENV!=="production"&&pt&&(g=window.performance.now(),E="intlify-message-resolve-start",_="intlify-message-resolve-end",je&&je(E)),(m=u(f,t))===null&&(m=f[t]),process.env.NODE_ENV!=="production"&&pt){const k=window.performance.now(),S=e.__v_emitter;S&&g&&m&&S.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:k-g,groupId:`${v}:${t}`}),E&&_&&je&&Rt&&(je(_),Rt("intlify message resolve",E,_))}if(j(m)||Ze(m)||We(m))break;if(!pk(h,d)){const k=Lu(e,t,h,o,v);k!==t&&(m=k)}C=y}return[m,h,f]}function Ov(e,t,r,n,i,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(We(n)){const h=n;return h.locale=h.locale||r,h.key=h.key||t,h}if(s==null){const h=()=>n;return h.locale=r,h.key=t,h}let u=null,c,d;process.env.NODE_ENV!=="production"&&pt&&(u=window.performance.now(),c="intlify-message-compilation-start",d="intlify-message-compilation-end",je&&je(c));const f=s(n,Sk(e,r,i,n,l,o));if(process.env.NODE_ENV!=="production"&&pt){const h=window.performance.now(),m=e.__v_emitter;m&&u&&m.emit("message-compilation",{type:"message-compilation",message:n,time:h-u,groupId:`translate:${t}`}),c&&d&&je&&Rt&&(je(d),Rt("intlify message compilation",c,d))}return f.locale=r,f.key=t,f.source=n,f}function wk(e,t,r){let n=null,i,o;process.env.NODE_ENV!=="production"&&pt&&(n=window.performance.now(),i="intlify-message-evaluation-start",o="intlify-message-evaluation-end",je&&je(i));const s=t(r);if(process.env.NODE_ENV!=="production"&&pt){const l=window.performance.now(),u=e.__v_emitter;u&&n&&u.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-n,groupId:`translate:${t.key}`}),i&&o&&je&&Rt&&(je(o),Rt("intlify message evaluation",i,o))}return s}function Gl(...e){const[t,r,n]=e,i=me();if(!j(t)&&!Ie(t)&&!We(t)&&!Ze(t))throw dt(Pe.INVALID_ARGUMENT);const o=Ie(t)?String(t):(We(t),t);return Ie(r)?i.plural=r:j(r)?i.default=r:le(r)&&!rn(r)?i.named=r:Le(r)&&(i.list=r),Ie(n)?i.plural=n:j(n)?i.default=n:le(n)&&Ae(i,n),[o,i]}function Sk(e,t,r,n,i,o){return{locale:t,key:r,warnHtmlMessage:i,onError:s=>{if(o&&o(s),process.env.NODE_ENV!=="production"){const l=Nk(n),u=`Message compilation error: ${s.message}`,c=s.location&&l&&Y0(l,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&l&&d.emit("compile-error",{message:l,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${r}`}),console.error(c?`${u}
|
|
16
|
+
*/function TC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(At().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(At().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Ze(e){return ue(e)&&Nu(e)===0&&(Xe(e,"b")||Xe(e,"body"))}const lv=["b","body"];function LC(e){return Nt(e,lv)}const uv=["c","cases"];function OC(e){return Nt(e,uv,[])}const cv=["s","static"];function IC(e){return Nt(e,cv)}const dv=["i","items"];function AC(e){return Nt(e,dv,[])}const fv=["t","type"];function Nu(e){return Nt(e,fv)}const hv=["v","value"];function yr(e,t){const r=Nt(e,hv);if(r!=null)return r;throw ar(t)}const pv=["m","modifier"];function RC(e){return Nt(e,pv)}const mv=["k","key"];function DC(e){const t=Nt(e,mv);if(t)return t;throw ar(6)}function Nt(e,t,r){for(let n=0;n<t.length;n++){const i=t[n];if(Xe(e,i)&&e[i]!=null)return e[i]}return r}const gv=[...lv,...uv,...cv,...dv,...mv,...pv,...hv,...fv];function ar(e){return new Error(`unhandled node type: ${e}`)}function Rl(e){return r=>PC(r,e)}function PC(e,t){const r=LC(t);if(r==null)throw ar(0);if(Nu(r)===1){const o=OC(r);return e.plural(o.reduce((s,l)=>[...s,km(e,l)],[]))}else return km(e,r)}function km(e,t){const r=IC(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=AC(t).reduce((i,o)=>[...i,Fl(e,o)],[]);return e.normalize(n)}}function Fl(e,t){const r=Nu(t);switch(r){case 3:return yr(t,r);case 9:return yr(t,r);case 4:{const n=t;if(Xe(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(Xe(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw ar(r)}case 5:{const n=t;if(Xe(n,"i")&&Ie(n.i))return e.interpolate(e.list(n.i));if(Xe(n,"index")&&Ie(n.index))return e.interpolate(e.list(n.index));throw ar(r)}case 6:{const n=t,i=RC(n),o=DC(n);return e.linked(Fl(e,o),i?Fl(e,i):void 0,e.type)}case 7:return yr(t,r);case 8:return yr(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const BC="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function VC(e,t){t&&nC(e)&&wt(tn(BC,{source:e}))}const xC=e=>e;let Er=me();function MC(e,t={}){let r=!1;const n=t.onError||tC;return t.onError=i=>{r=!0,n(i)},{...NC(e,t),detectError:r}}function qC(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){const r=ke(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&VC(e,r);const i=(t.onCacheKey||xC)(e),o=Er[i];if(o)return o;const{ast:s,detectError:l}=MC(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Rl(s);return l?u:Er[i]=u}else{if(process.env.NODE_ENV!=="production"&&!Ze(e))return wt(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const r=e.cacheKey;if(r){const n=Er[r];return n||(Er[r]=Rl(e))}else return Rl(e)}}let or=null;function $C(e){or=e}function FC(e,t,r){or&&or.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const UC=HC("function:translate");function HC(e){return t=>or&&or.emit(e,t)}const Pe={INVALID_ARGUMENT:Q0,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},GC=24;function dt(e){return Jt(e,null,process.env.NODE_ENV!=="production"?{messages:jC}:void 0)}const jC={[Pe.INVALID_ARGUMENT]:"Invalid arguments",[Pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Tu(e,t){return t.locale!=null?Sm(t.locale):Sm(e.locale)}let Dl;function Sm(e){if(j(e))return e;if(ye(e)){if(e.resolvedOnce&&Dl!=null)return Dl;if(e.constructor.name==="Function"){const t=e();if(W0(t))throw dt(Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dl=t}else throw dt(Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw dt(Pe.NOT_SUPPORT_LOCALE_TYPE)}function zC(e,t,r){return[...new Set([r,...Le(t)?t:ue(t)?Object.keys(t):j(t)?[t]:[r]])]}function vv(e,t,r){const n=j(r)?r:Ir,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let s=[r];for(;Le(s);)s=wm(o,s,t);const l=Le(t)||!le(t)?t:t.default?t.default:null;s=j(l)?[l]:l,Le(s)&&wm(o,s,!1),i.__localeChainCache.set(n,o)}return o}function wm(e,t,r){let n=!0;for(let i=0;i<t.length&&ke(n);i++){const o=t[i];j(o)&&(n=WC(e,t[i],r))}return n}function WC(e,t,r){let n;const i=t.split("-");do{const o=i.join("-");n=KC(e,o,r),i.splice(-1,1)}while(i.length&&n===!0);return n}function KC(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Le(r)||le(r))&&r[i]&&(n=r[i])}return n}const Tt=[];Tt[0]={w:[0],i:[3,0],"[":[4],o:[7]};Tt[1]={w:[1],".":[2],"[":[4],o:[7]};Tt[2]={w:[2],i:[3,0],0:[3,0]};Tt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Tt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Tt[5]={"'":[4,0],o:8,l:[5,0]};Tt[6]={'"':[4,0],o:8,l:[6,0]};const YC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function XC(e){return YC.test(e)}function ZC(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function JC(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function QC(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:XC(t)?ZC(t):"*"+t}function ek(e){const t=[];let r=-1,n=0,i=0,o,s,l,u,c,d,f;const h=[];h[0]=()=>{s===void 0?s=l:s+=l},h[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,n=4,h[0]();else{if(i=0,s===void 0||(s=QC(s),s===!1))return!1;h[1]()}};function m(){const C=e[r+1];if(n===5&&C==="'"||n===6&&C==='"')return r++,l="\\"+C,h[0](),!0}for(;n!==null;)if(r++,o=e[r],!(o==="\\"&&m())){if(u=JC(o),f=Tt[n],c=f[u]||f.l||8,c===8||(n=c[0],c[1]!==void 0&&(d=h[c[1]],d&&(l=o,d()===!1))))return;if(n===7)return t}}const Nm=new Map;function tk(e,t){return ue(e)?e[t]:null}function rk(e,t){if(!ue(e))return null;let r=Nm.get(t);if(r||(r=ek(t),r&&Nm.set(t,r)),!r)return null;const n=r.length;let i=e,o=0;for(;o<n;){const s=r[o];if(gv.includes(s)&&Ze(i))return null;const l=i[s];if(l===void 0||ye(i))return null;i=l,o++}return i}const xe={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},nk=8,ik={[xe.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[xe.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[xe.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[xe.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[xe.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[xe.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[xe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Dt(e,...t){return tn(ik[e],...t)}const ak="11.1.3",nn=-1,Ir="en-US",Ar="",Tm=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ok(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?Tm(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Tm(e.children):e}}let _v;function sk(e){_v=e}let yv;function lk(e){yv=e}let Ev;function uk(e){Ev=e}let bv=null;const ck=e=>{bv=e},dk=()=>bv;let Cv=null;const Lm=e=>{Cv=e},fk=()=>Cv;let Om=0;function hk(e={}){const t=ye(e.onWarn)?e.onWarn:wt,r=j(e.version)?e.version:ak,n=j(e.locale)||ye(e.locale)?e.locale:Ir,i=ye(n)?Ir:n,o=Le(e.fallbackLocale)||le(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,s=le(e.messages)?e.messages:Pl(i),l=le(e.datetimeFormats)?e.datetimeFormats:Pl(i),u=le(e.numberFormats)?e.numberFormats:Pl(i),c=Ae(me(),e.modifiers,ok()),d=e.pluralRules||me(),f=ye(e.missing)?e.missing:null,h=ke(e.missingWarn)||Or(e.missingWarn)?e.missingWarn:!0,m=ke(e.fallbackWarn)||Or(e.fallbackWarn)?e.fallbackWarn:!0,C=!!e.fallbackFormat,y=!!e.unresolving,v=ye(e.postTranslation)?e.postTranslation:null,p=le(e.processor)?e.processor:null,g=ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,_=ye(e.messageCompiler)?e.messageCompiler:_v;process.env.NODE_ENV!=="production"&&ye(e.messageCompiler)&&X0(Dt(xe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=ye(e.messageResolver)?e.messageResolver:yv||tk,w=ye(e.localeFallbacker)?e.localeFallbacker:Ev||zC,b=ue(e.fallbackContext)?e.fallbackContext:void 0,L=e,T=ue(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,A=ue(L.__numberFormatters)?L.__numberFormatters:new Map,D=ue(L.__meta)?L.__meta:{};Om++;const $={version:r,cid:Om,locale:n,fallbackLocale:o,messages:s,modifiers:c,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:C,unresolving:y,postTranslation:v,processor:p,warnHtmlMessage:g,escapeParameter:E,messageCompiler:_,messageResolver:k,localeFallbacker:w,fallbackContext:b,onWarn:t,__meta:D};return $.datetimeFormats=l,$.numberFormats=u,$.__datetimeFormatters=T,$.__numberFormatters=A,process.env.NODE_ENV!=="production"&&($.__v_emitter=L.__v_emitter!=null?L.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&FC($,r,D),$}const Pl=e=>({[e]:me()});function an(e,t){return e instanceof RegExp?e.test(t):e}function kv(e,t){return e instanceof RegExp?e.test(t):e}function Lu(e,t,r,n,i){const{missing:o,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:r,key:t,type:i,groupId:`${i}:${t}`})}if(o!==null){const l=o(e,r,t,i);return j(l)?l:t}else return process.env.NODE_ENV!=="production"&&kv(n,t)&&s(Dt(xe.NOT_FOUND_KEY,{key:t,locale:r})),t}function er(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function Sv(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function pk(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n<t.length;n++)if(Sv(e,t[n]))return!0;return!1}const Im=typeof Intl<"u",wv={dateTimeFormat:Im&&typeof Intl.DateTimeFormat<"u",numberFormat:Im&&typeof Intl.NumberFormat<"u"};function Am(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!wv.dateTimeFormat)return o(Dt(xe.CANNOT_FORMAT_DATE)),Ar;const[u,c,d,f]=Ul(...t),h=ke(d.missingWarn)?d.missingWarn:e.missingWarn,m=ke(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,y=Tu(e,d),v=s(e,i,y);if(!j(u)||u==="")return new Intl.DateTimeFormat(y,f).format(c);let p={},g,E=null,_=y,k=null;const w="datetime format";for(let T=0;T<v.length;T++){if(g=k=v[T],process.env.NODE_ENV!=="production"&&y!==g&&an(m,u)&&o(Dt(xe.FALLBACK_TO_DATE_FORMAT,{key:u,target:g})),process.env.NODE_ENV!=="production"&&y!==g){const A=e.__v_emitter;A&&A.emit("fallback",{type:w,key:u,from:_,to:k,groupId:`${w}:${u}`})}if(p=r[g]||{},E=p[u],le(E))break;Lu(e,u,g,h,w),_=k}if(!le(E)||!j(g))return n?nn:u;let b=`${g}__${u}`;rn(f)||(b=`${b}__${JSON.stringify(f)}`);let L=l.get(b);return L||(L=new Intl.DateTimeFormat(g,Ae({},E,f)),l.set(b,L)),C?L.formatToParts(c):L.format(c)}const Nv=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ul(...e){const[t,r,n,i]=e,o=me();let s=me(),l;if(j(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw dt(Pe.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();l=new Date(c);try{l.toISOString()}catch{throw dt(Pe.INVALID_ISO_DATE_ARGUMENT)}}else if(G0(t)){if(isNaN(t.getTime()))throw dt(Pe.INVALID_DATE_ARGUMENT);l=t}else if(Ie(t))l=t;else throw dt(Pe.INVALID_ARGUMENT);return j(r)?o.key=r:le(r)&&Object.keys(r).forEach(u=>{Nv.includes(u)?s[u]=r[u]:o[u]=r[u]}),j(n)?o.locale=n:le(n)&&(s=n),le(i)&&(s=i),[o.key||"",l,o,s]}function Rm(e,t,r){const n=e;for(const i in r){const o=`${t}__${i}`;n.__datetimeFormatters.has(o)&&n.__datetimeFormatters.delete(o)}}function Dm(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!wv.numberFormat)return o(Dt(xe.CANNOT_FORMAT_NUMBER)),Ar;const[u,c,d,f]=Hl(...t),h=ke(d.missingWarn)?d.missingWarn:e.missingWarn,m=ke(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,y=Tu(e,d),v=s(e,i,y);if(!j(u)||u==="")return new Intl.NumberFormat(y,f).format(c);let p={},g,E=null,_=y,k=null;const w="number format";for(let T=0;T<v.length;T++){if(g=k=v[T],process.env.NODE_ENV!=="production"&&y!==g&&an(m,u)&&o(Dt(xe.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:g})),process.env.NODE_ENV!=="production"&&y!==g){const A=e.__v_emitter;A&&A.emit("fallback",{type:w,key:u,from:_,to:k,groupId:`${w}:${u}`})}if(p=r[g]||{},E=p[u],le(E))break;Lu(e,u,g,h,w),_=k}if(!le(E)||!j(g))return n?nn:u;let b=`${g}__${u}`;rn(f)||(b=`${b}__${JSON.stringify(f)}`);let L=l.get(b);return L||(L=new Intl.NumberFormat(g,Ae({},E,f)),l.set(b,L)),C?L.formatToParts(c):L.format(c)}const Tv=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hl(...e){const[t,r,n,i]=e,o=me();let s=me();if(!Ie(t))throw dt(Pe.INVALID_ARGUMENT);const l=t;return j(r)?o.key=r:le(r)&&Object.keys(r).forEach(u=>{Tv.includes(u)?s[u]=r[u]:o[u]=r[u]}),j(n)?o.locale=n:le(n)&&(s=n),le(i)&&(s=i),[o.key||"",l,o,s]}function Pm(e,t,r){const n=e;for(const i in r){const o=`${t}__${i}`;n.__numberFormatters.has(o)&&n.__numberFormatters.delete(o)}}const mk=e=>e,gk=e=>"",vk="text",_k=e=>e.length===0?"":Su(e),yk=K0;function Bm(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ek(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function bk(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ck(e={}){const t=e.locale,r=Ek(e),n=ue(e.pluralRules)&&j(t)&&ye(e.pluralRules[t])?e.pluralRules[t]:Bm,i=ue(e.pluralRules)&&j(t)&&ye(e.pluralRules[t])?Bm:void 0,o=p=>p[n(r,p.length,i)],s=e.list||[],l=p=>s[p],u=e.named||me();Ie(e.pluralIndex)&&bk(r,u);const c=p=>u[p];function d(p,g){const E=ye(e.messages)?e.messages(p,!!g):ue(e.messages)?e.messages[p]:!1;return E||(e.parent?e.parent.message(p):gk)}const f=p=>e.modifiers?e.modifiers[p]:mk,h=le(e.processor)&&ye(e.processor.normalize)?e.processor.normalize:_k,m=le(e.processor)&&ye(e.processor.interpolate)?e.processor.interpolate:yk,C=le(e.processor)&&j(e.processor.type)?e.processor.type:vk,v={list:l,named:c,plural:o,linked:(p,...g)=>{const[E,_]=g;let k="text",w="";g.length===1?ue(E)?(w=E.modifier||w,k=E.type||k):j(E)&&(w=E||w):g.length===2&&(j(E)&&(w=E||w),j(_)&&(k=_||k));const b=d(p,!0)(v),L=k==="vnode"&&Le(b)&&w?b[0]:b;return w?f(w)(L,k):L},message:d,type:C,interpolate:m,normalize:h,values:Ae(me(),s,u)};return v}const Vm=()=>"",We=e=>ye(e);function xm(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:l}=e,[u,c]=Gl(...t),d=ke(c.missingWarn)?c.missingWarn:e.missingWarn,f=ke(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=ke(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,C=j(c.default)||ke(c.default)?ke(c.default)?o?u:()=>u:c.default:r?o?u:()=>u:null,y=r||C!=null&&(j(C)||ye(C)),v=Tu(e,c);h&&kk(c);let[p,g,E]=m?[u,v,l[v]||me()]:Lv(e,u,v,s,f,d),_=p,k=u;if(!m&&!(j(_)||Ze(_)||We(_))&&y&&(_=C,k=_),!m&&(!(j(_)||Ze(_)||We(_))||!j(g)))return i?nn:u;if(process.env.NODE_ENV!=="production"&&j(_)&&e.messageCompiler==null)return wt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let w=!1;const b=()=>{w=!0},L=We(_)?_:Ov(e,u,g,_,k,b);if(w)return _;const T=Tk(e,g,E,c),A=Ck(T),D=Sk(e,L,A),$=n?n(D,u):D;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const z={timestamp:Date.now(),key:j(u)?u:We(_)?_.key:"",locale:g||(We(_)?_.locale:""),format:j(_)?_:We(_)?_.source:"",message:$};z.meta=Ae({},e.__meta,dk()||{}),UC(z)}return $}function kk(e){Le(e.list)?e.list=e.list.map(t=>j(t)?vm(t):t):ue(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=vm(e.named[t]))})}function Lv(e,t,r,n,i,o){const{messages:s,onWarn:l,messageResolver:u,localeFallbacker:c}=e,d=c(e,n,r);let f=me(),h,m=null,C=r,y=null;const v="translate";for(let p=0;p<d.length;p++){if(h=y=d[p],process.env.NODE_ENV!=="production"&&r!==h&&!Sv(r,h)&&an(i,t)&&l(Dt(xe.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&r!==h){const k=e.__v_emitter;k&&k.emit("fallback",{type:v,key:t,from:C,to:y,groupId:`${v}:${t}`})}f=s[h]||me();let g=null,E,_;if(process.env.NODE_ENV!=="production"&&pt&&(g=window.performance.now(),E="intlify-message-resolve-start",_="intlify-message-resolve-end",je&&je(E)),(m=u(f,t))===null&&(m=f[t]),process.env.NODE_ENV!=="production"&&pt){const k=window.performance.now(),w=e.__v_emitter;w&&g&&m&&w.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:k-g,groupId:`${v}:${t}`}),E&&_&&je&&Rt&&(je(_),Rt("intlify message resolve",E,_))}if(j(m)||Ze(m)||We(m))break;if(!pk(h,d)){const k=Lu(e,t,h,o,v);k!==t&&(m=k)}C=y}return[m,h,f]}function Ov(e,t,r,n,i,o){const{messageCompiler:s,warnHtmlMessage:l}=e;if(We(n)){const h=n;return h.locale=h.locale||r,h.key=h.key||t,h}if(s==null){const h=()=>n;return h.locale=r,h.key=t,h}let u=null,c,d;process.env.NODE_ENV!=="production"&&pt&&(u=window.performance.now(),c="intlify-message-compilation-start",d="intlify-message-compilation-end",je&&je(c));const f=s(n,wk(e,r,i,n,l,o));if(process.env.NODE_ENV!=="production"&&pt){const h=window.performance.now(),m=e.__v_emitter;m&&u&&m.emit("message-compilation",{type:"message-compilation",message:n,time:h-u,groupId:`translate:${t}`}),c&&d&&je&&Rt&&(je(d),Rt("intlify message compilation",c,d))}return f.locale=r,f.key=t,f.source=n,f}function Sk(e,t,r){let n=null,i,o;process.env.NODE_ENV!=="production"&&pt&&(n=window.performance.now(),i="intlify-message-evaluation-start",o="intlify-message-evaluation-end",je&&je(i));const s=t(r);if(process.env.NODE_ENV!=="production"&&pt){const l=window.performance.now(),u=e.__v_emitter;u&&n&&u.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-n,groupId:`translate:${t.key}`}),i&&o&&je&&Rt&&(je(o),Rt("intlify message evaluation",i,o))}return s}function Gl(...e){const[t,r,n]=e,i=me();if(!j(t)&&!Ie(t)&&!We(t)&&!Ze(t))throw dt(Pe.INVALID_ARGUMENT);const o=Ie(t)?String(t):(We(t),t);return Ie(r)?i.plural=r:j(r)?i.default=r:le(r)&&!rn(r)?i.named=r:Le(r)&&(i.list=r),Ie(n)?i.plural=n:j(n)?i.default=n:le(n)&&Ae(i,n),[o,i]}function wk(e,t,r,n,i,o){return{locale:t,key:r,warnHtmlMessage:i,onError:s=>{if(o&&o(s),process.env.NODE_ENV!=="production"){const l=Nk(n),u=`Message compilation error: ${s.message}`,c=s.location&&l&&Y0(l,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&l&&d.emit("compile-error",{message:l,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${r}`}),console.error(c?`${u}
|
|
17
17
|
${c}`:u)}else throw s},onCacheKey:s=>U0(t,r,s)}}function Nk(e){if(j(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Tk(e,t,r,n){const{modifiers:i,pluralRules:o,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,h={locale:t,modifiers:i,pluralRules:o,messages:(m,C)=>{let y=s(r,m);if(y==null&&(d||C)){const[,,v]=Lv(d||e,m,t,l,u,c);y=s(v,m)}if(j(y)||Ze(y)){let v=!1;const g=Ov(e,m,t,y,m,()=>{v=!0});return v?Vm:g}else return We(y)?y:Vm}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),Ie(n.plural)&&(h.pluralIndex=n.plural),h}TC();function Lk(){return Iv().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Iv(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Ok=typeof Proxy=="function",Ik="devtools-plugin:setup",Ak="plugin:settings:set";let Ft,jl;function Rk(){var e;return Ft!==void 0||(typeof window<"u"&&window.performance?(Ft=!0,jl=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ft=!0,jl=globalThis.perf_hooks.performance):Ft=!1),Ft}function Dk(){return Rk()?jl.now():Date.now()}class Pk{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 Dk()}},r&&r.on(Ak,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...u)=>{this.onQueue.push({method:l,args:u})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...u)=>(this.targetQueue.push({method:l,args:u,resolve:()=>{}}),this.fallbacks[l](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:l,args:u,resolve:c})})})}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 Bk(e,t){const r=e,n=Iv(),i=Lk(),o=Ok&&r.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(Ik,e,t);else{const s=o?new Pk(r,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
18
18
|
* vue-i18n v11.1.3
|
|
19
19
|
* (c) 2025 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/const Vk="11.1.3";function xk(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(At().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(At().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(At().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(At().__INTLIFY_PROD_DEVTOOLS__=!1)}const Re={UNEXPECTED_RETURN_TYPE:GC,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function sr(e,...t){return Jt(e,null,process.env.NODE_ENV!=="production"?{messages:Mk,args:t}:void 0)}const Mk={[Re.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Re.INVALID_ARGUMENT]:"Invalid argument",[Re.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Re.NOT_INSTALLED]:"Need to install with `app.use` function",[Re.UNEXPECTED_ERROR]:"Unexpected error",[Re.REQUIRED_VALUE]:"Required in value: {0}",[Re.INVALID_VALUE]:"Invalid value",[Re.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Re.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Re.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Re.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},zl=vt("__translateVNode"),Wl=vt("__datetimeParts"),Kl=vt("__numberParts"),Yl=vt("__enableEmitter"),Xl=vt("__disableEmitter"),qk=vt("__setPluralRules"),Av=vt("__injectWithOption"),Zl=vt("__dispose"),kt={FALLBACK_TO_ROOT:nk,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},$k={[kt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[kt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[kt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[kt.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
22
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[kt.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ou(e,...t){return tn($k[e],...t)}function lr(e){if(!ue(e)||Ze(e))return e;for(const t in e)if(Xe(e,t))if(!t.includes("."))ue(e[t])&&lr(e[t]);else{const r=t.split("."),n=r.length-1;let i=e,o=!1;for(let s=0;s<n;s++){if(r[s]==="__proto__")throw new Error(`unsafe key: ${r[s]}`);if(r[s]in i||(i[r[s]]=me()),!ue(i[r[s]])){process.env.NODE_ENV!=="production"&&St(Ou(kt.IGNORE_OBJ_FLATTEN,{key:r[s]})),o=!0;break}i=i[r[s]]}if(o||(Ze(i)?gv.includes(r[n])||delete e[t]:(i[r[n]]=e[t],delete e[t])),!Ze(i)){const s=i[r[n]];ue(s)&&lr(s)}}return e}function Rv(e,t){const{messages:r,__i18n:n,messageResolver:i,flatJson:o}=t,s=le(r)?r:Le(n)?me():{[e]:me()};if(Le(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(s[u]=s[u]||me(),Nr(c,s[u])):Nr(c,s)}else j(l)&&Nr(JSON.parse(l),s)}),i==null&&o)for(const l in s)Xe(s,l)&&lr(s[l]);return s}function Dv(e){return e.type}function Fk(e,t,r){let n=ue(t.messages)?t.messages:me();"__i18nGlobal"in r&&(n=Rv(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,n[o])});{if(ue(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(ue(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Mm(e){return a.createVNode(a.Text,null,e,0)}const qm="__INTLIFY_META__",$m=()=>[],Uk=()=>!1;let Fm=0;function Um(e){return(t,r,n,i)=>e(r,n,a.getCurrentInstance()||void 0,i)}const Hk=()=>{const e=a.getCurrentInstance();let t=null;return e&&(t=Dv(e)[qm])?{[qm]:t}:null};function Gk(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,o=pt?a.ref:a.shallowRef;let s=ke(e.inheritLocale)?e.inheritLocale:!0;const l=o(t&&s?t.locale.value:j(e.locale)?e.locale:Ir),u=o(t&&s?t.fallbackLocale.value:j(e.fallbackLocale)||Le(e.fallbackLocale)||le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=o(Rv(l.value,e)),d=o(le(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=o(le(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:ke(e.missingWarn)||Or(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ke(e.fallbackWarn)||Or(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:ke(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,v=ye(e.missing)?e.missing:null,p=ye(e.missing)?Um(e.missing):null,g=ye(e.postTranslation)?e.postTranslation:null,E=t?t.warnHtmlMessage:ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const k=t?t.modifiers:le(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,b;b=(()=>{n&&Lm(null);const I={version:Vk,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:k,pluralRules:S,missing:p===null?void 0:p,missingWarn:h,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:E,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=d.value,I.numberFormats=f.value,I.__datetimeFormatters=le(b)?b.__datetimeFormatters:void 0,I.__numberFormatters=le(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(I.__v_emitter=le(b)?b.__v_emitter:void 0);const x=hk(I);return n&&Lm(x),x})(),er(b,l.value,u.value);function T(){return[l.value,u.value,c.value,d.value,f.value]}const A=a.computed({get:()=>l.value,set:I=>{b.locale=I,l.value=I}}),D=a.computed({get:()=>u.value,set:I=>{b.fallbackLocale=I,u.value=I,er(b,l.value,I)}}),$=a.computed(()=>c.value),z=a.computed(()=>d.value),Z=a.computed(()=>f.value);function V(){return ye(g)?g:null}function R(I){g=I,b.postTranslation=I}function X(){return v}function G(I){I!==null&&(p=Um(I)),v=I,b.missing=p}function F(I,x){return I!=="translate"||!x.resolvedMessage}const ne=(I,x,oe,pe,rt,Lt)=>{T();let yt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(b.fallbackContext=t?fk():void 0),yt=I(b)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(b.fallbackContext=void 0)}if(oe!=="translate exists"&&Ie(yt)&&yt===nn||oe==="translate exists"&&!yt){const[nt,it]=x();if(process.env.NODE_ENV!=="production"&&t&&j(nt)&&F(oe,it)&&(C&&(an(m,nt)||kv(h,nt))&&St(Ou(kt.FALLBACK_TO_ROOT,{key:nt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:at}=b;at&&C&&at.emit("fallback",{type:oe,key:nt,to:"global",groupId:`${oe}:${nt}`})}return t&&C?pe(t):rt(nt)}else{if(Lt(yt))return yt;throw sr(Re.UNEXPECTED_RETURN_TYPE)}};function ve(...I){return ne(x=>Reflect.apply(xm,null,[x,...I]),()=>Gl(...I),"translate",x=>Reflect.apply(x.t,x,[...I]),x=>x,x=>j(x))}function De(...I){const[x,oe,pe]=I;if(pe&&!ue(pe))throw sr(Re.INVALID_ARGUMENT);return ve(x,oe,Ae({resolvedMessage:!0},pe||{}))}function Be(...I){return ne(x=>Reflect.apply(Am,null,[x,...I]),()=>Ul(...I),"datetime format",x=>Reflect.apply(x.d,x,[...I]),()=>Ar,x=>j(x))}function O(...I){return ne(x=>Reflect.apply(Dm,null,[x,...I]),()=>Hl(...I),"number format",x=>Reflect.apply(x.n,x,[...I]),()=>Ar,x=>j(x))}function P(I){return I.map(x=>j(x)||Ie(x)||ke(x)?Mm(String(x)):x)}const H={normalize:P,interpolate:I=>I,type:"vnode"};function Q(...I){return ne(x=>{let oe;const pe=x;try{pe.processor=H,oe=Reflect.apply(xm,null,[pe,...I])}finally{pe.processor=null}return oe},()=>Gl(...I),"translate",x=>x[zl](...I),x=>[Mm(x)],x=>Le(x))}function he(...I){return ne(x=>Reflect.apply(Dm,null,[x,...I]),()=>Hl(...I),"number format",x=>x[Kl](...I),$m,x=>j(x)||Le(x))}function _e(...I){return ne(x=>Reflect.apply(Am,null,[x,...I]),()=>Ul(...I),"datetime format",x=>x[Wl](...I),$m,x=>j(x)||Le(x))}function Oe(I){S=I,b.pluralRules=S}function _t(I,x){return ne(()=>{if(!I)return!1;const oe=j(x)?x:l.value,pe=ee(oe),rt=b.messageResolver(pe,I);return Ze(rt)||We(rt)||j(rt)},()=>[I],"translate exists",oe=>Reflect.apply(oe.te,oe,[I,x]),Uk,oe=>ke(oe))}function we(I){let x=null;const oe=vv(b,u.value,l.value);for(let pe=0;pe<oe.length;pe++){const rt=c.value[oe[pe]]||{},Lt=b.messageResolver(rt,I);if(Lt!=null){x=Lt;break}}return x}function be(I){const x=we(I);return x??(t?t.tm(I)||{}:{})}function ee(I){return c.value[I]||{}}function Fe(I,x){if(i){const oe={[I]:x};for(const pe in oe)Xe(oe,pe)&&lr(oe[pe]);x=oe[I]}c.value[I]=x,b.messages=c.value}function ie(I,x){c.value[I]=c.value[I]||{};const oe={[I]:x};if(i)for(const pe in oe)Xe(oe,pe)&&lr(oe[pe]);x=oe[I],Nr(x,c.value[I]),b.messages=c.value}function w(I){return d.value[I]||{}}function N(I,x){d.value[I]=x,b.datetimeFormats=d.value,Rm(b,I,x)}function B(I,x){d.value[I]=Ae(d.value[I]||{},x),b.datetimeFormats=d.value,Rm(b,I,x)}function W(I){return f.value[I]||{}}function ce(I,x){f.value[I]=x,b.numberFormats=f.value,Pm(b,I,x)}function ae(I,x){f.value[I]=Ae(f.value[I]||{},x),b.numberFormats=f.value,Pm(b,I,x)}Fm++,t&&pt&&(a.watch(t.locale,I=>{s&&(l.value=I,b.locale=I,er(b,l.value,u.value))}),a.watch(t.fallbackLocale,I=>{s&&(u.value=I,b.fallbackLocale=I,er(b,l.value,u.value))}));const re={id:Fm,locale:A,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(I){s=I,I&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,er(b,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:$,get modifiers(){return k},get pluralRules(){return S||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(I){h=I,b.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(I){m=I,b.fallbackWarn=m},get fallbackRoot(){return C},set fallbackRoot(I){C=I},get fallbackFormat(){return y},set fallbackFormat(I){y=I,b.fallbackFormat=y},get warnHtmlMessage(){return E},set warnHtmlMessage(I){E=I,b.warnHtmlMessage=I},get escapeParameter(){return _},set escapeParameter(I){_=I,b.escapeParameter=I},t:ve,getLocaleMessage:ee,setLocaleMessage:Fe,mergeLocaleMessage:ie,getPostTranslationHandler:V,setPostTranslationHandler:R,getMissingHandler:X,setMissingHandler:G,[qk]:Oe};return re.datetimeFormats=z,re.numberFormats=Z,re.rt=De,re.te=_t,re.tm=be,re.d=Be,re.n=O,re.getDateTimeFormat=w,re.setDateTimeFormat=N,re.mergeDateTimeFormat=B,re.getNumberFormat=W,re.setNumberFormat=ce,re.mergeNumberFormat=ae,re[Av]=r,re[zl]=Q,re[Wl]=_e,re[Kl]=he,process.env.NODE_ENV!=="production"&&(re[Yl]=I=>{b.__v_emitter=I},re[Xl]=()=>{b.__v_emitter=void 0}),re}function Hm(e,t){}const Iu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function jk({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===a.Fragment?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},me())}function Pv(){return a.Fragment}Ae({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},Iu);function zk(e){return Le(e)&&!j(e[0])}function Bv(e,t,r,n){const{slots:i,attrs:o}=t;return()=>{const s={part:!0};let l=me();e.locale&&(s.locale=e.locale),j(e.format)?s.key=e.format:ue(e.format)&&(j(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((h,m)=>r.includes(m)?Ae(me(),h,{[m]:e.format[m]}):h,me()));const u=n(e.value,s,l);let c=[s.key];Le(u)?c=u.map((h,m)=>{const C=i[h.type],y=C?C({[h.type]:h.value,index:m,parts:u}):[h.value];return zk(y)&&(y[0].key=`${h.type}-${m}`),y}):j(u)&&(c=[u]);const d=Ae(me(),o),f=j(e.tag)||ue(e.tag)?e.tag:Pv();return a.h(f,d,c)}}Ae({value:{type:Number,required:!0},format:{type:[String,Object]}},Iu);const Wk=vt("global-vue-i18n");function on(e={}){const t=a.getCurrentInstance();if(t==null)throw sr(Re.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw sr(Re.NOT_INSTALLED);const r=Kk(t),n=Xk(r),i=Dv(t),o=Yk(e,i);if(o==="global")return Fk(n,e,i),n;if(o==="parent"){let u=Zk(r,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&St(Ou(kt.NOT_FOUND_PARENT_SCOPE)),u=n),u}const s=r;let l=s.__getInstance(t);if(l==null){const u=Ae({},e);"__i18n"in i&&(u.__i18n=i.__i18n),n&&(u.__root=n),l=Gk(u),s.__composerExtend&&(l[Zl]=s.__composerExtend(l)),Qk(s,t,l),s.__setInstance(t,l)}return l}function Kk(e){const t=a.inject(e.isCE?Wk:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw sr(e.isCE?Re.NOT_INSTALLED_WITH_PROVIDE:Re.UNEXPECTED_ERROR);return t}function Yk(e,t){return rn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Xk(e){return e.mode==="composition"?e.global:e.global.__composer}function Zk(e,t,r=!1){let n=null;const i=t.root;let o=Jk(t,r);for(;o!=null;){const s=e;if(e.mode==="composition")n=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(n=l.__composer,r&&n&&!n[Av]&&(n=null))}if(n!=null||i===o)break;o=o.parent}return n}function Jk(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Qk(e,t,r){let n=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=r,n=Z0();const i=r;i[Yl]&&i[Yl](n),n.on("*",Hm)}},t),a.onUnmounted(()=>{const i=r;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(n&&n.off("*",Hm),i[Xl]&&i[Xl](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=i[Zl];o&&(o(),delete i[Zl])},t)}Ae({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Iu);xk();sk(qC);lk(rk);uk(vv);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=At();e.__INTLIFY__=!0,$C(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const fe=a.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let t;typeof document<"u"&&(t=import("bootstrap"));const r=e,n=a.ref(),i=a.ref(),o=a.ref();return a.onMounted(async()=>{a.nextTick(async()=>{const s=await t;typeof document<"u"&&i.value&&o.value&&(n.value=new s.Tooltip(i.value,{trigger:"hover",html:!0,placement:r.placement,title:o.value.innerHTML,customClass:"tooltip-custom"}))})}),a.onBeforeUnmount(async()=>{var s;(s=n.value)==null||s.dispose()}),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("span",a.mergeProps({ref_key:"$tooltip",ref:i},s.$attrs),[a.renderSlot(s.$slots,"default")],16),a.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:o},[a.renderSlot(s.$slots,"content",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])],512)],64))}}),ew=a.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const t=e,r=a.computed(()=>`data:image/svg+xml;base64,${o.value}`),n=a.computed(()=>({flowable:s.value?s.value.flowable:!1})),i=a.computed(()=>({backgroundImage:`url(${r.value})`})),o=a.computed(()=>{let u=s.value&&s.value.icon?window.atob(s.value.icon):void 0;u||(u='<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 c=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let d=Ge(c?"--bs-gray-900":"--bs-black")??"#FFFFFF";return t.theme&&(d=(t.theme==="dark"?Ge("--bs-gray-900"):Ge("--bs-black"))??d),t.variable&&(d=Ge(t.variable)??d),u=u.replace(/currentColor/g,d),window.btoa(u)}),s=a.computed(()=>t.cls?(t.icons||{})[l(t.cls)]:t.customIcon);function l(u){return u.includes("$")?u.substring(0,u.indexOf("$")):u}return(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([n.value,"wrapper"])},[u.onlyIcon?(a.openBlock(),a.createElementBlock("div",{key:1,class:"icon",style:a.normalizeStyle(i.value)},null,4)):(a.openBlock(),a.createBlock(fe,{key:0,title:u.cls},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"icon",style:a.normalizeStyle(i.value)},null,4)]),_:1},8,["title"]))],2))}}),Au=K(ew,[["__scopeId","data-v-23f8d853"]]),tw={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},rw=["aria-hidden","aria-label"],nw=["fill","width","height"],iw={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"},aw={key:0};function ow(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",iw,[r.title?(a.openBlock(),a.createElementBlock("title",aw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,nw))],16,rw)}const Ru=K(tw,[["render",ow]]),sw={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lw=["aria-hidden","aria-label"],uw=["fill","width","height"],cw={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"},dw={key:0};function fw(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",cw,[r.title?(a.openBlock(),a.createElementBlock("title",dw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,uw))],16,lw)}const hw=K(sw,[["render",fw]]),pw={class:"dependency-text d-flex flex-column flex-grow-1"},mw={class:"dependency-flow-text text-truncate"},gw={class:"dependency-namespace-text text-truncate"},vw={class:"text-white top-button-div"},_w=a.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[U.EXPAND_DEPENDENCIES,U.OPEN_LINK,U.MOUSE_OVER,U.MOUSE_LEAVE],setup(e,{emit:t}){const r=t,{t:n}=on(),i=a.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
22
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[kt.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ou(e,...t){return tn($k[e],...t)}function lr(e){if(!ue(e)||Ze(e))return e;for(const t in e)if(Xe(e,t))if(!t.includes("."))ue(e[t])&&lr(e[t]);else{const r=t.split("."),n=r.length-1;let i=e,o=!1;for(let s=0;s<n;s++){if(r[s]==="__proto__")throw new Error(`unsafe key: ${r[s]}`);if(r[s]in i||(i[r[s]]=me()),!ue(i[r[s]])){process.env.NODE_ENV!=="production"&&wt(Ou(kt.IGNORE_OBJ_FLATTEN,{key:r[s]})),o=!0;break}i=i[r[s]]}if(o||(Ze(i)?gv.includes(r[n])||delete e[t]:(i[r[n]]=e[t],delete e[t])),!Ze(i)){const s=i[r[n]];ue(s)&&lr(s)}}return e}function Rv(e,t){const{messages:r,__i18n:n,messageResolver:i,flatJson:o}=t,s=le(r)?r:Le(n)?me():{[e]:me()};if(Le(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(s[u]=s[u]||me(),Nr(c,s[u])):Nr(c,s)}else j(l)&&Nr(JSON.parse(l),s)}),i==null&&o)for(const l in s)Xe(s,l)&&lr(s[l]);return s}function Dv(e){return e.type}function Fk(e,t,r){let n=ue(t.messages)?t.messages:me();"__i18nGlobal"in r&&(n=Rv(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,n[o])});{if(ue(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(ue(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Mm(e){return a.createVNode(a.Text,null,e,0)}const qm="__INTLIFY_META__",$m=()=>[],Uk=()=>!1;let Fm=0;function Um(e){return(t,r,n,i)=>e(r,n,a.getCurrentInstance()||void 0,i)}const Hk=()=>{const e=a.getCurrentInstance();let t=null;return e&&(t=Dv(e)[qm])?{[qm]:t}:null};function Gk(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,o=pt?a.ref:a.shallowRef;let s=ke(e.inheritLocale)?e.inheritLocale:!0;const l=o(t&&s?t.locale.value:j(e.locale)?e.locale:Ir),u=o(t&&s?t.fallbackLocale.value:j(e.fallbackLocale)||Le(e.fallbackLocale)||le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=o(Rv(l.value,e)),d=o(le(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=o(le(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:ke(e.missingWarn)||Or(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ke(e.fallbackWarn)||Or(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:ke(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,v=ye(e.missing)?e.missing:null,p=ye(e.missing)?Um(e.missing):null,g=ye(e.postTranslation)?e.postTranslation:null,E=t?t.warnHtmlMessage:ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const k=t?t.modifiers:le(e.modifiers)?e.modifiers:{};let w=e.pluralRules||t&&t.pluralRules,b;b=(()=>{n&&Lm(null);const I={version:Vk,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:k,pluralRules:w,missing:p===null?void 0:p,missingWarn:h,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:E,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=d.value,I.numberFormats=f.value,I.__datetimeFormatters=le(b)?b.__datetimeFormatters:void 0,I.__numberFormatters=le(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(I.__v_emitter=le(b)?b.__v_emitter:void 0);const x=hk(I);return n&&Lm(x),x})(),er(b,l.value,u.value);function T(){return[l.value,u.value,c.value,d.value,f.value]}const A=a.computed({get:()=>l.value,set:I=>{b.locale=I,l.value=I}}),D=a.computed({get:()=>u.value,set:I=>{b.fallbackLocale=I,u.value=I,er(b,l.value,I)}}),$=a.computed(()=>c.value),z=a.computed(()=>d.value),Z=a.computed(()=>f.value);function V(){return ye(g)?g:null}function R(I){g=I,b.postTranslation=I}function X(){return v}function G(I){I!==null&&(p=Um(I)),v=I,b.missing=p}function F(I,x){return I!=="translate"||!x.resolvedMessage}const ne=(I,x,oe,pe,rt,Lt)=>{T();let yt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(b.fallbackContext=t?fk():void 0),yt=I(b)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(b.fallbackContext=void 0)}if(oe!=="translate exists"&&Ie(yt)&&yt===nn||oe==="translate exists"&&!yt){const[nt,it]=x();if(process.env.NODE_ENV!=="production"&&t&&j(nt)&&F(oe,it)&&(C&&(an(m,nt)||kv(h,nt))&&wt(Ou(kt.FALLBACK_TO_ROOT,{key:nt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:at}=b;at&&C&&at.emit("fallback",{type:oe,key:nt,to:"global",groupId:`${oe}:${nt}`})}return t&&C?pe(t):rt(nt)}else{if(Lt(yt))return yt;throw sr(Re.UNEXPECTED_RETURN_TYPE)}};function ve(...I){return ne(x=>Reflect.apply(xm,null,[x,...I]),()=>Gl(...I),"translate",x=>Reflect.apply(x.t,x,[...I]),x=>x,x=>j(x))}function De(...I){const[x,oe,pe]=I;if(pe&&!ue(pe))throw sr(Re.INVALID_ARGUMENT);return ve(x,oe,Ae({resolvedMessage:!0},pe||{}))}function Be(...I){return ne(x=>Reflect.apply(Am,null,[x,...I]),()=>Ul(...I),"datetime format",x=>Reflect.apply(x.d,x,[...I]),()=>Ar,x=>j(x))}function O(...I){return ne(x=>Reflect.apply(Dm,null,[x,...I]),()=>Hl(...I),"number format",x=>Reflect.apply(x.n,x,[...I]),()=>Ar,x=>j(x))}function P(I){return I.map(x=>j(x)||Ie(x)||ke(x)?Mm(String(x)):x)}const H={normalize:P,interpolate:I=>I,type:"vnode"};function Q(...I){return ne(x=>{let oe;const pe=x;try{pe.processor=H,oe=Reflect.apply(xm,null,[pe,...I])}finally{pe.processor=null}return oe},()=>Gl(...I),"translate",x=>x[zl](...I),x=>[Mm(x)],x=>Le(x))}function he(...I){return ne(x=>Reflect.apply(Dm,null,[x,...I]),()=>Hl(...I),"number format",x=>x[Kl](...I),$m,x=>j(x)||Le(x))}function _e(...I){return ne(x=>Reflect.apply(Am,null,[x,...I]),()=>Ul(...I),"datetime format",x=>x[Wl](...I),$m,x=>j(x)||Le(x))}function Oe(I){w=I,b.pluralRules=w}function _t(I,x){return ne(()=>{if(!I)return!1;const oe=j(x)?x:l.value,pe=ee(oe),rt=b.messageResolver(pe,I);return Ze(rt)||We(rt)||j(rt)},()=>[I],"translate exists",oe=>Reflect.apply(oe.te,oe,[I,x]),Uk,oe=>ke(oe))}function Se(I){let x=null;const oe=vv(b,u.value,l.value);for(let pe=0;pe<oe.length;pe++){const rt=c.value[oe[pe]]||{},Lt=b.messageResolver(rt,I);if(Lt!=null){x=Lt;break}}return x}function be(I){const x=Se(I);return x??(t?t.tm(I)||{}:{})}function ee(I){return c.value[I]||{}}function Fe(I,x){if(i){const oe={[I]:x};for(const pe in oe)Xe(oe,pe)&&lr(oe[pe]);x=oe[I]}c.value[I]=x,b.messages=c.value}function ie(I,x){c.value[I]=c.value[I]||{};const oe={[I]:x};if(i)for(const pe in oe)Xe(oe,pe)&&lr(oe[pe]);x=oe[I],Nr(x,c.value[I]),b.messages=c.value}function S(I){return d.value[I]||{}}function N(I,x){d.value[I]=x,b.datetimeFormats=d.value,Rm(b,I,x)}function B(I,x){d.value[I]=Ae(d.value[I]||{},x),b.datetimeFormats=d.value,Rm(b,I,x)}function W(I){return f.value[I]||{}}function ce(I,x){f.value[I]=x,b.numberFormats=f.value,Pm(b,I,x)}function ae(I,x){f.value[I]=Ae(f.value[I]||{},x),b.numberFormats=f.value,Pm(b,I,x)}Fm++,t&&pt&&(a.watch(t.locale,I=>{s&&(l.value=I,b.locale=I,er(b,l.value,u.value))}),a.watch(t.fallbackLocale,I=>{s&&(u.value=I,b.fallbackLocale=I,er(b,l.value,u.value))}));const re={id:Fm,locale:A,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(I){s=I,I&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,er(b,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:$,get modifiers(){return k},get pluralRules(){return w||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(I){h=I,b.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(I){m=I,b.fallbackWarn=m},get fallbackRoot(){return C},set fallbackRoot(I){C=I},get fallbackFormat(){return y},set fallbackFormat(I){y=I,b.fallbackFormat=y},get warnHtmlMessage(){return E},set warnHtmlMessage(I){E=I,b.warnHtmlMessage=I},get escapeParameter(){return _},set escapeParameter(I){_=I,b.escapeParameter=I},t:ve,getLocaleMessage:ee,setLocaleMessage:Fe,mergeLocaleMessage:ie,getPostTranslationHandler:V,setPostTranslationHandler:R,getMissingHandler:X,setMissingHandler:G,[qk]:Oe};return re.datetimeFormats=z,re.numberFormats=Z,re.rt=De,re.te=_t,re.tm=be,re.d=Be,re.n=O,re.getDateTimeFormat=S,re.setDateTimeFormat=N,re.mergeDateTimeFormat=B,re.getNumberFormat=W,re.setNumberFormat=ce,re.mergeNumberFormat=ae,re[Av]=r,re[zl]=Q,re[Wl]=_e,re[Kl]=he,process.env.NODE_ENV!=="production"&&(re[Yl]=I=>{b.__v_emitter=I},re[Xl]=()=>{b.__v_emitter=void 0}),re}function Hm(e,t){}const Iu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function jk({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===a.Fragment?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},me())}function Pv(){return a.Fragment}Ae({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},Iu);function zk(e){return Le(e)&&!j(e[0])}function Bv(e,t,r,n){const{slots:i,attrs:o}=t;return()=>{const s={part:!0};let l=me();e.locale&&(s.locale=e.locale),j(e.format)?s.key=e.format:ue(e.format)&&(j(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((h,m)=>r.includes(m)?Ae(me(),h,{[m]:e.format[m]}):h,me()));const u=n(e.value,s,l);let c=[s.key];Le(u)?c=u.map((h,m)=>{const C=i[h.type],y=C?C({[h.type]:h.value,index:m,parts:u}):[h.value];return zk(y)&&(y[0].key=`${h.type}-${m}`),y}):j(u)&&(c=[u]);const d=Ae(me(),o),f=j(e.tag)||ue(e.tag)?e.tag:Pv();return a.h(f,d,c)}}Ae({value:{type:Number,required:!0},format:{type:[String,Object]}},Iu);const Wk=vt("global-vue-i18n");function on(e={}){const t=a.getCurrentInstance();if(t==null)throw sr(Re.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw sr(Re.NOT_INSTALLED);const r=Kk(t),n=Xk(r),i=Dv(t),o=Yk(e,i);if(o==="global")return Fk(n,e,i),n;if(o==="parent"){let u=Zk(r,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&wt(Ou(kt.NOT_FOUND_PARENT_SCOPE)),u=n),u}const s=r;let l=s.__getInstance(t);if(l==null){const u=Ae({},e);"__i18n"in i&&(u.__i18n=i.__i18n),n&&(u.__root=n),l=Gk(u),s.__composerExtend&&(l[Zl]=s.__composerExtend(l)),Qk(s,t,l),s.__setInstance(t,l)}return l}function Kk(e){const t=a.inject(e.isCE?Wk:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw sr(e.isCE?Re.NOT_INSTALLED_WITH_PROVIDE:Re.UNEXPECTED_ERROR);return t}function Yk(e,t){return rn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Xk(e){return e.mode==="composition"?e.global:e.global.__composer}function Zk(e,t,r=!1){let n=null;const i=t.root;let o=Jk(t,r);for(;o!=null;){const s=e;if(e.mode==="composition")n=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(n=l.__composer,r&&n&&!n[Av]&&(n=null))}if(n!=null||i===o)break;o=o.parent}return n}function Jk(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Qk(e,t,r){let n=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=r,n=Z0();const i=r;i[Yl]&&i[Yl](n),n.on("*",Hm)}},t),a.onUnmounted(()=>{const i=r;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(n&&n.off("*",Hm),i[Xl]&&i[Xl](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=i[Zl];o&&(o(),delete i[Zl])},t)}Ae({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Iu);xk();sk(qC);lk(rk);uk(vv);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=At();e.__INTLIFY__=!0,$C(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const fe=a.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let t;typeof document<"u"&&(t=import("bootstrap"));const r=e,n=a.ref(),i=a.ref(),o=a.ref();return a.onMounted(async()=>{a.nextTick(async()=>{const s=await t;typeof document<"u"&&i.value&&o.value&&(n.value=new s.Tooltip(i.value,{trigger:"hover",html:!0,placement:r.placement,title:o.value.innerHTML,customClass:"tooltip-custom"}))})}),a.onBeforeUnmount(async()=>{var s;(s=n.value)==null||s.dispose()}),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("span",a.mergeProps({ref_key:"$tooltip",ref:i},s.$attrs),[a.renderSlot(s.$slots,"default")],16),a.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:o},[a.renderSlot(s.$slots,"content",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])],512)],64))}}),eS=a.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const t=e,r=a.computed(()=>`data:image/svg+xml;base64,${o.value}`),n=a.computed(()=>({flowable:s.value?s.value.flowable:!1})),i=a.computed(()=>({backgroundImage:`url(${r.value})`})),o=a.computed(()=>{let u=s.value&&s.value.icon?window.atob(s.value.icon):void 0;u||(u='<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 c=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let d=Ge(c?"--bs-gray-900":"--bs-black")??"#FFFFFF";return t.theme&&(d=(t.theme==="dark"?Ge("--bs-gray-900"):Ge("--bs-black"))??d),t.variable&&(d=Ge(t.variable)??d),u=u.replace(/currentColor/g,d),window.btoa(u)}),s=a.computed(()=>t.cls?(t.icons||{})[l(t.cls)]:t.customIcon);function l(u){return u.includes("$")?u.substring(0,u.indexOf("$")):u}return(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([n.value,"wrapper"])},[u.onlyIcon?(a.openBlock(),a.createElementBlock("div",{key:1,class:"icon",style:a.normalizeStyle(i.value)},null,4)):(a.openBlock(),a.createBlock(fe,{key:0,title:u.cls},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"icon",style:a.normalizeStyle(i.value)},null,4)]),_:1},8,["title"]))],2))}}),Au=K(eS,[["__scopeId","data-v-23f8d853"]]),tS={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},rS=["aria-hidden","aria-label"],nS=["fill","width","height"],iS={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"},aS={key:0};function oS(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",iS,[r.title?(a.openBlock(),a.createElementBlock("title",aS,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,nS))],16,rS)}const Ru=K(tS,[["render",oS]]),sS={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lS=["aria-hidden","aria-label"],uS=["fill","width","height"],cS={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"},dS={key:0};function fS(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",cS,[r.title?(a.openBlock(),a.createElementBlock("title",dS,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,uS))],16,lS)}const hS=K(sS,[["render",fS]]),pS={class:"dependency-text d-flex flex-column flex-grow-1"},mS={class:"dependency-flow-text text-truncate"},gS={class:"dependency-namespace-text text-truncate"},vS={class:"text-white top-button-div"},_S=a.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[U.EXPAND_DEPENDENCIES,U.OPEN_LINK,U.MOUSE_OVER,U.MOUSE_LEAVE],setup(e,{emit:t}){const r=t,{t:n}=on(),i=a.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
23
23
|
<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"/>
|
|
24
|
-
</svg>`));return(o,s)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.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(Au,{"custom-icon":{icon:i.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),a.createElementVNode("div",pw,[a.createElementVNode("div",mw,[a.createVNode(fe,{title:e.data.flowId},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),a.createElementVNode("div",gw,[a.createVNode(fe,{title:e.data.namespace},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),a.createElementVNode("div",vw,[a.renderSlot(o.$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:s[0]||(s[0]=l=>o.$emit(a.unref(U).OPEN_LINK,e.data))},[a.createVNode(fe,{title:a.unref(n)("open")},{default:a.withCtx(()=>[a.createVNode(Ru,{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:s[1]||(s[1]=l=>r(a.unref(U).EXPAND_DEPENDENCIES,e.data))},[a.createVNode(fe,{title:a.unref(n)("expand")},{default:a.withCtx(()=>[a.createVNode(hw,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(o.$slots,"badge-button-after",{},void 0,!0)])],2),a.createVNode(a.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),yw=K(_w,[["__scopeId","data-v-2271d5b0"]]);var st=(e=>(e.Lines="lines",e.Dots="dots",e))(st||{});const Vv=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]}`})},xv=function({radius:e,color:t}){return a.h("circle",{cx:e,cy:e,r:e,fill:t})};st.Lines+"",st.Dots+"";const Ew={[st.Dots]:"#81818a",[st.Lines]:"#eee"},bw=["id","x","y","width","height","patternTransform"],Cw={key:2,height:"100",width:"100"},kw=["fill"],ww=["x","y","fill"],Sw={name:"Background",compatConfig:{MODE:3}},Nw=a.defineComponent({...Sw,props:{id:{},variant:{default:()=>st.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}=te.useVueFlow(),n=a.computed(()=>{const[s,l]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*r.value.zoom||1,l*r.value.zoom||1],c=e.size*r.value.zoom,d=e.variant===st.Dots?[c/e.offset,c/e.offset]:[u[0]/e.offset,u[1]/e.offset];return{scaledGap:u,offset:d,size:c}}),i=a.toRef(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),o=a.toRef(()=>e.color||e.patternColor||Ew[e.variant||st.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(st).Lines?(a.openBlock(),a.createBlock(a.unref(Vv),{key:0,size:s.lineWidth,color:o.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===a.unref(st).Dots?(a.openBlock(),a.createBlock(a.unref(xv),{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",Cw,[a.createElementVNode("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,kw)])):a.createCommentVNode("",!0)])],8,bw)]),a.createElementVNode("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${i.value})`},null,8,ww),a.renderSlot(s.$slots,"default",{id:i.value})],4))}}),Tw={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Lw=["aria-hidden","aria-label"],Ow=["fill","width","height"],Iw={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},Aw={key:0};function Rw(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",Iw,[r.title?(a.openBlock(),a.createElementBlock("title",Aw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Ow))],16,Lw)}const Dw=K(Tw,[["render",Rw]]),Pw={class:"top-button-div text-white d-flex"},Bw={inheritAttrs:!1,components:{Tooltip:fe},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 Ce.afterLastDot(this.id)}}},Vw=Object.assign(Bw,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:te.Position,default:void 0},targetPosition:{type:te.Position,default:void 0},id:{type:String,default:void 0}},emits:[U.COLLAPSE],setup(e,{emit:t}){const r=e,n=t,i=()=>{n(U.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",Pw,[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(fe,{title:o.$t("collapse")},{default:a.withCtx(()=>[a.createVNode(Dw,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0)])],2))}}),xw=K(Vw,[["__scopeId","data-v-0c251e77"]]),Mw={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qw=["aria-hidden","aria-label"],$w=["fill","width","height"],Fw={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"},Uw={key:0};function Hw(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",Fw,[r.title?(a.openBlock(),a.createElementBlock("title",Uw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,$w))],16,qw)}const Mv=K(Mw,[["render",Hw]]),Gw={name:"Dot",components:{Handle:te.Handle,CircleIcon:Mv},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,[Ce.afterLastDot(this.data.node.type)]:!0}}}},jw=Object.assign(Gw,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(t.classes)},[a.createVNode(a.unref(te.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),a.createElementVNode("div",{class:a.normalizeClass(["dot",t.classes])},[a.createVNode(Mv,{class:a.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),a.createVNode(a.unref(te.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),zw=K(jw,[["__scopeId","data-v-666f472b"]]),Ww={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kw=["aria-hidden","aria-label"],Yw=["fill","width","height"],Xw={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Zw={key:0};function Jw(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",Xw,[r.title?(a.openBlock(),a.createElementBlock("title",Zw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Yw))],16,Kw)}const Qw=K(Ww,[["render",Jw]]),eS={class:"add-task-div rounded d-flex justify-content-center align-items-center"},tS=a.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",eS,[t.addTask?(a.openBlock(),a.createBlock(Qw,{key:0,alt:"add task icon"})):a.createCommentVNode("",!0)]))}}),rS=K(tS,[["__scopeId","data-v-b42f2cb4"]]),nS={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:rS,EdgeLabelRenderer:te.EdgeLabelRenderer,Tooltip:fe},computed:{Utils(){return Ce},EVENTS(){return U},classes(){return{"vue-flow__edge-path":!0,["stroke-"+this.data.color]:this.data.color,"unused-path":this.data.unused}},title(){const{haveAdd:e}=this.data;return`${this.$t("add task")} ${(e==null?void 0:e.length)===2?`${this.$t(e[1])} ${e[0]}`:""}`.trim()}},setup(e){return{path:a.computed(()=>te.getSmoothStepPath(e))}},inheritAttrs:!1},iS=["id","d","marker-end"];function aS(e,t,r,n,i,o){const s=a.resolveComponent("AddTaskButton"),l=a.resolveComponent("tooltip"),u=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,iS),a.createVNode(u,{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.title},{default:a.withCtx(()=>[r.data.haveAdd?(a.openBlock(),a.createBlock(s,{key:0,"add-task":!0,onClick:t[0]||(t[0]=c=>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 oS=K(nS,[["render",aS],["__scopeId","data-v-0205dbbb"]]),sS={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lS=["aria-hidden","aria-label"],uS=["fill","width","height"],cS={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"},dS={key:0};function fS(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",cS,[r.title?(a.openBlock(),a.createElementBlock("title",dS,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,uS))],16,lS)}const qv=K(sS,[["render",fS]]),hS={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pS=["aria-hidden","aria-label"],mS=["fill","width","height"],gS={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},vS={key:0};function _S(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",gS,[r.title?(a.openBlock(),a.createElementBlock("title",vS,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,mS))],16,pS)}const sn=K(hS,[["render",_S]]);/*!
|
|
24
|
+
</svg>`));return(o,s)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.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(Au,{"custom-icon":{icon:i.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),a.createElementVNode("div",pS,[a.createElementVNode("div",mS,[a.createVNode(fe,{title:e.data.flowId},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),a.createElementVNode("div",gS,[a.createVNode(fe,{title:e.data.namespace},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),a.createElementVNode("div",vS,[a.renderSlot(o.$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:s[0]||(s[0]=l=>o.$emit(a.unref(U).OPEN_LINK,e.data))},[a.createVNode(fe,{title:a.unref(n)("open")},{default:a.withCtx(()=>[a.createVNode(Ru,{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:s[1]||(s[1]=l=>r(a.unref(U).EXPAND_DEPENDENCIES,e.data))},[a.createVNode(fe,{title:a.unref(n)("expand")},{default:a.withCtx(()=>[a.createVNode(hS,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(o.$slots,"badge-button-after",{},void 0,!0)])],2),a.createVNode(a.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),yS=K(_S,[["__scopeId","data-v-2271d5b0"]]);var st=(e=>(e.Lines="lines",e.Dots="dots",e))(st||{});const Vv=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]}`})},xv=function({radius:e,color:t}){return a.h("circle",{cx:e,cy:e,r:e,fill:t})};st.Lines+"",st.Dots+"";const ES={[st.Dots]:"#81818a",[st.Lines]:"#eee"},bS=["id","x","y","width","height","patternTransform"],CS={key:2,height:"100",width:"100"},kS=["fill"],SS=["x","y","fill"],wS={name:"Background",compatConfig:{MODE:3}},NS=a.defineComponent({...wS,props:{id:{},variant:{default:()=>st.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}=te.useVueFlow(),n=a.computed(()=>{const[s,l]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*r.value.zoom||1,l*r.value.zoom||1],c=e.size*r.value.zoom,d=e.variant===st.Dots?[c/e.offset,c/e.offset]:[u[0]/e.offset,u[1]/e.offset];return{scaledGap:u,offset:d,size:c}}),i=a.toRef(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),o=a.toRef(()=>e.color||e.patternColor||ES[e.variant||st.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(st).Lines?(a.openBlock(),a.createBlock(a.unref(Vv),{key:0,size:s.lineWidth,color:o.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===a.unref(st).Dots?(a.openBlock(),a.createBlock(a.unref(xv),{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",CS,[a.createElementVNode("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,kS)])):a.createCommentVNode("",!0)])],8,bS)]),a.createElementVNode("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${i.value})`},null,8,SS),a.renderSlot(s.$slots,"default",{id:i.value})],4))}}),TS={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},LS=["aria-hidden","aria-label"],OS=["fill","width","height"],IS={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},AS={key:0};function RS(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",IS,[r.title?(a.openBlock(),a.createElementBlock("title",AS,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,OS))],16,LS)}const DS=K(TS,[["render",RS]]),PS={class:"top-button-div text-white d-flex"},BS={inheritAttrs:!1,components:{Tooltip:fe},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 Ce.afterLastDot(this.id)}}},VS=Object.assign(BS,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:te.Position,default:void 0},targetPosition:{type:te.Position,default:void 0},id:{type:String,default:void 0}},emits:[U.COLLAPSE],setup(e,{emit:t}){const r=e,n=t,i=()=>{n(U.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",PS,[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(fe,{title:o.$t("collapse")},{default:a.withCtx(()=>[a.createVNode(DS,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0)])],2))}}),xS=K(VS,[["__scopeId","data-v-0c251e77"]]),MS={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qS=["aria-hidden","aria-label"],$S=["fill","width","height"],FS={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"},US={key:0};function HS(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",FS,[r.title?(a.openBlock(),a.createElementBlock("title",US,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,$S))],16,qS)}const Mv=K(MS,[["render",HS]]),GS={name:"Dot",components:{Handle:te.Handle,CircleIcon:Mv},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,[Ce.afterLastDot(this.data.node.type)]:!0}}}},jS=Object.assign(GS,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(t.classes)},[a.createVNode(a.unref(te.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),a.createElementVNode("div",{class:a.normalizeClass(["dot",t.classes])},[a.createVNode(Mv,{class:a.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),a.createVNode(a.unref(te.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),zS=K(jS,[["__scopeId","data-v-666f472b"]]),WS={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},KS=["aria-hidden","aria-label"],YS=["fill","width","height"],XS={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},ZS={key:0};function JS(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",XS,[r.title?(a.openBlock(),a.createElementBlock("title",ZS,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,YS))],16,KS)}const QS=K(WS,[["render",JS]]),ew={class:"add-task-div rounded d-flex justify-content-center align-items-center"},tw=a.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",ew,[t.addTask?(a.openBlock(),a.createBlock(QS,{key:0,alt:"add task icon"})):a.createCommentVNode("",!0)]))}}),rw=K(tw,[["__scopeId","data-v-b42f2cb4"]]),nw={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:rw,EdgeLabelRenderer:te.EdgeLabelRenderer,Tooltip:fe},computed:{Utils(){return Ce},EVENTS(){return U},classes(){return{"vue-flow__edge-path":!0,["stroke-"+this.data.color]:this.data.color,"unused-path":this.data.unused}},title(){const{haveAdd:e}=this.data;return`${this.$t("add task")} ${(e==null?void 0:e.length)===2?`${this.$t(e[1])} ${e[0]}`:""}`.trim()}},setup(e){return{path:a.computed(()=>te.getSmoothStepPath(e))}},inheritAttrs:!1},iw=["id","d","marker-end"];function aw(e,t,r,n,i,o){const s=a.resolveComponent("AddTaskButton"),l=a.resolveComponent("tooltip"),u=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,iw),a.createVNode(u,{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.title},{default:a.withCtx(()=>[r.data.haveAdd?(a.openBlock(),a.createBlock(s,{key:0,"add-task":!0,onClick:t[0]||(t[0]=c=>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 ow=K(nw,[["render",aw],["__scopeId","data-v-0205dbbb"]]),sw={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lw=["aria-hidden","aria-label"],uw=["fill","width","height"],cw={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"},dw={key:0};function fw(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",cw,[r.title?(a.openBlock(),a.createElementBlock("title",dw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,uw))],16,lw)}const qv=K(sw,[["render",fw]]),hw={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pw=["aria-hidden","aria-label"],mw=["fill","width","height"],gw={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},vw={key:0};function _w(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",gw,[r.title?(a.openBlock(),a.createElementBlock("title",vw,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,mw))],16,pw)}const sn=K(hw,[["render",_w]]);/*!
|
|
25
25
|
* vuex v4.1.0
|
|
26
26
|
* (c) 2022 Evan You
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/var yS="store";function Mt(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function $v(e){return e!==null&&typeof e=="object"}function ES(e){return e&&typeof e.then=="function"}function Qe(e,t){if(!e)throw new Error("[vuex] "+t)}function bS(e,t){return function(){return e(t)}}function Fv(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 Uv(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;ln(e,r,[],e._modules.root,!0),Du(e,r,t)}function Du(e,t,r){var n=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},l={},u=a.effectScope(!0);u.run(function(){Mt(o,function(c,d){s[d]=bS(c,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=u,e.strict&&NS(e),n&&r&&e._withCommit(function(){n.data=null}),i&&i.stop()}function ln(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=Pu(t,r.slice(0,-1)),u=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&u in l&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+r.join(".")+'"'),l[u]=n.state})}var c=n.context=CS(e,s,r);n.forEachMutation(function(d,f){var h=s+f;kS(e,h,d,c)}),n.forEachAction(function(d,f){var h=d.root?f:s+f,m=d.handler||d;wS(e,h,m,c)}),n.forEachGetter(function(d,f){var h=s+f;SS(e,h,d,c)}),n.forEachChild(function(d,f){ln(e,t,r.concat(f),d,i)})}function CS(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(o,s,l){var u=Rr(o,s,l),c=u.payload,d=u.options,f=u.type;if((!d||!d.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._actions[f])){console.error("[vuex] unknown local action type: "+u.type+", global type: "+f);return}return e.dispatch(f,c)},commit:n?e.commit:function(o,s,l){var u=Rr(o,s,l),c=u.payload,d=u.options,f=u.type;if((!d||!d.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._mutations[f])){console.error("[vuex] unknown local mutation type: "+u.type+", global type: "+f);return}e.commit(f,c,d)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return Hv(e,t)}},state:{get:function(){return Pu(e.state,r)}}}),i}function Hv(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 kS(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){r.call(e,n.state,s)})}function wS(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 ES(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):l})}function SS(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 NS(e){a.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Qe(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Pu(e,t){return t.reduce(function(r,n){return r[n]},e)}function Rr(e,t,r){return $v(e)&&e.type&&(r=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Qe(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}var TS="vuex bindings",Gm="vuex:mutations",Bl="vuex:actions",Ut="vuex",LS=0;function OS(e,t){Bk({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:[TS]},function(r){r.addTimelineLayer({id:Gm,label:"Vuex Mutations",color:jm}),r.addTimelineLayer({id:Bl,label:"Vuex Actions",color:jm}),r.addInspector({id:Ut,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===Ut)if(n.filter){var i=[];Wv(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[zv(t._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===Ut){var i=n.nodeId;Hv(t,i),n.state=RS(PS(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),r.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===Ut){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(Ut),r.sendInspectorState(Ut),r.addTimelineEvent({layerId:Gm,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=LS++,n._time=Date.now(),o.state=i,r.addTimelineEvent({layerId:Bl,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:Bl,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:o}})}})})}var jm=8702998,IS=6710886,AS=16777215,Gv={label:"namespaced",textColor:AS,backgroundColor:IS};function jv(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function zv(e,t){return{id:t||"root",label:jv(t),tags:e.namespaced?[Gv]:[],children:Object.keys(e._children).map(function(r){return zv(e._children[r],t+r+"/")})}}function Wv(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?[Gv]:[]}),Object.keys(t._children).forEach(function(i){Wv(e,t._children[i],r,n+i+"/")})}function RS(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=DS(t);i.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?jv(s):s,editable:!1,value:Jl(function(){return o[s]})}})}return i}function DS(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]=Jl(function(){return e[r]})}else t[r]=Jl(function(){return e[r]})}),t}function PS(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 Jl(e){try{return e()}catch(t){return t}}var tt=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)||{}},Kv={namespaced:{configurable:!0}};Kv.namespaced.get=function(){return!!this._rawModule.namespaced};tt.prototype.addChild=function(t,r){this._children[t]=r};tt.prototype.removeChild=function(t){delete this._children[t]};tt.prototype.getChild=function(t){return this._children[t]};tt.prototype.hasChild=function(t){return t in this._children};tt.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)};tt.prototype.forEachChild=function(t){Mt(this._children,t)};tt.prototype.forEachGetter=function(t){this._rawModule.getters&&Mt(this._rawModule.getters,t)};tt.prototype.forEachAction=function(t){this._rawModule.actions&&Mt(this._rawModule.actions,t)};tt.prototype.forEachMutation=function(t){this._rawModule.mutations&&Mt(this._rawModule.mutations,t)};Object.defineProperties(tt.prototype,Kv);var qt=function(t){this.register([],t,!1)};qt.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};qt.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};qt.prototype.update=function(t){Yv([],this.root,t)};qt.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&Xv(t,r);var o=new tt(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&&Mt(r.modules,function(l,u){i.register(t.concat(u),l,n)})};qt.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)};qt.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function Yv(e,t,r){if(process.env.NODE_ENV!=="production"&&Xv(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}Yv(e.concat(n),t.getChild(n),r.modules[n])}}var zm={assert:function(e){return typeof e=="function"},expected:"function"},BS={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Wm={getters:zm,mutations:zm,actions:BS};function Xv(e,t){Object.keys(Wm).forEach(function(r){if(t[r]){var n=Wm[r];Mt(t[r],function(i,o){Qe(n.assert(i),VS(e,r,o,i,n.expected))})}})}function VS(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 ze=function e(t){var r=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(Qe(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Qe(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 qt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,l=this,u=l.dispatch,c=l.commit;this.dispatch=function(h,m){return u.call(s,h,m)},this.commit=function(h,m,C){return c.call(s,h,m,C)},this.strict=i;var d=this._modules.root.state;ln(this,d,[],this._modules.root),Du(this,d),n.forEach(function(f){return f(r)})},Bu={state:{configurable:!0}};ze.prototype.install=function(t,r){t.provide(r||yS,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;n&&OS(t,this)};Bu.state.get=function(){return this._state.data};Bu.state.set=function(e){process.env.NODE_ENV!=="production"&&Qe(!1,"use store.replaceState() to explicit replace store state.")};ze.prototype.commit=function(t,r,n){var i=this,o=Rr(t,r,n),s=o.type,l=o.payload,u=o.options,c={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(c,i.state)}),process.env.NODE_ENV!=="production"&&u&&u.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")};ze.prototype.dispatch=function(t,r){var n=this,i=Rr(t,r),o=i.type,s=i.payload,l={type:o,payload:s},u=this._actions[o];if(!u){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 c=u.length>1?Promise.all(u.map(function(d){return d(s)})):u[0](s);return new Promise(function(d,f){c.then(function(h){try{n._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(l,n.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(m))}d(h)},function(h){try{n._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(l,n.state,h)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(m))}f(h)})})};ze.prototype.subscribe=function(t,r){return Fv(t,this._subscribers,r)};ze.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return Fv(n,this._actionSubscribers,r)};ze.prototype.watch=function(t,r,n){var i=this;return process.env.NODE_ENV!=="production"&&Qe(typeof t=="function","store.watch only accepts a function."),a.watch(function(){return t(i.state,i.getters)},r,Object.assign({},n))};ze.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};ze.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Qe(Array.isArray(t),"module path must be a string or an Array."),Qe(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,r),ln(this,this.state,t,this._modules.get(t),n.preserveState),Du(this,this.state)};ze.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Qe(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=Pu(r.state,t.slice(0,-1));delete n[t[t.length-1]]}),Uv(this)};ze.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Qe(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};ze.prototype.hotUpdate=function(t){this._modules.update(t),Uv(this,!0)};ze.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(ze.prototype,Bu);var Vu=Jv(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!xu(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Zv(t).forEach(function(n){var i=n.key,o=n.val;r[i]=function(){var l=this.$store.state,u=this.$store.getters;if(e){var c=Qv(this.$store,"mapState",e);if(!c)return;l=c.context.state,u=c.context.getters}return typeof o=="function"?o.call(this,l,u):l[o]},r[i].vuex=!0}),r}),xS=Jv(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!xu(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Zv(t).forEach(function(n){var i=n.key,o=n.val;o=e+o,r[i]=function(){if(!(e&&!Qv(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 Zv(e){return xu(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 xu(e){return Array.isArray(e)||$v(e)}function Jv(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function Qv(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 MS={class:"icon rounded"},qS={class:"node-content"},$S={class:"d-flex node-title"},FS={class:"text-truncate task-title"},US={key:0,class:"d-flex"},HS={class:"text-white top-button-div"},GS={components:{ArrowExpand:sn,InformationOutline:qv,OpenInNew:Ru,Tooltip:fe},emits:[U.EXPAND,U.OPEN_LINK,U.SHOW_LOGS,U.MOUSE_OVER,U.MOUSE_LEAVE,U.ADD_ERROR,U.EDIT,U.DELETE,U.ADD_TASK,U.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(U.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(U.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return Ce},...Vu("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 U},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 Ce.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}}},jS=Object.assign(GS,{__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",MS,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.iconComponent||Au),{cls:t.cls,class:a.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),a.createElementVNode("div",qS,[a.createElementVNode("div",$S,[a.createElementVNode("div",FS,[a.createVNode(fe,{title:t.hoverTooltip},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(a.openBlock(),a.createElementBlock("span",US,[a.createVNode(fe,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:a.withCtx(()=>[a.createVNode(qv,{onClick:r[0]||(r[0]=n=>t.$emit(a.unref(U).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",HS,[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(U).OPEN_LINK,{link:e.data.link}))},[a.createVNode(fe,{title:t.$t("open")},{default:a.withCtx(()=>[a.createVNode(Ru,{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(U).EXPAND))},[a.createVNode(fe,{title:t.$t("expand")},{default:a.withCtx(()=>[a.createVNode(sn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),e_=K(jS,[["__scopeId","data-v-ecb1f5b4"]]),zS=["innerHTML"],WS=a.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;a.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const r=a.ref(""),n=a.ref();a.onMounted(()=>{l()});const i=a.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),o=a.computed(()=>t.histories[t.histories.length-1]),s=a.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){n.value||(n.value=setInterval(()=>{f(),t.histories&&!Te.isRunning(o.value.state)&&u()},100))}function u(){n.value&&(clearInterval(n.value),n.value=void 0)}function c(){return d()-i.value}function d(){return!t.histories||Te.isRunning(o.value.state)?+new Date:new Date(o.value.date.toString()).getTime()}function f(){r.value=s.value.length===0?" ":Ce.humanDuration(c()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return a.onBeforeUnmount(()=>{u()}),(m,C)=>(a.openBlock(),a.createBlock(fe,{key:o.value.date.toString()},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(y,v)=>(a.openBlock(),a.createElementBlock("span",{key:"tt-"+v,class:"ks-duration-tt"},[a.createElementVNode("span",{class:a.normalizeClass(["ks-duration-tt-square",h(y.state)])},null,2),a.createElementVNode("strong",null,a.toDisplayString(y.state)+": ",1),a.createTextVNode(a.toDisplayString(a.unref(Ce).dateFilter(y.date.toString(),"iso"))+" ",1),C[0]||(C[0]=a.createElementVNode("br",null,null,-1))]))),128))]),default:a.withCtx(()=>[a.createElementVNode("span",{innerHTML:r.value},null,8,zS)]),_:1}))}}),KS={class:"btn-group content rounded-1 content-children text-truncate"},YS={key:0,class:"taskRunCount"},XS={key:1},ZS={key:2},JS=a.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,r=a.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),n=a.computed(()=>r.value.filter(s=>s.taskId===Ce.afterLastDot(t.uid??""))),i=a.computed(()=>{if(!n.value)return null;if(n.value.length===1)return n.value[0].state.current;const s=n.value.map(c=>c.state.current),l=[Te.FAILED,Te.KILLED,Te.WARNING,Te.KILLING,Te.RUNNING,Te.SUCCESS,Te.RESTARTED,Te.CREATED];return s.map(c=>{const d=l.indexOf(c[1]);return l[d]=void 0,[d,c]}).sort().map(c=>c[1])[0]}),o=a.computed(()=>{if(!n.value)return;const s=Math.max(...n.value.filter(u=>u.state.histories&&u.state.histories.length>0).map(u=>new Date(u.state.histories[u.state.histories.length-1].date).getTime())),l=Math.max(...n.value.map(u=>ir.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:ir(s).subtract(l,"second"),state:"CREATED"},{date:ir(s),state:i.value}]});return(s,l)=>(a.openBlock(),a.createElementBlock("div",KS,[n.value.length>0?(a.openBlock(),a.createElementBlock("span",YS,a.toDisplayString(n.value.length)+" task runs",1)):a.createCommentVNode("",!0),n.value.length>0?(a.openBlock(),a.createElementBlock("span",XS," | ")):a.createCommentVNode("",!0),o.value?(a.openBlock(),a.createElementBlock("span",ZS,[a.createVNode(WS,{histories:o.value},null,8,["histories"])])):a.createCommentVNode("",!0)]))}}),t_=K(JS,[["__scopeId","data-v-b7801302"]]),QS={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eN=["aria-hidden","aria-label"],tN=["fill","width","height"],rN={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"},nN={key:0};function iN(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",rN,[r.title?(a.openBlock(),a.createElementBlock("title",nN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,tN))],16,eN)}const un=K(QS,[["render",iN]]),aN={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oN=["aria-hidden","aria-label"],sN=["fill","width","height"],lN={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},uN={key:0};function cN(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",lN,[r.title?(a.openBlock(),a.createElementBlock("title",uN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,sN))],16,oN)}const cn=K(aN,[["render",cN]]),dN={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fN=["aria-hidden","aria-label"],hN=["fill","width","height"],pN={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"},mN={key:0};function gN(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",pN,[r.title?(a.openBlock(),a.createElementBlock("title",mN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,hN))],16,fN)}const r_=K(dN,[["render",gN]]),vN={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_N=["aria-hidden","aria-label"],yN=["fill","width","height"],EN={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},bN={key:0};function CN(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",EN,[r.title?(a.openBlock(),a.createElementBlock("title",bN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,yN))],16,_N)}const n_=K(vN,[["render",CN]]),kN={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wN=["aria-hidden","aria-label"],SN=["fill","width","height"],NN={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"},TN={key:0};function LN(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",NN,[r.title?(a.openBlock(),a.createElementBlock("title",TN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,SN))],16,wN)}const i_=K(kN,[["render",LN]]),ON={name:"Task",components:{Pencil:un,Delete:cn,ExecutionInformations:t_,Handle:te.Handle,TextBoxSearch:r_,AlertOutline:n_,Tooltip:fe,SendLock:i_},inheritAttrs:!1,computed:{...Vu("execution",["execution"]),...xS("execution",["subflowsExecutions"]),SECTIONS(){return ft},EVENTS(){return U},color(){return this.data.color??"primary"},taskId(){return Ce.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===Ce.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=[Te.FAILED,Te.KILLED,Te.WARNING,Te.KILLING,Te.RUNNING,Te.SUCCESS,Te.RESTARTED,Te.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:[U.EXPAND,U.OPEN_LINK,U.SHOW_LOGS,U.MOUSE_OVER,U.MOUSE_LEAVE,U.ADD_ERROR,U.EDIT,U.DELETE,U.ADD_TASK,U.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)}}},IN=Object.assign(ON,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createVNode(e_,{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(U).SHOW_DESCRIPTION,n)),onExpand:r[6]||(r[6]=n=>t.forwardEvent(a.unref(U).EXPAND,t.expandData)),onOpenLink:r[7]||(r[7]=n=>t.forwardEvent(a.unref(U).OPEN_LINK,n)),onMouseover:r[8]||(r[8]=n=>t.forwardEvent(a.unref(U).MOUSE_OVER,n)),onMouseleave:r[9]||(r[9]=n=>t.forwardEvent(a.unref(U).MOUSE_LEAVE))},{content:a.withCtx(()=>[t.taskExecution?(a.openBlock(),a.createBlock(t_,{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&&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(U).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:a.unref(ft).TASKS}))},[a.createVNode(fe,{title:t.$t("show task condition")},{default:a.withCtx(()=>[a.createVNode(i_,{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(U).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[a.createVNode(fe,{title:t.$t("show task logs")},{default:a.withCtx(()=>[a.createVNode(r_,{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(U).ADD_ERROR,{task:e.data.node.task}))},[a.createVNode(fe,{title:t.$t("add error handler")},{default:a.withCtx(()=>[a.createVNode(n_,{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(U).EDIT,{task:e.data.node.task,section:a.unref(ft).TASKS}))},[a.createVNode(fe,{title:t.$t("edit")},{default:a.withCtx(()=>[a.createVNode(un,{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(U).DELETE,{id:t.taskId,section:a.unref(ft).TASKS}))},[a.createVNode(fe,{title:t.$t("delete")},{default:a.withCtx(()=>[a.createVNode(cn,{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(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),AN={name:"Task",inheritAttrs:!1,computed:{...Vu("execution",["execution"]),SECTIONS(){return ft},EVENTS(){return U},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 Ce.afterLastDot(this.id)}},emits:[U.DELETE,U.EDIT,U.SHOW_DESCRIPTION],components:{Delete:cn,Pencil:un,Handle:te.Handle,Tooltip:fe},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)}}},RN=Object.assign(AN,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createVNode(e_,{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(U).SHOW_DESCRIPTION,n)),onExpand:r[3]||(r[3]=n=>t.forwardEvent(a.unref(U).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(U).EDIT,{task:e.data.node.triggerDeclaration,section:a.unref(ft).TRIGGERS}))},[a.createVNode(fe,{title:t.$t("edit")},{default:a.withCtx(()=>[a.createVNode(un,{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(U).DELETE,{id:t.triggerId,section:a.unref(ft).TRIGGERS}))},[a.createVNode(fe,{title:t.$t("delete")},{default:a.withCtx(()=>[a.createVNode(cn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),a.createVNode(a.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),DN={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},PN=["aria-hidden","aria-label"],BN=["fill","width","height"],VN={d:"M11 15H6L13 1V9H18L11 23V15Z"},xN={key:0};function MN(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",VN,[r.title?(a.openBlock(),a.createElementBlock("title",xN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,BN))],16,PN)}const qN=K(DN,[["render",MN]]),$N={class:"collapsed-cluster-node d-flex"},FN={class:"node-text"},UN={class:"text-white top-button-div"},HN={components:{Tooltip:fe,Handle:te.Handle,ArrowExpand:sn,LightningBolt:qN},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 U},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}}},GN=Object.assign(HN,{__name:"CollapsedClusterNode",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createElementVNode("div",$N,[a.createElementVNode("span",FN,[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(Ce).afterLastDot(e.id)),1)]),a.createElementVNode("div",UN,[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(U).EXPAND,{id:e.id}))},[a.createVNode(fe,{title:t.$t("expand")},{default:a.withCtx(()=>[a.createVNode(sn,{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(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),jN=K(GN,[["__scopeId","data-v-89413b39"]]),zN={name:"SplitCellsVerticalIcon",emits:["click"]},WN={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KN(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",WN,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 YN=K(zN,[["render",KN],["__scopeId","data-v-084c51e6"]]),XN={name:"SplitCellsHorizontalIcon",emits:["click"]},ZN={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JN(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",ZN,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 QN=K(XN,[["render",JN],["__scopeId","data-v-c77c1469"]]),eT={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tT=["aria-hidden","aria-label"],rT=["fill","width","height"],nT={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},iT={key:0};function aT(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 download-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",nT,[r.title?(a.openBlock(),a.createElementBlock("title",iT,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,rT))],16,tT)}const oT=K(eT,[["render",aT]]);function sT(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}const lT=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function ht(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}function Dr(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function uT(e){const t=Dr(e,"border-left-width"),r=Dr(e,"border-right-width");return e.clientWidth+t+r}function cT(e){const t=Dr(e,"border-top-width"),r=Dr(e,"border-bottom-width");return e.clientHeight+t+r}function a_(e,t={}){const r=t.width||uT(e),n=t.height||cT(e);return{width:r,height:n}}function dT(){let e,t;try{t=process}catch{}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Ue=16384;function fT(e){(e.width>Ue||e.height>Ue)&&(e.width>Ue&&e.height>Ue?e.width>e.height?(e.height*=Ue/e.width,e.width=Ue):(e.width*=Ue/e.height,e.height=Ue):e.width>Ue?(e.height*=Ue/e.width,e.width=Ue):(e.width*=Ue/e.height,e.height=Ue))}function Pr(e){return new Promise((t,r)=>{const n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function hT(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function pT(e,t,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),hT(i)}const qe=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||qe(r,t)};function mT(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function gT(e){return ht(e).map(t=>{const r=e.getPropertyValue(t),n=e.getPropertyPriority(t);return`${t}: ${r}${n?" !important":""};`}).join(" ")}function vT(e,t,r){const n=`.${e}:${t}`,i=r.cssText?mT(r):gT(r);return document.createTextNode(`${n}{${i}}`)}function Km(e,t,r){const n=window.getComputedStyle(e,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const o=lT();try{t.className=`${t.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(vT(o,r,n)),t.appendChild(s)}function _T(e,t){Km(e,t,":before"),Km(e,t,":after")}const Ym="application/font-woff",Xm="image/jpeg",yT={woff:Ym,woff2:Ym,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Xm,jpeg:Xm,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ET(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Mu(e){const t=ET(e).toLowerCase();return yT[t]||""}function bT(e){return e.split(/,/)[1]}function Ql(e){return e.search(/^(data:)/)!==-1}function CT(e,t){return`data:${t};base64,${e}`}async function o_(e,t,r){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((o,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{o(r({res:n,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(i)})}const Vl={};function kT(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function qu(e,t,r){const n=kT(e,t,r.includeQueryParams);if(Vl[n]!=null)return Vl[n];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const o=await o_(e,r.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),bT(l)));i=CT(o,t)}catch(o){i=r.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;o&&(s=typeof o=="string"?o:o.message),s&&console.warn(s)}return Vl[n]=i,i}async function wT(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Pr(t)}async function ST(e,t){if(e.currentSrc){const o=document.createElement("canvas"),s=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,s==null||s.drawImage(e,0,0,o.width,o.height);const l=o.toDataURL();return Pr(l)}const r=e.poster,n=Mu(r),i=await qu(r,n,t);return Pr(i)}async function NT(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await dn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function TT(e,t){return qe(e,HTMLCanvasElement)?wT(e):qe(e,HTMLVideoElement)?ST(e,t):qe(e,HTMLIFrameElement)?NT(e):e.cloneNode(!1)}const LT=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function OT(e,t,r){var n,i;let o=[];return LT(e)&&e.assignedNodes?o=ht(e.assignedNodes()):qe(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?o=ht(e.contentDocument.body.childNodes):o=ht(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),o.length===0||qe(e,HTMLVideoElement)||await o.reduce((s,l)=>s.then(()=>dn(l,r)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function IT(e,t){const r=t.style;if(!r)return;const n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):ht(n).forEach(i=>{let o=n.getPropertyValue(i);i==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),qe(e,HTMLIFrameElement)&&i==="display"&&o==="inline"&&(o="block"),i==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(i,o,n.getPropertyPriority(i))})}function AT(e,t){qe(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),qe(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function RT(e,t){if(qe(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(i=>e.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function DT(e,t){return qe(t,Element)&&(IT(e,t),_T(e,t),AT(e,t),RT(e,t)),t}async function PT(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const n={};for(let o=0;o<r.length;o++){const l=r[o].getAttribute("xlink:href");if(l){const u=e.querySelector(l),c=document.querySelector(l);!u&&c&&!n[l]&&(n[l]=await dn(c,t,!0))}}const i=Object.values(n);if(i.length){const o="http://www.w3.org/1999/xhtml",s=document.createElementNS(o,"svg");s.setAttribute("xmlns",o),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(o,"defs");s.appendChild(l);for(let u=0;u<i.length;u++)l.appendChild(i[u]);e.appendChild(s)}return e}async function dn(e,t,r){return!r&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>TT(n,t)).then(n=>OT(e,n,t)).then(n=>DT(e,n)).then(n=>PT(n,t))}const s_=/url\((['"]?)([^'"]+?)\1\)/g,BT=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,VT=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function xT(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function MT(e){const t=[];return e.replace(s_,(r,n,i)=>(t.push(i),r)),t.filter(r=>!Ql(r))}async function qT(e,t,r,n,i){try{const o=r?sT(t,r):t,s=Mu(t);let l;return i||(l=await qu(o,s,n)),e.replace(xT(t),`$1${l}$3`)}catch{}return e}function $T(e,{preferredFontFormat:t}){return t?e.replace(VT,r=>{for(;;){const[n,,i]=BT.exec(r)||[];if(!i)return"";if(i===t)return`src: ${n};`}}):e}function l_(e){return e.search(s_)!==-1}async function u_(e,t,r){if(!l_(e))return e;const n=$T(e,r);return MT(n).reduce((o,s)=>o.then(l=>qT(l,s,t,r)),Promise.resolve(n))}async function br(e,t,r){var n;const i=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(i){const o=await u_(i,null,r);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function FT(e,t){await br("background",e,t)||await br("background-image",e,t),await br("mask",e,t)||await br("mask-image",e,t)}async function UT(e,t){const r=qe(e,HTMLImageElement);if(!(r&&!Ql(e.src))&&!(qe(e,SVGImageElement)&&!Ql(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,i=await qu(n,Mu(n),t);await new Promise((o,s)=>{e.onload=o,e.onerror=s;const l=e;l.decode&&(l.decode=o),l.loading==="lazy"&&(l.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}async function HT(e,t){const n=ht(e.childNodes).map(i=>c_(i,t));await Promise.all(n).then(()=>e)}async function c_(e,t){qe(e,Element)&&(await FT(e,t),await UT(e,t),await HT(e,t))}function GT(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(i=>{r[i]=n[i]}),e}const Zm={};async function Jm(e){let t=Zm[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},Zm[e]=t,t}async function Qm(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=(r.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(n,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),o_(l,t.fetchRequestInit,({result:u})=>(r=r.replace(s,`url(${u})`),[s,u]))});return Promise.all(o).then(()=>r)}function eg(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(r,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=i.exec(n);if(u===null)break;t.push(u[0])}n=n.replace(i,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(s,"gi");for(;;){let u=o.exec(n);if(u===null){if(u=l.exec(n),u===null)break;o.lastIndex=l.lastIndex}else l.lastIndex=o.lastIndex;t.push(u[0])}return t}async function jT(e,t){const r=[],n=[];return e.forEach(i=>{if("cssRules"in i)try{ht(i.cssRules||[]).forEach((o,s)=>{if(o.type===CSSRule.IMPORT_RULE){let l=s+1;const u=o.href,c=Jm(u).then(d=>Qm(d,t)).then(d=>eg(d).forEach(f=>{try{i.insertRule(f,f.startsWith("@import")?l+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:f,error:h})}})).catch(d=>{console.error("Error loading remote css",d.toString())});n.push(c)}})}catch(o){const s=e.find(l=>l.href==null)||document.styleSheets[0];i.href!=null&&n.push(Jm(i.href).then(l=>Qm(l,t)).then(l=>eg(l).forEach(u=>{s.insertRule(u,i.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(i=>{if("cssRules"in i)try{ht(i.cssRules||[]).forEach(o=>{r.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${i.href}`,o)}}),r))}function zT(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>l_(t.style.getPropertyValue("src")))}async function WT(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=ht(e.ownerDocument.styleSheets),n=await jT(r,t);return zT(n)}async function KT(e,t){const r=await WT(e,t);return(await Promise.all(r.map(i=>{const o=i.parentStyleSheet?i.parentStyleSheet.href:null;return u_(i.cssText,o,t)}))).join(`
|
|
29
|
-
`)}async function YT(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await KT(e,t);if(r){const n=document.createElement("style"),i=document.createTextNode(r);n.appendChild(i),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function XT(e,t={}){const{width:r,height:n}=a_(e,t),i=await dn(e,t,!0);return await YT(i,t),await c_(i,t),GT(i,t),await pT(i,r,n)}async function d_(e,t={}){const{width:r,height:n}=a_(e,t),i=await XT(e,t),o=await Pr(i),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||dT(),c=t.canvasWidth||r,d=t.canvasHeight||n;return s.width=c*u,s.height=d*u,t.skipAutoScale||fT(s),s.style.width=`${c}`,s.style.height=`${d}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(o,0,0,s.width,s.height),s}async function ZT(e,t={}){return(await d_(e,t)).toDataURL()}async function JT(e,t={}){return(await d_(e,t)).toDataURL("image/jpeg",t.quality||1)}function QT(){const e=a.ref(""),t=a.ref("png"),r=a.ref();async function n(l,u={}){let c;const d=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":c=await i(l,u);break;case"png":c=await o(l,u);break;default:c=await o(l,u);break}return u.shouldDownload&&d!==""&&s(d),c}function i(l,u={quality:.95}){return r.value=null,JT(l,u).then(c=>(e.value=c,t.value="jpeg",c)).catch(c=>{throw c.value=c,new Error(c)})}function o(l,u={quality:.95}){return r.value=null,ZT(l,u).then(c=>(e.value=c,t.value="png",c)).catch(c=>{throw c.value=c,new Error(c)})}function s(l){const u=document.createElement("a");u.download=`${l}.${t.value}`,u.href=e.value,u.click()}return{capture:n,download:s,dataUrl:e,error:r}}const e2={key:1,class:"exporting"},t2=a.defineComponent({__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:[U.EDIT,U.DELETE,U.OPEN_LINK,U.SHOW_LOGS,U.SHOW_DESCRIPTION,"on-add-flowable-error",U.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",U.SHOW_CONDITION],setup(e,{emit:t}){const r=e,n=a.ref(!1),i=a.ref(),{getNodes:o,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:c,setElements:d,vueFlowRef:f}=te.useVueFlow(r.id),h=a.ref({}),m=a.ref([]),C=a.ref(new Set),y=a.ref([]),{capture:v}=QT(),p=t;a.onMounted(()=>{g()}),a.watch(()=>r.flowGraph,()=>{g()}),a.watch(()=>r.isHorizontal,()=>{g()});const g=()=>{wr.cleanGraph(r.id),a.nextTick(()=>{p("loading",!0);const V=C.value;C.value=new Set,m.value=[],h.value={},V.forEach(X=>L(Ct+X,!1,!1));const R=wr.generateGraph(r.id,r.flowId,r.namespace,r.flowGraph,r.source,m.value,r.isHorizontal,h.value,C.value,y.value,r.isReadOnly,r.isAllowedEdit,r.enableSubflowInteraction);R&&(d(R),c(),p("loading",!1))})},E=V=>{n.value||wr.linkedElements(r.id,V.uid).forEach(R=>{(R==null?void 0:R.type)==="task"&&(R.style={...R.style,outline:"0.5px solid "+Ge("--bs-gray-900")},R.class="rounded-3")})},_=()=>{k()},k=()=>{o.value.filter(V=>V.type==="task"||V.type==="trigger").forEach(V=>{V.style={...V.style,opacity:"1",outline:"none"},V.class=""})};l(V=>{n.value=!0,k(),V.node.style={...V.node.style,zIndex:1976},i.value=V.node.position}),u(V=>{if(n.value=!1,V.intersections&&b(V.intersections,V.node)===null){const R=V.node,X=V.intersections.find(G=>G.type==="task");if(X)try{r.source&&p("swapped-task",{newSource:de.swapBlocks({source:r.source,section:"tasks",key1:Ce.afterLastDot(R.id)??"",key2:Ce.afterLastDot(X.id)??""}),swappedTasks:[R.id,X.id]})}catch(G){p("message",{variant:"error",title:"cannot swap tasks",message:`${G.message}, ${G.messageOptions}`}),R.position=i.value}else R.position=i.value}else V.node.position=i.value;k(),V.node.style={...V.node.style,zIndex:5},i.value=null});const S=a.computed(()=>{var V;return(V=r.flowGraph)!=null&&V.clusters?r.flowGraph.clusters.filter(R=>R.cluster.type.endsWith("SubflowGraphCluster")).map(R=>R.cluster.taskNode.uid+"."):[]});s(V=>{k(),o.value.filter(R=>R.id!==V.node.id).forEach(R=>{var X;R.type==="trigger"||R.type==="task"&&(R.id.startsWith(V.node.id+".")||V.node.id.startsWith(R.id+"."))||(X=S==null?void 0:S.value)!=null&&X.some(G=>R.id.startsWith(G))?R.style={...R.style,opacity:"0.5"}:R.style={...R.style,opacity:"1"}}),V.intersections&&!b(V.intersections,V.node)&&V.intersections.filter(R=>R.type==="task").length===1&&(V.intersections.forEach(R=>{R.type==="task"&&(R.style={...R.style,outline:"0.5px solid "+Ge("--bs-primary")},R.class="rounded-3")}),V.node.style={...V.node.style,outline:"0.5px solid "+Ge("--bs-primary")},V.node.class="rounded-3")});const b=(V,R)=>{const X=V.filter(G=>G.type==="task").map(G=>Ce.afterLastDot(G.id));if(X.length>1)return"toomuchtaskerror";try{if(X.length===1&&r.source&&de.isParentChildrenRelation({source:r.source,sections:["tasks","triggers"],key1:Ce.afterLastDot(X[0])??"",key2:Ce.afterLastDot(R.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return V.filter(G=>G.type==="trigger").length>0?"triggererror":null},L=(V,R,X=!1)=>{const G=r.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(V)),F=V.replace(Ct,"");C.value.add(F),m.value=m.value.concat(G.nodes.filter(ne=>ne!==F||X)),m.value=m.value.concat([G.cluster.uid]),h.value={...h.value,[G.cluster.uid]:F,[G.start]:F,[G.end]:F};for(let ne of G.nodes)r.flowGraph.clusters.map(ve=>ve.cluster.uid).includes(ne)&&L(ne,!1,!0);R&&g()},T=V=>{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(V.type)&&!r.expandedSubflows.includes(V.id)){p("expand-subflow",[...r.expandedSubflows,V.id]);return}h.value={},m.value=[],y.value=[],C.value.delete(V.id),C.value.forEach(X=>L(X,!1,!1)),g()},A=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,D=a.ref(!0),$=a.ref(!1),z=()=>$.value=!$.value;function Z(V){if(!f.value){console.warn("Flow not found");return}D.value=!1,v(f.value,{type:V,shouldDownload:!0}).then(()=>D.value=!0).finally(()=>$.value=!1)}return(V,R)=>(a.openBlock(),a.createBlock(a.unref(te.VueFlow),{id:e.id,"default-marker-color":a.unref(Ge)("--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(X=>[a.createVNode(xw,a.mergeProps(X,{onCollapse:R[0]||(R[0]=G=>L(G,!0))}),null,16)]),"node-dot":a.withCtx(X=>[a.createVNode(zw,a.normalizeProps(a.guardReactiveProps(X)),null,16)]),"node-task":a.withCtx(X=>[a.createVNode(IN,a.mergeProps(X,{icons:e.icons,"icon-component":e.iconComponent,onEdit:R[1]||(R[1]=G=>p(a.unref(U).EDIT,G)),onDelete:R[2]||(R[2]=G=>p(a.unref(U).DELETE,G)),onExpand:R[3]||(R[3]=G=>T(G)),onOpenLink:R[4]||(R[4]=G=>p(a.unref(U).OPEN_LINK,G)),onShowLogs:R[5]||(R[5]=G=>p(a.unref(U).SHOW_LOGS,G)),onShowDescription:R[6]||(R[6]=G=>p(a.unref(U).SHOW_DESCRIPTION,G)),onShowCondition:R[7]||(R[7]=G=>p(a.unref(U).SHOW_CONDITION,G)),onMouseover:R[8]||(R[8]=G=>E(G)),onMouseleave:R[9]||(R[9]=G=>_()),onAddError:R[10]||(R[10]=G=>p("on-add-flowable-error",G)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":a.withCtx(X=>[a.createVNode(RN,a.mergeProps(X,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:R[11]||(R[11]=G=>p(a.unref(U).DELETE,G)),onEdit:R[12]||(R[12]=G=>p(a.unref(U).EDIT,G)),onShowDescription:R[13]||(R[13]=G=>p(a.unref(U).SHOW_DESCRIPTION,G))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":a.withCtx(X=>[a.createVNode(jN,a.mergeProps(X,{onExpand:R[14]||(R[14]=G=>T(G))}),null,16)]),"edge-edge":a.withCtx(X=>[a.createVNode(oS,a.mergeProps(X,{"yaml-source":e.source,onAddTask:R[15]||(R[15]=G=>p(a.unref(U).ADD_TASK,G)),"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(Nw),{"pattern-color":A?a.unref(Ge)("--bs-grey-500"):a.unref(Ge)("--bs-grey-300")},null,8,["pattern-color"]),D.value?(a.openBlock(),a.createBlock(a.unref(hn.Controls),{key:0,"show-interactive":!1},{default:a.withCtx(()=>[e.toggleOrientationButton?(a.openBlock(),a.createBlock(a.unref(hn.ControlButton),{key:0,onClick:R[16]||(R[16]=X=>p("toggle-orientation",X))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.isHorizontal?QN:YN)))]),_:1})):a.createCommentVNode("",!0),a.createVNode(a.unref(hn.ControlButton),{onClick:z},{default:a.withCtx(()=>[a.createVNode(oT)]),_:1}),$.value?(a.openBlock(),a.createElementBlock("ul",e2,[a.createElementVNode("li",{onClick:R[17]||(R[17]=X=>Z("jpeg")),class:"item"}," Export as .JPEG "),a.createElementVNode("li",{onClick:R[18]||(R[18]=X=>Z("png")),class:"item"}," Export as .PNG ")])):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),r2=K(t2,[["__scopeId","data-v-ecaa6943"]]),n2={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i2=["aria-hidden","aria-label"],a2=["fill","width","height"],o2={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},s2={key:0};function l2(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",o2,[r.title?(a.openBlock(),a.createElementBlock("title",s2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,a2))],16,i2)}const u2=K(n2,[["render",l2]]),c2={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},d2=["aria-hidden","aria-label"],f2=["fill","width","height"],h2={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"},p2={key:0};function m2(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",h2,[r.title?(a.openBlock(),a.createElementBlock("title",p2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,f2))],16,d2)}const g2=K(c2,[["render",m2]]),v2={key:0,class:"language"},_2=["innerHTML"],y2=a.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:a.shallowRef(g2),Check:a.shallowRef(u2)},r=e,n=a.ref(!1),i=a.ref(),o=a.shallowRef(t.ContentCopy.value),s=a.ref(),l=a.ref(),u=a.ref(r.highlighter.codeToHtml(r.code,{lang:r.language,theme:r.theme}));function c(){n.value=!0,i.value&&a.nextTick(()=>{s.value&&l.value&&G_.createPopper(s.value,l.value,{placement:"left"})})}function d(){clearTimeout(i.value),navigator.clipboard.writeText(r.code.trimEnd()),o.value=t.Check.value,i.value=setTimeout(()=>{o.value=t.ContentCopy.value,i.value=void 0},2e3)}return(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"code-block",onMouseover:c,onMouseleave:h[0]||(h[0]=m=>n.value=!1)},[f.language&&!n.value?(a.openBlock(),a.createElementBlock("div",v2,a.toDisplayString(f.language),1)):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{onClick:d}))],512),i.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[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:u.value},null,8,_2)],32))}}),tg=K(y2,[["__scopeId","data-v-43f26c29"]]),E2={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},b2=["aria-hidden","aria-label"],C2=["fill","width","height"],k2={d:"M10,17L15,12L10,7V17Z"},w2={key:0};function S2(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 menu-right-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",k2,[r.title?(a.openBlock(),a.createElementBlock("title",w2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,C2))],16,b2)}const N2=K(E2,[["render",S2]]),T2={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},L2=["aria-hidden","aria-label"],O2=["fill","width","height"],I2={d:"M7,10L12,15L17,10H7Z"},A2={key:0};function R2(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 menu-down-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",I2,[r.title?(a.openBlock(),a.createElementBlock("title",A2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,O2))],16,L2)}const D2=K(T2,[["render",R2]]),P2=["id"],B2=["data-target","aria-controls"],V2={class:"d-flex gap-2 align-items-center"},x2={key:0,class:"d-flex flex-grow-1"},M2=["id"],q2=a.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const r=e,n=a.ref(!r.initiallyExpanded),i=Tr.useRoute(),o=Tr.useRouter(),s=a.computed(()=>`#${r.href}-body`),l=()=>{n.value=!n.value,o.replace({hash:n.value?"":s.value})},u=t;return a.watch(()=>i.hash,c=>{c===s.value&&(n.value=!1,u("expand"))},{immediate:!0}),a.watch(()=>r.initiallyExpanded,c=>{c&&(n.value=!c)},{immediate:!0}),(c,d)=>(a.openBlock(),a.createElementBlock("div",{id:c.href,class:a.normalizeClass(["d-flex flex-column",{"gap-2":!n.value}])},[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:n.value}]),"data-toggle":"collapse","data-target":s.value,"aria-expanded":"false","aria-controls":c.href+"-body"},[a.createElementVNode("span",V2,[c.arrow?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value?N2:D2),{key:0,class:"arrow"})):a.createCommentVNode("",!0),a.createTextVNode(a.toDisplayString(c.clickableText),1),a.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(a.openBlock(),a.createElementBlock("span",x2,[a.renderSlot(c.$slots,"buttonRight",{collapsed:n.value},void 0,!0)])):a.createCommentVNode("",!0)],10,B2),c.$slots.content?(a.openBlock(),a.createElementBlock("div",{key:0,id:c.href+"-body",class:a.normalizeClass(["collapsible-body",{collapsed:n.value}])},[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content",{},void 0,!0)])],10,M2)):a.createCommentVNode("",!0)],10,P2))}}),Br=K(q2,[["__scopeId","data-v-9838d839"]]);function Cr(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function f_(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function $2(e){var t,r;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((r=e.additionalProperties)!=null&&r.enum)return e.additionalProperties.enum}function F2(e){return e.allOf&&(e=e.allOf.reduce((t,r)=>({...t,...r}),{...e}),delete e.allOf),e}function h_(e){const t={},r=Cr(e);return r?t.types=[r]:e.anyOf?t.types=e.anyOf.map(Cr).filter(n=>n!==void 0).filter(Ce.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Cr(e.additionalProperties):e.items&&(t.subType=Cr(e.items)),t}const U2={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},H2=["aria-hidden","aria-label"],G2=["fill","width","height"],j2={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},z2={key:0};function W2(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 chevron-down-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",j2,[r.title?(a.openBlock(),a.createElementBlock("title",z2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,G2))],16,H2)}const K2=K(U2,[["render",W2]]),Y2={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},X2=["aria-hidden","aria-label"],Z2=["fill","width","height"],J2={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},Q2={key:0};function eL(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 eye-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",J2,[r.title?(a.openBlock(),a.createElementBlock("title",Q2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Z2))],16,X2)}const p_=K(Y2,[["render",eL]]),tL={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},rL=["aria-hidden","aria-label"],nL=["fill","width","height"],iL={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},aL={key:0};function oL(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 file-document-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",iL,[r.title?(a.openBlock(),a.createElementBlock("title",aL,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,nL))],16,rL)}const sL=K(tL,[["render",oL]]),lL={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uL=["aria-hidden","aria-label"],cL=["fill","width","height"],dL={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},fL={key:0};function hL(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-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",dL,[r.title?(a.openBlock(),a.createElementBlock("title",fL,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,cL))],16,uL)}const m_=K(lL,[["render",hL]]),pL={class:"me-3"},mL={class:"d-flex flex-column"},gL=a.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,r=a.computed(()=>{switch(t.type){case"success":return sL;case"info":return ql;case"warning":return m_;case"danger":return Ml;default:return ql}});return(n,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass("doc-alert alert alert-"+n.type),role:"alert"},[a.createElementVNode("div",pL,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.value),{class:"alert-icon"}))]),a.createElementVNode("div",mL,[a.renderSlot(n.$slots,"default",{},void 0,!0)])],2))}}),vL=K(gL,[["__scopeId","data-v-f7fd8bc1"]]),_L={class:"property-detail"},yL={key:0},EL=["href"],bL={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},CL={class:"ref-type"},kL={key:1,class:"type-box rounded fs-7 px-2 py-1"},wL={key:1},SL={key:2},NL={class:"border rounded px-2 py-1"},TL={key:3},LL={class:"border rounded px-2 py-1"},OL={key:4},IL={class:"border rounded px-2 py-1"},AL={key:5},RL={class:"border rounded px-2 py-1"},DL={key:6},PL={class:"border rounded px-2 py-1"},BL={key:7},VL={class:"border rounded px-2 py-1"},xL={key:8},ML={class:"border rounded px-2 py-1"},qL={key:9},$L={class:"border rounded px-2 py-1"},FL={key:10},UL={class:"border rounded px-2 py-1"},HL={key:11},GL={class:"border rounded px-2 py-1"},jL={key:12},zL={class:"border rounded px-2 py-1"},WL={key:13},KL={class:"border rounded px-2 py-1"},YL={key:14},XL={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},ZL={key:15},JL={class:"property-description markdown"},QL={key:2},eO=a.defineComponent({__name:"PropertyDetail",props:{property:{},isDynamic:{type:Boolean},showDynamic:{type:Boolean,default:!0}},setup(e){const t=e,r=a.ref(h_(t.property).subType),n=a.ref($2(t.property)),i=o=>o.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(o,s)=>(a.openBlock(),a.createElementBlock("div",_L,[r.value?(a.openBlock(),a.createElementBlock("div",yL,[s[1]||(s[1]=a.createElementVNode("span",null," SubType ",-1)),r.value.startsWith("#")?(a.openBlock(),a.createElementBlock("a",{key:0,href:r.value,onClick:s[0]||(s[0]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("button",bL,[a.createElementVNode("span",CL,a.toDisplayString(a.unref(f_)(r.value)),1),a.createVNode(p_)])],8,EL)):(a.openBlock(),a.createElementBlock("span",kL,a.toDisplayString(r.value),1))])):a.createCommentVNode("",!0),o.showDynamic?(a.openBlock(),a.createElementBlock("div",wL,[s[2]||(s[2]=a.createElementVNode("span",null," Dynamic ",-1)),a.createElementVNode("code",{class:a.normalizeClass(["border rounded px-2 py-1",{"border-red":!o.isDynamic}])},a.toDisplayString(o.isDynamic?"YES":"NO"),3)])):a.createCommentVNode("",!0),o.property.default!==void 0?(a.openBlock(),a.createElementBlock("div",SL,[s[3]||(s[3]=a.createElementVNode("span",null," Default ",-1)),a.createElementVNode("code",NL,a.toDisplayString(o.property.default),1)])):a.createCommentVNode("",!0),o.property.pattern!==void 0?(a.openBlock(),a.createElementBlock("div",TL,[s[4]||(s[4]=a.createElementVNode("span",null," Validation RegExp ",-1)),a.createElementVNode("code",LL,a.toDisplayString(o.property.pattern),1)])):a.createCommentVNode("",!0),o.property.unit!==void 0&&o.property.unit.trim().length>0?(a.openBlock(),a.createElementBlock("div",OL,[s[5]||(s[5]=a.createElementVNode("span",null," Unit ",-1)),a.createElementVNode("code",IL,a.toDisplayString(o.property.unit),1)])):a.createCommentVNode("",!0),o.property.minLength!==void 0?(a.openBlock(),a.createElementBlock("div",AL,[s[6]||(s[6]=a.createElementVNode("span",null," Min length ",-1)),a.createElementVNode("code",RL,a.toDisplayString(o.property.minLength),1)])):a.createCommentVNode("",!0),o.property.maxLength!==void 0?(a.openBlock(),a.createElementBlock("div",DL,[s[7]||(s[7]=a.createElementVNode("span",null," Max length ",-1)),a.createElementVNode("code",PL,a.toDisplayString(o.property.maxLength),1)])):a.createCommentVNode("",!0),o.property.minItems!==void 0?(a.openBlock(),a.createElementBlock("div",BL,[s[8]||(s[8]=a.createElementVNode("span",null," Min items ",-1)),a.createElementVNode("code",VL,a.toDisplayString(o.property.minItems),1)])):a.createCommentVNode("",!0),o.property.maxItems!==void 0?(a.openBlock(),a.createElementBlock("div",xL,[s[9]||(s[9]=a.createElementVNode("span",null," Max items ",-1)),a.createElementVNode("code",ML,a.toDisplayString(o.property.maxItems),1)])):a.createCommentVNode("",!0),o.property.minimum!==void 0?(a.openBlock(),a.createElementBlock("div",qL,[s[10]||(s[10]=a.createElementVNode("span",null," Minimum ",-1)),a.createElementVNode("code",$L," >= "+a.toDisplayString(o.property.minimum),1)])):a.createCommentVNode("",!0),o.property.exclusiveMinimum!==void 0?(a.openBlock(),a.createElementBlock("div",FL,[s[11]||(s[11]=a.createElementVNode("span",null," Minimum ",-1)),a.createElementVNode("code",UL," > "+a.toDisplayString(o.property.minimum),1)])):a.createCommentVNode("",!0),o.property.maximum!==void 0?(a.openBlock(),a.createElementBlock("div",HL,[s[12]||(s[12]=a.createElementVNode("span",null," Maximum ",-1)),a.createElementVNode("code",GL," <= "+a.toDisplayString(o.property.maximum),1)])):a.createCommentVNode("",!0),o.property.exclusiveMaximum!==void 0?(a.openBlock(),a.createElementBlock("div",jL,[s[13]||(s[13]=a.createElementVNode("span",null," Maximum ",-1)),a.createElementVNode("code",zL," < "+a.toDisplayString(o.property.maximum),1)])):a.createCommentVNode("",!0),o.property.format!==void 0?(a.openBlock(),a.createElementBlock("div",WL,[s[14]||(s[14]=a.createElementVNode("span",null," Format ",-1)),a.createElementVNode("code",KL,a.toDisplayString(o.property.format),1)])):a.createCommentVNode("",!0),n.value!==void 0?(a.openBlock(),a.createElementBlock("div",YL,[s[15]||(s[15]=a.createElementVNode("span",null," Possible Values ",-1)),a.createElementVNode("div",XL,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(l,u)=>(a.openBlock(),a.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},a.toDisplayString(l),1))),128))])])):a.createCommentVNode("",!0),o.property.title!==void 0||o.property.description!==void 0?(a.openBlock(),a.createElementBlock("div",ZL,[a.createElementVNode("div",JL,[o.property.title!==void 0?a.renderSlot(o.$slots,"markdown",{key:0,content:i(o.property.title)},void 0,!0):a.createCommentVNode("",!0),o.property.description!==void 0?a.renderSlot(o.$slots,"markdown",{key:1,content:i(o.property.description)},void 0,!0):a.createCommentVNode("",!0),o.property.$internalStorageURI?(a.openBlock(),a.createElementBlock("div",QL,[a.createVNode(vL,{type:"info"},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]))}}),tO=K(eO,[["__scopeId","data-v-439c2759"]]),rO={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nO=["aria-hidden","aria-label"],iO=["fill","width","height"],aO={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},oO={key:0};function sO(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 chevron-up-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",aO,[r.title?(a.openBlock(),a.createElementBlock("title",oO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,iO))],16,nO)}const lO=K(rO,[["render",sO]]),uO={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cO=["aria-hidden","aria-label"],dO=["fill","width","height"],fO={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},hO={key:0};function pO(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 snowflake-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",fO,[r.title?(a.openBlock(),a.createElementBlock("title",hO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,dO))],16,cO)}const mO=K(uO,[["render",pO]]),gO={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vO=["aria-hidden","aria-label"],_O=["fill","width","height"],yO={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},EO={key:0};function bO(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 alpha-b-box-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",yO,[r.title?(a.openBlock(),a.createElementBlock("title",EO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,_O))],16,vO)}const CO=K(gO,[["render",bO]]),kO={class:"border overflow-hidden"},wO={class:"d-flex flex-grow-1 align-items-center justify-content-between"},SO={class:"d-flex gap-2"},NO={class:"d-flex gap-2"},TO=["href"],LO={class:"ref-type"},OO={key:1,class:"type-box rounded fs-7 px-2 py-1"},IO=a.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const r=t,n=a.ref(!1);a.watch(n,s=>{s&&r("expand")});const i=s=>{var l;return s.$dynamic===!0?!0:s.$dynamic===!1?!1:((l=s.anyOf)==null?void 0:l.some(u=>u.$dynamic===!0))??!1};function o(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=F2(s[f]),s[f].$required?l.push(f):u.push(f));const c=[...l.sort(),...u.sort()],d={};return c.forEach(f=>{d[f]=s[f]}),d}return(s,l)=>(a.openBlock(),a.createBlock(Br,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>r("expand")),"initially-expanded":s.initiallyExpanded||n.value},a.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:a.withCtx(()=>[a.createElementVNode("div",kO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o(s.properties),(u,c)=>(a.openBlock(),a.createBlock(Br,{class:"property",key:c,arrow:!1,"clickable-text":c,href:s.href+"_"+c,onExpand:l[1]||(l[1]=d=>n.value=!0)},{additionalButtonText:a.withCtx(()=>[u.$required?(a.openBlock(),a.createBlock(fe,{key:0,class:"d-flex",title:"Required"},{default:a.withCtx(()=>l[3]||(l[3]=[a.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):a.createCommentVNode("",!0)]),buttonRight:a.withCtx(({collapsed:d})=>[a.createElementVNode("span",wO,[a.createElementVNode("span",SO,[s.showDynamic&&!i(u)?(a.openBlock(),a.createBlock(fe,{key:0,class:"d-flex",title:"Non-dynamic"},{default:a.withCtx(()=>[a.createVNode(mO,{class:"text-info"})]),_:1})):a.createCommentVNode("",!0),u.$beta?(a.openBlock(),a.createBlock(fe,{key:1,class:"d-flex",title:"Beta"},{default:a.withCtx(()=>[a.createVNode(CO,{class:"text-warning"})]),_:1})):a.createCommentVNode("",!0),u.$deprecated?(a.openBlock(),a.createBlock(fe,{key:2,class:"d-flex",title:"Deprecated"},{default:a.withCtx(()=>[a.createVNode(m_,{class:"text-warning"})]),_:1})):a.createCommentVNode("",!0)]),a.createElementVNode("span",NO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h_)(u).types,f=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:f},[f.startsWith("#")?(a.openBlock(),a.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:f,onClick:l[0]||(l[0]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("span",LO,a.toDisplayString(a.unref(f_)(f)),1),a.createVNode(p_)],8,TO)):(a.openBlock(),a.createElementBlock("span",OO,a.toDisplayString(f),1))],64))),128)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d?K2:lO),{class:"arrow"}))])])]),content:a.withCtx(()=>[a.createVNode(tO,{"show-dynamic":s.showDynamic,"is-dynamic":s.showDynamic&&i(u),property:u},{markdown:a.withCtx(({content:d})=>[a.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:2},1032,["show-dynamic","is-dynamic","property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),kr=K(IO,[["__scopeId","data-v-236d3a37"]]),AO={class:"d-flex flex-column gap-6"},RO={key:0,class:"alert alert-info",role:"alert"},DO={key:1,class:"plugin-title markdown"},PO={key:2,class:"markdown"},BO={class:"d-flex flex-column gap-4"},VO={class:"d-flex flex-column gap-3"},xO={class:"markdown"},MO={key:0,class:"w-100 align-self-center"},qO={class:"markdown"},$O={class:"markdown"},FO={class:"markdown"},UO={class:"d-flex flex-column gap-7 ps-3"},HO={class:"markdown"},GO=a.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,r;const n=e,i=a.ref(!1),o=p=>{var g;return p!=null&&p.full?p.code:`id: "${(g=n.pluginType.split(".").reverse()[0])==null?void 0:g.toLowerCase()}"
|
|
28
|
+
*/var yw="store";function Mt(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function $v(e){return e!==null&&typeof e=="object"}function Ew(e){return e&&typeof e.then=="function"}function Qe(e,t){if(!e)throw new Error("[vuex] "+t)}function bw(e,t){return function(){return e(t)}}function Fv(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 Uv(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;ln(e,r,[],e._modules.root,!0),Du(e,r,t)}function Du(e,t,r){var n=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},l={},u=a.effectScope(!0);u.run(function(){Mt(o,function(c,d){s[d]=bw(c,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=u,e.strict&&Nw(e),n&&r&&e._withCommit(function(){n.data=null}),i&&i.stop()}function ln(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=Pu(t,r.slice(0,-1)),u=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&u in l&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+r.join(".")+'"'),l[u]=n.state})}var c=n.context=Cw(e,s,r);n.forEachMutation(function(d,f){var h=s+f;kw(e,h,d,c)}),n.forEachAction(function(d,f){var h=d.root?f:s+f,m=d.handler||d;Sw(e,h,m,c)}),n.forEachGetter(function(d,f){var h=s+f;ww(e,h,d,c)}),n.forEachChild(function(d,f){ln(e,t,r.concat(f),d,i)})}function Cw(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(o,s,l){var u=Rr(o,s,l),c=u.payload,d=u.options,f=u.type;if((!d||!d.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._actions[f])){console.error("[vuex] unknown local action type: "+u.type+", global type: "+f);return}return e.dispatch(f,c)},commit:n?e.commit:function(o,s,l){var u=Rr(o,s,l),c=u.payload,d=u.options,f=u.type;if((!d||!d.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._mutations[f])){console.error("[vuex] unknown local mutation type: "+u.type+", global type: "+f);return}e.commit(f,c,d)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return Hv(e,t)}},state:{get:function(){return Pu(e.state,r)}}}),i}function Hv(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 kw(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){r.call(e,n.state,s)})}function Sw(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 Ew(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):l})}function ww(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 Nw(e){a.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Qe(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Pu(e,t){return t.reduce(function(r,n){return r[n]},e)}function Rr(e,t,r){return $v(e)&&e.type&&(r=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Qe(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}var Tw="vuex bindings",Gm="vuex:mutations",Bl="vuex:actions",Ut="vuex",Lw=0;function Ow(e,t){Bk({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:[Tw]},function(r){r.addTimelineLayer({id:Gm,label:"Vuex Mutations",color:jm}),r.addTimelineLayer({id:Bl,label:"Vuex Actions",color:jm}),r.addInspector({id:Ut,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===Ut)if(n.filter){var i=[];Wv(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[zv(t._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===Ut){var i=n.nodeId;Hv(t,i),n.state=Rw(Pw(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),r.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===Ut){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(Ut),r.sendInspectorState(Ut),r.addTimelineEvent({layerId:Gm,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=Lw++,n._time=Date.now(),o.state=i,r.addTimelineEvent({layerId:Bl,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:Bl,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:o}})}})})}var jm=8702998,Iw=6710886,Aw=16777215,Gv={label:"namespaced",textColor:Aw,backgroundColor:Iw};function jv(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function zv(e,t){return{id:t||"root",label:jv(t),tags:e.namespaced?[Gv]:[],children:Object.keys(e._children).map(function(r){return zv(e._children[r],t+r+"/")})}}function Wv(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?[Gv]:[]}),Object.keys(t._children).forEach(function(i){Wv(e,t._children[i],r,n+i+"/")})}function Rw(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=Dw(t);i.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?jv(s):s,editable:!1,value:Jl(function(){return o[s]})}})}return i}function Dw(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]=Jl(function(){return e[r]})}else t[r]=Jl(function(){return e[r]})}),t}function Pw(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 Jl(e){try{return e()}catch(t){return t}}var tt=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)||{}},Kv={namespaced:{configurable:!0}};Kv.namespaced.get=function(){return!!this._rawModule.namespaced};tt.prototype.addChild=function(t,r){this._children[t]=r};tt.prototype.removeChild=function(t){delete this._children[t]};tt.prototype.getChild=function(t){return this._children[t]};tt.prototype.hasChild=function(t){return t in this._children};tt.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)};tt.prototype.forEachChild=function(t){Mt(this._children,t)};tt.prototype.forEachGetter=function(t){this._rawModule.getters&&Mt(this._rawModule.getters,t)};tt.prototype.forEachAction=function(t){this._rawModule.actions&&Mt(this._rawModule.actions,t)};tt.prototype.forEachMutation=function(t){this._rawModule.mutations&&Mt(this._rawModule.mutations,t)};Object.defineProperties(tt.prototype,Kv);var qt=function(t){this.register([],t,!1)};qt.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};qt.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};qt.prototype.update=function(t){Yv([],this.root,t)};qt.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&Xv(t,r);var o=new tt(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&&Mt(r.modules,function(l,u){i.register(t.concat(u),l,n)})};qt.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)};qt.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function Yv(e,t,r){if(process.env.NODE_ENV!=="production"&&Xv(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}Yv(e.concat(n),t.getChild(n),r.modules[n])}}var zm={assert:function(e){return typeof e=="function"},expected:"function"},Bw={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Wm={getters:zm,mutations:zm,actions:Bw};function Xv(e,t){Object.keys(Wm).forEach(function(r){if(t[r]){var n=Wm[r];Mt(t[r],function(i,o){Qe(n.assert(i),Vw(e,r,o,i,n.expected))})}})}function Vw(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 ze=function e(t){var r=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(Qe(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Qe(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 qt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,l=this,u=l.dispatch,c=l.commit;this.dispatch=function(h,m){return u.call(s,h,m)},this.commit=function(h,m,C){return c.call(s,h,m,C)},this.strict=i;var d=this._modules.root.state;ln(this,d,[],this._modules.root),Du(this,d),n.forEach(function(f){return f(r)})},Bu={state:{configurable:!0}};ze.prototype.install=function(t,r){t.provide(r||yw,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;n&&Ow(t,this)};Bu.state.get=function(){return this._state.data};Bu.state.set=function(e){process.env.NODE_ENV!=="production"&&Qe(!1,"use store.replaceState() to explicit replace store state.")};ze.prototype.commit=function(t,r,n){var i=this,o=Rr(t,r,n),s=o.type,l=o.payload,u=o.options,c={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(c,i.state)}),process.env.NODE_ENV!=="production"&&u&&u.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")};ze.prototype.dispatch=function(t,r){var n=this,i=Rr(t,r),o=i.type,s=i.payload,l={type:o,payload:s},u=this._actions[o];if(!u){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 c=u.length>1?Promise.all(u.map(function(d){return d(s)})):u[0](s);return new Promise(function(d,f){c.then(function(h){try{n._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(l,n.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(m))}d(h)},function(h){try{n._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(l,n.state,h)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(m))}f(h)})})};ze.prototype.subscribe=function(t,r){return Fv(t,this._subscribers,r)};ze.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return Fv(n,this._actionSubscribers,r)};ze.prototype.watch=function(t,r,n){var i=this;return process.env.NODE_ENV!=="production"&&Qe(typeof t=="function","store.watch only accepts a function."),a.watch(function(){return t(i.state,i.getters)},r,Object.assign({},n))};ze.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};ze.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Qe(Array.isArray(t),"module path must be a string or an Array."),Qe(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,r),ln(this,this.state,t,this._modules.get(t),n.preserveState),Du(this,this.state)};ze.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Qe(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=Pu(r.state,t.slice(0,-1));delete n[t[t.length-1]]}),Uv(this)};ze.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Qe(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};ze.prototype.hotUpdate=function(t){this._modules.update(t),Uv(this,!0)};ze.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(ze.prototype,Bu);var Vu=Jv(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!xu(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Zv(t).forEach(function(n){var i=n.key,o=n.val;r[i]=function(){var l=this.$store.state,u=this.$store.getters;if(e){var c=Qv(this.$store,"mapState",e);if(!c)return;l=c.context.state,u=c.context.getters}return typeof o=="function"?o.call(this,l,u):l[o]},r[i].vuex=!0}),r}),xw=Jv(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!xu(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Zv(t).forEach(function(n){var i=n.key,o=n.val;o=e+o,r[i]=function(){if(!(e&&!Qv(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 Zv(e){return xu(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 xu(e){return Array.isArray(e)||$v(e)}function Jv(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function Qv(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 Mw={class:"icon rounded"},qw={class:"node-content"},$w={class:"d-flex node-title"},Fw={class:"text-truncate task-title"},Uw={key:0,class:"d-flex"},Hw={class:"text-white top-button-div"},Gw={components:{ArrowExpand:sn,InformationOutline:qv,OpenInNew:Ru,Tooltip:fe},emits:[U.EXPAND,U.OPEN_LINK,U.SHOW_LOGS,U.MOUSE_OVER,U.MOUSE_LEAVE,U.ADD_ERROR,U.EDIT,U.DELETE,U.ADD_TASK,U.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(U.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(U.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return Ce},...Vu("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 U},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 Ce.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}}},jw=Object.assign(Gw,{__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",Mw,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.iconComponent||Au),{cls:t.cls,class:a.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),a.createElementVNode("div",qw,[a.createElementVNode("div",$w,[a.createElementVNode("div",Fw,[a.createVNode(fe,{title:t.hoverTooltip},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(a.openBlock(),a.createElementBlock("span",Uw,[a.createVNode(fe,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:a.withCtx(()=>[a.createVNode(qv,{onClick:r[0]||(r[0]=n=>t.$emit(a.unref(U).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",Hw,[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(U).OPEN_LINK,{link:e.data.link}))},[a.createVNode(fe,{title:t.$t("open")},{default:a.withCtx(()=>[a.createVNode(Ru,{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(U).EXPAND))},[a.createVNode(fe,{title:t.$t("expand")},{default:a.withCtx(()=>[a.createVNode(sn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),e_=K(jw,[["__scopeId","data-v-ecb1f5b4"]]),zw=["innerHTML"],Ww=a.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;a.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const r=a.ref(""),n=a.ref();a.onMounted(()=>{l()});const i=a.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),o=a.computed(()=>t.histories[t.histories.length-1]),s=a.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){n.value||(n.value=setInterval(()=>{f(),t.histories&&!Te.isRunning(o.value.state)&&u()},100))}function u(){n.value&&(clearInterval(n.value),n.value=void 0)}function c(){return d()-i.value}function d(){return!t.histories||Te.isRunning(o.value.state)?+new Date:new Date(o.value.date.toString()).getTime()}function f(){r.value=s.value.length===0?" ":Ce.humanDuration(c()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return a.onBeforeUnmount(()=>{u()}),(m,C)=>(a.openBlock(),a.createBlock(fe,{key:o.value.date.toString()},{content:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(y,v)=>(a.openBlock(),a.createElementBlock("span",{key:"tt-"+v,class:"ks-duration-tt"},[a.createElementVNode("span",{class:a.normalizeClass(["ks-duration-tt-square",h(y.state)])},null,2),a.createElementVNode("strong",null,a.toDisplayString(y.state)+": ",1),a.createTextVNode(a.toDisplayString(a.unref(Ce).dateFilter(y.date.toString(),"iso"))+" ",1),C[0]||(C[0]=a.createElementVNode("br",null,null,-1))]))),128))]),default:a.withCtx(()=>[a.createElementVNode("span",{innerHTML:r.value},null,8,zw)]),_:1}))}}),Kw={class:"btn-group content rounded-1 content-children text-truncate"},Yw={key:0,class:"taskRunCount"},Xw={key:1},Zw={key:2},Jw=a.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,r=a.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),n=a.computed(()=>r.value.filter(s=>s.taskId===Ce.afterLastDot(t.uid??""))),i=a.computed(()=>{if(!n.value)return null;if(n.value.length===1)return n.value[0].state.current;const s=n.value.map(c=>c.state.current),l=[Te.FAILED,Te.KILLED,Te.WARNING,Te.KILLING,Te.RUNNING,Te.SUCCESS,Te.RESTARTED,Te.CREATED];return s.map(c=>{const d=l.indexOf(c[1]);return l[d]=void 0,[d,c]}).sort().map(c=>c[1])[0]}),o=a.computed(()=>{if(!n.value)return;const s=Math.max(...n.value.filter(u=>u.state.histories&&u.state.histories.length>0).map(u=>new Date(u.state.histories[u.state.histories.length-1].date).getTime())),l=Math.max(...n.value.map(u=>ir.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:ir(s).subtract(l,"second"),state:"CREATED"},{date:ir(s),state:i.value}]});return(s,l)=>(a.openBlock(),a.createElementBlock("div",Kw,[n.value.length>0?(a.openBlock(),a.createElementBlock("span",Yw,a.toDisplayString(n.value.length)+" task runs",1)):a.createCommentVNode("",!0),n.value.length>0?(a.openBlock(),a.createElementBlock("span",Xw," | ")):a.createCommentVNode("",!0),o.value?(a.openBlock(),a.createElementBlock("span",Zw,[a.createVNode(Ww,{histories:o.value},null,8,["histories"])])):a.createCommentVNode("",!0)]))}}),t_=K(Jw,[["__scopeId","data-v-b7801302"]]),Qw={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eN=["aria-hidden","aria-label"],tN=["fill","width","height"],rN={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"},nN={key:0};function iN(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",rN,[r.title?(a.openBlock(),a.createElementBlock("title",nN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,tN))],16,eN)}const un=K(Qw,[["render",iN]]),aN={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oN=["aria-hidden","aria-label"],sN=["fill","width","height"],lN={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},uN={key:0};function cN(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",lN,[r.title?(a.openBlock(),a.createElementBlock("title",uN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,sN))],16,oN)}const cn=K(aN,[["render",cN]]),dN={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fN=["aria-hidden","aria-label"],hN=["fill","width","height"],pN={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"},mN={key:0};function gN(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",pN,[r.title?(a.openBlock(),a.createElementBlock("title",mN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,hN))],16,fN)}const r_=K(dN,[["render",gN]]),vN={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_N=["aria-hidden","aria-label"],yN=["fill","width","height"],EN={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},bN={key:0};function CN(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",EN,[r.title?(a.openBlock(),a.createElementBlock("title",bN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,yN))],16,_N)}const n_=K(vN,[["render",CN]]),kN={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},SN=["aria-hidden","aria-label"],wN=["fill","width","height"],NN={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"},TN={key:0};function LN(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",NN,[r.title?(a.openBlock(),a.createElementBlock("title",TN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,wN))],16,SN)}const i_=K(kN,[["render",LN]]),ON={name:"Task",components:{Pencil:un,Delete:cn,ExecutionInformations:t_,Handle:te.Handle,TextBoxSearch:r_,AlertOutline:n_,Tooltip:fe,SendLock:i_},inheritAttrs:!1,computed:{...Vu("execution",["execution"]),...xw("execution",["subflowsExecutions"]),SECTIONS(){return ft},EVENTS(){return U},color(){return this.data.color??"primary"},taskId(){return Ce.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===Ce.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=[Te.FAILED,Te.KILLED,Te.WARNING,Te.KILLING,Te.RUNNING,Te.SUCCESS,Te.RESTARTED,Te.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:[U.EXPAND,U.OPEN_LINK,U.SHOW_LOGS,U.MOUSE_OVER,U.MOUSE_LEAVE,U.ADD_ERROR,U.EDIT,U.DELETE,U.ADD_TASK,U.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)}}},IN=Object.assign(ON,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createVNode(e_,{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(U).SHOW_DESCRIPTION,n)),onExpand:r[6]||(r[6]=n=>t.forwardEvent(a.unref(U).EXPAND,t.expandData)),onOpenLink:r[7]||(r[7]=n=>t.forwardEvent(a.unref(U).OPEN_LINK,n)),onMouseover:r[8]||(r[8]=n=>t.forwardEvent(a.unref(U).MOUSE_OVER,n)),onMouseleave:r[9]||(r[9]=n=>t.forwardEvent(a.unref(U).MOUSE_LEAVE))},{content:a.withCtx(()=>[t.taskExecution?(a.openBlock(),a.createBlock(t_,{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&&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(U).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:a.unref(ft).TASKS}))},[a.createVNode(fe,{title:t.$t("show task condition")},{default:a.withCtx(()=>[a.createVNode(i_,{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(U).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[a.createVNode(fe,{title:t.$t("show task logs")},{default:a.withCtx(()=>[a.createVNode(r_,{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(U).ADD_ERROR,{task:e.data.node.task}))},[a.createVNode(fe,{title:t.$t("add error handler")},{default:a.withCtx(()=>[a.createVNode(n_,{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(U).EDIT,{task:e.data.node.task,section:a.unref(ft).TASKS}))},[a.createVNode(fe,{title:t.$t("edit")},{default:a.withCtx(()=>[a.createVNode(un,{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(U).DELETE,{id:t.taskId,section:a.unref(ft).TASKS}))},[a.createVNode(fe,{title:t.$t("delete")},{default:a.withCtx(()=>[a.createVNode(cn,{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(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),AN={name:"Task",inheritAttrs:!1,computed:{...Vu("execution",["execution"]),SECTIONS(){return ft},EVENTS(){return U},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 Ce.afterLastDot(this.id)}},emits:[U.DELETE,U.EDIT,U.SHOW_DESCRIPTION],components:{Delete:cn,Pencil:un,Handle:te.Handle,Tooltip:fe},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)}}},RN=Object.assign(AN,{setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createVNode(e_,{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(U).SHOW_DESCRIPTION,n)),onExpand:r[3]||(r[3]=n=>t.forwardEvent(a.unref(U).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(U).EDIT,{task:e.data.node.triggerDeclaration,section:a.unref(ft).TRIGGERS}))},[a.createVNode(fe,{title:t.$t("edit")},{default:a.withCtx(()=>[a.createVNode(un,{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(U).DELETE,{id:t.triggerId,section:a.unref(ft).TRIGGERS}))},[a.createVNode(fe,{title:t.$t("delete")},{default:a.withCtx(()=>[a.createVNode(cn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),a.createVNode(a.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),DN={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},PN=["aria-hidden","aria-label"],BN=["fill","width","height"],VN={d:"M11 15H6L13 1V9H18L11 23V15Z"},xN={key:0};function MN(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",VN,[r.title?(a.openBlock(),a.createElementBlock("title",xN,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,BN))],16,PN)}const qN=K(DN,[["render",MN]]),$N={class:"collapsed-cluster-node d-flex"},FN={class:"node-text"},UN={class:"text-white top-button-div"},HN={components:{Tooltip:fe,Handle:te.Handle,ArrowExpand:sn,LightningBolt:qN},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 U},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}}},GN=Object.assign(HN,{__name:"CollapsedClusterNode",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),a.createElementVNode("div",$N,[a.createElementVNode("span",FN,[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(Ce).afterLastDot(e.id)),1)]),a.createElementVNode("div",UN,[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(U).EXPAND,{id:e.id}))},[a.createVNode(fe,{title:t.$t("expand")},{default:a.withCtx(()=>[a.createVNode(sn,{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(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),jN=K(GN,[["__scopeId","data-v-89413b39"]]),zN={name:"SplitCellsVerticalIcon",emits:["click"]},WN={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KN(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",WN,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 YN=K(zN,[["render",KN],["__scopeId","data-v-084c51e6"]]),XN={name:"SplitCellsHorizontalIcon",emits:["click"]},ZN={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JN(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",ZN,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 QN=K(XN,[["render",JN],["__scopeId","data-v-c77c1469"]]),eT={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tT=["aria-hidden","aria-label"],rT=["fill","width","height"],nT={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},iT={key:0};function aT(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 download-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",nT,[r.title?(a.openBlock(),a.createElementBlock("title",iT,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,rT))],16,tT)}const oT=K(eT,[["render",aT]]);function sT(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}const lT=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function ht(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}function Dr(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function uT(e){const t=Dr(e,"border-left-width"),r=Dr(e,"border-right-width");return e.clientWidth+t+r}function cT(e){const t=Dr(e,"border-top-width"),r=Dr(e,"border-bottom-width");return e.clientHeight+t+r}function a_(e,t={}){const r=t.width||uT(e),n=t.height||cT(e);return{width:r,height:n}}function dT(){let e,t;try{t=process}catch{}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Ue=16384;function fT(e){(e.width>Ue||e.height>Ue)&&(e.width>Ue&&e.height>Ue?e.width>e.height?(e.height*=Ue/e.width,e.width=Ue):(e.width*=Ue/e.height,e.height=Ue):e.width>Ue?(e.height*=Ue/e.width,e.width=Ue):(e.width*=Ue/e.height,e.height=Ue))}function Pr(e){return new Promise((t,r)=>{const n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function hT(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function pT(e,t,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),hT(i)}const qe=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||qe(r,t)};function mT(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function gT(e){return ht(e).map(t=>{const r=e.getPropertyValue(t),n=e.getPropertyPriority(t);return`${t}: ${r}${n?" !important":""};`}).join(" ")}function vT(e,t,r){const n=`.${e}:${t}`,i=r.cssText?mT(r):gT(r);return document.createTextNode(`${n}{${i}}`)}function Km(e,t,r){const n=window.getComputedStyle(e,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const o=lT();try{t.className=`${t.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(vT(o,r,n)),t.appendChild(s)}function _T(e,t){Km(e,t,":before"),Km(e,t,":after")}const Ym="application/font-woff",Xm="image/jpeg",yT={woff:Ym,woff2:Ym,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Xm,jpeg:Xm,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ET(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Mu(e){const t=ET(e).toLowerCase();return yT[t]||""}function bT(e){return e.split(/,/)[1]}function Ql(e){return e.search(/^(data:)/)!==-1}function CT(e,t){return`data:${t};base64,${e}`}async function o_(e,t,r){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((o,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{o(r({res:n,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(i)})}const Vl={};function kT(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function qu(e,t,r){const n=kT(e,t,r.includeQueryParams);if(Vl[n]!=null)return Vl[n];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const o=await o_(e,r.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),bT(l)));i=CT(o,t)}catch(o){i=r.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;o&&(s=typeof o=="string"?o:o.message),s&&console.warn(s)}return Vl[n]=i,i}async function ST(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Pr(t)}async function wT(e,t){if(e.currentSrc){const o=document.createElement("canvas"),s=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,s==null||s.drawImage(e,0,0,o.width,o.height);const l=o.toDataURL();return Pr(l)}const r=e.poster,n=Mu(r),i=await qu(r,n,t);return Pr(i)}async function NT(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await dn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function TT(e,t){return qe(e,HTMLCanvasElement)?ST(e):qe(e,HTMLVideoElement)?wT(e,t):qe(e,HTMLIFrameElement)?NT(e):e.cloneNode(!1)}const LT=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function OT(e,t,r){var n,i;let o=[];return LT(e)&&e.assignedNodes?o=ht(e.assignedNodes()):qe(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?o=ht(e.contentDocument.body.childNodes):o=ht(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),o.length===0||qe(e,HTMLVideoElement)||await o.reduce((s,l)=>s.then(()=>dn(l,r)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function IT(e,t){const r=t.style;if(!r)return;const n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):ht(n).forEach(i=>{let o=n.getPropertyValue(i);i==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),qe(e,HTMLIFrameElement)&&i==="display"&&o==="inline"&&(o="block"),i==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(i,o,n.getPropertyPriority(i))})}function AT(e,t){qe(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),qe(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function RT(e,t){if(qe(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(i=>e.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function DT(e,t){return qe(t,Element)&&(IT(e,t),_T(e,t),AT(e,t),RT(e,t)),t}async function PT(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const n={};for(let o=0;o<r.length;o++){const l=r[o].getAttribute("xlink:href");if(l){const u=e.querySelector(l),c=document.querySelector(l);!u&&c&&!n[l]&&(n[l]=await dn(c,t,!0))}}const i=Object.values(n);if(i.length){const o="http://www.w3.org/1999/xhtml",s=document.createElementNS(o,"svg");s.setAttribute("xmlns",o),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(o,"defs");s.appendChild(l);for(let u=0;u<i.length;u++)l.appendChild(i[u]);e.appendChild(s)}return e}async function dn(e,t,r){return!r&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>TT(n,t)).then(n=>OT(e,n,t)).then(n=>DT(e,n)).then(n=>PT(n,t))}const s_=/url\((['"]?)([^'"]+?)\1\)/g,BT=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,VT=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function xT(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function MT(e){const t=[];return e.replace(s_,(r,n,i)=>(t.push(i),r)),t.filter(r=>!Ql(r))}async function qT(e,t,r,n,i){try{const o=r?sT(t,r):t,s=Mu(t);let l;return i||(l=await qu(o,s,n)),e.replace(xT(t),`$1${l}$3`)}catch{}return e}function $T(e,{preferredFontFormat:t}){return t?e.replace(VT,r=>{for(;;){const[n,,i]=BT.exec(r)||[];if(!i)return"";if(i===t)return`src: ${n};`}}):e}function l_(e){return e.search(s_)!==-1}async function u_(e,t,r){if(!l_(e))return e;const n=$T(e,r);return MT(n).reduce((o,s)=>o.then(l=>qT(l,s,t,r)),Promise.resolve(n))}async function br(e,t,r){var n;const i=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(i){const o=await u_(i,null,r);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function FT(e,t){await br("background",e,t)||await br("background-image",e,t),await br("mask",e,t)||await br("mask-image",e,t)}async function UT(e,t){const r=qe(e,HTMLImageElement);if(!(r&&!Ql(e.src))&&!(qe(e,SVGImageElement)&&!Ql(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,i=await qu(n,Mu(n),t);await new Promise((o,s)=>{e.onload=o,e.onerror=s;const l=e;l.decode&&(l.decode=o),l.loading==="lazy"&&(l.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}async function HT(e,t){const n=ht(e.childNodes).map(i=>c_(i,t));await Promise.all(n).then(()=>e)}async function c_(e,t){qe(e,Element)&&(await FT(e,t),await UT(e,t),await HT(e,t))}function GT(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(i=>{r[i]=n[i]}),e}const Zm={};async function Jm(e){let t=Zm[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},Zm[e]=t,t}async function Qm(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=(r.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(n,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),o_(l,t.fetchRequestInit,({result:u})=>(r=r.replace(s,`url(${u})`),[s,u]))});return Promise.all(o).then(()=>r)}function eg(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(r,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=i.exec(n);if(u===null)break;t.push(u[0])}n=n.replace(i,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(s,"gi");for(;;){let u=o.exec(n);if(u===null){if(u=l.exec(n),u===null)break;o.lastIndex=l.lastIndex}else l.lastIndex=o.lastIndex;t.push(u[0])}return t}async function jT(e,t){const r=[],n=[];return e.forEach(i=>{if("cssRules"in i)try{ht(i.cssRules||[]).forEach((o,s)=>{if(o.type===CSSRule.IMPORT_RULE){let l=s+1;const u=o.href,c=Jm(u).then(d=>Qm(d,t)).then(d=>eg(d).forEach(f=>{try{i.insertRule(f,f.startsWith("@import")?l+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:f,error:h})}})).catch(d=>{console.error("Error loading remote css",d.toString())});n.push(c)}})}catch(o){const s=e.find(l=>l.href==null)||document.styleSheets[0];i.href!=null&&n.push(Jm(i.href).then(l=>Qm(l,t)).then(l=>eg(l).forEach(u=>{s.insertRule(u,i.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(i=>{if("cssRules"in i)try{ht(i.cssRules||[]).forEach(o=>{r.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${i.href}`,o)}}),r))}function zT(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>l_(t.style.getPropertyValue("src")))}async function WT(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=ht(e.ownerDocument.styleSheets),n=await jT(r,t);return zT(n)}async function KT(e,t){const r=await WT(e,t);return(await Promise.all(r.map(i=>{const o=i.parentStyleSheet?i.parentStyleSheet.href:null;return u_(i.cssText,o,t)}))).join(`
|
|
29
|
+
`)}async function YT(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await KT(e,t);if(r){const n=document.createElement("style"),i=document.createTextNode(r);n.appendChild(i),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function XT(e,t={}){const{width:r,height:n}=a_(e,t),i=await dn(e,t,!0);return await YT(i,t),await c_(i,t),GT(i,t),await pT(i,r,n)}async function d_(e,t={}){const{width:r,height:n}=a_(e,t),i=await XT(e,t),o=await Pr(i),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||dT(),c=t.canvasWidth||r,d=t.canvasHeight||n;return s.width=c*u,s.height=d*u,t.skipAutoScale||fT(s),s.style.width=`${c}`,s.style.height=`${d}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(o,0,0,s.width,s.height),s}async function ZT(e,t={}){return(await d_(e,t)).toDataURL()}async function JT(e,t={}){return(await d_(e,t)).toDataURL("image/jpeg",t.quality||1)}function QT(){const e=a.ref(""),t=a.ref("png"),r=a.ref();async function n(l,u={}){let c;const d=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":c=await i(l,u);break;case"png":c=await o(l,u);break;default:c=await o(l,u);break}return u.shouldDownload&&d!==""&&s(d),c}function i(l,u={quality:.95}){return r.value=null,JT(l,u).then(c=>(e.value=c,t.value="jpeg",c)).catch(c=>{throw c.value=c,new Error(c)})}function o(l,u={quality:.95}){return r.value=null,ZT(l,u).then(c=>(e.value=c,t.value="png",c)).catch(c=>{throw c.value=c,new Error(c)})}function s(l){const u=document.createElement("a");u.download=`${l}.${t.value}`,u.href=e.value,u.click()}return{capture:n,download:s,dataUrl:e,error:r}}const e2={key:1,class:"exporting"},t2=a.defineComponent({__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:[U.EDIT,U.DELETE,U.OPEN_LINK,U.SHOW_LOGS,U.SHOW_DESCRIPTION,"on-add-flowable-error",U.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",U.SHOW_CONDITION],setup(e,{emit:t}){const r=e,n=a.ref(!1),i=a.ref(),{getNodes:o,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:c,setElements:d,vueFlowRef:f}=te.useVueFlow(r.id),h=a.ref({}),m=a.ref([]),C=a.ref(new Set),y=a.ref([]),{capture:v}=QT(),p=t;a.onMounted(()=>{g()}),a.watch(()=>r.flowGraph,()=>{g()}),a.watch(()=>r.isHorizontal,()=>{g()});const g=()=>{Sr.cleanGraph(r.id),a.nextTick(()=>{p("loading",!0);const V=C.value;C.value=new Set,m.value=[],h.value={},V.forEach(X=>L(Ct+X,!1,!1));const R=Sr.generateGraph(r.id,r.flowId,r.namespace,r.flowGraph,r.source,m.value,r.isHorizontal,h.value,C.value,y.value,r.isReadOnly,r.isAllowedEdit,r.enableSubflowInteraction);R&&(d(R),c(),p("loading",!1))})},E=V=>{n.value||Sr.linkedElements(r.id,V.uid).forEach(R=>{(R==null?void 0:R.type)==="task"&&(R.style={...R.style,outline:"0.5px solid "+Ge("--bs-gray-900")},R.class="rounded-3")})},_=()=>{k()},k=()=>{o.value.filter(V=>V.type==="task"||V.type==="trigger").forEach(V=>{V.style={...V.style,opacity:"1",outline:"none"},V.class=""})};l(V=>{n.value=!0,k(),V.node.style={...V.node.style,zIndex:1976},i.value=V.node.position}),u(V=>{if(n.value=!1,V.intersections&&b(V.intersections,V.node)===null){const R=V.node,X=V.intersections.find(G=>G.type==="task");if(X)try{r.source&&p("swapped-task",{newSource:de.swapBlocks({source:r.source,section:"tasks",key1:Ce.afterLastDot(R.id)??"",key2:Ce.afterLastDot(X.id)??""}),swappedTasks:[R.id,X.id]})}catch(G){p("message",{variant:"error",title:"cannot swap tasks",message:`${G.message}, ${G.messageOptions}`}),R.position=i.value}else R.position=i.value}else V.node.position=i.value;k(),V.node.style={...V.node.style,zIndex:5},i.value=null});const w=a.computed(()=>{var V;return(V=r.flowGraph)!=null&&V.clusters?r.flowGraph.clusters.filter(R=>R.cluster.type.endsWith("SubflowGraphCluster")).map(R=>R.cluster.taskNode.uid+"."):[]});s(V=>{k(),o.value.filter(R=>R.id!==V.node.id).forEach(R=>{var X;R.type==="trigger"||R.type==="task"&&(R.id.startsWith(V.node.id+".")||V.node.id.startsWith(R.id+"."))||(X=w==null?void 0:w.value)!=null&&X.some(G=>R.id.startsWith(G))?R.style={...R.style,opacity:"0.5"}:R.style={...R.style,opacity:"1"}}),V.intersections&&!b(V.intersections,V.node)&&V.intersections.filter(R=>R.type==="task").length===1&&(V.intersections.forEach(R=>{R.type==="task"&&(R.style={...R.style,outline:"0.5px solid "+Ge("--bs-primary")},R.class="rounded-3")}),V.node.style={...V.node.style,outline:"0.5px solid "+Ge("--bs-primary")},V.node.class="rounded-3")});const b=(V,R)=>{const X=V.filter(G=>G.type==="task").map(G=>Ce.afterLastDot(G.id));if(X.length>1)return"toomuchtaskerror";try{if(X.length===1&&r.source&&de.isParentChildrenRelation({source:r.source,sections:["tasks","triggers"],key1:Ce.afterLastDot(X[0])??"",key2:Ce.afterLastDot(R.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return V.filter(G=>G.type==="trigger").length>0?"triggererror":null},L=(V,R,X=!1)=>{const G=r.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(V)),F=V.replace(Ct,"");C.value.add(F),m.value=m.value.concat(G.nodes.filter(ne=>ne!==F||X)),m.value=m.value.concat([G.cluster.uid]),h.value={...h.value,[G.cluster.uid]:F,[G.start]:F,[G.end]:F};for(let ne of G.nodes)r.flowGraph.clusters.map(ve=>ve.cluster.uid).includes(ne)&&L(ne,!1,!0);R&&g()},T=V=>{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(V.type)&&!r.expandedSubflows.includes(V.id)){p("expand-subflow",[...r.expandedSubflows,V.id]);return}h.value={},m.value=[],y.value=[],C.value.delete(V.id),C.value.forEach(X=>L(X,!1,!1)),g()},A=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,D=a.ref(!0),$=a.ref(!1),z=()=>$.value=!$.value;function Z(V){if(!f.value){console.warn("Flow not found");return}D.value=!1,v(f.value,{type:V,shouldDownload:!0}).then(()=>D.value=!0).finally(()=>$.value=!1)}return(V,R)=>(a.openBlock(),a.createBlock(a.unref(te.VueFlow),{id:e.id,"default-marker-color":a.unref(Ge)("--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(X=>[a.createVNode(xS,a.mergeProps(X,{onCollapse:R[0]||(R[0]=G=>L(G,!0))}),null,16)]),"node-dot":a.withCtx(X=>[a.createVNode(zS,a.normalizeProps(a.guardReactiveProps(X)),null,16)]),"node-task":a.withCtx(X=>[a.createVNode(IN,a.mergeProps(X,{icons:e.icons,"icon-component":e.iconComponent,onEdit:R[1]||(R[1]=G=>p(a.unref(U).EDIT,G)),onDelete:R[2]||(R[2]=G=>p(a.unref(U).DELETE,G)),onExpand:R[3]||(R[3]=G=>T(G)),onOpenLink:R[4]||(R[4]=G=>p(a.unref(U).OPEN_LINK,G)),onShowLogs:R[5]||(R[5]=G=>p(a.unref(U).SHOW_LOGS,G)),onShowDescription:R[6]||(R[6]=G=>p(a.unref(U).SHOW_DESCRIPTION,G)),onShowCondition:R[7]||(R[7]=G=>p(a.unref(U).SHOW_CONDITION,G)),onMouseover:R[8]||(R[8]=G=>E(G)),onMouseleave:R[9]||(R[9]=G=>_()),onAddError:R[10]||(R[10]=G=>p("on-add-flowable-error",G)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":a.withCtx(X=>[a.createVNode(RN,a.mergeProps(X,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:R[11]||(R[11]=G=>p(a.unref(U).DELETE,G)),onEdit:R[12]||(R[12]=G=>p(a.unref(U).EDIT,G)),onShowDescription:R[13]||(R[13]=G=>p(a.unref(U).SHOW_DESCRIPTION,G))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":a.withCtx(X=>[a.createVNode(jN,a.mergeProps(X,{onExpand:R[14]||(R[14]=G=>T(G))}),null,16)]),"edge-edge":a.withCtx(X=>[a.createVNode(ow,a.mergeProps(X,{"yaml-source":e.source,onAddTask:R[15]||(R[15]=G=>p(a.unref(U).ADD_TASK,G)),"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(NS),{"pattern-color":A?a.unref(Ge)("--bs-grey-500"):a.unref(Ge)("--bs-grey-300")},null,8,["pattern-color"]),D.value?(a.openBlock(),a.createBlock(a.unref(hn.Controls),{key:0,"show-interactive":!1},{default:a.withCtx(()=>[e.toggleOrientationButton?(a.openBlock(),a.createBlock(a.unref(hn.ControlButton),{key:0,onClick:R[16]||(R[16]=X=>p("toggle-orientation",X))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.isHorizontal?QN:YN)))]),_:1})):a.createCommentVNode("",!0),a.createVNode(a.unref(hn.ControlButton),{onClick:z},{default:a.withCtx(()=>[a.createVNode(oT)]),_:1}),$.value?(a.openBlock(),a.createElementBlock("ul",e2,[a.createElementVNode("li",{onClick:R[17]||(R[17]=X=>Z("jpeg")),class:"item"}," Export as .JPEG "),a.createElementVNode("li",{onClick:R[18]||(R[18]=X=>Z("png")),class:"item"}," Export as .PNG ")])):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),r2=K(t2,[["__scopeId","data-v-ecaa6943"]]),n2={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i2=["aria-hidden","aria-label"],a2=["fill","width","height"],o2={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},s2={key:0};function l2(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",o2,[r.title?(a.openBlock(),a.createElementBlock("title",s2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,a2))],16,i2)}const u2=K(n2,[["render",l2]]),c2={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},d2=["aria-hidden","aria-label"],f2=["fill","width","height"],h2={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"},p2={key:0};function m2(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",h2,[r.title?(a.openBlock(),a.createElementBlock("title",p2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,f2))],16,d2)}const g2=K(c2,[["render",m2]]),v2={key:0,class:"language"},_2=["innerHTML"],y2=a.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:a.shallowRef(g2),Check:a.shallowRef(u2)},r=e,n=a.ref(!1),i=a.ref(),o=a.shallowRef(t.ContentCopy.value),s=a.ref(),l=a.ref(),u=a.ref(r.highlighter.codeToHtml(r.code,{lang:r.language,theme:r.theme}));function c(){n.value=!0,i.value&&a.nextTick(()=>{s.value&&l.value&&G_.createPopper(s.value,l.value,{placement:"left"})})}function d(){clearTimeout(i.value),navigator.clipboard.writeText(r.code.trimEnd()),o.value=t.Check.value,i.value=setTimeout(()=>{o.value=t.ContentCopy.value,i.value=void 0},2e3)}return(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"code-block",onMouseover:c,onMouseleave:h[0]||(h[0]=m=>n.value=!1)},[f.language&&!n.value?(a.openBlock(),a.createElementBlock("div",v2,a.toDisplayString(f.language),1)):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{onClick:d}))],512),i.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[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:u.value},null,8,_2)],32))}}),tg=K(y2,[["__scopeId","data-v-43f26c29"]]),E2={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},b2=["aria-hidden","aria-label"],C2=["fill","width","height"],k2={d:"M10,17L15,12L10,7V17Z"},S2={key:0};function w2(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 menu-right-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",k2,[r.title?(a.openBlock(),a.createElementBlock("title",S2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,C2))],16,b2)}const N2=K(E2,[["render",w2]]),T2={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},L2=["aria-hidden","aria-label"],O2=["fill","width","height"],I2={d:"M7,10L12,15L17,10H7Z"},A2={key:0};function R2(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 menu-down-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",I2,[r.title?(a.openBlock(),a.createElementBlock("title",A2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,O2))],16,L2)}const D2=K(T2,[["render",R2]]),P2=["id"],B2=["data-target","aria-controls"],V2={class:"d-flex gap-2 align-items-center"},x2={key:0,class:"d-flex flex-grow-1"},M2=["id"],q2=a.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const r=e,n=a.ref(!r.initiallyExpanded),i=Tr.useRoute(),o=Tr.useRouter(),s=a.computed(()=>`#${r.href}-body`),l=()=>{n.value=!n.value,o.replace({hash:n.value?"":s.value})},u=t;return a.watch(()=>i.hash,c=>{c===s.value&&(n.value=!1,u("expand"))},{immediate:!0}),a.watch(()=>r.initiallyExpanded,c=>{c&&(n.value=!c)},{immediate:!0}),(c,d)=>(a.openBlock(),a.createElementBlock("div",{id:c.href,class:a.normalizeClass(["d-flex flex-column",{"gap-2":!n.value}])},[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:n.value}]),"data-toggle":"collapse","data-target":s.value,"aria-expanded":"false","aria-controls":c.href+"-body"},[a.createElementVNode("span",V2,[c.arrow?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value?N2:D2),{key:0,class:"arrow"})):a.createCommentVNode("",!0),a.createTextVNode(a.toDisplayString(c.clickableText),1),a.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(a.openBlock(),a.createElementBlock("span",x2,[a.renderSlot(c.$slots,"buttonRight",{collapsed:n.value},void 0,!0)])):a.createCommentVNode("",!0)],10,B2),c.$slots.content?(a.openBlock(),a.createElementBlock("div",{key:0,id:c.href+"-body",class:a.normalizeClass(["collapsible-body",{collapsed:n.value}])},[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content",{},void 0,!0)])],10,M2)):a.createCommentVNode("",!0)],10,P2))}}),Br=K(q2,[["__scopeId","data-v-9838d839"]]);function Cr(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function f_(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function $2(e){var t,r;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((r=e.additionalProperties)!=null&&r.enum)return e.additionalProperties.enum}function F2(e){return e.allOf&&(e=e.allOf.reduce((t,r)=>({...t,...r}),{...e}),delete e.allOf),e}function h_(e){const t={},r=Cr(e);return r?t.types=[r]:e.anyOf?t.types=e.anyOf.map(Cr).filter(n=>n!==void 0).filter(Ce.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Cr(e.additionalProperties):e.items&&(t.subType=Cr(e.items)),t}const U2={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},H2=["aria-hidden","aria-label"],G2=["fill","width","height"],j2={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},z2={key:0};function W2(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 chevron-down-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",j2,[r.title?(a.openBlock(),a.createElementBlock("title",z2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,G2))],16,H2)}const K2=K(U2,[["render",W2]]),Y2={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},X2=["aria-hidden","aria-label"],Z2=["fill","width","height"],J2={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},Q2={key:0};function eL(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 eye-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",J2,[r.title?(a.openBlock(),a.createElementBlock("title",Q2,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,Z2))],16,X2)}const p_=K(Y2,[["render",eL]]),tL={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},rL=["aria-hidden","aria-label"],nL=["fill","width","height"],iL={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},aL={key:0};function oL(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 file-document-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",iL,[r.title?(a.openBlock(),a.createElementBlock("title",aL,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,nL))],16,rL)}const sL=K(tL,[["render",oL]]),lL={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uL=["aria-hidden","aria-label"],cL=["fill","width","height"],dL={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},fL={key:0};function hL(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-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",dL,[r.title?(a.openBlock(),a.createElementBlock("title",fL,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,cL))],16,uL)}const m_=K(lL,[["render",hL]]),pL={class:"me-3"},mL={class:"d-flex flex-column"},gL=a.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,r=a.computed(()=>{switch(t.type){case"success":return sL;case"info":return ql;case"warning":return m_;case"danger":return Ml;default:return ql}});return(n,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass("doc-alert alert alert-"+n.type),role:"alert"},[a.createElementVNode("div",pL,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.value),{class:"alert-icon"}))]),a.createElementVNode("div",mL,[a.renderSlot(n.$slots,"default",{},void 0,!0)])],2))}}),vL=K(gL,[["__scopeId","data-v-f7fd8bc1"]]),_L={class:"property-detail"},yL={key:0},EL=["href"],bL={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},CL={class:"ref-type"},kL={key:1,class:"type-box rounded fs-7 px-2 py-1"},SL={key:1},wL={class:"border rounded px-2 py-1"},NL={key:2},TL={class:"border rounded px-2 py-1"},LL={key:3},OL={class:"border rounded px-2 py-1"},IL={key:4},AL={class:"border rounded px-2 py-1"},RL={key:5},DL={class:"border rounded px-2 py-1"},PL={key:6},BL={class:"border rounded px-2 py-1"},VL={key:7},xL={class:"border rounded px-2 py-1"},ML={key:8},qL={class:"border rounded px-2 py-1"},$L={key:9},FL={class:"border rounded px-2 py-1"},UL={key:10},HL={class:"border rounded px-2 py-1"},GL={key:11},jL={class:"border rounded px-2 py-1"},zL={key:12},WL={class:"border rounded px-2 py-1"},KL={key:13},YL={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},XL={key:14},ZL={class:"property-description markdown"},JL={key:2},QL=a.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,r=a.ref(h_(t.property).subType),n=a.ref($2(t.property)),i=o=>o.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(o,s)=>(a.openBlock(),a.createElementBlock("div",_L,[r.value?(a.openBlock(),a.createElementBlock("div",yL,[s[1]||(s[1]=a.createElementVNode("span",null," SubType ",-1)),r.value.startsWith("#")?(a.openBlock(),a.createElementBlock("a",{key:0,href:r.value,onClick:s[0]||(s[0]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("button",bL,[a.createElementVNode("span",CL,a.toDisplayString(a.unref(f_)(r.value)),1),a.createVNode(p_)])],8,EL)):(a.openBlock(),a.createElementBlock("span",kL,a.toDisplayString(r.value),1))])):a.createCommentVNode("",!0),o.property.default!==void 0?(a.openBlock(),a.createElementBlock("div",SL,[s[2]||(s[2]=a.createElementVNode("span",null," Default ",-1)),a.createElementVNode("code",wL,a.toDisplayString(o.property.default),1)])):a.createCommentVNode("",!0),o.property.pattern!==void 0?(a.openBlock(),a.createElementBlock("div",NL,[s[3]||(s[3]=a.createElementVNode("span",null," Validation RegExp ",-1)),a.createElementVNode("code",TL,a.toDisplayString(o.property.pattern),1)])):a.createCommentVNode("",!0),o.property.unit!==void 0&&o.property.unit.trim().length>0?(a.openBlock(),a.createElementBlock("div",LL,[s[4]||(s[4]=a.createElementVNode("span",null," Unit ",-1)),a.createElementVNode("code",OL,a.toDisplayString(o.property.unit),1)])):a.createCommentVNode("",!0),o.property.minLength!==void 0?(a.openBlock(),a.createElementBlock("div",IL,[s[5]||(s[5]=a.createElementVNode("span",null," Min length ",-1)),a.createElementVNode("code",AL,a.toDisplayString(o.property.minLength),1)])):a.createCommentVNode("",!0),o.property.maxLength!==void 0?(a.openBlock(),a.createElementBlock("div",RL,[s[6]||(s[6]=a.createElementVNode("span",null," Max length ",-1)),a.createElementVNode("code",DL,a.toDisplayString(o.property.maxLength),1)])):a.createCommentVNode("",!0),o.property.minItems!==void 0?(a.openBlock(),a.createElementBlock("div",PL,[s[7]||(s[7]=a.createElementVNode("span",null," Min items ",-1)),a.createElementVNode("code",BL,a.toDisplayString(o.property.minItems),1)])):a.createCommentVNode("",!0),o.property.maxItems!==void 0?(a.openBlock(),a.createElementBlock("div",VL,[s[8]||(s[8]=a.createElementVNode("span",null," Max items ",-1)),a.createElementVNode("code",xL,a.toDisplayString(o.property.maxItems),1)])):a.createCommentVNode("",!0),o.property.minimum!==void 0?(a.openBlock(),a.createElementBlock("div",ML,[s[9]||(s[9]=a.createElementVNode("span",null," Minimum ",-1)),a.createElementVNode("code",qL," >= "+a.toDisplayString(o.property.minimum),1)])):a.createCommentVNode("",!0),o.property.exclusiveMinimum!==void 0?(a.openBlock(),a.createElementBlock("div",$L,[s[10]||(s[10]=a.createElementVNode("span",null," Minimum ",-1)),a.createElementVNode("code",FL," > "+a.toDisplayString(o.property.minimum),1)])):a.createCommentVNode("",!0),o.property.maximum!==void 0?(a.openBlock(),a.createElementBlock("div",UL,[s[11]||(s[11]=a.createElementVNode("span",null," Maximum ",-1)),a.createElementVNode("code",HL," <= "+a.toDisplayString(o.property.maximum),1)])):a.createCommentVNode("",!0),o.property.exclusiveMaximum!==void 0?(a.openBlock(),a.createElementBlock("div",GL,[s[12]||(s[12]=a.createElementVNode("span",null," Maximum ",-1)),a.createElementVNode("code",jL," < "+a.toDisplayString(o.property.maximum),1)])):a.createCommentVNode("",!0),o.property.format!==void 0?(a.openBlock(),a.createElementBlock("div",zL,[s[13]||(s[13]=a.createElementVNode("span",null," Format ",-1)),a.createElementVNode("code",WL,a.toDisplayString(o.property.format),1)])):a.createCommentVNode("",!0),n.value!==void 0?(a.openBlock(),a.createElementBlock("div",KL,[s[14]||(s[14]=a.createElementVNode("span",null," Possible Values ",-1)),a.createElementVNode("div",YL,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(l,u)=>(a.openBlock(),a.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},a.toDisplayString(l),1))),128))])])):a.createCommentVNode("",!0),o.property.title!==void 0||o.property.description!==void 0?(a.openBlock(),a.createElementBlock("div",XL,[a.createElementVNode("div",ZL,[o.property.title!==void 0?a.renderSlot(o.$slots,"markdown",{key:0,content:i(o.property.title)},void 0,!0):a.createCommentVNode("",!0),o.property.description!==void 0?a.renderSlot(o.$slots,"markdown",{key:1,content:i(o.property.description)},void 0,!0):a.createCommentVNode("",!0),o.property.$internalStorageURI?(a.openBlock(),a.createElementBlock("div",JL,[a.createVNode(vL,{type:"info"},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]))}}),eO=K(QL,[["__scopeId","data-v-79715a4e"]]),tO={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},rO=["aria-hidden","aria-label"],nO=["fill","width","height"],iO={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},aO={key:0};function oO(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 chevron-up-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",iO,[r.title?(a.openBlock(),a.createElementBlock("title",aO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,nO))],16,rO)}const sO=K(tO,[["render",oO]]),lO={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uO=["aria-hidden","aria-label"],cO=["fill","width","height"],dO={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},fO={key:0};function hO(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 snowflake-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",dO,[r.title?(a.openBlock(),a.createElementBlock("title",fO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,cO))],16,uO)}const pO=K(lO,[["render",hO]]),mO={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gO=["aria-hidden","aria-label"],vO=["fill","width","height"],_O={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},yO={key:0};function EO(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 alpha-b-box-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",_O,[r.title?(a.openBlock(),a.createElementBlock("title",yO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,vO))],16,gO)}const bO=K(mO,[["render",EO]]),CO={class:"border overflow-hidden"},kO={class:"d-flex flex-grow-1 align-items-center justify-content-between"},SO={class:"d-flex gap-2"},wO={class:"d-flex gap-2"},NO=["href"],TO={class:"ref-type"},LO={key:1,class:"type-box rounded fs-7 px-2 py-1"},OO=a.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const r=t,n=a.ref(!1);a.watch(n,s=>{s&&r("expand")});const i=s=>{var l;return console.log("DYNAMIC: "+s.$dynamic),s.$dynamic===!0?!0:s.$dynamic===!1?!1:((l=s.anyOf)==null?void 0:l.some(u=>u.$dynamic===!0))??!1};function o(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=F2(s[f]),s[f].$required?l.push(f):u.push(f));const c=[...l.sort(),...u.sort()],d={};return c.forEach(f=>{d[f]=s[f]}),d}return(s,l)=>(a.openBlock(),a.createBlock(Br,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>r("expand")),"initially-expanded":s.initiallyExpanded||n.value},a.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:a.withCtx(()=>[a.createElementVNode("div",CO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o(s.properties),(u,c)=>(a.openBlock(),a.createBlock(Br,{class:"property",key:c,arrow:!1,"clickable-text":c,href:s.href+"_"+c,onExpand:l[1]||(l[1]=d=>n.value=!0)},{additionalButtonText:a.withCtx(()=>[u.$required?(a.openBlock(),a.createBlock(fe,{key:0,class:"d-flex",title:"Required"},{default:a.withCtx(()=>l[3]||(l[3]=[a.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):a.createCommentVNode("",!0)]),buttonRight:a.withCtx(({collapsed:d})=>[a.createElementVNode("span",kO,[a.createElementVNode("span",SO,[s.showDynamic&&!i(u)?(a.openBlock(),a.createBlock(fe,{key:0,class:"d-flex",title:"Non-dynamic"},{default:a.withCtx(()=>[a.createVNode(pO,{class:"text-info"})]),_:1})):a.createCommentVNode("",!0),u.$beta?(a.openBlock(),a.createBlock(fe,{key:1,class:"d-flex",title:"Beta"},{default:a.withCtx(()=>[a.createVNode(bO,{class:"text-warning"})]),_:1})):a.createCommentVNode("",!0),u.$deprecated?(a.openBlock(),a.createBlock(fe,{key:2,class:"d-flex",title:"Deprecated"},{default:a.withCtx(()=>[a.createVNode(m_,{class:"text-warning"})]),_:1})):a.createCommentVNode("",!0)]),a.createElementVNode("span",wO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h_)(u).types,f=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:f},[f.startsWith("#")?(a.openBlock(),a.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:f,onClick:l[0]||(l[0]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("span",TO,a.toDisplayString(a.unref(f_)(f)),1),a.createVNode(p_)],8,NO)):(a.openBlock(),a.createElementBlock("span",LO,a.toDisplayString(f),1))],64))),128)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d?K2:sO),{class:"arrow"}))])])]),content:a.withCtx(()=>[a.createVNode(eO,{property:u},{markdown:a.withCtx(({content:d})=>[a.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),kr=K(OO,[["__scopeId","data-v-d35592c3"]]),IO={class:"d-flex flex-column gap-6"},AO={key:0,class:"alert alert-info",role:"alert"},RO={key:1,class:"plugin-title markdown"},DO={key:2,class:"markdown"},PO={class:"d-flex flex-column gap-4"},BO={class:"d-flex flex-column gap-3"},VO={class:"markdown"},xO={key:0,class:"w-100 align-self-center"},MO={class:"markdown"},qO={class:"markdown"},$O={class:"markdown"},FO={class:"d-flex flex-column gap-7 ps-3"},UO={class:"markdown"},HO=a.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,r;const n=e,i=a.ref(!1),o=p=>{var g;return p!=null&&p.full?p.code:`id: "${(g=n.pluginType.split(".").reverse()[0])==null?void 0:g.toLowerCase()}"
|
|
30
30
|
type: "${n.pluginType}"
|
|
31
|
-
`.concat(p.code)},s=a.ref(null),l=a.computed(()=>{var p;return(p=n.schema.properties)==null?void 0:p.$examples}),u=a.computed(()=>{var p,g;return Object.fromEntries((g=(p=n.schema.properties)==null?void 0:p.$metrics)==null?void 0:g.map(E=>[E.name,{...E,name:void 0}]))}),{githubLight:c,githubDark:d,yaml:f,python:h,javascript:m,createJavaScriptRegexEngine:C,createHighlighterCore:y}=([t,r]=a.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,r(),t);s.value=([t,r]=a.withAsyncContext(()=>y({themes:[n.darkMode?d:c],langs:[f,h,m],engine:C()})),t=await t,r(),t);const v="github-"+(n.darkMode?"dark":"light");return a.onUnmounted(()=>{var p;return(p=s.value)==null?void 0:p.dispose()}),(p,g)=>{var E,_,k,S,b,L;return a.openBlock(),a.createElementBlock("div",AO,[a.createElementVNode("div",null,[(E=p.schema.properties)!=null&&E.$beta?(a.openBlock(),a.createElementBlock("div",RO,g[1]||(g[1]=[a.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)]))):a.createCommentVNode("",!0),(_=p.schema.properties)!=null&&_.title?(a.openBlock(),a.createElementBlock("div",DO,[a.renderSlot(p.$slots,"markdown",{content:p.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):a.createCommentVNode("",!0),(k=p.schema.properties)!=null&&k.description?(a.openBlock(),a.createElementBlock("div",PO,[a.renderSlot(p.$slots,"markdown",{content:p.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(tg,{highlighter:s.value,language:"yaml",theme:v,code:`type: "${p.pluginType}"`,key:p.pluginType},null,8,["highlighter","code"]))]),(a.openBlock(),a.createElementBlock("div",{class:"d-flex flex-column gap-3",key:p.pluginType},[l.value?(a.openBlock(),a.createBlock(Br,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:a.withCtx(()=>[a.createElementVNode("div",BO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(T,A)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:p.pluginType+"-"+A},[a.createElementVNode("div",VO,[a.createElementVNode("div",xO,[T.title?a.renderSlot(p.$slots,"markdown",{key:0,content:T.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):a.createCommentVNode("",!0)]),T.code?(a.openBlock(),a.createBlock(tg,{key:0,highlighter:s.value,language:T.lang??"yaml",theme:v,code:o(T)},null,8,["highlighter","language","code"])):a.createCommentVNode("",!0)]),A<l.value.length-1?(a.openBlock(),a.createElementBlock("hr",MO)):a.createCommentVNode("",!0)],64))),128))])]),_:3})):a.createCommentVNode("",!0),(S=p.schema.properties)!=null&&S.properties?(a.openBlock(),a.createBlock(kr,{key:1,class:"plugin-section",properties:p.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":p.propsInitiallyExpanded,"show-dynamic":!1},{markdown:a.withCtx(({content:T})=>[a.createElementVNode("div",qO,[a.renderSlot(p.$slots,"markdown",{content:T},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):a.createCommentVNode("",!0),(b=p.schema.outputs)!=null&&b.properties&&Object.keys(p.schema.outputs.properties).length>0?(a.openBlock(),a.createBlock(kr,{key:2,class:"plugin-section",properties:p.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:a.withCtx(({content:T})=>[a.createElementVNode("div",$O,[a.renderSlot(p.$slots,"markdown",{content:T},void 0,!0)])]),_:3},8,["properties"])):a.createCommentVNode("",!0),(L=p.schema.properties)!=null&&L.$metrics?(a.openBlock(),a.createBlock(kr,{key:3,class:"plugin-section",properties:u.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:a.withCtx(({content:T})=>[a.createElementVNode("div",FO,[a.renderSlot(p.$slots,"markdown",{content:T},void 0,!0)])]),_:3},8,["properties"])):a.createCommentVNode("",!0),p.schema.definitions&&Object.keys(p.schema.definitions).length>0?(a.openBlock(),a.createBlock(Br,{key:4,class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":i.value},{content:a.withCtx(()=>[a.createElementVNode("div",UO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Object.entries(p.schema.definitions),([T,A])=>(a.openBlock(),a.createBlock(kr,{properties:A.properties,"section-name":A.title??T.split("_")[0],href:T,"show-dynamic":!1,key:p.pluginType+"-"+T,class:"plugin-section nested-button-py-2",onExpand:g[0]||(g[0]=D=>i.value=!0)},{markdown:a.withCtx(({content:D})=>[a.createElementVNode("div",HO,[a.renderSlot(p.$slots,"markdown",{content:D},void 0,!0)])]),_:2},1032,["properties","section-name","href"]))),128))])]),_:3},8,["initially-expanded"])):a.createCommentVNode("",!0)]))])}}}),jO=K(GO,[["__scopeId","data-v-50726460"]]),zO={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},WO=["aria-hidden","aria-label"],KO=["fill","width","height"],YO={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},XO={key:0};function ZO(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 chevron-right-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",YO,[r.title?(a.openBlock(),a.createElementBlock("title",XO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,KO))],16,WO)}const JO=K(zO,[["render",ZO]]),QO=["href"],eI=["src","alt"],tI=a.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:r}=Tr.useRoute(),n=a.computed(()=>t.href===void 0?`${r}/${It(t.text)}`:t.href);return(i,o)=>(a.openBlock(),a.createElementBlock("a",{href:n.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[a.createElementVNode("img",{src:i.iconB64Svg,alt:`${i.text} icon`},null,8,eI),a.createTextVNode(a.toDisplayString(i.text)+" ",1),a.createVNode(JO,{class:"ms-auto"})],8,QO))}}),rg=K(tI,[["__scopeId","data-v-b787c0f3"]]),rI={class:"d-flex flex-column gap-4"},nI={key:1,class:"d-flex flex-column"},iI=["id"],aI={class:"d-flex flex-column"},oI=a.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,r=a.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:It(Ht(f))===t.subGroup)),n=a.computed(()=>{var f,h;return((f=r.value)==null?void 0:f.longDescription)??((h=r.value)==null?void 0:h.description)}),i=a.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),o=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=Tr.useRoute(),l=f=>`${s}/${It(f)}`,u=f=>`${s}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>ov(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const d=a.computed(()=>c(r.value));return(f,h)=>(a.openBlock(),a.createElementBlock("div",rI,[n.value!==void 0?a.renderSlot(f.$slots,"markdown",{key:0,content:n.value.replaceAll(/ *:(?![ /])/g,": ")}):a.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(a.openBlock(),a.createElementBlock("div",nI,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,m=>(a.openBlock(),a.createBlock(rg,{id:`group-${a.unref(It)(a.unref(Ht)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+f.icons[m.subGroup],text:a.unref(Ht)(m),href:l(a.unref(Ht)(m)),key:a.unref(Ht)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:2},a.renderList(d.value,(m,C)=>(a.openBlock(),a.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[a.createElementVNode("h4",{id:`section-${a.unref(It)(C)}`,class:"text-capitalize"},a.toDisplayString(C),9,iI),a.createElementVNode("div",aI,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,y=>(a.openBlock(),a.createBlock(rg,{id:a.unref(It)(y),"icon-b64-svg":"data:image/svg+xml;base64,"+f.icons[y],text:o(y),href:u(y),key:y,class:"text-capitalize",onClick:v=>f.$emit("goTo",{element:y})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),sI=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,lI=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,uI=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function cI(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){dI(e);return}return t}function dI(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function fI(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!uI.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(sI.test(e)||lI.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,cI)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const hI=/\d/,pI=["-","_","/","."];function mI(e=""){if(!hI.test(e))return e!==e.toLowerCase()}function g_(e,t){const r=pI,n=[];if(!e||typeof e!="string")return n;let i="",o,s;for(const l of e){const u=r.includes(l);if(u===!0){n.push(i),i="",o=void 0;continue}const c=mI(l);if(s===!1){if(o===!1&&c===!0){n.push(i),i=l,o=c;continue}if(o===!0&&c===!1&&i.length>1){const d=i.at(-1);n.push(i.slice(0,Math.max(0,i.length-1))),i=d+l,o=c;continue}}i+=l,o=c,s=u}return n.push(i),n}function gI(e){return e?e[0].toUpperCase()+e.slice(1):""}function v_(e,t){return e?(Array.isArray(e)?e:g_(e)).map(r=>gI(r)).join(""):""}function vI(e,t){return e?(Array.isArray(e)?e:g_(e)).map(r=>r.toLowerCase()).join("-"):""}class pr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}pr.prototype.normal={};pr.prototype.property={};pr.prototype.space=void 0;function __(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new pr(r,n,t)}function eu(e){return e.toLowerCase()}class $e{constructor(t,r){this.attribute=r,this.property=t}}$e.prototype.attribute="";$e.prototype.booleanish=!1;$e.prototype.boolean=!1;$e.prototype.commaOrSpaceSeparated=!1;$e.prototype.commaSeparated=!1;$e.prototype.defined=!1;$e.prototype.mustUseProperty=!1;$e.prototype.number=!1;$e.prototype.overloadedBoolean=!1;$e.prototype.property="";$e.prototype.spaceSeparated=!1;$e.prototype.space=void 0;let _I=0;const J=$t(),Se=$t(),y_=$t(),M=$t(),ge=$t(),jt=$t(),He=$t();function $t(){return 2**++_I}const tu=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:Se,commaOrSpaceSeparated:He,commaSeparated:jt,number:M,overloadedBoolean:y_,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),xl=Object.keys(tu);class $u extends $e{constructor(t,r,n,i){let o=-1;if(super(t,r),ng(this,"space",i),typeof n=="number")for(;++o<xl.length;){const s=xl[o];ng(this,xl[o],(n&tu[s])===tu[s])}}}$u.prototype.defined=!0;function ng(e,t,r){r&&(e[t]=r)}function Qt(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new $u(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[eu(n)]=n,r[eu(o.attribute)]=n}return new pr(t,r,e.space)}const E_=Qt({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:ge,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:M,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:ge,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Se,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function b_(e,t){return t in e?e[t]:t}function C_(e,t){return b_(e,t.toLowerCase())}const yI=Qt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jt,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:ge,autoFocus:J,autoPlay:J,blocking:ge,capture:null,charSet:null,checked:J,cite:null,className:ge,cols:M,colSpan:null,content:null,contentEditable:Se,controls:J,controlsList:ge,coords:M|jt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:y_,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:ge,height:M,hidden:J,high:M,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:ge,itemRef:ge,itemScope:J,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:M,pattern:null,ping:ge,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:ge,required:J,reversed:J,rows:M,rowSpan:M,sandbox:ge,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:Se,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:C_}),EI=Qt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:He,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jt,g2:jt,glyphName:jt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b_}),k_=Qt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),w_=Qt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:C_}),S_=Qt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bI=/[A-Z]/g,ig=/-[a-z]/g,CI=/^data[-\w.:]+$/i;function kI(e,t){const r=eu(t);let n=t,i=$e;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CI.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ig,SI);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ig.test(o)){let s=o.replace(bI,wI);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=$u}return new i(n,t)}function wI(e){return"-"+e.toLowerCase()}function SI(e){return e.charAt(1).toUpperCase()}const NI=__([E_,yI,k_,w_,S_],"html");__([E_,EI,k_,w_,S_],"svg");const Fu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],TI=["p","h1","h2","h3","h4","h5","h6","li"];function Vr(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function Uu(e){return Vr(e,"text")||Vr(e,Symbol.for("v-txt"))}function N_(e){var t;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((t=e.children)==null?void 0:t.default)=="function"?e.children.default():[]}function xr(e){if(!e)return"";if(Array.isArray(e))return e.map(xr).join("");if(Uu(e))return e.value||e.children||"";const t=N_(e);return Array.isArray(t)?t.map(xr).filter(Boolean).join(""):""}function T_(e,t=[]){if(Array.isArray(e))return e.flatMap(n=>T_(n,t));let r=e;return t.some(n=>n==="*"||Vr(e,n))&&(r=N_(e)||e,!Array.isArray(r)&&TI.some(n=>Vr(e,n))&&(r=[r])),r}function L_(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(r=>L_(T_(r,[t[0]]),t.slice(1))).filter(r=>!(Uu(r)&&xr(r).trim()==="")):e}function O_(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(r=>r.trim()).filter(Boolean)),t.length?L_(e,t).reduce((r,n)=>(Uu(n)?typeof r[r.length-1]=="string"?r[r.length-1]+=n.children:r.push(n.children):r.push(n),r),[]):e}function LI(e,t){return t.reduce((r,n)=>{const i=OI(e,n);return i!==void 0&&(r[n]=i),r},{})}function OI(e,t){return t.split(".").reduce((r,n)=>r&&r[n],e)}const ru="default",I_=/^@|^v-on:/,A_=/^:|^v-bind:/,II=/^v-model/,AI=["select","textarea","input"],RI=["math","svg"],DI=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),PI=a.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){var c,d,f,h,m,C,y;const t=(d=(c=a.getCurrentInstance())==null?void 0:c.appContext)==null?void 0:d.app,r=t==null?void 0:t.$nuxt,n=(r==null?void 0:r.$route)||(r==null?void 0:r._route),{mdc:i}=((f=r==null?void 0:r.$config)==null?void 0:f.public)||{},o={...(h=i==null?void 0:i.components)!=null&&h.prose&&e.prose!==!1?DI:{},...((m=i==null?void 0:i.components)==null?void 0:m.map)||{},...a.toRaw(((y=(C=e.data)==null?void 0:C.mdc)==null?void 0:y.components)||{}),...e.components},s=a.computed(()=>{var p;const v=(((p=e.body)==null?void 0:p.children)||[]).map(g=>g.tag||g.type).filter(g=>!Fu.includes(g));return Array.from(new Set(v)).sort().join(".")}),l=a.reactive({...e.data});a.watch(()=>e.data,v=>{Object.assign(l,v)}),await jI(e.body,{tags:o});function u(v,p){const g=v.split(".").length-1;return v.split(".").reduce((E,_,k)=>k==g&&E?(E[_]=p,E[_]):typeof E=="object"?E[_]:void 0,l)}return{tags:o,contentKey:s,route:n,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:r,body:n,data:i,contentKey:o,route:s,unwrap:l,runtimeData:u,updateRuntimeData:c}=e;if(!n)return null;const d={...i,tags:t,$route:s,runtimeData:u,updateRuntimeData:c},f=r!==!1?nu(r||((m=d.component)==null?void 0:m.name)||d.component||"div"):void 0;return f?a.h(f,{...(C=d.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:o},{default:h}):h==null?void 0:h();function h(){const y=R_(n,a.h,{documentMeta:d,parentScope:d,resolveComponent:nu});return y!=null&&y.default?l?O_(y.default(),typeof l=="string"?l.split(" "):["*"]):y.default():null}}});function BI(e,t,r){const{documentMeta:n,parentScope:i,resolveComponent:o}=r;if(e.type==="text")return t(a.Text,e.value);if(e.type==="comment")return t(a.Comment,null,e.value);const s=e.tag,l=P_(e,n.tags);if(e.tag==="binding")return VI(e,t,n,i);const u=D_(l)?f=>f:o;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
31
|
+
`.concat(p.code)},s=a.ref(null),l=a.computed(()=>{var p;return(p=n.schema.properties)==null?void 0:p.$examples}),u=a.computed(()=>{var p,g;return Object.fromEntries((g=(p=n.schema.properties)==null?void 0:p.$metrics)==null?void 0:g.map(E=>[E.name,{...E,name:void 0}]))}),{githubLight:c,githubDark:d,yaml:f,python:h,javascript:m,createJavaScriptRegexEngine:C,createHighlighterCore:y}=([t,r]=a.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,r(),t);s.value=([t,r]=a.withAsyncContext(()=>y({themes:[n.darkMode?d:c],langs:[f,h,m],engine:C()})),t=await t,r(),t);const v="github-"+(n.darkMode?"dark":"light");return a.onUnmounted(()=>{var p;return(p=s.value)==null?void 0:p.dispose()}),(p,g)=>{var E,_,k,w,b,L;return a.openBlock(),a.createElementBlock("div",IO,[a.createElementVNode("div",null,[(E=p.schema.properties)!=null&&E.$beta?(a.openBlock(),a.createElementBlock("div",AO,g[1]||(g[1]=[a.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)]))):a.createCommentVNode("",!0),(_=p.schema.properties)!=null&&_.title?(a.openBlock(),a.createElementBlock("div",RO,[a.renderSlot(p.$slots,"markdown",{content:p.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):a.createCommentVNode("",!0),(k=p.schema.properties)!=null&&k.description?(a.openBlock(),a.createElementBlock("div",DO,[a.renderSlot(p.$slots,"markdown",{content:p.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(tg,{highlighter:s.value,language:"yaml",theme:v,code:`type: "${p.pluginType}"`,key:p.pluginType},null,8,["highlighter","code"]))]),(a.openBlock(),a.createElementBlock("div",{class:"d-flex flex-column gap-3",key:p.pluginType},[l.value?(a.openBlock(),a.createBlock(Br,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:a.withCtx(()=>[a.createElementVNode("div",PO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,(T,A)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:p.pluginType+"-"+A},[a.createElementVNode("div",BO,[a.createElementVNode("div",VO,[T.title?a.renderSlot(p.$slots,"markdown",{key:0,content:T.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):a.createCommentVNode("",!0)]),T.code?(a.openBlock(),a.createBlock(tg,{key:0,highlighter:s.value,language:T.lang??"yaml",theme:v,code:o(T)},null,8,["highlighter","language","code"])):a.createCommentVNode("",!0)]),A<l.value.length-1?(a.openBlock(),a.createElementBlock("hr",xO)):a.createCommentVNode("",!0)],64))),128))])]),_:3})):a.createCommentVNode("",!0),(w=p.schema.properties)!=null&&w.properties?(a.openBlock(),a.createBlock(kr,{key:1,class:"plugin-section",properties:p.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":p.propsInitiallyExpanded},{markdown:a.withCtx(({content:T})=>[a.createElementVNode("div",MO,[a.renderSlot(p.$slots,"markdown",{content:T},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):a.createCommentVNode("",!0),(b=p.schema.outputs)!=null&&b.properties&&Object.keys(p.schema.outputs.properties).length>0?(a.openBlock(),a.createBlock(kr,{key:2,class:"plugin-section",properties:p.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:a.withCtx(({content:T})=>[a.createElementVNode("div",qO,[a.renderSlot(p.$slots,"markdown",{content:T},void 0,!0)])]),_:3},8,["properties"])):a.createCommentVNode("",!0),(L=p.schema.properties)!=null&&L.$metrics?(a.openBlock(),a.createBlock(kr,{key:3,class:"plugin-section",properties:u.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:a.withCtx(({content:T})=>[a.createElementVNode("div",$O,[a.renderSlot(p.$slots,"markdown",{content:T},void 0,!0)])]),_:3},8,["properties"])):a.createCommentVNode("",!0),p.schema.definitions&&Object.keys(p.schema.definitions).length>0?(a.openBlock(),a.createBlock(Br,{key:4,class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":i.value},{content:a.withCtx(()=>[a.createElementVNode("div",FO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Object.entries(p.schema.definitions),([T,A])=>(a.openBlock(),a.createBlock(kr,{properties:A.properties,"section-name":A.title??T.split("_")[0],href:T,"show-dynamic":!1,key:p.pluginType+"-"+T,class:"plugin-section nested-button-py-2",onExpand:g[0]||(g[0]=D=>i.value=!0)},{markdown:a.withCtx(({content:D})=>[a.createElementVNode("div",UO,[a.renderSlot(p.$slots,"markdown",{content:D},void 0,!0)])]),_:2},1032,["properties","section-name","href"]))),128))])]),_:3},8,["initially-expanded"])):a.createCommentVNode("",!0)]))])}}}),GO=K(HO,[["__scopeId","data-v-6459320d"]]),jO={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zO=["aria-hidden","aria-label"],WO=["fill","width","height"],KO={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},YO={key:0};function XO(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 chevron-right-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",KO,[r.title?(a.openBlock(),a.createElementBlock("title",YO,a.toDisplayString(r.title),1)):a.createCommentVNode("",!0)])],8,WO))],16,zO)}const ZO=K(jO,[["render",XO]]),JO=["href"],QO=["src","alt"],eI=a.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:r}=Tr.useRoute(),n=a.computed(()=>t.href===void 0?`${r}/${It(t.text)}`:t.href);return(i,o)=>(a.openBlock(),a.createElementBlock("a",{href:n.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[a.createElementVNode("img",{src:i.iconB64Svg,alt:`${i.text} icon`},null,8,QO),a.createTextVNode(a.toDisplayString(i.text)+" ",1),a.createVNode(ZO,{class:"ms-auto"})],8,JO))}}),rg=K(eI,[["__scopeId","data-v-b787c0f3"]]),tI={class:"d-flex flex-column gap-4"},rI={key:1,class:"d-flex flex-column"},nI=["id"],iI={class:"d-flex flex-column"},aI=a.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,r=a.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:It(Ht(f))===t.subGroup)),n=a.computed(()=>{var f,h;return((f=r.value)==null?void 0:f.longDescription)??((h=r.value)==null?void 0:h.description)}),i=a.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),o=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=Tr.useRoute(),l=f=>`${s}/${It(f)}`,u=f=>`${s}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>ov(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const d=a.computed(()=>c(r.value));return(f,h)=>(a.openBlock(),a.createElementBlock("div",tI,[n.value!==void 0?a.renderSlot(f.$slots,"markdown",{key:0,content:n.value.replaceAll(/ *:(?![ /])/g,": ")}):a.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(a.openBlock(),a.createElementBlock("div",rI,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,m=>(a.openBlock(),a.createBlock(rg,{id:`group-${a.unref(It)(a.unref(Ht)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+f.icons[m.subGroup],text:a.unref(Ht)(m),href:l(a.unref(Ht)(m)),key:a.unref(Ht)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:2},a.renderList(d.value,(m,C)=>(a.openBlock(),a.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[a.createElementVNode("h4",{id:`section-${a.unref(It)(C)}`,class:"text-capitalize"},a.toDisplayString(C),9,nI),a.createElementVNode("div",iI,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m,y=>(a.openBlock(),a.createBlock(rg,{id:a.unref(It)(y),"icon-b64-svg":"data:image/svg+xml;base64,"+f.icons[y],text:o(y),href:u(y),key:y,class:"text-capitalize",onClick:v=>f.$emit("goTo",{element:y})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),oI=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,sI=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,lI=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function uI(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){cI(e);return}return t}function cI(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function dI(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!lI.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(oI.test(e)||sI.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,uI)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const fI=/\d/,hI=["-","_","/","."];function pI(e=""){if(!fI.test(e))return e!==e.toLowerCase()}function g_(e,t){const r=hI,n=[];if(!e||typeof e!="string")return n;let i="",o,s;for(const l of e){const u=r.includes(l);if(u===!0){n.push(i),i="",o=void 0;continue}const c=pI(l);if(s===!1){if(o===!1&&c===!0){n.push(i),i=l,o=c;continue}if(o===!0&&c===!1&&i.length>1){const d=i.at(-1);n.push(i.slice(0,Math.max(0,i.length-1))),i=d+l,o=c;continue}}i+=l,o=c,s=u}return n.push(i),n}function mI(e){return e?e[0].toUpperCase()+e.slice(1):""}function v_(e,t){return e?(Array.isArray(e)?e:g_(e)).map(r=>mI(r)).join(""):""}function gI(e,t){return e?(Array.isArray(e)?e:g_(e)).map(r=>r.toLowerCase()).join("-"):""}class pr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}pr.prototype.normal={};pr.prototype.property={};pr.prototype.space=void 0;function __(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new pr(r,n,t)}function eu(e){return e.toLowerCase()}class $e{constructor(t,r){this.attribute=r,this.property=t}}$e.prototype.attribute="";$e.prototype.booleanish=!1;$e.prototype.boolean=!1;$e.prototype.commaOrSpaceSeparated=!1;$e.prototype.commaSeparated=!1;$e.prototype.defined=!1;$e.prototype.mustUseProperty=!1;$e.prototype.number=!1;$e.prototype.overloadedBoolean=!1;$e.prototype.property="";$e.prototype.spaceSeparated=!1;$e.prototype.space=void 0;let vI=0;const J=$t(),we=$t(),y_=$t(),M=$t(),ge=$t(),jt=$t(),He=$t();function $t(){return 2**++vI}const tu=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:we,commaOrSpaceSeparated:He,commaSeparated:jt,number:M,overloadedBoolean:y_,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),xl=Object.keys(tu);class $u extends $e{constructor(t,r,n,i){let o=-1;if(super(t,r),ng(this,"space",i),typeof n=="number")for(;++o<xl.length;){const s=xl[o];ng(this,xl[o],(n&tu[s])===tu[s])}}}$u.prototype.defined=!0;function ng(e,t,r){r&&(e[t]=r)}function Qt(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new $u(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[eu(n)]=n,r[eu(o.attribute)]=n}return new pr(t,r,e.space)}const E_=Qt({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:we,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:ge,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:M,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:ge,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:we,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function b_(e,t){return t in e?e[t]:t}function C_(e,t){return b_(e,t.toLowerCase())}const _I=Qt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jt,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:ge,autoFocus:J,autoPlay:J,blocking:ge,capture:null,charSet:null,checked:J,cite:null,className:ge,cols:M,colSpan:null,content:null,contentEditable:we,controls:J,controlsList:ge,coords:M|jt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:y_,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:ge,height:M,hidden:J,high:M,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:ge,itemRef:ge,itemScope:J,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:M,pattern:null,ping:ge,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:ge,required:J,reversed:J,rows:M,rowSpan:M,sandbox:ge,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:we,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:C_}),yI=Qt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:He,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jt,g2:jt,glyphName:jt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:b_}),k_=Qt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),S_=Qt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:C_}),w_=Qt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),EI=/[A-Z]/g,ig=/-[a-z]/g,bI=/^data[-\w.:]+$/i;function CI(e,t){const r=eu(t);let n=t,i=$e;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&bI.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ig,SI);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ig.test(o)){let s=o.replace(EI,kI);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=$u}return new i(n,t)}function kI(e){return"-"+e.toLowerCase()}function SI(e){return e.charAt(1).toUpperCase()}const wI=__([E_,_I,k_,S_,w_],"html");__([E_,yI,k_,S_,w_],"svg");const Fu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],NI=["p","h1","h2","h3","h4","h5","h6","li"];function Vr(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function Uu(e){return Vr(e,"text")||Vr(e,Symbol.for("v-txt"))}function N_(e){var t;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((t=e.children)==null?void 0:t.default)=="function"?e.children.default():[]}function xr(e){if(!e)return"";if(Array.isArray(e))return e.map(xr).join("");if(Uu(e))return e.value||e.children||"";const t=N_(e);return Array.isArray(t)?t.map(xr).filter(Boolean).join(""):""}function T_(e,t=[]){if(Array.isArray(e))return e.flatMap(n=>T_(n,t));let r=e;return t.some(n=>n==="*"||Vr(e,n))&&(r=N_(e)||e,!Array.isArray(r)&&NI.some(n=>Vr(e,n))&&(r=[r])),r}function L_(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(r=>L_(T_(r,[t[0]]),t.slice(1))).filter(r=>!(Uu(r)&&xr(r).trim()==="")):e}function O_(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(r=>r.trim()).filter(Boolean)),t.length?L_(e,t).reduce((r,n)=>(Uu(n)?typeof r[r.length-1]=="string"?r[r.length-1]+=n.children:r.push(n.children):r.push(n),r),[]):e}function TI(e,t){return t.reduce((r,n)=>{const i=LI(e,n);return i!==void 0&&(r[n]=i),r},{})}function LI(e,t){return t.split(".").reduce((r,n)=>r&&r[n],e)}const ru="default",I_=/^@|^v-on:/,A_=/^:|^v-bind:/,OI=/^v-model/,II=["select","textarea","input"],AI=["math","svg"],RI=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),DI=a.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){var c,d,f,h,m,C,y;const t=(d=(c=a.getCurrentInstance())==null?void 0:c.appContext)==null?void 0:d.app,r=t==null?void 0:t.$nuxt,n=(r==null?void 0:r.$route)||(r==null?void 0:r._route),{mdc:i}=((f=r==null?void 0:r.$config)==null?void 0:f.public)||{},o={...(h=i==null?void 0:i.components)!=null&&h.prose&&e.prose!==!1?RI:{},...((m=i==null?void 0:i.components)==null?void 0:m.map)||{},...a.toRaw(((y=(C=e.data)==null?void 0:C.mdc)==null?void 0:y.components)||{}),...e.components},s=a.computed(()=>{var p;const v=(((p=e.body)==null?void 0:p.children)||[]).map(g=>g.tag||g.type).filter(g=>!Fu.includes(g));return Array.from(new Set(v)).sort().join(".")}),l=a.reactive({...e.data});a.watch(()=>e.data,v=>{Object.assign(l,v)}),await GI(e.body,{tags:o});function u(v,p){const g=v.split(".").length-1;return v.split(".").reduce((E,_,k)=>k==g&&E?(E[_]=p,E[_]):typeof E=="object"?E[_]:void 0,l)}return{tags:o,contentKey:s,route:n,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:r,body:n,data:i,contentKey:o,route:s,unwrap:l,runtimeData:u,updateRuntimeData:c}=e;if(!n)return null;const d={...i,tags:t,$route:s,runtimeData:u,updateRuntimeData:c},f=r!==!1?nu(r||((m=d.component)==null?void 0:m.name)||d.component||"div"):void 0;return f?a.h(f,{...(C=d.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:o},{default:h}):h==null?void 0:h();function h(){const y=R_(n,a.h,{documentMeta:d,parentScope:d,resolveComponent:nu});return y!=null&&y.default?l?O_(y.default(),typeof l=="string"?l.split(" "):["*"]):y.default():null}}});function PI(e,t,r){const{documentMeta:n,parentScope:i,resolveComponent:o}=r;if(e.type==="text")return t(a.Text,e.value);if(e.type==="comment")return t(a.Comment,null,e.value);const s=e.tag,l=P_(e,n.tags);if(e.tag==="binding")return BI(e,t,n,i);const u=D_(l)?f=>f:o;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
32
32
|
`+xr(e)+`
|
|
33
|
-
<\/script>`);const c=u(l);typeof c=="object"&&(c.tag=s);const d=
|
|
33
|
+
<\/script>`);const c=u(l);typeof c=="object"&&(c.tag=s);const d=VI(e,n);return t(c,d,R_(e,t,{documentMeta:n,parentScope:{...i,...d},resolveComponent:u}))}function R_(e,t,r){const{documentMeta:n,parentScope:i,resolveComponent:o}=r,l=(e.children||[]).reduce((c,d)=>{if(!UI(d))return c[ru].children.push(d),c;const f=FI(d);return c[f]=c[f]||{props:{},children:[]},d.type==="element"&&(c[f].props=d.props,c[f].children.push(...d.children||[])),c},{[ru]:{props:{},children:[]}});return Object.entries(l).reduce((c,[d,{props:f,children:h}])=>(h.length&&(c[d]=(m={})=>{const C=TI(m,Object.keys(f||{}));let y=h.map(v=>PI(v,t,{documentMeta:n,parentScope:{...i,...C},resolveComponent:o}));return f!=null&&f.unwrap&&(y=O_(y,f.unwrap)),HI(y)}),c),{})}function BI(e,t,r,n={}){var c,d;const i={...r.runtimeData,...n,$document:r,$doc:r},o=/\.|\[(\d+)\]/,l=((c=e.props)==null?void 0:c.value.trim().split(o).filter(Boolean)).reduce((f,h)=>{if(f&&h in f)return typeof f[h]=="function"?f[h]():f[h]},i),u=(d=e.props)==null?void 0:d.defaultValue;return t(a.Text,l??u??"")}function VI(e,t){const{tag:r="",props:n={}}=e;return Object.keys(n).reduce(function(i,o){if(o==="__ignoreMap")return i;const s=n[o];if(OI.test(o))return xI(o,s,i,t,{native:II.includes(r)});if(o==="v-bind")return MI(o,s,i,t);if(I_.test(o))return qI(o,s,i,t);if(A_.test(o))return $I(o,s,i,t);const{attribute:l}=CI(wI,o);return Array.isArray(s)&&s.every(u=>typeof u=="string")?(i[l]=s.join(" "),i):(i[l]=s,i)},{})}function xI(e,t,r,n,{native:i}){var u;const o=((u=e.match(/^v-model:([^=]+)/))==null?void 0:u[1])||"modelValue",s=i?"value":o,l=i?"onInput":`onUpdate:${o}`;return r[s]=fn(t,n.runtimeData),r[l]=c=>{var d;n.updateRuntimeData(t,i?(d=c.target)==null?void 0:d.value:c)},r}function MI(e,t,r,n){const i=fn(t,n);return r=Object.assign(r,i),r}function qI(e,t,r,n){return e=e.replace(I_,""),r.on=r.on||{},r.on[e]=()=>fn(t,n),r}function $I(e,t,r,n){return e=e.replace(A_,""),r[e]=fn(t,n),r}const nu=e=>{if(typeof e=="string"){if(Fu.includes(e))return e;const t=a.resolveComponent(v_(e),!1);return!e||(t==null?void 0:t.name)==="AsyncComponentWrapper"||typeof t=="string"?t:"setup"in t?a.defineAsyncComponent(()=>new Promise(r=>r(t))):t}return e};function fn(e,t){const r=e.split(".").reduce((n,i)=>typeof n=="object"?n[i]:void 0,t);return typeof r>"u"?dI(e):r}function FI(e){let t="";for(const r of Object.keys(e.props||{}))if(!(!r.startsWith("#")&&!r.startsWith("v-slot:"))){t=r.split(/[:#]/,2)[1];break}return t||ru}function UI(e){return e.tag==="template"}function D_(e){return AI.includes(e)}function HI(e){const t=[];for(const r of e){const n=t[t.length-1];r.type===a.Text&&(n==null?void 0:n.type)===a.Text?n.children=n.children+r.children:t.push(r)}return t}async function GI(e,t){if(!e)return;const r=Array.from(new Set(n(e,t)));await Promise.all(r.map(async i=>{if(i!=null&&i.render||i!=null&&i.ssrRender||i!=null&&i.__ssrInlineRender)return;const o=nu(i);o!=null&&o.__asyncLoader&&!o.__asyncResolved&&await o.__asyncLoader()}));function n(i,o){const s=i.tag;if(i.type==="text"||s==="binding"||i.type==="comment")return[];const l=P_(i,o.tags);if(D_(l))return[];const u=[];i.type!=="root"&&!Fu.includes(l)&&u.push(l);for(const c of i.children||[])u.push(...n(c,o));return u}}function P_(e,t){var n;const r=e.tag;return!r||typeof((n=e.props)==null?void 0:n.__ignoreMap)<"u"?r:t[r]||t[v_(r)]||t[gI(e.tag)]||r}const jI=a.defineComponent({__name:"MDCRenderer",setup(e){return(t,r)=>(a.openBlock(),a.createBlock(a.Suspense,null,{default:a.withCtx(()=>[a.createVNode(DI,a.mergeProps(t.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=Ct;exports.DependenciesNode=yS;exports.EVENTS=U;exports.MDCRenderer=jI;exports.NODE_SIZES=ct;exports.PluginIndex=aI;exports.SECTIONS=ft;exports.STATES=se;exports.SchemaToHtml=GO;exports.State=Te;exports.TaskIcon=Au;exports.Topology=r2;exports.Utils=Ce;exports.VueFlowUtils=Sr;exports.YamlUtils=J_;exports.cssVariable=Ge;exports.editorViewTypes=W_;exports.executeFlowBehaviours=Y_;exports.getMDCParser=x0;exports.isEntryAPluginElementPredicate=ov;exports.logDisplayTypes=z_;exports.slugify=It;exports.stateDisplayValues=X_;exports.stateGlobalChartTypes=j_;exports.storageKeys=K_;exports.subGroupName=Ht;
|
|
34
34
|
//# sourceMappingURL=kestra-index.cjs.js.map
|