@kestra-io/ui-libs 0.0.206 → 0.0.207
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/kestra-index.cjs.js +7 -7
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +113 -112
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/dist/utils/VueFlowUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/nodes/BasicNode.vue +1 -1
- package/src/utils/VueFlowUtils.ts +1 -0
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Rh=Object.create;var rs=Object.defineProperty;var Dh=Object.getOwnPropertyDescriptor;var Ph=Object.getOwnPropertyNames;var Bh=Object.getPrototypeOf,Vh=Object.prototype.hasOwnProperty;var xh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ph(t))!Vh.call(e,o)&&o!==n&&rs(e,o,{get:()=>t[o],enumerable:!(r=Dh(t,o))||r.enumerable});return e};var Mh=(e,t,n)=>(n=e!=null?Rh(Bh(e)):{},xh(t||!e||!e.__esModule?rs(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("yaml"),L=require("./FlowYamlUtils-DejB6qmY.cjs"),i=require("vue"),$h=require("humanize-duration"),$t=require("moment"),qh=require("moment-timezone"),te=require("@vue-flow/core"),Dn=require("@vue-flow/controls"),Fh=require("@popperjs/core"),on=require("vue-router"),nt={TASKS:"TASKS",TRIGGERS:"TRIGGERS",TASK_RUNNERS:"TASK_RUNNERS"},H={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_",Uh={EXECUTIONS:"executions",TASKRUNS:"taskruns"},Hh={ALL:"all",ERROR:"error",HIDDEN:"hidden",DEFAULT:"all"},et={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},Gh={STORAGE_KEY:"view-type",SOURCE:"source",SOURCE_TOPOLOGY:"source-topology",SOURCE_DOC:"source-doc",TOPOLOGY:"topology",SOURCE_BLUEPRINTS:"source-blueprints"},zh={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"},jh={SAME_TAB:"same tab",NEW_TAB:"new tab"},Wh={INPROGRESS:"IN-PROGRESS"},Kh={lineWidth:0},is=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Yh={stringify:L.stringify,parse:L.parse,pairsToMap:L.pairsToMap,extractTask(e,t){for(const n of is){const r=L.extractBlock({source:e,section:n,key:t});if(r)return r}},_extractTask(e,t,n){function r(a){if(a){if(a instanceof vt.YAMLMap&&a.get("type")!==void 0&&t===a.get("id"))return n?n(a):a;if(a.items)for(const[s,l]of a.items.entries()){let u;if(l instanceof vt.YAMLMap?u=r(l):u=r(l.value),u&&(n&&(a instanceof vt.YAMLMap?a.set(l.key.value,u):a.items[s]=u),!n&&u))return u}}}const o=r(e.contents);if(o!==void 0)return n?new vt.Document(o):new vt.Document(o)},replaceTaskInDocument(e,t,n,r="tasks",o="id"){return L.replaceBlockInDocument({source:e,section:r,keyName:o,key:t,newContent:n})},sort:L.sort,getAllCharts:L.getAllCharts,getChartAtPosition:L.getChartAtPosition,localizeElementAtIndex:L.localizeElementAtIndex,getTaskType:L.getTypeAtPosition,swapTasks(e,t,n){const r=vt.parseDocument(e),o=this._extractTask(r,t),a=this._extractTask(r,n);return vt.visit(r,{Pair(s,l){if(l.key.value==="dependsOn"&&l.value.items.map(u=>u.value).includes(n))throw{message:"dependency task",messageOptions:{taskId:n}}}}),this._extractTask(r,t,()=>a),this._extractTask(r,n,()=>o),r.toString(Kh)},insertTask(e,t,n,r,o){return L.insertBlock({source:e,section:"tasks",newBlock:n,refKey:t,position:r,parentKey:o})},insertSection(e,t,n){return L.insertBlock({source:t,section:e,newBlock:n})},insertErrorInFlowable:L.insertErrorInFlowable,deleteSection(e,t,n){return L.deleteBlock({source:e,section:t,key:n})},deleteTask(e,t,n){return(n===nt.TASKS?["tasks","errors"]:["triggers"]).reduce((o,a)=>L.deleteBlock({source:o,section:a,key:t}),e)},getLastTask(e,t){return L.getLastBlock({source:e,section:"tasks",parentKey:t})},checkTaskAlreadyExist(e,t){return L.checkBlockAlreadyExists({source:e,section:"tasks",newContent:t,keyName:"id"})},isParentChildrenRelation(e,t,n){return L.isParentChildrenRelation({source:e,sections:is,key1:t,key2:n,keyName:"id"})},replaceIdAndNamespace:L.replaceIdAndNamespace,updateMetadata:L.updateMetadata,cleanMetadata:L.cleanMetadata,getMetadata:L.getMetadata,deleteMetadata:L.deleteMetadata,flowHaveTasks:L.flowHaveTasks,extractPluginDefault:L.extractPluginDefault,replacePluginDefaultsInDocument:L.replacePluginDefaultsInDocument,deletePluginDefaults:L.deletePluginDefaults,extractFieldFromMaps:L.extractFieldFromMaps,getVersionAtPosition:L.getVersionAtPosition},Fe=e=>{const t=document.querySelector(":root"),n=t?getComputedStyle(t):null;return n==null?void 0:n.getPropertyValue(e)};var Pn,os;function Xh(){if(os)return Pn;os=1;function e(t){return function(n,r,o){for(var a=-1,s=Object(n),l=o(n),u=l.length;u--;){var c=l[t?u:++a];if(r(s[c],c,s)===!1)break}return n}}return Pn=e,Pn}var Bn,as;function La(){if(as)return Bn;as=1;var e=Xh(),t=e();return Bn=t,Bn}var Vn,ss;function Ta(){if(ss)return Vn;ss=1;var e=La(),t=L.requireKeys();function n(r,o){return r&&e(r,o,t)}return Vn=n,Vn}var xn,ls;function Zh(){if(ls)return xn;ls=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return xn=t,xn}var Mn,us;function Jh(){if(us)return Mn;us=1;function e(t){return this.__data__.has(t)}return Mn=e,Mn}var $n,cs;function _d(){if(cs)return $n;cs=1;var e=L.require_MapCache(),t=Zh(),n=Jh();function r(o){var a=-1,s=o==null?0:o.length;for(this.__data__=new e;++a<s;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,$n=r,$n}var qn,ds;function Qh(){if(ds)return qn;ds=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return qn=e,qn}var Fn,fs;function Ed(){if(fs)return Fn;fs=1;function e(t,n){return t.has(n)}return Fn=e,Fn}var Un,hs;function yd(){if(hs)return Un;hs=1;var e=_d(),t=Qh(),n=Ed(),r=1,o=2;function a(s,l,u,c,d,f){var h=u&r,m=s.length,C=l.length;if(m!=C&&!(h&&C>m))return!1;var E=f.get(s),_=f.get(l);if(E&&_)return E==l&&_==s;var p=-1,v=!0,y=u&o?new e:void 0;for(f.set(s,l),f.set(l,s);++p<m;){var g=s[p],k=l[p];if(c)var N=h?c(k,g,p,l,s,f):c(g,k,p,s,l,f);if(N!==void 0){if(N)continue;v=!1;break}if(y){if(!t(l,function(b,T){if(!n(y,T)&&(g===b||d(g,b,u,c,f)))return y.push(T)})){v=!1;break}}else if(!(g===k||d(g,k,u,c,f))){v=!1;break}}return f.delete(s),f.delete(l),v}return Un=a,Un}var Hn,ms;function em(){if(ms)return Hn;ms=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Hn=e,Hn}var Gn,ps;function Ia(){if(ps)return Gn;ps=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Gn=e,Gn}var zn,gs;function tm(){if(gs)return zn;gs=1;var e=L.require_Symbol(),t=L.require_Uint8Array(),n=L.requireEq(),r=yd(),o=em(),a=Ia(),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]",E="[object String]",_="[object Symbol]",p="[object ArrayBuffer]",v="[object DataView]",y=e?e.prototype:void 0,g=y?y.valueOf:void 0;function k(N,b,T,A,R,F,V){switch(T){case v:if(N.byteLength!=b.byteLength||N.byteOffset!=b.byteOffset)return!1;N=N.buffer,b=b.buffer;case p:return!(N.byteLength!=b.byteLength||!F(new t(N),new t(b)));case u:case c:case h:return n(+N,+b);case d:return N.name==b.name&&N.message==b.message;case m:case E:return N==b+"";case f:var j=o;case C:var Z=A&s;if(j||(j=a),N.size!=b.size&&!Z)return!1;var M=V.get(N);if(M)return M==b;A|=l,V.set(N,b);var D=r(j(N),j(b),A,R,F,V);return V.delete(N),D;case _:if(g)return g.call(N)==g.call(b)}return!1}return zn=k,zn}var jn,vs;function nm(){if(vs)return jn;vs=1;var e=L.require_getAllKeys(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,s,l,u,c,d){var f=l&t,h=e(a),m=h.length,C=e(s),E=C.length;if(m!=E&&!f)return!1;for(var _=m;_--;){var p=h[_];if(!(f?p in s:r.call(s,p)))return!1}var v=d.get(a),y=d.get(s);if(v&&y)return v==s&&y==a;var g=!0;d.set(a,s),d.set(s,a);for(var k=f;++_<m;){p=h[_];var N=a[p],b=s[p];if(u)var T=f?u(b,N,p,s,a,d):u(N,b,p,a,s,d);if(!(T===void 0?N===b||c(N,b,l,u,d):T)){g=!1;break}k||(k=p=="constructor")}if(g&&!k){var A=a.constructor,R=s.constructor;A!=R&&"constructor"in a&&"constructor"in s&&!(typeof A=="function"&&A instanceof A&&typeof R=="function"&&R instanceof R)&&(g=!1)}return d.delete(a),d.delete(s),g}return jn=o,jn}var Wn,_s;function rm(){if(_s)return Wn;_s=1;var e=L.require_Stack(),t=yd(),n=tm(),r=nm(),o=L.require_getTag(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsTypedArray(),u=1,c="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function C(E,_,p,v,y,g){var k=a(E),N=a(_),b=k?d:o(E),T=N?d:o(_);b=b==c?f:b,T=T==c?f:T;var A=b==f,R=T==f,F=b==T;if(F&&s(E)){if(!s(_))return!1;k=!0,A=!1}if(F&&!A)return g||(g=new e),k||l(E)?t(E,_,p,v,y,g):n(E,_,b,p,v,y,g);if(!(p&u)){var V=A&&m.call(E,"__wrapped__"),j=R&&m.call(_,"__wrapped__");if(V||j){var Z=V?E.value():E,M=j?_.value():_;return g||(g=new e),y(Z,M,p,v,g)}}return F?(g||(g=new e),r(E,_,p,v,y,g)):!1}return Wn=C,Wn}var Kn,Es;function bd(){if(Es)return Kn;Es=1;var e=rm(),t=L.requireIsObjectLike();function n(r,o,a,s,l){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,s,n,l)}return Kn=n,Kn}var Yn,ys;function im(){if(ys)return Yn;ys=1;var e=L.require_Stack(),t=bd(),n=1,r=2;function o(a,s,l,u){var c=l.length,d=c,f=!u;if(a==null)return!d;for(a=Object(a);c--;){var h=l[c];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<d;){h=l[c];var m=h[0],C=a[m],E=h[1];if(f&&h[2]){if(C===void 0&&!(m in a))return!1}else{var _=new e;if(u)var p=u(C,E,m,a,s,_);if(!(p===void 0?t(E,C,n|r,u,_):p))return!1}}return!0}return Yn=o,Yn}var Xn,bs;function kd(){if(bs)return Xn;bs=1;var e=L.requireIsObject();function t(n){return n===n&&!e(n)}return Xn=t,Xn}var Zn,ks;function om(){if(ks)return Zn;ks=1;var e=kd(),t=L.requireKeys();function n(r){for(var o=t(r),a=o.length;a--;){var s=o[a],l=r[s];o[a]=[s,l,e(l)]}return o}return Zn=n,Zn}var Jn,Cs;function Cd(){if(Cs)return Jn;Cs=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Jn=e,Jn}var Qn,Ns;function am(){if(Ns)return Qn;Ns=1;var e=im(),t=om(),n=Cd();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===o||e(s,o,a)}}return Qn=r,Qn}var er,ws;function Bt(){if(ws)return er;ws=1;var e=L.require_baseGetTag(),t=L.requireIsObjectLike(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return er=r,er}var tr,Ss;function Oa(){if(Ss)return tr;Ss=1;var e=L.requireIsArray(),t=Bt(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,s){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return tr=o,tr}var nr,Ls;function sm(){if(Ls)return nr;Ls=1;var e=L.require_MapCache(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var s=arguments,l=o?o.apply(this,s):s[0],u=a.cache;if(u.has(l))return u.get(l);var c=r.apply(this,s);return a.cache=u.set(l,c)||u,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,nr=n,nr}var rr,Ts;function lm(){if(Ts)return rr;Ts=1;var e=sm(),t=500;function n(r){var o=e(r,function(s){return a.size===t&&a.clear(),s}),a=o.cache;return o}return rr=n,rr}var ir,Is;function um(){if(Is)return ir;Is=1;var e=lm(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(s,l,u,c){a.push(u?c.replace(n,"$1"):l||s)}),a});return ir=r,ir}var or,Os;function gn(){if(Os)return or;Os=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return or=e,or}var ar,As;function cm(){if(As)return ar;As=1;var e=L.require_Symbol(),t=gn(),n=L.requireIsArray(),r=Bt(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(l){if(typeof l=="string")return l;if(n(l))return t(l,s)+"";if(r(l))return a?a.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return ar=s,ar}var sr,Rs;function Nd(){if(Rs)return sr;Rs=1;var e=cm();function t(n){return n==null?"":e(n)}return sr=t,sr}var lr,Ds;function vn(){if(Ds)return lr;Ds=1;var e=L.requireIsArray(),t=Oa(),n=um(),r=Nd();function o(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return lr=o,lr}var ur,Ps;function Gt(){if(Ps)return ur;Ps=1;var e=Bt();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ur=t,ur}var cr,Bs;function _n(){if(Bs)return cr;Bs=1;var e=vn(),t=Gt();function n(r,o){o=e(o,r);for(var a=0,s=o.length;r!=null&&a<s;)r=r[t(o[a++])];return a&&a==s?r:void 0}return cr=n,cr}var dr,Vs;function dm(){if(Vs)return dr;Vs=1;var e=_n();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return dr=t,dr}var fr,xs;function fm(){if(xs)return fr;xs=1;function e(t,n){return t!=null&&n in Object(t)}return fr=e,fr}var hr,Ms;function wd(){if(Ms)return hr;Ms=1;var e=vn(),t=L.requireIsArguments(),n=L.requireIsArray(),r=L.require_isIndex(),o=L.requireIsLength(),a=Gt();function s(l,u,c){u=e(u,l);for(var d=-1,f=u.length,h=!1;++d<f;){var m=a(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&&o(f)&&r(m,f)&&(n(l)||t(l)))}return hr=s,hr}var mr,$s;function Sd(){if($s)return mr;$s=1;var e=fm(),t=wd();function n(r,o){return r!=null&&t(r,o,e)}return mr=n,mr}var pr,qs;function hm(){if(qs)return pr;qs=1;var e=bd(),t=dm(),n=Sd(),r=Oa(),o=kd(),a=Cd(),s=Gt(),l=1,u=2;function c(d,f){return r(d)&&o(f)?a(s(d),f):function(h){var m=t(h,d);return m===void 0&&m===f?n(h,d):e(f,m,l|u)}}return pr=c,pr}var gr,Fs;function kt(){if(Fs)return gr;Fs=1;function e(t){return t}return gr=e,gr}var vr,Us;function Ld(){if(Us)return vr;Us=1;function e(t){return function(n){return n==null?void 0:n[t]}}return vr=e,vr}var _r,Hs;function mm(){if(Hs)return _r;Hs=1;var e=_n();function t(n){return function(r){return e(r,n)}}return _r=t,_r}var Er,Gs;function pm(){if(Gs)return Er;Gs=1;var e=Ld(),t=mm(),n=Oa(),r=Gt();function o(a){return n(a)?e(r(a)):t(a)}return Er=o,Er}var yr,zs;function ot(){if(zs)return yr;zs=1;var e=am(),t=hm(),n=kt(),r=L.requireIsArray(),o=pm();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return yr=a,yr}var br,js;function Td(){if(js)return br;js=1;var e=L.require_baseAssignValue(),t=Ta(),n=ot();function r(o,a){var s={};return a=n(a,3),t(o,function(l,u,c){e(s,u,a(l,u,c))}),s}return br=r,br}var gm=Td();const Wt=L.getDefaultExportFromCjs(gm),K=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},vm={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_m=["aria-hidden","aria-label"],Em=["fill","width","height"],ym={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"},bm={key:0};function km(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ym,[n.title?(i.openBlock(),i.createElementBlock("title",bm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Em))],16,_m)}const Cm=K(vm,[["render",km]]),Nm={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wm=["aria-hidden","aria-label"],Sm=["fill","width","height"],Lm={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"},Tm={key:0};function Im(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lm,[n.title?(i.openBlock(),i.createElementBlock("title",Tm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sm))],16,wm)}const Om=K(Nm,[["render",Im]]),Am={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],Dm=["fill","width","height"],Pm={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"},Bm={key:0};function Vm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon play-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pm,[n.title?(i.openBlock(),i.createElementBlock("title",Bm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Dm))],16,Rm)}const xm=K(Am,[["render",Vm]]),Mm={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$m=["aria-hidden","aria-label"],qm=["fill","width","height"],Fm={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"},Um={key:0};function Hm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon close-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Fm,[n.title?(i.openBlock(),i.createElementBlock("title",Um,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,qm))],16,$m)}const sa=K(Mm,[["render",Hm]]),Gm={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zm=["aria-hidden","aria-label"],jm=["fill","width","height"],Wm={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"},Km={key:0};function Ym(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Wm,[n.title?(i.openBlock(),i.createElementBlock("title",Km,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,jm))],16,zm)}const Xm=K(Gm,[["render",Ym]]),Zm={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jm=["aria-hidden","aria-label"],Qm=["fill","width","height"],ep={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"},tp={key:0};function np(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ep,[n.title?(i.openBlock(),i.createElementBlock("title",tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qm))],16,Jm)}const rp=K(Zm,[["render",np]]),ip={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},op=["aria-hidden","aria-label"],ap=["fill","width","height"],sp={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"},lp={key:0};function up(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",sp,[n.title?(i.openBlock(),i.createElementBlock("title",lp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ap))],16,op)}const la=K(ip,[["render",up]]),cp={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dp=["aria-hidden","aria-label"],fp=["fill","width","height"],hp={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"},mp={key:0};function pp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",hp,[n.title?(i.openBlock(),i.createElementBlock("title",mp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,fp))],16,dp)}const gp=K(cp,[["render",pp]]),vp={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Ep=["fill","width","height"],yp={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"},bp={key:0};function kp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",yp,[n.title?(i.openBlock(),i.createElementBlock("title",bp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Ep))],16,_p)}const Cp=K(vp,[["render",kp]]),Np={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wp=["aria-hidden","aria-label"],Sp=["fill","width","height"],Lp={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"},Tp={key:0};function Ip(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon refresh-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lp,[n.title?(i.openBlock(),i.createElementBlock("title",Tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sp))],16,wp)}const Ws=K(Np,[["render",Ip]]),Op={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ap=["aria-hidden","aria-label"],Rp=["fill","width","height"],Dp={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"},Pp={key:0};function Bp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon cancel-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Dp,[n.title?(i.openBlock(),i.createElementBlock("title",Pp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Rp))],16,Ap)}const Ks=K(Op,[["render",Bp]]),re=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:gp,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:rp,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Om,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:xm,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:sa,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:Xm,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:la,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:sa,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Cm,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:Cp,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:Ws,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:Ws,isRunning:!1,isKillable:!1,isFailed:!1}});class Ce{static get CREATED(){return re.CREATED.name}static get RESTARTED(){return re.RESTARTED.name}static get SUCCESS(){return re.SUCCESS.name}static get RUNNING(){return re.RUNNING.name}static get KILLING(){return re.KILLING.name}static get KILLED(){return re.KILLED.name}static get FAILED(){return re.FAILED.name}static get WARNING(){return re.WARNING.name}static get PAUSED(){return re.PAUSED.name}static get CANCELLED(){return re.CANCELLED.name}static get QUEUED(){return re.QUEUED.name}static get RETRYING(){return re.RETRYING.name}static get RETRIED(){return re.RETRIED.name}static isRunning(t){return re[t]&&re[t].isRunning}static isKillable(t){return re[t]&&re[t].isKillable}static isPaused(t){return re[t]&&re[t]===re.PAUSED}static isFailed(t){return re[t]&&re[t].isFailed}static isQueued(t){return re[t]&&re[t]===re.QUEUED}static allStates(){return Wt(re,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(re)}static colorClass(){return Wt(re,t=>t.colorClass)}static color(){return Wt(re,t=>Fe("--bs-"+t.colorClass))}static getStateColor(t){return re[t].color}static icon(){return Wt(re,t=>t.icon)}static getTerminatedStates(){return Object.values(re).filter(t=>!t.isRunning).map(t=>t.name)}}const Vp={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"}},xp="dateFormat",Mp="timezone",ge={capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),dateFilter:(e,t)=>{var a,s;const n=(a=i.getCurrentInstance())==null?void 0:a.appContext.config.globalProperties.$moment().locale(),r=(s=i.getCurrentInstance())==null?void 0:s.appContext.config.globalProperties.$moment(e).locale(n);let o;return t==="iso"?o="YYYY-MM-DD HH:mm:ss.SSS":o=t??localStorage.getItem(xp)??"llll",r.tz(localStorage.getItem(Mp)??qh.tz.guess()).format(o)},splitFirst(e,t){return e.split(t).slice(1).join(t)},duration(e){return $t.duration(e,$t.ISO_8601).asMilliseconds()/1e3},humanDuration(e,t){return t=t||{maxDecimalPoints:2},t.spacer="",t.language=localStorage.getItem("lang")||"en",t.languages=Vp,t.largest=2,typeof e!="number"&&(e=this.duration(e)),$h(e*1e3,t).replace(/\.([0-9])s$/i,".$10s")},afterLastDot(e){return e.split(".").pop()},distinctFilter(e,t,n){return n.indexOf(e)===t}};function Aa(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 kr,Ys;function $p(){if(Ys)return kr;Ys=1;var e=L.require_baseClone(),t=4;function n(r){return e(r,t)}return kr=n,kr}var Cr,Xs;function Ra(){if(Xs)return Cr;Xs=1;function e(t){return function(){return t}}return Cr=e,Cr}var Nr,Zs;function qp(){if(Zs)return Nr;Zs=1;var e=L.requireIsArrayLike();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var s=o.length,l=r?s:-1,u=Object(o);(r?l--:++l<s)&&a(u[l],l,u)!==!1;);return o}}return Nr=t,Nr}var wr,Js;function En(){if(Js)return wr;Js=1;var e=Ta(),t=qp(),n=t(e);return wr=n,wr}var Sr,Qs;function Id(){if(Qs)return Sr;Qs=1;var e=kt();function t(n){return typeof n=="function"?n:e}return Sr=t,Sr}var Lr,el;function Od(){if(el)return Lr;el=1;var e=L.require_arrayEach(),t=En(),n=Id(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s))}return Lr=o,Lr}var Tr,tl;function Ad(){return tl||(tl=1,Tr=Od()),Tr}var Ir,nl;function Fp(){if(nl)return Ir;nl=1;var e=En();function t(n,r){var o=[];return e(n,function(a,s,l){r(a,s,l)&&o.push(a)}),o}return Ir=t,Ir}var Or,rl;function Rd(){if(rl)return Or;rl=1;var e=L.require_arrayFilter(),t=Fp(),n=ot(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s,3))}return Or=o,Or}var Ar,il;function Up(){if(il)return Ar;il=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,o){return r!=null&&t.call(r,o)}return Ar=n,Ar}var Rr,ol;function Dd(){if(ol)return Rr;ol=1;var e=Up(),t=wd();function n(r,o){return r!=null&&t(r,o,e)}return Rr=n,Rr}var Dr,al;function Hp(){if(al)return Dr;al=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArguments(),r=L.requireIsArray(),o=L.requireIsArrayLike(),a=L.requireIsBuffer(),s=L.require_isPrototype(),l=L.requireIsTypedArray(),u="[object Map]",c="[object Set]",d=Object.prototype,f=d.hasOwnProperty;function h(m){if(m==null)return!0;if(o(m)&&(r(m)||typeof m=="string"||typeof m.splice=="function"||a(m)||l(m)||n(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 E in m)if(f.call(m,E))return!1;return!0}return Dr=h,Dr}var Pr,sl;function Pd(){if(sl)return Pr;sl=1;function e(t){return t===void 0}return Pr=e,Pr}var Br,ll;function Bd(){if(ll)return Br;ll=1;var e=En(),t=L.requireIsArrayLike();function n(r,o){var a=-1,s=t(r)?Array(r.length):[];return e(r,function(l,u,c){s[++a]=o(l,u,c)}),s}return Br=n,Br}var Vr,ul;function Vd(){if(ul)return Vr;ul=1;var e=gn(),t=ot(),n=Bd(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:n;return l(a,t(s,3))}return Vr=o,Vr}var xr,cl;function Gp(){if(cl)return xr;cl=1;function e(t,n,r,o){var a=-1,s=t==null?0:t.length;for(o&&s&&(r=t[++a]);++a<s;)r=n(r,t[a],a,t);return r}return xr=e,xr}var Mr,dl;function zp(){if(dl)return Mr;dl=1;function e(t,n,r,o,a){return a(t,function(s,l,u){r=o?(o=!1,s):n(r,s,l,u)}),r}return Mr=e,Mr}var $r,fl;function xd(){if(fl)return $r;fl=1;var e=Gp(),t=En(),n=ot(),r=zp(),o=L.requireIsArray();function a(s,l,u){var c=o(s)?e:r,d=arguments.length<3;return c(s,n(l,4),u,d,t)}return $r=a,$r}var qr,hl;function jp(){if(hl)return qr;hl=1;var e=L.require_baseGetTag(),t=L.requireIsArray(),n=L.requireIsObjectLike(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return qr=o,qr}var Fr,ml;function Wp(){if(ml)return Fr;ml=1;var e=Ld(),t=e("length");return Fr=t,Fr}var Ur,pl;function Kp(){if(pl)return Ur;pl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+e+o+a+"]");function u(c){return l.test(c)}return Ur=u,Ur}var Hr,gl;function Yp(){if(gl)return Hr;gl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",l="["+o+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+u+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",C=c+"?",E="["+a+"]?",_="(?:"+m+"(?:"+[d,f,h].join("|")+")"+E+C+")*",p=E+C+_,v="(?:"+[d+l+"?",l,f,h,s].join("|")+")",y=RegExp(u+"(?="+u+")|"+v+p,"g");function g(k){for(var N=y.lastIndex=0;y.test(k);)++N;return N}return Hr=g,Hr}var Gr,vl;function Xp(){if(vl)return Gr;vl=1;var e=Wp(),t=Kp(),n=Yp();function r(o){return t(o)?n(o):e(o)}return Gr=r,Gr}var zr,_l;function Zp(){if(_l)return zr;_l=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArrayLike(),r=jp(),o=Xp(),a="[object Map]",s="[object Set]";function l(u){if(u==null)return 0;if(n(u))return r(u)?o(u):u.length;var c=t(u);return c==a||c==s?u.size:e(u).length}return zr=l,zr}var jr,El;function Jp(){if(El)return jr;El=1;var e=L.require_arrayEach(),t=L.require_baseCreate(),n=Ta(),r=ot(),o=L.require_getPrototype(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsFunction(),u=L.requireIsObject(),c=L.requireIsTypedArray();function d(f,h,m){var C=a(f),E=C||s(f)||c(f);if(h=r(h,4),m==null){var _=f&&f.constructor;E?m=C?new _:[]:u(f)?m=l(_)?t(o(f)):{}:m={}}return(E?e:n)(f,function(p,v,y){return h(m,p,v,y)}),m}return jr=d,jr}var Wr,yl;function Qp(){if(yl)return Wr;yl=1;var e=L.require_Symbol(),t=L.requireIsArguments(),n=L.requireIsArray(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Wr=o,Wr}var Kr,bl;function Da(){if(bl)return Kr;bl=1;var e=L.require_arrayPush(),t=Qp();function n(r,o,a,s,l){var u=-1,c=r.length;for(a||(a=t),l||(l=[]);++u<c;){var d=r[u];o>0&&a(d)?o>1?n(d,o-1,a,s,l):e(l,d):s||(l[l.length]=d)}return l}return Kr=n,Kr}var Yr,kl;function eg(){if(kl)return Yr;kl=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Yr=e,Yr}var Xr,Cl;function Md(){if(Cl)return Xr;Cl=1;var e=eg(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,l=-1,u=t(s.length-o,0),c=Array(u);++l<u;)c[l]=s[o+l];l=-1;for(var d=Array(o+1);++l<o;)d[l]=s[l];return d[o]=a(c),e(r,this,d)}}return Xr=n,Xr}var Zr,Nl;function tg(){if(Nl)return Zr;Nl=1;var e=Ra(),t=L.require_defineProperty(),n=kt(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return Zr=r,Zr}var Jr,wl;function ng(){if(wl)return Jr;wl=1;var e=800,t=16,n=Date.now;function r(o){var a=0,s=0;return function(){var l=n(),u=t-(l-s);if(s=l,u>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Jr=r,Jr}var Qr,Sl;function $d(){if(Sl)return Qr;Sl=1;var e=tg(),t=ng(),n=t(e);return Qr=n,Qr}var ei,Ll;function yn(){if(Ll)return ei;Ll=1;var e=kt(),t=Md(),n=$d();function r(o,a){return n(t(o,a,e),o+"")}return ei=r,ei}var ti,Tl;function qd(){if(Tl)return ti;Tl=1;function e(t,n,r,o){for(var a=t.length,s=r+(o?1:-1);o?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return ti=e,ti}var ni,Il;function rg(){if(Il)return ni;Il=1;function e(t){return t!==t}return ni=e,ni}var ri,Ol;function ig(){if(Ol)return ri;Ol=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return ri=e,ri}var ii,Al;function og(){if(Al)return ii;Al=1;var e=qd(),t=rg(),n=ig();function r(o,a,s){return a===a?n(o,a,s):e(o,t,s)}return ii=r,ii}var oi,Rl;function ag(){if(Rl)return oi;Rl=1;var e=og();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return oi=t,oi}var ai,Dl;function sg(){if(Dl)return ai;Dl=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return ai=e,ai}var si,Pl;function lg(){if(Pl)return si;Pl=1;function e(){}return si=e,si}var li,Bl;function ug(){if(Bl)return li;Bl=1;var e=L.require_Set(),t=lg(),n=Ia(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return li=o,li}var ui,Vl;function cg(){if(Vl)return ui;Vl=1;var e=_d(),t=ag(),n=sg(),r=Ed(),o=ug(),a=Ia(),s=200;function l(u,c,d){var f=-1,h=t,m=u.length,C=!0,E=[],_=E;if(d)C=!1,h=n;else if(m>=s){var p=c?null:o(u);if(p)return a(p);C=!1,h=r,_=new e}else _=c?[]:E;e:for(;++f<m;){var v=u[f],y=c?c(v):v;if(v=d||v!==0?v:0,C&&y===y){for(var g=_.length;g--;)if(_[g]===y)continue e;c&&_.push(y),E.push(v)}else h(_,y,d)||(_!==E&&_.push(y),E.push(v))}return E}return ui=l,ui}var ci,xl;function Fd(){if(xl)return ci;xl=1;var e=L.requireIsArrayLike(),t=L.requireIsObjectLike();function n(r){return t(r)&&e(r)}return ci=n,ci}var di,Ml;function dg(){if(Ml)return di;Ml=1;var e=Da(),t=yn(),n=cg(),r=Fd(),o=t(function(a){return n(e(a,1,r,!0))});return di=o,di}var fi,$l;function fg(){if($l)return fi;$l=1;var e=gn();function t(n,r){return e(r,function(o){return n[o]})}return fi=t,fi}var hi,ql;function Ud(){if(ql)return hi;ql=1;var e=fg(),t=L.requireKeys();function n(r){return r==null?[]:e(r,t(r))}return hi=n,hi}var mi,Fl;function ze(){if(Fl)return mi;Fl=1;var e;if(typeof Aa=="function")try{e={clone:$p(),constant:Ra(),each:Ad(),filter:Rd(),has:Dd(),isArray:L.requireIsArray(),isEmpty:Hp(),isFunction:L.requireIsFunction(),isUndefined:Pd(),keys:L.requireKeys(),map:Vd(),reduce:xd(),size:Zp(),transform:Jp(),union:dg(),values:Ud()}}catch{}return e||(e=window._),mi=e,mi}var pi,Ul;function Pa(){if(Ul)return pi;Ul=1;var e=ze();pi=o;var t="\0",n="\0",r="";function o(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[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(d){return this._label=d,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(d){return e.isFunction(d)||(d=e.constant(d)),this._defaultNodeLabelFn=d,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return e.keys(this._nodes)},o.prototype.sources=function(){var d=this;return e.filter(this.nodes(),function(f){return e.isEmpty(d._in[f])})},o.prototype.sinks=function(){var d=this;return e.filter(this.nodes(),function(f){return e.isEmpty(d._out[f])})},o.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},o.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]=n,this._children[d]={},this._children[n][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)},o.prototype.node=function(d){return this._nodes[d]},o.prototype.hasNode=function(d){return e.has(this._nodes,d)},o.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},o.prototype.setParent=function(d,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=n;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},o.prototype._removeFromParentsChildList=function(d){delete this._children[this._parent[d]][d]},o.prototype.parent=function(d){if(this._isCompound){var f=this._parent[d];if(f!==n)return f}},o.prototype.children=function(d){if(e.isUndefined(d)&&(d=n),this._isCompound){var f=this._children[d];if(f)return e.keys(f)}else{if(d===n)return this.nodes();if(this.hasNode(d))return[]}},o.prototype.predecessors=function(d){var f=this._preds[d];if(f)return e.keys(f)},o.prototype.successors=function(d){var f=this._sucs[d];if(f)return e.keys(f)},o.prototype.neighbors=function(d){var f=this.predecessors(d);if(f)return e.union(f,this.successors(d))},o.prototype.isLeaf=function(d){var f;return this.isDirected()?f=this.successors(d):f=this.neighbors(d),f.length===0},o.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(E,_){d(_)&&f.setNode(_,E)}),e.each(this._edgeObjs,function(E){f.hasNode(E.v)&&f.hasNode(E.w)&&f.setEdge(E,h.edge(E))});var m={};function C(E){var _=h.parent(E);return _===void 0||f.hasNode(_)?(m[E]=_,_):_ in m?m[_]:C(_)}return this._isCompound&&e.each(f.nodes(),function(E){f.setParent(E,C(E))}),f},o.prototype.setDefaultEdgeLabel=function(d){return e.isFunction(d)||(d=e.constant(d)),this._defaultEdgeLabelFn=d,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(d,f){var h=this,m=arguments;return e.reduce(d,function(C,E){return m.length>1?h.setEdge(C,E,f):h.setEdge(C,E),E}),this},o.prototype.setEdge=function(){var d,f,h,m,C=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(d=E.v,f=E.w,h=E.name,arguments.length===2&&(m=arguments[1],C=!0)):(d=E,f=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],C=!0)),d=""+d,f=""+f,e.isUndefined(h)||(h=""+h);var _=l(this._isDirected,d,f,h);if(e.has(this._edgeLabels,_))return C&&(this._edgeLabels[_]=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[_]=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[_]=p,a(this._preds[f],d),a(this._sucs[d],f),this._in[f][_]=p,this._out[d][_]=p,this._edgeCount++,this},o.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]},o.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)},o.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},o.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}},o.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}},o.prototype.nodeEdges=function(d,f){var h=this.inEdges(d,f);if(h)return h.concat(this.outEdges(d,f))};function a(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,E=""+h;if(!d&&C>E){var _=C;C=E,E=_}return C+r+E+r+(e.isUndefined(m)?t:m)}function u(d,f,h,m){var C=""+f,E=""+h;if(!d&&C>E){var _=C;C=E,E=_}var p={v:C,w:E};return m&&(p.name=m),p}function c(d,f){return l(d,f.v,f.w,f.name)}return pi}var gi,Hl;function hg(){return Hl||(Hl=1,gi="2.1.8"),gi}var vi,Gl;function mg(){return Gl||(Gl=1,vi={Graph:Pa(),version:hg()}),vi}var _i,zl;function pg(){if(zl)return _i;zl=1;var e=ze(),t=Pa();_i={write:n,read:a};function n(s){var l={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:r(s),edges:o(s)};return e.isUndefined(s.graph())||(l.value=e.clone(s.graph())),l}function r(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 o(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 a(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 _i}var Ei,jl;function gg(){if(jl)return Ei;jl=1;var e=ze();Ei=t;function t(n){var r={},o=[],a;function s(l){e.has(r,l)||(r[l]=!0,a.push(l),e.each(n.successors(l),s),e.each(n.predecessors(l),s))}return e.each(n.nodes(),function(l){a=[],s(l),a.length&&o.push(a)}),o}return Ei}var yi,Wl;function Hd(){if(Wl)return yi;Wl=1;var e=ze();yi=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(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var o=this._keyIndices;if(n=String(n),!e.has(o,n)){var a=this._arr,s=a.length;return o[n]=s,a.push({key:n,priority:r}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var o=this._keyIndices[n];if(r>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[o].priority+" New: "+r);this._arr[o].priority=r,this._decrease(o)},t.prototype._heapify=function(n){var r=this._arr,o=2*n,a=o+1,s=n;o<r.length&&(s=r[o].priority<r[s].priority?o:s,a<r.length&&(s=r[a].priority<r[s].priority?a:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var r=this._arr,o=r[n].priority,a;n!==0&&(a=n>>1,!(r[a].priority<o));)this._swap(n,a),n=a},t.prototype._swap=function(n,r){var o=this._arr,a=this._keyIndices,s=o[n],l=o[r];o[n]=l,o[r]=s,a[l.key]=n,a[s.key]=r},yi}var bi,Kl;function Gd(){if(Kl)return bi;Kl=1;var e=ze(),t=Hd();bi=r;var n=e.constant(1);function r(a,s,l,u){return o(a,String(s),l||n,u||function(c){return a.outEdges(c)})}function o(a,s,l,u){var c={},d=new t,f,h,m=function(C){var E=C.v!==f?C.v:C.w,_=c[E],p=l(C),v=h.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+C+" Weight: "+p);v<_.distance&&(_.distance=v,_.predecessor=f,d.decrease(E,v))};for(a.nodes().forEach(function(C){var E=C===s?0:Number.POSITIVE_INFINITY;c[C]={distance:E},d.add(C,E)});d.size()>0&&(f=d.removeMin(),h=c[f],h.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(m);return c}return bi}var ki,Yl;function vg(){if(Yl)return ki;Yl=1;var e=Gd(),t=ze();ki=n;function n(r,o,a){return t.transform(r.nodes(),function(s,l){s[l]=e(r,l,o,a)},{})}return ki}var Ci,Xl;function zd(){if(Xl)return Ci;Xl=1;var e=ze();Ci=t;function t(n){var r=0,o=[],a={},s=[];function l(u){var c=a[u]={onStack:!0,lowlink:r,index:r++};if(o.push(u),n.successors(u).forEach(function(h){e.has(a,h)?a[h].onStack&&(c.lowlink=Math.min(c.lowlink,a[h].index)):(l(h),c.lowlink=Math.min(c.lowlink,a[h].lowlink))}),c.lowlink===c.index){var d=[],f;do f=o.pop(),a[f].onStack=!1,d.push(f);while(u!==f);s.push(d)}}return n.nodes().forEach(function(u){e.has(a,u)||l(u)}),s}return Ci}var Ni,Zl;function _g(){if(Zl)return Ni;Zl=1;var e=ze(),t=zd();Ni=n;function n(r){return e.filter(t(r),function(o){return o.length>1||o.length===1&&r.hasEdge(o[0],o[0])})}return Ni}var wi,Jl;function Eg(){if(Jl)return wi;Jl=1;var e=ze();wi=n;var t=e.constant(1);function n(o,a,s){return r(o,a||t,s||function(l){return o.outEdges(l)})}function r(o,a,s){var l={},u=o.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=a(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],E=d[m],_=h[m],p=C.distance+E.distance;p<_.distance&&(_.distance=p,_.predecessor=E.predecessor)})})}),l}return wi}var Si,Ql;function jd(){if(Ql)return Si;Ql=1;var e=ze();Si=t,t.CycleException=n;function t(r){var o={},a={},s=[];function l(u){if(e.has(a,u))throw new n;e.has(o,u)||(a[u]=!0,o[u]=!0,e.each(r.predecessors(u),l),delete a[u],s.push(u))}if(e.each(r.sinks(),l),e.size(o)!==r.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,Si}var Li,eu;function yg(){if(eu)return Li;eu=1;var e=jd();Li=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return Li}var Ti,tu;function Wd(){if(tu)return Ti;tu=1;var e=ze();Ti=t;function t(r,o,a){e.isArray(o)||(o=[o]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),l=[],u={};return e.each(o,function(c){if(!r.hasNode(c))throw new Error("Graph does not have node: "+c);n(r,c,a==="post",u,s,l)}),l}function n(r,o,a,s,l,u){e.has(s,o)||(s[o]=!0,a||u.push(o),e.each(l(o),function(c){n(r,c,a,s,l,u)}),a&&u.push(o))}return Ti}var Ii,nu;function bg(){if(nu)return Ii;nu=1;var e=Wd();Ii=t;function t(n,r){return e(n,r,"post")}return Ii}var Oi,ru;function kg(){if(ru)return Oi;ru=1;var e=Wd();Oi=t;function t(n,r){return e(n,r,"pre")}return Oi}var Ai,iu;function Cg(){if(iu)return Ai;iu=1;var e=ze(),t=Pa(),n=Hd();Ai=r;function r(o,a){var s=new t,l={},u=new n,c;function d(h){var m=h.v===c?h.w:h.v,C=u.priority(m);if(C!==void 0){var E=a(h);E<C&&(l[m]=c,u.decrease(m,E))}}if(o.nodeCount()===0)return s;e.each(o.nodes(),function(h){u.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),u.decrease(o.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: "+o);f=!0}o.nodeEdges(c).forEach(d)}return s}return Ai}var Ri,ou;function Ng(){return ou||(ou=1,Ri={components:gg(),dijkstra:Gd(),dijkstraAll:vg(),findCycles:_g(),floydWarshall:Eg(),isAcyclic:yg(),postorder:bg(),preorder:kg(),prim:Cg(),tarjan:zd(),topsort:jd()}),Ri}var Di,au;function wg(){if(au)return Di;au=1;var e=mg();return Di={Graph:e.Graph,json:pg(),alg:Ng(),version:e.version},Di}var Pi,su;function Ke(){if(su)return Pi;su=1;var e;if(typeof Aa=="function")try{e=wg()}catch{}return e||(e=window.graphlib),Pi=e,Pi}var Bi,lu;function bn(){if(lu)return Bi;lu=1;var e=L.requireEq(),t=L.requireIsArrayLike(),n=L.require_isIndex(),r=L.requireIsObject();function o(a,s,l){if(!r(l))return!1;var u=typeof s;return(u=="number"?t(l)&&n(s,l.length):u=="string"&&s in l)?e(l[s],a):!1}return Bi=o,Bi}var Vi,uu;function Sg(){if(uu)return Vi;uu=1;var e=yn(),t=L.requireEq(),n=bn(),r=L.requireKeysIn(),o=Object.prototype,a=o.hasOwnProperty,s=e(function(l,u){l=Object(l);var c=-1,d=u.length,f=d>2?u[2]:void 0;for(f&&n(u[0],u[1],f)&&(d=1);++c<d;)for(var h=u[c],m=r(h),C=-1,E=m.length;++C<E;){var _=m[C],p=l[_];(p===void 0||t(p,o[_])&&!a.call(l,_))&&(l[_]=h[_])}return l});return Vi=s,Vi}var xi,cu;function Lg(){if(cu)return xi;cu=1;var e=ot(),t=L.requireIsArrayLike(),n=L.requireKeys();function r(o){return function(a,s,l){var u=Object(a);if(!t(a)){var c=e(s,3);a=n(a),s=function(f){return c(u[f],f,u)}}var d=o(a,s,l);return d>-1?u[c?a[d]:d]:void 0}}return xi=r,xi}var Mi,du;function Tg(){if(du)return Mi;du=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Mi=t,Mi}var $i,fu;function Ig(){if(fu)return $i;fu=1;var e=Tg(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return $i=n,$i}var qi,hu;function Og(){if(hu)return qi;hu=1;var e=Ig(),t=L.requireIsObject(),n=Bt(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(c){if(typeof c=="number")return c;if(n(c))return r;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=a.test(c);return f||s.test(c)?l(c.slice(2),f?2:8):o.test(c)?r:+c}return qi=u,qi}var Fi,mu;function Kd(){if(mu)return Fi;mu=1;var e=Og(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var a=o<0?-1:1;return a*n}return o===o?o:0}return Fi=r,Fi}var Ui,pu;function Ag(){if(pu)return Ui;pu=1;var e=Kd();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return Ui=t,Ui}var Hi,gu;function Rg(){if(gu)return Hi;gu=1;var e=qd(),t=ot(),n=Ag(),r=Math.max;function o(a,s,l){var u=a==null?0:a.length;if(!u)return-1;var c=l==null?0:n(l);return c<0&&(c=r(u+c,0)),e(a,t(s,3),c)}return Hi=o,Hi}var Gi,vu;function Dg(){if(vu)return Gi;vu=1;var e=Lg(),t=Rg(),n=e(t);return Gi=n,Gi}var zi,_u;function Yd(){if(_u)return zi;_u=1;var e=Da();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return zi=t,zi}var ji,Eu;function Pg(){if(Eu)return ji;Eu=1;var e=La(),t=Id(),n=L.requireKeysIn();function r(o,a){return o==null?o:e(o,t(a),n)}return ji=r,ji}var Wi,yu;function Bg(){if(yu)return Wi;yu=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Wi=e,Wi}var Ki,bu;function Ba(){if(bu)return Ki;bu=1;var e=Bt();function t(n,r,o){for(var a=-1,s=n.length;++a<s;){var l=n[a],u=r(l);if(u!=null&&(c===void 0?u===u&&!e(u):o(u,c)))var c=u,d=l}return d}return Ki=t,Ki}var Yi,ku;function Vg(){if(ku)return Yi;ku=1;function e(t,n){return t>n}return Yi=e,Yi}var Xi,Cu;function xg(){if(Cu)return Xi;Cu=1;var e=Ba(),t=Vg(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return Xi=r,Xi}var Zi,Nu;function Xd(){if(Nu)return Zi;Nu=1;var e=L.require_baseAssignValue(),t=L.requireEq();function n(r,o,a){(a!==void 0&&!t(r[o],a)||a===void 0&&!(o in r))&&e(r,o,a)}return Zi=n,Zi}var Ji,wu;function Mg(){if(wu)return Ji;wu=1;var e=L.require_baseGetTag(),t=L.require_getPrototype(),n=L.requireIsObjectLike(),r="[object Object]",o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=s.call(Object);function c(d){if(!n(d)||e(d)!=r)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 Ji=c,Ji}var Qi,Su;function Zd(){if(Su)return Qi;Su=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Qi=e,Qi}var eo,Lu;function $g(){if(Lu)return eo;Lu=1;var e=L.require_copyObject(),t=L.requireKeysIn();function n(r){return e(r,t(r))}return eo=n,eo}var to,Tu;function qg(){if(Tu)return to;Tu=1;var e=Xd(),t=L.require_cloneBuffer(),n=L.require_cloneTypedArray(),r=L.require_copyArray(),o=L.require_initCloneObject(),a=L.requireIsArguments(),s=L.requireIsArray(),l=Fd(),u=L.requireIsBuffer(),c=L.requireIsFunction(),d=L.requireIsObject(),f=Mg(),h=L.requireIsTypedArray(),m=Zd(),C=$g();function E(_,p,v,y,g,k,N){var b=m(_,v),T=m(p,v),A=N.get(T);if(A){e(_,v,A);return}var R=k?k(b,T,v+"",_,p,N):void 0,F=R===void 0;if(F){var V=s(T),j=!V&&u(T),Z=!V&&!j&&h(T);R=T,V||j||Z?s(b)?R=b:l(b)?R=r(b):j?(F=!1,R=t(T,!0)):Z?(F=!1,R=n(T,!0)):R=[]:f(T)||a(T)?(R=b,a(b)?R=C(b):(!d(b)||c(b))&&(R=o(T))):F=!1}F&&(N.set(T,R),g(R,T,y,k,N),N.delete(T)),e(_,v,R)}return to=E,to}var no,Iu;function Fg(){if(Iu)return no;Iu=1;var e=L.require_Stack(),t=Xd(),n=La(),r=qg(),o=L.requireIsObject(),a=L.requireKeysIn(),s=Zd();function l(u,c,d,f,h){u!==c&&n(c,function(m,C){if(h||(h=new e),o(m))r(u,c,C,d,l,f,h);else{var E=f?f(s(u,C),m,C+"",u,c,h):void 0;E===void 0&&(E=m),t(u,C,E)}},a)}return no=l,no}var ro,Ou;function Ug(){if(Ou)return ro;Ou=1;var e=yn(),t=bn();function n(r){return e(function(o,a){var s=-1,l=a.length,u=l>1?a[l-1]:void 0,c=l>2?a[2]:void 0;for(u=r.length>3&&typeof u=="function"?(l--,u):void 0,c&&t(a[0],a[1],c)&&(u=l<3?void 0:u,l=1),o=Object(o);++s<l;){var d=a[s];d&&r(o,d,s,u)}return o})}return ro=n,ro}var io,Au;function Hg(){if(Au)return io;Au=1;var e=Fg(),t=Ug(),n=t(function(r,o,a){e(r,o,a)});return io=n,io}var oo,Ru;function Jd(){if(Ru)return oo;Ru=1;function e(t,n){return t<n}return oo=e,oo}var ao,Du;function Gg(){if(Du)return ao;Du=1;var e=Ba(),t=Jd(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return ao=r,ao}var so,Pu;function zg(){if(Pu)return so;Pu=1;var e=Ba(),t=ot(),n=Jd();function r(o,a){return o&&o.length?e(o,t(a,2),n):void 0}return so=r,so}var lo,Bu;function jg(){if(Bu)return lo;Bu=1;var e=L.require_root(),t=function(){return e.Date.now()};return lo=t,lo}var uo,Vu;function Wg(){if(Vu)return uo;Vu=1;var e=L.require_assignValue(),t=vn(),n=L.require_isIndex(),r=L.requireIsObject(),o=Gt();function a(s,l,u,c){if(!r(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=o(l[d]),E=u;if(C==="__proto__"||C==="constructor"||C==="prototype")return s;if(d!=h){var _=m[C];E=c?c(_,C,m):void 0,E===void 0&&(E=r(_)?_:n(l[d+1])?[]:{})}e(m,C,E),m=m[C]}return s}return uo=a,uo}var co,xu;function Kg(){if(xu)return co;xu=1;var e=_n(),t=Wg(),n=vn();function r(o,a,s){for(var l=-1,u=a.length,c={};++l<u;){var d=a[l],f=e(o,d);s(f,d)&&t(c,n(d,o),f)}return c}return co=r,co}var fo,Mu;function Yg(){if(Mu)return fo;Mu=1;var e=Kg(),t=Sd();function n(r,o){return e(r,o,function(a,s){return t(r,s)})}return fo=n,fo}var ho,$u;function Xg(){if($u)return ho;$u=1;var e=Yd(),t=Md(),n=$d();function r(o){return n(t(o,void 0,e),o+"")}return ho=r,ho}var mo,qu;function Zg(){if(qu)return mo;qu=1;var e=Yg(),t=Xg(),n=t(function(r,o){return r==null?{}:e(r,o)});return mo=n,mo}var po,Fu;function Jg(){if(Fu)return po;Fu=1;var e=Math.ceil,t=Math.max;function n(r,o,a,s){for(var l=-1,u=t(e((o-r)/(a||1)),0),c=Array(u);u--;)c[s?u:++l]=r,r+=a;return c}return po=n,po}var go,Uu;function Qg(){if(Uu)return go;Uu=1;var e=Jg(),t=bn(),n=Kd();function r(o){return function(a,s,l){return l&&typeof l!="number"&&t(a,s,l)&&(s=l=void 0),a=n(a),s===void 0?(s=a,a=0):s=n(s),l=l===void 0?a<s?1:-1:n(l),e(a,s,l,o)}}return go=r,go}var vo,Hu;function ev(){if(Hu)return vo;Hu=1;var e=Qg(),t=e();return vo=t,vo}var _o,Gu;function tv(){if(Gu)return _o;Gu=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return _o=e,_o}var Eo,zu;function nv(){if(zu)return Eo;zu=1;var e=Bt();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,s=n===n,l=e(n),u=r!==void 0,c=r===null,d=r===r,f=e(r);if(!c&&!f&&!l&&n>r||l&&u&&d&&!c&&!f||a&&u&&d||!o&&d||!s)return 1;if(!a&&!l&&!f&&n<r||f&&o&&s&&!a&&!l||c&&o&&s||!u&&s||!d)return-1}return 0}return Eo=t,Eo}var yo,ju;function rv(){if(ju)return yo;ju=1;var e=nv();function t(n,r,o){for(var a=-1,s=n.criteria,l=r.criteria,u=s.length,c=o.length;++a<u;){var d=e(s[a],l[a]);if(d){if(a>=c)return d;var f=o[a];return d*(f=="desc"?-1:1)}}return n.index-r.index}return yo=t,yo}var bo,Wu;function iv(){if(Wu)return bo;Wu=1;var e=gn(),t=_n(),n=ot(),r=Bd(),o=tv(),a=L.require_baseUnary(),s=rv(),l=kt(),u=L.requireIsArray();function c(d,f,h){f.length?f=e(f,function(E){return u(E)?function(_){return t(_,E.length===1?E[0]:E)}:E}):f=[l];var m=-1;f=e(f,a(n));var C=r(d,function(E,_,p){var v=e(f,function(y){return y(E)});return{criteria:v,index:++m,value:E}});return o(C,function(E,_){return s(E,_,h)})}return bo=c,bo}var ko,Ku;function ov(){if(Ku)return ko;Ku=1;var e=Da(),t=iv(),n=yn(),r=bn(),o=n(function(a,s){if(a==null)return[];var l=s.length;return l>1&&r(a,s[0],s[1])?s=[]:l>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return ko=o,ko}var Co,Yu;function av(){if(Yu)return Co;Yu=1;var e=Nd(),t=0;function n(r){var o=++t;return e(r)+o}return Co=n,Co}var No,Xu;function sv(){if(Xu)return No;Xu=1;function e(t,n,r){for(var o=-1,a=t.length,s=n.length,l={};++o<a;){var u=o<s?n[o]:void 0;r(l,t[o],u)}return l}return No=e,No}var wo,Zu;function lv(){if(Zu)return wo;Zu=1;var e=L.require_assignValue(),t=sv();function n(r,o){return t(r||[],o||[],e)}return wo=n,wo}var So,Ju;function he(){if(Ju)return So;Ju=1;var e;if(typeof Aa=="function")try{e={cloneDeep:L.requireCloneDeep(),constant:Ra(),defaults:Sg(),each:Ad(),filter:Rd(),find:Dg(),flatten:Yd(),forEach:Od(),forIn:Pg(),has:Dd(),isUndefined:Pd(),last:Bg(),map:Vd(),mapValues:Td(),max:xg(),merge:Hg(),min:Gg(),minBy:zg(),now:jg(),pick:Zg(),range:ev(),reduce:xd(),sortBy:ov(),uniqueId:av(),values:Ud(),zipObject:lv()}}catch{}return e||(e=window._),So=e,So}var Lo,Qu;function uv(){if(Qu)return Lo;Qu=1,Lo=e;function e(){var r={};r._next=r._prev=r,this._sentinel=r}e.prototype.dequeue=function(){var r=this._sentinel,o=r._prev;if(o!==r)return t(o),o},e.prototype.enqueue=function(r){var o=this._sentinel;r._prev&&r._next&&t(r),r._next=o._next,o._next._prev=r,o._next=r,r._prev=o},e.prototype.toString=function(){for(var r=[],o=this._sentinel,a=o._prev;a!==o;)r.push(JSON.stringify(a,n)),a=a._prev;return"["+r.join(", ")+"]"};function t(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,o){if(r!=="_next"&&r!=="_prev")return o}return Lo}var To,ec;function cv(){if(ec)return To;ec=1;var e=he(),t=Ke().Graph,n=uv();To=o;var r=e.constant(1);function o(c,d){if(c.nodeCount()<=1)return[];var f=l(c,d||r),h=a(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(m){return c.outEdges(m.v,m.w)}),!0)}function a(c,d,f){for(var h=[],m=d[d.length-1],C=d[0],E;c.nodeCount();){for(;E=C.dequeue();)s(c,d,f,E);for(;E=m.dequeue();)s(c,d,f,E);if(c.nodeCount()){for(var _=d.length-2;_>0;--_)if(E=d[_].dequeue(),E){h=h.concat(s(c,d,f,E,!0));break}}}return h}function s(c,d,f,h,m){var C=m?[]:void 0;return e.forEach(c.inEdges(h.v),function(E){var _=c.edge(E),p=c.node(E.v);m&&C.push({v:E.v,w:E.w}),p.out-=_,u(d,f,p)}),e.forEach(c.outEdges(h.v),function(E){var _=c.edge(E),p=E.w,v=c.node(p);v.in-=_,u(d,f,v)}),c.removeNode(h.v),C}function l(c,d){var f=new t,h=0,m=0;e.forEach(c.nodes(),function(_){f.setNode(_,{v:_,in:0,out:0})}),e.forEach(c.edges(),function(_){var p=f.edge(_.v,_.w)||0,v=d(_),y=p+v;f.setEdge(_.v,_.w,y),m=Math.max(m,f.node(_.v).out+=v),h=Math.max(h,f.node(_.w).in+=v)});var C=e.range(m+h+3).map(function(){return new n}),E=h+1;return e.forEach(f.nodes(),function(_){u(C,E,f.node(_))}),{graph:f,buckets:C,zeroIdx:E}}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 To}var Io,tc;function dv(){if(tc)return Io;tc=1;var e=he(),t=cv();Io={run:n,undo:o};function n(a){var s=a.graph().acyclicer==="greedy"?t(a,l(a)):r(a);e.forEach(s,function(u){var c=a.edge(u);a.removeEdge(u),c.forwardName=u.name,c.reversed=!0,a.setEdge(u.w,u.v,c,e.uniqueId("rev"))});function l(u){return function(c){return u.edge(c).weight}}}function r(a){var s=[],l={},u={};function c(d){e.has(u,d)||(u[d]=!0,l[d]=!0,e.forEach(a.outEdges(d),function(f){e.has(l,f.w)?s.push(f):c(f.w)}),delete l[d])}return e.forEach(a.nodes(),c),s}function o(a){e.forEach(a.edges(),function(s){var l=a.edge(s);if(l.reversed){a.removeEdge(s);var u=l.forwardName;delete l.reversed,delete l.forwardName,a.setEdge(s.w,s.v,l,u)}})}return Io}var Oo,nc;function Pe(){if(nc)return Oo;nc=1;var e=he(),t=Ke().Graph;Oo={addDummyNode:n,simplify:r,asNonCompoundGraph:o,successorWeights:a,predecessorWeights:s,intersectRect:l,buildLayerMatrix:u,normalizeRanks:c,removeEmptyRanks:d,addBorderNode:f,maxRank:h,partition:m,time:C,notime:E};function n(_,p,v,y){var g;do g=e.uniqueId(y);while(_.hasNode(g));return v.dummy=p,_.setNode(g,v),g}function r(_){var p=new t().setGraph(_.graph());return e.forEach(_.nodes(),function(v){p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){var y=p.edge(v.v,v.w)||{weight:0,minlen:1},g=_.edge(v);p.setEdge(v.v,v.w,{weight:y.weight+g.weight,minlen:Math.max(y.minlen,g.minlen)})}),p}function o(_){var p=new t({multigraph:_.isMultigraph()}).setGraph(_.graph());return e.forEach(_.nodes(),function(v){_.children(v).length||p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){p.setEdge(v,_.edge(v))}),p}function a(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.outEdges(v),function(g){y[g.w]=(y[g.w]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function s(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.inEdges(v),function(g){y[g.v]=(y[g.v]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function l(_,p){var v=_.x,y=_.y,g=p.x-v,k=p.y-y,N=_.width/2,b=_.height/2;if(!g&&!k)throw new Error("Not possible to find intersection inside of the rectangle");var T,A;return Math.abs(k)*N>Math.abs(g)*b?(k<0&&(b=-b),T=b*g/k,A=b):(g<0&&(N=-N),T=N,A=N*k/g),{x:v+T,y:y+A}}function u(_){var p=e.map(e.range(h(_)+1),function(){return[]});return e.forEach(_.nodes(),function(v){var y=_.node(v),g=y.rank;e.isUndefined(g)||(p[g][y.order]=v)}),p}function c(_){var p=e.min(e.map(_.nodes(),function(v){return _.node(v).rank}));e.forEach(_.nodes(),function(v){var y=_.node(v);e.has(y,"rank")&&(y.rank-=p)})}function d(_){var p=e.min(e.map(_.nodes(),function(k){return _.node(k).rank})),v=[];e.forEach(_.nodes(),function(k){var N=_.node(k).rank-p;v[N]||(v[N]=[]),v[N].push(k)});var y=0,g=_.graph().nodeRankFactor;e.forEach(v,function(k,N){e.isUndefined(k)&&N%g!==0?--y:y&&e.forEach(k,function(b){_.node(b).rank+=y})})}function f(_,p,v,y){var g={width:0,height:0};return arguments.length>=4&&(g.rank=v,g.order=y),n(_,"border",g,p)}function h(_){return e.max(e.map(_.nodes(),function(p){var v=_.node(p).rank;if(!e.isUndefined(v))return v}))}function m(_,p){var v={lhs:[],rhs:[]};return e.forEach(_,function(y){p(y)?v.lhs.push(y):v.rhs.push(y)}),v}function C(_,p){var v=e.now();try{return p()}finally{console.log(_+" time: "+(e.now()-v)+"ms")}}function E(_,p){return p()}return Oo}var Ao,rc;function fv(){if(rc)return Ao;rc=1;var e=he(),t=Pe();Ao={run:n,undo:o};function n(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(s){r(a,s)})}function r(a,s){var l=s.v,u=a.node(l).rank,c=s.w,d=a.node(c).rank,f=s.name,h=a.edge(s),m=h.labelRank;if(d!==u+1){a.removeEdge(s);var C,E,_;for(_=0,++u;u<d;++_,++u)h.points=[],E={width:0,height:0,edgeLabel:h,edgeObj:s,rank:u},C=t.addDummyNode(a,"edge",E,"_d"),u===m&&(E.width=h.width,E.height=h.height,E.dummy="edge-label",E.labelpos=h.labelpos),a.setEdge(l,C,{weight:h.weight},f),_===0&&a.graph().dummyChains.push(C),l=C;a.setEdge(l,c,{weight:h.weight},f)}}function o(a){e.forEach(a.graph().dummyChains,function(s){var l=a.node(s),u=l.edgeLabel,c;for(a.setEdge(l.edgeObj,u);l.dummy;)c=a.successors(s)[0],a.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=a.node(s)})}return Ao}var Ro,ic;function an(){if(ic)return Ro;ic=1;var e=he();Ro={longestPath:t,slack:n};function t(r){var o={};function a(s){var l=r.node(s);if(e.has(o,s))return l.rank;o[s]=!0;var u=e.min(e.map(r.outEdges(s),function(c){return a(c.w)-r.edge(c).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),l.rank=u}e.forEach(r.sources(),a)}function n(r,o){return r.node(o.w).rank-r.node(o.v).rank-r.edge(o).minlen}return Ro}var Do,oc;function Qd(){if(oc)return Do;oc=1;var e=he(),t=Ke().Graph,n=an().slack;Do=r;function r(l){var u=new t({directed:!1}),c=l.nodes()[0],d=l.nodeCount();u.setNode(c,{});for(var f,h;o(u,l)<d;)f=a(u,l),h=u.hasNode(f.v)?n(l,f):-n(l,f),s(u,l,h);return u}function o(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)&&!n(u,f)&&(l.setNode(m,{}),l.setEdge(d,m,{}),c(m))})}return e.forEach(l.nodes(),c),l.nodeCount()}function a(l,u){return e.minBy(u.edges(),function(c){if(l.hasNode(c.v)!==l.hasNode(c.w))return n(u,c)})}function s(l,u,c){e.forEach(l.nodes(),function(d){u.node(d).rank+=c})}return Do}var Po,ac;function hv(){if(ac)return Po;ac=1;var e=he(),t=Qd(),n=an().slack,r=an().longestPath,o=Ke().alg.preorder,a=Ke().alg.postorder,s=Pe().simplify;Po=l,l.initLowLimValues=f,l.initCutValues=u,l.calcCutValue=d,l.leaveEdge=m,l.enterEdge=C,l.exchangeEdges=E;function l(y){y=s(y),r(y);var g=t(y);f(g),u(g,y);for(var k,N;k=m(g);)N=C(g,y,k),E(g,y,k,N)}function u(y,g){var k=a(y,y.nodes());k=k.slice(0,k.length-1),e.forEach(k,function(N){c(y,g,N)})}function c(y,g,k){var N=y.node(k),b=N.parent;y.edge(k,b).cutvalue=d(y,g,k)}function d(y,g,k){var N=y.node(k),b=N.parent,T=!0,A=g.edge(k,b),R=0;return A||(T=!1,A=g.edge(b,k)),R=A.weight,e.forEach(g.nodeEdges(k),function(F){var V=F.v===k,j=V?F.w:F.v;if(j!==b){var Z=V===T,M=g.edge(F).weight;if(R+=Z?M:-M,p(y,k,j)){var D=y.edge(k,j).cutvalue;R+=Z?-D:D}}}),R}function f(y,g){arguments.length<2&&(g=y.nodes()[0]),h(y,{},1,g)}function h(y,g,k,N,b){var T=k,A=y.node(N);return g[N]=!0,e.forEach(y.neighbors(N),function(R){e.has(g,R)||(k=h(y,g,k,R,N))}),A.low=T,A.lim=k++,b?A.parent=b:delete A.parent,k}function m(y){return e.find(y.edges(),function(g){return y.edge(g).cutvalue<0})}function C(y,g,k){var N=k.v,b=k.w;g.hasEdge(N,b)||(N=k.w,b=k.v);var T=y.node(N),A=y.node(b),R=T,F=!1;T.lim>A.lim&&(R=A,F=!0);var V=e.filter(g.edges(),function(j){return F===v(y,y.node(j.v),R)&&F!==v(y,y.node(j.w),R)});return e.minBy(V,function(j){return n(g,j)})}function E(y,g,k,N){var b=k.v,T=k.w;y.removeEdge(b,T),y.setEdge(N.v,N.w,{}),f(y),u(y,g),_(y,g)}function _(y,g){var k=e.find(y.nodes(),function(b){return!g.node(b).parent}),N=o(y,k);N=N.slice(1),e.forEach(N,function(b){var T=y.node(b).parent,A=g.edge(b,T),R=!1;A||(A=g.edge(T,b),R=!0),g.node(b).rank=g.node(T).rank+(R?A.minlen:-A.minlen)})}function p(y,g,k){return y.hasEdge(g,k)}function v(y,g,k){return k.low<=g.lim&&g.lim<=k.lim}return Po}var Bo,sc;function mv(){if(sc)return Bo;sc=1;var e=an(),t=e.longestPath,n=Qd(),r=hv();Bo=o;function o(u){switch(u.graph().ranker){case"network-simplex":l(u);break;case"tight-tree":s(u);break;case"longest-path":a(u);break;default:l(u)}}var a=t;function s(u){t(u),n(u)}function l(u){r(u)}return Bo}var Vo,lc;function pv(){if(lc)return Vo;lc=1;var e=he();Vo=t;function t(o){var a=r(o);e.forEach(o.graph().dummyChains,function(s){for(var l=o.node(s),u=l.edgeObj,c=n(o,a,u.v,u.w),d=c.path,f=c.lca,h=0,m=d[h],C=!0;s!==u.w;){if(l=o.node(s),C){for(;(m=d[h])!==f&&o.node(m).maxRank<l.rank;)h++;m===f&&(C=!1)}if(!C){for(;h<d.length-1&&o.node(m=d[h+1]).minRank<=l.rank;)h++;m=d[h]}o.setParent(s,m),s=o.successors(s)[0]}})}function n(o,a,s,l){var u=[],c=[],d=Math.min(a[s].low,a[l].low),f=Math.max(a[s].lim,a[l].lim),h,m;h=s;do h=o.parent(h),u.push(h);while(h&&(a[h].low>d||f>a[h].lim));for(m=h,h=l;(h=o.parent(h))!==m;)c.push(h);return{path:u.concat(c.reverse()),lca:m}}function r(o){var a={},s=0;function l(u){var c=s;e.forEach(o.children(u),l),a[u]={low:c,lim:s++}}return e.forEach(o.children(),l),a}return Vo}var xo,uc;function gv(){if(uc)return xo;uc=1;var e=he(),t=Pe();xo={run:n,cleanup:s};function n(l){var u=t.addDummyNode(l,"root",{},"_root"),c=o(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=a(l)+1;e.forEach(l.children(),function(m){r(l,u,f,h,d,c,m)}),l.graph().nodeRankFactor=f}function r(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 E=t.addBorderNode(l,"_bt"),_=t.addBorderNode(l,"_bb"),p=l.node(m);l.setParent(E,m),p.borderTop=E,l.setParent(_,m),p.borderBottom=_,e.forEach(C,function(v){r(l,u,c,d,f,h,v);var y=l.node(v),g=y.borderTop?y.borderTop:v,k=y.borderBottom?y.borderBottom:v,N=y.borderTop?d:2*d,b=g!==k?1:f-h[m]+1;l.setEdge(E,g,{weight:N,minlen:b,nestingEdge:!0}),l.setEdge(k,_,{weight:N,minlen:b,nestingEdge:!0})}),l.parent(m)||l.setEdge(u,E,{weight:0,minlen:f+h[m]})}function o(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 a(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 xo}var Mo,cc;function vv(){if(cc)return Mo;cc=1;var e=he(),t=Pe();Mo=n;function n(o){function a(s){var l=o.children(s),u=o.node(s);if(l.length&&e.forEach(l,a),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var c=u.minRank,d=u.maxRank+1;c<d;++c)r(o,"borderLeft","_bl",s,u,c),r(o,"borderRight","_br",s,u,c)}}e.forEach(o.children(),a)}function r(o,a,s,l,u,c){var d={width:0,height:0,rank:c,borderType:a},f=u[a][c-1],h=t.addDummyNode(o,"border",d,s);u[a][c]=h,o.setParent(h,l),f&&o.setEdge(f,h,{weight:1})}return Mo}var $o,dc;function _v(){if(dc)return $o;dc=1;var e=he();$o={adjust:t,undo:n};function t(c){var d=c.graph().rankdir.toLowerCase();(d==="lr"||d==="rl")&&r(c)}function n(c){var d=c.graph().rankdir.toLowerCase();(d==="bt"||d==="rl")&&a(c),(d==="lr"||d==="rl")&&(l(c),r(c))}function r(c){e.forEach(c.nodes(),function(d){o(c.node(d))}),e.forEach(c.edges(),function(d){o(c.edge(d))})}function o(c){var d=c.width;c.width=c.height,c.height=d}function a(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 $o}var qo,fc;function Ev(){if(fc)return qo;fc=1;var e=he();qo=t;function t(n){var r={},o=e.filter(n.nodes(),function(c){return!n.children(c).length}),a=e.max(e.map(o,function(c){return n.node(c).rank})),s=e.map(e.range(a+1),function(){return[]});function l(c){if(!e.has(r,c)){r[c]=!0;var d=n.node(c);s[d.rank].push(c),e.forEach(n.successors(c),l)}}var u=e.sortBy(o,function(c){return n.node(c).rank});return e.forEach(u,l),s}return qo}var Fo,hc;function yv(){if(hc)return Fo;hc=1;var e=he();Fo=t;function t(r,o){for(var a=0,s=1;s<o.length;++s)a+=n(r,o[s-1],o[s]);return a}function n(r,o,a){for(var s=e.zipObject(a,e.map(a,function(h,m){return m})),l=e.flatten(e.map(o,function(h){return e.sortBy(e.map(r.outEdges(h),function(m){return{pos:s[m.w],weight:r.edge(m).weight}}),"pos")}),!0),u=1;u<a.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 Fo}var Uo,mc;function bv(){if(mc)return Uo;mc=1;var e=he();Uo=t;function t(n,r){return e.map(r,function(o){var a=n.inEdges(o);if(a.length){var s=e.reduce(a,function(l,u){var c=n.edge(u),d=n.node(u.v);return{sum:l.sum+c.weight*d.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:o}})}return Uo}var Ho,pc;function kv(){if(pc)return Ho;pc=1;var e=he();Ho=t;function t(o,a){var s={};e.forEach(o,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(a.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 n(l)}function n(o){var a=[];function s(c){return function(d){d.merged||(e.isUndefined(d.barycenter)||e.isUndefined(c.barycenter)||d.barycenter>=c.barycenter)&&r(c,d)}}function l(c){return function(d){d.in.push(c),--d.indegree===0&&o.push(d)}}for(;o.length;){var u=o.pop();a.push(u),e.forEach(u.in.reverse(),s(u)),e.forEach(u.out,l(u))}return e.map(e.filter(a,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function r(o,a){var s=0,l=0;o.weight&&(s+=o.barycenter*o.weight,l+=o.weight),a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),o.vs=a.vs.concat(o.vs),o.barycenter=s/l,o.weight=l,o.i=Math.min(a.i,o.i),a.merged=!0}return Ho}var Go,gc;function Cv(){if(gc)return Go;gc=1;var e=he(),t=Pe();Go=n;function n(a,s){var l=t.partition(a,function(E){return e.has(E,"barycenter")}),u=l.lhs,c=e.sortBy(l.rhs,function(E){return-E.i}),d=[],f=0,h=0,m=0;u.sort(o(!!s)),m=r(d,c,m),e.forEach(u,function(E){m+=E.vs.length,d.push(E.vs),f+=E.barycenter*E.weight,h+=E.weight,m=r(d,c,m)});var C={vs:e.flatten(d,!0)};return h&&(C.barycenter=f/h,C.weight=h),C}function r(a,s,l){for(var u;s.length&&(u=e.last(s)).i<=l;)s.pop(),a.push(u.vs),l++;return l}function o(a){return function(s,l){return s.barycenter<l.barycenter?-1:s.barycenter>l.barycenter?1:a?l.i-s.i:s.i-l.i}}return Go}var zo,vc;function Nv(){if(vc)return zo;vc=1;var e=he(),t=bv(),n=kv(),r=Cv();zo=o;function o(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,E={};m&&(f=e.filter(f,function(k){return k!==m&&k!==C}));var _=t(l,f);e.forEach(_,function(k){if(l.children(k.v).length){var N=o(l,k.v,c,d);E[k.v]=N,e.has(N,"barycenter")&&s(k,N)}});var p=n(_,c);a(p,E);var v=r(p,d);if(m&&(v.vs=e.flatten([m,v.vs,C],!0),l.predecessors(m).length)){var y=l.node(l.predecessors(m)[0]),g=l.node(l.predecessors(C)[0]);e.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+g.order)/(v.weight+2),v.weight+=2}return v}function a(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 zo}var jo,_c;function wv(){if(_c)return jo;_c=1;var e=he(),t=Ke().Graph;jo=n;function n(o,a,s){var l=r(o),u=new t({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(c){return o.node(c)});return e.forEach(o.nodes(),function(c){var d=o.node(c),f=o.parent(c);(d.rank===a||d.minRank<=a&&a<=d.maxRank)&&(u.setNode(c),u.setParent(c,f||l),e.forEach(o[s](c),function(h){var m=h.v===c?h.w:h.v,C=u.edge(m,c),E=e.isUndefined(C)?0:C.weight;u.setEdge(m,c,{weight:o.edge(h).weight+E})}),e.has(d,"minRank")&&u.setNode(c,{borderLeft:d.borderLeft[a],borderRight:d.borderRight[a]}))}),u}function r(o){for(var a;o.hasNode(a=e.uniqueId("_root")););return a}return jo}var Wo,Ec;function Sv(){if(Ec)return Wo;Ec=1;var e=he();Wo=t;function t(n,r,o){var a={},s;e.forEach(o,function(l){for(var u=n.parent(l),c,d;u;){if(c=n.parent(u),c?(d=a[c],a[c]=u):(d=s,s=u),d&&d!==u){r.setEdge(d,u);return}u=c}})}return Wo}var Ko,yc;function Lv(){if(yc)return Ko;yc=1;var e=he(),t=Ev(),n=yv(),r=Nv(),o=wv(),a=Sv(),s=Ke().Graph,l=Pe();Ko=u;function u(h){var m=l.maxRank(h),C=c(h,e.range(1,m+1),"inEdges"),E=c(h,e.range(m-1,-1,-1),"outEdges"),_=t(h);f(h,_);for(var p=Number.POSITIVE_INFINITY,v,y=0,g=0;g<4;++y,++g){d(y%2?C:E,y%4>=2),_=l.buildLayerMatrix(h);var k=n(h,_);k<p&&(g=0,v=e.cloneDeep(_),p=k)}f(h,v)}function c(h,m,C){return e.map(m,function(E){return o(h,E,C)})}function d(h,m){var C=new s;e.forEach(h,function(E){var _=E.graph().root,p=r(E,_,C,m);e.forEach(p.vs,function(v,y){E.node(v).order=y}),a(E,C,p.vs)})}function f(h,m){e.forEach(m,function(C){e.forEach(C,function(E,_){h.node(E).order=_})})}return Ko}var Yo,bc;function Tv(){if(bc)return Yo;bc=1;var e=he(),t=Ke().Graph,n=Pe();Yo={positionX:C,findType1Conflicts:r,findType2Conflicts:o,addConflict:s,hasConflict:l,verticalAlignment:u,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:f,balance:m};function r(p,v){var y={};function g(k,N){var b=0,T=0,A=k.length,R=e.last(N);return e.forEach(N,function(F,V){var j=a(p,F),Z=j?p.node(j).order:A;(j||F===R)&&(e.forEach(N.slice(T,V+1),function(M){e.forEach(p.predecessors(M),function(D){var J=p.node(D),W=J.order;(W<b||Z<W)&&!(J.dummy&&p.node(M).dummy)&&s(y,D,M)})}),T=V+1,b=Z)}),N}return e.reduce(v,g),y}function o(p,v){var y={};function g(N,b,T,A,R){var F;e.forEach(e.range(b,T),function(V){F=N[V],p.node(F).dummy&&e.forEach(p.predecessors(F),function(j){var Z=p.node(j);Z.dummy&&(Z.order<A||Z.order>R)&&s(y,j,F)})})}function k(N,b){var T=-1,A,R=0;return e.forEach(b,function(F,V){if(p.node(F).dummy==="border"){var j=p.predecessors(F);j.length&&(A=p.node(j[0]).order,g(b,R,V,T,A),R=V,T=A)}g(b,R,b.length,A,N.length)}),b}return e.reduce(v,k),y}function a(p,v){if(p.node(v).dummy)return e.find(p.predecessors(v),function(y){return p.node(y).dummy})}function s(p,v,y){if(v>y){var g=v;v=y,y=g}var k=p[v];k||(p[v]=k={}),k[y]=!0}function l(p,v,y){if(v>y){var g=v;v=y,y=g}return e.has(p[v],y)}function u(p,v,y,g){var k={},N={},b={};return e.forEach(v,function(T){e.forEach(T,function(A,R){k[A]=A,N[A]=A,b[A]=R})}),e.forEach(v,function(T){var A=-1;e.forEach(T,function(R){var F=g(R);if(F.length){F=e.sortBy(F,function(D){return b[D]});for(var V=(F.length-1)/2,j=Math.floor(V),Z=Math.ceil(V);j<=Z;++j){var M=F[j];N[R]===R&&A<b[M]&&!l(y,R,M)&&(N[M]=R,N[R]=k[R]=k[M],A=b[M])}}})}),{root:k,align:N}}function c(p,v,y,g,k){var N={},b=d(p,v,y,k),T=k?"borderLeft":"borderRight";function A(V,j){for(var Z=b.nodes(),M=Z.pop(),D={};M;)D[M]?V(M):(D[M]=!0,Z.push(M),Z=Z.concat(j(M))),M=Z.pop()}function R(V){N[V]=b.inEdges(V).reduce(function(j,Z){return Math.max(j,N[Z.v]+b.edge(Z))},0)}function F(V){var j=b.outEdges(V).reduce(function(M,D){return Math.min(M,N[D.w]-b.edge(D))},Number.POSITIVE_INFINITY),Z=p.node(V);j!==Number.POSITIVE_INFINITY&&Z.borderType!==T&&(N[V]=Math.max(N[V],j))}return A(R,b.predecessors.bind(b)),A(F,b.successors.bind(b)),e.forEach(g,function(V){N[V]=N[y[V]]}),N}function d(p,v,y,g){var k=new t,N=p.graph(),b=E(N.nodesep,N.edgesep,g);return e.forEach(v,function(T){var A;e.forEach(T,function(R){var F=y[R];if(k.setNode(F),A){var V=y[A],j=k.edge(V,F);k.setEdge(V,F,Math.max(b(p,R,A),j||0))}A=R})}),k}function f(p,v){return e.minBy(e.values(v),function(y){var g=Number.NEGATIVE_INFINITY,k=Number.POSITIVE_INFINITY;return e.forIn(y,function(N,b){var T=_(p,b)/2;g=Math.max(N+T,g),k=Math.min(N-T,k)}),g-k})}function h(p,v){var y=e.values(v),g=e.min(y),k=e.max(y);e.forEach(["u","d"],function(N){e.forEach(["l","r"],function(b){var T=N+b,A=p[T],R;if(A!==v){var F=e.values(A);R=b==="l"?g-e.min(F):k-e.max(F),R&&(p[T]=e.mapValues(A,function(V){return V+R}))}})})}function m(p,v){return e.mapValues(p.ul,function(y,g){if(v)return p[v.toLowerCase()][g];var k=e.sortBy(e.map(p,g));return(k[1]+k[2])/2})}function C(p){var v=n.buildLayerMatrix(p),y=e.merge(r(p,v),o(p,v)),g={},k;e.forEach(["u","d"],function(b){k=b==="u"?v:e.values(v).reverse(),e.forEach(["l","r"],function(T){T==="r"&&(k=e.map(k,function(V){return e.values(V).reverse()}));var A=(b==="u"?p.predecessors:p.successors).bind(p),R=u(p,k,y,A),F=c(p,k,R.root,R.align,T==="r");T==="r"&&(F=e.mapValues(F,function(V){return-V})),g[b+T]=F})});var N=f(p,g);return h(g,N),m(g,p.graph().align)}function E(p,v,y){return function(g,k,N){var b=g.node(k),T=g.node(N),A=0,R;if(A+=b.width/2,e.has(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":R=-b.width/2;break;case"r":R=b.width/2;break}if(R&&(A+=y?R:-R),R=0,A+=(b.dummy?v:p)/2,A+=(T.dummy?v:p)/2,A+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":R=T.width/2;break;case"r":R=-T.width/2;break}return R&&(A+=y?R:-R),R=0,A}}function _(p,v){return p.node(v).width}return Yo}var Xo,kc;function Iv(){if(kc)return Xo;kc=1;var e=he(),t=Pe(),n=Tv().positionX;Xo=r;function r(a){a=t.asNonCompoundGraph(a),o(a),e.forEach(n(a),function(s,l){a.node(l).x=s})}function o(a){var s=t.buildLayerMatrix(a),l=a.graph().ranksep,u=0;e.forEach(s,function(c){var d=e.max(e.map(c,function(f){return a.node(f).height}));e.forEach(c,function(f){a.node(f).y=u+d/2}),u+=d+l})}return Xo}var Zo,Cc;function Ov(){if(Cc)return Zo;Cc=1;var e=he(),t=dv(),n=fv(),r=mv(),o=Pe().normalizeRanks,a=pv(),s=Pe().removeEmptyRanks,l=gv(),u=vv(),c=_v(),d=Lv(),f=Iv(),h=Pe(),m=Ke().Graph;Zo=C;function C(I,P){var q=P&&P.debugTiming?h.time:h.notime;q("layout",function(){var G=q(" buildLayoutGraph",function(){return A(I)});q(" runLayout",function(){E(G,q)}),q(" updateInputGraph",function(){_(I,G)})})}function E(I,P){P(" makeSpaceForEdgeLabels",function(){R(I)}),P(" removeSelfEdges",function(){U(I)}),P(" acyclic",function(){t.run(I)}),P(" nestingGraph.run",function(){l.run(I)}),P(" rank",function(){r(h.asNonCompoundGraph(I))}),P(" injectEdgeLabelProxies",function(){F(I)}),P(" removeEmptyRanks",function(){s(I)}),P(" nestingGraph.cleanup",function(){l.cleanup(I)}),P(" normalizeRanks",function(){o(I)}),P(" assignRankMinMax",function(){V(I)}),P(" removeEdgeLabelProxies",function(){j(I)}),P(" normalize.run",function(){n.run(I)}),P(" parentDummyChains",function(){a(I)}),P(" addBorderSegments",function(){u(I)}),P(" order",function(){d(I)}),P(" insertSelfEdges",function(){ne(I)}),P(" adjustCoordinateSystem",function(){c.adjust(I)}),P(" position",function(){f(I)}),P(" positionSelfEdges",function(){me(I)}),P(" removeBorderNodes",function(){W(I)}),P(" normalize.undo",function(){n.undo(I)}),P(" fixupEdgeLabelCoords",function(){D(I)}),P(" undoCoordinateSystem",function(){c.undo(I)}),P(" translateGraph",function(){Z(I)}),P(" assignNodeIntersects",function(){M(I)}),P(" reversePoints",function(){J(I)}),P(" acyclic.undo",function(){t.undo(I)})}function _(I,P){e.forEach(I.nodes(),function(q){var G=I.node(q),ee=P.node(q);G&&(G.x=ee.x,G.y=ee.y,P.children(q).length&&(G.width=ee.width,G.height=ee.height))}),e.forEach(I.edges(),function(q){var G=I.edge(q),ee=P.edge(q);G.points=ee.points,e.has(ee,"x")&&(G.x=ee.x,G.y=ee.y)}),I.graph().width=P.graph().width,I.graph().height=P.graph().height}var p=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],g=["width","height"],k={width:0,height:0},N=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(I){var P=new m({multigraph:!0,compound:!0}),q=xe(I.graph());return P.setGraph(e.merge({},v,Re(q,p),e.pick(q,y))),e.forEach(I.nodes(),function(G){var ee=xe(I.node(G));P.setNode(G,e.defaults(Re(ee,g),k)),P.setParent(G,I.parent(G))}),e.forEach(I.edges(),function(G){var ee=xe(I.edge(G));P.setEdge(G,e.merge({},b,Re(ee,N),e.pick(ee,T)))}),P}function R(I){var P=I.graph();P.ranksep/=2,e.forEach(I.edges(),function(q){var G=I.edge(q);G.minlen*=2,G.labelpos.toLowerCase()!=="c"&&(P.rankdir==="TB"||P.rankdir==="BT"?G.width+=G.labeloffset:G.height+=G.labeloffset)})}function F(I){e.forEach(I.edges(),function(P){var q=I.edge(P);if(q.width&&q.height){var G=I.node(P.v),ee=I.node(P.w),ce={rank:(ee.rank-G.rank)/2+G.rank,e:P};h.addDummyNode(I,"edge-proxy",ce,"_ep")}})}function V(I){var P=0;e.forEach(I.nodes(),function(q){var G=I.node(q);G.borderTop&&(G.minRank=I.node(G.borderTop).rank,G.maxRank=I.node(G.borderBottom).rank,P=e.max(P,G.maxRank))}),I.graph().maxRank=P}function j(I){e.forEach(I.nodes(),function(P){var q=I.node(P);q.dummy==="edge-proxy"&&(I.edge(q.e).labelRank=q.rank,I.removeNode(P))})}function Z(I){var P=Number.POSITIVE_INFINITY,q=0,G=Number.POSITIVE_INFINITY,ee=0,ce=I.graph(),pe=ce.marginx||0,Ie=ce.marginy||0;function St(we){var be=we.x,Me=we.y,st=we.width,Lt=we.height;P=Math.min(P,be-st/2),q=Math.max(q,be+st/2),G=Math.min(G,Me-Lt/2),ee=Math.max(ee,Me+Lt/2)}e.forEach(I.nodes(),function(we){St(I.node(we))}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.has(be,"x")&&St(be)}),P-=pe,G-=Ie,e.forEach(I.nodes(),function(we){var be=I.node(we);be.x-=P,be.y-=G}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.forEach(be.points,function(Me){Me.x-=P,Me.y-=G}),e.has(be,"x")&&(be.x-=P),e.has(be,"y")&&(be.y-=G)}),ce.width=q-P+pe,ce.height=ee-G+Ie}function M(I){e.forEach(I.edges(),function(P){var q=I.edge(P),G=I.node(P.v),ee=I.node(P.w),ce,pe;q.points?(ce=q.points[0],pe=q.points[q.points.length-1]):(q.points=[],ce=ee,pe=G),q.points.unshift(h.intersectRect(G,ce)),q.points.push(h.intersectRect(ee,pe))})}function D(I){e.forEach(I.edges(),function(P){var q=I.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 J(I){e.forEach(I.edges(),function(P){var q=I.edge(P);q.reversed&&q.points.reverse()})}function W(I){e.forEach(I.nodes(),function(P){if(I.children(P).length){var q=I.node(P),G=I.node(q.borderTop),ee=I.node(q.borderBottom),ce=I.node(e.last(q.borderLeft)),pe=I.node(e.last(q.borderRight));q.width=Math.abs(pe.x-ce.x),q.height=Math.abs(ee.y-G.y),q.x=ce.x+q.width/2,q.y=G.y+q.height/2}}),e.forEach(I.nodes(),function(P){I.node(P).dummy==="border"&&I.removeNode(P)})}function U(I){e.forEach(I.edges(),function(P){if(P.v===P.w){var q=I.node(P.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:P,label:I.edge(P)}),I.removeEdge(P)}})}function ne(I){var P=h.buildLayerMatrix(I);e.forEach(P,function(q){var G=0;e.forEach(q,function(ee,ce){var pe=I.node(ee);pe.order=ce+G,e.forEach(pe.selfEdges,function(Ie){h.addDummyNode(I,"selfedge",{width:Ie.label.width,height:Ie.label.height,rank:pe.rank,order:ce+ ++G,e:Ie.e,label:Ie.label},"_se")}),delete pe.selfEdges})})}function me(I){e.forEach(I.nodes(),function(P){var q=I.node(P);if(q.dummy==="selfedge"){var G=I.node(q.e.v),ee=G.x+G.width/2,ce=G.y,pe=q.x-ee,Ie=G.height/2;I.setEdge(q.e,q.label),I.removeNode(P),q.label.points=[{x:ee+2*pe/3,y:ce-Ie},{x:ee+5*pe/6,y:ce-Ie},{x:ee+pe,y:ce},{x:ee+5*pe/6,y:ce+Ie},{x:ee+2*pe/3,y:ce+Ie}],q.label.x=q.x,q.label.y=q.y}})}function Re(I,P){return e.mapValues(e.pick(I,P),Number)}function xe(I){var P={};return e.forEach(I,function(q,G){P[G.toLowerCase()]=q}),P}return Zo}var Jo,Nc;function Av(){if(Nc)return Jo;Nc=1;var e=he(),t=Pe(),n=Ke().Graph;Jo={debugOrdering:r};function r(o){var a=t.buildLayerMatrix(o),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(o.nodes(),function(l){s.setNode(l,{label:l}),s.setParent(l,"layer"+o.node(l).rank)}),e.forEach(o.edges(),function(l){s.setEdge(l.v,l.w,{},l.name)}),e.forEach(a,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 Jo}var Qo,wc;function Rv(){return wc||(wc=1,Qo="0.8.5"),Qo}var ea,Sc;function Dv(){return Sc||(Sc=1,ea={graphlib:Ke(),layout:Ov(),debug:Av(),util:{time:Pe().time,notime:Pe().notime},version:Rv()}),ea}var Pv=Dv();const Lc=L.getDefaultExportFromCjs(Pv),lt="root.Triggers",tn={predecessorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.target===t){r.push(o);const a=this.predecessorsEdge(e,o.source);a.length>0&&r.push(...a)}return r},successorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.source===t){r.push(o);const a=this.successorsEdge(e,o.target);a.length>0&&r.push(...a)}return r},predecessorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=r(t),a=o?[o]:[];for(const s of n.value)if(s.target===t){a.push(s.sourceNode);const l=this.predecessorsNode(e,s.source);l.length>0&&a.push(...l)}return a},successorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=[r(t)];for(const a of n.value)if(a.source===t){o.push(a.targetNode);const s=this.successorsNode(e,a.target);s.length>0&&o.push(...s)}return o},linkedElements(e,t){return[...this.predecessorsEdge(e,t),...this.predecessorsNode(e,t),...this.successorsEdge(e,t),...this.successorsNode(e,t)]},generateDagreGraph(e,t,n,r,o,a,s){const l=new Lc.graphlib.Graph({compound:!0});l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:n?"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(r.includes(u.cluster.uid)&&a.has(c)){const d={uid:c,type:"collapsedcluster"};l.setNode(c,{width:this.getNodeWidth(d),height:this.getNodeHeight(d)}),s.push(d);continue}if(!o[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=o[u.cluster.uid]?o[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,o,t);c&&l.setEdge(c.source,c.target)}return Lc.layout(l),l},getNodePosition(e,t){const n={x:e.x-e.width/2,y:e.y-e.height/2};if(t){const r=this.getNodePosition(t);n.x=n.x-r.x,n.y=n.y-r.y}return n},getNodeWidth(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_WIDTH:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_WIDTH:et.DOT_WIDTH},getNodeHeight(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_HEIGHT:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_HEIGHT:et.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,n,r){const o=n[e]?n[e]:e,a=n[t]?n[t]:t;return o===a||r.includes(o)||r.includes(a)?null:{target:a,source:o}},cleanGraph(e){const{getEdges:t,getNodes:n,getElements:r,removeEdges:o,removeNodes:a,removeSelectedElements:s}=te.useVueFlow(e);o(t.value),a(n.value),s(r.value)},flowHaveTasks(e){return e?L.flowHaveTasks(e):!1},nodeColor(e,t){return e.uid===lt||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,n,r){var c,d,f;if(r.some(h=>e.source.startsWith(h)&&e.target.startsWith(h))||n.includes(e.target)||e.source.startsWith(lt)||e.target.startsWith(lt))return;const o=e.target.split(".");o.pop();const a=o.join("."),s=ge.afterLastDot(a),l=t[e.target];if(l.type.endsWith("GraphClusterEnd")&&((f=(d=(c=t[a])==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[ge.afterLastDot(e.source),"after"];if(u){const h=e.source.split(".");return[h[h.length-2],"after"]}return[ge.afterLastDot(e.target),"before"]},getEdgeColor(e,t,n){const r=s=>{var u,c;const l=s.split(".");for(let d=1;d<=l.length;d++){const f=l.slice(0,d).join("."),h=(u=n[f])==null?void 0:u.branchType;if(h)return h}return((c=t[s])==null?void 0:c.branchType)??null},o=r(e.source),a=r(e.target);return[o,a].includes("ERROR")?"danger":[o,a].includes("FINALLY")?"warning":null},generateGraph(e,t,n,r,o,a,s,l,u,c,d,f,h){var b,T,A,R,F,V,j,Z,M,D,J,W;const m=[],C=[ct+lt];if(!r||o&&!this.flowHaveTasks(o)){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 E=this.generateDagreGraph(r,a,s,C,l,u,c),_={},p=r.clusters||[],v=p.map(U=>U.cluster),y=v.filter(U=>U.type.endsWith("SubflowGraphCluster")).map(U=>U.taskNode.uid),g=Object.fromEntries(r.nodes.concat(c).map(U=>[U.uid,U]));for(const U of p)if(!l[U.cluster.uid]&&!u.has(U.cluster.uid)){((T=(b=U.cluster.taskNode)==null?void 0:b.task)==null?void 0:T.type)==="io.kestra.core.tasks.flows.Dag"&&y.push(U.cluster.taskNode.uid);for(const I of U.nodes)_[I]=U.cluster;const ne=U.cluster.uid,me=E.node(ne),Re=U.parents?U.parents[U.parents.length-1]:void 0,xe=this.computeClusterColor(U.cluster);m.push({id:ne,type:"cluster",parentNode:Re,position:this.getNodePosition(me,Re?E.node(Re):void 0),style:{width:ne===lt&&s?et.TRIGGER_CLUSTER_WIDTH+"px":me.width+"px",height:ne===lt&&!s?et.TRIGGER_CLUSTER_HEIGHT+"px":me.height+"px"},data:{collapsable:!0,color:xe,taskNode:U.cluster.taskNode,unused:U.cluster.taskNode?g[U.cluster.taskNode.uid].unused:!1},class:`ks-topology-${xe}-border rounded p-2`})}for(const U of r.nodes.concat(c))if(!a.includes(U.uid)){const ne=E.node(U.uid);let me="task";this.isClusterRootOrEnd(U)?me="dot":U.type.includes("GraphTrigger")?me="trigger":U.type==="collapsedcluster"&&(me="collapsedcluster");const Re=this.nodeColor(U,u),xe=d||((R=(A=U.task)==null?void 0:A.type)==null?void 0:R.includes("$"))||y.some(I=>U.uid.startsWith(I+"."));m.push({id:U.uid,type:me,position:this.getNodePosition(ne,_[U.uid]?E.node(_[U.uid].uid):void 0),style:{width:this.getNodeWidth(U)+"px",height:this.getNodeHeight(U)+"px"},sourcePosition:s?te.Position.Right:te.Position.Bottom,targetPosition:s?te.Position.Left:te.Position.Top,parentNode:_[U.uid]?_[U.uid].uid:void 0,draggable:me==="task"?!xe:!1,data:{node:U,namespace:((j=(V=(F=_[U.uid])==null?void 0:F.taskNode)==null?void 0:V.task)==null?void 0:j.namespace)??n,flowId:((D=(M=(Z=_[U.uid])==null?void 0:Z.taskNode)==null?void 0:M.task)==null?void 0:D.flowId)??t,isFlowable:((J=_[U.uid])==null?void 0:J.uid)===ct+U.uid&&!U.type.endsWith("SubflowGraphTask"),color:Re,expandable:this.isExpandableTask(U,_,l,h),isReadOnly:xe,iconComponent:this.isCollapsedCluster(U)?"lightning-bolt":null,executionId:U.executionId,unused:U.unused},class:U.type==="collapsedcluster"?`ks-topology-${Re}-border rounded`:""})}const k=v.filter(U=>U.taskNode).map(U=>U.taskNode.uid),N=r.edges??[];for(const U of N){const ne=this.replaceIfCollapsed(U.source,U.target,l,a);if(ne){const me=this.getEdgeColor(U,g,_);m.push({id:ne.source+"|"+ne.target,source:ne.source,target:ne.target,type:"edge",markerEnd:this.isClusterRootOrEnd(g[ne.target])?"":{id:"marker-"+(g[ne.target].branchType?(W=g[ne.target].branchType)==null?void 0:W.toLocaleLowerCase():"custom"),type:te.MarkerType.ArrowClosed,color:me?`var(--ks-border-${me})`:"var(--ks-topology-edge-color)"},data:{haveAdd:!d&&f&&this.haveAdd(U,g,k,y),haveDashArray:g[U.source].type.endsWith("GraphTrigger")||g[U.target].type.endsWith("GraphTrigger")||U.source.startsWith(lt),color:me,unused:U.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+lt?"success":e.type.endsWith("SubflowGraphCluster")?"primary":e.branchType==="ERROR"?"danger":"blue"},isExpandableTask(e,t,n,r){var o,a;return Object.values(n).includes(e.uid)||this.isCollapsedCluster(e)?!0:e.type.endsWith("SubflowGraphTask")&&((a=(o=t[e.uid])==null?void 0:o.uid)==null?void 0:a.replace(ct,""))!==e.uid&&r}};let Kt;async function Bv(){if(Kt)return Kt;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(n=>n.useMarkdownParser);return Kt=await(e.default??e)(),Kt}var nn={exports:{}},Vv=nn.exports,Tc;function xv(){return Tc||(Tc=1,function(e,t){(function(n,r,o){e.exports=o(),e.exports.default=o()})("slugify",Vv,function(){var n=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"}`),r=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 o(a,s){if(typeof a!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var l=r[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,d=a.normalize().split("").reduce(function(f,h){var m=l[h];return m===void 0&&(m=n[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 o.extend=function(a){Object.assign(n,a)},o})}(nn)),nn.exports}var Mv=xv();const ef=L.getDefaultExportFromCjs(Mv);ef.extend({"(":"-",")":""});function _t(e){return ef(e,{lower:!0,locale:"en"})}function tf(e,t){return Array.isArray(t)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(t.length===0||typeof t[0]=="string")}function At(e){const t=e.title.replaceAll(/\.([a-zA-Z])/g,(n,r)=>` ${r.toUpperCase()}`);return t.charAt(0).toUpperCase()+t.slice(1)}/*!
|
|
1
|
+
"use strict";var Rh=Object.create;var rs=Object.defineProperty;var Dh=Object.getOwnPropertyDescriptor;var Ph=Object.getOwnPropertyNames;var Bh=Object.getPrototypeOf,Vh=Object.prototype.hasOwnProperty;var xh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ph(t))!Vh.call(e,o)&&o!==n&&rs(e,o,{get:()=>t[o],enumerable:!(r=Dh(t,o))||r.enumerable});return e};var Mh=(e,t,n)=>(n=e!=null?Rh(Bh(e)):{},xh(t||!e||!e.__esModule?rs(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vt=require("yaml"),L=require("./FlowYamlUtils-DejB6qmY.cjs"),i=require("vue"),$h=require("humanize-duration"),$t=require("moment"),qh=require("moment-timezone"),te=require("@vue-flow/core"),Dn=require("@vue-flow/controls"),Fh=require("@popperjs/core"),on=require("vue-router"),nt={TASKS:"TASKS",TRIGGERS:"TRIGGERS",TASK_RUNNERS:"TASK_RUNNERS"},H={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_",Uh={EXECUTIONS:"executions",TASKRUNS:"taskruns"},Hh={ALL:"all",ERROR:"error",HIDDEN:"hidden",DEFAULT:"all"},et={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},Gh={STORAGE_KEY:"view-type",SOURCE:"source",SOURCE_TOPOLOGY:"source-topology",SOURCE_DOC:"source-doc",TOPOLOGY:"topology",SOURCE_BLUEPRINTS:"source-blueprints"},zh={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"},jh={SAME_TAB:"same tab",NEW_TAB:"new tab"},Wh={INPROGRESS:"IN-PROGRESS"},Kh={lineWidth:0},is=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Yh={stringify:L.stringify,parse:L.parse,pairsToMap:L.pairsToMap,extractTask(e,t){for(const n of is){const r=L.extractBlock({source:e,section:n,key:t});if(r)return r}},_extractTask(e,t,n){function r(a){if(a){if(a instanceof vt.YAMLMap&&a.get("type")!==void 0&&t===a.get("id"))return n?n(a):a;if(a.items)for(const[s,l]of a.items.entries()){let u;if(l instanceof vt.YAMLMap?u=r(l):u=r(l.value),u&&(n&&(a instanceof vt.YAMLMap?a.set(l.key.value,u):a.items[s]=u),!n&&u))return u}}}const o=r(e.contents);if(o!==void 0)return n?new vt.Document(o):new vt.Document(o)},replaceTaskInDocument(e,t,n,r="tasks",o="id"){return L.replaceBlockInDocument({source:e,section:r,keyName:o,key:t,newContent:n})},sort:L.sort,getAllCharts:L.getAllCharts,getChartAtPosition:L.getChartAtPosition,localizeElementAtIndex:L.localizeElementAtIndex,getTaskType:L.getTypeAtPosition,swapTasks(e,t,n){const r=vt.parseDocument(e),o=this._extractTask(r,t),a=this._extractTask(r,n);return vt.visit(r,{Pair(s,l){if(l.key.value==="dependsOn"&&l.value.items.map(u=>u.value).includes(n))throw{message:"dependency task",messageOptions:{taskId:n}}}}),this._extractTask(r,t,()=>a),this._extractTask(r,n,()=>o),r.toString(Kh)},insertTask(e,t,n,r,o){return L.insertBlock({source:e,section:"tasks",newBlock:n,refKey:t,position:r,parentKey:o})},insertSection(e,t,n){return L.insertBlock({source:t,section:e,newBlock:n})},insertErrorInFlowable:L.insertErrorInFlowable,deleteSection(e,t,n){return L.deleteBlock({source:e,section:t,key:n})},deleteTask(e,t,n){return(n===nt.TASKS?["tasks","errors"]:["triggers"]).reduce((o,a)=>L.deleteBlock({source:o,section:a,key:t}),e)},getLastTask(e,t){return L.getLastBlock({source:e,section:"tasks",parentKey:t})},checkTaskAlreadyExist(e,t){return L.checkBlockAlreadyExists({source:e,section:"tasks",newContent:t,keyName:"id"})},isParentChildrenRelation(e,t,n){return L.isParentChildrenRelation({source:e,sections:is,key1:t,key2:n,keyName:"id"})},replaceIdAndNamespace:L.replaceIdAndNamespace,updateMetadata:L.updateMetadata,cleanMetadata:L.cleanMetadata,getMetadata:L.getMetadata,deleteMetadata:L.deleteMetadata,flowHaveTasks:L.flowHaveTasks,extractPluginDefault:L.extractPluginDefault,replacePluginDefaultsInDocument:L.replacePluginDefaultsInDocument,deletePluginDefaults:L.deletePluginDefaults,extractFieldFromMaps:L.extractFieldFromMaps,getVersionAtPosition:L.getVersionAtPosition},Fe=e=>{const t=document.querySelector(":root"),n=t?getComputedStyle(t):null;return n==null?void 0:n.getPropertyValue(e)};var Pn,os;function Xh(){if(os)return Pn;os=1;function e(t){return function(n,r,o){for(var a=-1,s=Object(n),l=o(n),u=l.length;u--;){var c=l[t?u:++a];if(r(s[c],c,s)===!1)break}return n}}return Pn=e,Pn}var Bn,as;function La(){if(as)return Bn;as=1;var e=Xh(),t=e();return Bn=t,Bn}var Vn,ss;function Ta(){if(ss)return Vn;ss=1;var e=La(),t=L.requireKeys();function n(r,o){return r&&e(r,o,t)}return Vn=n,Vn}var xn,ls;function Zh(){if(ls)return xn;ls=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return xn=t,xn}var Mn,us;function Jh(){if(us)return Mn;us=1;function e(t){return this.__data__.has(t)}return Mn=e,Mn}var $n,cs;function _d(){if(cs)return $n;cs=1;var e=L.require_MapCache(),t=Zh(),n=Jh();function r(o){var a=-1,s=o==null?0:o.length;for(this.__data__=new e;++a<s;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,$n=r,$n}var qn,ds;function Qh(){if(ds)return qn;ds=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return qn=e,qn}var Fn,fs;function Ed(){if(fs)return Fn;fs=1;function e(t,n){return t.has(n)}return Fn=e,Fn}var Un,hs;function yd(){if(hs)return Un;hs=1;var e=_d(),t=Qh(),n=Ed(),r=1,o=2;function a(s,l,u,c,d,f){var h=u&r,m=s.length,C=l.length;if(m!=C&&!(h&&C>m))return!1;var E=f.get(s),_=f.get(l);if(E&&_)return E==l&&_==s;var p=-1,v=!0,y=u&o?new e:void 0;for(f.set(s,l),f.set(l,s);++p<m;){var g=s[p],k=l[p];if(c)var N=h?c(k,g,p,l,s,f):c(g,k,p,s,l,f);if(N!==void 0){if(N)continue;v=!1;break}if(y){if(!t(l,function(b,T){if(!n(y,T)&&(g===b||d(g,b,u,c,f)))return y.push(T)})){v=!1;break}}else if(!(g===k||d(g,k,u,c,f))){v=!1;break}}return f.delete(s),f.delete(l),v}return Un=a,Un}var Hn,ms;function em(){if(ms)return Hn;ms=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Hn=e,Hn}var Gn,ps;function Ia(){if(ps)return Gn;ps=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Gn=e,Gn}var zn,gs;function tm(){if(gs)return zn;gs=1;var e=L.require_Symbol(),t=L.require_Uint8Array(),n=L.requireEq(),r=yd(),o=em(),a=Ia(),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]",E="[object String]",_="[object Symbol]",p="[object ArrayBuffer]",v="[object DataView]",y=e?e.prototype:void 0,g=y?y.valueOf:void 0;function k(N,b,T,A,R,U,V){switch(T){case v:if(N.byteLength!=b.byteLength||N.byteOffset!=b.byteOffset)return!1;N=N.buffer,b=b.buffer;case p:return!(N.byteLength!=b.byteLength||!U(new t(N),new t(b)));case u:case c:case h:return n(+N,+b);case d:return N.name==b.name&&N.message==b.message;case m:case E:return N==b+"";case f:var j=o;case C:var Z=A&s;if(j||(j=a),N.size!=b.size&&!Z)return!1;var M=V.get(N);if(M)return M==b;A|=l,V.set(N,b);var D=r(j(N),j(b),A,R,U,V);return V.delete(N),D;case _:if(g)return g.call(N)==g.call(b)}return!1}return zn=k,zn}var jn,vs;function nm(){if(vs)return jn;vs=1;var e=L.require_getAllKeys(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,s,l,u,c,d){var f=l&t,h=e(a),m=h.length,C=e(s),E=C.length;if(m!=E&&!f)return!1;for(var _=m;_--;){var p=h[_];if(!(f?p in s:r.call(s,p)))return!1}var v=d.get(a),y=d.get(s);if(v&&y)return v==s&&y==a;var g=!0;d.set(a,s),d.set(s,a);for(var k=f;++_<m;){p=h[_];var N=a[p],b=s[p];if(u)var T=f?u(b,N,p,s,a,d):u(N,b,p,a,s,d);if(!(T===void 0?N===b||c(N,b,l,u,d):T)){g=!1;break}k||(k=p=="constructor")}if(g&&!k){var A=a.constructor,R=s.constructor;A!=R&&"constructor"in a&&"constructor"in s&&!(typeof A=="function"&&A instanceof A&&typeof R=="function"&&R instanceof R)&&(g=!1)}return d.delete(a),d.delete(s),g}return jn=o,jn}var Wn,_s;function rm(){if(_s)return Wn;_s=1;var e=L.require_Stack(),t=yd(),n=tm(),r=nm(),o=L.require_getTag(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsTypedArray(),u=1,c="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function C(E,_,p,v,y,g){var k=a(E),N=a(_),b=k?d:o(E),T=N?d:o(_);b=b==c?f:b,T=T==c?f:T;var A=b==f,R=T==f,U=b==T;if(U&&s(E)){if(!s(_))return!1;k=!0,A=!1}if(U&&!A)return g||(g=new e),k||l(E)?t(E,_,p,v,y,g):n(E,_,b,p,v,y,g);if(!(p&u)){var V=A&&m.call(E,"__wrapped__"),j=R&&m.call(_,"__wrapped__");if(V||j){var Z=V?E.value():E,M=j?_.value():_;return g||(g=new e),y(Z,M,p,v,g)}}return U?(g||(g=new e),r(E,_,p,v,y,g)):!1}return Wn=C,Wn}var Kn,Es;function bd(){if(Es)return Kn;Es=1;var e=rm(),t=L.requireIsObjectLike();function n(r,o,a,s,l){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,s,n,l)}return Kn=n,Kn}var Yn,ys;function im(){if(ys)return Yn;ys=1;var e=L.require_Stack(),t=bd(),n=1,r=2;function o(a,s,l,u){var c=l.length,d=c,f=!u;if(a==null)return!d;for(a=Object(a);c--;){var h=l[c];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<d;){h=l[c];var m=h[0],C=a[m],E=h[1];if(f&&h[2]){if(C===void 0&&!(m in a))return!1}else{var _=new e;if(u)var p=u(C,E,m,a,s,_);if(!(p===void 0?t(E,C,n|r,u,_):p))return!1}}return!0}return Yn=o,Yn}var Xn,bs;function kd(){if(bs)return Xn;bs=1;var e=L.requireIsObject();function t(n){return n===n&&!e(n)}return Xn=t,Xn}var Zn,ks;function om(){if(ks)return Zn;ks=1;var e=kd(),t=L.requireKeys();function n(r){for(var o=t(r),a=o.length;a--;){var s=o[a],l=r[s];o[a]=[s,l,e(l)]}return o}return Zn=n,Zn}var Jn,Cs;function Cd(){if(Cs)return Jn;Cs=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Jn=e,Jn}var Qn,Ns;function am(){if(Ns)return Qn;Ns=1;var e=im(),t=om(),n=Cd();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===o||e(s,o,a)}}return Qn=r,Qn}var er,ws;function Bt(){if(ws)return er;ws=1;var e=L.require_baseGetTag(),t=L.requireIsObjectLike(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return er=r,er}var tr,Ss;function Oa(){if(Ss)return tr;Ss=1;var e=L.requireIsArray(),t=Bt(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,s){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return tr=o,tr}var nr,Ls;function sm(){if(Ls)return nr;Ls=1;var e=L.require_MapCache(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var s=arguments,l=o?o.apply(this,s):s[0],u=a.cache;if(u.has(l))return u.get(l);var c=r.apply(this,s);return a.cache=u.set(l,c)||u,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,nr=n,nr}var rr,Ts;function lm(){if(Ts)return rr;Ts=1;var e=sm(),t=500;function n(r){var o=e(r,function(s){return a.size===t&&a.clear(),s}),a=o.cache;return o}return rr=n,rr}var ir,Is;function um(){if(Is)return ir;Is=1;var e=lm(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(s,l,u,c){a.push(u?c.replace(n,"$1"):l||s)}),a});return ir=r,ir}var or,Os;function gn(){if(Os)return or;Os=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return or=e,or}var ar,As;function cm(){if(As)return ar;As=1;var e=L.require_Symbol(),t=gn(),n=L.requireIsArray(),r=Bt(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(l){if(typeof l=="string")return l;if(n(l))return t(l,s)+"";if(r(l))return a?a.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return ar=s,ar}var sr,Rs;function Nd(){if(Rs)return sr;Rs=1;var e=cm();function t(n){return n==null?"":e(n)}return sr=t,sr}var lr,Ds;function vn(){if(Ds)return lr;Ds=1;var e=L.requireIsArray(),t=Oa(),n=um(),r=Nd();function o(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return lr=o,lr}var ur,Ps;function Gt(){if(Ps)return ur;Ps=1;var e=Bt();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ur=t,ur}var cr,Bs;function _n(){if(Bs)return cr;Bs=1;var e=vn(),t=Gt();function n(r,o){o=e(o,r);for(var a=0,s=o.length;r!=null&&a<s;)r=r[t(o[a++])];return a&&a==s?r:void 0}return cr=n,cr}var dr,Vs;function dm(){if(Vs)return dr;Vs=1;var e=_n();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return dr=t,dr}var fr,xs;function fm(){if(xs)return fr;xs=1;function e(t,n){return t!=null&&n in Object(t)}return fr=e,fr}var hr,Ms;function wd(){if(Ms)return hr;Ms=1;var e=vn(),t=L.requireIsArguments(),n=L.requireIsArray(),r=L.require_isIndex(),o=L.requireIsLength(),a=Gt();function s(l,u,c){u=e(u,l);for(var d=-1,f=u.length,h=!1;++d<f;){var m=a(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&&o(f)&&r(m,f)&&(n(l)||t(l)))}return hr=s,hr}var mr,$s;function Sd(){if($s)return mr;$s=1;var e=fm(),t=wd();function n(r,o){return r!=null&&t(r,o,e)}return mr=n,mr}var pr,qs;function hm(){if(qs)return pr;qs=1;var e=bd(),t=dm(),n=Sd(),r=Oa(),o=kd(),a=Cd(),s=Gt(),l=1,u=2;function c(d,f){return r(d)&&o(f)?a(s(d),f):function(h){var m=t(h,d);return m===void 0&&m===f?n(h,d):e(f,m,l|u)}}return pr=c,pr}var gr,Fs;function kt(){if(Fs)return gr;Fs=1;function e(t){return t}return gr=e,gr}var vr,Us;function Ld(){if(Us)return vr;Us=1;function e(t){return function(n){return n==null?void 0:n[t]}}return vr=e,vr}var _r,Hs;function mm(){if(Hs)return _r;Hs=1;var e=_n();function t(n){return function(r){return e(r,n)}}return _r=t,_r}var Er,Gs;function pm(){if(Gs)return Er;Gs=1;var e=Ld(),t=mm(),n=Oa(),r=Gt();function o(a){return n(a)?e(r(a)):t(a)}return Er=o,Er}var yr,zs;function ot(){if(zs)return yr;zs=1;var e=am(),t=hm(),n=kt(),r=L.requireIsArray(),o=pm();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return yr=a,yr}var br,js;function Td(){if(js)return br;js=1;var e=L.require_baseAssignValue(),t=Ta(),n=ot();function r(o,a){var s={};return a=n(a,3),t(o,function(l,u,c){e(s,u,a(l,u,c))}),s}return br=r,br}var gm=Td();const Wt=L.getDefaultExportFromCjs(gm),K=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},vm={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_m=["aria-hidden","aria-label"],Em=["fill","width","height"],ym={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"},bm={key:0};function km(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ym,[n.title?(i.openBlock(),i.createElementBlock("title",bm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Em))],16,_m)}const Cm=K(vm,[["render",km]]),Nm={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wm=["aria-hidden","aria-label"],Sm=["fill","width","height"],Lm={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"},Tm={key:0};function Im(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lm,[n.title?(i.openBlock(),i.createElementBlock("title",Tm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sm))],16,wm)}const Om=K(Nm,[["render",Im]]),Am={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],Dm=["fill","width","height"],Pm={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"},Bm={key:0};function Vm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon play-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pm,[n.title?(i.openBlock(),i.createElementBlock("title",Bm,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Dm))],16,Rm)}const xm=K(Am,[["render",Vm]]),Mm={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$m=["aria-hidden","aria-label"],qm=["fill","width","height"],Fm={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"},Um={key:0};function Hm(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon close-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Fm,[n.title?(i.openBlock(),i.createElementBlock("title",Um,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,qm))],16,$m)}const sa=K(Mm,[["render",Hm]]),Gm={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zm=["aria-hidden","aria-label"],jm=["fill","width","height"],Wm={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"},Km={key:0};function Ym(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Wm,[n.title?(i.openBlock(),i.createElementBlock("title",Km,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,jm))],16,zm)}const Xm=K(Gm,[["render",Ym]]),Zm={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jm=["aria-hidden","aria-label"],Qm=["fill","width","height"],ep={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"},tp={key:0};function np(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ep,[n.title?(i.openBlock(),i.createElementBlock("title",tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qm))],16,Jm)}const rp=K(Zm,[["render",np]]),ip={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},op=["aria-hidden","aria-label"],ap=["fill","width","height"],sp={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"},lp={key:0};function up(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",sp,[n.title?(i.openBlock(),i.createElementBlock("title",lp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ap))],16,op)}const la=K(ip,[["render",up]]),cp={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dp=["aria-hidden","aria-label"],fp=["fill","width","height"],hp={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"},mp={key:0};function pp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",hp,[n.title?(i.openBlock(),i.createElementBlock("title",mp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,fp))],16,dp)}const gp=K(cp,[["render",pp]]),vp={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Ep=["fill","width","height"],yp={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"},bp={key:0};function kp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",yp,[n.title?(i.openBlock(),i.createElementBlock("title",bp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Ep))],16,_p)}const Cp=K(vp,[["render",kp]]),Np={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wp=["aria-hidden","aria-label"],Sp=["fill","width","height"],Lp={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"},Tp={key:0};function Ip(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon refresh-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Lp,[n.title?(i.openBlock(),i.createElementBlock("title",Tp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Sp))],16,wp)}const Ws=K(Np,[["render",Ip]]),Op={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ap=["aria-hidden","aria-label"],Rp=["fill","width","height"],Dp={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"},Pp={key:0};function Bp(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon cancel-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Dp,[n.title?(i.openBlock(),i.createElementBlock("title",Pp,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Rp))],16,Ap)}const Ks=K(Op,[["render",Bp]]),re=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:gp,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:rp,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Om,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:xm,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:sa,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:Xm,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:la,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:sa,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Cm,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Ks,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:Cp,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:Ws,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:Ws,isRunning:!1,isKillable:!1,isFailed:!1}});class Ce{static get CREATED(){return re.CREATED.name}static get RESTARTED(){return re.RESTARTED.name}static get SUCCESS(){return re.SUCCESS.name}static get RUNNING(){return re.RUNNING.name}static get KILLING(){return re.KILLING.name}static get KILLED(){return re.KILLED.name}static get FAILED(){return re.FAILED.name}static get WARNING(){return re.WARNING.name}static get PAUSED(){return re.PAUSED.name}static get CANCELLED(){return re.CANCELLED.name}static get QUEUED(){return re.QUEUED.name}static get RETRYING(){return re.RETRYING.name}static get RETRIED(){return re.RETRIED.name}static isRunning(t){return re[t]&&re[t].isRunning}static isKillable(t){return re[t]&&re[t].isKillable}static isPaused(t){return re[t]&&re[t]===re.PAUSED}static isFailed(t){return re[t]&&re[t].isFailed}static isQueued(t){return re[t]&&re[t]===re.QUEUED}static allStates(){return Wt(re,t=>({key:t.name,icon:t.icon,color:""}))}static arrayAllStates(){return Object.values(re)}static colorClass(){return Wt(re,t=>t.colorClass)}static color(){return Wt(re,t=>Fe("--bs-"+t.colorClass))}static getStateColor(t){return re[t].color}static icon(){return Wt(re,t=>t.icon)}static getTerminatedStates(){return Object.values(re).filter(t=>!t.isRunning).map(t=>t.name)}}const Vp={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"}},xp="dateFormat",Mp="timezone",ge={capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),dateFilter:(e,t)=>{var a,s;const n=(a=i.getCurrentInstance())==null?void 0:a.appContext.config.globalProperties.$moment().locale(),r=(s=i.getCurrentInstance())==null?void 0:s.appContext.config.globalProperties.$moment(e).locale(n);let o;return t==="iso"?o="YYYY-MM-DD HH:mm:ss.SSS":o=t??localStorage.getItem(xp)??"llll",r.tz(localStorage.getItem(Mp)??qh.tz.guess()).format(o)},splitFirst(e,t){return e.split(t).slice(1).join(t)},duration(e){return $t.duration(e,$t.ISO_8601).asMilliseconds()/1e3},humanDuration(e,t){return t=t||{maxDecimalPoints:2},t.spacer="",t.language=localStorage.getItem("lang")||"en",t.languages=Vp,t.largest=2,typeof e!="number"&&(e=this.duration(e)),$h(e*1e3,t).replace(/\.([0-9])s$/i,".$10s")},afterLastDot(e){return e.split(".").pop()},distinctFilter(e,t,n){return n.indexOf(e)===t}};function Aa(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 kr,Ys;function $p(){if(Ys)return kr;Ys=1;var e=L.require_baseClone(),t=4;function n(r){return e(r,t)}return kr=n,kr}var Cr,Xs;function Ra(){if(Xs)return Cr;Xs=1;function e(t){return function(){return t}}return Cr=e,Cr}var Nr,Zs;function qp(){if(Zs)return Nr;Zs=1;var e=L.requireIsArrayLike();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var s=o.length,l=r?s:-1,u=Object(o);(r?l--:++l<s)&&a(u[l],l,u)!==!1;);return o}}return Nr=t,Nr}var wr,Js;function En(){if(Js)return wr;Js=1;var e=Ta(),t=qp(),n=t(e);return wr=n,wr}var Sr,Qs;function Id(){if(Qs)return Sr;Qs=1;var e=kt();function t(n){return typeof n=="function"?n:e}return Sr=t,Sr}var Lr,el;function Od(){if(el)return Lr;el=1;var e=L.require_arrayEach(),t=En(),n=Id(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s))}return Lr=o,Lr}var Tr,tl;function Ad(){return tl||(tl=1,Tr=Od()),Tr}var Ir,nl;function Fp(){if(nl)return Ir;nl=1;var e=En();function t(n,r){var o=[];return e(n,function(a,s,l){r(a,s,l)&&o.push(a)}),o}return Ir=t,Ir}var Or,rl;function Rd(){if(rl)return Or;rl=1;var e=L.require_arrayFilter(),t=Fp(),n=ot(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:t;return l(a,n(s,3))}return Or=o,Or}var Ar,il;function Up(){if(il)return Ar;il=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,o){return r!=null&&t.call(r,o)}return Ar=n,Ar}var Rr,ol;function Dd(){if(ol)return Rr;ol=1;var e=Up(),t=wd();function n(r,o){return r!=null&&t(r,o,e)}return Rr=n,Rr}var Dr,al;function Hp(){if(al)return Dr;al=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArguments(),r=L.requireIsArray(),o=L.requireIsArrayLike(),a=L.requireIsBuffer(),s=L.require_isPrototype(),l=L.requireIsTypedArray(),u="[object Map]",c="[object Set]",d=Object.prototype,f=d.hasOwnProperty;function h(m){if(m==null)return!0;if(o(m)&&(r(m)||typeof m=="string"||typeof m.splice=="function"||a(m)||l(m)||n(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 E in m)if(f.call(m,E))return!1;return!0}return Dr=h,Dr}var Pr,sl;function Pd(){if(sl)return Pr;sl=1;function e(t){return t===void 0}return Pr=e,Pr}var Br,ll;function Bd(){if(ll)return Br;ll=1;var e=En(),t=L.requireIsArrayLike();function n(r,o){var a=-1,s=t(r)?Array(r.length):[];return e(r,function(l,u,c){s[++a]=o(l,u,c)}),s}return Br=n,Br}var Vr,ul;function Vd(){if(ul)return Vr;ul=1;var e=gn(),t=ot(),n=Bd(),r=L.requireIsArray();function o(a,s){var l=r(a)?e:n;return l(a,t(s,3))}return Vr=o,Vr}var xr,cl;function Gp(){if(cl)return xr;cl=1;function e(t,n,r,o){var a=-1,s=t==null?0:t.length;for(o&&s&&(r=t[++a]);++a<s;)r=n(r,t[a],a,t);return r}return xr=e,xr}var Mr,dl;function zp(){if(dl)return Mr;dl=1;function e(t,n,r,o,a){return a(t,function(s,l,u){r=o?(o=!1,s):n(r,s,l,u)}),r}return Mr=e,Mr}var $r,fl;function xd(){if(fl)return $r;fl=1;var e=Gp(),t=En(),n=ot(),r=zp(),o=L.requireIsArray();function a(s,l,u){var c=o(s)?e:r,d=arguments.length<3;return c(s,n(l,4),u,d,t)}return $r=a,$r}var qr,hl;function jp(){if(hl)return qr;hl=1;var e=L.require_baseGetTag(),t=L.requireIsArray(),n=L.requireIsObjectLike(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return qr=o,qr}var Fr,ml;function Wp(){if(ml)return Fr;ml=1;var e=Ld(),t=e("length");return Fr=t,Fr}var Ur,pl;function Kp(){if(pl)return Ur;pl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+e+o+a+"]");function u(c){return l.test(c)}return Ur=u,Ur}var Hr,gl;function Yp(){if(gl)return Hr;gl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",l="["+o+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+u+")",d="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",C=c+"?",E="["+a+"]?",_="(?:"+m+"(?:"+[d,f,h].join("|")+")"+E+C+")*",p=E+C+_,v="(?:"+[d+l+"?",l,f,h,s].join("|")+")",y=RegExp(u+"(?="+u+")|"+v+p,"g");function g(k){for(var N=y.lastIndex=0;y.test(k);)++N;return N}return Hr=g,Hr}var Gr,vl;function Xp(){if(vl)return Gr;vl=1;var e=Wp(),t=Kp(),n=Yp();function r(o){return t(o)?n(o):e(o)}return Gr=r,Gr}var zr,_l;function Zp(){if(_l)return zr;_l=1;var e=L.require_baseKeys(),t=L.require_getTag(),n=L.requireIsArrayLike(),r=jp(),o=Xp(),a="[object Map]",s="[object Set]";function l(u){if(u==null)return 0;if(n(u))return r(u)?o(u):u.length;var c=t(u);return c==a||c==s?u.size:e(u).length}return zr=l,zr}var jr,El;function Jp(){if(El)return jr;El=1;var e=L.require_arrayEach(),t=L.require_baseCreate(),n=Ta(),r=ot(),o=L.require_getPrototype(),a=L.requireIsArray(),s=L.requireIsBuffer(),l=L.requireIsFunction(),u=L.requireIsObject(),c=L.requireIsTypedArray();function d(f,h,m){var C=a(f),E=C||s(f)||c(f);if(h=r(h,4),m==null){var _=f&&f.constructor;E?m=C?new _:[]:u(f)?m=l(_)?t(o(f)):{}:m={}}return(E?e:n)(f,function(p,v,y){return h(m,p,v,y)}),m}return jr=d,jr}var Wr,yl;function Qp(){if(yl)return Wr;yl=1;var e=L.require_Symbol(),t=L.requireIsArguments(),n=L.requireIsArray(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Wr=o,Wr}var Kr,bl;function Da(){if(bl)return Kr;bl=1;var e=L.require_arrayPush(),t=Qp();function n(r,o,a,s,l){var u=-1,c=r.length;for(a||(a=t),l||(l=[]);++u<c;){var d=r[u];o>0&&a(d)?o>1?n(d,o-1,a,s,l):e(l,d):s||(l[l.length]=d)}return l}return Kr=n,Kr}var Yr,kl;function eg(){if(kl)return Yr;kl=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Yr=e,Yr}var Xr,Cl;function Md(){if(Cl)return Xr;Cl=1;var e=eg(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,l=-1,u=t(s.length-o,0),c=Array(u);++l<u;)c[l]=s[o+l];l=-1;for(var d=Array(o+1);++l<o;)d[l]=s[l];return d[o]=a(c),e(r,this,d)}}return Xr=n,Xr}var Zr,Nl;function tg(){if(Nl)return Zr;Nl=1;var e=Ra(),t=L.require_defineProperty(),n=kt(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return Zr=r,Zr}var Jr,wl;function ng(){if(wl)return Jr;wl=1;var e=800,t=16,n=Date.now;function r(o){var a=0,s=0;return function(){var l=n(),u=t-(l-s);if(s=l,u>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Jr=r,Jr}var Qr,Sl;function $d(){if(Sl)return Qr;Sl=1;var e=tg(),t=ng(),n=t(e);return Qr=n,Qr}var ei,Ll;function yn(){if(Ll)return ei;Ll=1;var e=kt(),t=Md(),n=$d();function r(o,a){return n(t(o,a,e),o+"")}return ei=r,ei}var ti,Tl;function qd(){if(Tl)return ti;Tl=1;function e(t,n,r,o){for(var a=t.length,s=r+(o?1:-1);o?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return ti=e,ti}var ni,Il;function rg(){if(Il)return ni;Il=1;function e(t){return t!==t}return ni=e,ni}var ri,Ol;function ig(){if(Ol)return ri;Ol=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return ri=e,ri}var ii,Al;function og(){if(Al)return ii;Al=1;var e=qd(),t=rg(),n=ig();function r(o,a,s){return a===a?n(o,a,s):e(o,t,s)}return ii=r,ii}var oi,Rl;function ag(){if(Rl)return oi;Rl=1;var e=og();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return oi=t,oi}var ai,Dl;function sg(){if(Dl)return ai;Dl=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return ai=e,ai}var si,Pl;function lg(){if(Pl)return si;Pl=1;function e(){}return si=e,si}var li,Bl;function ug(){if(Bl)return li;Bl=1;var e=L.require_Set(),t=lg(),n=Ia(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return li=o,li}var ui,Vl;function cg(){if(Vl)return ui;Vl=1;var e=_d(),t=ag(),n=sg(),r=Ed(),o=ug(),a=Ia(),s=200;function l(u,c,d){var f=-1,h=t,m=u.length,C=!0,E=[],_=E;if(d)C=!1,h=n;else if(m>=s){var p=c?null:o(u);if(p)return a(p);C=!1,h=r,_=new e}else _=c?[]:E;e:for(;++f<m;){var v=u[f],y=c?c(v):v;if(v=d||v!==0?v:0,C&&y===y){for(var g=_.length;g--;)if(_[g]===y)continue e;c&&_.push(y),E.push(v)}else h(_,y,d)||(_!==E&&_.push(y),E.push(v))}return E}return ui=l,ui}var ci,xl;function Fd(){if(xl)return ci;xl=1;var e=L.requireIsArrayLike(),t=L.requireIsObjectLike();function n(r){return t(r)&&e(r)}return ci=n,ci}var di,Ml;function dg(){if(Ml)return di;Ml=1;var e=Da(),t=yn(),n=cg(),r=Fd(),o=t(function(a){return n(e(a,1,r,!0))});return di=o,di}var fi,$l;function fg(){if($l)return fi;$l=1;var e=gn();function t(n,r){return e(r,function(o){return n[o]})}return fi=t,fi}var hi,ql;function Ud(){if(ql)return hi;ql=1;var e=fg(),t=L.requireKeys();function n(r){return r==null?[]:e(r,t(r))}return hi=n,hi}var mi,Fl;function ze(){if(Fl)return mi;Fl=1;var e;if(typeof Aa=="function")try{e={clone:$p(),constant:Ra(),each:Ad(),filter:Rd(),has:Dd(),isArray:L.requireIsArray(),isEmpty:Hp(),isFunction:L.requireIsFunction(),isUndefined:Pd(),keys:L.requireKeys(),map:Vd(),reduce:xd(),size:Zp(),transform:Jp(),union:dg(),values:Ud()}}catch{}return e||(e=window._),mi=e,mi}var pi,Ul;function Pa(){if(Ul)return pi;Ul=1;var e=ze();pi=o;var t="\0",n="\0",r="";function o(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[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(d){return this._label=d,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(d){return e.isFunction(d)||(d=e.constant(d)),this._defaultNodeLabelFn=d,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return e.keys(this._nodes)},o.prototype.sources=function(){var d=this;return e.filter(this.nodes(),function(f){return e.isEmpty(d._in[f])})},o.prototype.sinks=function(){var d=this;return e.filter(this.nodes(),function(f){return e.isEmpty(d._out[f])})},o.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},o.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]=n,this._children[d]={},this._children[n][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)},o.prototype.node=function(d){return this._nodes[d]},o.prototype.hasNode=function(d){return e.has(this._nodes,d)},o.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},o.prototype.setParent=function(d,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=n;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},o.prototype._removeFromParentsChildList=function(d){delete this._children[this._parent[d]][d]},o.prototype.parent=function(d){if(this._isCompound){var f=this._parent[d];if(f!==n)return f}},o.prototype.children=function(d){if(e.isUndefined(d)&&(d=n),this._isCompound){var f=this._children[d];if(f)return e.keys(f)}else{if(d===n)return this.nodes();if(this.hasNode(d))return[]}},o.prototype.predecessors=function(d){var f=this._preds[d];if(f)return e.keys(f)},o.prototype.successors=function(d){var f=this._sucs[d];if(f)return e.keys(f)},o.prototype.neighbors=function(d){var f=this.predecessors(d);if(f)return e.union(f,this.successors(d))},o.prototype.isLeaf=function(d){var f;return this.isDirected()?f=this.successors(d):f=this.neighbors(d),f.length===0},o.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(E,_){d(_)&&f.setNode(_,E)}),e.each(this._edgeObjs,function(E){f.hasNode(E.v)&&f.hasNode(E.w)&&f.setEdge(E,h.edge(E))});var m={};function C(E){var _=h.parent(E);return _===void 0||f.hasNode(_)?(m[E]=_,_):_ in m?m[_]:C(_)}return this._isCompound&&e.each(f.nodes(),function(E){f.setParent(E,C(E))}),f},o.prototype.setDefaultEdgeLabel=function(d){return e.isFunction(d)||(d=e.constant(d)),this._defaultEdgeLabelFn=d,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(d,f){var h=this,m=arguments;return e.reduce(d,function(C,E){return m.length>1?h.setEdge(C,E,f):h.setEdge(C,E),E}),this},o.prototype.setEdge=function(){var d,f,h,m,C=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(d=E.v,f=E.w,h=E.name,arguments.length===2&&(m=arguments[1],C=!0)):(d=E,f=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],C=!0)),d=""+d,f=""+f,e.isUndefined(h)||(h=""+h);var _=l(this._isDirected,d,f,h);if(e.has(this._edgeLabels,_))return C&&(this._edgeLabels[_]=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[_]=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[_]=p,a(this._preds[f],d),a(this._sucs[d],f),this._in[f][_]=p,this._out[d][_]=p,this._edgeCount++,this},o.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]},o.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)},o.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},o.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}},o.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}},o.prototype.nodeEdges=function(d,f){var h=this.inEdges(d,f);if(h)return h.concat(this.outEdges(d,f))};function a(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,E=""+h;if(!d&&C>E){var _=C;C=E,E=_}return C+r+E+r+(e.isUndefined(m)?t:m)}function u(d,f,h,m){var C=""+f,E=""+h;if(!d&&C>E){var _=C;C=E,E=_}var p={v:C,w:E};return m&&(p.name=m),p}function c(d,f){return l(d,f.v,f.w,f.name)}return pi}var gi,Hl;function hg(){return Hl||(Hl=1,gi="2.1.8"),gi}var vi,Gl;function mg(){return Gl||(Gl=1,vi={Graph:Pa(),version:hg()}),vi}var _i,zl;function pg(){if(zl)return _i;zl=1;var e=ze(),t=Pa();_i={write:n,read:a};function n(s){var l={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:r(s),edges:o(s)};return e.isUndefined(s.graph())||(l.value=e.clone(s.graph())),l}function r(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 o(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 a(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 _i}var Ei,jl;function gg(){if(jl)return Ei;jl=1;var e=ze();Ei=t;function t(n){var r={},o=[],a;function s(l){e.has(r,l)||(r[l]=!0,a.push(l),e.each(n.successors(l),s),e.each(n.predecessors(l),s))}return e.each(n.nodes(),function(l){a=[],s(l),a.length&&o.push(a)}),o}return Ei}var yi,Wl;function Hd(){if(Wl)return yi;Wl=1;var e=ze();yi=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(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var o=this._keyIndices;if(n=String(n),!e.has(o,n)){var a=this._arr,s=a.length;return o[n]=s,a.push({key:n,priority:r}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var o=this._keyIndices[n];if(r>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[o].priority+" New: "+r);this._arr[o].priority=r,this._decrease(o)},t.prototype._heapify=function(n){var r=this._arr,o=2*n,a=o+1,s=n;o<r.length&&(s=r[o].priority<r[s].priority?o:s,a<r.length&&(s=r[a].priority<r[s].priority?a:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var r=this._arr,o=r[n].priority,a;n!==0&&(a=n>>1,!(r[a].priority<o));)this._swap(n,a),n=a},t.prototype._swap=function(n,r){var o=this._arr,a=this._keyIndices,s=o[n],l=o[r];o[n]=l,o[r]=s,a[l.key]=n,a[s.key]=r},yi}var bi,Kl;function Gd(){if(Kl)return bi;Kl=1;var e=ze(),t=Hd();bi=r;var n=e.constant(1);function r(a,s,l,u){return o(a,String(s),l||n,u||function(c){return a.outEdges(c)})}function o(a,s,l,u){var c={},d=new t,f,h,m=function(C){var E=C.v!==f?C.v:C.w,_=c[E],p=l(C),v=h.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+C+" Weight: "+p);v<_.distance&&(_.distance=v,_.predecessor=f,d.decrease(E,v))};for(a.nodes().forEach(function(C){var E=C===s?0:Number.POSITIVE_INFINITY;c[C]={distance:E},d.add(C,E)});d.size()>0&&(f=d.removeMin(),h=c[f],h.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(m);return c}return bi}var ki,Yl;function vg(){if(Yl)return ki;Yl=1;var e=Gd(),t=ze();ki=n;function n(r,o,a){return t.transform(r.nodes(),function(s,l){s[l]=e(r,l,o,a)},{})}return ki}var Ci,Xl;function zd(){if(Xl)return Ci;Xl=1;var e=ze();Ci=t;function t(n){var r=0,o=[],a={},s=[];function l(u){var c=a[u]={onStack:!0,lowlink:r,index:r++};if(o.push(u),n.successors(u).forEach(function(h){e.has(a,h)?a[h].onStack&&(c.lowlink=Math.min(c.lowlink,a[h].index)):(l(h),c.lowlink=Math.min(c.lowlink,a[h].lowlink))}),c.lowlink===c.index){var d=[],f;do f=o.pop(),a[f].onStack=!1,d.push(f);while(u!==f);s.push(d)}}return n.nodes().forEach(function(u){e.has(a,u)||l(u)}),s}return Ci}var Ni,Zl;function _g(){if(Zl)return Ni;Zl=1;var e=ze(),t=zd();Ni=n;function n(r){return e.filter(t(r),function(o){return o.length>1||o.length===1&&r.hasEdge(o[0],o[0])})}return Ni}var wi,Jl;function Eg(){if(Jl)return wi;Jl=1;var e=ze();wi=n;var t=e.constant(1);function n(o,a,s){return r(o,a||t,s||function(l){return o.outEdges(l)})}function r(o,a,s){var l={},u=o.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=a(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],E=d[m],_=h[m],p=C.distance+E.distance;p<_.distance&&(_.distance=p,_.predecessor=E.predecessor)})})}),l}return wi}var Si,Ql;function jd(){if(Ql)return Si;Ql=1;var e=ze();Si=t,t.CycleException=n;function t(r){var o={},a={},s=[];function l(u){if(e.has(a,u))throw new n;e.has(o,u)||(a[u]=!0,o[u]=!0,e.each(r.predecessors(u),l),delete a[u],s.push(u))}if(e.each(r.sinks(),l),e.size(o)!==r.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,Si}var Li,eu;function yg(){if(eu)return Li;eu=1;var e=jd();Li=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return Li}var Ti,tu;function Wd(){if(tu)return Ti;tu=1;var e=ze();Ti=t;function t(r,o,a){e.isArray(o)||(o=[o]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),l=[],u={};return e.each(o,function(c){if(!r.hasNode(c))throw new Error("Graph does not have node: "+c);n(r,c,a==="post",u,s,l)}),l}function n(r,o,a,s,l,u){e.has(s,o)||(s[o]=!0,a||u.push(o),e.each(l(o),function(c){n(r,c,a,s,l,u)}),a&&u.push(o))}return Ti}var Ii,nu;function bg(){if(nu)return Ii;nu=1;var e=Wd();Ii=t;function t(n,r){return e(n,r,"post")}return Ii}var Oi,ru;function kg(){if(ru)return Oi;ru=1;var e=Wd();Oi=t;function t(n,r){return e(n,r,"pre")}return Oi}var Ai,iu;function Cg(){if(iu)return Ai;iu=1;var e=ze(),t=Pa(),n=Hd();Ai=r;function r(o,a){var s=new t,l={},u=new n,c;function d(h){var m=h.v===c?h.w:h.v,C=u.priority(m);if(C!==void 0){var E=a(h);E<C&&(l[m]=c,u.decrease(m,E))}}if(o.nodeCount()===0)return s;e.each(o.nodes(),function(h){u.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),u.decrease(o.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: "+o);f=!0}o.nodeEdges(c).forEach(d)}return s}return Ai}var Ri,ou;function Ng(){return ou||(ou=1,Ri={components:gg(),dijkstra:Gd(),dijkstraAll:vg(),findCycles:_g(),floydWarshall:Eg(),isAcyclic:yg(),postorder:bg(),preorder:kg(),prim:Cg(),tarjan:zd(),topsort:jd()}),Ri}var Di,au;function wg(){if(au)return Di;au=1;var e=mg();return Di={Graph:e.Graph,json:pg(),alg:Ng(),version:e.version},Di}var Pi,su;function Ke(){if(su)return Pi;su=1;var e;if(typeof Aa=="function")try{e=wg()}catch{}return e||(e=window.graphlib),Pi=e,Pi}var Bi,lu;function bn(){if(lu)return Bi;lu=1;var e=L.requireEq(),t=L.requireIsArrayLike(),n=L.require_isIndex(),r=L.requireIsObject();function o(a,s,l){if(!r(l))return!1;var u=typeof s;return(u=="number"?t(l)&&n(s,l.length):u=="string"&&s in l)?e(l[s],a):!1}return Bi=o,Bi}var Vi,uu;function Sg(){if(uu)return Vi;uu=1;var e=yn(),t=L.requireEq(),n=bn(),r=L.requireKeysIn(),o=Object.prototype,a=o.hasOwnProperty,s=e(function(l,u){l=Object(l);var c=-1,d=u.length,f=d>2?u[2]:void 0;for(f&&n(u[0],u[1],f)&&(d=1);++c<d;)for(var h=u[c],m=r(h),C=-1,E=m.length;++C<E;){var _=m[C],p=l[_];(p===void 0||t(p,o[_])&&!a.call(l,_))&&(l[_]=h[_])}return l});return Vi=s,Vi}var xi,cu;function Lg(){if(cu)return xi;cu=1;var e=ot(),t=L.requireIsArrayLike(),n=L.requireKeys();function r(o){return function(a,s,l){var u=Object(a);if(!t(a)){var c=e(s,3);a=n(a),s=function(f){return c(u[f],f,u)}}var d=o(a,s,l);return d>-1?u[c?a[d]:d]:void 0}}return xi=r,xi}var Mi,du;function Tg(){if(du)return Mi;du=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Mi=t,Mi}var $i,fu;function Ig(){if(fu)return $i;fu=1;var e=Tg(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return $i=n,$i}var qi,hu;function Og(){if(hu)return qi;hu=1;var e=Ig(),t=L.requireIsObject(),n=Bt(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;function u(c){if(typeof c=="number")return c;if(n(c))return r;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=a.test(c);return f||s.test(c)?l(c.slice(2),f?2:8):o.test(c)?r:+c}return qi=u,qi}var Fi,mu;function Kd(){if(mu)return Fi;mu=1;var e=Og(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var a=o<0?-1:1;return a*n}return o===o?o:0}return Fi=r,Fi}var Ui,pu;function Ag(){if(pu)return Ui;pu=1;var e=Kd();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return Ui=t,Ui}var Hi,gu;function Rg(){if(gu)return Hi;gu=1;var e=qd(),t=ot(),n=Ag(),r=Math.max;function o(a,s,l){var u=a==null?0:a.length;if(!u)return-1;var c=l==null?0:n(l);return c<0&&(c=r(u+c,0)),e(a,t(s,3),c)}return Hi=o,Hi}var Gi,vu;function Dg(){if(vu)return Gi;vu=1;var e=Lg(),t=Rg(),n=e(t);return Gi=n,Gi}var zi,_u;function Yd(){if(_u)return zi;_u=1;var e=Da();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return zi=t,zi}var ji,Eu;function Pg(){if(Eu)return ji;Eu=1;var e=La(),t=Id(),n=L.requireKeysIn();function r(o,a){return o==null?o:e(o,t(a),n)}return ji=r,ji}var Wi,yu;function Bg(){if(yu)return Wi;yu=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Wi=e,Wi}var Ki,bu;function Ba(){if(bu)return Ki;bu=1;var e=Bt();function t(n,r,o){for(var a=-1,s=n.length;++a<s;){var l=n[a],u=r(l);if(u!=null&&(c===void 0?u===u&&!e(u):o(u,c)))var c=u,d=l}return d}return Ki=t,Ki}var Yi,ku;function Vg(){if(ku)return Yi;ku=1;function e(t,n){return t>n}return Yi=e,Yi}var Xi,Cu;function xg(){if(Cu)return Xi;Cu=1;var e=Ba(),t=Vg(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return Xi=r,Xi}var Zi,Nu;function Xd(){if(Nu)return Zi;Nu=1;var e=L.require_baseAssignValue(),t=L.requireEq();function n(r,o,a){(a!==void 0&&!t(r[o],a)||a===void 0&&!(o in r))&&e(r,o,a)}return Zi=n,Zi}var Ji,wu;function Mg(){if(wu)return Ji;wu=1;var e=L.require_baseGetTag(),t=L.require_getPrototype(),n=L.requireIsObjectLike(),r="[object Object]",o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,u=s.call(Object);function c(d){if(!n(d)||e(d)!=r)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 Ji=c,Ji}var Qi,Su;function Zd(){if(Su)return Qi;Su=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Qi=e,Qi}var eo,Lu;function $g(){if(Lu)return eo;Lu=1;var e=L.require_copyObject(),t=L.requireKeysIn();function n(r){return e(r,t(r))}return eo=n,eo}var to,Tu;function qg(){if(Tu)return to;Tu=1;var e=Xd(),t=L.require_cloneBuffer(),n=L.require_cloneTypedArray(),r=L.require_copyArray(),o=L.require_initCloneObject(),a=L.requireIsArguments(),s=L.requireIsArray(),l=Fd(),u=L.requireIsBuffer(),c=L.requireIsFunction(),d=L.requireIsObject(),f=Mg(),h=L.requireIsTypedArray(),m=Zd(),C=$g();function E(_,p,v,y,g,k,N){var b=m(_,v),T=m(p,v),A=N.get(T);if(A){e(_,v,A);return}var R=k?k(b,T,v+"",_,p,N):void 0,U=R===void 0;if(U){var V=s(T),j=!V&&u(T),Z=!V&&!j&&h(T);R=T,V||j||Z?s(b)?R=b:l(b)?R=r(b):j?(U=!1,R=t(T,!0)):Z?(U=!1,R=n(T,!0)):R=[]:f(T)||a(T)?(R=b,a(b)?R=C(b):(!d(b)||c(b))&&(R=o(T))):U=!1}U&&(N.set(T,R),g(R,T,y,k,N),N.delete(T)),e(_,v,R)}return to=E,to}var no,Iu;function Fg(){if(Iu)return no;Iu=1;var e=L.require_Stack(),t=Xd(),n=La(),r=qg(),o=L.requireIsObject(),a=L.requireKeysIn(),s=Zd();function l(u,c,d,f,h){u!==c&&n(c,function(m,C){if(h||(h=new e),o(m))r(u,c,C,d,l,f,h);else{var E=f?f(s(u,C),m,C+"",u,c,h):void 0;E===void 0&&(E=m),t(u,C,E)}},a)}return no=l,no}var ro,Ou;function Ug(){if(Ou)return ro;Ou=1;var e=yn(),t=bn();function n(r){return e(function(o,a){var s=-1,l=a.length,u=l>1?a[l-1]:void 0,c=l>2?a[2]:void 0;for(u=r.length>3&&typeof u=="function"?(l--,u):void 0,c&&t(a[0],a[1],c)&&(u=l<3?void 0:u,l=1),o=Object(o);++s<l;){var d=a[s];d&&r(o,d,s,u)}return o})}return ro=n,ro}var io,Au;function Hg(){if(Au)return io;Au=1;var e=Fg(),t=Ug(),n=t(function(r,o,a){e(r,o,a)});return io=n,io}var oo,Ru;function Jd(){if(Ru)return oo;Ru=1;function e(t,n){return t<n}return oo=e,oo}var ao,Du;function Gg(){if(Du)return ao;Du=1;var e=Ba(),t=Jd(),n=kt();function r(o){return o&&o.length?e(o,n,t):void 0}return ao=r,ao}var so,Pu;function zg(){if(Pu)return so;Pu=1;var e=Ba(),t=ot(),n=Jd();function r(o,a){return o&&o.length?e(o,t(a,2),n):void 0}return so=r,so}var lo,Bu;function jg(){if(Bu)return lo;Bu=1;var e=L.require_root(),t=function(){return e.Date.now()};return lo=t,lo}var uo,Vu;function Wg(){if(Vu)return uo;Vu=1;var e=L.require_assignValue(),t=vn(),n=L.require_isIndex(),r=L.requireIsObject(),o=Gt();function a(s,l,u,c){if(!r(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=o(l[d]),E=u;if(C==="__proto__"||C==="constructor"||C==="prototype")return s;if(d!=h){var _=m[C];E=c?c(_,C,m):void 0,E===void 0&&(E=r(_)?_:n(l[d+1])?[]:{})}e(m,C,E),m=m[C]}return s}return uo=a,uo}var co,xu;function Kg(){if(xu)return co;xu=1;var e=_n(),t=Wg(),n=vn();function r(o,a,s){for(var l=-1,u=a.length,c={};++l<u;){var d=a[l],f=e(o,d);s(f,d)&&t(c,n(d,o),f)}return c}return co=r,co}var fo,Mu;function Yg(){if(Mu)return fo;Mu=1;var e=Kg(),t=Sd();function n(r,o){return e(r,o,function(a,s){return t(r,s)})}return fo=n,fo}var ho,$u;function Xg(){if($u)return ho;$u=1;var e=Yd(),t=Md(),n=$d();function r(o){return n(t(o,void 0,e),o+"")}return ho=r,ho}var mo,qu;function Zg(){if(qu)return mo;qu=1;var e=Yg(),t=Xg(),n=t(function(r,o){return r==null?{}:e(r,o)});return mo=n,mo}var po,Fu;function Jg(){if(Fu)return po;Fu=1;var e=Math.ceil,t=Math.max;function n(r,o,a,s){for(var l=-1,u=t(e((o-r)/(a||1)),0),c=Array(u);u--;)c[s?u:++l]=r,r+=a;return c}return po=n,po}var go,Uu;function Qg(){if(Uu)return go;Uu=1;var e=Jg(),t=bn(),n=Kd();function r(o){return function(a,s,l){return l&&typeof l!="number"&&t(a,s,l)&&(s=l=void 0),a=n(a),s===void 0?(s=a,a=0):s=n(s),l=l===void 0?a<s?1:-1:n(l),e(a,s,l,o)}}return go=r,go}var vo,Hu;function ev(){if(Hu)return vo;Hu=1;var e=Qg(),t=e();return vo=t,vo}var _o,Gu;function tv(){if(Gu)return _o;Gu=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return _o=e,_o}var Eo,zu;function nv(){if(zu)return Eo;zu=1;var e=Bt();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,s=n===n,l=e(n),u=r!==void 0,c=r===null,d=r===r,f=e(r);if(!c&&!f&&!l&&n>r||l&&u&&d&&!c&&!f||a&&u&&d||!o&&d||!s)return 1;if(!a&&!l&&!f&&n<r||f&&o&&s&&!a&&!l||c&&o&&s||!u&&s||!d)return-1}return 0}return Eo=t,Eo}var yo,ju;function rv(){if(ju)return yo;ju=1;var e=nv();function t(n,r,o){for(var a=-1,s=n.criteria,l=r.criteria,u=s.length,c=o.length;++a<u;){var d=e(s[a],l[a]);if(d){if(a>=c)return d;var f=o[a];return d*(f=="desc"?-1:1)}}return n.index-r.index}return yo=t,yo}var bo,Wu;function iv(){if(Wu)return bo;Wu=1;var e=gn(),t=_n(),n=ot(),r=Bd(),o=tv(),a=L.require_baseUnary(),s=rv(),l=kt(),u=L.requireIsArray();function c(d,f,h){f.length?f=e(f,function(E){return u(E)?function(_){return t(_,E.length===1?E[0]:E)}:E}):f=[l];var m=-1;f=e(f,a(n));var C=r(d,function(E,_,p){var v=e(f,function(y){return y(E)});return{criteria:v,index:++m,value:E}});return o(C,function(E,_){return s(E,_,h)})}return bo=c,bo}var ko,Ku;function ov(){if(Ku)return ko;Ku=1;var e=Da(),t=iv(),n=yn(),r=bn(),o=n(function(a,s){if(a==null)return[];var l=s.length;return l>1&&r(a,s[0],s[1])?s=[]:l>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return ko=o,ko}var Co,Yu;function av(){if(Yu)return Co;Yu=1;var e=Nd(),t=0;function n(r){var o=++t;return e(r)+o}return Co=n,Co}var No,Xu;function sv(){if(Xu)return No;Xu=1;function e(t,n,r){for(var o=-1,a=t.length,s=n.length,l={};++o<a;){var u=o<s?n[o]:void 0;r(l,t[o],u)}return l}return No=e,No}var wo,Zu;function lv(){if(Zu)return wo;Zu=1;var e=L.require_assignValue(),t=sv();function n(r,o){return t(r||[],o||[],e)}return wo=n,wo}var So,Ju;function he(){if(Ju)return So;Ju=1;var e;if(typeof Aa=="function")try{e={cloneDeep:L.requireCloneDeep(),constant:Ra(),defaults:Sg(),each:Ad(),filter:Rd(),find:Dg(),flatten:Yd(),forEach:Od(),forIn:Pg(),has:Dd(),isUndefined:Pd(),last:Bg(),map:Vd(),mapValues:Td(),max:xg(),merge:Hg(),min:Gg(),minBy:zg(),now:jg(),pick:Zg(),range:ev(),reduce:xd(),sortBy:ov(),uniqueId:av(),values:Ud(),zipObject:lv()}}catch{}return e||(e=window._),So=e,So}var Lo,Qu;function uv(){if(Qu)return Lo;Qu=1,Lo=e;function e(){var r={};r._next=r._prev=r,this._sentinel=r}e.prototype.dequeue=function(){var r=this._sentinel,o=r._prev;if(o!==r)return t(o),o},e.prototype.enqueue=function(r){var o=this._sentinel;r._prev&&r._next&&t(r),r._next=o._next,o._next._prev=r,o._next=r,r._prev=o},e.prototype.toString=function(){for(var r=[],o=this._sentinel,a=o._prev;a!==o;)r.push(JSON.stringify(a,n)),a=a._prev;return"["+r.join(", ")+"]"};function t(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,o){if(r!=="_next"&&r!=="_prev")return o}return Lo}var To,ec;function cv(){if(ec)return To;ec=1;var e=he(),t=Ke().Graph,n=uv();To=o;var r=e.constant(1);function o(c,d){if(c.nodeCount()<=1)return[];var f=l(c,d||r),h=a(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(m){return c.outEdges(m.v,m.w)}),!0)}function a(c,d,f){for(var h=[],m=d[d.length-1],C=d[0],E;c.nodeCount();){for(;E=C.dequeue();)s(c,d,f,E);for(;E=m.dequeue();)s(c,d,f,E);if(c.nodeCount()){for(var _=d.length-2;_>0;--_)if(E=d[_].dequeue(),E){h=h.concat(s(c,d,f,E,!0));break}}}return h}function s(c,d,f,h,m){var C=m?[]:void 0;return e.forEach(c.inEdges(h.v),function(E){var _=c.edge(E),p=c.node(E.v);m&&C.push({v:E.v,w:E.w}),p.out-=_,u(d,f,p)}),e.forEach(c.outEdges(h.v),function(E){var _=c.edge(E),p=E.w,v=c.node(p);v.in-=_,u(d,f,v)}),c.removeNode(h.v),C}function l(c,d){var f=new t,h=0,m=0;e.forEach(c.nodes(),function(_){f.setNode(_,{v:_,in:0,out:0})}),e.forEach(c.edges(),function(_){var p=f.edge(_.v,_.w)||0,v=d(_),y=p+v;f.setEdge(_.v,_.w,y),m=Math.max(m,f.node(_.v).out+=v),h=Math.max(h,f.node(_.w).in+=v)});var C=e.range(m+h+3).map(function(){return new n}),E=h+1;return e.forEach(f.nodes(),function(_){u(C,E,f.node(_))}),{graph:f,buckets:C,zeroIdx:E}}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 To}var Io,tc;function dv(){if(tc)return Io;tc=1;var e=he(),t=cv();Io={run:n,undo:o};function n(a){var s=a.graph().acyclicer==="greedy"?t(a,l(a)):r(a);e.forEach(s,function(u){var c=a.edge(u);a.removeEdge(u),c.forwardName=u.name,c.reversed=!0,a.setEdge(u.w,u.v,c,e.uniqueId("rev"))});function l(u){return function(c){return u.edge(c).weight}}}function r(a){var s=[],l={},u={};function c(d){e.has(u,d)||(u[d]=!0,l[d]=!0,e.forEach(a.outEdges(d),function(f){e.has(l,f.w)?s.push(f):c(f.w)}),delete l[d])}return e.forEach(a.nodes(),c),s}function o(a){e.forEach(a.edges(),function(s){var l=a.edge(s);if(l.reversed){a.removeEdge(s);var u=l.forwardName;delete l.reversed,delete l.forwardName,a.setEdge(s.w,s.v,l,u)}})}return Io}var Oo,nc;function Pe(){if(nc)return Oo;nc=1;var e=he(),t=Ke().Graph;Oo={addDummyNode:n,simplify:r,asNonCompoundGraph:o,successorWeights:a,predecessorWeights:s,intersectRect:l,buildLayerMatrix:u,normalizeRanks:c,removeEmptyRanks:d,addBorderNode:f,maxRank:h,partition:m,time:C,notime:E};function n(_,p,v,y){var g;do g=e.uniqueId(y);while(_.hasNode(g));return v.dummy=p,_.setNode(g,v),g}function r(_){var p=new t().setGraph(_.graph());return e.forEach(_.nodes(),function(v){p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){var y=p.edge(v.v,v.w)||{weight:0,minlen:1},g=_.edge(v);p.setEdge(v.v,v.w,{weight:y.weight+g.weight,minlen:Math.max(y.minlen,g.minlen)})}),p}function o(_){var p=new t({multigraph:_.isMultigraph()}).setGraph(_.graph());return e.forEach(_.nodes(),function(v){_.children(v).length||p.setNode(v,_.node(v))}),e.forEach(_.edges(),function(v){p.setEdge(v,_.edge(v))}),p}function a(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.outEdges(v),function(g){y[g.w]=(y[g.w]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function s(_){var p=e.map(_.nodes(),function(v){var y={};return e.forEach(_.inEdges(v),function(g){y[g.v]=(y[g.v]||0)+_.edge(g).weight}),y});return e.zipObject(_.nodes(),p)}function l(_,p){var v=_.x,y=_.y,g=p.x-v,k=p.y-y,N=_.width/2,b=_.height/2;if(!g&&!k)throw new Error("Not possible to find intersection inside of the rectangle");var T,A;return Math.abs(k)*N>Math.abs(g)*b?(k<0&&(b=-b),T=b*g/k,A=b):(g<0&&(N=-N),T=N,A=N*k/g),{x:v+T,y:y+A}}function u(_){var p=e.map(e.range(h(_)+1),function(){return[]});return e.forEach(_.nodes(),function(v){var y=_.node(v),g=y.rank;e.isUndefined(g)||(p[g][y.order]=v)}),p}function c(_){var p=e.min(e.map(_.nodes(),function(v){return _.node(v).rank}));e.forEach(_.nodes(),function(v){var y=_.node(v);e.has(y,"rank")&&(y.rank-=p)})}function d(_){var p=e.min(e.map(_.nodes(),function(k){return _.node(k).rank})),v=[];e.forEach(_.nodes(),function(k){var N=_.node(k).rank-p;v[N]||(v[N]=[]),v[N].push(k)});var y=0,g=_.graph().nodeRankFactor;e.forEach(v,function(k,N){e.isUndefined(k)&&N%g!==0?--y:y&&e.forEach(k,function(b){_.node(b).rank+=y})})}function f(_,p,v,y){var g={width:0,height:0};return arguments.length>=4&&(g.rank=v,g.order=y),n(_,"border",g,p)}function h(_){return e.max(e.map(_.nodes(),function(p){var v=_.node(p).rank;if(!e.isUndefined(v))return v}))}function m(_,p){var v={lhs:[],rhs:[]};return e.forEach(_,function(y){p(y)?v.lhs.push(y):v.rhs.push(y)}),v}function C(_,p){var v=e.now();try{return p()}finally{console.log(_+" time: "+(e.now()-v)+"ms")}}function E(_,p){return p()}return Oo}var Ao,rc;function fv(){if(rc)return Ao;rc=1;var e=he(),t=Pe();Ao={run:n,undo:o};function n(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(s){r(a,s)})}function r(a,s){var l=s.v,u=a.node(l).rank,c=s.w,d=a.node(c).rank,f=s.name,h=a.edge(s),m=h.labelRank;if(d!==u+1){a.removeEdge(s);var C,E,_;for(_=0,++u;u<d;++_,++u)h.points=[],E={width:0,height:0,edgeLabel:h,edgeObj:s,rank:u},C=t.addDummyNode(a,"edge",E,"_d"),u===m&&(E.width=h.width,E.height=h.height,E.dummy="edge-label",E.labelpos=h.labelpos),a.setEdge(l,C,{weight:h.weight},f),_===0&&a.graph().dummyChains.push(C),l=C;a.setEdge(l,c,{weight:h.weight},f)}}function o(a){e.forEach(a.graph().dummyChains,function(s){var l=a.node(s),u=l.edgeLabel,c;for(a.setEdge(l.edgeObj,u);l.dummy;)c=a.successors(s)[0],a.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=a.node(s)})}return Ao}var Ro,ic;function an(){if(ic)return Ro;ic=1;var e=he();Ro={longestPath:t,slack:n};function t(r){var o={};function a(s){var l=r.node(s);if(e.has(o,s))return l.rank;o[s]=!0;var u=e.min(e.map(r.outEdges(s),function(c){return a(c.w)-r.edge(c).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),l.rank=u}e.forEach(r.sources(),a)}function n(r,o){return r.node(o.w).rank-r.node(o.v).rank-r.edge(o).minlen}return Ro}var Do,oc;function Qd(){if(oc)return Do;oc=1;var e=he(),t=Ke().Graph,n=an().slack;Do=r;function r(l){var u=new t({directed:!1}),c=l.nodes()[0],d=l.nodeCount();u.setNode(c,{});for(var f,h;o(u,l)<d;)f=a(u,l),h=u.hasNode(f.v)?n(l,f):-n(l,f),s(u,l,h);return u}function o(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)&&!n(u,f)&&(l.setNode(m,{}),l.setEdge(d,m,{}),c(m))})}return e.forEach(l.nodes(),c),l.nodeCount()}function a(l,u){return e.minBy(u.edges(),function(c){if(l.hasNode(c.v)!==l.hasNode(c.w))return n(u,c)})}function s(l,u,c){e.forEach(l.nodes(),function(d){u.node(d).rank+=c})}return Do}var Po,ac;function hv(){if(ac)return Po;ac=1;var e=he(),t=Qd(),n=an().slack,r=an().longestPath,o=Ke().alg.preorder,a=Ke().alg.postorder,s=Pe().simplify;Po=l,l.initLowLimValues=f,l.initCutValues=u,l.calcCutValue=d,l.leaveEdge=m,l.enterEdge=C,l.exchangeEdges=E;function l(y){y=s(y),r(y);var g=t(y);f(g),u(g,y);for(var k,N;k=m(g);)N=C(g,y,k),E(g,y,k,N)}function u(y,g){var k=a(y,y.nodes());k=k.slice(0,k.length-1),e.forEach(k,function(N){c(y,g,N)})}function c(y,g,k){var N=y.node(k),b=N.parent;y.edge(k,b).cutvalue=d(y,g,k)}function d(y,g,k){var N=y.node(k),b=N.parent,T=!0,A=g.edge(k,b),R=0;return A||(T=!1,A=g.edge(b,k)),R=A.weight,e.forEach(g.nodeEdges(k),function(U){var V=U.v===k,j=V?U.w:U.v;if(j!==b){var Z=V===T,M=g.edge(U).weight;if(R+=Z?M:-M,p(y,k,j)){var D=y.edge(k,j).cutvalue;R+=Z?-D:D}}}),R}function f(y,g){arguments.length<2&&(g=y.nodes()[0]),h(y,{},1,g)}function h(y,g,k,N,b){var T=k,A=y.node(N);return g[N]=!0,e.forEach(y.neighbors(N),function(R){e.has(g,R)||(k=h(y,g,k,R,N))}),A.low=T,A.lim=k++,b?A.parent=b:delete A.parent,k}function m(y){return e.find(y.edges(),function(g){return y.edge(g).cutvalue<0})}function C(y,g,k){var N=k.v,b=k.w;g.hasEdge(N,b)||(N=k.w,b=k.v);var T=y.node(N),A=y.node(b),R=T,U=!1;T.lim>A.lim&&(R=A,U=!0);var V=e.filter(g.edges(),function(j){return U===v(y,y.node(j.v),R)&&U!==v(y,y.node(j.w),R)});return e.minBy(V,function(j){return n(g,j)})}function E(y,g,k,N){var b=k.v,T=k.w;y.removeEdge(b,T),y.setEdge(N.v,N.w,{}),f(y),u(y,g),_(y,g)}function _(y,g){var k=e.find(y.nodes(),function(b){return!g.node(b).parent}),N=o(y,k);N=N.slice(1),e.forEach(N,function(b){var T=y.node(b).parent,A=g.edge(b,T),R=!1;A||(A=g.edge(T,b),R=!0),g.node(b).rank=g.node(T).rank+(R?A.minlen:-A.minlen)})}function p(y,g,k){return y.hasEdge(g,k)}function v(y,g,k){return k.low<=g.lim&&g.lim<=k.lim}return Po}var Bo,sc;function mv(){if(sc)return Bo;sc=1;var e=an(),t=e.longestPath,n=Qd(),r=hv();Bo=o;function o(u){switch(u.graph().ranker){case"network-simplex":l(u);break;case"tight-tree":s(u);break;case"longest-path":a(u);break;default:l(u)}}var a=t;function s(u){t(u),n(u)}function l(u){r(u)}return Bo}var Vo,lc;function pv(){if(lc)return Vo;lc=1;var e=he();Vo=t;function t(o){var a=r(o);e.forEach(o.graph().dummyChains,function(s){for(var l=o.node(s),u=l.edgeObj,c=n(o,a,u.v,u.w),d=c.path,f=c.lca,h=0,m=d[h],C=!0;s!==u.w;){if(l=o.node(s),C){for(;(m=d[h])!==f&&o.node(m).maxRank<l.rank;)h++;m===f&&(C=!1)}if(!C){for(;h<d.length-1&&o.node(m=d[h+1]).minRank<=l.rank;)h++;m=d[h]}o.setParent(s,m),s=o.successors(s)[0]}})}function n(o,a,s,l){var u=[],c=[],d=Math.min(a[s].low,a[l].low),f=Math.max(a[s].lim,a[l].lim),h,m;h=s;do h=o.parent(h),u.push(h);while(h&&(a[h].low>d||f>a[h].lim));for(m=h,h=l;(h=o.parent(h))!==m;)c.push(h);return{path:u.concat(c.reverse()),lca:m}}function r(o){var a={},s=0;function l(u){var c=s;e.forEach(o.children(u),l),a[u]={low:c,lim:s++}}return e.forEach(o.children(),l),a}return Vo}var xo,uc;function gv(){if(uc)return xo;uc=1;var e=he(),t=Pe();xo={run:n,cleanup:s};function n(l){var u=t.addDummyNode(l,"root",{},"_root"),c=o(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=a(l)+1;e.forEach(l.children(),function(m){r(l,u,f,h,d,c,m)}),l.graph().nodeRankFactor=f}function r(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 E=t.addBorderNode(l,"_bt"),_=t.addBorderNode(l,"_bb"),p=l.node(m);l.setParent(E,m),p.borderTop=E,l.setParent(_,m),p.borderBottom=_,e.forEach(C,function(v){r(l,u,c,d,f,h,v);var y=l.node(v),g=y.borderTop?y.borderTop:v,k=y.borderBottom?y.borderBottom:v,N=y.borderTop?d:2*d,b=g!==k?1:f-h[m]+1;l.setEdge(E,g,{weight:N,minlen:b,nestingEdge:!0}),l.setEdge(k,_,{weight:N,minlen:b,nestingEdge:!0})}),l.parent(m)||l.setEdge(u,E,{weight:0,minlen:f+h[m]})}function o(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 a(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 xo}var Mo,cc;function vv(){if(cc)return Mo;cc=1;var e=he(),t=Pe();Mo=n;function n(o){function a(s){var l=o.children(s),u=o.node(s);if(l.length&&e.forEach(l,a),e.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var c=u.minRank,d=u.maxRank+1;c<d;++c)r(o,"borderLeft","_bl",s,u,c),r(o,"borderRight","_br",s,u,c)}}e.forEach(o.children(),a)}function r(o,a,s,l,u,c){var d={width:0,height:0,rank:c,borderType:a},f=u[a][c-1],h=t.addDummyNode(o,"border",d,s);u[a][c]=h,o.setParent(h,l),f&&o.setEdge(f,h,{weight:1})}return Mo}var $o,dc;function _v(){if(dc)return $o;dc=1;var e=he();$o={adjust:t,undo:n};function t(c){var d=c.graph().rankdir.toLowerCase();(d==="lr"||d==="rl")&&r(c)}function n(c){var d=c.graph().rankdir.toLowerCase();(d==="bt"||d==="rl")&&a(c),(d==="lr"||d==="rl")&&(l(c),r(c))}function r(c){e.forEach(c.nodes(),function(d){o(c.node(d))}),e.forEach(c.edges(),function(d){o(c.edge(d))})}function o(c){var d=c.width;c.width=c.height,c.height=d}function a(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 $o}var qo,fc;function Ev(){if(fc)return qo;fc=1;var e=he();qo=t;function t(n){var r={},o=e.filter(n.nodes(),function(c){return!n.children(c).length}),a=e.max(e.map(o,function(c){return n.node(c).rank})),s=e.map(e.range(a+1),function(){return[]});function l(c){if(!e.has(r,c)){r[c]=!0;var d=n.node(c);s[d.rank].push(c),e.forEach(n.successors(c),l)}}var u=e.sortBy(o,function(c){return n.node(c).rank});return e.forEach(u,l),s}return qo}var Fo,hc;function yv(){if(hc)return Fo;hc=1;var e=he();Fo=t;function t(r,o){for(var a=0,s=1;s<o.length;++s)a+=n(r,o[s-1],o[s]);return a}function n(r,o,a){for(var s=e.zipObject(a,e.map(a,function(h,m){return m})),l=e.flatten(e.map(o,function(h){return e.sortBy(e.map(r.outEdges(h),function(m){return{pos:s[m.w],weight:r.edge(m).weight}}),"pos")}),!0),u=1;u<a.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 Fo}var Uo,mc;function bv(){if(mc)return Uo;mc=1;var e=he();Uo=t;function t(n,r){return e.map(r,function(o){var a=n.inEdges(o);if(a.length){var s=e.reduce(a,function(l,u){var c=n.edge(u),d=n.node(u.v);return{sum:l.sum+c.weight*d.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:o}})}return Uo}var Ho,pc;function kv(){if(pc)return Ho;pc=1;var e=he();Ho=t;function t(o,a){var s={};e.forEach(o,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(a.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 n(l)}function n(o){var a=[];function s(c){return function(d){d.merged||(e.isUndefined(d.barycenter)||e.isUndefined(c.barycenter)||d.barycenter>=c.barycenter)&&r(c,d)}}function l(c){return function(d){d.in.push(c),--d.indegree===0&&o.push(d)}}for(;o.length;){var u=o.pop();a.push(u),e.forEach(u.in.reverse(),s(u)),e.forEach(u.out,l(u))}return e.map(e.filter(a,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function r(o,a){var s=0,l=0;o.weight&&(s+=o.barycenter*o.weight,l+=o.weight),a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),o.vs=a.vs.concat(o.vs),o.barycenter=s/l,o.weight=l,o.i=Math.min(a.i,o.i),a.merged=!0}return Ho}var Go,gc;function Cv(){if(gc)return Go;gc=1;var e=he(),t=Pe();Go=n;function n(a,s){var l=t.partition(a,function(E){return e.has(E,"barycenter")}),u=l.lhs,c=e.sortBy(l.rhs,function(E){return-E.i}),d=[],f=0,h=0,m=0;u.sort(o(!!s)),m=r(d,c,m),e.forEach(u,function(E){m+=E.vs.length,d.push(E.vs),f+=E.barycenter*E.weight,h+=E.weight,m=r(d,c,m)});var C={vs:e.flatten(d,!0)};return h&&(C.barycenter=f/h,C.weight=h),C}function r(a,s,l){for(var u;s.length&&(u=e.last(s)).i<=l;)s.pop(),a.push(u.vs),l++;return l}function o(a){return function(s,l){return s.barycenter<l.barycenter?-1:s.barycenter>l.barycenter?1:a?l.i-s.i:s.i-l.i}}return Go}var zo,vc;function Nv(){if(vc)return zo;vc=1;var e=he(),t=bv(),n=kv(),r=Cv();zo=o;function o(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,E={};m&&(f=e.filter(f,function(k){return k!==m&&k!==C}));var _=t(l,f);e.forEach(_,function(k){if(l.children(k.v).length){var N=o(l,k.v,c,d);E[k.v]=N,e.has(N,"barycenter")&&s(k,N)}});var p=n(_,c);a(p,E);var v=r(p,d);if(m&&(v.vs=e.flatten([m,v.vs,C],!0),l.predecessors(m).length)){var y=l.node(l.predecessors(m)[0]),g=l.node(l.predecessors(C)[0]);e.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+g.order)/(v.weight+2),v.weight+=2}return v}function a(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 zo}var jo,_c;function wv(){if(_c)return jo;_c=1;var e=he(),t=Ke().Graph;jo=n;function n(o,a,s){var l=r(o),u=new t({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(c){return o.node(c)});return e.forEach(o.nodes(),function(c){var d=o.node(c),f=o.parent(c);(d.rank===a||d.minRank<=a&&a<=d.maxRank)&&(u.setNode(c),u.setParent(c,f||l),e.forEach(o[s](c),function(h){var m=h.v===c?h.w:h.v,C=u.edge(m,c),E=e.isUndefined(C)?0:C.weight;u.setEdge(m,c,{weight:o.edge(h).weight+E})}),e.has(d,"minRank")&&u.setNode(c,{borderLeft:d.borderLeft[a],borderRight:d.borderRight[a]}))}),u}function r(o){for(var a;o.hasNode(a=e.uniqueId("_root")););return a}return jo}var Wo,Ec;function Sv(){if(Ec)return Wo;Ec=1;var e=he();Wo=t;function t(n,r,o){var a={},s;e.forEach(o,function(l){for(var u=n.parent(l),c,d;u;){if(c=n.parent(u),c?(d=a[c],a[c]=u):(d=s,s=u),d&&d!==u){r.setEdge(d,u);return}u=c}})}return Wo}var Ko,yc;function Lv(){if(yc)return Ko;yc=1;var e=he(),t=Ev(),n=yv(),r=Nv(),o=wv(),a=Sv(),s=Ke().Graph,l=Pe();Ko=u;function u(h){var m=l.maxRank(h),C=c(h,e.range(1,m+1),"inEdges"),E=c(h,e.range(m-1,-1,-1),"outEdges"),_=t(h);f(h,_);for(var p=Number.POSITIVE_INFINITY,v,y=0,g=0;g<4;++y,++g){d(y%2?C:E,y%4>=2),_=l.buildLayerMatrix(h);var k=n(h,_);k<p&&(g=0,v=e.cloneDeep(_),p=k)}f(h,v)}function c(h,m,C){return e.map(m,function(E){return o(h,E,C)})}function d(h,m){var C=new s;e.forEach(h,function(E){var _=E.graph().root,p=r(E,_,C,m);e.forEach(p.vs,function(v,y){E.node(v).order=y}),a(E,C,p.vs)})}function f(h,m){e.forEach(m,function(C){e.forEach(C,function(E,_){h.node(E).order=_})})}return Ko}var Yo,bc;function Tv(){if(bc)return Yo;bc=1;var e=he(),t=Ke().Graph,n=Pe();Yo={positionX:C,findType1Conflicts:r,findType2Conflicts:o,addConflict:s,hasConflict:l,verticalAlignment:u,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:f,balance:m};function r(p,v){var y={};function g(k,N){var b=0,T=0,A=k.length,R=e.last(N);return e.forEach(N,function(U,V){var j=a(p,U),Z=j?p.node(j).order:A;(j||U===R)&&(e.forEach(N.slice(T,V+1),function(M){e.forEach(p.predecessors(M),function(D){var J=p.node(D),W=J.order;(W<b||Z<W)&&!(J.dummy&&p.node(M).dummy)&&s(y,D,M)})}),T=V+1,b=Z)}),N}return e.reduce(v,g),y}function o(p,v){var y={};function g(N,b,T,A,R){var U;e.forEach(e.range(b,T),function(V){U=N[V],p.node(U).dummy&&e.forEach(p.predecessors(U),function(j){var Z=p.node(j);Z.dummy&&(Z.order<A||Z.order>R)&&s(y,j,U)})})}function k(N,b){var T=-1,A,R=0;return e.forEach(b,function(U,V){if(p.node(U).dummy==="border"){var j=p.predecessors(U);j.length&&(A=p.node(j[0]).order,g(b,R,V,T,A),R=V,T=A)}g(b,R,b.length,A,N.length)}),b}return e.reduce(v,k),y}function a(p,v){if(p.node(v).dummy)return e.find(p.predecessors(v),function(y){return p.node(y).dummy})}function s(p,v,y){if(v>y){var g=v;v=y,y=g}var k=p[v];k||(p[v]=k={}),k[y]=!0}function l(p,v,y){if(v>y){var g=v;v=y,y=g}return e.has(p[v],y)}function u(p,v,y,g){var k={},N={},b={};return e.forEach(v,function(T){e.forEach(T,function(A,R){k[A]=A,N[A]=A,b[A]=R})}),e.forEach(v,function(T){var A=-1;e.forEach(T,function(R){var U=g(R);if(U.length){U=e.sortBy(U,function(D){return b[D]});for(var V=(U.length-1)/2,j=Math.floor(V),Z=Math.ceil(V);j<=Z;++j){var M=U[j];N[R]===R&&A<b[M]&&!l(y,R,M)&&(N[M]=R,N[R]=k[R]=k[M],A=b[M])}}})}),{root:k,align:N}}function c(p,v,y,g,k){var N={},b=d(p,v,y,k),T=k?"borderLeft":"borderRight";function A(V,j){for(var Z=b.nodes(),M=Z.pop(),D={};M;)D[M]?V(M):(D[M]=!0,Z.push(M),Z=Z.concat(j(M))),M=Z.pop()}function R(V){N[V]=b.inEdges(V).reduce(function(j,Z){return Math.max(j,N[Z.v]+b.edge(Z))},0)}function U(V){var j=b.outEdges(V).reduce(function(M,D){return Math.min(M,N[D.w]-b.edge(D))},Number.POSITIVE_INFINITY),Z=p.node(V);j!==Number.POSITIVE_INFINITY&&Z.borderType!==T&&(N[V]=Math.max(N[V],j))}return A(R,b.predecessors.bind(b)),A(U,b.successors.bind(b)),e.forEach(g,function(V){N[V]=N[y[V]]}),N}function d(p,v,y,g){var k=new t,N=p.graph(),b=E(N.nodesep,N.edgesep,g);return e.forEach(v,function(T){var A;e.forEach(T,function(R){var U=y[R];if(k.setNode(U),A){var V=y[A],j=k.edge(V,U);k.setEdge(V,U,Math.max(b(p,R,A),j||0))}A=R})}),k}function f(p,v){return e.minBy(e.values(v),function(y){var g=Number.NEGATIVE_INFINITY,k=Number.POSITIVE_INFINITY;return e.forIn(y,function(N,b){var T=_(p,b)/2;g=Math.max(N+T,g),k=Math.min(N-T,k)}),g-k})}function h(p,v){var y=e.values(v),g=e.min(y),k=e.max(y);e.forEach(["u","d"],function(N){e.forEach(["l","r"],function(b){var T=N+b,A=p[T],R;if(A!==v){var U=e.values(A);R=b==="l"?g-e.min(U):k-e.max(U),R&&(p[T]=e.mapValues(A,function(V){return V+R}))}})})}function m(p,v){return e.mapValues(p.ul,function(y,g){if(v)return p[v.toLowerCase()][g];var k=e.sortBy(e.map(p,g));return(k[1]+k[2])/2})}function C(p){var v=n.buildLayerMatrix(p),y=e.merge(r(p,v),o(p,v)),g={},k;e.forEach(["u","d"],function(b){k=b==="u"?v:e.values(v).reverse(),e.forEach(["l","r"],function(T){T==="r"&&(k=e.map(k,function(V){return e.values(V).reverse()}));var A=(b==="u"?p.predecessors:p.successors).bind(p),R=u(p,k,y,A),U=c(p,k,R.root,R.align,T==="r");T==="r"&&(U=e.mapValues(U,function(V){return-V})),g[b+T]=U})});var N=f(p,g);return h(g,N),m(g,p.graph().align)}function E(p,v,y){return function(g,k,N){var b=g.node(k),T=g.node(N),A=0,R;if(A+=b.width/2,e.has(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":R=-b.width/2;break;case"r":R=b.width/2;break}if(R&&(A+=y?R:-R),R=0,A+=(b.dummy?v:p)/2,A+=(T.dummy?v:p)/2,A+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":R=T.width/2;break;case"r":R=-T.width/2;break}return R&&(A+=y?R:-R),R=0,A}}function _(p,v){return p.node(v).width}return Yo}var Xo,kc;function Iv(){if(kc)return Xo;kc=1;var e=he(),t=Pe(),n=Tv().positionX;Xo=r;function r(a){a=t.asNonCompoundGraph(a),o(a),e.forEach(n(a),function(s,l){a.node(l).x=s})}function o(a){var s=t.buildLayerMatrix(a),l=a.graph().ranksep,u=0;e.forEach(s,function(c){var d=e.max(e.map(c,function(f){return a.node(f).height}));e.forEach(c,function(f){a.node(f).y=u+d/2}),u+=d+l})}return Xo}var Zo,Cc;function Ov(){if(Cc)return Zo;Cc=1;var e=he(),t=dv(),n=fv(),r=mv(),o=Pe().normalizeRanks,a=pv(),s=Pe().removeEmptyRanks,l=gv(),u=vv(),c=_v(),d=Lv(),f=Iv(),h=Pe(),m=Ke().Graph;Zo=C;function C(I,P){var q=P&&P.debugTiming?h.time:h.notime;q("layout",function(){var G=q(" buildLayoutGraph",function(){return A(I)});q(" runLayout",function(){E(G,q)}),q(" updateInputGraph",function(){_(I,G)})})}function E(I,P){P(" makeSpaceForEdgeLabels",function(){R(I)}),P(" removeSelfEdges",function(){F(I)}),P(" acyclic",function(){t.run(I)}),P(" nestingGraph.run",function(){l.run(I)}),P(" rank",function(){r(h.asNonCompoundGraph(I))}),P(" injectEdgeLabelProxies",function(){U(I)}),P(" removeEmptyRanks",function(){s(I)}),P(" nestingGraph.cleanup",function(){l.cleanup(I)}),P(" normalizeRanks",function(){o(I)}),P(" assignRankMinMax",function(){V(I)}),P(" removeEdgeLabelProxies",function(){j(I)}),P(" normalize.run",function(){n.run(I)}),P(" parentDummyChains",function(){a(I)}),P(" addBorderSegments",function(){u(I)}),P(" order",function(){d(I)}),P(" insertSelfEdges",function(){ne(I)}),P(" adjustCoordinateSystem",function(){c.adjust(I)}),P(" position",function(){f(I)}),P(" positionSelfEdges",function(){me(I)}),P(" removeBorderNodes",function(){W(I)}),P(" normalize.undo",function(){n.undo(I)}),P(" fixupEdgeLabelCoords",function(){D(I)}),P(" undoCoordinateSystem",function(){c.undo(I)}),P(" translateGraph",function(){Z(I)}),P(" assignNodeIntersects",function(){M(I)}),P(" reversePoints",function(){J(I)}),P(" acyclic.undo",function(){t.undo(I)})}function _(I,P){e.forEach(I.nodes(),function(q){var G=I.node(q),ee=P.node(q);G&&(G.x=ee.x,G.y=ee.y,P.children(q).length&&(G.width=ee.width,G.height=ee.height))}),e.forEach(I.edges(),function(q){var G=I.edge(q),ee=P.edge(q);G.points=ee.points,e.has(ee,"x")&&(G.x=ee.x,G.y=ee.y)}),I.graph().width=P.graph().width,I.graph().height=P.graph().height}var p=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],g=["width","height"],k={width:0,height:0},N=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(I){var P=new m({multigraph:!0,compound:!0}),q=xe(I.graph());return P.setGraph(e.merge({},v,Re(q,p),e.pick(q,y))),e.forEach(I.nodes(),function(G){var ee=xe(I.node(G));P.setNode(G,e.defaults(Re(ee,g),k)),P.setParent(G,I.parent(G))}),e.forEach(I.edges(),function(G){var ee=xe(I.edge(G));P.setEdge(G,e.merge({},b,Re(ee,N),e.pick(ee,T)))}),P}function R(I){var P=I.graph();P.ranksep/=2,e.forEach(I.edges(),function(q){var G=I.edge(q);G.minlen*=2,G.labelpos.toLowerCase()!=="c"&&(P.rankdir==="TB"||P.rankdir==="BT"?G.width+=G.labeloffset:G.height+=G.labeloffset)})}function U(I){e.forEach(I.edges(),function(P){var q=I.edge(P);if(q.width&&q.height){var G=I.node(P.v),ee=I.node(P.w),ce={rank:(ee.rank-G.rank)/2+G.rank,e:P};h.addDummyNode(I,"edge-proxy",ce,"_ep")}})}function V(I){var P=0;e.forEach(I.nodes(),function(q){var G=I.node(q);G.borderTop&&(G.minRank=I.node(G.borderTop).rank,G.maxRank=I.node(G.borderBottom).rank,P=e.max(P,G.maxRank))}),I.graph().maxRank=P}function j(I){e.forEach(I.nodes(),function(P){var q=I.node(P);q.dummy==="edge-proxy"&&(I.edge(q.e).labelRank=q.rank,I.removeNode(P))})}function Z(I){var P=Number.POSITIVE_INFINITY,q=0,G=Number.POSITIVE_INFINITY,ee=0,ce=I.graph(),pe=ce.marginx||0,Ie=ce.marginy||0;function St(we){var be=we.x,Me=we.y,st=we.width,Lt=we.height;P=Math.min(P,be-st/2),q=Math.max(q,be+st/2),G=Math.min(G,Me-Lt/2),ee=Math.max(ee,Me+Lt/2)}e.forEach(I.nodes(),function(we){St(I.node(we))}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.has(be,"x")&&St(be)}),P-=pe,G-=Ie,e.forEach(I.nodes(),function(we){var be=I.node(we);be.x-=P,be.y-=G}),e.forEach(I.edges(),function(we){var be=I.edge(we);e.forEach(be.points,function(Me){Me.x-=P,Me.y-=G}),e.has(be,"x")&&(be.x-=P),e.has(be,"y")&&(be.y-=G)}),ce.width=q-P+pe,ce.height=ee-G+Ie}function M(I){e.forEach(I.edges(),function(P){var q=I.edge(P),G=I.node(P.v),ee=I.node(P.w),ce,pe;q.points?(ce=q.points[0],pe=q.points[q.points.length-1]):(q.points=[],ce=ee,pe=G),q.points.unshift(h.intersectRect(G,ce)),q.points.push(h.intersectRect(ee,pe))})}function D(I){e.forEach(I.edges(),function(P){var q=I.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 J(I){e.forEach(I.edges(),function(P){var q=I.edge(P);q.reversed&&q.points.reverse()})}function W(I){e.forEach(I.nodes(),function(P){if(I.children(P).length){var q=I.node(P),G=I.node(q.borderTop),ee=I.node(q.borderBottom),ce=I.node(e.last(q.borderLeft)),pe=I.node(e.last(q.borderRight));q.width=Math.abs(pe.x-ce.x),q.height=Math.abs(ee.y-G.y),q.x=ce.x+q.width/2,q.y=G.y+q.height/2}}),e.forEach(I.nodes(),function(P){I.node(P).dummy==="border"&&I.removeNode(P)})}function F(I){e.forEach(I.edges(),function(P){if(P.v===P.w){var q=I.node(P.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:P,label:I.edge(P)}),I.removeEdge(P)}})}function ne(I){var P=h.buildLayerMatrix(I);e.forEach(P,function(q){var G=0;e.forEach(q,function(ee,ce){var pe=I.node(ee);pe.order=ce+G,e.forEach(pe.selfEdges,function(Ie){h.addDummyNode(I,"selfedge",{width:Ie.label.width,height:Ie.label.height,rank:pe.rank,order:ce+ ++G,e:Ie.e,label:Ie.label},"_se")}),delete pe.selfEdges})})}function me(I){e.forEach(I.nodes(),function(P){var q=I.node(P);if(q.dummy==="selfedge"){var G=I.node(q.e.v),ee=G.x+G.width/2,ce=G.y,pe=q.x-ee,Ie=G.height/2;I.setEdge(q.e,q.label),I.removeNode(P),q.label.points=[{x:ee+2*pe/3,y:ce-Ie},{x:ee+5*pe/6,y:ce-Ie},{x:ee+pe,y:ce},{x:ee+5*pe/6,y:ce+Ie},{x:ee+2*pe/3,y:ce+Ie}],q.label.x=q.x,q.label.y=q.y}})}function Re(I,P){return e.mapValues(e.pick(I,P),Number)}function xe(I){var P={};return e.forEach(I,function(q,G){P[G.toLowerCase()]=q}),P}return Zo}var Jo,Nc;function Av(){if(Nc)return Jo;Nc=1;var e=he(),t=Pe(),n=Ke().Graph;Jo={debugOrdering:r};function r(o){var a=t.buildLayerMatrix(o),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(o.nodes(),function(l){s.setNode(l,{label:l}),s.setParent(l,"layer"+o.node(l).rank)}),e.forEach(o.edges(),function(l){s.setEdge(l.v,l.w,{},l.name)}),e.forEach(a,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 Jo}var Qo,wc;function Rv(){return wc||(wc=1,Qo="0.8.5"),Qo}var ea,Sc;function Dv(){return Sc||(Sc=1,ea={graphlib:Ke(),layout:Ov(),debug:Av(),util:{time:Pe().time,notime:Pe().notime},version:Rv()}),ea}var Pv=Dv();const Lc=L.getDefaultExportFromCjs(Pv),lt="root.Triggers",tn={predecessorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.target===t){r.push(o);const a=this.predecessorsEdge(e,o.source);a.length>0&&r.push(...a)}return r},successorsEdge(e,t){const{getEdges:n}=te.useVueFlow(e),r=[];for(const o of n.value)if(o.source===t){r.push(o);const a=this.successorsEdge(e,o.target);a.length>0&&r.push(...a)}return r},predecessorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=r(t),a=o?[o]:[];for(const s of n.value)if(s.target===t){a.push(s.sourceNode);const l=this.predecessorsNode(e,s.source);l.length>0&&a.push(...l)}return a},successorsNode(e,t){const{getEdges:n,findNode:r}=te.useVueFlow(e),o=[r(t)];for(const a of n.value)if(a.source===t){o.push(a.targetNode);const s=this.successorsNode(e,a.target);s.length>0&&o.push(...s)}return o},linkedElements(e,t){return[...this.predecessorsEdge(e,t),...this.predecessorsNode(e,t),...this.successorsEdge(e,t),...this.successorsNode(e,t)]},generateDagreGraph(e,t,n,r,o,a,s){const l=new Lc.graphlib.Graph({compound:!0});l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:n?"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(r.includes(u.cluster.uid)&&a.has(c)){const d={uid:c,type:"collapsedcluster"};l.setNode(c,{width:this.getNodeWidth(d),height:this.getNodeHeight(d)}),s.push(d);continue}if(!o[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=o[u.cluster.uid]?o[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,o,t);c&&l.setEdge(c.source,c.target)}return Lc.layout(l),l},getNodePosition(e,t){const n={x:e.x-e.width/2,y:e.y-e.height/2};if(t){const r=this.getNodePosition(t);n.x=n.x-r.x,n.y=n.y-r.y}return n},getNodeWidth(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_WIDTH:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_WIDTH:et.DOT_WIDTH},getNodeHeight(e){return this.isTaskNode(e)||this.isTriggerNode(e)?et.TASK_HEIGHT:this.isCollapsedCluster(e)?et.COLLAPSED_CLUSTER_HEIGHT:et.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,n,r){const o=n[e]?n[e]:e,a=n[t]?n[t]:t;return o===a||r.includes(o)||r.includes(a)?null:{target:a,source:o}},cleanGraph(e){const{getEdges:t,getNodes:n,getElements:r,removeEdges:o,removeNodes:a,removeSelectedElements:s}=te.useVueFlow(e);o(t.value),a(n.value),s(r.value)},flowHaveTasks(e){return e?L.flowHaveTasks(e):!1},nodeColor(e,t){return e.uid===lt||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,n,r){var c,d,f;if(r.some(h=>e.source.startsWith(h)&&e.target.startsWith(h))||n.includes(e.target)||e.source.startsWith(lt)||e.target.startsWith(lt))return;const o=e.target.split(".");o.pop();const a=o.join("."),s=ge.afterLastDot(a),l=t[e.target];if(l.type.endsWith("GraphClusterEnd")&&((f=(d=(c=t[a])==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[ge.afterLastDot(e.source),"after"];if(u){const h=e.source.split(".");return[h[h.length-2],"after"]}return[ge.afterLastDot(e.target),"before"]},getEdgeColor(e,t,n){const r=s=>{var u,c;const l=s.split(".");for(let d=1;d<=l.length;d++){const f=l.slice(0,d).join("."),h=(u=n[f])==null?void 0:u.branchType;if(h)return h}return((c=t[s])==null?void 0:c.branchType)??null},o=r(e.source),a=r(e.target);return[o,a].includes("ERROR")?"danger":[o,a].includes("FINALLY")?"warning":null},generateGraph(e,t,n,r,o,a,s,l,u,c,d,f,h){var b,T,A,R,U,V,j,Z,M,D,J,W;const m=[],C=[ct+lt];if(!r||o&&!this.flowHaveTasks(o)){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 E=this.generateDagreGraph(r,a,s,C,l,u,c),_={},p=r.clusters||[],v=p.map(F=>F.cluster),y=v.filter(F=>F.type.endsWith("SubflowGraphCluster")).map(F=>F.taskNode.uid),g=Object.fromEntries(r.nodes.concat(c).map(F=>[F.uid,F]));for(const F of p)if(!l[F.cluster.uid]&&!u.has(F.cluster.uid)){((T=(b=F.cluster.taskNode)==null?void 0:b.task)==null?void 0:T.type)==="io.kestra.core.tasks.flows.Dag"&&y.push(F.cluster.taskNode.uid);for(const I of F.nodes)_[I]=F.cluster;const ne=F.cluster.uid,me=E.node(ne),Re=F.parents?F.parents[F.parents.length-1]:void 0,xe=this.computeClusterColor(F.cluster);m.push({id:ne,type:"cluster",parentNode:Re,position:this.getNodePosition(me,Re?E.node(Re):void 0),style:{width:ne===lt&&s?et.TRIGGER_CLUSTER_WIDTH+"px":me.width+"px",height:ne===lt&&!s?et.TRIGGER_CLUSTER_HEIGHT+"px":me.height+"px"},data:{collapsable:!0,color:xe,taskNode:F.cluster.taskNode,unused:F.cluster.taskNode?g[F.cluster.taskNode.uid].unused:!1},class:`ks-topology-${xe}-border rounded p-2`})}for(const F of r.nodes.concat(c))if(!a.includes(F.uid)){const ne=E.node(F.uid);let me="task";this.isClusterRootOrEnd(F)?me="dot":F.type.includes("GraphTrigger")?me="trigger":F.type==="collapsedcluster"&&(me="collapsedcluster");const Re=this.nodeColor(F,u),xe=d||((R=(A=F.task)==null?void 0:A.type)==null?void 0:R.includes("$"))||y.some(I=>F.uid.startsWith(I+"."));m.push({id:F.uid,type:me,position:this.getNodePosition(ne,_[F.uid]?E.node(_[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:_[F.uid]?_[F.uid].uid:void 0,draggable:me==="task"?!xe:!1,data:{node:F,parent:_[F.uid]?_[F.uid]:void 0,namespace:((j=(V=(U=_[F.uid])==null?void 0:U.taskNode)==null?void 0:V.task)==null?void 0:j.namespace)??n,flowId:((D=(M=(Z=_[F.uid])==null?void 0:Z.taskNode)==null?void 0:M.task)==null?void 0:D.flowId)??t,isFlowable:((J=_[F.uid])==null?void 0:J.uid)===ct+F.uid&&!F.type.endsWith("SubflowGraphTask"),color:Re,expandable:this.isExpandableTask(F,_,l,h),isReadOnly:xe,iconComponent:this.isCollapsedCluster(F)?"lightning-bolt":null,executionId:F.executionId,unused:F.unused},class:F.type==="collapsedcluster"?`ks-topology-${Re}-border rounded`:""})}const k=v.filter(F=>F.taskNode).map(F=>F.taskNode.uid),N=r.edges??[];for(const F of N){const ne=this.replaceIfCollapsed(F.source,F.target,l,a);if(ne){const me=this.getEdgeColor(F,g,_);m.push({id:ne.source+"|"+ne.target,source:ne.source,target:ne.target,type:"edge",markerEnd:this.isClusterRootOrEnd(g[ne.target])?"":{id:"marker-"+(g[ne.target].branchType?(W=g[ne.target].branchType)==null?void 0:W.toLocaleLowerCase():"custom"),type:te.MarkerType.ArrowClosed,color:me?`var(--ks-border-${me})`:"var(--ks-topology-edge-color)"},data:{haveAdd:!d&&f&&this.haveAdd(F,g,k,y),haveDashArray:g[F.source].type.endsWith("GraphTrigger")||g[F.target].type.endsWith("GraphTrigger")||F.source.startsWith(lt),color:me,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+lt?"success":e.type.endsWith("SubflowGraphCluster")?"primary":e.branchType==="ERROR"?"danger":"blue"},isExpandableTask(e,t,n,r){var o,a;return Object.values(n).includes(e.uid)||this.isCollapsedCluster(e)?!0:e.type.endsWith("SubflowGraphTask")&&((a=(o=t[e.uid])==null?void 0:o.uid)==null?void 0:a.replace(ct,""))!==e.uid&&r}};let Kt;async function Bv(){if(Kt)return Kt;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(n=>n.useMarkdownParser);return Kt=await(e.default??e)(),Kt}var nn={exports:{}},Vv=nn.exports,Tc;function xv(){return Tc||(Tc=1,function(e,t){(function(n,r,o){e.exports=o(),e.exports.default=o()})("slugify",Vv,function(){var n=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"}`),r=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 o(a,s){if(typeof a!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var l=r[s.locale]||{},u=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,d=a.normalize().split("").reduce(function(f,h){var m=l[h];return m===void 0&&(m=n[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 o.extend=function(a){Object.assign(n,a)},o})}(nn)),nn.exports}var Mv=xv();const ef=L.getDefaultExportFromCjs(Mv);ef.extend({"(":"-",")":""});function _t(e){return ef(e,{lower:!0,locale:"en"})}function tf(e,t){return Array.isArray(t)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(t.length===0||typeof t[0]=="string")}function At(e){const t=e.title.replaceAll(/\.([a-zA-Z])/g,(n,r)=>` ${r.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.
|
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
*/function Xv(e,t,n){return{line:e,column:t,offset:n}}function ua(e,t,n){return{start:e,end:t}}const X={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},Zv=17,Jv={[X.EXPECTED_TOKEN]:"Expected token: '{0}'",[X.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[X.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[X.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[X.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[X.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[X.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[X.EMPTY_PLACEHOLDER]:"Empty placeholder",[X.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[X.INVALID_LINKED_FORMAT]:"Invalid linked format",[X.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[X.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[X.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[X.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[X.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[X.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Vt(e,t,n={}){const{domain:r,messages:o,args:a}=n,s=process.env.NODE_ENV!=="production"?kn((o||Jv)[e]||"",...a||[]):e,l=new SyntaxError(String(s));return l.code=e,t&&(l.location=t),l.domain=r,l}function Qv(e){throw e}const e1=/<\/?[\w\s="/.':;#-\/]+>/,t1=e=>e1.test(e),Qe=" ",n1="\r",Ae=`
|
|
11
|
-
`,r1="\u2028",i1="\u2029";function o1(e){const t=e;let n=0,r=1,o=1,a=0;const s=b=>t[b]===n1&&t[b+1]===Ae,l=b=>t[b]===Ae,u=b=>t[b]===i1,c=b=>t[b]===r1,d=b=>s(b)||l(b)||u(b)||c(b),f=()=>n,h=()=>r,m=()=>o,C=()=>a,E=b=>s(b)||u(b)||c(b)?Ae:t[b],_=()=>E(n),p=()=>E(n+a);function v(){return a=0,d(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}function y(){return s(n+a)&&a++,a++,t[n+a]}function g(){n=0,r=1,o=1,a=0}function k(b=0){a=b}function N(){const b=n+a;for(;b!==n;)v();a=0}return{index:f,line:h,column:m,peekOffset:C,charAt:E,currentChar:_,currentPeek:p,next:v,peek:y,reset:g,resetPeek:k,skipToPeek:N}}const ut=void 0,a1=".",Dc="'",s1="tokenizer";function l1(e,t={}){const n=t.location!==!1,r=o1(e),o=()=>r.index(),a=()=>Xv(r.line(),r.column(),r.index()),s=a(),l=o(),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,S,B,...Y){const ve=c();if(S.column+=B,S.offset+=B,d){const _e=n?ua(ve.startLoc,S):null,ie=Vt(w,_e,{domain:s1,args:Y});d(ie)}}function h(w,S,B){w.endLoc=a(),w.currentType=S;const Y={type:S};return n&&(Y.loc=ua(w.startLoc,w.endLoc)),B!=null&&(Y.value=B),Y}const m=w=>h(w,13);function C(w,S){return w.currentChar()===S?(w.next(),S):(f(X.EXPECTED_TOKEN,a(),0,S),"")}function E(w){let S="";for(;w.currentPeek()===Qe||w.currentPeek()===Ae;)S+=w.currentPeek(),w.peek();return S}function _(w){const S=E(w);return w.skipToPeek(),S}function p(w){if(w===ut)return!1;const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S===95}function v(w){if(w===ut)return!1;const S=w.charCodeAt(0);return S>=48&&S<=57}function y(w,S){const{currentType:B}=S;if(B!==2)return!1;E(w);const Y=p(w.currentPeek());return w.resetPeek(),Y}function g(w,S){const{currentType:B}=S;if(B!==2)return!1;E(w);const Y=w.currentPeek()==="-"?w.peek():w.currentPeek(),ve=v(Y);return w.resetPeek(),ve}function k(w,S){const{currentType:B}=S;if(B!==2)return!1;E(w);const Y=w.currentPeek()===Dc;return w.resetPeek(),Y}function N(w,S){const{currentType:B}=S;if(B!==7)return!1;E(w);const Y=w.currentPeek()===".";return w.resetPeek(),Y}function b(w,S){const{currentType:B}=S;if(B!==8)return!1;E(w);const Y=p(w.currentPeek());return w.resetPeek(),Y}function T(w,S){const{currentType:B}=S;if(!(B===7||B===11))return!1;E(w);const Y=w.currentPeek()===":";return w.resetPeek(),Y}function A(w,S){const{currentType:B}=S;if(B!==9)return!1;const Y=()=>{const _e=w.currentPeek();return _e==="{"?p(w.peek()):_e==="@"||_e==="|"||_e===":"||_e==="."||_e===Qe||!_e?!1:_e===Ae?(w.peek(),Y()):F(w,!1)},ve=Y();return w.resetPeek(),ve}function R(w){E(w);const S=w.currentPeek()==="|";return w.resetPeek(),S}function F(w,S=!0){const B=(ve=!1,_e="")=>{const ie=w.currentPeek();return ie==="{"||ie==="@"||!ie?ve:ie==="|"?!(_e===Qe||_e===Ae):ie===Qe?(w.peek(),B(!0,Qe)):ie===Ae?(w.peek(),B(!0,Ae)):!0},Y=B();return S&&w.resetPeek(),Y}function V(w,S){const B=w.currentChar();return B===ut?ut:S(B)?(w.next(),B):null}function j(w){const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36}function Z(w){return V(w,j)}function M(w){const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36||S===45}function D(w){return V(w,M)}function J(w){const S=w.charCodeAt(0);return S>=48&&S<=57}function W(w){return V(w,J)}function U(w){const S=w.charCodeAt(0);return S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102}function ne(w){return V(w,U)}function me(w){let S="",B="";for(;S=W(w);)B+=S;return B}function Re(w){let S="";for(;;){const B=w.currentChar();if(B==="{"||B==="}"||B==="@"||B==="|"||!B)break;if(B===Qe||B===Ae)if(F(w))S+=B,w.next();else{if(R(w))break;S+=B,w.next()}else S+=B,w.next()}return S}function xe(w){_(w);let S="",B="";for(;S=D(w);)B+=S;return w.currentChar()===ut&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),B}function I(w){_(w);let S="";return w.currentChar()==="-"?(w.next(),S+=`-${me(w)}`):S+=me(w),w.currentChar()===ut&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),S}function P(w){return w!==Dc&&w!==Ae}function q(w){_(w),C(w,"'");let S="",B="";for(;S=V(w,P);)S==="\\"?B+=G(w):B+=S;const Y=w.currentChar();return Y===Ae||Y===ut?(f(X.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),Y===Ae&&(w.next(),C(w,"'")),B):(C(w,"'"),B)}function G(w){const S=w.currentChar();switch(S){case"\\":case"'":return w.next(),`\\${S}`;case"u":return ee(w,S,4);case"U":return ee(w,S,6);default:return f(X.UNKNOWN_ESCAPE_SEQUENCE,a(),0,S),""}}function ee(w,S,B){C(w,S);let Y="";for(let ve=0;ve<B;ve++){const _e=ne(w);if(!_e){f(X.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${S}${Y}${w.currentChar()}`);break}Y+=_e}return`\\${S}${Y}`}function ce(w){return w!=="{"&&w!=="}"&&w!==Qe&&w!==Ae}function pe(w){_(w);let S="",B="";for(;S=V(w,ce);)B+=S;return B}function Ie(w){let S="",B="";for(;S=Z(w);)B+=S;return B}function St(w){const S=B=>{const Y=w.currentChar();return Y==="{"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===Qe?B:(B+=Y,w.next(),S(B))};return S("")}function we(w){_(w);const S=C(w,"|");return _(w),S}function be(w,S){let B=null;switch(w.currentChar()){case"{":return S.braceNest>=1&&f(X.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),w.next(),B=h(S,2,"{"),_(w),S.braceNest++,B;case"}":return S.braceNest>0&&S.currentType===2&&f(X.EMPTY_PLACEHOLDER,a(),0),w.next(),B=h(S,3,"}"),S.braceNest--,S.braceNest>0&&_(w),S.inLinked&&S.braceNest===0&&(S.inLinked=!1),B;case"@":return S.braceNest>0&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),B=Me(w,S)||m(S),S.braceNest=0,B;default:{let ve=!0,_e=!0,ie=!0;if(R(w))return S.braceNest>0&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),B=h(S,1,we(w)),S.braceNest=0,S.inLinked=!1,B;if(S.braceNest>0&&(S.currentType===4||S.currentType===5||S.currentType===6))return f(X.UNTERMINATED_CLOSING_BRACE,a(),0),S.braceNest=0,st(w,S);if(ve=y(w,S))return B=h(S,4,xe(w)),_(w),B;if(_e=g(w,S))return B=h(S,5,I(w)),_(w),B;if(ie=k(w,S))return B=h(S,6,q(w)),_(w),B;if(!ve&&!_e&&!ie)return B=h(S,12,pe(w)),f(X.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,B.value),_(w),B;break}}return B}function Me(w,S){const{currentType:B}=S;let Y=null;const ve=w.currentChar();switch((B===7||B===8||B===11||B===9)&&(ve===Ae||ve===Qe)&&f(X.INVALID_LINKED_FORMAT,a(),0),ve){case"@":return w.next(),Y=h(S,7,"@"),S.inLinked=!0,Y;case".":return _(w),w.next(),h(S,8,".");case":":return _(w),w.next(),h(S,9,":");default:return R(w)?(Y=h(S,1,we(w)),S.braceNest=0,S.inLinked=!1,Y):N(w,S)||T(w,S)?(_(w),Me(w,S)):b(w,S)?(_(w),h(S,11,Ie(w))):A(w,S)?(_(w),ve==="{"?be(w,S)||Y:h(S,10,St(w))):(B===7&&f(X.INVALID_LINKED_FORMAT,a(),0),S.braceNest=0,S.inLinked=!1,st(w,S))}}function st(w,S){let B={type:13};if(S.braceNest>0)return be(w,S)||m(S);if(S.inLinked)return Me(w,S)||m(S);switch(w.currentChar()){case"{":return be(w,S)||m(S);case"}":return f(X.UNBALANCED_CLOSING_BRACE,a(),0),w.next(),h(S,3,"}");case"@":return Me(w,S)||m(S);default:{if(R(w))return B=h(S,1,we(w)),S.braceNest=0,S.inLinked=!1,B;if(F(w))return h(S,0,Re(w));break}}return B}function Lt(){const{currentType:w,offset:S,startLoc:B,endLoc:Y}=u;return u.lastType=w,u.lastOffset=S,u.lastStartLoc=B,u.lastEndLoc=Y,u.offset=o(),u.startLoc=a(),r.currentChar()===ut?h(u,13):st(r,u)}return{nextToken:Lt,currentOffset:o,currentPosition:a,context:c}}const u1="parser",c1=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function d1(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function f1(e={}){const t=e.location!==!1,{onError:n}=e;function r(p,v,y,g,...k){const N=p.currentPosition();if(N.offset+=g,N.column+=g,n){const b=t?ua(y,N):null,T=Vt(v,b,{domain:u1,args:k});n(T)}}function o(p,v,y){const g={type:p};return t&&(g.start=v,g.end=v,g.loc={start:y,end:y}),g}function a(p,v,y,g){t&&(p.end=v,p.loc&&(p.loc.end=y))}function s(p,v){const y=p.context(),g=o(3,y.offset,y.startLoc);return g.value=v,a(g,p.currentOffset(),p.currentPosition()),g}function l(p,v){const y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(5,g,k);return N.index=parseInt(v,10),p.nextToken(),a(N,p.currentOffset(),p.currentPosition()),N}function u(p,v){const y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(4,g,k);return N.key=v,p.nextToken(),a(N,p.currentOffset(),p.currentPosition()),N}function c(p,v){const y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(9,g,k);return N.value=v.replace(c1,d1),p.nextToken(),a(N,p.currentOffset(),p.currentPosition()),N}function d(p){const v=p.nextToken(),y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(8,g,k);return v.type!==11?(r(p,X.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),N.value="",a(N,g,k),{nextConsumeToken:v,node:N}):(v.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ze(v)),N.value=v.value||"",a(N,p.currentOffset(),p.currentPosition()),{node:N})}function f(p,v){const y=p.context(),g=o(7,y.offset,y.startLoc);return g.value=v,a(g,p.currentOffset(),p.currentPosition()),g}function h(p){const v=p.context(),y=o(6,v.offset,v.startLoc);let g=p.nextToken();if(g.type===8){const k=d(p);y.modifier=k.node,g=k.nextConsumeToken||p.nextToken()}switch(g.type!==9&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),g=p.nextToken(),g.type===2&&(g=p.nextToken()),g.type){case 10:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=f(p,g.value||"");break;case 4:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=u(p,g.value||"");break;case 5:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=l(p,g.value||"");break;case 6:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=c(p,g.value||"");break;default:{r(p,X.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const k=p.context(),N=o(7,k.offset,k.startLoc);return N.value="",a(N,k.offset,k.startLoc),y.key=N,a(y,k.offset,k.startLoc),{nextConsumeToken:g,node:y}}}return a(y,p.currentOffset(),p.currentPosition()),{node:y}}function m(p){const v=p.context(),y=v.currentType===1?p.currentOffset():v.offset,g=v.currentType===1?v.endLoc:v.startLoc,k=o(2,y,g);k.items=[];let N=null;do{const A=N||p.nextToken();switch(N=null,A.type){case 0:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(s(p,A.value||""));break;case 5:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(l(p,A.value||""));break;case 4:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(u(p,A.value||""));break;case 6:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(c(p,A.value||""));break;case 7:{const R=h(p);k.items.push(R.node),N=R.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const b=v.currentType===1?v.lastOffset:p.currentOffset(),T=v.currentType===1?v.lastEndLoc:p.currentPosition();return a(k,b,T),k}function C(p,v,y,g){const k=p.context();let N=g.items.length===0;const b=o(1,v,y);b.cases=[],b.cases.push(g);do{const T=m(p);N||(N=T.items.length===0),b.cases.push(T)}while(k.currentType!==13);return N&&r(p,X.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),a(b,p.currentOffset(),p.currentPosition()),b}function E(p){const v=p.context(),{offset:y,startLoc:g}=v,k=m(p);return v.currentType===13?k:C(p,y,g,k)}function _(p){const v=l1(p,Le({},e)),y=v.context(),g=o(0,y.offset,y.startLoc);return t&&g.loc&&(g.loc.source=p),g.body=E(v),e.onCacheKey&&(g.cacheKey=e.onCacheKey(p)),y.currentType!==13&&r(v,X.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,p[y.offset]||""),a(g,v.currentOffset(),v.currentPosition()),g}return{parse:_}}function Ze(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 h1(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function Pc(e,t){for(let n=0;n<e.length;n++)Ma(e[n],t)}function Ma(e,t){switch(e.type){case 1:Pc(e.cases,t),t.helper("plural");break;case 2:Pc(e.items,t);break;case 6:{Ma(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 m1(e,t={}){const n=h1(e);n.helper("normalize"),e.body&&Ma(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function p1(e){const t=e.body;return t.type===2?Bc(t):t.cases.forEach(n=>Bc(n)),e}function Bc(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 n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=xa(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const g1="minifier";function Rt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Rt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Rt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Rt(n[r]);t.i=n,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;Rt(t.key),t.k=t.key,delete t.key,t.modifier&&(Rt(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 Vt(X.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:g1,args:[e.type]})}delete e.type}const v1="parser";function _1(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,a=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(E,_){s.code+=E}function c(E,_=!0){const p=_?r:"";u(o?p+" ".repeat(E):p)}function d(E=!0){const _=++s.indentLevel;E&&c(_)}function f(E=!0){const _=--s.indentLevel;E&&c(_)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:E=>`_${E}`,needIndent:()=>s.needIndent}}function E1(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Pt(e,t.key),t.modifier?(e.push(", "),Pt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function y1(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let a=0;a<o&&(Pt(e,t.items[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function b1(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let a=0;a<o&&(Pt(e,t.cases[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function k1(e,t){t.body?Pt(e,t.body):e.push("null")}function Pt(e,t){const{helper:n}=e;switch(t.type){case 0:k1(e,t);break;case 1:b1(e,t);break;case 2:y1(e,t);break;case 6:E1(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(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("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 Vt(X.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:v1,args:[t.type]})}}const C1=(e,t={})=>{const n=z(t.mode)?t.mode:"normal",r=z(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
11
|
+
`,r1="\u2028",i1="\u2029";function o1(e){const t=e;let n=0,r=1,o=1,a=0;const s=b=>t[b]===n1&&t[b+1]===Ae,l=b=>t[b]===Ae,u=b=>t[b]===i1,c=b=>t[b]===r1,d=b=>s(b)||l(b)||u(b)||c(b),f=()=>n,h=()=>r,m=()=>o,C=()=>a,E=b=>s(b)||u(b)||c(b)?Ae:t[b],_=()=>E(n),p=()=>E(n+a);function v(){return a=0,d(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}function y(){return s(n+a)&&a++,a++,t[n+a]}function g(){n=0,r=1,o=1,a=0}function k(b=0){a=b}function N(){const b=n+a;for(;b!==n;)v();a=0}return{index:f,line:h,column:m,peekOffset:C,charAt:E,currentChar:_,currentPeek:p,next:v,peek:y,reset:g,resetPeek:k,skipToPeek:N}}const ut=void 0,a1=".",Dc="'",s1="tokenizer";function l1(e,t={}){const n=t.location!==!1,r=o1(e),o=()=>r.index(),a=()=>Xv(r.line(),r.column(),r.index()),s=a(),l=o(),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,S,B,...Y){const ve=c();if(S.column+=B,S.offset+=B,d){const _e=n?ua(ve.startLoc,S):null,ie=Vt(w,_e,{domain:s1,args:Y});d(ie)}}function h(w,S,B){w.endLoc=a(),w.currentType=S;const Y={type:S};return n&&(Y.loc=ua(w.startLoc,w.endLoc)),B!=null&&(Y.value=B),Y}const m=w=>h(w,13);function C(w,S){return w.currentChar()===S?(w.next(),S):(f(X.EXPECTED_TOKEN,a(),0,S),"")}function E(w){let S="";for(;w.currentPeek()===Qe||w.currentPeek()===Ae;)S+=w.currentPeek(),w.peek();return S}function _(w){const S=E(w);return w.skipToPeek(),S}function p(w){if(w===ut)return!1;const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S===95}function v(w){if(w===ut)return!1;const S=w.charCodeAt(0);return S>=48&&S<=57}function y(w,S){const{currentType:B}=S;if(B!==2)return!1;E(w);const Y=p(w.currentPeek());return w.resetPeek(),Y}function g(w,S){const{currentType:B}=S;if(B!==2)return!1;E(w);const Y=w.currentPeek()==="-"?w.peek():w.currentPeek(),ve=v(Y);return w.resetPeek(),ve}function k(w,S){const{currentType:B}=S;if(B!==2)return!1;E(w);const Y=w.currentPeek()===Dc;return w.resetPeek(),Y}function N(w,S){const{currentType:B}=S;if(B!==7)return!1;E(w);const Y=w.currentPeek()===".";return w.resetPeek(),Y}function b(w,S){const{currentType:B}=S;if(B!==8)return!1;E(w);const Y=p(w.currentPeek());return w.resetPeek(),Y}function T(w,S){const{currentType:B}=S;if(!(B===7||B===11))return!1;E(w);const Y=w.currentPeek()===":";return w.resetPeek(),Y}function A(w,S){const{currentType:B}=S;if(B!==9)return!1;const Y=()=>{const _e=w.currentPeek();return _e==="{"?p(w.peek()):_e==="@"||_e==="|"||_e===":"||_e==="."||_e===Qe||!_e?!1:_e===Ae?(w.peek(),Y()):U(w,!1)},ve=Y();return w.resetPeek(),ve}function R(w){E(w);const S=w.currentPeek()==="|";return w.resetPeek(),S}function U(w,S=!0){const B=(ve=!1,_e="")=>{const ie=w.currentPeek();return ie==="{"||ie==="@"||!ie?ve:ie==="|"?!(_e===Qe||_e===Ae):ie===Qe?(w.peek(),B(!0,Qe)):ie===Ae?(w.peek(),B(!0,Ae)):!0},Y=B();return S&&w.resetPeek(),Y}function V(w,S){const B=w.currentChar();return B===ut?ut:S(B)?(w.next(),B):null}function j(w){const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36}function Z(w){return V(w,j)}function M(w){const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36||S===45}function D(w){return V(w,M)}function J(w){const S=w.charCodeAt(0);return S>=48&&S<=57}function W(w){return V(w,J)}function F(w){const S=w.charCodeAt(0);return S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102}function ne(w){return V(w,F)}function me(w){let S="",B="";for(;S=W(w);)B+=S;return B}function Re(w){let S="";for(;;){const B=w.currentChar();if(B==="{"||B==="}"||B==="@"||B==="|"||!B)break;if(B===Qe||B===Ae)if(U(w))S+=B,w.next();else{if(R(w))break;S+=B,w.next()}else S+=B,w.next()}return S}function xe(w){_(w);let S="",B="";for(;S=D(w);)B+=S;return w.currentChar()===ut&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),B}function I(w){_(w);let S="";return w.currentChar()==="-"?(w.next(),S+=`-${me(w)}`):S+=me(w),w.currentChar()===ut&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),S}function P(w){return w!==Dc&&w!==Ae}function q(w){_(w),C(w,"'");let S="",B="";for(;S=V(w,P);)S==="\\"?B+=G(w):B+=S;const Y=w.currentChar();return Y===Ae||Y===ut?(f(X.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),Y===Ae&&(w.next(),C(w,"'")),B):(C(w,"'"),B)}function G(w){const S=w.currentChar();switch(S){case"\\":case"'":return w.next(),`\\${S}`;case"u":return ee(w,S,4);case"U":return ee(w,S,6);default:return f(X.UNKNOWN_ESCAPE_SEQUENCE,a(),0,S),""}}function ee(w,S,B){C(w,S);let Y="";for(let ve=0;ve<B;ve++){const _e=ne(w);if(!_e){f(X.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${S}${Y}${w.currentChar()}`);break}Y+=_e}return`\\${S}${Y}`}function ce(w){return w!=="{"&&w!=="}"&&w!==Qe&&w!==Ae}function pe(w){_(w);let S="",B="";for(;S=V(w,ce);)B+=S;return B}function Ie(w){let S="",B="";for(;S=Z(w);)B+=S;return B}function St(w){const S=B=>{const Y=w.currentChar();return Y==="{"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===Qe?B:(B+=Y,w.next(),S(B))};return S("")}function we(w){_(w);const S=C(w,"|");return _(w),S}function be(w,S){let B=null;switch(w.currentChar()){case"{":return S.braceNest>=1&&f(X.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),w.next(),B=h(S,2,"{"),_(w),S.braceNest++,B;case"}":return S.braceNest>0&&S.currentType===2&&f(X.EMPTY_PLACEHOLDER,a(),0),w.next(),B=h(S,3,"}"),S.braceNest--,S.braceNest>0&&_(w),S.inLinked&&S.braceNest===0&&(S.inLinked=!1),B;case"@":return S.braceNest>0&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),B=Me(w,S)||m(S),S.braceNest=0,B;default:{let ve=!0,_e=!0,ie=!0;if(R(w))return S.braceNest>0&&f(X.UNTERMINATED_CLOSING_BRACE,a(),0),B=h(S,1,we(w)),S.braceNest=0,S.inLinked=!1,B;if(S.braceNest>0&&(S.currentType===4||S.currentType===5||S.currentType===6))return f(X.UNTERMINATED_CLOSING_BRACE,a(),0),S.braceNest=0,st(w,S);if(ve=y(w,S))return B=h(S,4,xe(w)),_(w),B;if(_e=g(w,S))return B=h(S,5,I(w)),_(w),B;if(ie=k(w,S))return B=h(S,6,q(w)),_(w),B;if(!ve&&!_e&&!ie)return B=h(S,12,pe(w)),f(X.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,B.value),_(w),B;break}}return B}function Me(w,S){const{currentType:B}=S;let Y=null;const ve=w.currentChar();switch((B===7||B===8||B===11||B===9)&&(ve===Ae||ve===Qe)&&f(X.INVALID_LINKED_FORMAT,a(),0),ve){case"@":return w.next(),Y=h(S,7,"@"),S.inLinked=!0,Y;case".":return _(w),w.next(),h(S,8,".");case":":return _(w),w.next(),h(S,9,":");default:return R(w)?(Y=h(S,1,we(w)),S.braceNest=0,S.inLinked=!1,Y):N(w,S)||T(w,S)?(_(w),Me(w,S)):b(w,S)?(_(w),h(S,11,Ie(w))):A(w,S)?(_(w),ve==="{"?be(w,S)||Y:h(S,10,St(w))):(B===7&&f(X.INVALID_LINKED_FORMAT,a(),0),S.braceNest=0,S.inLinked=!1,st(w,S))}}function st(w,S){let B={type:13};if(S.braceNest>0)return be(w,S)||m(S);if(S.inLinked)return Me(w,S)||m(S);switch(w.currentChar()){case"{":return be(w,S)||m(S);case"}":return f(X.UNBALANCED_CLOSING_BRACE,a(),0),w.next(),h(S,3,"}");case"@":return Me(w,S)||m(S);default:{if(R(w))return B=h(S,1,we(w)),S.braceNest=0,S.inLinked=!1,B;if(U(w))return h(S,0,Re(w));break}}return B}function Lt(){const{currentType:w,offset:S,startLoc:B,endLoc:Y}=u;return u.lastType=w,u.lastOffset=S,u.lastStartLoc=B,u.lastEndLoc=Y,u.offset=o(),u.startLoc=a(),r.currentChar()===ut?h(u,13):st(r,u)}return{nextToken:Lt,currentOffset:o,currentPosition:a,context:c}}const u1="parser",c1=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function d1(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function f1(e={}){const t=e.location!==!1,{onError:n}=e;function r(p,v,y,g,...k){const N=p.currentPosition();if(N.offset+=g,N.column+=g,n){const b=t?ua(y,N):null,T=Vt(v,b,{domain:u1,args:k});n(T)}}function o(p,v,y){const g={type:p};return t&&(g.start=v,g.end=v,g.loc={start:y,end:y}),g}function a(p,v,y,g){t&&(p.end=v,p.loc&&(p.loc.end=y))}function s(p,v){const y=p.context(),g=o(3,y.offset,y.startLoc);return g.value=v,a(g,p.currentOffset(),p.currentPosition()),g}function l(p,v){const y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(5,g,k);return N.index=parseInt(v,10),p.nextToken(),a(N,p.currentOffset(),p.currentPosition()),N}function u(p,v){const y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(4,g,k);return N.key=v,p.nextToken(),a(N,p.currentOffset(),p.currentPosition()),N}function c(p,v){const y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(9,g,k);return N.value=v.replace(c1,d1),p.nextToken(),a(N,p.currentOffset(),p.currentPosition()),N}function d(p){const v=p.nextToken(),y=p.context(),{lastOffset:g,lastStartLoc:k}=y,N=o(8,g,k);return v.type!==11?(r(p,X.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),N.value="",a(N,g,k),{nextConsumeToken:v,node:N}):(v.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ze(v)),N.value=v.value||"",a(N,p.currentOffset(),p.currentPosition()),{node:N})}function f(p,v){const y=p.context(),g=o(7,y.offset,y.startLoc);return g.value=v,a(g,p.currentOffset(),p.currentPosition()),g}function h(p){const v=p.context(),y=o(6,v.offset,v.startLoc);let g=p.nextToken();if(g.type===8){const k=d(p);y.modifier=k.node,g=k.nextConsumeToken||p.nextToken()}switch(g.type!==9&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),g=p.nextToken(),g.type===2&&(g=p.nextToken()),g.type){case 10:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=f(p,g.value||"");break;case 4:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=u(p,g.value||"");break;case 5:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=l(p,g.value||"");break;case 6:g.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(g)),y.key=c(p,g.value||"");break;default:{r(p,X.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const k=p.context(),N=o(7,k.offset,k.startLoc);return N.value="",a(N,k.offset,k.startLoc),y.key=N,a(y,k.offset,k.startLoc),{nextConsumeToken:g,node:y}}}return a(y,p.currentOffset(),p.currentPosition()),{node:y}}function m(p){const v=p.context(),y=v.currentType===1?p.currentOffset():v.offset,g=v.currentType===1?v.endLoc:v.startLoc,k=o(2,y,g);k.items=[];let N=null;do{const A=N||p.nextToken();switch(N=null,A.type){case 0:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(s(p,A.value||""));break;case 5:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(l(p,A.value||""));break;case 4:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(u(p,A.value||""));break;case 6:A.value==null&&r(p,X.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Ze(A)),k.items.push(c(p,A.value||""));break;case 7:{const R=h(p);k.items.push(R.node),N=R.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const b=v.currentType===1?v.lastOffset:p.currentOffset(),T=v.currentType===1?v.lastEndLoc:p.currentPosition();return a(k,b,T),k}function C(p,v,y,g){const k=p.context();let N=g.items.length===0;const b=o(1,v,y);b.cases=[],b.cases.push(g);do{const T=m(p);N||(N=T.items.length===0),b.cases.push(T)}while(k.currentType!==13);return N&&r(p,X.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),a(b,p.currentOffset(),p.currentPosition()),b}function E(p){const v=p.context(),{offset:y,startLoc:g}=v,k=m(p);return v.currentType===13?k:C(p,y,g,k)}function _(p){const v=l1(p,Le({},e)),y=v.context(),g=o(0,y.offset,y.startLoc);return t&&g.loc&&(g.loc.source=p),g.body=E(v),e.onCacheKey&&(g.cacheKey=e.onCacheKey(p)),y.currentType!==13&&r(v,X.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,p[y.offset]||""),a(g,v.currentOffset(),v.currentPosition()),g}return{parse:_}}function Ze(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 h1(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function Pc(e,t){for(let n=0;n<e.length;n++)Ma(e[n],t)}function Ma(e,t){switch(e.type){case 1:Pc(e.cases,t),t.helper("plural");break;case 2:Pc(e.items,t);break;case 6:{Ma(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 m1(e,t={}){const n=h1(e);n.helper("normalize"),e.body&&Ma(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function p1(e){const t=e.body;return t.type===2?Bc(t):t.cases.forEach(n=>Bc(n)),e}function Bc(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 n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=xa(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const g1="minifier";function Rt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Rt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Rt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Rt(n[r]);t.i=n,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;Rt(t.key),t.k=t.key,delete t.key,t.modifier&&(Rt(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 Vt(X.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:g1,args:[e.type]})}delete e.type}const v1="parser";function _1(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,a=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(E,_){s.code+=E}function c(E,_=!0){const p=_?r:"";u(o?p+" ".repeat(E):p)}function d(E=!0){const _=++s.indentLevel;E&&c(_)}function f(E=!0){const _=--s.indentLevel;E&&c(_)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:E=>`_${E}`,needIndent:()=>s.needIndent}}function E1(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Pt(e,t.key),t.modifier?(e.push(", "),Pt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function y1(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let a=0;a<o&&(Pt(e,t.items[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function b1(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let a=0;a<o&&(Pt(e,t.cases[a]),a!==o-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function k1(e,t){t.body?Pt(e,t.body):e.push("null")}function Pt(e,t){const{helper:n}=e;switch(t.type){case 0:k1(e,t);break;case 1:b1(e,t);break;case 2:y1(e,t);break;case 6:E1(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(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("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 Vt(X.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:v1,args:[t.type]})}}const C1=(e,t={})=>{const n=z(t.mode)?t.mode:"normal",r=z(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
12
|
`,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=_1(e,{filename:r,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${xa(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Pt(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function N1(e,t={}){const n=Le({},t),r=!!n.jit,o=!!n.minify,a=n.optimize==null?!0:n.optimize,l=f1(n).parse(e);return r?(a&&p1(l),o&&Rt(l),{ast:l,code:""}):(m1(l,n),C1(l,n))}/*!
|
|
13
13
|
* core-base v11.1.3
|
|
14
14
|
* (c) 2025 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function w1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Et().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Et().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function We(e){return ae(e)&&$a(e)===0&&(je(e,"b")||je(e,"body"))}const rf=["b","body"];function S1(e){return ht(e,rf)}const of=["c","cases"];function L1(e){return ht(e,of,[])}const af=["s","static"];function T1(e){return ht(e,af)}const sf=["i","items"];function I1(e){return ht(e,sf,[])}const lf=["t","type"];function $a(e){return ht(e,lf)}const uf=["v","value"];function Xt(e,t){const n=ht(e,uf);if(n!=null)return n;throw qt(t)}const cf=["m","modifier"];function O1(e){return ht(e,cf)}const df=["k","key"];function A1(e){const t=ht(e,df);if(t)return t;throw qt(6)}function ht(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(je(e,o)&&e[o]!=null)return e[o]}return n}const ff=[...rf,...of,...af,...sf,...df,...cf,...uf,...lf];function qt(e){return new Error(`unhandled node type: ${e}`)}function ta(e){return n=>R1(n,e)}function R1(e,t){const n=S1(t);if(n==null)throw qt(0);if($a(n)===1){const a=L1(n);return e.plural(a.reduce((s,l)=>[...s,Vc(e,l)],[]))}else return Vc(e,n)}function Vc(e,t){const n=T1(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=I1(t).reduce((o,a)=>[...o,ca(e,a)],[]);return e.normalize(r)}}function ca(e,t){const n=$a(t);switch(n){case 3:return Xt(t,n);case 9:return Xt(t,n);case 4:{const r=t;if(je(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(je(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw qt(n)}case 5:{const r=t;if(je(r,"i")&&Se(r.i))return e.interpolate(e.list(r.i));if(je(r,"index")&&Se(r.index))return e.interpolate(e.list(r.index));throw qt(n)}case 6:{const r=t,o=O1(r),a=A1(r);return e.linked(ca(e,a),o?ca(e,o):void 0,e.type)}case 7:return Xt(t,n);case 8:return Xt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const D1="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function P1(e,t){t&&t1(e)&&ft(kn(D1,{source:e}))}const B1=e=>e;let Zt=ue();function V1(e,t={}){let n=!1;const r=t.onError||Qv;return t.onError=o=>{n=!0,r(o)},{...N1(e,t),detectError:n}}function x1(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&z(e)){const n=ye(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&P1(e,n);const o=(t.onCacheKey||B1)(e),a=Zt[o];if(a)return a;const{ast:s,detectError:l}=V1(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=ta(s);return l?u:Zt[o]=u}else{if(process.env.NODE_ENV!=="production"&&!We(e))return ft(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Zt[n];return r||(Zt[n]=ta(e))}else return ta(e)}}let Ft=null;function M1(e){Ft=e}function $1(e,t,n){Ft&&Ft.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const q1=F1("function:translate");function F1(e){return t=>Ft&&Ft.emit(e,t)}const Oe={INVALID_ARGUMENT:Zv,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},U1=24;function tt(e){return Vt(e,null,process.env.NODE_ENV!=="production"?{messages:H1}:void 0)}const H1={[Oe.INVALID_ARGUMENT]:"Invalid arguments",[Oe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Oe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Oe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Oe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function qa(e,t){return t.locale!=null?xc(t.locale):xc(e.locale)}let na;function xc(e){if(z(e))return e;if(fe(e)){if(e.resolvedOnce&&na!=null)return na;if(e.constructor.name==="Function"){const t=e();if(zv(t))throw tt(Oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return na=t}else throw tt(Oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw tt(Oe.NOT_SUPPORT_LOCALE_TYPE)}function G1(e,t,n){return[...new Set([n,...Ne(t)?t:ae(t)?Object.keys(t):z(t)?[t]:[n]])]}function hf(e,t,n){const r=z(n)?n:ln,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let s=[n];for(;Ne(s);)s=Mc(a,s,t);const l=Ne(t)||!oe(t)?t:t.default?t.default:null;s=z(l)?[l]:l,Ne(s)&&Mc(a,s,!1),o.__localeChainCache.set(r,a)}return a}function Mc(e,t,n){let r=!0;for(let o=0;o<t.length&&ye(r);o++){const a=t[o];z(a)&&(r=z1(e,t[o],n))}return r}function z1(e,t,n){let r;const o=t.split("-");do{const a=o.join("-");r=j1(e,a,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function j1(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Ne(n)||oe(n))&&n[o]&&(r=n[o])}return r}const mt=[];mt[0]={w:[0],i:[3,0],"[":[4],o:[7]};mt[1]={w:[1],".":[2],"[":[4],o:[7]};mt[2]={w:[2],i:[3,0],0:[3,0]};mt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};mt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};mt[5]={"'":[4,0],o:8,l:[5,0]};mt[6]={'"':[4,0],o:8,l:[6,0]};const W1=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function K1(e){return W1.test(e)}function Y1(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function X1(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 Z1(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:K1(t)?Y1(t):"*"+t}function J1(e){const t=[];let n=-1,r=0,o=0,a,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](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=Z1(s),s===!1))return!1;h[1]()}};function m(){const C=e[n+1];if(r===5&&C==="'"||r===6&&C==='"')return n++,l="\\"+C,h[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&m())){if(u=X1(a),f=mt[r],c=f[u]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(d=h[c[1]],d&&(l=a,d()===!1))))return;if(r===7)return t}}const $c=new Map;function Q1(e,t){return ae(e)?e[t]:null}function e_(e,t){if(!ae(e))return null;let n=$c.get(t);if(n||(n=J1(t),n&&$c.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const s=n[a];if(ff.includes(s)&&We(o))return null;const l=o[s];if(l===void 0||fe(o))return null;o=l,a++}return o}const De={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},t_=8,n_={[De.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[De.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[De.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[De.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[De.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[De.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[De.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 bt(e,...t){return kn(n_[e],...t)}const r_="11.1.3",Nn=-1,ln="en-US",un="",qc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function i_(){return{upper:(e,t)=>t==="text"&&z(e)?e.toUpperCase():t==="vnode"&&ae(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&z(e)?e.toLowerCase():t==="vnode"&&ae(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&z(e)?qc(e):t==="vnode"&&ae(e)&&"__v_isVNode"in e?qc(e.children):e}}let mf;function o_(e){mf=e}let pf;function a_(e){pf=e}let gf;function s_(e){gf=e}let vf=null;const l_=e=>{vf=e},u_=()=>vf;let _f=null;const Fc=e=>{_f=e},c_=()=>_f;let Uc=0;function d_(e={}){const t=fe(e.onWarn)?e.onWarn:ft,n=z(e.version)?e.version:r_,r=z(e.locale)||fe(e.locale)?e.locale:ln,o=fe(r)?ln:r,a=Ne(e.fallbackLocale)||oe(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,s=oe(e.messages)?e.messages:ra(o),l=oe(e.datetimeFormats)?e.datetimeFormats:ra(o),u=oe(e.numberFormats)?e.numberFormats:ra(o),c=Le(ue(),e.modifiers,i_()),d=e.pluralRules||ue(),f=fe(e.missing)?e.missing:null,h=ye(e.missingWarn)||sn(e.missingWarn)?e.missingWarn:!0,m=ye(e.fallbackWarn)||sn(e.fallbackWarn)?e.fallbackWarn:!0,C=!!e.fallbackFormat,E=!!e.unresolving,_=fe(e.postTranslation)?e.postTranslation:null,p=oe(e.processor)?e.processor:null,v=ye(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,g=fe(e.messageCompiler)?e.messageCompiler:mf;process.env.NODE_ENV!=="production"&&fe(e.messageCompiler)&&Kv(bt(De.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=fe(e.messageResolver)?e.messageResolver:pf||Q1,N=fe(e.localeFallbacker)?e.localeFallbacker:gf||G1,b=ae(e.fallbackContext)?e.fallbackContext:void 0,T=e,A=ae(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,R=ae(T.__numberFormatters)?T.__numberFormatters:new Map,F=ae(T.__meta)?T.__meta:{};Uc++;const V={version:n,cid:Uc,locale:r,fallbackLocale:a,messages:s,modifiers:c,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:C,unresolving:E,postTranslation:_,processor:p,warnHtmlMessage:v,escapeParameter:y,messageCompiler:g,messageResolver:k,localeFallbacker:N,fallbackContext:b,onWarn:t,__meta:F};return V.datetimeFormats=l,V.numberFormats=u,V.__datetimeFormatters=A,V.__numberFormatters=R,process.env.NODE_ENV!=="production"&&(V.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&$1(V,n,F),V}const ra=e=>({[e]:ue()});function wn(e,t){return e instanceof RegExp?e.test(t):e}function Ef(e,t){return e instanceof RegExp?e.test(t):e}function Fa(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(a!==null){const l=a(e,n,t,o);return z(l)?l:t}else return process.env.NODE_ENV!=="production"&&Ef(r,t)&&s(bt(De.NOT_FOUND_KEY,{key:t,locale:n})),t}function Mt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function yf(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function f_(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(yf(e,t[r]))return!0;return!1}const Hc=typeof Intl<"u",bf={dateTimeFormat:Hc&&typeof Intl.DateTimeFormat<"u",numberFormat:Hc&&typeof Intl.NumberFormat<"u"};function Gc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!bf.dateTimeFormat)return a(bt(De.CANNOT_FORMAT_DATE)),un;const[u,c,d,f]=da(...t),h=ye(d.missingWarn)?d.missingWarn:e.missingWarn,m=ye(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,E=qa(e,d),_=s(e,o,E);if(!z(u)||u==="")return new Intl.DateTimeFormat(E,f).format(c);let p={},v,y=null,g=E,k=null;const N="datetime format";for(let A=0;A<_.length;A++){if(v=k=_[A],process.env.NODE_ENV!=="production"&&E!==v&&wn(m,u)&&a(bt(De.FALLBACK_TO_DATE_FORMAT,{key:u,target:v})),process.env.NODE_ENV!=="production"&&E!==v){const R=e.__v_emitter;R&&R.emit("fallback",{type:N,key:u,from:g,to:k,groupId:`${N}:${u}`})}if(p=n[v]||{},y=p[u],oe(y))break;Fa(e,u,v,h,N),g=k}if(!oe(y)||!z(v))return r?Nn:u;let b=`${v}__${u}`;Cn(f)||(b=`${b}__${JSON.stringify(f)}`);let T=l.get(b);return T||(T=new Intl.DateTimeFormat(v,Le({},y,f)),l.set(b,T)),C?T.formatToParts(c):T.format(c)}const kf=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function da(...e){const[t,n,r,o]=e,a=ue();let s=ue(),l;if(z(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw tt(Oe.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 tt(Oe.INVALID_ISO_DATE_ARGUMENT)}}else if(Uv(t)){if(isNaN(t.getTime()))throw tt(Oe.INVALID_DATE_ARGUMENT);l=t}else if(Se(t))l=t;else throw tt(Oe.INVALID_ARGUMENT);return z(n)?a.key=n:oe(n)&&Object.keys(n).forEach(u=>{kf.includes(u)?s[u]=n[u]:a[u]=n[u]}),z(r)?a.locale=r:oe(r)&&(s=r),oe(o)&&(s=o),[a.key||"",l,a,s]}function zc(e,t,n){const r=e;for(const o in n){const a=`${t}__${o}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function jc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!bf.numberFormat)return a(bt(De.CANNOT_FORMAT_NUMBER)),un;const[u,c,d,f]=fa(...t),h=ye(d.missingWarn)?d.missingWarn:e.missingWarn,m=ye(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,E=qa(e,d),_=s(e,o,E);if(!z(u)||u==="")return new Intl.NumberFormat(E,f).format(c);let p={},v,y=null,g=E,k=null;const N="number format";for(let A=0;A<_.length;A++){if(v=k=_[A],process.env.NODE_ENV!=="production"&&E!==v&&wn(m,u)&&a(bt(De.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:v})),process.env.NODE_ENV!=="production"&&E!==v){const R=e.__v_emitter;R&&R.emit("fallback",{type:N,key:u,from:g,to:k,groupId:`${N}:${u}`})}if(p=n[v]||{},y=p[u],oe(y))break;Fa(e,u,v,h,N),g=k}if(!oe(y)||!z(v))return r?Nn:u;let b=`${v}__${u}`;Cn(f)||(b=`${b}__${JSON.stringify(f)}`);let T=l.get(b);return T||(T=new Intl.NumberFormat(v,Le({},y,f)),l.set(b,T)),C?T.formatToParts(c):T.format(c)}const Cf=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function fa(...e){const[t,n,r,o]=e,a=ue();let s=ue();if(!Se(t))throw tt(Oe.INVALID_ARGUMENT);const l=t;return z(n)?a.key=n:oe(n)&&Object.keys(n).forEach(u=>{Cf.includes(u)?s[u]=n[u]:a[u]=n[u]}),z(r)?a.locale=r:oe(r)&&(s=r),oe(o)&&(s=o),[a.key||"",l,a,s]}function Wc(e,t,n){const r=e;for(const o in n){const a=`${t}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const h_=e=>e,m_=e=>"",p_="text",g_=e=>e.length===0?"":xa(e),v_=jv;function Kc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function __(e){const t=Se(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Se(e.named.count)||Se(e.named.n))?Se(e.named.count)?e.named.count:Se(e.named.n)?e.named.n:t:t}function E_(e,t){t.count||(t.count=e),t.n||(t.n=e)}function y_(e={}){const t=e.locale,n=__(e),r=ae(e.pluralRules)&&z(t)&&fe(e.pluralRules[t])?e.pluralRules[t]:Kc,o=ae(e.pluralRules)&&z(t)&&fe(e.pluralRules[t])?Kc:void 0,a=p=>p[r(n,p.length,o)],s=e.list||[],l=p=>s[p],u=e.named||ue();Se(e.pluralIndex)&&E_(n,u);const c=p=>u[p];function d(p,v){const y=fe(e.messages)?e.messages(p,!!v):ae(e.messages)?e.messages[p]:!1;return y||(e.parent?e.parent.message(p):m_)}const f=p=>e.modifiers?e.modifiers[p]:h_,h=oe(e.processor)&&fe(e.processor.normalize)?e.processor.normalize:g_,m=oe(e.processor)&&fe(e.processor.interpolate)?e.processor.interpolate:v_,C=oe(e.processor)&&z(e.processor.type)?e.processor.type:p_,_={list:l,named:c,plural:a,linked:(p,...v)=>{const[y,g]=v;let k="text",N="";v.length===1?ae(y)?(N=y.modifier||N,k=y.type||k):z(y)&&(N=y||N):v.length===2&&(z(y)&&(N=y||N),z(g)&&(k=g||k));const b=d(p,!0)(_),T=k==="vnode"&&Ne(b)&&N?b[0]:b;return N?f(N)(T,k):T},message:d,type:C,interpolate:m,normalize:h,values:Le(ue(),s,u)};return _}const Yc=()=>"",Ge=e=>fe(e);function Xc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:s,messages:l}=e,[u,c]=ha(...t),d=ye(c.missingWarn)?c.missingWarn:e.missingWarn,f=ye(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=ye(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,C=z(c.default)||ye(c.default)?ye(c.default)?a?u:()=>u:c.default:n?a?u:()=>u:null,E=n||C!=null&&(z(C)||fe(C)),_=qa(e,c);h&&b_(c);let[p,v,y]=m?[u,_,l[_]||ue()]:Nf(e,u,_,s,f,d),g=p,k=u;if(!m&&!(z(g)||We(g)||Ge(g))&&E&&(g=C,k=g),!m&&(!(z(g)||We(g)||Ge(g))||!z(v)))return o?Nn:u;if(process.env.NODE_ENV!=="production"&&z(g)&&e.messageCompiler==null)return ft(`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 N=!1;const b=()=>{N=!0},T=Ge(g)?g:wf(e,u,v,g,k,b);if(N)return g;const A=w_(e,v,y,c),R=y_(A),F=k_(e,T,R),V=r?r(F,u):F;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:z(u)?u:Ge(g)?g.key:"",locale:v||(Ge(g)?g.locale:""),format:z(g)?g:Ge(g)?g.source:"",message:V};j.meta=Le({},e.__meta,u_()||{}),q1(j)}return V}function b_(e){Ne(e.list)?e.list=e.list.map(t=>z(t)?Oc(t):t):ae(e.named)&&Object.keys(e.named).forEach(t=>{z(e.named[t])&&(e.named[t]=Oc(e.named[t]))})}function Nf(e,t,n,r,o,a){const{messages:s,onWarn:l,messageResolver:u,localeFallbacker:c}=e,d=c(e,r,n);let f=ue(),h,m=null,C=n,E=null;const _="translate";for(let p=0;p<d.length;p++){if(h=E=d[p],process.env.NODE_ENV!=="production"&&n!==h&&!yf(n,h)&&wn(o,t)&&l(bt(De.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const k=e.__v_emitter;k&&k.emit("fallback",{type:_,key:t,from:C,to:E,groupId:`${_}:${t}`})}f=s[h]||ue();let v=null,y,g;if(process.env.NODE_ENV!=="production"&&it&&(v=window.performance.now(),y="intlify-message-resolve-start",g="intlify-message-resolve-end",Ue&&Ue(y)),(m=u(f,t))===null&&(m=f[t]),process.env.NODE_ENV!=="production"&&it){const k=window.performance.now(),N=e.__v_emitter;N&&v&&m&&N.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:k-v,groupId:`${_}:${t}`}),y&&g&&Ue&&yt&&(Ue(g),yt("intlify message resolve",y,g))}if(z(m)||We(m)||Ge(m))break;if(!f_(h,d)){const k=Fa(e,t,h,a,_);k!==t&&(m=k)}C=E}return[m,h,f]}function wf(e,t,n,r,o,a){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Ge(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||t,h}if(s==null){const h=()=>r;return h.locale=n,h.key=t,h}let u=null,c,d;process.env.NODE_ENV!=="production"&&it&&(u=window.performance.now(),c="intlify-message-compilation-start",d="intlify-message-compilation-end",Ue&&Ue(c));const f=s(r,C_(e,n,o,r,l,a));if(process.env.NODE_ENV!=="production"&&it){const h=window.performance.now(),m=e.__v_emitter;m&&u&&m.emit("message-compilation",{type:"message-compilation",message:r,time:h-u,groupId:`translate:${t}`}),c&&d&&Ue&&yt&&(Ue(d),yt("intlify message compilation",c,d))}return f.locale=n,f.key=t,f.source=r,f}function k_(e,t,n){let r=null,o,a;process.env.NODE_ENV!=="production"&&it&&(r=window.performance.now(),o="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Ue&&Ue(o));const s=t(n);if(process.env.NODE_ENV!=="production"&&it){const l=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-r,groupId:`translate:${t.key}`}),o&&a&&Ue&&yt&&(Ue(a),yt("intlify message evaluation",o,a))}return s}function ha(...e){const[t,n,r]=e,o=ue();if(!z(t)&&!Se(t)&&!Ge(t)&&!We(t))throw tt(Oe.INVALID_ARGUMENT);const a=Se(t)?String(t):(Ge(t),t);return Se(n)?o.plural=n:z(n)?o.default=n:oe(n)&&!Cn(n)?o.named=n:Ne(n)&&(o.list=n),Se(r)?o.plural=r:z(r)?o.default=r:oe(r)&&Le(o,r),[a,o]}function C_(e,t,n,r,o,a){return{locale:t,key:n,warnHtmlMessage:o,onError:s=>{if(a&&a(s),process.env.NODE_ENV!=="production"){const l=N_(r),u=`Message compilation error: ${s.message}`,c=s.location&&l&&Wv(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:${n}`}),console.error(c?`${u}
|
|
16
|
+
*/function w1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Et().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Et().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function We(e){return ae(e)&&$a(e)===0&&(je(e,"b")||je(e,"body"))}const rf=["b","body"];function S1(e){return ht(e,rf)}const of=["c","cases"];function L1(e){return ht(e,of,[])}const af=["s","static"];function T1(e){return ht(e,af)}const sf=["i","items"];function I1(e){return ht(e,sf,[])}const lf=["t","type"];function $a(e){return ht(e,lf)}const uf=["v","value"];function Xt(e,t){const n=ht(e,uf);if(n!=null)return n;throw qt(t)}const cf=["m","modifier"];function O1(e){return ht(e,cf)}const df=["k","key"];function A1(e){const t=ht(e,df);if(t)return t;throw qt(6)}function ht(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(je(e,o)&&e[o]!=null)return e[o]}return n}const ff=[...rf,...of,...af,...sf,...df,...cf,...uf,...lf];function qt(e){return new Error(`unhandled node type: ${e}`)}function ta(e){return n=>R1(n,e)}function R1(e,t){const n=S1(t);if(n==null)throw qt(0);if($a(n)===1){const a=L1(n);return e.plural(a.reduce((s,l)=>[...s,Vc(e,l)],[]))}else return Vc(e,n)}function Vc(e,t){const n=T1(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=I1(t).reduce((o,a)=>[...o,ca(e,a)],[]);return e.normalize(r)}}function ca(e,t){const n=$a(t);switch(n){case 3:return Xt(t,n);case 9:return Xt(t,n);case 4:{const r=t;if(je(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(je(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw qt(n)}case 5:{const r=t;if(je(r,"i")&&Se(r.i))return e.interpolate(e.list(r.i));if(je(r,"index")&&Se(r.index))return e.interpolate(e.list(r.index));throw qt(n)}case 6:{const r=t,o=O1(r),a=A1(r);return e.linked(ca(e,a),o?ca(e,o):void 0,e.type)}case 7:return Xt(t,n);case 8:return Xt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const D1="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function P1(e,t){t&&t1(e)&&ft(kn(D1,{source:e}))}const B1=e=>e;let Zt=ue();function V1(e,t={}){let n=!1;const r=t.onError||Qv;return t.onError=o=>{n=!0,r(o)},{...N1(e,t),detectError:n}}function x1(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&z(e)){const n=ye(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&P1(e,n);const o=(t.onCacheKey||B1)(e),a=Zt[o];if(a)return a;const{ast:s,detectError:l}=V1(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=ta(s);return l?u:Zt[o]=u}else{if(process.env.NODE_ENV!=="production"&&!We(e))return ft(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Zt[n];return r||(Zt[n]=ta(e))}else return ta(e)}}let Ft=null;function M1(e){Ft=e}function $1(e,t,n){Ft&&Ft.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const q1=F1("function:translate");function F1(e){return t=>Ft&&Ft.emit(e,t)}const Oe={INVALID_ARGUMENT:Zv,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},U1=24;function tt(e){return Vt(e,null,process.env.NODE_ENV!=="production"?{messages:H1}:void 0)}const H1={[Oe.INVALID_ARGUMENT]:"Invalid arguments",[Oe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Oe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Oe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Oe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function qa(e,t){return t.locale!=null?xc(t.locale):xc(e.locale)}let na;function xc(e){if(z(e))return e;if(fe(e)){if(e.resolvedOnce&&na!=null)return na;if(e.constructor.name==="Function"){const t=e();if(zv(t))throw tt(Oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return na=t}else throw tt(Oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw tt(Oe.NOT_SUPPORT_LOCALE_TYPE)}function G1(e,t,n){return[...new Set([n,...Ne(t)?t:ae(t)?Object.keys(t):z(t)?[t]:[n]])]}function hf(e,t,n){const r=z(n)?n:ln,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(r);if(!a){a=[];let s=[n];for(;Ne(s);)s=Mc(a,s,t);const l=Ne(t)||!oe(t)?t:t.default?t.default:null;s=z(l)?[l]:l,Ne(s)&&Mc(a,s,!1),o.__localeChainCache.set(r,a)}return a}function Mc(e,t,n){let r=!0;for(let o=0;o<t.length&&ye(r);o++){const a=t[o];z(a)&&(r=z1(e,t[o],n))}return r}function z1(e,t,n){let r;const o=t.split("-");do{const a=o.join("-");r=j1(e,a,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function j1(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Ne(n)||oe(n))&&n[o]&&(r=n[o])}return r}const mt=[];mt[0]={w:[0],i:[3,0],"[":[4],o:[7]};mt[1]={w:[1],".":[2],"[":[4],o:[7]};mt[2]={w:[2],i:[3,0],0:[3,0]};mt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};mt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};mt[5]={"'":[4,0],o:8,l:[5,0]};mt[6]={'"':[4,0],o:8,l:[6,0]};const W1=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function K1(e){return W1.test(e)}function Y1(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function X1(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 Z1(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:K1(t)?Y1(t):"*"+t}function J1(e){const t=[];let n=-1,r=0,o=0,a,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](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=Z1(s),s===!1))return!1;h[1]()}};function m(){const C=e[n+1];if(r===5&&C==="'"||r===6&&C==='"')return n++,l="\\"+C,h[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&m())){if(u=X1(a),f=mt[r],c=f[u]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(d=h[c[1]],d&&(l=a,d()===!1))))return;if(r===7)return t}}const $c=new Map;function Q1(e,t){return ae(e)?e[t]:null}function e_(e,t){if(!ae(e))return null;let n=$c.get(t);if(n||(n=J1(t),n&&$c.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;a<r;){const s=n[a];if(ff.includes(s)&&We(o))return null;const l=o[s];if(l===void 0||fe(o))return null;o=l,a++}return o}const De={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},t_=8,n_={[De.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[De.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[De.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[De.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[De.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[De.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[De.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 bt(e,...t){return kn(n_[e],...t)}const r_="11.1.3",Nn=-1,ln="en-US",un="",qc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function i_(){return{upper:(e,t)=>t==="text"&&z(e)?e.toUpperCase():t==="vnode"&&ae(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&z(e)?e.toLowerCase():t==="vnode"&&ae(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&z(e)?qc(e):t==="vnode"&&ae(e)&&"__v_isVNode"in e?qc(e.children):e}}let mf;function o_(e){mf=e}let pf;function a_(e){pf=e}let gf;function s_(e){gf=e}let vf=null;const l_=e=>{vf=e},u_=()=>vf;let _f=null;const Fc=e=>{_f=e},c_=()=>_f;let Uc=0;function d_(e={}){const t=fe(e.onWarn)?e.onWarn:ft,n=z(e.version)?e.version:r_,r=z(e.locale)||fe(e.locale)?e.locale:ln,o=fe(r)?ln:r,a=Ne(e.fallbackLocale)||oe(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,s=oe(e.messages)?e.messages:ra(o),l=oe(e.datetimeFormats)?e.datetimeFormats:ra(o),u=oe(e.numberFormats)?e.numberFormats:ra(o),c=Le(ue(),e.modifiers,i_()),d=e.pluralRules||ue(),f=fe(e.missing)?e.missing:null,h=ye(e.missingWarn)||sn(e.missingWarn)?e.missingWarn:!0,m=ye(e.fallbackWarn)||sn(e.fallbackWarn)?e.fallbackWarn:!0,C=!!e.fallbackFormat,E=!!e.unresolving,_=fe(e.postTranslation)?e.postTranslation:null,p=oe(e.processor)?e.processor:null,v=ye(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,g=fe(e.messageCompiler)?e.messageCompiler:mf;process.env.NODE_ENV!=="production"&&fe(e.messageCompiler)&&Kv(bt(De.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=fe(e.messageResolver)?e.messageResolver:pf||Q1,N=fe(e.localeFallbacker)?e.localeFallbacker:gf||G1,b=ae(e.fallbackContext)?e.fallbackContext:void 0,T=e,A=ae(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,R=ae(T.__numberFormatters)?T.__numberFormatters:new Map,U=ae(T.__meta)?T.__meta:{};Uc++;const V={version:n,cid:Uc,locale:r,fallbackLocale:a,messages:s,modifiers:c,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:m,fallbackFormat:C,unresolving:E,postTranslation:_,processor:p,warnHtmlMessage:v,escapeParameter:y,messageCompiler:g,messageResolver:k,localeFallbacker:N,fallbackContext:b,onWarn:t,__meta:U};return V.datetimeFormats=l,V.numberFormats=u,V.__datetimeFormatters=A,V.__numberFormatters=R,process.env.NODE_ENV!=="production"&&(V.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&$1(V,n,U),V}const ra=e=>({[e]:ue()});function wn(e,t){return e instanceof RegExp?e.test(t):e}function Ef(e,t){return e instanceof RegExp?e.test(t):e}function Fa(e,t,n,r,o){const{missing:a,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(a!==null){const l=a(e,n,t,o);return z(l)?l:t}else return process.env.NODE_ENV!=="production"&&Ef(r,t)&&s(bt(De.NOT_FOUND_KEY,{key:t,locale:n})),t}function Mt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function yf(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function f_(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(yf(e,t[r]))return!0;return!1}const Hc=typeof Intl<"u",bf={dateTimeFormat:Hc&&typeof Intl.DateTimeFormat<"u",numberFormat:Hc&&typeof Intl.NumberFormat<"u"};function Gc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!bf.dateTimeFormat)return a(bt(De.CANNOT_FORMAT_DATE)),un;const[u,c,d,f]=da(...t),h=ye(d.missingWarn)?d.missingWarn:e.missingWarn,m=ye(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,E=qa(e,d),_=s(e,o,E);if(!z(u)||u==="")return new Intl.DateTimeFormat(E,f).format(c);let p={},v,y=null,g=E,k=null;const N="datetime format";for(let A=0;A<_.length;A++){if(v=k=_[A],process.env.NODE_ENV!=="production"&&E!==v&&wn(m,u)&&a(bt(De.FALLBACK_TO_DATE_FORMAT,{key:u,target:v})),process.env.NODE_ENV!=="production"&&E!==v){const R=e.__v_emitter;R&&R.emit("fallback",{type:N,key:u,from:g,to:k,groupId:`${N}:${u}`})}if(p=n[v]||{},y=p[u],oe(y))break;Fa(e,u,v,h,N),g=k}if(!oe(y)||!z(v))return r?Nn:u;let b=`${v}__${u}`;Cn(f)||(b=`${b}__${JSON.stringify(f)}`);let T=l.get(b);return T||(T=new Intl.DateTimeFormat(v,Le({},y,f)),l.set(b,T)),C?T.formatToParts(c):T.format(c)}const kf=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function da(...e){const[t,n,r,o]=e,a=ue();let s=ue(),l;if(z(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw tt(Oe.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 tt(Oe.INVALID_ISO_DATE_ARGUMENT)}}else if(Uv(t)){if(isNaN(t.getTime()))throw tt(Oe.INVALID_DATE_ARGUMENT);l=t}else if(Se(t))l=t;else throw tt(Oe.INVALID_ARGUMENT);return z(n)?a.key=n:oe(n)&&Object.keys(n).forEach(u=>{kf.includes(u)?s[u]=n[u]:a[u]=n[u]}),z(r)?a.locale=r:oe(r)&&(s=r),oe(o)&&(s=o),[a.key||"",l,a,s]}function zc(e,t,n){const r=e;for(const o in n){const a=`${t}__${o}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function jc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!bf.numberFormat)return a(bt(De.CANNOT_FORMAT_NUMBER)),un;const[u,c,d,f]=fa(...t),h=ye(d.missingWarn)?d.missingWarn:e.missingWarn,m=ye(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,C=!!d.part,E=qa(e,d),_=s(e,o,E);if(!z(u)||u==="")return new Intl.NumberFormat(E,f).format(c);let p={},v,y=null,g=E,k=null;const N="number format";for(let A=0;A<_.length;A++){if(v=k=_[A],process.env.NODE_ENV!=="production"&&E!==v&&wn(m,u)&&a(bt(De.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:v})),process.env.NODE_ENV!=="production"&&E!==v){const R=e.__v_emitter;R&&R.emit("fallback",{type:N,key:u,from:g,to:k,groupId:`${N}:${u}`})}if(p=n[v]||{},y=p[u],oe(y))break;Fa(e,u,v,h,N),g=k}if(!oe(y)||!z(v))return r?Nn:u;let b=`${v}__${u}`;Cn(f)||(b=`${b}__${JSON.stringify(f)}`);let T=l.get(b);return T||(T=new Intl.NumberFormat(v,Le({},y,f)),l.set(b,T)),C?T.formatToParts(c):T.format(c)}const Cf=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function fa(...e){const[t,n,r,o]=e,a=ue();let s=ue();if(!Se(t))throw tt(Oe.INVALID_ARGUMENT);const l=t;return z(n)?a.key=n:oe(n)&&Object.keys(n).forEach(u=>{Cf.includes(u)?s[u]=n[u]:a[u]=n[u]}),z(r)?a.locale=r:oe(r)&&(s=r),oe(o)&&(s=o),[a.key||"",l,a,s]}function Wc(e,t,n){const r=e;for(const o in n){const a=`${t}__${o}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}const h_=e=>e,m_=e=>"",p_="text",g_=e=>e.length===0?"":xa(e),v_=jv;function Kc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function __(e){const t=Se(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Se(e.named.count)||Se(e.named.n))?Se(e.named.count)?e.named.count:Se(e.named.n)?e.named.n:t:t}function E_(e,t){t.count||(t.count=e),t.n||(t.n=e)}function y_(e={}){const t=e.locale,n=__(e),r=ae(e.pluralRules)&&z(t)&&fe(e.pluralRules[t])?e.pluralRules[t]:Kc,o=ae(e.pluralRules)&&z(t)&&fe(e.pluralRules[t])?Kc:void 0,a=p=>p[r(n,p.length,o)],s=e.list||[],l=p=>s[p],u=e.named||ue();Se(e.pluralIndex)&&E_(n,u);const c=p=>u[p];function d(p,v){const y=fe(e.messages)?e.messages(p,!!v):ae(e.messages)?e.messages[p]:!1;return y||(e.parent?e.parent.message(p):m_)}const f=p=>e.modifiers?e.modifiers[p]:h_,h=oe(e.processor)&&fe(e.processor.normalize)?e.processor.normalize:g_,m=oe(e.processor)&&fe(e.processor.interpolate)?e.processor.interpolate:v_,C=oe(e.processor)&&z(e.processor.type)?e.processor.type:p_,_={list:l,named:c,plural:a,linked:(p,...v)=>{const[y,g]=v;let k="text",N="";v.length===1?ae(y)?(N=y.modifier||N,k=y.type||k):z(y)&&(N=y||N):v.length===2&&(z(y)&&(N=y||N),z(g)&&(k=g||k));const b=d(p,!0)(_),T=k==="vnode"&&Ne(b)&&N?b[0]:b;return N?f(N)(T,k):T},message:d,type:C,interpolate:m,normalize:h,values:Le(ue(),s,u)};return _}const Yc=()=>"",Ge=e=>fe(e);function Xc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:a,fallbackLocale:s,messages:l}=e,[u,c]=ha(...t),d=ye(c.missingWarn)?c.missingWarn:e.missingWarn,f=ye(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=ye(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,C=z(c.default)||ye(c.default)?ye(c.default)?a?u:()=>u:c.default:n?a?u:()=>u:null,E=n||C!=null&&(z(C)||fe(C)),_=qa(e,c);h&&b_(c);let[p,v,y]=m?[u,_,l[_]||ue()]:Nf(e,u,_,s,f,d),g=p,k=u;if(!m&&!(z(g)||We(g)||Ge(g))&&E&&(g=C,k=g),!m&&(!(z(g)||We(g)||Ge(g))||!z(v)))return o?Nn:u;if(process.env.NODE_ENV!=="production"&&z(g)&&e.messageCompiler==null)return ft(`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 N=!1;const b=()=>{N=!0},T=Ge(g)?g:wf(e,u,v,g,k,b);if(N)return g;const A=w_(e,v,y,c),R=y_(A),U=k_(e,T,R),V=r?r(U,u):U;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:z(u)?u:Ge(g)?g.key:"",locale:v||(Ge(g)?g.locale:""),format:z(g)?g:Ge(g)?g.source:"",message:V};j.meta=Le({},e.__meta,u_()||{}),q1(j)}return V}function b_(e){Ne(e.list)?e.list=e.list.map(t=>z(t)?Oc(t):t):ae(e.named)&&Object.keys(e.named).forEach(t=>{z(e.named[t])&&(e.named[t]=Oc(e.named[t]))})}function Nf(e,t,n,r,o,a){const{messages:s,onWarn:l,messageResolver:u,localeFallbacker:c}=e,d=c(e,r,n);let f=ue(),h,m=null,C=n,E=null;const _="translate";for(let p=0;p<d.length;p++){if(h=E=d[p],process.env.NODE_ENV!=="production"&&n!==h&&!yf(n,h)&&wn(o,t)&&l(bt(De.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const k=e.__v_emitter;k&&k.emit("fallback",{type:_,key:t,from:C,to:E,groupId:`${_}:${t}`})}f=s[h]||ue();let v=null,y,g;if(process.env.NODE_ENV!=="production"&&it&&(v=window.performance.now(),y="intlify-message-resolve-start",g="intlify-message-resolve-end",Ue&&Ue(y)),(m=u(f,t))===null&&(m=f[t]),process.env.NODE_ENV!=="production"&&it){const k=window.performance.now(),N=e.__v_emitter;N&&v&&m&&N.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:k-v,groupId:`${_}:${t}`}),y&&g&&Ue&&yt&&(Ue(g),yt("intlify message resolve",y,g))}if(z(m)||We(m)||Ge(m))break;if(!f_(h,d)){const k=Fa(e,t,h,a,_);k!==t&&(m=k)}C=E}return[m,h,f]}function wf(e,t,n,r,o,a){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Ge(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||t,h}if(s==null){const h=()=>r;return h.locale=n,h.key=t,h}let u=null,c,d;process.env.NODE_ENV!=="production"&&it&&(u=window.performance.now(),c="intlify-message-compilation-start",d="intlify-message-compilation-end",Ue&&Ue(c));const f=s(r,C_(e,n,o,r,l,a));if(process.env.NODE_ENV!=="production"&&it){const h=window.performance.now(),m=e.__v_emitter;m&&u&&m.emit("message-compilation",{type:"message-compilation",message:r,time:h-u,groupId:`translate:${t}`}),c&&d&&Ue&&yt&&(Ue(d),yt("intlify message compilation",c,d))}return f.locale=n,f.key=t,f.source=r,f}function k_(e,t,n){let r=null,o,a;process.env.NODE_ENV!=="production"&&it&&(r=window.performance.now(),o="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Ue&&Ue(o));const s=t(n);if(process.env.NODE_ENV!=="production"&&it){const l=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-r,groupId:`translate:${t.key}`}),o&&a&&Ue&&yt&&(Ue(a),yt("intlify message evaluation",o,a))}return s}function ha(...e){const[t,n,r]=e,o=ue();if(!z(t)&&!Se(t)&&!Ge(t)&&!We(t))throw tt(Oe.INVALID_ARGUMENT);const a=Se(t)?String(t):(Ge(t),t);return Se(n)?o.plural=n:z(n)?o.default=n:oe(n)&&!Cn(n)?o.named=n:Ne(n)&&(o.list=n),Se(r)?o.plural=r:z(r)?o.default=r:oe(r)&&Le(o,r),[a,o]}function C_(e,t,n,r,o,a){return{locale:t,key:n,warnHtmlMessage:o,onError:s=>{if(a&&a(s),process.env.NODE_ENV!=="production"){const l=N_(r),u=`Message compilation error: ${s.message}`,c=s.location&&l&&Wv(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:${n}`}),console.error(c?`${u}
|
|
17
17
|
${c}`:u)}else throw s},onCacheKey:s=>qv(t,n,s)}}function N_(e){if(z(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function w_(e,t,n,r){const{modifiers:o,pluralRules:a,messageResolver:s,fallbackLocale:l,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,h={locale:t,modifiers:o,pluralRules:a,messages:(m,C)=>{let E=s(n,m);if(E==null&&(d||C)){const[,,_]=Nf(d||e,m,t,l,u,c);E=s(_,m)}if(z(E)||We(E)){let _=!1;const v=wf(e,m,t,E,m,()=>{_=!0});return _?Yc:v}else return Ge(E)?E:Yc}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Se(r.plural)&&(h.pluralIndex=r.plural),h}w1();function S_(){return Sf().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Sf(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const L_=typeof Proxy=="function",T_="devtools-plugin:setup",I_="plugin:settings:set";let It,ma;function O_(){var e;return It!==void 0||(typeof window<"u"&&window.performance?(It=!0,ma=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(It=!0,ma=globalThis.perf_hooks.performance):It=!1),It}function A_(){return O_()?ma.now():Date.now()}class R_{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const s=localStorage.getItem(o),l=JSON.parse(s);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(s){try{localStorage.setItem(o,JSON.stringify(s))}catch{}a=s},now(){return A_()}},n&&n.on(I_,(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 n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function D_(e,t){const n=e,r=Sf(),o=S_(),a=L_&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))o.emit(T_,e,t);else{const s=a?new R_(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,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 P_="11.1.3";function B_(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Et().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Et().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Et().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Et().__INTLIFY_PROD_DEVTOOLS__=!1)}const Te={UNEXPECTED_RETURN_TYPE:U1,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 Ut(e,...t){return Vt(e,null,process.env.NODE_ENV!=="production"?{messages:V_,args:t}:void 0)}const V_={[Te.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Te.INVALID_ARGUMENT]:"Invalid argument",[Te.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Te.NOT_INSTALLED]:"Need to install with `app.use` function",[Te.UNEXPECTED_ERROR]:"Unexpected error",[Te.REQUIRED_VALUE]:"Required in value: {0}",[Te.INVALID_VALUE]:"Invalid value",[Te.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Te.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Te.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Te.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},pa=at("__translateVNode"),ga=at("__datetimeParts"),va=at("__numberParts"),_a=at("__enableEmitter"),Ea=at("__disableEmitter"),x_=at("__setPluralRules"),Lf=at("__injectWithOption"),ya=at("__dispose"),dt={FALLBACK_TO_ROOT:t_,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},M_={[dt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[dt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[dt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[dt.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`,[dt.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ua(e,...t){return kn(M_[e],...t)}function Ht(e){if(!ae(e)||We(e))return e;for(const t in e)if(je(e,t))if(!t.includes("."))ae(e[t])&&Ht(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,a=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=ue()),!ae(o[n[s]])){process.env.NODE_ENV!=="production"&&ft(Ua(dt.IGNORE_OBJ_FLATTEN,{key:n[s]})),a=!0;break}o=o[n[s]]}if(a||(We(o)?ff.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!We(o)){const s=o[n[r]];ae(s)&&Ht(s)}}return e}function Tf(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:a}=t,s=oe(n)?n:Ne(r)?ue():{[e]:ue()};if(Ne(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(s[u]=s[u]||ue(),rn(c,s[u])):rn(c,s)}else z(l)&&rn(JSON.parse(l),s)}),o==null&&a)for(const l in s)je(s,l)&&Ht(s[l]);return s}function If(e){return e.type}function $_(e,t,n){let r=ae(t.messages)?t.messages:ue();"__i18nGlobal"in n&&(r=Tf(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(ae(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(ae(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Zc(e){return i.createVNode(i.Text,null,e,0)}const Jc="__INTLIFY_META__",Qc=()=>[],q_=()=>!1;let ed=0;function td(e){return(t,n,r,o)=>e(n,r,i.getCurrentInstance()||void 0,o)}const F_=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=If(e)[Jc])?{[Jc]:t}:null};function U_(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,a=it?i.ref:i.shallowRef;let s=ye(e.inheritLocale)?e.inheritLocale:!0;const l=a(t&&s?t.locale.value:z(e.locale)?e.locale:ln),u=a(t&&s?t.fallbackLocale.value:z(e.fallbackLocale)||Ne(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=a(Tf(l.value,e)),d=a(oe(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=a(oe(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:ye(e.missingWarn)||sn(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ye(e.fallbackWarn)||sn(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:ye(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,_=fe(e.missing)?e.missing:null,p=fe(e.missing)?td(e.missing):null,v=fe(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:ye(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const k=t?t.modifiers:oe(e.modifiers)?e.modifiers:{};let N=e.pluralRules||t&&t.pluralRules,b;b=(()=>{r&&Fc(null);const O={version:P_,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:k,pluralRules:N,missing:p===null?void 0:p,missingWarn:h,fallbackWarn:m,fallbackFormat:E,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};O.datetimeFormats=d.value,O.numberFormats=f.value,O.__datetimeFormatters=oe(b)?b.__datetimeFormatters:void 0,O.__numberFormatters=oe(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(O.__v_emitter=oe(b)?b.__v_emitter:void 0);const $=d_(O);return r&&Fc($),$})(),Mt(b,l.value,u.value);function A(){return[l.value,u.value,c.value,d.value,f.value]}const R=i.computed({get:()=>l.value,set:O=>{b.locale=O,l.value=O}}),F=i.computed({get:()=>u.value,set:O=>{b.fallbackLocale=O,u.value=O,Mt(b,l.value,O)}}),V=i.computed(()=>c.value),j=i.computed(()=>d.value),Z=i.computed(()=>f.value);function M(){return fe(v)?v:null}function D(O){v=O,b.postTranslation=O}function J(){return _}function W(O){O!==null&&(p=td(O)),_=O,b.missing=p}function U(O,$){return O!=="translate"||!$.resolvedMessage}const ne=(O,$,se,Ee,pt,jt)=>{A();let Tt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(b.fallbackContext=t?c_():void 0),Tt=O(b)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(b.fallbackContext=void 0)}if(se!=="translate exists"&&Se(Tt)&&Tt===Nn||se==="translate exists"&&!Tt){const[gt,Ah]=$();if(process.env.NODE_ENV!=="production"&&t&&z(gt)&&U(se,Ah)&&(C&&(wn(m,gt)||Ef(h,gt))&&ft(Ua(dt.FALLBACK_TO_ROOT,{key:gt,type:se})),process.env.NODE_ENV!=="production")){const{__v_emitter:ns}=b;ns&&C&&ns.emit("fallback",{type:se,key:gt,to:"global",groupId:`${se}:${gt}`})}return t&&C?Ee(t):pt(gt)}else{if(jt(Tt))return Tt;throw Ut(Te.UNEXPECTED_RETURN_TYPE)}};function me(...O){return ne($=>Reflect.apply(Xc,null,[$,...O]),()=>ha(...O),"translate",$=>Reflect.apply($.t,$,[...O]),$=>$,$=>z($))}function Re(...O){const[$,se,Ee]=O;if(Ee&&!ae(Ee))throw Ut(Te.INVALID_ARGUMENT);return me($,se,Le({resolvedMessage:!0},Ee||{}))}function xe(...O){return ne($=>Reflect.apply(Gc,null,[$,...O]),()=>da(...O),"datetime format",$=>Reflect.apply($.d,$,[...O]),()=>un,$=>z($))}function I(...O){return ne($=>Reflect.apply(jc,null,[$,...O]),()=>fa(...O),"number format",$=>Reflect.apply($.n,$,[...O]),()=>un,$=>z($))}function P(O){return O.map($=>z($)||Se($)||ye($)?Zc(String($)):$)}const G={normalize:P,interpolate:O=>O,type:"vnode"};function ee(...O){return ne($=>{let se;const Ee=$;try{Ee.processor=G,se=Reflect.apply(Xc,null,[Ee,...O])}finally{Ee.processor=null}return se},()=>ha(...O),"translate",$=>$[pa](...O),$=>[Zc($)],$=>Ne($))}function ce(...O){return ne($=>Reflect.apply(jc,null,[$,...O]),()=>fa(...O),"number format",$=>$[va](...O),Qc,$=>z($)||Ne($))}function pe(...O){return ne($=>Reflect.apply(Gc,null,[$,...O]),()=>da(...O),"datetime format",$=>$[ga](...O),Qc,$=>z($)||Ne($))}function Ie(O){N=O,b.pluralRules=N}function St(O,$){return ne(()=>{if(!O)return!1;const se=z($)?$:l.value,Ee=Me(se),pt=b.messageResolver(Ee,O);return We(pt)||Ge(pt)||z(pt)},()=>[O],"translate exists",se=>Reflect.apply(se.te,se,[O,$]),q_,se=>ye(se))}function we(O){let $=null;const se=hf(b,u.value,l.value);for(let Ee=0;Ee<se.length;Ee++){const pt=c.value[se[Ee]]||{},jt=b.messageResolver(pt,O);if(jt!=null){$=jt;break}}return $}function be(O){const $=we(O);return $??(t?t.tm(O)||{}:{})}function Me(O){return c.value[O]||{}}function st(O,$){if(o){const se={[O]:$};for(const Ee in se)je(se,Ee)&&Ht(se[Ee]);$=se[O]}c.value[O]=$,b.messages=c.value}function Lt(O,$){c.value[O]=c.value[O]||{};const se={[O]:$};if(o)for(const Ee in se)je(se,Ee)&&Ht(se[Ee]);$=se[O],rn($,c.value[O]),b.messages=c.value}function w(O){return d.value[O]||{}}function S(O,$){d.value[O]=$,b.datetimeFormats=d.value,zc(b,O,$)}function B(O,$){d.value[O]=Le(d.value[O]||{},$),b.datetimeFormats=d.value,zc(b,O,$)}function Y(O){return f.value[O]||{}}function ve(O,$){f.value[O]=$,b.numberFormats=f.value,Wc(b,O,$)}function _e(O,$){f.value[O]=Le(f.value[O]||{},$),b.numberFormats=f.value,Wc(b,O,$)}ed++,t&&it&&(i.watch(t.locale,O=>{s&&(l.value=O,b.locale=O,Mt(b,l.value,u.value))}),i.watch(t.fallbackLocale,O=>{s&&(u.value=O,b.fallbackLocale=O,Mt(b,l.value,u.value))}));const ie={id:ed,locale:R,fallbackLocale:F,get inheritLocale(){return s},set inheritLocale(O){s=O,O&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,Mt(b,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:V,get modifiers(){return k},get pluralRules(){return N||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(O){h=O,b.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(O){m=O,b.fallbackWarn=m},get fallbackRoot(){return C},set fallbackRoot(O){C=O},get fallbackFormat(){return E},set fallbackFormat(O){E=O,b.fallbackFormat=E},get warnHtmlMessage(){return y},set warnHtmlMessage(O){y=O,b.warnHtmlMessage=O},get escapeParameter(){return g},set escapeParameter(O){g=O,b.escapeParameter=O},t:me,getLocaleMessage:Me,setLocaleMessage:st,mergeLocaleMessage:Lt,getPostTranslationHandler:M,setPostTranslationHandler:D,getMissingHandler:J,setMissingHandler:W,[x_]:Ie};return ie.datetimeFormats=j,ie.numberFormats=Z,ie.rt=Re,ie.te=St,ie.tm=be,ie.d=xe,ie.n=I,ie.getDateTimeFormat=w,ie.setDateTimeFormat=S,ie.mergeDateTimeFormat=B,ie.getNumberFormat=Y,ie.setNumberFormat=ve,ie.mergeNumberFormat=_e,ie[Lf]=n,ie[pa]=ee,ie[ga]=pe,ie[va]=ce,process.env.NODE_ENV!=="production"&&(ie[_a]=O=>{b.__v_emitter=O},ie[Ea]=()=>{b.__v_emitter=void 0}),ie}function nd(e,t){}const Ha={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function H_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===i.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},ue())}function Of(){return i.Fragment}Le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Se(e)||!isNaN(e)}},Ha);function G_(e){return Ne(e)&&!z(e[0])}function Af(e,t,n,r){const{slots:o,attrs:a}=t;return()=>{const s={part:!0};let l=ue();e.locale&&(s.locale=e.locale),z(e.format)?s.key=e.format:ae(e.format)&&(z(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((h,m)=>n.includes(m)?Le(ue(),h,{[m]:e.format[m]}):h,ue()));const u=r(e.value,s,l);let c=[s.key];Ne(u)?c=u.map((h,m)=>{const C=o[h.type],E=C?C({[h.type]:h.value,index:m,parts:u}):[h.value];return G_(E)&&(E[0].key=`${h.type}-${m}`),E}):z(u)&&(c=[u]);const d=Le(ue(),a),f=z(e.tag)||ae(e.tag)?e.tag:Of();return i.h(f,d,c)}}Le({value:{type:Number,required:!0},format:{type:[String,Object]}},Ha);const z_=at("global-vue-i18n");function Sn(e={}){const t=i.getCurrentInstance();if(t==null)throw Ut(Te.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ut(Te.NOT_INSTALLED);const n=j_(t),r=K_(n),o=If(t),a=W_(e,o);if(a==="global")return $_(r,e,o),r;if(a==="parent"){let u=Y_(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&ft(Ua(dt.NOT_FOUND_PARENT_SCOPE)),u=r),u}const s=n;let l=s.__getInstance(t);if(l==null){const u=Le({},e);"__i18n"in o&&(u.__i18n=o.__i18n),r&&(u.__root=r),l=U_(u),s.__composerExtend&&(l[ya]=s.__composerExtend(l)),Z_(s,t,l),s.__setInstance(t,l)}return l}function j_(e){const t=i.inject(e.isCE?z_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ut(e.isCE?Te.NOT_INSTALLED_WITH_PROVIDE:Te.UNEXPECTED_ERROR);return t}function W_(e,t){return Cn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function K_(e){return e.mode==="composition"?e.global:e.global.__composer}function Y_(e,t,n=!1){let r=null;const o=t.root;let a=X_(t,n);for(;a!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(a);l!=null&&(r=l.__composer,n&&r&&!r[Lf]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function X_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Z_(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Yv();const o=n;o[_a]&&o[_a](r),r.on("*",nd)}},t),i.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",nd),o[Ea]&&o[Ea](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const a=o[ya];a&&(a(),delete o[ya])},t)}Le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ha);B_();o_(x1);a_(e_);s_(hf);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Et();e.__INTLIFY__=!0,M1(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const le=i.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let t;typeof document<"u"&&(t=import("bootstrap"));const n=e,r=i.ref(),o=i.ref(),a=i.ref();return i.onMounted(async()=>{i.nextTick(async()=>{const s=await t;typeof document<"u"&&o.value&&a.value&&(r.value=new s.Tooltip(o.value,{trigger:"hover",html:!0,placement:n.placement,title:a.value.innerHTML,customClass:"tooltip-custom"}))})}),i.onBeforeUnmount(async()=>{var s;(s=r.value)==null||s.dispose()}),(s,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("span",i.mergeProps({ref_key:"$tooltip",ref:o},s.$attrs),[i.renderSlot(s.$slots,"default")],16),i.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:a},[i.renderSlot(s.$slots,"content",{},()=>[i.createTextVNode(i.toDisplayString(s.title),1)])],512)],64))}}),J_=i.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const t=e,n=i.computed(()=>`data:image/svg+xml;base64,${a.value}`),r=i.computed(()=>({flowable:s.value?s.value.flowable:!1})),o=i.computed(()=>({backgroundImage:`url(${n.value})`})),a=i.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=Fe(c?"--bs-gray-900":"--bs-black")??"#FFFFFF";return t.theme&&(d=(t.theme==="dark"?Fe("--bs-gray-900"):Fe("--bs-black"))??d),t.variable&&(d=Fe(t.variable)??d),u=u.replace(/currentColor/g,d),window.btoa(u)}),s=i.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)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([r.value,"wrapper"])},[u.onlyIcon?(i.openBlock(),i.createElementBlock("div",{key:1,class:"icon",style:i.normalizeStyle(o.value)},null,4)):(i.openBlock(),i.createBlock(le,{key:0,title:u.cls},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle(o.value)},null,4)]),_:1},8,["title"]))],2))}}),Ga=K(J_,[["__scopeId","data-v-23f8d853"]]),Q_={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eE=["aria-hidden","aria-label"],tE=["fill","width","height"],nE={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"},rE={key:0};function iE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",nE,[n.title?(i.openBlock(),i.createElementBlock("title",rE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,tE))],16,eE)}const za=K(Q_,[["render",iE]]),oE={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aE=["aria-hidden","aria-label"],sE=["fill","width","height"],lE={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"},uE={key:0};function cE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lE,[n.title?(i.openBlock(),i.createElementBlock("title",uE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sE))],16,aE)}const dE=K(oE,[["render",cE]]),fE={class:"dependency-text d-flex flex-column flex-grow-1"},hE={class:"dependency-flow-text text-truncate"},mE={class:"dependency-namespace-text text-truncate"},pE={class:"text-white top-button-div"},gE=i.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:[H.EXPAND_DEPENDENCIES,H.OPEN_LINK,H.MOUSE_OVER,H.MOUSE_LEAVE],setup(e,{emit:t}){const n=t,{t:r}=Sn(),o=i.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`,[dt.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ua(e,...t){return kn(M_[e],...t)}function Ht(e){if(!ae(e)||We(e))return e;for(const t in e)if(je(e,t))if(!t.includes("."))ae(e[t])&&Ht(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,a=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=ue()),!ae(o[n[s]])){process.env.NODE_ENV!=="production"&&ft(Ua(dt.IGNORE_OBJ_FLATTEN,{key:n[s]})),a=!0;break}o=o[n[s]]}if(a||(We(o)?ff.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!We(o)){const s=o[n[r]];ae(s)&&Ht(s)}}return e}function Tf(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:a}=t,s=oe(n)?n:Ne(r)?ue():{[e]:ue()};if(Ne(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(s[u]=s[u]||ue(),rn(c,s[u])):rn(c,s)}else z(l)&&rn(JSON.parse(l),s)}),o==null&&a)for(const l in s)je(s,l)&&Ht(s[l]);return s}function If(e){return e.type}function $_(e,t,n){let r=ae(t.messages)?t.messages:ue();"__i18nGlobal"in n&&(r=Tf(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(ae(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(ae(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Zc(e){return i.createVNode(i.Text,null,e,0)}const Jc="__INTLIFY_META__",Qc=()=>[],q_=()=>!1;let ed=0;function td(e){return(t,n,r,o)=>e(n,r,i.getCurrentInstance()||void 0,o)}const F_=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=If(e)[Jc])?{[Jc]:t}:null};function U_(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,a=it?i.ref:i.shallowRef;let s=ye(e.inheritLocale)?e.inheritLocale:!0;const l=a(t&&s?t.locale.value:z(e.locale)?e.locale:ln),u=a(t&&s?t.fallbackLocale.value:z(e.fallbackLocale)||Ne(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=a(Tf(l.value,e)),d=a(oe(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=a(oe(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:ye(e.missingWarn)||sn(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ye(e.fallbackWarn)||sn(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:ye(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,_=fe(e.missing)?e.missing:null,p=fe(e.missing)?td(e.missing):null,v=fe(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:ye(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const k=t?t.modifiers:oe(e.modifiers)?e.modifiers:{};let N=e.pluralRules||t&&t.pluralRules,b;b=(()=>{r&&Fc(null);const O={version:P_,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:k,pluralRules:N,missing:p===null?void 0:p,missingWarn:h,fallbackWarn:m,fallbackFormat:E,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};O.datetimeFormats=d.value,O.numberFormats=f.value,O.__datetimeFormatters=oe(b)?b.__datetimeFormatters:void 0,O.__numberFormatters=oe(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(O.__v_emitter=oe(b)?b.__v_emitter:void 0);const $=d_(O);return r&&Fc($),$})(),Mt(b,l.value,u.value);function A(){return[l.value,u.value,c.value,d.value,f.value]}const R=i.computed({get:()=>l.value,set:O=>{b.locale=O,l.value=O}}),U=i.computed({get:()=>u.value,set:O=>{b.fallbackLocale=O,u.value=O,Mt(b,l.value,O)}}),V=i.computed(()=>c.value),j=i.computed(()=>d.value),Z=i.computed(()=>f.value);function M(){return fe(v)?v:null}function D(O){v=O,b.postTranslation=O}function J(){return _}function W(O){O!==null&&(p=td(O)),_=O,b.missing=p}function F(O,$){return O!=="translate"||!$.resolvedMessage}const ne=(O,$,se,Ee,pt,jt)=>{A();let Tt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(b.fallbackContext=t?c_():void 0),Tt=O(b)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(b.fallbackContext=void 0)}if(se!=="translate exists"&&Se(Tt)&&Tt===Nn||se==="translate exists"&&!Tt){const[gt,Ah]=$();if(process.env.NODE_ENV!=="production"&&t&&z(gt)&&F(se,Ah)&&(C&&(wn(m,gt)||Ef(h,gt))&&ft(Ua(dt.FALLBACK_TO_ROOT,{key:gt,type:se})),process.env.NODE_ENV!=="production")){const{__v_emitter:ns}=b;ns&&C&&ns.emit("fallback",{type:se,key:gt,to:"global",groupId:`${se}:${gt}`})}return t&&C?Ee(t):pt(gt)}else{if(jt(Tt))return Tt;throw Ut(Te.UNEXPECTED_RETURN_TYPE)}};function me(...O){return ne($=>Reflect.apply(Xc,null,[$,...O]),()=>ha(...O),"translate",$=>Reflect.apply($.t,$,[...O]),$=>$,$=>z($))}function Re(...O){const[$,se,Ee]=O;if(Ee&&!ae(Ee))throw Ut(Te.INVALID_ARGUMENT);return me($,se,Le({resolvedMessage:!0},Ee||{}))}function xe(...O){return ne($=>Reflect.apply(Gc,null,[$,...O]),()=>da(...O),"datetime format",$=>Reflect.apply($.d,$,[...O]),()=>un,$=>z($))}function I(...O){return ne($=>Reflect.apply(jc,null,[$,...O]),()=>fa(...O),"number format",$=>Reflect.apply($.n,$,[...O]),()=>un,$=>z($))}function P(O){return O.map($=>z($)||Se($)||ye($)?Zc(String($)):$)}const G={normalize:P,interpolate:O=>O,type:"vnode"};function ee(...O){return ne($=>{let se;const Ee=$;try{Ee.processor=G,se=Reflect.apply(Xc,null,[Ee,...O])}finally{Ee.processor=null}return se},()=>ha(...O),"translate",$=>$[pa](...O),$=>[Zc($)],$=>Ne($))}function ce(...O){return ne($=>Reflect.apply(jc,null,[$,...O]),()=>fa(...O),"number format",$=>$[va](...O),Qc,$=>z($)||Ne($))}function pe(...O){return ne($=>Reflect.apply(Gc,null,[$,...O]),()=>da(...O),"datetime format",$=>$[ga](...O),Qc,$=>z($)||Ne($))}function Ie(O){N=O,b.pluralRules=N}function St(O,$){return ne(()=>{if(!O)return!1;const se=z($)?$:l.value,Ee=Me(se),pt=b.messageResolver(Ee,O);return We(pt)||Ge(pt)||z(pt)},()=>[O],"translate exists",se=>Reflect.apply(se.te,se,[O,$]),q_,se=>ye(se))}function we(O){let $=null;const se=hf(b,u.value,l.value);for(let Ee=0;Ee<se.length;Ee++){const pt=c.value[se[Ee]]||{},jt=b.messageResolver(pt,O);if(jt!=null){$=jt;break}}return $}function be(O){const $=we(O);return $??(t?t.tm(O)||{}:{})}function Me(O){return c.value[O]||{}}function st(O,$){if(o){const se={[O]:$};for(const Ee in se)je(se,Ee)&&Ht(se[Ee]);$=se[O]}c.value[O]=$,b.messages=c.value}function Lt(O,$){c.value[O]=c.value[O]||{};const se={[O]:$};if(o)for(const Ee in se)je(se,Ee)&&Ht(se[Ee]);$=se[O],rn($,c.value[O]),b.messages=c.value}function w(O){return d.value[O]||{}}function S(O,$){d.value[O]=$,b.datetimeFormats=d.value,zc(b,O,$)}function B(O,$){d.value[O]=Le(d.value[O]||{},$),b.datetimeFormats=d.value,zc(b,O,$)}function Y(O){return f.value[O]||{}}function ve(O,$){f.value[O]=$,b.numberFormats=f.value,Wc(b,O,$)}function _e(O,$){f.value[O]=Le(f.value[O]||{},$),b.numberFormats=f.value,Wc(b,O,$)}ed++,t&&it&&(i.watch(t.locale,O=>{s&&(l.value=O,b.locale=O,Mt(b,l.value,u.value))}),i.watch(t.fallbackLocale,O=>{s&&(u.value=O,b.fallbackLocale=O,Mt(b,l.value,u.value))}));const ie={id:ed,locale:R,fallbackLocale:U,get inheritLocale(){return s},set inheritLocale(O){s=O,O&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,Mt(b,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:V,get modifiers(){return k},get pluralRules(){return N||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(O){h=O,b.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(O){m=O,b.fallbackWarn=m},get fallbackRoot(){return C},set fallbackRoot(O){C=O},get fallbackFormat(){return E},set fallbackFormat(O){E=O,b.fallbackFormat=E},get warnHtmlMessage(){return y},set warnHtmlMessage(O){y=O,b.warnHtmlMessage=O},get escapeParameter(){return g},set escapeParameter(O){g=O,b.escapeParameter=O},t:me,getLocaleMessage:Me,setLocaleMessage:st,mergeLocaleMessage:Lt,getPostTranslationHandler:M,setPostTranslationHandler:D,getMissingHandler:J,setMissingHandler:W,[x_]:Ie};return ie.datetimeFormats=j,ie.numberFormats=Z,ie.rt=Re,ie.te=St,ie.tm=be,ie.d=xe,ie.n=I,ie.getDateTimeFormat=w,ie.setDateTimeFormat=S,ie.mergeDateTimeFormat=B,ie.getNumberFormat=Y,ie.setNumberFormat=ve,ie.mergeNumberFormat=_e,ie[Lf]=n,ie[pa]=ee,ie[ga]=pe,ie[va]=ce,process.env.NODE_ENV!=="production"&&(ie[_a]=O=>{b.__v_emitter=O},ie[Ea]=()=>{b.__v_emitter=void 0}),ie}function nd(e,t){}const Ha={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function H_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===i.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},ue())}function Of(){return i.Fragment}Le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Se(e)||!isNaN(e)}},Ha);function G_(e){return Ne(e)&&!z(e[0])}function Af(e,t,n,r){const{slots:o,attrs:a}=t;return()=>{const s={part:!0};let l=ue();e.locale&&(s.locale=e.locale),z(e.format)?s.key=e.format:ae(e.format)&&(z(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((h,m)=>n.includes(m)?Le(ue(),h,{[m]:e.format[m]}):h,ue()));const u=r(e.value,s,l);let c=[s.key];Ne(u)?c=u.map((h,m)=>{const C=o[h.type],E=C?C({[h.type]:h.value,index:m,parts:u}):[h.value];return G_(E)&&(E[0].key=`${h.type}-${m}`),E}):z(u)&&(c=[u]);const d=Le(ue(),a),f=z(e.tag)||ae(e.tag)?e.tag:Of();return i.h(f,d,c)}}Le({value:{type:Number,required:!0},format:{type:[String,Object]}},Ha);const z_=at("global-vue-i18n");function Sn(e={}){const t=i.getCurrentInstance();if(t==null)throw Ut(Te.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ut(Te.NOT_INSTALLED);const n=j_(t),r=K_(n),o=If(t),a=W_(e,o);if(a==="global")return $_(r,e,o),r;if(a==="parent"){let u=Y_(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&ft(Ua(dt.NOT_FOUND_PARENT_SCOPE)),u=r),u}const s=n;let l=s.__getInstance(t);if(l==null){const u=Le({},e);"__i18n"in o&&(u.__i18n=o.__i18n),r&&(u.__root=r),l=U_(u),s.__composerExtend&&(l[ya]=s.__composerExtend(l)),Z_(s,t,l),s.__setInstance(t,l)}return l}function j_(e){const t=i.inject(e.isCE?z_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ut(e.isCE?Te.NOT_INSTALLED_WITH_PROVIDE:Te.UNEXPECTED_ERROR);return t}function W_(e,t){return Cn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function K_(e){return e.mode==="composition"?e.global:e.global.__composer}function Y_(e,t,n=!1){let r=null;const o=t.root;let a=X_(t,n);for(;a!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(a);l!=null&&(r=l.__composer,n&&r&&!r[Lf]&&(r=null))}if(r!=null||o===a)break;a=a.parent}return r}function X_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Z_(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Yv();const o=n;o[_a]&&o[_a](r),r.on("*",nd)}},t),i.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",nd),o[Ea]&&o[Ea](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const a=o[ya];a&&(a(),delete o[ya])},t)}Le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ha);B_();o_(x1);a_(e_);s_(hf);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Et();e.__INTLIFY__=!0,M1(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const le=i.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let t;typeof document<"u"&&(t=import("bootstrap"));const n=e,r=i.ref(),o=i.ref(),a=i.ref();return i.onMounted(async()=>{i.nextTick(async()=>{const s=await t;typeof document<"u"&&o.value&&a.value&&(r.value=new s.Tooltip(o.value,{trigger:"hover",html:!0,placement:n.placement,title:a.value.innerHTML,customClass:"tooltip-custom"}))})}),i.onBeforeUnmount(async()=>{var s;(s=r.value)==null||s.dispose()}),(s,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("span",i.mergeProps({ref_key:"$tooltip",ref:o},s.$attrs),[i.renderSlot(s.$slots,"default")],16),i.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:a},[i.renderSlot(s.$slots,"content",{},()=>[i.createTextVNode(i.toDisplayString(s.title),1)])],512)],64))}}),J_=i.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const t=e,n=i.computed(()=>`data:image/svg+xml;base64,${a.value}`),r=i.computed(()=>({flowable:s.value?s.value.flowable:!1})),o=i.computed(()=>({backgroundImage:`url(${n.value})`})),a=i.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=Fe(c?"--bs-gray-900":"--bs-black")??"#FFFFFF";return t.theme&&(d=(t.theme==="dark"?Fe("--bs-gray-900"):Fe("--bs-black"))??d),t.variable&&(d=Fe(t.variable)??d),u=u.replace(/currentColor/g,d),window.btoa(u)}),s=i.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)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([r.value,"wrapper"])},[u.onlyIcon?(i.openBlock(),i.createElementBlock("div",{key:1,class:"icon",style:i.normalizeStyle(o.value)},null,4)):(i.openBlock(),i.createBlock(le,{key:0,title:u.cls},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle(o.value)},null,4)]),_:1},8,["title"]))],2))}}),Ga=K(J_,[["__scopeId","data-v-23f8d853"]]),Q_={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eE=["aria-hidden","aria-label"],tE=["fill","width","height"],nE={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"},rE={key:0};function iE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",nE,[n.title?(i.openBlock(),i.createElementBlock("title",rE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,tE))],16,eE)}const za=K(Q_,[["render",iE]]),oE={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aE=["aria-hidden","aria-label"],sE=["fill","width","height"],lE={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"},uE={key:0};function cE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lE,[n.title?(i.openBlock(),i.createElementBlock("title",uE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sE))],16,aE)}const dE=K(oE,[["render",cE]]),fE={class:"dependency-text d-flex flex-column flex-grow-1"},hE={class:"dependency-flow-text text-truncate"},mE={class:"dependency-namespace-text text-truncate"},pE={class:"text-white top-button-div"},gE=i.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:[H.EXPAND_DEPENDENCIES,H.OPEN_LINK,H.MOUSE_OVER,H.MOUSE_LEAVE],setup(e,{emit:t}){const n=t,{t:r}=Sn(),o=i.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
24
|
</svg>`));return(a,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createElementVNode("div",{class:i.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[i.createVNode(Ga,{"custom-icon":{icon:o.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),i.createElementVNode("div",fE,[i.createElementVNode("div",hE,[i.createVNode(le,{title:e.data.flowId},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),i.createElementVNode("div",mE,[i.createVNode(le,{title:e.data.namespace},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),i.createElementVNode("div",pE,[i.renderSlot(a.$slots,"badge-button-before",{},void 0,!0),e.data.link?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>a.$emit(i.unref(H).OPEN_LINK,e.data))},[i.createVNode(le,{title:i.unref(r)("open")},{default:i.withCtx(()=>[i.createVNode(za,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),e.data.expandEnabled?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[1]||(s[1]=l=>n(i.unref(H).EXPAND_DEPENDENCIES,e.data))},[i.createVNode(le,{title:i.unref(r)("expand")},{default:i.withCtx(()=>[i.createVNode(dE,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"badge-button-after",{},void 0,!0)])],2),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),vE=K(gE,[["__scopeId","data-v-2271d5b0"]]);var Je=(e=>(e.Lines="lines",e.Dots="dots",e))(Je||{});const Rf=function({dimensions:e,size:t,color:n}){return i.h("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Df=function({radius:e,color:t}){return i.h("circle",{cx:e,cy:e,r:e,fill:t})};Je.Lines+"",Je.Dots+"";const _E={[Je.Dots]:"#81818a",[Je.Lines]:"#eee"},EE=["id","x","y","width","height","patternTransform"],yE={key:2,height:"100",width:"100"},bE=["fill"],kE=["x","y","fill"],CE={name:"Background",compatConfig:{MODE:3}},NE=i.defineComponent({...CE,props:{id:{},variant:{default:()=>Je.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:n}=te.useVueFlow(),r=i.computed(()=>{const[s,l]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*n.value.zoom||1,l*n.value.zoom||1],c=e.size*n.value.zoom,d=e.variant===Je.Dots?[c/e.offset,c/e.offset]:[u[0]/e.offset,u[1]/e.offset];return{scaledGap:u,offset:d,size:c}}),o=i.toRef(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),a=i.toRef(()=>e.color||e.patternColor||_E[e.variant||Je.Dots]);return(s,l)=>(i.openBlock(),i.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:i.normalizeStyle({height:`${s.height>100?100:s.height}%`,width:`${s.width>100?100:s.width}%`})},[i.renderSlot(s.$slots,"pattern-container",{id:o.value},()=>[i.createElementVNode("pattern",{id:o.value,x:i.unref(n).x%r.value.scaledGap[0],y:i.unref(n).y%r.value.scaledGap[1],width:r.value.scaledGap[0],height:r.value.scaledGap[1],patternTransform:`translate(-${r.value.offset[0]},-${r.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[i.renderSlot(s.$slots,"pattern",{},()=>[s.variant===i.unref(Je).Lines?(i.openBlock(),i.createBlock(i.unref(Rf),{key:0,size:s.lineWidth,color:a.value,dimensions:r.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===i.unref(Je).Dots?(i.openBlock(),i.createBlock(i.unref(Df),{key:1,color:a.value,radius:r.value.size/s.offset},null,8,["color","radius"])):i.createCommentVNode("",!0),s.bgColor?(i.openBlock(),i.createElementBlock("svg",yE,[i.createElementVNode("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,bE)])):i.createCommentVNode("",!0)])],8,EE)]),i.createElementVNode("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,kE),i.renderSlot(s.$slots,"default",{id:o.value})],4))}}),wE={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},SE=["aria-hidden","aria-label"],LE=["fill","width","height"],TE={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},IE={key:0};function OE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",TE,[n.title?(i.openBlock(),i.createElementBlock("title",IE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,LE))],16,SE)}const AE=K(wE,[["render",OE]]),RE={class:"top-button-div text-white d-flex"},DE={inheritAttrs:!1,components:{Tooltip:le},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 n=e.task.subflowId??e.task;return n.namespace+" "+n.flowId}return ge.afterLastDot(this.id)}}},PE=Object.assign(DE,{__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:[H.COLLAPSE],setup(e,{emit:t}){const n=e,r=t,o=()=>{r(H.COLLAPSE,n.id)};return(a,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.classes)},[i.createElementVNode("span",{class:i.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},i.toDisplayString(a.clusterName),3),i.createElementVNode("div",RE,[e.data.collapsable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>o())},[i.createVNode(le,{title:a.$t("collapse")},{default:i.withCtx(()=>[i.createVNode(AE,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0)])],2))}}),BE=K(PE,[["__scopeId","data-v-0c251e77"]]),VE={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xE=["aria-hidden","aria-label"],ME=["fill","width","height"],$E={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"},qE={key:0};function FE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",$E,[n.title?(i.openBlock(),i.createElementBlock("title",qE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ME))],16,xE)}const Pf=K(VE,[["render",FE]]),UE={name:"Dot",components:{Handle:te.Handle,CircleIcon:Pf},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,[ge.afterLastDot(this.data.node.type)]:!0}}}},HE=Object.assign(UE,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.classes)},[i.createVNode(i.unref(te.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),i.createElementVNode("div",{class:i.normalizeClass(["dot",t.classes])},[i.createVNode(Pf,{class:i.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),i.createVNode(i.unref(te.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),GE=K(HE,[["__scopeId","data-v-666f472b"]]),zE={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},jE=["aria-hidden","aria-label"],WE=["fill","width","height"],KE={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},YE={key:0};function XE(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon plus-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",KE,[n.title?(i.openBlock(),i.createElementBlock("title",YE,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,WE))],16,jE)}const ZE=K(zE,[["render",XE]]),JE={class:"add-task-div rounded d-flex justify-content-center align-items-center"},QE=i.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",JE,[t.addTask?(i.openBlock(),i.createBlock(ZE,{key:0,alt:"add task icon"})):i.createCommentVNode("",!0)]))}}),ey=K(QE,[["__scopeId","data-v-4afc4738"]]),ty={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:ey,EdgeLabelRenderer:te.EdgeLabelRenderer,Tooltip:le},computed:{Utils(){return ge},EVENTS(){return H},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:i.computed(()=>te.getSmoothStepPath(e))}},inheritAttrs:!1},ny=["id","d","marker-end"];function ry(e,t,n,r,o,a){const s=i.resolveComponent("AddTaskButton"),l=i.resolveComponent("tooltip"),u=i.resolveComponent("EdgeLabelRenderer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("path",{id:n.id,class:i.normalizeClass(a.classes),style:i.normalizeStyle(n.data.haveDashArray?{strokeDasharray:"2"}:{}),d:r.path[0],"marker-end":n.markerEnd},null,14,ny),i.createVNode(u,{style:{"z-index":"10"}},{default:i.withCtx(()=>[i.createElementVNode("div",{style:i.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${r.path[1]}px,${r.path[2]}px)`})},[i.createVNode(l,{title:a.title},{default:i.withCtx(()=>[n.data.haveAdd?(i.openBlock(),i.createBlock(s,{key:0,"add-task":!0,onClick:t[0]||(t[0]=c=>e.$emit(a.EVENTS.ADD_TASK,n.data.haveAdd)),class:i.normalizeClass({"text-danger":n.data.color})},null,8,["class"])):i.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})],64)}const iy=K(ty,[["render",ry],["__scopeId","data-v-a3e1d999"]]),oy={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ay=["aria-hidden","aria-label"],sy=["fill","width","height"],ly={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"},uy={key:0};function cy(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon information-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ly,[n.title?(i.openBlock(),i.createElementBlock("title",uy,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sy))],16,ay)}const Bf=K(oy,[["render",cy]]),dy={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fy=["aria-hidden","aria-label"],hy=["fill","width","height"],my={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},py={key:0};function gy(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",my,[n.title?(i.openBlock(),i.createElementBlock("title",py,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,hy))],16,fy)}const Ln=K(dy,[["render",gy]]);/*!
|
|
25
25
|
* vuex v4.1.0
|
|
26
26
|
* (c) 2022 Evan You
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/var vy="store";function Ct(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Vf(e){return e!==null&&typeof e=="object"}function _y(e){return e&&typeof e.then=="function"}function Ye(e,t){if(!e)throw new Error("[vuex] "+t)}function Ey(e,t){return function(){return e(t)}}function xf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Mf(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Tn(e,n,[],e._modules.root,!0),ja(e,n,t)}function ja(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},l={},u=i.effectScope(!0);u.run(function(){Ct(a,function(c,d){s[d]=Ey(c,e),l[d]=i.computed(function(){return s[d]()}),Object.defineProperty(e.getters,d,{get:function(){return l[d].value},enumerable:!0})})}),e._state=i.reactive({data:t}),e._scope=u,e.strict&&Ny(e),r&&n&&e._withCommit(function(){r.data=null}),o&&o.stop()}function Tn(e,t,n,r,o){var a=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[s]=r),!a&&!o){var l=Wa(t,n.slice(0,-1)),u=n[n.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 "'+n.join(".")+'"'),l[u]=r.state})}var c=r.context=yy(e,s,n);r.forEachMutation(function(d,f){var h=s+f;by(e,h,d,c)}),r.forEachAction(function(d,f){var h=d.root?f:s+f,m=d.handler||d;ky(e,h,m,c)}),r.forEachGetter(function(d,f){var h=s+f;Cy(e,h,d,c)}),r.forEachChild(function(d,f){Tn(e,t,n.concat(f),d,o)})}function yy(e,t,n){var r=t==="",o={dispatch:r?e.dispatch:function(a,s,l){var u=cn(a,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:r?e.commit:function(a,s,l){var u=cn(a,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(o,{getters:{get:r?function(){return e.getters}:function(){return $f(e,t)}},state:{get:function(){return Wa(e.state,n)}}}),o}function $f(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var a=o.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function by(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(s){n.call(e,r.state,s)})}function ky(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(s){var l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return _y(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):l})}function Cy(e,t,n,r){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(a){return n(r.state,r.getters,a.state,a.getters)}}function Ny(e){i.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Ye(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Wa(e,t){return t.reduce(function(n,r){return n[r]},e)}function cn(e,t,n){return Vf(e)&&e.type&&(n=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Ye(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var wy="vuex bindings",rd="vuex:mutations",ia="vuex:actions",Ot="vuex",Sy=0;function Ly(e,t){D_({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:[wy]},function(n){n.addTimelineLayer({id:rd,label:"Vuex Mutations",color:id}),n.addTimelineLayer({id:ia,label:"Vuex Actions",color:id}),n.addInspector({id:Ot,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ot)if(r.filter){var o=[];Hf(o,t._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Uf(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId;$f(t,o),r.state=Oy(Ry(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId,a=r.path;o!=="root"&&(a=o.split("/").filter(Boolean).concat(a)),t._withCommit(function(){r.set(t._state.data,a,r.state.value)})}}),t.subscribe(function(r,o){var a={};r.payload&&(a.payload=r.payload),a.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(Ot),n.sendInspectorState(Ot),n.addTimelineEvent({layerId:rd,event:{time:Date.now(),title:r.type,data:a}})}),t.subscribeAction({before:function(r,o){var a={};r.payload&&(a.payload=r.payload),r._id=Sy++,r._time=Date.now(),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:a}})},after:function(r,o){var a={},s=Date.now()-r._time;a.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(a.payload=r.payload),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:a}})}})})}var id=8702998,Ty=6710886,Iy=16777215,qf={label:"namespaced",textColor:Iy,backgroundColor:Ty};function Ff(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Uf(e,t){return{id:t||"root",label:Ff(t),tags:e.namespaced?[qf]:[],children:Object.keys(e._children).map(function(n){return Uf(e._children[n],t+n+"/")})}}function Hf(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[qf]:[]}),Object.keys(t._children).forEach(function(o){Hf(e,t._children[o],n,r+o+"/")})}function Oy(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var a=Ay(t);o.getters=Object.keys(a).map(function(s){return{key:s.endsWith("/")?Ff(s):s,editable:!1,value:ba(function(){return a[s]})}})}return o}function Ay(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var o=t,a=r.pop();r.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[a]=ba(function(){return e[n]})}else t[n]=ba(function(){return e[n]})}),t}function Ry(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,o,a){var s=r[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+t+'".');return a===n.length-1?s:s._children},t==="root"?e:e.root._children)}function ba(e){try{return e()}catch(t){return t}}var Xe=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},Gf={namespaced:{configurable:!0}};Gf.namespaced.get=function(){return!!this._rawModule.namespaced};Xe.prototype.addChild=function(t,n){this._children[t]=n};Xe.prototype.removeChild=function(t){delete this._children[t]};Xe.prototype.getChild=function(t){return this._children[t]};Xe.prototype.hasChild=function(t){return t in this._children};Xe.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)};Xe.prototype.forEachChild=function(t){Ct(this._children,t)};Xe.prototype.forEachGetter=function(t){this._rawModule.getters&&Ct(this._rawModule.getters,t)};Xe.prototype.forEachAction=function(t){this._rawModule.actions&&Ct(this._rawModule.actions,t)};Xe.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ct(this._rawModule.mutations,t)};Object.defineProperties(Xe.prototype,Gf);var Nt=function(t){this.register([],t,!1)};Nt.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Nt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,o){return n=n.getChild(o),r+(n.namespaced?o+"/":"")},"")};Nt.prototype.update=function(t){zf([],this.root,t)};Nt.prototype.register=function(t,n,r){var o=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&jf(t,n);var a=new Xe(n,r);if(t.length===0)this.root=a;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],a)}n.modules&&Ct(n.modules,function(l,u){o.register(t.concat(u),l,r)})};Nt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],o=n.getChild(r);if(!o){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&n.removeChild(r)};Nt.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function zf(e,t,n){if(process.env.NODE_ENV!=="production"&&jf(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}zf(e.concat(r),t.getChild(r),n.modules[r])}}var od={assert:function(e){return typeof e=="function"},expected:"function"},Dy={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},ad={getters:od,mutations:od,actions:Dy};function jf(e,t){Object.keys(ad).forEach(function(n){if(t[n]){var r=ad[n];Ct(t[n],function(o,a){Ye(r.assert(o),Py(e,n,a,o,r.expected))})}})}function Py(e,t,n,r,o){var a=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(r)+".",a}var He=function e(t){var n=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(Ye(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Ye(this instanceof e,"store must be called with the new operator."));var r=t.plugins;r===void 0&&(r=[]);var o=t.strict;o===void 0&&(o=!1);var a=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 Nt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;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=o;var d=this._modules.root.state;Tn(this,d,[],this._modules.root),ja(this,d),r.forEach(function(f){return f(n)})},Ka={state:{configurable:!0}};He.prototype.install=function(t,n){t.provide(n||vy,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&Ly(t,this)};Ka.state.get=function(){return this._state.data};Ka.state.set=function(e){process.env.NODE_ENV!=="production"&&Ye(!1,"use store.replaceState() to explicit replace store state.")};He.prototype.commit=function(t,n,r){var o=this,a=cn(t,n,r),s=a.type,l=a.payload,u=a.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,o.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")};He.prototype.dispatch=function(t,n){var r=this,o=cn(t,n),a=o.type,s=o.payload,l={type:a,payload:s},u=this._actions[a];if(!u){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(l,r.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{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(l,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(m))}d(h)},function(h){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(l,r.state,h)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(m))}f(h)})})};He.prototype.subscribe=function(t,n){return xf(t,this._subscribers,n)};He.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return xf(r,this._actionSubscribers,n)};He.prototype.watch=function(t,n,r){var o=this;return process.env.NODE_ENV!=="production"&&Ye(typeof t=="function","store.watch only accepts a function."),i.watch(function(){return t(o.state,o.getters)},n,Object.assign({},r))};He.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};He.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Ye(Array.isArray(t),"module path must be a string or an Array."),Ye(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),Tn(this,this.state,t,this._modules.get(t),r.preserveState),ja(this,this.state)};He.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var r=Wa(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),Mf(this)};He.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};He.prototype.hotUpdate=function(t){this._modules.update(t),Mf(this,!0)};He.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(He.prototype,Ka);var Ya=Kf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Wf(t).forEach(function(r){var o=r.key,a=r.val;n[o]=function(){var l=this.$store.state,u=this.$store.getters;if(e){var c=Yf(this.$store,"mapState",e);if(!c)return;l=c.context.state,u=c.context.getters}return typeof a=="function"?a.call(this,l,u):l[a]},n[o].vuex=!0}),n}),By=Kf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Wf(t).forEach(function(r){var o=r.key,a=r.val;a=e+a,n[o]=function(){if(!(e&&!Yf(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(a in this.$store.getters)){console.error("[vuex] unknown getter: "+a);return}return this.$store.getters[a]}},n[o].vuex=!0}),n});function Wf(e){return Xa(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 Xa(e){return Array.isArray(e)||Vf(e)}function Kf(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Yf(e,t,n){var r=e._modulesNamespaceMap[n];return process.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+t+"(): "+n),r}const Vy={class:"icon rounded"},xy={class:"node-content"},My={class:"d-flex node-title"},$y={class:"text-truncate task-title"},qy={key:0,class:"d-flex"},Fy={class:"text-white top-button-div"},Uy={components:{ArrowExpand:Ln,InformationOutline:Bf,OpenInNew:za,Tooltip:le},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.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(H.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(H.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return ge},...Ya("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 H},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 ge.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}}},Hy=Object.assign(Uy,{__name:"BasicNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...r)=>t.mouseover&&t.mouseover(...r)),onMouseleave:n[4]||(n[4]=(...r)=>t.mouseleave&&t.mouseleave(...r))},[e.state?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("div",Vy,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent||Ga),{cls:t.cls,class:i.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),i.createElementVNode("div",xy,[i.createElementVNode("div",My,[i.createElementVNode("div",$y,[i.createVNode(le,{title:t.hoverTooltip},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(i.openBlock(),i.createElementBlock("span",qy,[i.createVNode(le,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:i.withCtx(()=>[i.createVNode(Bf,{onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):i.createCommentVNode("",!0)]),i.renderSlot(t.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",Fy,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).OPEN_LINK,{link:e.data.link}))},[i.createVNode(le,{title:t.$t("open")},{default:i.withCtx(()=>[i.createVNode(za,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).EXPAND))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),Xf=K(Hy,[["__scopeId","data-v-ecb1f5b4"]]),Gy=["innerHTML"],zy=i.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;i.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const n=i.ref(""),r=i.ref();i.onMounted(()=>{l()});const o=i.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),a=i.computed(()=>t.histories[t.histories.length-1]),s=i.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){r.value||(r.value=setInterval(()=>{f(),t.histories&&!Ce.isRunning(a.value.state)&&u()},100))}function u(){r.value&&(clearInterval(r.value),r.value=void 0)}function c(){return d()-o.value}function d(){return!t.histories||Ce.isRunning(a.value.state)?+new Date:new Date(a.value.date.toString()).getTime()}function f(){n.value=s.value.length===0?" ":ge.humanDuration(c()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return i.onBeforeUnmount(()=>{u()}),(m,C)=>(i.openBlock(),i.createBlock(le,{key:a.value.date.toString()},{content:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(E,_)=>(i.openBlock(),i.createElementBlock("span",{key:"tt-"+_,class:"ks-duration-tt"},[i.createElementVNode("span",{class:i.normalizeClass(["ks-duration-tt-square",h(E.state)])},null,2),i.createElementVNode("strong",null,i.toDisplayString(E.state)+": ",1),i.createTextVNode(i.toDisplayString(i.unref(ge).dateFilter(E.date.toString(),"iso"))+" ",1),C[0]||(C[0]=i.createElementVNode("br",null,null,-1))]))),128))]),default:i.withCtx(()=>[i.createElementVNode("span",{innerHTML:n.value},null,8,Gy)]),_:1}))}}),jy={class:"btn-group content rounded-1 content-children text-truncate"},Wy={key:0,class:"taskRunCount"},Ky={key:1},Yy={key:2},Xy=i.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=i.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),r=i.computed(()=>n.value.filter(s=>s.taskId===ge.afterLastDot(t.uid??""))),o=i.computed(()=>{if(!r.value)return null;if(r.value.length===1)return r.value[0].state.current;const s=r.value.map(c=>c.state.current),l=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return s.map(c=>{const d=l.indexOf(c[1]);return l[d]=void 0,[d,c]}).sort().map(c=>c[1])[0]}),a=i.computed(()=>{if(!r.value)return;const s=Math.max(...r.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(...r.value.map(u=>$t.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:$t(s).subtract(l,"second"),state:"CREATED"},{date:$t(s),state:o.value}]});return(s,l)=>(i.openBlock(),i.createElementBlock("div",jy,[r.value.length>0?(i.openBlock(),i.createElementBlock("span",Wy,i.toDisplayString(r.value.length)+" task runs",1)):i.createCommentVNode("",!0),r.value.length>0?(i.openBlock(),i.createElementBlock("span",Ky," | ")):i.createCommentVNode("",!0),a.value?(i.openBlock(),i.createElementBlock("span",Yy,[i.createVNode(zy,{histories:a.value},null,8,["histories"])])):i.createCommentVNode("",!0)]))}}),Zf=K(Xy,[["__scopeId","data-v-b7801302"]]),Zy={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jy=["aria-hidden","aria-label"],Qy=["fill","width","height"],eb={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"},tb={key:0};function nb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",eb,[n.title?(i.openBlock(),i.createElementBlock("title",tb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qy))],16,Jy)}const In=K(Zy,[["render",nb]]),rb={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ib=["aria-hidden","aria-label"],ob=["fill","width","height"],ab={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},sb={key:0};function lb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ab,[n.title?(i.openBlock(),i.createElementBlock("title",sb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ob))],16,ib)}const On=K(rb,[["render",lb]]),ub={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cb=["aria-hidden","aria-label"],db=["fill","width","height"],fb={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"},hb={key:0};function mb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",fb,[n.title?(i.openBlock(),i.createElementBlock("title",hb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,db))],16,cb)}const Jf=K(ub,[["render",mb]]),pb={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gb=["aria-hidden","aria-label"],vb=["fill","width","height"],_b={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Eb={key:0};function yb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",_b,[n.title?(i.openBlock(),i.createElementBlock("title",Eb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,vb))],16,gb)}const Qf=K(pb,[["render",yb]]),bb={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kb=["aria-hidden","aria-label"],Cb=["fill","width","height"],Nb={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"},wb={key:0};function Sb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Nb,[n.title?(i.openBlock(),i.createElementBlock("title",wb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Cb))],16,kb)}const eh=K(bb,[["render",Sb]]),Lb={name:"Task",components:{Pencil:In,Delete:On,ExecutionInformations:Zf,Handle:te.Handle,TextBoxSearch:Jf,AlertOutline:Qf,Tooltip:le,SendLock:eh},inheritAttrs:!1,computed:{...Ya("execution",["execution"]),...By("execution",["subflowsExecutions"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},taskId(){return ge.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,n;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(n=Object.values(this.subflowsExecutions).filter(r=>r.id===this.data.executionId))==null?void 0:n[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===ge.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(r=>r.state.current),t=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return e.map(r=>{const o=t.indexOf(r[1]);return t[o]=void 0,[o,r]}).sort().map(r=>r[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,n,r;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const o=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:o.namespace,id:o.flowId,executionId:(r=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(a=>{var s;return a.taskId===this.data.node.task.id&&((s=a.outputs)==null?void 0:s.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:r.executionId}}}return this.data}},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.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)}}},Tb=Object.assign(Lb,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Xf,{id:e.id,data:t.dataWithLink,state:t.state,class:i.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[6]||(n[6]=r=>t.forwardEvent(i.unref(H).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=r=>t.forwardEvent(i.unref(H).OPEN_LINK,r)),onMouseover:n[8]||(n[8]=r=>t.forwardEvent(i.unref(H).MOUSE_OVER,r)),onMouseleave:n[9]||(n[9]=r=>t.forwardEvent(i.unref(H).MOUSE_LEAVE))},{content:i.withCtx(()=>[t.taskExecution?(i.openBlock(),i.createBlock(Zf,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):i.createCommentVNode("",!0)]),"badge-button-before":i.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("show task condition")},{default:i.withCtx(()=>[i.createVNode(eh,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):i.createCommentVNode("",!0),t.taskExecution?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[i.createVNode(le,{title:t.$t("show task logs")},{default:i.withCtx(()=>[i.createVNode(Jf,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).ADD_ERROR,{task:e.data.node.task}))},[i.createVNode(le,{title:t.$t("add error handler")},{default:i.withCtx(()=>[i.createVNode(Qf,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=r=>t.$emit(i.unref(H).DELETE,{id:t.taskId,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ib={name:"Task",inheritAttrs:!1,computed:{...Ya("execution",["execution"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},formattedData(){var e,t,n,r;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((r=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:r.disabled)}},triggerId(){return ge.afterLastDot(this.id)}},emits:[H.DELETE,H.EDIT,H.SHOW_DESCRIPTION],components:{Delete:On,Pencil:In,Handle:te.Handle,Tooltip:le},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)}}},Ob=Object.assign(Ib,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Xf,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[3]||(n[3]=r=>t.forwardEvent(i.unref(H).EXPAND,{id:e.id}))},i.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:i.withCtx(()=>[t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.triggerDeclaration,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).DELETE,{id:t.triggerId,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ab={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rb=["aria-hidden","aria-label"],Db=["fill","width","height"],Pb={d:"M11 15H6L13 1V9H18L11 23V15Z"},Bb={key:0};function Vb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pb,[n.title?(i.openBlock(),i.createElementBlock("title",Bb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Db))],16,Rb)}const xb=K(Ab,[["render",Vb]]),Mb={class:"collapsed-cluster-node d-flex"},$b={class:"node-text"},qb={class:"text-white top-button-div"},Fb={components:{Tooltip:le,Handle:te.Handle,ArrowExpand:Ln,LightningBolt:xb},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 H},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}}},Ub=Object.assign(Fb,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createElementVNode("div",Mb,[i.createElementVNode("span",$b,[e.data.iconComponent?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.data.iconComponent),{key:0,class:i.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(ge).afterLastDot(e.id)),1)]),i.createElementVNode("div",qb,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EXPAND,{id:e.id}))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Hb=K(Ub,[["__scopeId","data-v-89413b39"]]),Gb={name:"SplitCellsVerticalIcon",emits:["click"]},zb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",zb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[i.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),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_1111_7266"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const Wb=K(Gb,[["render",jb],["__scopeId","data-v-084c51e6"]]),Kb={name:"SplitCellsHorizontalIcon",emits:["click"]},Yb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",Yb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[i.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),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_796_3996"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Zb=K(Kb,[["render",Xb],["__scopeId","data-v-c77c1469"]]),Jb={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qb=["aria-hidden","aria-label"],e0=["fill","width","height"],t0={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},n0={key:0};function r0(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon download-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",t0,[n.title?(i.openBlock(),i.createElementBlock("title",n0,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,e0))],16,Qb)}const i0=K(Jb,[["render",r0]]);function o0(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 n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const a0=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function rt(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function dn(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function s0(e){const t=dn(e,"border-left-width"),n=dn(e,"border-right-width");return e.clientWidth+t+n}function l0(e){const t=dn(e,"border-top-width"),n=dn(e,"border-bottom-width");return e.clientHeight+t+n}function th(e,t={}){const n=t.width||s0(e),r=t.height||l0(e);return{width:n,height:r}}function u0(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const $e=16384;function c0(e){(e.width>$e||e.height>$e)&&(e.width>$e&&e.height>$e?e.width>e.height?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e):e.width>$e?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e))}function fn(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function d0(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function f0(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),o.appendChild(a),a.appendChild(e),d0(o)}const Be=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Be(n,t)};function h0(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function m0(e){return rt(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function p0(e,t,n){const r=`.${e}:${t}`,o=n.cssText?h0(n):m0(n);return document.createTextNode(`${r}{${o}}`)}function sd(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const a=a0();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(p0(a,n,r)),t.appendChild(s)}function g0(e,t){sd(e,t,":before"),sd(e,t,":after")}const ld="application/font-woff",ud="image/jpeg",v0={woff:ld,woff2:ld,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ud,jpeg:ud,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _0(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Za(e){const t=_0(e).toLowerCase();return v0[t]||""}function E0(e){return e.split(/,/)[1]}function ka(e){return e.search(/^(data:)/)!==-1}function y0(e,t){return`data:${t};base64,${e}`}async function nh(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((a,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{a(n({res:r,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(o)})}const oa={};function b0(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function Ja(e,t,n){const r=b0(e,t,n.includeQueryParams);if(oa[r]!=null)return oa[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const a=await nh(e,n.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),E0(l)));o=y0(a,t)}catch(a){o=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;a&&(s=typeof a=="string"?a:a.message),s&&console.warn(s)}return oa[r]=o,o}async function k0(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):fn(t)}async function C0(e,t){if(e.currentSrc){const a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,s==null||s.drawImage(e,0,0,a.width,a.height);const l=a.toDataURL();return fn(l)}const n=e.poster,r=Za(n),o=await Ja(n,r,t);return fn(o)}async function N0(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await An(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function w0(e,t){return Be(e,HTMLCanvasElement)?k0(e):Be(e,HTMLVideoElement)?C0(e,t):Be(e,HTMLIFrameElement)?N0(e):e.cloneNode(!1)}const S0=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function L0(e,t,n){var r,o;let a=[];return S0(e)&&e.assignedNodes?a=rt(e.assignedNodes()):Be(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=rt(e.contentDocument.body.childNodes):a=rt(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),a.length===0||Be(e,HTMLVideoElement)||await a.reduce((s,l)=>s.then(()=>An(l,n)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function T0(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):rt(r).forEach(o=>{let a=r.getPropertyValue(o);o==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Be(e,HTMLIFrameElement)&&o==="display"&&a==="inline"&&(a="block"),o==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(o,a,r.getPropertyPriority(o))})}function I0(e,t){Be(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Be(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function O0(e,t){if(Be(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function A0(e,t){return Be(t,Element)&&(T0(e,t),g0(e,t),I0(e,t),O0(e,t)),t}async function R0(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const l=n[a].getAttribute("xlink:href");if(l){const u=e.querySelector(l),c=document.querySelector(l);!u&&c&&!r[l]&&(r[l]=await An(c,t,!0))}}const o=Object.values(r);if(o.length){const a="http://www.w3.org/1999/xhtml",s=document.createElementNS(a,"svg");s.setAttribute("xmlns",a),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(a,"defs");s.appendChild(l);for(let u=0;u<o.length;u++)l.appendChild(o[u]);e.appendChild(s)}return e}async function An(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>w0(r,t)).then(r=>L0(e,r,t)).then(r=>A0(e,r)).then(r=>R0(r,t))}const rh=/url\((['"]?)([^'"]+?)\1\)/g,D0=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,P0=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function B0(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function V0(e){const t=[];return e.replace(rh,(n,r,o)=>(t.push(o),n)),t.filter(n=>!ka(n))}async function x0(e,t,n,r,o){try{const a=n?o0(t,n):t,s=Za(t);let l;return o||(l=await Ja(a,s,r)),e.replace(B0(t),`$1${l}$3`)}catch{}return e}function M0(e,{preferredFontFormat:t}){return t?e.replace(P0,n=>{for(;;){const[r,,o]=D0.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function ih(e){return e.search(rh)!==-1}async function oh(e,t,n){if(!ih(e))return e;const r=M0(e,n);return V0(r).reduce((a,s)=>a.then(l=>x0(l,s,t,n)),Promise.resolve(r))}async function Jt(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const a=await oh(o,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function $0(e,t){await Jt("background",e,t)||await Jt("background-image",e,t),await Jt("mask",e,t)||await Jt("mask-image",e,t)}async function q0(e,t){const n=Be(e,HTMLImageElement);if(!(n&&!ka(e.src))&&!(Be(e,SVGImageElement)&&!ka(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await Ja(r,Za(r),t);await new Promise((a,s)=>{e.onload=a,e.onerror=s;const l=e;l.decode&&(l.decode=a),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function F0(e,t){const r=rt(e.childNodes).map(o=>ah(o,t));await Promise.all(r).then(()=>e)}async function ah(e,t){Be(e,Element)&&(await $0(e,t),await q0(e,t),await F0(e,t))}function U0(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const cd={};async function dd(e){let t=cd[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},cd[e]=t,t}async function fd(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(r,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),nh(l,t.fetchRequestInit,({result:u})=>(n=n.replace(s,`url(${u})`),[s,u]))});return Promise.all(a).then(()=>n)}function hd(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=o.exec(r);if(u===null)break;t.push(u[0])}r=r.replace(o,"");const a=/@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=a.exec(r);if(u===null){if(u=l.exec(r),u===null)break;a.lastIndex=l.lastIndex}else l.lastIndex=a.lastIndex;t.push(u[0])}return t}async function H0(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach((a,s)=>{if(a.type===CSSRule.IMPORT_RULE){let l=s+1;const u=a.href,c=dd(u).then(d=>fd(d,t)).then(d=>hd(d).forEach(f=>{try{o.insertRule(f,f.startsWith("@import")?l+=1:o.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())});r.push(c)}})}catch(a){const s=e.find(l=>l.href==null)||document.styleSheets[0];o.href!=null&&r.push(dd(o.href).then(l=>fd(l,t)).then(l=>hd(l).forEach(u=>{s.insertRule(u,o.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${o.href}`,a)}}),n))}function G0(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>ih(t.style.getPropertyValue("src")))}async function z0(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=rt(e.ownerDocument.styleSheets),r=await H0(n,t);return G0(r)}async function j0(e,t){const n=await z0(e,t);return(await Promise.all(n.map(o=>{const a=o.parentStyleSheet?o.parentStyleSheet.href:null;return oh(o.cssText,a,t)}))).join(`
|
|
29
|
-
`)}async function W0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await j0(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function K0(e,t={}){const{width:n,height:r}=th(e,t),o=await An(e,t,!0);return await W0(o,t),await ah(o,t),U0(o,t),await f0(o,n,r)}async function sh(e,t={}){const{width:n,height:r}=th(e,t),o=await K0(e,t),a=await fn(o),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||u0(),c=t.canvasWidth||n,d=t.canvasHeight||r;return s.width=c*u,s.height=d*u,t.skipAutoScale||c0(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(a,0,0,s.width,s.height),s}async function Y0(e,t={}){return(await sh(e,t)).toDataURL()}async function X0(e,t={}){return(await sh(e,t)).toDataURL("image/jpeg",t.quality||1)}function Z0(){const e=i.ref(""),t=i.ref("png"),n=i.ref();async function r(l,u={}){let c;const d=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":c=await o(l,u);break;case"png":c=await a(l,u);break;default:c=await a(l,u);break}return u.shouldDownload&&d!==""&&s(d),c}function o(l,u={quality:.95}){return n.value=null,X0(l,u).then(c=>(e.value=c,t.value="jpeg",c)).catch(c=>{throw c.value=c,new Error(c)})}function a(l,u={quality:.95}){return n.value=null,Y0(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:r,download:s,dataUrl:e,error:n}}const J0={key:1,class:"exporting"},Q0=i.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:[H.EDIT,H.DELETE,H.OPEN_LINK,H.SHOW_LOGS,H.SHOW_DESCRIPTION,"on-add-flowable-error",H.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",H.SHOW_CONDITION],setup(e,{emit:t}){const n=e,r=i.ref(!1),o=i.ref(),{getNodes:a,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:c,setElements:d,vueFlowRef:f}=te.useVueFlow(n.id),h=i.ref({}),m=i.ref([]),C=i.ref(new Set),E=i.ref([]),{capture:_}=Z0(),p=t;i.onMounted(()=>{v()}),i.watch(()=>n.flowGraph,()=>{v()}),i.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{tn.cleanGraph(n.id),i.nextTick(()=>{p("loading",!0);const M=C.value;C.value=new Set,m.value=[],h.value={},M.forEach(J=>T(ct+J,!1,!1));const D=tn.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,m.value,n.isHorizontal,h.value,C.value,E.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);D&&(d(D),c(),p("loading",!1))})},y=M=>{r.value||tn.linkedElements(n.id,M.uid).forEach(D=>{(D==null?void 0:D.type)==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-gray-900")},D.class="rounded-3")})},g=()=>{k()},k=()=>{a.value.filter(M=>M.type==="task"||M.type==="trigger").forEach(M=>{M.style={...M.style,opacity:"1",outline:"none"},M.class=""})};l(M=>{r.value=!0,k(),M.node.style={...M.node.style,zIndex:1976},o.value=M.node.position}),u(M=>{if(r.value=!1,M.intersections&&b(M.intersections,M.node)===null){const D=M.node,J=M.intersections.find(W=>W.type==="task");if(J)try{n.source&&p("swapped-task",{newSource:L.swapBlocks({source:n.source,section:"tasks",key1:ge.afterLastDot(D.id)??"",key2:ge.afterLastDot(J.id)??""}),swappedTasks:[D.id,J.id]})}catch(W){p("message",{variant:"error",title:"cannot swap tasks",message:`${W.message}, ${W.messageOptions}`}),D.position=o.value}else D.position=o.value}else M.node.position=o.value;k(),M.node.style={...M.node.style,zIndex:5},o.value=null});const N=i.computed(()=>{var M;return(M=n.flowGraph)!=null&&M.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(M=>{k(),a.value.filter(D=>D.id!==M.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(M.node.id+".")||M.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(W=>D.id.startsWith(W))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),M.intersections&&!b(M.intersections,M.node)&&M.intersections.filter(D=>D.type==="task").length===1&&(M.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),M.node.style={...M.node.style,outline:"0.5px solid "+Fe("--bs-primary")},M.node.class="rounded-3")});const b=(M,D)=>{const J=M.filter(W=>W.type==="task").map(W=>ge.afterLastDot(W.id));if(J.length>1)return"toomuchtaskerror";try{if(J.length===1&&n.source&&L.isParentChildrenRelation({source:n.source,sections:["tasks","triggers"],key1:ge.afterLastDot(J[0])??"",key2:ge.afterLastDot(D.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return M.filter(W=>W.type==="trigger").length>0?"triggererror":null},T=(M,D,J=!1)=>{const W=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(M)),U=M.replace(ct,"");C.value.add(U),m.value=m.value.concat(W.nodes.filter(ne=>ne!==U||J)),m.value=m.value.concat([W.cluster.uid]),h.value={...h.value,[W.cluster.uid]:U,[W.start]:U,[W.end]:U};for(let ne of W.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},A=M=>{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(M.type)&&!n.expandedSubflows.includes(M.id)){p("expand-subflow",[...n.expandedSubflows,M.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(M.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,F=i.ref(!0),V=i.ref(!1),j=()=>V.value=!V.value;function Z(M){if(!f.value){console.warn("Flow not found");return}F.value=!1,_(f.value,{type:M,shouldDownload:!0}).then(()=>F.value=!0).finally(()=>V.value=!1)}return(M,D)=>(i.openBlock(),i.createBlock(i.unref(te.VueFlow),{id:e.id,"default-marker-color":i.unref(Fe)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":i.withCtx(J=>[i.createVNode(BE,i.mergeProps(J,{onCollapse:D[0]||(D[0]=W=>T(W,!0))}),null,16)]),"node-dot":i.withCtx(J=>[i.createVNode(GE,i.normalizeProps(i.guardReactiveProps(J)),null,16)]),"node-task":i.withCtx(J=>[i.createVNode(Tb,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=W=>p(i.unref(H).EDIT,W)),onDelete:D[2]||(D[2]=W=>p(i.unref(H).DELETE,W)),onExpand:D[3]||(D[3]=W=>A(W)),onOpenLink:D[4]||(D[4]=W=>p(i.unref(H).OPEN_LINK,W)),onShowLogs:D[5]||(D[5]=W=>p(i.unref(H).SHOW_LOGS,W)),onShowDescription:D[6]||(D[6]=W=>p(i.unref(H).SHOW_DESCRIPTION,W)),onShowCondition:D[7]||(D[7]=W=>p(i.unref(H).SHOW_CONDITION,W)),onMouseover:D[8]||(D[8]=W=>y(W)),onMouseleave:D[9]||(D[9]=W=>g()),onAddError:D[10]||(D[10]=W=>p("on-add-flowable-error",W)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":i.withCtx(J=>[i.createVNode(Ob,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=W=>p(i.unref(H).DELETE,W)),onEdit:D[12]||(D[12]=W=>p(i.unref(H).EDIT,W)),onShowDescription:D[13]||(D[13]=W=>p(i.unref(H).SHOW_DESCRIPTION,W))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":i.withCtx(J=>[i.createVNode(Hb,i.mergeProps(J,{onExpand:D[14]||(D[14]=W=>A(W))}),null,16)]),"edge-edge":i.withCtx(J=>[i.createVNode(iy,i.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=W=>p(i.unref(H).ADD_TASK,W)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:i.withCtx(()=>[i.createVNode(i.unref(NE),{"pattern-color":R?i.unref(Fe)("--bs-grey-500"):i.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),F.value?(i.openBlock(),i.createBlock(i.unref(Dn.Controls),{key:0,"show-interactive":!1},{default:i.withCtx(()=>[e.toggleOrientationButton?(i.openBlock(),i.createBlock(i.unref(Dn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.isHorizontal?Zb:Wb)))]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(Dn.ControlButton),{onClick:j},{default:i.withCtx(()=>[i.createVNode(i0)]),_:1}),V.value?(i.openBlock(),i.createElementBlock("ul",J0,[i.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),i.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),ek=K(Q0,[["__scopeId","data-v-ecaa6943"]]),tk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nk=["aria-hidden","aria-label"],rk=["fill","width","height"],ik={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},ok={key:0};function ak(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ik,[n.title?(i.openBlock(),i.createElementBlock("title",ok,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,rk))],16,nk)}const sk=K(tk,[["render",ak]]),lk={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uk=["aria-hidden","aria-label"],ck=["fill","width","height"],dk={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"},fk={key:0};function hk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",dk,[n.title?(i.openBlock(),i.createElementBlock("title",fk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ck))],16,uk)}const mk=K(lk,[["render",hk]]),pk={key:0,class:"language"},gk=["innerHTML"],vk=i.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:i.shallowRef(mk),Check:i.shallowRef(sk)},n=e,r=i.ref(!1),o=i.ref(),a=i.shallowRef(t.ContentCopy.value),s=i.ref(),l=i.ref(),u=i.ref(n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function c(){r.value=!0,o.value&&i.nextTick(()=>{s.value&&l.value&&Fh.createPopper(s.value,l.value,{placement:"left"})})}function d(){clearTimeout(o.value),navigator.clipboard.writeText(n.code.trimEnd()),a.value=t.Check.value,o.value=setTimeout(()=>{a.value=t.ContentCopy.value,o.value=void 0},2e3)}return(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"code-block",onMouseover:c,onMouseleave:h[0]||(h[0]=m=>r.value=!1)},[f.language&&!r.value?(i.openBlock(),i.createElementBlock("div",pk,i.toDisplayString(f.language),1)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{onClick:d}))],512),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[i.createTextVNode(" Copied! "),i.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",{innerHTML:u.value},null,8,gk)],32))}}),md=K(vk,[["__scopeId","data-v-43f26c29"]]),_k={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ek=["aria-hidden","aria-label"],yk=["fill","width","height"],bk={d:"M10,17L15,12L10,7V17Z"},kk={key:0};function Ck(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bk,[n.title?(i.openBlock(),i.createElementBlock("title",kk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,yk))],16,Ek)}const Nk=K(_k,[["render",Ck]]),wk={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sk=["aria-hidden","aria-label"],Lk=["fill","width","height"],Tk={d:"M7,10L12,15L17,10H7Z"},Ik={key:0};function Ok(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Tk,[n.title?(i.openBlock(),i.createElementBlock("title",Ik,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Lk))],16,Sk)}const Ak=K(wk,[["render",Ok]]),Rk=["id"],Dk=["data-target","aria-controls"],Pk={class:"d-flex gap-2 align-items-center"},Bk={key:0,class:"d-flex flex-grow-1"},Vk=["id"],xk=i.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 n=e,r=i.ref(!n.initiallyExpanded),o=on.useRoute(),a=on.useRouter(),s=i.computed(()=>`#${n.href}-body`),l=()=>{r.value=!r.value,a.replace({hash:r.value?"":s.value})},u=t;return i.watch(()=>o.hash,c=>{c===s.value&&(r.value=!1,u("expand"))},{immediate:!0}),i.watch(()=>n.initiallyExpanded,c=>{c&&(r.value=!c)},{immediate:!0}),(c,d)=>(i.openBlock(),i.createElementBlock("div",{id:c.href,class:i.normalizeClass(["d-flex flex-column",{"gap-2":!r.value}])},[i.createElementVNode("button",{type:"button",class:i.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:r.value}]),"data-toggle":"collapse","data-target":s.value,"aria-expanded":"false","aria-controls":c.href+"-body",onClick:l},[i.createElementVNode("span",Pk,[c.arrow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?Nk:Ak),{key:0,class:"arrow"})):i.createCommentVNode("",!0),i.createTextVNode(i.toDisplayString(c.clickableText)+" ",1),i.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(i.openBlock(),i.createElementBlock("span",Bk,[i.renderSlot(c.$slots,"buttonRight",{collapsed:r.value},void 0,!0)])):i.createCommentVNode("",!0)],10,Dk),c.$slots.content?(i.openBlock(),i.createElementBlock("div",{key:0,id:c.href+"-body",class:i.normalizeClass(["collapsible-body",{collapsed:r.value}])},[i.createElementVNode("div",null,[i.renderSlot(c.$slots,"content",{},void 0,!0)])],10,Vk)):i.createCommentVNode("",!0)],10,Rk))}}),hn=K(xk,[["__scopeId","data-v-7358cd91"]]);function Qt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function lh(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function Mk(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function $k(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function uh(e){const t={},n=Qt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Qt).filter(r=>r!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Qt(e.additionalProperties):e.items&&(t.subType=Qt(e.items)),t}const qk={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fk=["aria-hidden","aria-label"],Uk=["fill","width","height"],Hk={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Gk={key:0};function zk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Hk,[n.title?(i.openBlock(),i.createElementBlock("title",Gk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Uk))],16,Fk)}const jk=K(qk,[["render",zk]]),Wk={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kk=["aria-hidden","aria-label"],Yk=["fill","width","height"],Xk={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"},Zk={key:0};function Jk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Xk,[n.title?(i.openBlock(),i.createElementBlock("title",Zk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Yk))],16,Kk)}const ch=K(Wk,[["render",Jk]]),Qk={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eC=["aria-hidden","aria-label"],tC=["fill","width","height"],nC={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"},rC={key:0};function iC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon file-document-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",nC,[n.title?(i.openBlock(),i.createElementBlock("title",rC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,tC))],16,eC)}const oC=K(Qk,[["render",iC]]),aC={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sC=["aria-hidden","aria-label"],lC=["fill","width","height"],uC={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},cC={key:0};function dC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",uC,[n.title?(i.openBlock(),i.createElementBlock("title",cC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,lC))],16,sC)}const dh=K(aC,[["render",dC]]),fC={class:"me-3"},hC={class:"d-flex flex-column"},mC=i.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=i.computed(()=>{switch(t.type){case"success":return oC;case"info":return la;case"warning":return dh;case"danger":return sa;default:return la}});return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass("doc-alert alert alert-"+r.type),role:"alert"},[i.createElementVNode("div",fC,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),i.createElementVNode("div",hC,[i.renderSlot(r.$slots,"default",{},void 0,!0)])],2))}}),pC=K(mC,[["__scopeId","data-v-f7fd8bc1"]]),gC={class:"property-detail"},vC={key:0},_C=["href"],EC={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},yC={class:"ref-type"},bC={key:1,class:"type-box rounded fs-7 px-2 py-1"},kC={key:1},CC={class:"border rounded px-2 py-1"},NC={key:2},wC={class:"border rounded px-2 py-1"},SC={key:3},LC={class:"border rounded px-2 py-1"},TC={key:4},IC={class:"border rounded px-2 py-1"},OC={key:5},AC={class:"border rounded px-2 py-1"},RC={key:6},DC={class:"border rounded px-2 py-1"},PC={key:7},BC={class:"border rounded px-2 py-1"},VC={key:8},xC={class:"border rounded px-2 py-1"},MC={key:9},$C={class:"border rounded px-2 py-1"},qC={key:10},FC={class:"border rounded px-2 py-1"},UC={key:11},HC={class:"border rounded px-2 py-1"},GC={key:12},zC={class:"border rounded px-2 py-1"},jC={key:13},WC={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},KC={key:14},YC={class:"property-description markdown"},XC={key:2},ZC=i.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=i.ref(uh(t.property).subType),r=i.ref(Mk(t.property)),o=a=>a.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(a,s)=>(i.openBlock(),i.createElementBlock("div",gC,[n.value?(i.openBlock(),i.createElementBlock("div",vC,[s[1]||(s[1]=i.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("button",EC,[i.createElementVNode("span",yC,i.toDisplayString(i.unref(lh)(n.value)),1),i.createVNode(ch)])],8,_C)):(i.openBlock(),i.createElementBlock("span",bC,i.toDisplayString(n.value),1))])):i.createCommentVNode("",!0),a.property.default!==void 0?(i.openBlock(),i.createElementBlock("div",kC,[s[2]||(s[2]=i.createElementVNode("span",null," Default ",-1)),i.createElementVNode("code",CC,i.toDisplayString(a.property.default),1)])):i.createCommentVNode("",!0),a.property.pattern!==void 0?(i.openBlock(),i.createElementBlock("div",NC,[s[3]||(s[3]=i.createElementVNode("span",null," Validation RegExp ",-1)),i.createElementVNode("code",wC,i.toDisplayString(a.property.pattern),1)])):i.createCommentVNode("",!0),a.property.unit!==void 0&&a.property.unit.trim().length>0?(i.openBlock(),i.createElementBlock("div",SC,[s[4]||(s[4]=i.createElementVNode("span",null," Unit ",-1)),i.createElementVNode("code",LC,i.toDisplayString(a.property.unit),1)])):i.createCommentVNode("",!0),a.property.minLength!==void 0?(i.openBlock(),i.createElementBlock("div",TC,[s[5]||(s[5]=i.createElementVNode("span",null," Min length ",-1)),i.createElementVNode("code",IC,i.toDisplayString(a.property.minLength),1)])):i.createCommentVNode("",!0),a.property.maxLength!==void 0?(i.openBlock(),i.createElementBlock("div",OC,[s[6]||(s[6]=i.createElementVNode("span",null," Max length ",-1)),i.createElementVNode("code",AC,i.toDisplayString(a.property.maxLength),1)])):i.createCommentVNode("",!0),a.property.minItems!==void 0?(i.openBlock(),i.createElementBlock("div",RC,[s[7]||(s[7]=i.createElementVNode("span",null," Min items ",-1)),i.createElementVNode("code",DC,i.toDisplayString(a.property.minItems),1)])):i.createCommentVNode("",!0),a.property.maxItems!==void 0?(i.openBlock(),i.createElementBlock("div",PC,[s[8]||(s[8]=i.createElementVNode("span",null," Max items ",-1)),i.createElementVNode("code",BC,i.toDisplayString(a.property.maxItems),1)])):i.createCommentVNode("",!0),a.property.minimum!==void 0?(i.openBlock(),i.createElementBlock("div",VC,[s[9]||(s[9]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",xC," >= "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMinimum!==void 0?(i.openBlock(),i.createElementBlock("div",MC,[s[10]||(s[10]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",$C," > "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.maximum!==void 0?(i.openBlock(),i.createElementBlock("div",qC,[s[11]||(s[11]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",FC," <= "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMaximum!==void 0?(i.openBlock(),i.createElementBlock("div",UC,[s[12]||(s[12]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",HC," < "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.format!==void 0?(i.openBlock(),i.createElementBlock("div",GC,[s[13]||(s[13]=i.createElementVNode("span",null," Format ",-1)),i.createElementVNode("code",zC,i.toDisplayString(a.property.format),1)])):i.createCommentVNode("",!0),r.value!==void 0?(i.openBlock(),i.createElementBlock("div",jC,[s[14]||(s[14]=i.createElementVNode("span",null," Possible Values ",-1)),i.createElementVNode("div",WC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(l,u)=>(i.openBlock(),i.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},i.toDisplayString(l),1))),128))])])):i.createCommentVNode("",!0),a.property.title!==void 0||a.property.description!==void 0?(i.openBlock(),i.createElementBlock("div",KC,[i.createElementVNode("div",YC,[a.property.title!==void 0?i.renderSlot(a.$slots,"markdown",{key:0,content:o(a.property.title)},void 0,!0):i.createCommentVNode("",!0),a.property.description!==void 0?i.renderSlot(a.$slots,"markdown",{key:1,content:o(a.property.description)},void 0,!0):i.createCommentVNode("",!0),a.property.$internalStorageURI?(i.openBlock(),i.createElementBlock("div",XC,[i.createVNode(pC,{type:"info"},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}}),JC=K(ZC,[["__scopeId","data-v-79715a4e"]]),QC={name:"ChevronUpIcon",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"],nN={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},rN={key:0};function iN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",nN,[n.title?(i.openBlock(),i.createElementBlock("title",rN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,tN))],16,eN)}const oN=K(QC,[["render",iN]]),aN={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sN=["aria-hidden","aria-label"],lN=["fill","width","height"],uN={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"},cN={key:0};function dN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",uN,[n.title?(i.openBlock(),i.createElementBlock("title",cN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,lN))],16,sN)}const fN=K(aN,[["render",dN]]),hN={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mN=["aria-hidden","aria-label"],pN=["fill","width","height"],gN={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"},vN={key:0};function _N(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",gN,[n.title?(i.openBlock(),i.createElementBlock("title",vN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,pN))],16,mN)}const EN=K(hN,[["render",_N]]),yN={class:"border overflow-hidden"},bN={class:"d-flex flex-grow-1 align-items-center justify-content-between"},kN={class:"d-flex gap-2"},CN={class:"d-flex gap-2"},NN=["href"],wN={class:"ref-type"},SN={key:1,class:"type-box rounded fs-7 px-2 py-1"},LN=i.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 n=t,r=i.ref(!1);i.watch(r,s=>{s&&n("expand")});const o=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 a(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=$k(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)=>(i.openBlock(),i.createBlock(hn,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>n("expand")),"initially-expanded":s.initiallyExpanded||r.value},i.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:i.withCtx(()=>[i.createElementVNode("div",yN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a(s.properties),(u,c)=>(i.openBlock(),i.createBlock(hn,{class:"property",key:c,arrow:!1,"clickable-text":c,href:s.href+"_"+c,onExpand:l[1]||(l[1]=d=>r.value=!0)},{additionalButtonText:i.withCtx(()=>[u.$required?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:i.withCtx(()=>l[3]||(l[3]=[i.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):i.createCommentVNode("",!0)]),buttonRight:i.withCtx(({collapsed:d})=>[i.createElementVNode("span",bN,[i.createElementVNode("span",kN,[s.showDynamic&&!o(u)?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:i.withCtx(()=>[i.createVNode(fN,{class:"text-info"})]),_:1})):i.createCommentVNode("",!0),u.$beta?(i.openBlock(),i.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:i.withCtx(()=>[i.createVNode(EN,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0),u.$deprecated?(i.openBlock(),i.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:i.withCtx(()=>[i.createVNode(dh,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("span",CN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(uh)(u).types,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[f.startsWith("#")?(i.openBlock(),i.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]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("span",wN,i.toDisplayString(i.unref(lh)(f)),1),i.createVNode(ch)],8,NN)):(i.openBlock(),i.createElementBlock("span",SN,i.toDisplayString(f),1))],64))),128)),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d?jk:oN),{class:"arrow"}))])])]),content:i.withCtx(()=>[i.createVNode(JC,{property:u},{markdown:i.withCtx(({content:d})=>[i.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"]))}}),en=K(LN,[["__scopeId","data-v-5d9dd807"]]),TN={class:"d-flex flex-column gap-6"},IN={key:0,class:"alert alert-info",role:"alert"},ON={key:1,class:"plugin-title markdown"},AN={key:2,class:"markdown"},RN={class:"d-flex flex-column gap-4"},DN={class:"d-flex flex-column gap-3"},PN={class:"markdown"},BN={key:0,class:"w-100 align-self-center"},VN={class:"markdown"},xN={class:"markdown"},MN={class:"markdown"},$N={class:"d-flex flex-column gap-7 ps-3"},qN={class:"markdown"},FN=i.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,n;const r=e,o=i.ref(!1),a=i.ref(new Set),s=i.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!r.schema.definitions){a.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in r.schema.definitions){o.value=!0,s.value+=1,a.value.clear(),a.value.add(k),await i.nextTick();let b=0;const T=30,A=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(A))};requestAnimationFrame(A)}else a.value.clear()};i.watch([()=>r.schema,()=>r.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&r.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=r.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
|
|
28
|
+
*/var vy="store";function Ct(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Vf(e){return e!==null&&typeof e=="object"}function _y(e){return e&&typeof e.then=="function"}function Ye(e,t){if(!e)throw new Error("[vuex] "+t)}function Ey(e,t){return function(){return e(t)}}function xf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Mf(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Tn(e,n,[],e._modules.root,!0),ja(e,n,t)}function ja(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},l={},u=i.effectScope(!0);u.run(function(){Ct(a,function(c,d){s[d]=Ey(c,e),l[d]=i.computed(function(){return s[d]()}),Object.defineProperty(e.getters,d,{get:function(){return l[d].value},enumerable:!0})})}),e._state=i.reactive({data:t}),e._scope=u,e.strict&&Ny(e),r&&n&&e._withCommit(function(){r.data=null}),o&&o.stop()}function Tn(e,t,n,r,o){var a=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[s]=r),!a&&!o){var l=Wa(t,n.slice(0,-1)),u=n[n.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 "'+n.join(".")+'"'),l[u]=r.state})}var c=r.context=yy(e,s,n);r.forEachMutation(function(d,f){var h=s+f;by(e,h,d,c)}),r.forEachAction(function(d,f){var h=d.root?f:s+f,m=d.handler||d;ky(e,h,m,c)}),r.forEachGetter(function(d,f){var h=s+f;Cy(e,h,d,c)}),r.forEachChild(function(d,f){Tn(e,t,n.concat(f),d,o)})}function yy(e,t,n){var r=t==="",o={dispatch:r?e.dispatch:function(a,s,l){var u=cn(a,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:r?e.commit:function(a,s,l){var u=cn(a,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(o,{getters:{get:r?function(){return e.getters}:function(){return $f(e,t)}},state:{get:function(){return Wa(e.state,n)}}}),o}function $f(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var a=o.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function by(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(s){n.call(e,r.state,s)})}function ky(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(s){var l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return _y(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):l})}function Cy(e,t,n,r){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(a){return n(r.state,r.getters,a.state,a.getters)}}function Ny(e){i.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Ye(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Wa(e,t){return t.reduce(function(n,r){return n[r]},e)}function cn(e,t,n){return Vf(e)&&e.type&&(n=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Ye(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var wy="vuex bindings",rd="vuex:mutations",ia="vuex:actions",Ot="vuex",Sy=0;function Ly(e,t){D_({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:[wy]},function(n){n.addTimelineLayer({id:rd,label:"Vuex Mutations",color:id}),n.addTimelineLayer({id:ia,label:"Vuex Actions",color:id}),n.addInspector({id:Ot,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ot)if(r.filter){var o=[];Hf(o,t._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Uf(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId;$f(t,o),r.state=Oy(Ry(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId,a=r.path;o!=="root"&&(a=o.split("/").filter(Boolean).concat(a)),t._withCommit(function(){r.set(t._state.data,a,r.state.value)})}}),t.subscribe(function(r,o){var a={};r.payload&&(a.payload=r.payload),a.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(Ot),n.sendInspectorState(Ot),n.addTimelineEvent({layerId:rd,event:{time:Date.now(),title:r.type,data:a}})}),t.subscribeAction({before:function(r,o){var a={};r.payload&&(a.payload=r.payload),r._id=Sy++,r._time=Date.now(),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:a}})},after:function(r,o){var a={},s=Date.now()-r._time;a.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(a.payload=r.payload),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:a}})}})})}var id=8702998,Ty=6710886,Iy=16777215,qf={label:"namespaced",textColor:Iy,backgroundColor:Ty};function Ff(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Uf(e,t){return{id:t||"root",label:Ff(t),tags:e.namespaced?[qf]:[],children:Object.keys(e._children).map(function(n){return Uf(e._children[n],t+n+"/")})}}function Hf(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[qf]:[]}),Object.keys(t._children).forEach(function(o){Hf(e,t._children[o],n,r+o+"/")})}function Oy(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var a=Ay(t);o.getters=Object.keys(a).map(function(s){return{key:s.endsWith("/")?Ff(s):s,editable:!1,value:ba(function(){return a[s]})}})}return o}function Ay(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var o=t,a=r.pop();r.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[a]=ba(function(){return e[n]})}else t[n]=ba(function(){return e[n]})}),t}function Ry(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,o,a){var s=r[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+t+'".');return a===n.length-1?s:s._children},t==="root"?e:e.root._children)}function ba(e){try{return e()}catch(t){return t}}var Xe=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},Gf={namespaced:{configurable:!0}};Gf.namespaced.get=function(){return!!this._rawModule.namespaced};Xe.prototype.addChild=function(t,n){this._children[t]=n};Xe.prototype.removeChild=function(t){delete this._children[t]};Xe.prototype.getChild=function(t){return this._children[t]};Xe.prototype.hasChild=function(t){return t in this._children};Xe.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)};Xe.prototype.forEachChild=function(t){Ct(this._children,t)};Xe.prototype.forEachGetter=function(t){this._rawModule.getters&&Ct(this._rawModule.getters,t)};Xe.prototype.forEachAction=function(t){this._rawModule.actions&&Ct(this._rawModule.actions,t)};Xe.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ct(this._rawModule.mutations,t)};Object.defineProperties(Xe.prototype,Gf);var Nt=function(t){this.register([],t,!1)};Nt.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Nt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,o){return n=n.getChild(o),r+(n.namespaced?o+"/":"")},"")};Nt.prototype.update=function(t){zf([],this.root,t)};Nt.prototype.register=function(t,n,r){var o=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&jf(t,n);var a=new Xe(n,r);if(t.length===0)this.root=a;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],a)}n.modules&&Ct(n.modules,function(l,u){o.register(t.concat(u),l,r)})};Nt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],o=n.getChild(r);if(!o){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&n.removeChild(r)};Nt.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function zf(e,t,n){if(process.env.NODE_ENV!=="production"&&jf(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}zf(e.concat(r),t.getChild(r),n.modules[r])}}var od={assert:function(e){return typeof e=="function"},expected:"function"},Dy={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},ad={getters:od,mutations:od,actions:Dy};function jf(e,t){Object.keys(ad).forEach(function(n){if(t[n]){var r=ad[n];Ct(t[n],function(o,a){Ye(r.assert(o),Py(e,n,a,o,r.expected))})}})}function Py(e,t,n,r,o){var a=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(r)+".",a}var He=function e(t){var n=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(Ye(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Ye(this instanceof e,"store must be called with the new operator."));var r=t.plugins;r===void 0&&(r=[]);var o=t.strict;o===void 0&&(o=!1);var a=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 Nt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;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=o;var d=this._modules.root.state;Tn(this,d,[],this._modules.root),ja(this,d),r.forEach(function(f){return f(n)})},Ka={state:{configurable:!0}};He.prototype.install=function(t,n){t.provide(n||vy,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&Ly(t,this)};Ka.state.get=function(){return this._state.data};Ka.state.set=function(e){process.env.NODE_ENV!=="production"&&Ye(!1,"use store.replaceState() to explicit replace store state.")};He.prototype.commit=function(t,n,r){var o=this,a=cn(t,n,r),s=a.type,l=a.payload,u=a.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,o.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")};He.prototype.dispatch=function(t,n){var r=this,o=cn(t,n),a=o.type,s=o.payload,l={type:a,payload:s},u=this._actions[a];if(!u){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(l,r.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{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(l,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(m))}d(h)},function(h){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(l,r.state,h)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(m))}f(h)})})};He.prototype.subscribe=function(t,n){return xf(t,this._subscribers,n)};He.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return xf(r,this._actionSubscribers,n)};He.prototype.watch=function(t,n,r){var o=this;return process.env.NODE_ENV!=="production"&&Ye(typeof t=="function","store.watch only accepts a function."),i.watch(function(){return t(o.state,o.getters)},n,Object.assign({},r))};He.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};He.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Ye(Array.isArray(t),"module path must be a string or an Array."),Ye(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),Tn(this,this.state,t,this._modules.get(t),r.preserveState),ja(this,this.state)};He.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var r=Wa(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),Mf(this)};He.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};He.prototype.hotUpdate=function(t){this._modules.update(t),Mf(this,!0)};He.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(He.prototype,Ka);var Ya=Kf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Wf(t).forEach(function(r){var o=r.key,a=r.val;n[o]=function(){var l=this.$store.state,u=this.$store.getters;if(e){var c=Yf(this.$store,"mapState",e);if(!c)return;l=c.context.state,u=c.context.getters}return typeof a=="function"?a.call(this,l,u):l[a]},n[o].vuex=!0}),n}),By=Kf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Wf(t).forEach(function(r){var o=r.key,a=r.val;a=e+a,n[o]=function(){if(!(e&&!Yf(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(a in this.$store.getters)){console.error("[vuex] unknown getter: "+a);return}return this.$store.getters[a]}},n[o].vuex=!0}),n});function Wf(e){return Xa(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 Xa(e){return Array.isArray(e)||Vf(e)}function Kf(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Yf(e,t,n){var r=e._modulesNamespaceMap[n];return process.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+t+"(): "+n),r}const Vy={class:"icon rounded"},xy={class:"node-content"},My={class:"d-flex node-title"},$y={class:"text-truncate task-title"},qy={key:0,class:"d-flex"},Fy={class:"text-white top-button-div"},Uy={components:{ArrowExpand:Ln,InformationOutline:Bf,OpenInNew:za,Tooltip:le},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.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(H.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(H.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return ge},...Ya("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 H},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 ge.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,t,n,r;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((r=(n=(t=this.data.parent)==null?void 0:t.taskNode)==null?void 0:n.task)==null?void 0:r.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}}},Hy=Object.assign(Uy,{__name:"BasicNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...r)=>t.mouseover&&t.mouseover(...r)),onMouseleave:n[4]||(n[4]=(...r)=>t.mouseleave&&t.mouseleave(...r))},[e.state?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("div",Vy,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent||Ga),{cls:t.cls,class:i.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),i.createElementVNode("div",xy,[i.createElementVNode("div",My,[i.createElementVNode("div",$y,[i.createVNode(le,{title:t.hoverTooltip},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(i.openBlock(),i.createElementBlock("span",qy,[i.createVNode(le,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:i.withCtx(()=>[i.createVNode(Bf,{onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):i.createCommentVNode("",!0)]),i.renderSlot(t.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",Fy,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).OPEN_LINK,{link:e.data.link}))},[i.createVNode(le,{title:t.$t("open")},{default:i.withCtx(()=>[i.createVNode(za,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).EXPAND))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),Xf=K(Hy,[["__scopeId","data-v-d71af44b"]]),Gy=["innerHTML"],zy=i.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;i.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const n=i.ref(""),r=i.ref();i.onMounted(()=>{l()});const o=i.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),a=i.computed(()=>t.histories[t.histories.length-1]),s=i.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){r.value||(r.value=setInterval(()=>{f(),t.histories&&!Ce.isRunning(a.value.state)&&u()},100))}function u(){r.value&&(clearInterval(r.value),r.value=void 0)}function c(){return d()-o.value}function d(){return!t.histories||Ce.isRunning(a.value.state)?+new Date:new Date(a.value.date.toString()).getTime()}function f(){n.value=s.value.length===0?" ":ge.humanDuration(c()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return i.onBeforeUnmount(()=>{u()}),(m,C)=>(i.openBlock(),i.createBlock(le,{key:a.value.date.toString()},{content:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(E,_)=>(i.openBlock(),i.createElementBlock("span",{key:"tt-"+_,class:"ks-duration-tt"},[i.createElementVNode("span",{class:i.normalizeClass(["ks-duration-tt-square",h(E.state)])},null,2),i.createElementVNode("strong",null,i.toDisplayString(E.state)+": ",1),i.createTextVNode(i.toDisplayString(i.unref(ge).dateFilter(E.date.toString(),"iso"))+" ",1),C[0]||(C[0]=i.createElementVNode("br",null,null,-1))]))),128))]),default:i.withCtx(()=>[i.createElementVNode("span",{innerHTML:n.value},null,8,Gy)]),_:1}))}}),jy={class:"btn-group content rounded-1 content-children text-truncate"},Wy={key:0,class:"taskRunCount"},Ky={key:1},Yy={key:2},Xy=i.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=i.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),r=i.computed(()=>n.value.filter(s=>s.taskId===ge.afterLastDot(t.uid??""))),o=i.computed(()=>{if(!r.value)return null;if(r.value.length===1)return r.value[0].state.current;const s=r.value.map(c=>c.state.current),l=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return s.map(c=>{const d=l.indexOf(c[1]);return l[d]=void 0,[d,c]}).sort().map(c=>c[1])[0]}),a=i.computed(()=>{if(!r.value)return;const s=Math.max(...r.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(...r.value.map(u=>$t.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:$t(s).subtract(l,"second"),state:"CREATED"},{date:$t(s),state:o.value}]});return(s,l)=>(i.openBlock(),i.createElementBlock("div",jy,[r.value.length>0?(i.openBlock(),i.createElementBlock("span",Wy,i.toDisplayString(r.value.length)+" task runs",1)):i.createCommentVNode("",!0),r.value.length>0?(i.openBlock(),i.createElementBlock("span",Ky," | ")):i.createCommentVNode("",!0),a.value?(i.openBlock(),i.createElementBlock("span",Yy,[i.createVNode(zy,{histories:a.value},null,8,["histories"])])):i.createCommentVNode("",!0)]))}}),Zf=K(Xy,[["__scopeId","data-v-b7801302"]]),Zy={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jy=["aria-hidden","aria-label"],Qy=["fill","width","height"],eb={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"},tb={key:0};function nb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",eb,[n.title?(i.openBlock(),i.createElementBlock("title",tb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qy))],16,Jy)}const In=K(Zy,[["render",nb]]),rb={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ib=["aria-hidden","aria-label"],ob=["fill","width","height"],ab={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},sb={key:0};function lb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ab,[n.title?(i.openBlock(),i.createElementBlock("title",sb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ob))],16,ib)}const On=K(rb,[["render",lb]]),ub={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cb=["aria-hidden","aria-label"],db=["fill","width","height"],fb={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"},hb={key:0};function mb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",fb,[n.title?(i.openBlock(),i.createElementBlock("title",hb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,db))],16,cb)}const Jf=K(ub,[["render",mb]]),pb={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gb=["aria-hidden","aria-label"],vb=["fill","width","height"],_b={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Eb={key:0};function yb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",_b,[n.title?(i.openBlock(),i.createElementBlock("title",Eb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,vb))],16,gb)}const Qf=K(pb,[["render",yb]]),bb={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kb=["aria-hidden","aria-label"],Cb=["fill","width","height"],Nb={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"},wb={key:0};function Sb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Nb,[n.title?(i.openBlock(),i.createElementBlock("title",wb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Cb))],16,kb)}const eh=K(bb,[["render",Sb]]),Lb={name:"Task",components:{Pencil:In,Delete:On,ExecutionInformations:Zf,Handle:te.Handle,TextBoxSearch:Jf,AlertOutline:Qf,Tooltip:le,SendLock:eh},inheritAttrs:!1,computed:{...Ya("execution",["execution"]),...By("execution",["subflowsExecutions"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},taskId(){return ge.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,n;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(n=Object.values(this.subflowsExecutions).filter(r=>r.id===this.data.executionId))==null?void 0:n[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===ge.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(r=>r.state.current),t=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return e.map(r=>{const o=t.indexOf(r[1]);return t[o]=void 0,[o,r]}).sort().map(r=>r[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,n,r;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const o=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:o.namespace,id:o.flowId,executionId:(r=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(a=>{var s;return a.taskId===this.data.node.task.id&&((s=a.outputs)==null?void 0:s.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:r.executionId}}}return this.data}},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.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)}}},Tb=Object.assign(Lb,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Xf,{id:e.id,data:t.dataWithLink,state:t.state,class:i.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[6]||(n[6]=r=>t.forwardEvent(i.unref(H).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=r=>t.forwardEvent(i.unref(H).OPEN_LINK,r)),onMouseover:n[8]||(n[8]=r=>t.forwardEvent(i.unref(H).MOUSE_OVER,r)),onMouseleave:n[9]||(n[9]=r=>t.forwardEvent(i.unref(H).MOUSE_LEAVE))},{content:i.withCtx(()=>[t.taskExecution?(i.openBlock(),i.createBlock(Zf,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):i.createCommentVNode("",!0)]),"badge-button-before":i.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("show task condition")},{default:i.withCtx(()=>[i.createVNode(eh,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):i.createCommentVNode("",!0),t.taskExecution?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[i.createVNode(le,{title:t.$t("show task logs")},{default:i.withCtx(()=>[i.createVNode(Jf,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).ADD_ERROR,{task:e.data.node.task}))},[i.createVNode(le,{title:t.$t("add error handler")},{default:i.withCtx(()=>[i.createVNode(Qf,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=r=>t.$emit(i.unref(H).DELETE,{id:t.taskId,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ib={name:"Task",inheritAttrs:!1,computed:{...Ya("execution",["execution"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},formattedData(){var e,t,n,r;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((r=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:r.disabled)}},triggerId(){return ge.afterLastDot(this.id)}},emits:[H.DELETE,H.EDIT,H.SHOW_DESCRIPTION],components:{Delete:On,Pencil:In,Handle:te.Handle,Tooltip:le},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)}}},Ob=Object.assign(Ib,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Xf,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[3]||(n[3]=r=>t.forwardEvent(i.unref(H).EXPAND,{id:e.id}))},i.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:i.withCtx(()=>[t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.triggerDeclaration,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).DELETE,{id:t.triggerId,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ab={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rb=["aria-hidden","aria-label"],Db=["fill","width","height"],Pb={d:"M11 15H6L13 1V9H18L11 23V15Z"},Bb={key:0};function Vb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pb,[n.title?(i.openBlock(),i.createElementBlock("title",Bb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Db))],16,Rb)}const xb=K(Ab,[["render",Vb]]),Mb={class:"collapsed-cluster-node d-flex"},$b={class:"node-text"},qb={class:"text-white top-button-div"},Fb={components:{Tooltip:le,Handle:te.Handle,ArrowExpand:Ln,LightningBolt:xb},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 H},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}}},Ub=Object.assign(Fb,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createElementVNode("div",Mb,[i.createElementVNode("span",$b,[e.data.iconComponent?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.data.iconComponent),{key:0,class:i.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(ge).afterLastDot(e.id)),1)]),i.createElementVNode("div",qb,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EXPAND,{id:e.id}))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Hb=K(Ub,[["__scopeId","data-v-89413b39"]]),Gb={name:"SplitCellsVerticalIcon",emits:["click"]},zb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",zb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[i.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),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_1111_7266"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const Wb=K(Gb,[["render",jb],["__scopeId","data-v-084c51e6"]]),Kb={name:"SplitCellsHorizontalIcon",emits:["click"]},Yb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",Yb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[i.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),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_796_3996"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Zb=K(Kb,[["render",Xb],["__scopeId","data-v-c77c1469"]]),Jb={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qb=["aria-hidden","aria-label"],e0=["fill","width","height"],t0={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},n0={key:0};function r0(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon download-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",t0,[n.title?(i.openBlock(),i.createElementBlock("title",n0,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,e0))],16,Qb)}const i0=K(Jb,[["render",r0]]);function o0(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 n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const a0=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function rt(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function dn(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function s0(e){const t=dn(e,"border-left-width"),n=dn(e,"border-right-width");return e.clientWidth+t+n}function l0(e){const t=dn(e,"border-top-width"),n=dn(e,"border-bottom-width");return e.clientHeight+t+n}function th(e,t={}){const n=t.width||s0(e),r=t.height||l0(e);return{width:n,height:r}}function u0(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const $e=16384;function c0(e){(e.width>$e||e.height>$e)&&(e.width>$e&&e.height>$e?e.width>e.height?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e):e.width>$e?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e))}function fn(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function d0(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function f0(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),o.appendChild(a),a.appendChild(e),d0(o)}const Be=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Be(n,t)};function h0(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function m0(e){return rt(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function p0(e,t,n){const r=`.${e}:${t}`,o=n.cssText?h0(n):m0(n);return document.createTextNode(`${r}{${o}}`)}function sd(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const a=a0();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(p0(a,n,r)),t.appendChild(s)}function g0(e,t){sd(e,t,":before"),sd(e,t,":after")}const ld="application/font-woff",ud="image/jpeg",v0={woff:ld,woff2:ld,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ud,jpeg:ud,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _0(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Za(e){const t=_0(e).toLowerCase();return v0[t]||""}function E0(e){return e.split(/,/)[1]}function ka(e){return e.search(/^(data:)/)!==-1}function y0(e,t){return`data:${t};base64,${e}`}async function nh(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((a,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{a(n({res:r,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(o)})}const oa={};function b0(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function Ja(e,t,n){const r=b0(e,t,n.includeQueryParams);if(oa[r]!=null)return oa[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const a=await nh(e,n.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),E0(l)));o=y0(a,t)}catch(a){o=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;a&&(s=typeof a=="string"?a:a.message),s&&console.warn(s)}return oa[r]=o,o}async function k0(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):fn(t)}async function C0(e,t){if(e.currentSrc){const a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,s==null||s.drawImage(e,0,0,a.width,a.height);const l=a.toDataURL();return fn(l)}const n=e.poster,r=Za(n),o=await Ja(n,r,t);return fn(o)}async function N0(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await An(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function w0(e,t){return Be(e,HTMLCanvasElement)?k0(e):Be(e,HTMLVideoElement)?C0(e,t):Be(e,HTMLIFrameElement)?N0(e):e.cloneNode(!1)}const S0=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function L0(e,t,n){var r,o;let a=[];return S0(e)&&e.assignedNodes?a=rt(e.assignedNodes()):Be(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=rt(e.contentDocument.body.childNodes):a=rt(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),a.length===0||Be(e,HTMLVideoElement)||await a.reduce((s,l)=>s.then(()=>An(l,n)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function T0(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):rt(r).forEach(o=>{let a=r.getPropertyValue(o);o==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Be(e,HTMLIFrameElement)&&o==="display"&&a==="inline"&&(a="block"),o==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(o,a,r.getPropertyPriority(o))})}function I0(e,t){Be(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Be(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function O0(e,t){if(Be(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function A0(e,t){return Be(t,Element)&&(T0(e,t),g0(e,t),I0(e,t),O0(e,t)),t}async function R0(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const l=n[a].getAttribute("xlink:href");if(l){const u=e.querySelector(l),c=document.querySelector(l);!u&&c&&!r[l]&&(r[l]=await An(c,t,!0))}}const o=Object.values(r);if(o.length){const a="http://www.w3.org/1999/xhtml",s=document.createElementNS(a,"svg");s.setAttribute("xmlns",a),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(a,"defs");s.appendChild(l);for(let u=0;u<o.length;u++)l.appendChild(o[u]);e.appendChild(s)}return e}async function An(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>w0(r,t)).then(r=>L0(e,r,t)).then(r=>A0(e,r)).then(r=>R0(r,t))}const rh=/url\((['"]?)([^'"]+?)\1\)/g,D0=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,P0=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function B0(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function V0(e){const t=[];return e.replace(rh,(n,r,o)=>(t.push(o),n)),t.filter(n=>!ka(n))}async function x0(e,t,n,r,o){try{const a=n?o0(t,n):t,s=Za(t);let l;return o||(l=await Ja(a,s,r)),e.replace(B0(t),`$1${l}$3`)}catch{}return e}function M0(e,{preferredFontFormat:t}){return t?e.replace(P0,n=>{for(;;){const[r,,o]=D0.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function ih(e){return e.search(rh)!==-1}async function oh(e,t,n){if(!ih(e))return e;const r=M0(e,n);return V0(r).reduce((a,s)=>a.then(l=>x0(l,s,t,n)),Promise.resolve(r))}async function Jt(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const a=await oh(o,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function $0(e,t){await Jt("background",e,t)||await Jt("background-image",e,t),await Jt("mask",e,t)||await Jt("mask-image",e,t)}async function q0(e,t){const n=Be(e,HTMLImageElement);if(!(n&&!ka(e.src))&&!(Be(e,SVGImageElement)&&!ka(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await Ja(r,Za(r),t);await new Promise((a,s)=>{e.onload=a,e.onerror=s;const l=e;l.decode&&(l.decode=a),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function F0(e,t){const r=rt(e.childNodes).map(o=>ah(o,t));await Promise.all(r).then(()=>e)}async function ah(e,t){Be(e,Element)&&(await $0(e,t),await q0(e,t),await F0(e,t))}function U0(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const cd={};async function dd(e){let t=cd[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},cd[e]=t,t}async function fd(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(r,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),nh(l,t.fetchRequestInit,({result:u})=>(n=n.replace(s,`url(${u})`),[s,u]))});return Promise.all(a).then(()=>n)}function hd(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=o.exec(r);if(u===null)break;t.push(u[0])}r=r.replace(o,"");const a=/@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=a.exec(r);if(u===null){if(u=l.exec(r),u===null)break;a.lastIndex=l.lastIndex}else l.lastIndex=a.lastIndex;t.push(u[0])}return t}async function H0(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach((a,s)=>{if(a.type===CSSRule.IMPORT_RULE){let l=s+1;const u=a.href,c=dd(u).then(d=>fd(d,t)).then(d=>hd(d).forEach(f=>{try{o.insertRule(f,f.startsWith("@import")?l+=1:o.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())});r.push(c)}})}catch(a){const s=e.find(l=>l.href==null)||document.styleSheets[0];o.href!=null&&r.push(dd(o.href).then(l=>fd(l,t)).then(l=>hd(l).forEach(u=>{s.insertRule(u,o.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${o.href}`,a)}}),n))}function G0(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>ih(t.style.getPropertyValue("src")))}async function z0(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=rt(e.ownerDocument.styleSheets),r=await H0(n,t);return G0(r)}async function j0(e,t){const n=await z0(e,t);return(await Promise.all(n.map(o=>{const a=o.parentStyleSheet?o.parentStyleSheet.href:null;return oh(o.cssText,a,t)}))).join(`
|
|
29
|
+
`)}async function W0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await j0(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function K0(e,t={}){const{width:n,height:r}=th(e,t),o=await An(e,t,!0);return await W0(o,t),await ah(o,t),U0(o,t),await f0(o,n,r)}async function sh(e,t={}){const{width:n,height:r}=th(e,t),o=await K0(e,t),a=await fn(o),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||u0(),c=t.canvasWidth||n,d=t.canvasHeight||r;return s.width=c*u,s.height=d*u,t.skipAutoScale||c0(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(a,0,0,s.width,s.height),s}async function Y0(e,t={}){return(await sh(e,t)).toDataURL()}async function X0(e,t={}){return(await sh(e,t)).toDataURL("image/jpeg",t.quality||1)}function Z0(){const e=i.ref(""),t=i.ref("png"),n=i.ref();async function r(l,u={}){let c;const d=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":c=await o(l,u);break;case"png":c=await a(l,u);break;default:c=await a(l,u);break}return u.shouldDownload&&d!==""&&s(d),c}function o(l,u={quality:.95}){return n.value=null,X0(l,u).then(c=>(e.value=c,t.value="jpeg",c)).catch(c=>{throw c.value=c,new Error(c)})}function a(l,u={quality:.95}){return n.value=null,Y0(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:r,download:s,dataUrl:e,error:n}}const J0={key:1,class:"exporting"},Q0=i.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:[H.EDIT,H.DELETE,H.OPEN_LINK,H.SHOW_LOGS,H.SHOW_DESCRIPTION,"on-add-flowable-error",H.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",H.SHOW_CONDITION],setup(e,{emit:t}){const n=e,r=i.ref(!1),o=i.ref(),{getNodes:a,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:c,setElements:d,vueFlowRef:f}=te.useVueFlow(n.id),h=i.ref({}),m=i.ref([]),C=i.ref(new Set),E=i.ref([]),{capture:_}=Z0(),p=t;i.onMounted(()=>{v()}),i.watch(()=>n.flowGraph,()=>{v()}),i.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{tn.cleanGraph(n.id),i.nextTick(()=>{p("loading",!0);const M=C.value;C.value=new Set,m.value=[],h.value={},M.forEach(J=>T(ct+J,!1,!1));const D=tn.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,m.value,n.isHorizontal,h.value,C.value,E.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);D&&(d(D),c(),p("loading",!1))})},y=M=>{r.value||tn.linkedElements(n.id,M.uid).forEach(D=>{(D==null?void 0:D.type)==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-gray-900")},D.class="rounded-3")})},g=()=>{k()},k=()=>{a.value.filter(M=>M.type==="task"||M.type==="trigger").forEach(M=>{M.style={...M.style,opacity:"1",outline:"none"},M.class=""})};l(M=>{r.value=!0,k(),M.node.style={...M.node.style,zIndex:1976},o.value=M.node.position}),u(M=>{if(r.value=!1,M.intersections&&b(M.intersections,M.node)===null){const D=M.node,J=M.intersections.find(W=>W.type==="task");if(J)try{n.source&&p("swapped-task",{newSource:L.swapBlocks({source:n.source,section:"tasks",key1:ge.afterLastDot(D.id)??"",key2:ge.afterLastDot(J.id)??""}),swappedTasks:[D.id,J.id]})}catch(W){p("message",{variant:"error",title:"cannot swap tasks",message:`${W.message}, ${W.messageOptions}`}),D.position=o.value}else D.position=o.value}else M.node.position=o.value;k(),M.node.style={...M.node.style,zIndex:5},o.value=null});const N=i.computed(()=>{var M;return(M=n.flowGraph)!=null&&M.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(M=>{k(),a.value.filter(D=>D.id!==M.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(M.node.id+".")||M.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(W=>D.id.startsWith(W))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),M.intersections&&!b(M.intersections,M.node)&&M.intersections.filter(D=>D.type==="task").length===1&&(M.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),M.node.style={...M.node.style,outline:"0.5px solid "+Fe("--bs-primary")},M.node.class="rounded-3")});const b=(M,D)=>{const J=M.filter(W=>W.type==="task").map(W=>ge.afterLastDot(W.id));if(J.length>1)return"toomuchtaskerror";try{if(J.length===1&&n.source&&L.isParentChildrenRelation({source:n.source,sections:["tasks","triggers"],key1:ge.afterLastDot(J[0])??"",key2:ge.afterLastDot(D.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return M.filter(W=>W.type==="trigger").length>0?"triggererror":null},T=(M,D,J=!1)=>{const W=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(M)),F=M.replace(ct,"");C.value.add(F),m.value=m.value.concat(W.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([W.cluster.uid]),h.value={...h.value,[W.cluster.uid]:F,[W.start]:F,[W.end]:F};for(let ne of W.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},A=M=>{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(M.type)&&!n.expandedSubflows.includes(M.id)){p("expand-subflow",[...n.expandedSubflows,M.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(M.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=i.ref(!0),V=i.ref(!1),j=()=>V.value=!V.value;function Z(M){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:M,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(M,D)=>(i.openBlock(),i.createBlock(i.unref(te.VueFlow),{id:e.id,"default-marker-color":i.unref(Fe)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":i.withCtx(J=>[i.createVNode(BE,i.mergeProps(J,{onCollapse:D[0]||(D[0]=W=>T(W,!0))}),null,16)]),"node-dot":i.withCtx(J=>[i.createVNode(GE,i.normalizeProps(i.guardReactiveProps(J)),null,16)]),"node-task":i.withCtx(J=>[i.createVNode(Tb,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=W=>p(i.unref(H).EDIT,W)),onDelete:D[2]||(D[2]=W=>p(i.unref(H).DELETE,W)),onExpand:D[3]||(D[3]=W=>A(W)),onOpenLink:D[4]||(D[4]=W=>p(i.unref(H).OPEN_LINK,W)),onShowLogs:D[5]||(D[5]=W=>p(i.unref(H).SHOW_LOGS,W)),onShowDescription:D[6]||(D[6]=W=>p(i.unref(H).SHOW_DESCRIPTION,W)),onShowCondition:D[7]||(D[7]=W=>p(i.unref(H).SHOW_CONDITION,W)),onMouseover:D[8]||(D[8]=W=>y(W)),onMouseleave:D[9]||(D[9]=W=>g()),onAddError:D[10]||(D[10]=W=>p("on-add-flowable-error",W)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":i.withCtx(J=>[i.createVNode(Ob,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=W=>p(i.unref(H).DELETE,W)),onEdit:D[12]||(D[12]=W=>p(i.unref(H).EDIT,W)),onShowDescription:D[13]||(D[13]=W=>p(i.unref(H).SHOW_DESCRIPTION,W))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":i.withCtx(J=>[i.createVNode(Hb,i.mergeProps(J,{onExpand:D[14]||(D[14]=W=>A(W))}),null,16)]),"edge-edge":i.withCtx(J=>[i.createVNode(iy,i.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=W=>p(i.unref(H).ADD_TASK,W)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:i.withCtx(()=>[i.createVNode(i.unref(NE),{"pattern-color":R?i.unref(Fe)("--bs-grey-500"):i.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(i.openBlock(),i.createBlock(i.unref(Dn.Controls),{key:0,"show-interactive":!1},{default:i.withCtx(()=>[e.toggleOrientationButton?(i.openBlock(),i.createBlock(i.unref(Dn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.isHorizontal?Zb:Wb)))]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(Dn.ControlButton),{onClick:j},{default:i.withCtx(()=>[i.createVNode(i0)]),_:1}),V.value?(i.openBlock(),i.createElementBlock("ul",J0,[i.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),i.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),ek=K(Q0,[["__scopeId","data-v-ecaa6943"]]),tk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nk=["aria-hidden","aria-label"],rk=["fill","width","height"],ik={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},ok={key:0};function ak(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ik,[n.title?(i.openBlock(),i.createElementBlock("title",ok,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,rk))],16,nk)}const sk=K(tk,[["render",ak]]),lk={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uk=["aria-hidden","aria-label"],ck=["fill","width","height"],dk={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"},fk={key:0};function hk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",dk,[n.title?(i.openBlock(),i.createElementBlock("title",fk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ck))],16,uk)}const mk=K(lk,[["render",hk]]),pk={key:0,class:"language"},gk=["innerHTML"],vk=i.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:i.shallowRef(mk),Check:i.shallowRef(sk)},n=e,r=i.ref(!1),o=i.ref(),a=i.shallowRef(t.ContentCopy.value),s=i.ref(),l=i.ref(),u=i.ref(n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function c(){r.value=!0,o.value&&i.nextTick(()=>{s.value&&l.value&&Fh.createPopper(s.value,l.value,{placement:"left"})})}function d(){clearTimeout(o.value),navigator.clipboard.writeText(n.code.trimEnd()),a.value=t.Check.value,o.value=setTimeout(()=>{a.value=t.ContentCopy.value,o.value=void 0},2e3)}return(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"code-block",onMouseover:c,onMouseleave:h[0]||(h[0]=m=>r.value=!1)},[f.language&&!r.value?(i.openBlock(),i.createElementBlock("div",pk,i.toDisplayString(f.language),1)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{onClick:d}))],512),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[i.createTextVNode(" Copied! "),i.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",{innerHTML:u.value},null,8,gk)],32))}}),md=K(vk,[["__scopeId","data-v-43f26c29"]]),_k={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ek=["aria-hidden","aria-label"],yk=["fill","width","height"],bk={d:"M10,17L15,12L10,7V17Z"},kk={key:0};function Ck(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bk,[n.title?(i.openBlock(),i.createElementBlock("title",kk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,yk))],16,Ek)}const Nk=K(_k,[["render",Ck]]),wk={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sk=["aria-hidden","aria-label"],Lk=["fill","width","height"],Tk={d:"M7,10L12,15L17,10H7Z"},Ik={key:0};function Ok(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Tk,[n.title?(i.openBlock(),i.createElementBlock("title",Ik,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Lk))],16,Sk)}const Ak=K(wk,[["render",Ok]]),Rk=["id"],Dk=["data-target","aria-controls"],Pk={class:"d-flex gap-2 align-items-center"},Bk={key:0,class:"d-flex flex-grow-1"},Vk=["id"],xk=i.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 n=e,r=i.ref(!n.initiallyExpanded),o=on.useRoute(),a=on.useRouter(),s=i.computed(()=>`#${n.href}-body`),l=()=>{r.value=!r.value,a.replace({hash:r.value?"":s.value})},u=t;return i.watch(()=>o.hash,c=>{c===s.value&&(r.value=!1,u("expand"))},{immediate:!0}),i.watch(()=>n.initiallyExpanded,c=>{c&&(r.value=!c)},{immediate:!0}),(c,d)=>(i.openBlock(),i.createElementBlock("div",{id:c.href,class:i.normalizeClass(["d-flex flex-column",{"gap-2":!r.value}])},[i.createElementVNode("button",{type:"button",class:i.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:r.value}]),"data-toggle":"collapse","data-target":s.value,"aria-expanded":"false","aria-controls":c.href+"-body",onClick:l},[i.createElementVNode("span",Pk,[c.arrow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?Nk:Ak),{key:0,class:"arrow"})):i.createCommentVNode("",!0),i.createTextVNode(i.toDisplayString(c.clickableText)+" ",1),i.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(i.openBlock(),i.createElementBlock("span",Bk,[i.renderSlot(c.$slots,"buttonRight",{collapsed:r.value},void 0,!0)])):i.createCommentVNode("",!0)],10,Dk),c.$slots.content?(i.openBlock(),i.createElementBlock("div",{key:0,id:c.href+"-body",class:i.normalizeClass(["collapsible-body",{collapsed:r.value}])},[i.createElementVNode("div",null,[i.renderSlot(c.$slots,"content",{},void 0,!0)])],10,Vk)):i.createCommentVNode("",!0)],10,Rk))}}),hn=K(xk,[["__scopeId","data-v-7358cd91"]]);function Qt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function lh(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function Mk(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function $k(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function uh(e){const t={},n=Qt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Qt).filter(r=>r!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Qt(e.additionalProperties):e.items&&(t.subType=Qt(e.items)),t}const qk={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fk=["aria-hidden","aria-label"],Uk=["fill","width","height"],Hk={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Gk={key:0};function zk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Hk,[n.title?(i.openBlock(),i.createElementBlock("title",Gk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Uk))],16,Fk)}const jk=K(qk,[["render",zk]]),Wk={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kk=["aria-hidden","aria-label"],Yk=["fill","width","height"],Xk={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"},Zk={key:0};function Jk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Xk,[n.title?(i.openBlock(),i.createElementBlock("title",Zk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Yk))],16,Kk)}const ch=K(Wk,[["render",Jk]]),Qk={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eC=["aria-hidden","aria-label"],tC=["fill","width","height"],nC={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"},rC={key:0};function iC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon file-document-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",nC,[n.title?(i.openBlock(),i.createElementBlock("title",rC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,tC))],16,eC)}const oC=K(Qk,[["render",iC]]),aC={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sC=["aria-hidden","aria-label"],lC=["fill","width","height"],uC={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},cC={key:0};function dC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",uC,[n.title?(i.openBlock(),i.createElementBlock("title",cC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,lC))],16,sC)}const dh=K(aC,[["render",dC]]),fC={class:"me-3"},hC={class:"d-flex flex-column"},mC=i.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=i.computed(()=>{switch(t.type){case"success":return oC;case"info":return la;case"warning":return dh;case"danger":return sa;default:return la}});return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass("doc-alert alert alert-"+r.type),role:"alert"},[i.createElementVNode("div",fC,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),i.createElementVNode("div",hC,[i.renderSlot(r.$slots,"default",{},void 0,!0)])],2))}}),pC=K(mC,[["__scopeId","data-v-f7fd8bc1"]]),gC={class:"property-detail"},vC={key:0},_C=["href"],EC={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},yC={class:"ref-type"},bC={key:1,class:"type-box rounded fs-7 px-2 py-1"},kC={key:1},CC={class:"border rounded px-2 py-1"},NC={key:2},wC={class:"border rounded px-2 py-1"},SC={key:3},LC={class:"border rounded px-2 py-1"},TC={key:4},IC={class:"border rounded px-2 py-1"},OC={key:5},AC={class:"border rounded px-2 py-1"},RC={key:6},DC={class:"border rounded px-2 py-1"},PC={key:7},BC={class:"border rounded px-2 py-1"},VC={key:8},xC={class:"border rounded px-2 py-1"},MC={key:9},$C={class:"border rounded px-2 py-1"},qC={key:10},FC={class:"border rounded px-2 py-1"},UC={key:11},HC={class:"border rounded px-2 py-1"},GC={key:12},zC={class:"border rounded px-2 py-1"},jC={key:13},WC={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},KC={key:14},YC={class:"property-description markdown"},XC={key:2},ZC=i.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=i.ref(uh(t.property).subType),r=i.ref(Mk(t.property)),o=a=>a.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(a,s)=>(i.openBlock(),i.createElementBlock("div",gC,[n.value?(i.openBlock(),i.createElementBlock("div",vC,[s[1]||(s[1]=i.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("button",EC,[i.createElementVNode("span",yC,i.toDisplayString(i.unref(lh)(n.value)),1),i.createVNode(ch)])],8,_C)):(i.openBlock(),i.createElementBlock("span",bC,i.toDisplayString(n.value),1))])):i.createCommentVNode("",!0),a.property.default!==void 0?(i.openBlock(),i.createElementBlock("div",kC,[s[2]||(s[2]=i.createElementVNode("span",null," Default ",-1)),i.createElementVNode("code",CC,i.toDisplayString(a.property.default),1)])):i.createCommentVNode("",!0),a.property.pattern!==void 0?(i.openBlock(),i.createElementBlock("div",NC,[s[3]||(s[3]=i.createElementVNode("span",null," Validation RegExp ",-1)),i.createElementVNode("code",wC,i.toDisplayString(a.property.pattern),1)])):i.createCommentVNode("",!0),a.property.unit!==void 0&&a.property.unit.trim().length>0?(i.openBlock(),i.createElementBlock("div",SC,[s[4]||(s[4]=i.createElementVNode("span",null," Unit ",-1)),i.createElementVNode("code",LC,i.toDisplayString(a.property.unit),1)])):i.createCommentVNode("",!0),a.property.minLength!==void 0?(i.openBlock(),i.createElementBlock("div",TC,[s[5]||(s[5]=i.createElementVNode("span",null," Min length ",-1)),i.createElementVNode("code",IC,i.toDisplayString(a.property.minLength),1)])):i.createCommentVNode("",!0),a.property.maxLength!==void 0?(i.openBlock(),i.createElementBlock("div",OC,[s[6]||(s[6]=i.createElementVNode("span",null," Max length ",-1)),i.createElementVNode("code",AC,i.toDisplayString(a.property.maxLength),1)])):i.createCommentVNode("",!0),a.property.minItems!==void 0?(i.openBlock(),i.createElementBlock("div",RC,[s[7]||(s[7]=i.createElementVNode("span",null," Min items ",-1)),i.createElementVNode("code",DC,i.toDisplayString(a.property.minItems),1)])):i.createCommentVNode("",!0),a.property.maxItems!==void 0?(i.openBlock(),i.createElementBlock("div",PC,[s[8]||(s[8]=i.createElementVNode("span",null," Max items ",-1)),i.createElementVNode("code",BC,i.toDisplayString(a.property.maxItems),1)])):i.createCommentVNode("",!0),a.property.minimum!==void 0?(i.openBlock(),i.createElementBlock("div",VC,[s[9]||(s[9]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",xC," >= "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMinimum!==void 0?(i.openBlock(),i.createElementBlock("div",MC,[s[10]||(s[10]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",$C," > "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.maximum!==void 0?(i.openBlock(),i.createElementBlock("div",qC,[s[11]||(s[11]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",FC," <= "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMaximum!==void 0?(i.openBlock(),i.createElementBlock("div",UC,[s[12]||(s[12]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",HC," < "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.format!==void 0?(i.openBlock(),i.createElementBlock("div",GC,[s[13]||(s[13]=i.createElementVNode("span",null," Format ",-1)),i.createElementVNode("code",zC,i.toDisplayString(a.property.format),1)])):i.createCommentVNode("",!0),r.value!==void 0?(i.openBlock(),i.createElementBlock("div",jC,[s[14]||(s[14]=i.createElementVNode("span",null," Possible Values ",-1)),i.createElementVNode("div",WC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(l,u)=>(i.openBlock(),i.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},i.toDisplayString(l),1))),128))])])):i.createCommentVNode("",!0),a.property.title!==void 0||a.property.description!==void 0?(i.openBlock(),i.createElementBlock("div",KC,[i.createElementVNode("div",YC,[a.property.title!==void 0?i.renderSlot(a.$slots,"markdown",{key:0,content:o(a.property.title)},void 0,!0):i.createCommentVNode("",!0),a.property.description!==void 0?i.renderSlot(a.$slots,"markdown",{key:1,content:o(a.property.description)},void 0,!0):i.createCommentVNode("",!0),a.property.$internalStorageURI?(i.openBlock(),i.createElementBlock("div",XC,[i.createVNode(pC,{type:"info"},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}}),JC=K(ZC,[["__scopeId","data-v-79715a4e"]]),QC={name:"ChevronUpIcon",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"],nN={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},rN={key:0};function iN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",nN,[n.title?(i.openBlock(),i.createElementBlock("title",rN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,tN))],16,eN)}const oN=K(QC,[["render",iN]]),aN={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sN=["aria-hidden","aria-label"],lN=["fill","width","height"],uN={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"},cN={key:0};function dN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",uN,[n.title?(i.openBlock(),i.createElementBlock("title",cN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,lN))],16,sN)}const fN=K(aN,[["render",dN]]),hN={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mN=["aria-hidden","aria-label"],pN=["fill","width","height"],gN={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"},vN={key:0};function _N(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",gN,[n.title?(i.openBlock(),i.createElementBlock("title",vN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,pN))],16,mN)}const EN=K(hN,[["render",_N]]),yN={class:"border overflow-hidden"},bN={class:"d-flex flex-grow-1 align-items-center justify-content-between"},kN={class:"d-flex gap-2"},CN={class:"d-flex gap-2"},NN=["href"],wN={class:"ref-type"},SN={key:1,class:"type-box rounded fs-7 px-2 py-1"},LN=i.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 n=t,r=i.ref(!1);i.watch(r,s=>{s&&n("expand")});const o=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 a(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=$k(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)=>(i.openBlock(),i.createBlock(hn,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>n("expand")),"initially-expanded":s.initiallyExpanded||r.value},i.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:i.withCtx(()=>[i.createElementVNode("div",yN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a(s.properties),(u,c)=>(i.openBlock(),i.createBlock(hn,{class:"property",key:c,arrow:!1,"clickable-text":c,href:s.href+"_"+c,onExpand:l[1]||(l[1]=d=>r.value=!0)},{additionalButtonText:i.withCtx(()=>[u.$required?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:i.withCtx(()=>l[3]||(l[3]=[i.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):i.createCommentVNode("",!0)]),buttonRight:i.withCtx(({collapsed:d})=>[i.createElementVNode("span",bN,[i.createElementVNode("span",kN,[s.showDynamic&&!o(u)?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:i.withCtx(()=>[i.createVNode(fN,{class:"text-info"})]),_:1})):i.createCommentVNode("",!0),u.$beta?(i.openBlock(),i.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:i.withCtx(()=>[i.createVNode(EN,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0),u.$deprecated?(i.openBlock(),i.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:i.withCtx(()=>[i.createVNode(dh,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("span",CN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(uh)(u).types,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[f.startsWith("#")?(i.openBlock(),i.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]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("span",wN,i.toDisplayString(i.unref(lh)(f)),1),i.createVNode(ch)],8,NN)):(i.openBlock(),i.createElementBlock("span",SN,i.toDisplayString(f),1))],64))),128)),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d?jk:oN),{class:"arrow"}))])])]),content:i.withCtx(()=>[i.createVNode(JC,{property:u},{markdown:i.withCtx(({content:d})=>[i.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"]))}}),en=K(LN,[["__scopeId","data-v-5d9dd807"]]),TN={class:"d-flex flex-column gap-6"},IN={key:0,class:"alert alert-info",role:"alert"},ON={key:1,class:"plugin-title markdown"},AN={key:2,class:"markdown"},RN={class:"d-flex flex-column gap-4"},DN={class:"d-flex flex-column gap-3"},PN={class:"markdown"},BN={key:0,class:"w-100 align-self-center"},VN={class:"markdown"},xN={class:"markdown"},MN={class:"markdown"},$N={class:"d-flex flex-column gap-7 ps-3"},qN={class:"markdown"},FN=i.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,n;const r=e,o=i.ref(!1),a=i.ref(new Set),s=i.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!r.schema.definitions){a.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in r.schema.definitions){o.value=!0,s.value+=1,a.value.clear(),a.value.add(k),await i.nextTick();let b=0;const T=30,A=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(A))};requestAnimationFrame(A)}else a.value.clear()};i.watch([()=>r.schema,()=>r.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&r.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=r.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
|
|
30
30
|
type: "${r.pluginType}"
|
|
31
|
-
`.concat(g.code)},c=i.ref(null),d=i.computed(()=>{var g;return(g=r.schema.properties)==null?void 0:g.$examples}),f=i.computed(()=>{var g,k;return Object.fromEntries((k=(g=r.schema.properties)==null?void 0:g.$metrics)==null?void 0:k.map(N=>[N.name,{...N,name:void 0}]))}),{githubLight:h,githubDark:m,yaml:C,python:E,javascript:_,createJavaScriptRegexEngine:p,createHighlighterCore:v}=([t,n]=i.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,n(),t);c.value=([t,n]=i.withAsyncContext(()=>v({themes:[r.darkMode?m:h],langs:[C,E,_],engine:p()})),t=await t,n(),t);const y="github-"+(r.darkMode?"dark":"light");return i.onMounted(()=>{l(),window.addEventListener("hashchange",l)}),i.onUnmounted(()=>{var g;window.removeEventListener("hashchange",l),(g=c.value)==null||g.dispose()}),(g,k)=>{var N,b,T,A,R,F;return i.openBlock(),i.createElementBlock("div",TN,[i.createElementVNode("div",null,[(N=g.schema.properties)!=null&&N.$beta?(i.openBlock(),i.createElementBlock("div",IN,k[0]||(k[0]=[i.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)]))):i.createCommentVNode("",!0),(b=g.schema.properties)!=null&&b.title?(i.openBlock(),i.createElementBlock("div",ON,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(T=g.schema.properties)!=null&&T.description?(i.openBlock(),i.createElementBlock("div",AN,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(md,{highlighter:c.value,language:"yaml",theme:y,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[d.value?(i.openBlock(),i.createBlock(hn,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:i.withCtx(()=>[i.createElementVNode("div",RN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(V,j)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.pluginType+"-"+j},[i.createElementVNode("div",DN,[i.createElementVNode("div",PN,[V.title?i.renderSlot(g.$slots,"markdown",{key:0,content:V.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):i.createCommentVNode("",!0)]),V.code?(i.openBlock(),i.createBlock(md,{key:0,highlighter:c.value,language:V.lang??"yaml",theme:y,code:u(V)},null,8,["highlighter","language","code"])):i.createCommentVNode("",!0)]),j<d.value.length-1?(i.openBlock(),i.createElementBlock("hr",BN)):i.createCommentVNode("",!0)],64))),128))])]),_:3})):i.createCommentVNode("",!0),(A=g.schema.properties)!=null&&A.properties?(i.openBlock(),i.createBlock(en,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",VN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):i.createCommentVNode("",!0),(R=g.schema.outputs)!=null&&R.properties&&Object.keys(g.schema.outputs.properties).length>0?(i.openBlock(),i.createBlock(en,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",xN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),(F=g.schema.properties)!=null&&F.$metrics?(i.openBlock(),i.createBlock(en,{key:3,class:"plugin-section",properties:f.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",MN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(i.openBlock(),i.createBlock(hn,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":o.value,key:`definitions-${g.pluginType}-${s.value}`},{content:i.withCtx(()=>[i.createElementVNode("div",$N,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(g.schema.definitions),([V,j])=>(i.openBlock(),i.createBlock(en,{properties:j.properties,"section-name":j.title??V.split("_")[0],href:V,"show-dynamic":!1,"initially-expanded":a.value.has(V),key:g.pluginType+"-"+V,class:"plugin-section nested-button-py-2",onExpand:Z=>{o.value=!0,a.value.add(V)}},{markdown:i.withCtx(({content:Z})=>[i.createElementVNode("div",qN,[i.renderSlot(g.$slots,"markdown",{content:Z},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):i.createCommentVNode("",!0)]))])}}}),UN=K(FN,[["__scopeId","data-v-d07027c2"]]),HN={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},GN=["aria-hidden","aria-label"],zN=["fill","width","height"],jN={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},WN={key:0};function KN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",jN,[n.title?(i.openBlock(),i.createElementBlock("title",WN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,zN))],16,GN)}const YN=K(HN,[["render",KN]]),XN=["href"],ZN=["src","alt"],JN=i.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=on.useRoute(),r=i.computed(()=>t.href===void 0?`${n}/${_t(t.text)}`:t.href);return(o,a)=>(i.openBlock(),i.createElementBlock("a",{href:r.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[i.createElementVNode("img",{src:o.iconB64Svg,alt:`${o.text} icon`},null,8,ZN),i.createTextVNode(i.toDisplayString(o.text)+" ",1),i.createVNode(YN,{class:"ms-auto"})],8,XN))}}),pd=K(JN,[["__scopeId","data-v-b787c0f3"]]),QN={class:"d-flex flex-column gap-4"},ew={key:1,class:"d-flex flex-column"},tw=["id"],nw={class:"d-flex flex-column"},rw=i.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=i.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:_t(At(f))===t.subGroup)),r=i.computed(()=>{var f,h;return((f=n.value)==null?void 0:f.longDescription)??((h=n.value)==null?void 0:h.description)}),o=i.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),a=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=on.useRoute(),l=f=>`${s}/${_t(f)}`,u=f=>`${s}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>tf(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const d=i.computed(()=>c(n.value));return(f,h)=>(i.openBlock(),i.createElementBlock("div",QN,[r.value!==void 0?i.renderSlot(f.$slots,"markdown",{key:0,content:r.value.replaceAll(/ *:(?![ /])/g,": ")}):i.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(i.openBlock(),i.createElementBlock("div",ew,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(pd,{id:`group-${i.unref(_t)(i.unref(At)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[m.subGroup]??f.icons[m.group]),text:i.unref(At)(m),href:l(i.unref(At)(m)),key:i.unref(At)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(d.value,(m,C)=>(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[i.createElementVNode("h4",{id:`section-${i.unref(_t)(C)}`,class:"text-capitalize"},i.toDisplayString(C),9,tw),i.createElementVNode("div",nw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,E=>(i.openBlock(),i.createBlock(pd,{id:i.unref(_t)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[n.value.subGroup??n.value.group]??f.icons[n.value.group]),text:a(E),href:u(E),key:E,class:"text-capitalize",onClick:_=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),iw=/"(?:_|\\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*:/,ow=/"(?: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*:/,aw=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function sw(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){lw(e);return}return t}function lw(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function uw(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.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(!aw.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(iw.test(e)||ow.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,sw)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const cw=/\d/,dw=["-","_","/","."];function fw(e=""){if(!cw.test(e))return e!==e.toLowerCase()}function fh(e,t){const n=dw,r=[];if(!e||typeof e!="string")return r;let o="",a,s;for(const l of e){const u=n.includes(l);if(u===!0){r.push(o),o="",a=void 0;continue}const c=fw(l);if(s===!1){if(a===!1&&c===!0){r.push(o),o=l,a=c;continue}if(a===!0&&c===!1&&o.length>1){const d=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=d+l,a=c;continue}}o+=l,a=c,s=u}return r.push(o),r}function hw(e){return e?e[0].toUpperCase()+e.slice(1):""}function hh(e,t){return e?(Array.isArray(e)?e:fh(e)).map(n=>hw(n)).join(""):""}function mw(e,t){return e?(Array.isArray(e)?e:fh(e)).map(n=>n.toLowerCase()).join("-"):""}class zt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zt.prototype.normal={};zt.prototype.property={};zt.prototype.space=void 0;function mh(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new zt(n,r,t)}function Ca(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let pw=0;const Q=wt(),ke=wt(),ph=wt(),x=wt(),de=wt(),Dt=wt(),qe=wt();function wt(){return 2**++pw}const Na=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ke,commaOrSpaceSeparated:qe,commaSeparated:Dt,number:x,overloadedBoolean:ph,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),aa=Object.keys(Na);class Qa extends Ve{constructor(t,n,r,o){let a=-1;if(super(t,n),gd(this,"space",o),typeof r=="number")for(;++a<aa.length;){const s=aa[a];gd(this,aa[a],(r&Na[s])===Na[s])}}}Qa.prototype.defined=!0;function gd(e,t,n){n&&(e[t]=n)}function xt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Qa(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ca(r)]=r,n[Ca(a.attribute)]=r}return new zt(t,n,e.space)}const gh=xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:de,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:x,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:de,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:ke,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function vh(e,t){return t in e?e[t]:t}function _h(e,t){return vh(e,t.toLowerCase())}const gw=xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:de,autoFocus:Q,autoPlay:Q,blocking:de,capture:null,charSet:null,checked:Q,cite:null,className:de,cols:x,colSpan:null,content:null,contentEditable:ke,controls:Q,controlsList:de,coords:x|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:ph,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:de,height:x,hidden:Q,high:x,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:de,itemRef:de,itemScope:Q,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,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:Q,optimum:x,pattern:null,ping:de,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:de,required:Q,reversed:Q,rows:x,rowSpan:x,sandbox:de,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ke,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:_h}),vw=xt({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:qe,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:de,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:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vh}),Eh=xt({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()}}),yh=xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_h}),bh=xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_w=/[A-Z]/g,vd=/-[a-z]/g,Ew=/^data[-\w.:]+$/i;function yw(e,t){const n=Ca(t);let r=t,o=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ew.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(vd,kw);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!vd.test(a)){let s=a.replace(_w,bw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Qa}return new o(r,t)}function bw(e){return"-"+e.toLowerCase()}function kw(e){return e.charAt(1).toUpperCase()}const Cw=mh([gh,gw,Eh,yh,bh],"html");mh([gh,vw,Eh,yh,bh],"svg");const es=["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"],Nw=["p","h1","h2","h3","h4","h5","h6","li"];function mn(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function ts(e){return mn(e,"text")||mn(e,Symbol.for("v-txt"))}function kh(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 pn(e){if(!e)return"";if(Array.isArray(e))return e.map(pn).join("");if(ts(e))return e.value||e.children||"";const t=kh(e);return Array.isArray(t)?t.map(pn).filter(Boolean).join(""):""}function Ch(e,t=[]){if(Array.isArray(e))return e.flatMap(r=>Ch(r,t));let n=e;return t.some(r=>r==="*"||mn(e,r))&&(n=kh(e)||e,!Array.isArray(n)&&Nw.some(r=>mn(e,r))&&(n=[n])),n}function Nh(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>Nh(Ch(n,[t[0]]),t.slice(1))).filter(n=>!(ts(n)&&pn(n).trim()==="")):e}function wh(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?Nh(e,t).reduce((n,r)=>(ts(r)?typeof n[n.length-1]=="string"?n[n.length-1]+=r.children:n.push(r.children):n.push(r),n),[]):e}function ww(e,t){return t.reduce((n,r)=>{const o=Sw(e,r);return o!==void 0&&(n[r]=o),n},{})}function Sw(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}const wa="default",Sh=/^@|^v-on:/,Lh=/^:|^v-bind:/,Lw=/^v-model/,Tw=["select","textarea","input"],Iw=["math","svg"],Ow=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}`])),Aw=i.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,E;const t=(d=(c=i.getCurrentInstance())==null?void 0:c.appContext)==null?void 0:d.app,n=t==null?void 0:t.$nuxt,r=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:o}=((f=n==null?void 0:n.$config)==null?void 0:f.public)||{},a={...(h=o==null?void 0:o.components)!=null&&h.prose&&e.prose!==!1?Ow:{},...((m=o==null?void 0:o.components)==null?void 0:m.map)||{},...i.toRaw(((E=(C=e.data)==null?void 0:C.mdc)==null?void 0:E.components)||{}),...e.components},s=i.computed(()=>{var p;const _=(((p=e.body)==null?void 0:p.children)||[]).map(v=>v.tag||v.type).filter(v=>!es.includes(v));return Array.from(new Set(_)).sort().join(".")}),l=i.reactive({...e.data});i.watch(()=>e.data,_=>{Object.assign(l,_)}),await Uw(e.body,{tags:a});function u(_,p){const v=_.split(".").length-1;return _.split(".").reduce((y,g,k)=>k==v&&y?(y[g]=p,y[g]):typeof y=="object"?y[g]:void 0,l)}return{tags:a,contentKey:s,route:r,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:n,body:r,data:o,contentKey:a,route:s,unwrap:l,runtimeData:u,updateRuntimeData:c}=e;if(!r)return null;const d={...o,tags:t,$route:s,runtimeData:u,updateRuntimeData:c},f=n!==!1?Sa(n||((m=d.component)==null?void 0:m.name)||d.component||"div"):void 0;return f?i.h(f,{...(C=d.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:a},{default:h}):h==null?void 0:h();function h(){const E=Th(r,i.h,{documentMeta:d,parentScope:d,resolveComponent:Sa});return E!=null&&E.default?l?wh(E.default(),typeof l=="string"?l.split(" "):["*"]):E.default():null}}});function Rw(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n;if(e.type==="text")return t(i.Text,e.value);if(e.type==="comment")return t(i.Comment,null,e.value);const s=e.tag,l=Oh(e,r.tags);if(e.tag==="binding")return Dw(e,t,r,o);const u=Ih(l)?f=>f:a;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
31
|
+
`.concat(g.code)},c=i.ref(null),d=i.computed(()=>{var g;return(g=r.schema.properties)==null?void 0:g.$examples}),f=i.computed(()=>{var g,k;return Object.fromEntries((k=(g=r.schema.properties)==null?void 0:g.$metrics)==null?void 0:k.map(N=>[N.name,{...N,name:void 0}]))}),{githubLight:h,githubDark:m,yaml:C,python:E,javascript:_,createJavaScriptRegexEngine:p,createHighlighterCore:v}=([t,n]=i.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,n(),t);c.value=([t,n]=i.withAsyncContext(()=>v({themes:[r.darkMode?m:h],langs:[C,E,_],engine:p()})),t=await t,n(),t);const y="github-"+(r.darkMode?"dark":"light");return i.onMounted(()=>{l(),window.addEventListener("hashchange",l)}),i.onUnmounted(()=>{var g;window.removeEventListener("hashchange",l),(g=c.value)==null||g.dispose()}),(g,k)=>{var N,b,T,A,R,U;return i.openBlock(),i.createElementBlock("div",TN,[i.createElementVNode("div",null,[(N=g.schema.properties)!=null&&N.$beta?(i.openBlock(),i.createElementBlock("div",IN,k[0]||(k[0]=[i.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)]))):i.createCommentVNode("",!0),(b=g.schema.properties)!=null&&b.title?(i.openBlock(),i.createElementBlock("div",ON,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(T=g.schema.properties)!=null&&T.description?(i.openBlock(),i.createElementBlock("div",AN,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(md,{highlighter:c.value,language:"yaml",theme:y,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[d.value?(i.openBlock(),i.createBlock(hn,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:i.withCtx(()=>[i.createElementVNode("div",RN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(V,j)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.pluginType+"-"+j},[i.createElementVNode("div",DN,[i.createElementVNode("div",PN,[V.title?i.renderSlot(g.$slots,"markdown",{key:0,content:V.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):i.createCommentVNode("",!0)]),V.code?(i.openBlock(),i.createBlock(md,{key:0,highlighter:c.value,language:V.lang??"yaml",theme:y,code:u(V)},null,8,["highlighter","language","code"])):i.createCommentVNode("",!0)]),j<d.value.length-1?(i.openBlock(),i.createElementBlock("hr",BN)):i.createCommentVNode("",!0)],64))),128))])]),_:3})):i.createCommentVNode("",!0),(A=g.schema.properties)!=null&&A.properties?(i.openBlock(),i.createBlock(en,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",VN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):i.createCommentVNode("",!0),(R=g.schema.outputs)!=null&&R.properties&&Object.keys(g.schema.outputs.properties).length>0?(i.openBlock(),i.createBlock(en,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",xN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),(U=g.schema.properties)!=null&&U.$metrics?(i.openBlock(),i.createBlock(en,{key:3,class:"plugin-section",properties:f.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",MN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(i.openBlock(),i.createBlock(hn,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":o.value,key:`definitions-${g.pluginType}-${s.value}`},{content:i.withCtx(()=>[i.createElementVNode("div",$N,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(g.schema.definitions),([V,j])=>(i.openBlock(),i.createBlock(en,{properties:j.properties,"section-name":j.title??V.split("_")[0],href:V,"show-dynamic":!1,"initially-expanded":a.value.has(V),key:g.pluginType+"-"+V,class:"plugin-section nested-button-py-2",onExpand:Z=>{o.value=!0,a.value.add(V)}},{markdown:i.withCtx(({content:Z})=>[i.createElementVNode("div",qN,[i.renderSlot(g.$slots,"markdown",{content:Z},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):i.createCommentVNode("",!0)]))])}}}),UN=K(FN,[["__scopeId","data-v-d07027c2"]]),HN={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},GN=["aria-hidden","aria-label"],zN=["fill","width","height"],jN={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},WN={key:0};function KN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",jN,[n.title?(i.openBlock(),i.createElementBlock("title",WN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,zN))],16,GN)}const YN=K(HN,[["render",KN]]),XN=["href"],ZN=["src","alt"],JN=i.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=on.useRoute(),r=i.computed(()=>t.href===void 0?`${n}/${_t(t.text)}`:t.href);return(o,a)=>(i.openBlock(),i.createElementBlock("a",{href:r.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[i.createElementVNode("img",{src:o.iconB64Svg,alt:`${o.text} icon`},null,8,ZN),i.createTextVNode(i.toDisplayString(o.text)+" ",1),i.createVNode(YN,{class:"ms-auto"})],8,XN))}}),pd=K(JN,[["__scopeId","data-v-b787c0f3"]]),QN={class:"d-flex flex-column gap-4"},ew={key:1,class:"d-flex flex-column"},tw=["id"],nw={class:"d-flex flex-column"},rw=i.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=i.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:_t(At(f))===t.subGroup)),r=i.computed(()=>{var f,h;return((f=n.value)==null?void 0:f.longDescription)??((h=n.value)==null?void 0:h.description)}),o=i.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),a=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=on.useRoute(),l=f=>`${s}/${_t(f)}`,u=f=>`${s}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>tf(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const d=i.computed(()=>c(n.value));return(f,h)=>(i.openBlock(),i.createElementBlock("div",QN,[r.value!==void 0?i.renderSlot(f.$slots,"markdown",{key:0,content:r.value.replaceAll(/ *:(?![ /])/g,": ")}):i.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(i.openBlock(),i.createElementBlock("div",ew,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(pd,{id:`group-${i.unref(_t)(i.unref(At)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[m.subGroup]??f.icons[m.group]),text:i.unref(At)(m),href:l(i.unref(At)(m)),key:i.unref(At)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(d.value,(m,C)=>(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[i.createElementVNode("h4",{id:`section-${i.unref(_t)(C)}`,class:"text-capitalize"},i.toDisplayString(C),9,tw),i.createElementVNode("div",nw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,E=>(i.openBlock(),i.createBlock(pd,{id:i.unref(_t)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[n.value.subGroup??n.value.group]??f.icons[n.value.group]),text:a(E),href:u(E),key:E,class:"text-capitalize",onClick:_=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),iw=/"(?:_|\\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*:/,ow=/"(?: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*:/,aw=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function sw(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){lw(e);return}return t}function lw(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function uw(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.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(!aw.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(iw.test(e)||ow.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,sw)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const cw=/\d/,dw=["-","_","/","."];function fw(e=""){if(!cw.test(e))return e!==e.toLowerCase()}function fh(e,t){const n=dw,r=[];if(!e||typeof e!="string")return r;let o="",a,s;for(const l of e){const u=n.includes(l);if(u===!0){r.push(o),o="",a=void 0;continue}const c=fw(l);if(s===!1){if(a===!1&&c===!0){r.push(o),o=l,a=c;continue}if(a===!0&&c===!1&&o.length>1){const d=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=d+l,a=c;continue}}o+=l,a=c,s=u}return r.push(o),r}function hw(e){return e?e[0].toUpperCase()+e.slice(1):""}function hh(e,t){return e?(Array.isArray(e)?e:fh(e)).map(n=>hw(n)).join(""):""}function mw(e,t){return e?(Array.isArray(e)?e:fh(e)).map(n=>n.toLowerCase()).join("-"):""}class zt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zt.prototype.normal={};zt.prototype.property={};zt.prototype.space=void 0;function mh(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new zt(n,r,t)}function Ca(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let pw=0;const Q=wt(),ke=wt(),ph=wt(),x=wt(),de=wt(),Dt=wt(),qe=wt();function wt(){return 2**++pw}const Na=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ke,commaOrSpaceSeparated:qe,commaSeparated:Dt,number:x,overloadedBoolean:ph,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),aa=Object.keys(Na);class Qa extends Ve{constructor(t,n,r,o){let a=-1;if(super(t,n),gd(this,"space",o),typeof r=="number")for(;++a<aa.length;){const s=aa[a];gd(this,aa[a],(r&Na[s])===Na[s])}}}Qa.prototype.defined=!0;function gd(e,t,n){n&&(e[t]=n)}function xt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Qa(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ca(r)]=r,n[Ca(a.attribute)]=r}return new zt(t,n,e.space)}const gh=xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:de,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:x,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:de,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:ke,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function vh(e,t){return t in e?e[t]:t}function _h(e,t){return vh(e,t.toLowerCase())}const gw=xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:de,autoFocus:Q,autoPlay:Q,blocking:de,capture:null,charSet:null,checked:Q,cite:null,className:de,cols:x,colSpan:null,content:null,contentEditable:ke,controls:Q,controlsList:de,coords:x|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:ph,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:de,height:x,hidden:Q,high:x,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:de,itemRef:de,itemScope:Q,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,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:Q,optimum:x,pattern:null,ping:de,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:de,required:Q,reversed:Q,rows:x,rowSpan:x,sandbox:de,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ke,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:_h}),vw=xt({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:qe,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:de,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:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vh}),Eh=xt({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()}}),yh=xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_h}),bh=xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_w=/[A-Z]/g,vd=/-[a-z]/g,Ew=/^data[-\w.:]+$/i;function yw(e,t){const n=Ca(t);let r=t,o=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ew.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(vd,kw);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!vd.test(a)){let s=a.replace(_w,bw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Qa}return new o(r,t)}function bw(e){return"-"+e.toLowerCase()}function kw(e){return e.charAt(1).toUpperCase()}const Cw=mh([gh,gw,Eh,yh,bh],"html");mh([gh,vw,Eh,yh,bh],"svg");const es=["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"],Nw=["p","h1","h2","h3","h4","h5","h6","li"];function mn(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function ts(e){return mn(e,"text")||mn(e,Symbol.for("v-txt"))}function kh(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 pn(e){if(!e)return"";if(Array.isArray(e))return e.map(pn).join("");if(ts(e))return e.value||e.children||"";const t=kh(e);return Array.isArray(t)?t.map(pn).filter(Boolean).join(""):""}function Ch(e,t=[]){if(Array.isArray(e))return e.flatMap(r=>Ch(r,t));let n=e;return t.some(r=>r==="*"||mn(e,r))&&(n=kh(e)||e,!Array.isArray(n)&&Nw.some(r=>mn(e,r))&&(n=[n])),n}function Nh(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>Nh(Ch(n,[t[0]]),t.slice(1))).filter(n=>!(ts(n)&&pn(n).trim()==="")):e}function wh(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?Nh(e,t).reduce((n,r)=>(ts(r)?typeof n[n.length-1]=="string"?n[n.length-1]+=r.children:n.push(r.children):n.push(r),n),[]):e}function ww(e,t){return t.reduce((n,r)=>{const o=Sw(e,r);return o!==void 0&&(n[r]=o),n},{})}function Sw(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}const wa="default",Sh=/^@|^v-on:/,Lh=/^:|^v-bind:/,Lw=/^v-model/,Tw=["select","textarea","input"],Iw=["math","svg"],Ow=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}`])),Aw=i.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,E;const t=(d=(c=i.getCurrentInstance())==null?void 0:c.appContext)==null?void 0:d.app,n=t==null?void 0:t.$nuxt,r=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:o}=((f=n==null?void 0:n.$config)==null?void 0:f.public)||{},a={...(h=o==null?void 0:o.components)!=null&&h.prose&&e.prose!==!1?Ow:{},...((m=o==null?void 0:o.components)==null?void 0:m.map)||{},...i.toRaw(((E=(C=e.data)==null?void 0:C.mdc)==null?void 0:E.components)||{}),...e.components},s=i.computed(()=>{var p;const _=(((p=e.body)==null?void 0:p.children)||[]).map(v=>v.tag||v.type).filter(v=>!es.includes(v));return Array.from(new Set(_)).sort().join(".")}),l=i.reactive({...e.data});i.watch(()=>e.data,_=>{Object.assign(l,_)}),await Uw(e.body,{tags:a});function u(_,p){const v=_.split(".").length-1;return _.split(".").reduce((y,g,k)=>k==v&&y?(y[g]=p,y[g]):typeof y=="object"?y[g]:void 0,l)}return{tags:a,contentKey:s,route:r,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:n,body:r,data:o,contentKey:a,route:s,unwrap:l,runtimeData:u,updateRuntimeData:c}=e;if(!r)return null;const d={...o,tags:t,$route:s,runtimeData:u,updateRuntimeData:c},f=n!==!1?Sa(n||((m=d.component)==null?void 0:m.name)||d.component||"div"):void 0;return f?i.h(f,{...(C=d.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:a},{default:h}):h==null?void 0:h();function h(){const E=Th(r,i.h,{documentMeta:d,parentScope:d,resolveComponent:Sa});return E!=null&&E.default?l?wh(E.default(),typeof l=="string"?l.split(" "):["*"]):E.default():null}}});function Rw(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n;if(e.type==="text")return t(i.Text,e.value);if(e.type==="comment")return t(i.Comment,null,e.value);const s=e.tag,l=Oh(e,r.tags);if(e.tag==="binding")return Dw(e,t,r,o);const u=Ih(l)?f=>f:a;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
32
32
|
`+pn(e)+`
|
|
33
33
|
<\/script>`);const c=u(l);typeof c=="object"&&(c.tag=s);const d=Pw(e,r);return t(c,d,Th(e,t,{documentMeta:r,parentScope:{...o,...d},resolveComponent:u}))}function Th(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n,l=(e.children||[]).reduce((c,d)=>{if(!qw(d))return c[wa].children.push(d),c;const f=$w(d);return c[f]=c[f]||{props:{},children:[]},d.type==="element"&&(c[f].props=d.props,c[f].children.push(...d.children||[])),c},{[wa]:{props:{},children:[]}});return Object.entries(l).reduce((c,[d,{props:f,children:h}])=>(h.length&&(c[d]=(m={})=>{const C=ww(m,Object.keys(f||{}));let E=h.map(_=>Rw(_,t,{documentMeta:r,parentScope:{...o,...C},resolveComponent:a}));return f!=null&&f.unwrap&&(E=wh(E,f.unwrap)),Fw(E)}),c),{})}function Dw(e,t,n,r={}){var c,d;const o={...n.runtimeData,...r,$document:n,$doc:n},a=/\.|\[(\d+)\]/,l=((c=e.props)==null?void 0:c.value.trim().split(a).filter(Boolean)).reduce((f,h)=>{if(f&&h in f)return typeof f[h]=="function"?f[h]():f[h]},o),u=(d=e.props)==null?void 0:d.defaultValue;return t(i.Text,l??u??"")}function Pw(e,t){const{tag:n="",props:r={}}=e;return Object.keys(r).reduce(function(o,a){if(a==="__ignoreMap")return o;const s=r[a];if(Lw.test(a))return Bw(a,s,o,t,{native:Tw.includes(n)});if(a==="v-bind")return Vw(a,s,o,t);if(Sh.test(a))return xw(a,s,o,t);if(Lh.test(a))return Mw(a,s,o,t);const{attribute:l}=yw(Cw,a);return Array.isArray(s)&&s.every(u=>typeof u=="string")?(o[l]=s.join(" "),o):(o[l]=s,o)},{})}function Bw(e,t,n,r,{native:o}){var u;const a=((u=e.match(/^v-model:([^=]+)/))==null?void 0:u[1])||"modelValue",s=o?"value":a,l=o?"onInput":`onUpdate:${a}`;return n[s]=Rn(t,r.runtimeData),n[l]=c=>{var d;r.updateRuntimeData(t,o?(d=c.target)==null?void 0:d.value:c)},n}function Vw(e,t,n,r){const o=Rn(t,r);return n=Object.assign(n,o),n}function xw(e,t,n,r){return e=e.replace(Sh,""),n.on=n.on||{},n.on[e]=()=>Rn(t,r),n}function Mw(e,t,n,r){return e=e.replace(Lh,""),n[e]=Rn(t,r),n}const Sa=e=>{if(typeof e=="string"){if(es.includes(e))return e;const t=i.resolveComponent(hh(e),!1);return!e||(t==null?void 0:t.name)==="AsyncComponentWrapper"||typeof t=="string"?t:"setup"in t?i.defineAsyncComponent(()=>new Promise(n=>n(t))):t}return e};function Rn(e,t){const n=e.split(".").reduce((r,o)=>typeof r=="object"?r[o]:void 0,t);return typeof n>"u"?uw(e):n}function $w(e){let t="";for(const n of Object.keys(e.props||{}))if(!(!n.startsWith("#")&&!n.startsWith("v-slot:"))){t=n.split(/[:#]/,2)[1];break}return t||wa}function qw(e){return e.tag==="template"}function Ih(e){return Iw.includes(e)}function Fw(e){const t=[];for(const n of e){const r=t[t.length-1];n.type===i.Text&&(r==null?void 0:r.type)===i.Text?r.children=r.children+n.children:t.push(n)}return t}async function Uw(e,t){if(!e)return;const n=Array.from(new Set(r(e,t)));await Promise.all(n.map(async o=>{if(o!=null&&o.render||o!=null&&o.ssrRender||o!=null&&o.__ssrInlineRender)return;const a=Sa(o);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function r(o,a){const s=o.tag;if(o.type==="text"||s==="binding"||o.type==="comment")return[];const l=Oh(o,a.tags);if(Ih(l))return[];const u=[];o.type!=="root"&&!es.includes(l)&&u.push(l);for(const c of o.children||[])u.push(...r(c,a));return u}}function Oh(e,t){var r;const n=e.tag;return!n||typeof((r=e.props)==null?void 0:r.__ignoreMap)<"u"?n:t[n]||t[hh(n)]||t[mw(e.tag)]||n}const Hw=i.defineComponent({__name:"MDCRenderer",setup(e){return(t,n)=>(i.openBlock(),i.createBlock(i.Suspense,null,{default:i.withCtx(()=>[i.createVNode(Aw,i.mergeProps(t.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=ct;exports.DependenciesNode=vE;exports.EVENTS=H;exports.MDCRenderer=Hw;exports.NODE_SIZES=et;exports.PluginIndex=rw;exports.SECTIONS=nt;exports.STATES=re;exports.SchemaToHtml=UN;exports.State=Ce;exports.TaskIcon=Ga;exports.Topology=ek;exports.Utils=ge;exports.VueFlowUtils=tn;exports.YamlUtils=Yh;exports.cssVariable=Fe;exports.editorViewTypes=Gh;exports.executeFlowBehaviours=jh;exports.getMDCParser=Bv;exports.isEntryAPluginElementPredicate=tf;exports.logDisplayTypes=Hh;exports.slugify=_t;exports.stateDisplayValues=Wh;exports.stateGlobalChartTypes=Uh;exports.storageKeys=zh;exports.subGroupName=At;
|
|
34
34
|
//# sourceMappingURL=kestra-index.cjs.js.map
|