@kestra-io/ui-libs 0.0.220 → 0.0.222

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.
@@ -21,10 +21,10 @@ ${c}`:u)}else throw s},onCacheKey:s=>o1(t,n,s)}}function Gv(e){if(z(e))return e;
21
21
  */const Wv="11.1.3";function jv(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(gt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(gt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(gt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(gt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Te={UNEXPECTED_RETURN_TYPE:lv,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 Bt(e,...t){return It(e,null,process.env.NODE_ENV!=="production"?{messages:Kv,args:t}:void 0)}const Kv={[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"},io=rt("__translateVNode"),ao=rt("__datetimeParts"),oo=rt("__numberParts"),so=rt("__enableEmitter"),lo=rt("__disableEmitter"),Yv=rt("__setPluralRules"),sf=rt("__injectWithOption"),uo=rt("__dispose"),lt={FALLBACK_TO_ROOT:bv,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},Xv={[lt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[lt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[lt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[lt.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
22
22
  About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[lt.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Oo(e,...t){return mn(Xv[e],...t)}function Vt(e){if(!oe(e)||We(e))return e;for(const t in e)if(ze(e,t))if(!t.includes("."))oe(e[t])&&Vt(e[t]);else{const n=t.split("."),i=n.length-1;let a=e,o=!1;for(let s=0;s<i;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in a||(a[n[s]]=ue()),!oe(a[n[s]])){process.env.NODE_ENV!=="production"&&ut(Oo(lt.IGNORE_OBJ_FLATTEN,{key:n[s]})),o=!0;break}a=a[n[s]]}if(o||(We(a)?Wd.includes(n[i])||delete e[t]:(a[n[i]]=e[t],delete e[t])),!We(a)){const s=a[n[i]];oe(s)&&Vt(s)}}return e}function lf(e,t){const{messages:n,__i18n:i,messageResolver:a,flatJson:o}=t,s=ae(n)?n:Ne(i)?ue():{[e]:ue()};if(Ne(i)&&i.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(s[u]=s[u]||ue(),Xt(c,s[u])):Xt(c,s)}else z(l)&&Xt(JSON.parse(l),s)}),a==null&&o)for(const l in s)ze(s,l)&&Vt(s[l]);return s}function uf(e){return e.type}function Zv(e,t,n){let i=oe(t.messages)?t.messages:ue();"__i18nGlobal"in n&&(i=lf(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const a=Object.keys(i);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,i[o])});{if(oe(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(oe(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Vc(e){return r.createVNode(r.Text,null,e,0)}const Mc="__INTLIFY_META__",xc=()=>[],Jv=()=>!1;let $c=0;function qc(e){return(t,n,i,a)=>e(n,i,r.getCurrentInstance()||void 0,a)}const Qv=()=>{const e=r.getCurrentInstance();let t=null;return e&&(t=uf(e)[Mc])?{[Mc]:t}:null};function e_(e={}){const{__root:t,__injectWithOption:n}=e,i=t===void 0,a=e.flatJson,o=tt?r.ref:r.shallowRef;let s=ye(e.inheritLocale)?e.inheritLocale:!0;const l=o(t&&s?t.locale.value:z(e.locale)?e.locale:en),u=o(t&&s?t.fallbackLocale.value:z(e.fallbackLocale)||Ne(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=o(lf(l.value,e)),d=o(ae(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=o(ae(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:ye(e.missingWarn)||Qt(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ye(e.fallbackWarn)||Qt(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)?qc(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:ae(e.modifiers)?e.modifiers:{};let N=e.pluralRules||t&&t.pluralRules,b;b=(()=>{i&&Sc(null);const A={version:Wv,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"}};A.datetimeFormats=d.value,A.numberFormats=f.value,A.__datetimeFormatters=ae(b)?b.__datetimeFormatters:void 0,A.__numberFormatters=ae(b)?b.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=ae(b)?b.__v_emitter:void 0);const $=Ov(A);return i&&Sc($),$})(),Ot(b,l.value,u.value);function O(){return[l.value,u.value,c.value,d.value,f.value]}const R=r.computed({get:()=>l.value,set:A=>{b.locale=A,l.value=A}}),U=r.computed({get:()=>u.value,set:A=>{b.fallbackLocale=A,u.value=A,Ot(b,l.value,A)}}),V=r.computed(()=>c.value),W=r.computed(()=>d.value),Z=r.computed(()=>f.value);function x(){return fe(v)?v:null}function D(A){v=A,b.postTranslation=A}function J(){return _}function j(A){A!==null&&(p=qc(A)),_=A,b.missing=p}function F(A,$){return A!=="translate"||!$.resolvedMessage}const ne=(A,$,se,Ee,ft,$t)=>{O();let Ct;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(b.fallbackContext=t?Av():void 0),Ct=A(b)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(b.fallbackContext=void 0)}if(se!=="translate exists"&&Se(Ct)&&Ct===gn||se==="translate exists"&&!Ct){const[ht,Jf]=$();if(process.env.NODE_ENV!=="production"&&t&&z(ht)&&F(se,Jf)&&(C&&(vn(m,ht)||Qd(h,ht))&&ut(Oo(lt.FALLBACK_TO_ROOT,{key:ht,type:se})),process.env.NODE_ENV!=="production")){const{__v_emitter:qo}=b;qo&&C&&qo.emit("fallback",{type:se,key:ht,to:"global",groupId:`${se}:${ht}`})}return t&&C?Ee(t):ft(ht)}else{if($t(Ct))return Ct;throw Bt(Te.UNEXPECTED_RETURN_TYPE)}};function me(...A){return ne($=>Reflect.apply(Bc,null,[$,...A]),()=>ro(...A),"translate",$=>Reflect.apply($.t,$,[...A]),$=>$,$=>z($))}function Re(...A){const[$,se,Ee]=A;if(Ee&&!oe(Ee))throw Bt(Te.INVALID_ARGUMENT);return me($,se,Le({resolvedMessage:!0},Ee||{}))}function Me(...A){return ne($=>Reflect.apply(Ic,null,[$,...A]),()=>to(...A),"datetime format",$=>Reflect.apply($.d,$,[...A]),()=>tn,$=>z($))}function I(...A){return ne($=>Reflect.apply(Oc,null,[$,...A]),()=>no(...A),"number format",$=>Reflect.apply($.n,$,[...A]),()=>tn,$=>z($))}function P(A){return A.map($=>z($)||Se($)||ye($)?Vc(String($)):$)}const G={normalize:P,interpolate:A=>A,type:"vnode"};function ee(...A){return ne($=>{let se;const Ee=$;try{Ee.processor=G,se=Reflect.apply(Bc,null,[Ee,...A])}finally{Ee.processor=null}return se},()=>ro(...A),"translate",$=>$[io](...A),$=>[Vc($)],$=>Ne($))}function ce(...A){return ne($=>Reflect.apply(Oc,null,[$,...A]),()=>no(...A),"number format",$=>$[oo](...A),xc,$=>z($)||Ne($))}function pe(...A){return ne($=>Reflect.apply(Ic,null,[$,...A]),()=>to(...A),"datetime format",$=>$[ao](...A),xc,$=>z($)||Ne($))}function Ie(A){N=A,b.pluralRules=N}function bt(A,$){return ne(()=>{if(!A)return!1;const se=z($)?$:l.value,Ee=xe(se),ft=b.messageResolver(Ee,A);return We(ft)||He(ft)||z(ft)},()=>[A],"translate exists",se=>Reflect.apply(se.te,se,[A,$]),Jv,se=>ye(se))}function we(A){let $=null;const se=jd(b,u.value,l.value);for(let Ee=0;Ee<se.length;Ee++){const ft=c.value[se[Ee]]||{},$t=b.messageResolver(ft,A);if($t!=null){$=$t;break}}return $}function be(A){const $=we(A);return $??(t?t.tm(A)||{}:{})}function xe(A){return c.value[A]||{}}function it(A,$){if(a){const se={[A]:$};for(const Ee in se)ze(se,Ee)&&Vt(se[Ee]);$=se[A]}c.value[A]=$,b.messages=c.value}function kt(A,$){c.value[A]=c.value[A]||{};const se={[A]:$};if(a)for(const Ee in se)ze(se,Ee)&&Vt(se[Ee]);$=se[A],Xt($,c.value[A]),b.messages=c.value}function w(A){return d.value[A]||{}}function S(A,$){d.value[A]=$,b.datetimeFormats=d.value,Ac(b,A,$)}function B(A,$){d.value[A]=Le(d.value[A]||{},$),b.datetimeFormats=d.value,Ac(b,A,$)}function Y(A){return f.value[A]||{}}function ve(A,$){f.value[A]=$,b.numberFormats=f.value,Rc(b,A,$)}function _e(A,$){f.value[A]=Le(f.value[A]||{},$),b.numberFormats=f.value,Rc(b,A,$)}$c++,t&&tt&&(r.watch(t.locale,A=>{s&&(l.value=A,b.locale=A,Ot(b,l.value,u.value))}),r.watch(t.fallbackLocale,A=>{s&&(u.value=A,b.fallbackLocale=A,Ot(b,l.value,u.value))}));const ie={id:$c,locale:R,fallbackLocale:U,get inheritLocale(){return s},set inheritLocale(A){s=A,A&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,Ot(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 i},get missingWarn(){return h},set missingWarn(A){h=A,b.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(A){m=A,b.fallbackWarn=m},get fallbackRoot(){return C},set fallbackRoot(A){C=A},get fallbackFormat(){return E},set fallbackFormat(A){E=A,b.fallbackFormat=E},get warnHtmlMessage(){return y},set warnHtmlMessage(A){y=A,b.warnHtmlMessage=A},get escapeParameter(){return g},set escapeParameter(A){g=A,b.escapeParameter=A},t:me,getLocaleMessage:xe,setLocaleMessage:it,mergeLocaleMessage:kt,getPostTranslationHandler:x,setPostTranslationHandler:D,getMissingHandler:J,setMissingHandler:j,[Yv]:Ie};return ie.datetimeFormats=W,ie.numberFormats=Z,ie.rt=Re,ie.te=bt,ie.tm=be,ie.d=Me,ie.n=I,ie.getDateTimeFormat=w,ie.setDateTimeFormat=S,ie.mergeDateTimeFormat=B,ie.getNumberFormat=Y,ie.setNumberFormat=ve,ie.mergeNumberFormat=_e,ie[sf]=n,ie[io]=ee,ie[ao]=pe,ie[oo]=ce,process.env.NODE_ENV!=="production"&&(ie[so]=A=>{b.__v_emitter=A},ie[lo]=()=>{b.__v_emitter=void 0}),ie}function Fc(e,t){}const Ro={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function t_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,a)=>[...i,...a.type===r.Fragment?a.children:[a]],[]):t.reduce((n,i)=>{const a=e[i];return a&&(n[i]=a()),n},ue())}function cf(){return r.Fragment}Le({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Se(e)||!isNaN(e)}},Ro);function n_(e){return Ne(e)&&!z(e[0])}function df(e,t,n,i){const{slots:a,attrs:o}=t;return()=>{const s={part:!0};let l=ue();e.locale&&(s.locale=e.locale),z(e.format)?s.key=e.format:oe(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=i(e.value,s,l);let c=[s.key];Ne(u)?c=u.map((h,m)=>{const C=a[h.type],E=C?C({[h.type]:h.value,index:m,parts:u}):[h.value];return n_(E)&&(E[0].key=`${h.type}-${m}`),E}):z(u)&&(c=[u]);const d=Le(ue(),o),f=z(e.tag)||oe(e.tag)?e.tag:cf();return r.h(f,d,c)}}Le({value:{type:Number,required:!0},format:{type:[String,Object]}},Ro);const r_=rt("global-vue-i18n");function _n(e={}){const t=r.getCurrentInstance();if(t==null)throw Bt(Te.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Bt(Te.NOT_INSTALLED);const n=i_(t),i=o_(n),a=uf(t),o=a_(e,a);if(o==="global")return Zv(i,e,a),i;if(o==="parent"){let u=s_(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&ut(Oo(lt.NOT_FOUND_PARENT_SCOPE)),u=i),u}const s=n;let l=s.__getInstance(t);if(l==null){const u=Le({},e);"__i18n"in a&&(u.__i18n=a.__i18n),i&&(u.__root=i),l=e_(u),s.__composerExtend&&(l[uo]=s.__composerExtend(l)),u_(s,t,l),s.__setInstance(t,l)}return l}function i_(e){const t=r.inject(e.isCE?r_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Bt(e.isCE?Te.NOT_INSTALLED_WITH_PROVIDE:Te.UNEXPECTED_ERROR);return t}function a_(e,t){return pn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function o_(e){return e.mode==="composition"?e.global:e.global.__composer}function s_(e,t,n=!1){let i=null;const a=t.root;let o=l_(t,n);for(;o!=null;){const s=e;if(e.mode==="composition")i=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(i=l.__composer,n&&i&&!i[sf]&&(i=null))}if(i!=null||a===o)break;o=o.parent}return i}function l_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function u_(e,t,n){let i=null;r.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,i=p1();const a=n;a[so]&&a[so](i),i.on("*",Fc)}},t),r.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(i&&i.off("*",Fc),a[lo]&&a[lo](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=a[uo];o&&(o(),delete a[uo])},t)}Le({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ro);jv();wv(rv);Sv(yv);Lv(jd);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=gt();e.__INTLIFY__=!0,iv(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const le=r.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let t;typeof document<"u"&&(t=import("bootstrap"));const n=e,i=r.ref(),a=r.ref(),o=r.ref();return r.onMounted(async()=>{r.nextTick(async()=>{const s=await t;typeof document<"u"&&a.value&&o.value&&(i.value=new s.Tooltip(a.value,{trigger:"hover",html:!0,placement:n.placement,title:o.value.innerHTML,customClass:"tooltip-custom"}))})}),r.onBeforeUnmount(async()=>{var s;(s=i.value)==null||s.dispose()}),(s,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",r.mergeProps({ref_key:"$tooltip",ref:a},s.$attrs),[r.renderSlot(s.$slots,"default")],16),r.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:o},[r.renderSlot(s.$slots,"content",{},()=>[r.createTextVNode(r.toDisplayString(s.title),1)])],512)],64))}}),c_=r.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const t=e,n=r.computed(()=>`data:image/svg+xml;base64,${o.value}`),i=r.computed(()=>({flowable:s.value?s.value.flowable:!1})),a=r.computed(()=>({backgroundImage:`url(${n.value})`})),o=r.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=r.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)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([i.value,"wrapper"])},[u.onlyIcon?(r.openBlock(),r.createElementBlock("div",{key:1,class:"icon",style:r.normalizeStyle(a.value)},null,4)):(r.openBlock(),r.createBlock(le,{key:0,title:u.cls},{default:r.withCtx(()=>[r.createElementVNode("div",{class:"icon",style:r.normalizeStyle(a.value)},null,4)]),_:1},8,["title"]))],2))}}),Do=K(c_,[["__scopeId","data-v-23f8d853"]]),d_={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},f_=["aria-hidden","aria-label"],h_=["fill","width","height"],m_={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"},p_={key:0};function g_(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",m_,[n.title?(r.openBlock(),r.createElementBlock("title",p_,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,h_))],16,f_)}const Po=K(d_,[["render",g_]]),v_={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},__=["aria-hidden","aria-label"],E_=["fill","width","height"],y_={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"},b_={key:0};function k_(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",y_,[n.title?(r.openBlock(),r.createElementBlock("title",b_,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,E_))],16,__)}const C_=K(v_,[["render",k_]]),N_={class:"dependency-text d-flex flex-column flex-grow-1"},w_={class:"dependency-flow-text text-truncate"},S_={class:"dependency-namespace-text text-truncate"},L_={class:"text-white top-button-div"},T_=r.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:i}=_n(),a=r.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
23
23
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
24
- </svg>`));return(o,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createElementVNode("div",{class:r.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[r.createVNode(Do,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),r.createElementVNode("div",N_,[r.createElementVNode("div",w_,[r.createVNode(le,{title:e.data.flowId},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),r.createElementVNode("div",S_,[r.createVNode(le,{title:e.data.namespace},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),r.createElementVNode("div",L_,[r.renderSlot(o.$slots,"badge-button-before",{},void 0,!0),e.data.link?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>o.$emit(r.unref(H).OPEN_LINK,e.data))},[r.createVNode(le,{title:r.unref(i)("open")},{default:r.withCtx(()=>[r.createVNode(Po,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),e.data.expandEnabled?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[1]||(s[1]=l=>n(r.unref(H).EXPAND_DEPENDENCIES,e.data))},[r.createVNode(le,{title:r.unref(i)("expand")},{default:r.withCtx(()=>[r.createVNode(C_,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),r.renderSlot(o.$slots,"badge-button-after",{},void 0,!0)])],2),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),I_=K(T_,[["__scopeId","data-v-2271d5b0"]]);var Ye=(e=>(e.Lines="lines",e.Dots="dots",e))(Ye||{});const ff=function({dimensions:e,size:t,color:n}){return r.h("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},hf=function({radius:e,color:t}){return r.h("circle",{cx:e,cy:e,r:e,fill:t})};Ye.Lines+"",Ye.Dots+"";const A_={[Ye.Dots]:"#81818a",[Ye.Lines]:"#eee"},O_=["id","x","y","width","height","patternTransform"],R_={key:2,height:"100",width:"100"},D_=["fill"],P_=["x","y","fill"],B_={name:"Background",compatConfig:{MODE:3}},V_=r.defineComponent({...B_,props:{id:{},variant:{default:()=>Ye.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(),i=r.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===Ye.Dots?[c/e.offset,c/e.offset]:[u[0]/e.offset,u[1]/e.offset];return{scaledGap:u,offset:d,size:c}}),a=r.toRef(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),o=r.toRef(()=>e.color||e.patternColor||A_[e.variant||Ye.Dots]);return(s,l)=>(r.openBlock(),r.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:r.normalizeStyle({height:`${s.height>100?100:s.height}%`,width:`${s.width>100?100:s.width}%`})},[r.renderSlot(s.$slots,"pattern-container",{id:a.value},()=>[r.createElementVNode("pattern",{id:a.value,x:r.unref(n).x%i.value.scaledGap[0],y:r.unref(n).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[r.renderSlot(s.$slots,"pattern",{},()=>[s.variant===r.unref(Ye).Lines?(r.openBlock(),r.createBlock(r.unref(ff),{key:0,size:s.lineWidth,color:o.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===r.unref(Ye).Dots?(r.openBlock(),r.createBlock(r.unref(hf),{key:1,color:o.value,radius:i.value.size/s.offset},null,8,["color","radius"])):r.createCommentVNode("",!0),s.bgColor?(r.openBlock(),r.createElementBlock("svg",R_,[r.createElementVNode("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,D_)])):r.createCommentVNode("",!0)])],8,O_)]),r.createElementVNode("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,P_),r.renderSlot(s.$slots,"default",{id:a.value})],4))}}),M_={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},x_=["aria-hidden","aria-label"],$_=["fill","width","height"],q_={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},F_={key:0};function U_(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",q_,[n.title?(r.openBlock(),r.createElementBlock("title",F_,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,$_))],16,x_)}const H_=K(M_,[["render",U_]]),G_={class:"top-button-div text-white d-flex"},z_={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)}}},W_=Object.assign(z_,{__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,i=t,a=()=>{i(H.COLLAPSE,n.id)};return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.classes)},[r.createElementVNode("span",{class:r.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},r.toDisplayString(o.clusterName),3),r.createElementVNode("div",G_,[e.data.collapsable?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>a())},[r.createVNode(le,{title:o.$t("collapse")},{default:r.withCtx(()=>[r.createVNode(H_,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0)])],2))}}),j_=K(W_,[["__scopeId","data-v-0c251e77"]]),K_={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y_=["aria-hidden","aria-label"],X_=["fill","width","height"],Z_={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"},J_={key:0};function Q_(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Z_,[n.title?(r.openBlock(),r.createElementBlock("title",J_,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,X_))],16,Y_)}const mf=K(K_,[["render",Q_]]),eE={name:"Dot",components:{Handle:te.Handle,CircleIcon:mf},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}}}},tE=Object.assign(eE,{setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(t.classes)},[r.createVNode(r.unref(te.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),r.createElementVNode("div",{class:r.normalizeClass(["dot",t.classes])},[r.createVNode(mf,{class:r.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),r.createVNode(r.unref(te.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),nE=K(tE,[["__scopeId","data-v-666f472b"]]),rE={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},iE=["aria-hidden","aria-label"],aE=["fill","width","height"],oE={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},sE={key:0};function lE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",oE,[n.title?(r.openBlock(),r.createElementBlock("title",sE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,aE))],16,iE)}const uE=K(rE,[["render",lE]]),cE={class:"add-task-div rounded d-flex justify-content-center align-items-center"},dE=r.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",cE,[t.addTask?(r.openBlock(),r.createBlock(uE,{key:0,alt:"add task icon"})):r.createCommentVNode("",!0)]))}}),fE=K(dE,[["__scopeId","data-v-4afc4738"]]),hE={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:fE,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:r.computed(()=>te.getSmoothStepPath(e))}},inheritAttrs:!1},mE=["id","d","marker-end"];function pE(e,t,n,i,a,o){const s=r.resolveComponent("AddTaskButton"),l=r.resolveComponent("tooltip"),u=r.resolveComponent("EdgeLabelRenderer");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("path",{id:n.id,class:r.normalizeClass(o.classes),style:r.normalizeStyle(n.data.haveDashArray?{strokeDasharray:"2"}:{}),d:i.path[0],"marker-end":n.markerEnd},null,14,mE),r.createVNode(u,{style:{"z-index":"10"}},{default:r.withCtx(()=>[r.createElementVNode("div",{style:r.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${i.path[1]}px,${i.path[2]}px)`})},[r.createVNode(l,{title:o.title},{default:r.withCtx(()=>[n.data.haveAdd?(r.openBlock(),r.createBlock(s,{key:0,"add-task":!0,onClick:t[0]||(t[0]=c=>e.$emit(o.EVENTS.ADD_TASK,n.data.haveAdd)),class:r.normalizeClass({"text-danger":n.data.color})},null,8,["class"])):r.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})],64)}const gE=K(hE,[["render",pE],["__scopeId","data-v-a3e1d999"]]),vE={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_E=["aria-hidden","aria-label"],EE=["fill","width","height"],yE={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"},bE={key:0};function kE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",yE,[n.title?(r.openBlock(),r.createElementBlock("title",bE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,EE))],16,_E)}const pf=K(vE,[["render",kE]]),CE={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},NE=["aria-hidden","aria-label"],wE=["fill","width","height"],SE={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},LE={key:0};function TE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",SE,[n.title?(r.openBlock(),r.createElementBlock("title",LE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,wE))],16,NE)}const En=K(CE,[["render",TE]]),yn=Symbol("execution-injection-key"),gf=Symbol("subflows-executions-injection-key"),IE={class:"icon rounded"},AE={class:"node-content"},OE={class:"d-flex node-title"},RE={class:"text-truncate task-title"},DE={key:0,class:"d-flex"},PE={class:"text-white top-button-div"},BE={components:{ArrowExpand:En,InformationOutline:pf,OpenInNew:Po,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}},inject:{execution:{from:yn}},computed:{Utils(){return ge},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,i;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((i=(n=(t=this.data.parent)==null?void 0:t.taskNode)==null?void 0:n.task)==null?void 0:i.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}}},VE=Object.assign(BE,{__name:"BasicNode",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...i)=>t.mouseover&&t.mouseover(...i)),onMouseleave:n[4]||(n[4]=(...i)=>t.mouseleave&&t.mouseleave(...i))},[e.state?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):r.createCommentVNode("",!0),r.createElementVNode("div",IE,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.iconComponent||Do),{cls:t.cls,class:r.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),r.createElementVNode("div",AE,[r.createElementVNode("div",OE,[r.createElementVNode("div",RE,[r.createVNode(le,{title:t.hoverTooltip},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(r.openBlock(),r.createElementBlock("span",DE,[r.createVNode(le,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:r.withCtx(()=>[r.createVNode(pf,{onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):r.createCommentVNode("",!0)]),r.renderSlot(t.$slots,"content",{},void 0,!0)]),r.createElementVNode("div",PE,[r.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=i=>t.$emit(r.unref(H).OPEN_LINK,{link:e.data.link}))},[r.createVNode(le,{title:t.$t("open")},{default:r.withCtx(()=>[r.createVNode(Po,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),t.expandable?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=i=>t.$emit(r.unref(H).EXPAND))},[r.createVNode(le,{title:t.$t("expand")},{default:r.withCtx(()=>[r.createVNode(En,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),vf=K(VE,[["__scopeId","data-v-fc87bf62"]]),ME=["innerHTML"],xE=r.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;r.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const n=r.ref(""),i=r.ref();r.onMounted(()=>{l()});const a=r.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),o=r.computed(()=>t.histories[t.histories.length-1]),s=r.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){i.value||(i.value=setInterval(()=>{f(),t.histories&&!Ce.isRunning(o.value.state)&&u()},100))}function u(){i.value&&(clearInterval(i.value),i.value=void 0)}function c(){return d()-a.value}function d(){return!t.histories||Ce.isRunning(o.value.state)?+new Date:new Date(o.value.date.toString()).getTime()}function f(){n.value=s.value.length===0?"&nbsp;":ge.humanDuration(c()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return r.onBeforeUnmount(()=>{u()}),(m,C)=>(r.openBlock(),r.createBlock(le,{key:o.value.date.toString()},{content:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(E,_)=>(r.openBlock(),r.createElementBlock("span",{key:"tt-"+_,class:"ks-duration-tt"},[r.createElementVNode("span",{class:r.normalizeClass(["ks-duration-tt-square",h(E.state)])},null,2),r.createElementVNode("strong",null,r.toDisplayString(E.state)+": ",1),r.createTextVNode(r.toDisplayString(r.unref(ge).dateFilter(E.date.toString(),"iso"))+" ",1),C[0]||(C[0]=r.createElementVNode("br",null,null,-1))]))),128))]),default:r.withCtx(()=>[r.createElementVNode("span",{innerHTML:n.value},null,8,ME)]),_:1}))}}),$E={class:"btn-group content rounded-1 content-children text-truncate"},qE={key:0,class:"taskRunCount"},FE={key:1},UE={key:2},HE=r.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=r.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),i=r.computed(()=>n.value.filter(s=>s.taskId===ge.afterLastDot(t.uid??""))),a=r.computed(()=>{if(!i.value)return null;if(i.value.length===1)return i.value[0].state.current;const s=i.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]}),o=r.computed(()=>{if(!i.value)return;const s=Math.max(...i.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(...i.value.map(u=>Rt.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:Rt(s).subtract(l,"second"),state:"CREATED"},{date:Rt(s),state:a.value}]});return(s,l)=>(r.openBlock(),r.createElementBlock("div",$E,[i.value.length>0?(r.openBlock(),r.createElementBlock("span",qE,r.toDisplayString(i.value.length)+" task runs",1)):r.createCommentVNode("",!0),i.value.length>0?(r.openBlock(),r.createElementBlock("span",FE," | ")):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("span",UE,[r.createVNode(xE,{histories:o.value},null,8,["histories"])])):r.createCommentVNode("",!0)]))}}),_f=K(HE,[["__scopeId","data-v-b7801302"]]),GE={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zE=["aria-hidden","aria-label"],WE=["fill","width","height"],jE={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"},KE={key:0};function YE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",jE,[n.title?(r.openBlock(),r.createElementBlock("title",KE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,WE))],16,zE)}const bn=K(GE,[["render",YE]]),XE={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ZE=["aria-hidden","aria-label"],JE=["fill","width","height"],QE={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},ey={key:0};function ty(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",QE,[n.title?(r.openBlock(),r.createElementBlock("title",ey,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,JE))],16,ZE)}const kn=K(XE,[["render",ty]]),ny={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ry=["aria-hidden","aria-label"],iy=["fill","width","height"],ay={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"},oy={key:0};function sy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",ay,[n.title?(r.openBlock(),r.createElementBlock("title",oy,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,iy))],16,ry)}const Ef=K(ny,[["render",sy]]),ly={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uy=["aria-hidden","aria-label"],cy=["fill","width","height"],dy={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},fy={key:0};function hy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",dy,[n.title?(r.openBlock(),r.createElementBlock("title",fy,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,cy))],16,uy)}const yf=K(ly,[["render",hy]]),my={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},py=["aria-hidden","aria-label"],gy=["fill","width","height"],vy={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"},_y={key:0};function Ey(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",vy,[n.title?(r.openBlock(),r.createElementBlock("title",_y,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,gy))],16,py)}const bf=K(my,[["render",Ey]]),yy={name:"Task",components:{Pencil:bn,Delete:kn,ExecutionInformations:_f,Handle:te.Handle,TextBoxSearch:Ef,AlertOutline:yf,Tooltip:le,SendLock:bf},inheritAttrs:!1,inject:{execution:{from:yn},subflowsExecutions:{from:gf}},computed:{SECTIONS(){return Qe},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(i=>i.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(i=>i.state.current),t=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return e.map(i=>{const a=t.indexOf(i[1]);return t[a]=void 0,[a,i]}).sort().map(i=>i[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,i;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const a=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:a.namespace,id:a.flowId,executionId:(i=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(o=>{var s;return o.taskId===this.data.node.task.id&&((s=o.outputs)==null?void 0:s.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:i.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)}}},by=Object.assign(yy,{setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createVNode(vf,{id:e.id,data:t.dataWithLink,state:t.state,class:r.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=i=>t.forwardEvent(r.unref(H).SHOW_DESCRIPTION,i)),onExpand:n[6]||(n[6]=i=>t.forwardEvent(r.unref(H).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=i=>t.forwardEvent(r.unref(H).OPEN_LINK,i)),onMouseover:n[8]||(n[8]=i=>t.forwardEvent(r.unref(H).MOUSE_OVER,i)),onMouseleave:n[9]||(n[9]=i=>t.forwardEvent(r.unref(H).MOUSE_LEAVE))},{content:r.withCtx(()=>[t.taskExecution?(r.openBlock(),r.createBlock(_f,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):r.createCommentVNode("",!0)]),"badge-button-before":r.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:r.unref(Qe).TASKS}))},[r.createVNode(le,{title:t.$t("show task condition")},{default:r.withCtx(()=>[r.createVNode(bf,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):r.createCommentVNode("",!0),t.taskExecution?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=i=>t.$emit(r.unref(H).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[r.createVNode(le,{title:t.$t("show task logs")},{default:r.withCtx(()=>[r.createVNode(Ef,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(r.openBlock(),r.createElementBlock("span",{key:2,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=i=>t.$emit(r.unref(H).ADD_ERROR,{task:e.data.node.task}))},[r.createVNode(le,{title:t.$t("add error handler")},{default:r.withCtx(()=>[r.createVNode(yf,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(r.openBlock(),r.createElementBlock("span",{key:3,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=i=>t.$emit(r.unref(H).EDIT,{task:e.data.node.task,section:r.unref(Qe).TASKS}))},[r.createVNode(le,{title:t.$t("edit")},{default:r.withCtx(()=>[r.createVNode(bn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(r.openBlock(),r.createElementBlock("span",{key:4,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=i=>t.$emit(r.unref(H).DELETE,{id:t.taskId,section:r.unref(Qe).TASKS}))},[r.createVNode(le,{title:t.$t("delete")},{default:r.withCtx(()=>[r.createVNode(kn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),ky={name:"Task",inheritAttrs:!1,inject:{execution:{from:yn}},computed:{SECTIONS(){return Qe},EVENTS(){return H},color(){return this.data.color??"primary"},formattedData(){var e,t,n,i;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((i=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:i.disabled)}},triggerId(){return ge.afterLastDot(this.id)}},emits:[H.DELETE,H.EDIT,H.SHOW_DESCRIPTION],components:{Delete:kn,Pencil:bn,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)}}},Cy=Object.assign(ky,{setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createVNode(vf,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=i=>t.forwardEvent(r.unref(H).SHOW_DESCRIPTION,i)),onExpand:n[3]||(n[3]=i=>t.forwardEvent(r.unref(H).EXPAND,{id:e.id}))},r.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:r.withCtx(()=>[t.execution?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).EDIT,{task:e.data.node.triggerDeclaration,section:r.unref(Qe).TRIGGERS}))},[r.createVNode(le,{title:t.$t("edit")},{default:r.withCtx(()=>[r.createVNode(bn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=i=>t.$emit(r.unref(H).DELETE,{id:t.triggerId,section:r.unref(Qe).TRIGGERS}))},[r.createVNode(le,{title:t.$t("delete")},{default:r.withCtx(()=>[r.createVNode(kn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ny={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wy=["aria-hidden","aria-label"],Sy=["fill","width","height"],Ly={d:"M11 15H6L13 1V9H18L11 23V15Z"},Ty={key:0};function Iy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Ly,[n.title?(r.openBlock(),r.createElementBlock("title",Ty,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,Sy))],16,wy)}const Ay=K(Ny,[["render",Iy]]),Oy={class:"collapsed-cluster-node d-flex"},Ry={class:"node-text"},Dy={class:"text-white top-button-div"},Py={components:{Tooltip:le,Handle:te.Handle,ArrowExpand:En,LightningBolt:Ay},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}}},By=Object.assign(Py,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createElementVNode("div",Oy,[r.createElementVNode("span",Ry,[e.data.iconComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.data.iconComponent),{key:0,class:r.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(r.unref(ge).afterLastDot(e.id)),1)]),r.createElementVNode("div",Dy,[r.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).EXPAND,{id:e.id}))},[r.createVNode(le,{title:t.$t("expand")},{default:r.withCtx(()=>[r.createVNode(En,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Vy=K(By,[["__scopeId","data-v-89413b39"]]),My={name:"SplitCellsVerticalIcon",emits:["click"]},xy={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $y(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("svg",xy,t[0]||(t[0]=[r.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[r.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),r.createElementVNode("defs",null,[r.createElementVNode("clipPath",{id:"clip0_1111_7266"},[r.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const qy=K(My,[["render",$y],["__scopeId","data-v-084c51e6"]]),Fy={name:"SplitCellsHorizontalIcon",emits:["click"]},Uy={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("svg",Uy,t[0]||(t[0]=[r.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[r.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),r.createElementVNode("defs",null,[r.createElementVNode("clipPath",{id:"clip0_796_3996"},[r.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Gy=K(Fy,[["render",Hy],["__scopeId","data-v-c77c1469"]]),zy={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wy=["aria-hidden","aria-label"],jy=["fill","width","height"],Ky={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Yy={key:0};function Xy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Ky,[n.title?(r.openBlock(),r.createElementBlock("title",Yy,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,jy))],16,Wy)}const Zy=K(zy,[["render",Xy]]);function Jy(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(),i=n.createElement("base"),a=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(a),t&&(i.href=t),a.href=e,a.href}const Qy=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function et(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function nn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function eb(e){const t=nn(e,"border-left-width"),n=nn(e,"border-right-width");return e.clientWidth+t+n}function tb(e){const t=nn(e,"border-top-width"),n=nn(e,"border-bottom-width");return e.clientHeight+t+n}function kf(e,t={}){const n=t.width||eb(e),i=t.height||tb(e);return{width:n,height:i}}function nb(){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 rb(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 rn(e){return new Promise((t,n)=>{const i=new Image;i.decode=()=>t(i),i.onload=()=>t(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function ib(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function ab(e,t,n){const i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${n}`),a.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),a.appendChild(o),o.appendChild(e),ib(a)}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 ob(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function sb(e){return et(e).map(t=>{const n=e.getPropertyValue(t),i=e.getPropertyPriority(t);return`${t}: ${n}${i?" !important":""};`}).join(" ")}function lb(e,t,n){const i=`.${e}:${t}`,a=n.cssText?ob(n):sb(n);return document.createTextNode(`${i}{${a}}`)}function Uc(e,t,n){const i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;const o=Qy();try{t.className=`${t.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(lb(o,n,i)),t.appendChild(s)}function ub(e,t){Uc(e,t,":before"),Uc(e,t,":after")}const Hc="application/font-woff",Gc="image/jpeg",cb={woff:Hc,woff2:Hc,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Gc,jpeg:Gc,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function db(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Bo(e){const t=db(e).toLowerCase();return cb[t]||""}function fb(e){return e.split(/,/)[1]}function co(e){return e.search(/^(data:)/)!==-1}function hb(e,t){return`data:${t};base64,${e}`}async function Cf(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const a=await i.blob();return new Promise((o,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{o(n({res:i,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(a)})}const Ya={};function mb(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function Vo(e,t,n){const i=mb(e,t,n.includeQueryParams);if(Ya[i]!=null)return Ya[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const o=await Cf(e,n.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),fb(l)));a=hb(o,t)}catch(o){a=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;o&&(s=typeof o=="string"?o:o.message),s&&console.warn(s)}return Ya[i]=a,a}async function pb(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):rn(t)}async function gb(e,t){if(e.currentSrc){const o=document.createElement("canvas"),s=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,s==null||s.drawImage(e,0,0,o.width,o.height);const l=o.toDataURL();return rn(l)}const n=e.poster,i=Bo(n),a=await Vo(n,i,t);return rn(a)}async function vb(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Cn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function _b(e,t){return Be(e,HTMLCanvasElement)?pb(e):Be(e,HTMLVideoElement)?gb(e,t):Be(e,HTMLIFrameElement)?vb(e):e.cloneNode(!1)}const Eb=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function yb(e,t,n){var i,a;let o=[];return Eb(e)&&e.assignedNodes?o=et(e.assignedNodes()):Be(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=et(e.contentDocument.body.childNodes):o=et(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),o.length===0||Be(e,HTMLVideoElement)||await o.reduce((s,l)=>s.then(()=>Cn(l,n)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function bb(e,t){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):et(i).forEach(a=>{let o=i.getPropertyValue(a);a==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),Be(e,HTMLIFrameElement)&&a==="display"&&o==="inline"&&(o="block"),a==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(a,o,i.getPropertyPriority(a))})}function kb(e,t){Be(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Be(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Cb(e,t){if(Be(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(a=>e.value===a.getAttribute("value"));i&&i.setAttribute("selected","")}}function Nb(e,t){return Be(t,Element)&&(bb(e,t),ub(e,t),kb(e,t),Cb(e,t)),t}async function wb(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const l=n[o].getAttribute("xlink:href");if(l){const u=e.querySelector(l),c=document.querySelector(l);!u&&c&&!i[l]&&(i[l]=await Cn(c,t,!0))}}const a=Object.values(i);if(a.length){const o="http://www.w3.org/1999/xhtml",s=document.createElementNS(o,"svg");s.setAttribute("xmlns",o),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(o,"defs");s.appendChild(l);for(let u=0;u<a.length;u++)l.appendChild(a[u]);e.appendChild(s)}return e}async function Cn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>_b(i,t)).then(i=>yb(e,i,t)).then(i=>Nb(e,i)).then(i=>wb(i,t))}const Nf=/url\((['"]?)([^'"]+?)\1\)/g,Sb=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Lb=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Tb(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Ib(e){const t=[];return e.replace(Nf,(n,i,a)=>(t.push(a),n)),t.filter(n=>!co(n))}async function Ab(e,t,n,i,a){try{const o=n?Jy(t,n):t,s=Bo(t);let l;return a||(l=await Vo(o,s,i)),e.replace(Tb(t),`$1${l}$3`)}catch{}return e}function Ob(e,{preferredFontFormat:t}){return t?e.replace(Lb,n=>{for(;;){const[i,,a]=Sb.exec(n)||[];if(!a)return"";if(a===t)return`src: ${i};`}}):e}function wf(e){return e.search(Nf)!==-1}async function Sf(e,t,n){if(!wf(e))return e;const i=Ob(e,n);return Ib(i).reduce((o,s)=>o.then(l=>Ab(l,s,t,n)),Promise.resolve(i))}async function zt(e,t,n){var i;const a=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(a){const o=await Sf(a,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function Rb(e,t){await zt("background",e,t)||await zt("background-image",e,t),await zt("mask",e,t)||await zt("mask-image",e,t)}async function Db(e,t){const n=Be(e,HTMLImageElement);if(!(n&&!co(e.src))&&!(Be(e,SVGImageElement)&&!co(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,a=await Vo(i,Bo(i),t);await new Promise((o,s)=>{e.onload=o,e.onerror=s;const l=e;l.decode&&(l.decode=o),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Pb(e,t){const i=et(e.childNodes).map(a=>Lf(a,t));await Promise.all(i).then(()=>e)}async function Lf(e,t){Be(e,Element)&&(await Rb(e,t),await Db(e,t),await Pb(e,t))}function Bb(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 i=t.style;return i!=null&&Object.keys(i).forEach(a=>{n[a]=i[a]}),e}const zc={};async function Wc(e){let t=zc[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},zc[e]=t,t}async function jc(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(i,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),Cf(l,t.fetchRequestInit,({result:u})=>(n=n.replace(s,`url(${u})`),[s,u]))});return Promise.all(o).then(()=>n)}function Kc(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=a.exec(i);if(u===null)break;t.push(u[0])}i=i.replace(a,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(s,"gi");for(;;){let u=o.exec(i);if(u===null){if(u=l.exec(i),u===null)break;o.lastIndex=l.lastIndex}else l.lastIndex=o.lastIndex;t.push(u[0])}return t}async function Vb(e,t){const n=[],i=[];return e.forEach(a=>{if("cssRules"in a)try{et(a.cssRules||[]).forEach((o,s)=>{if(o.type===CSSRule.IMPORT_RULE){let l=s+1;const u=o.href,c=Wc(u).then(d=>jc(d,t)).then(d=>Kc(d).forEach(f=>{try{a.insertRule(f,f.startsWith("@import")?l+=1:a.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())});i.push(c)}})}catch(o){const s=e.find(l=>l.href==null)||document.styleSheets[0];a.href!=null&&i.push(Wc(a.href).then(l=>jc(l,t)).then(l=>Kc(l).forEach(u=>{s.insertRule(u,a.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(a=>{if("cssRules"in a)try{et(a.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${a.href}`,o)}}),n))}function Mb(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>wf(t.style.getPropertyValue("src")))}async function xb(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=et(e.ownerDocument.styleSheets),i=await Vb(n,t);return Mb(i)}async function $b(e,t){const n=await xb(e,t);return(await Promise.all(n.map(a=>{const o=a.parentStyleSheet?a.parentStyleSheet.href:null;return Sf(a.cssText,o,t)}))).join(`
25
- `)}async function qb(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await $b(e,t);if(n){const i=document.createElement("style"),a=document.createTextNode(n);i.appendChild(a),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function Fb(e,t={}){const{width:n,height:i}=kf(e,t),a=await Cn(e,t,!0);return await qb(a,t),await Lf(a,t),Bb(a,t),await ab(a,n,i)}async function Tf(e,t={}){const{width:n,height:i}=kf(e,t),a=await Fb(e,t),o=await rn(a),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||nb(),c=t.canvasWidth||n,d=t.canvasHeight||i;return s.width=c*u,s.height=d*u,t.skipAutoScale||rb(s),s.style.width=`${c}`,s.style.height=`${d}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(o,0,0,s.width,s.height),s}async function Ub(e,t={}){return(await Tf(e,t)).toDataURL()}async function Hb(e,t={}){return(await Tf(e,t)).toDataURL("image/jpeg",t.quality||1)}function Gb(){const e=r.ref(""),t=r.ref("png"),n=r.ref();async function i(l,u={}){let c;const d=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":c=await a(l,u);break;case"png":c=await o(l,u);break;default:c=await o(l,u);break}return u.shouldDownload&&d!==""&&s(d),c}function a(l,u={quality:.95}){return n.value=null,Hb(l,u).then(c=>(e.value=c,t.value="jpeg",c)).catch(c=>{throw c.value=c,new Error(c)})}function o(l,u={quality:.95}){return n.value=null,Ub(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:i,download:s,dataUrl:e,error:n}}const zb={key:1,class:"exporting"},Wb=r.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,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})}},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,i=r.ref(!1),a=r.ref(),{getNodes:o,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:c,setElements:d,vueFlowRef:f}=te.useVueFlow(n.id),h=r.ref({}),m=r.ref([]),C=r.ref(new Set),E=r.ref([]),{capture:_}=Gb();r.provide(yn,r.computed(()=>n.execution)),r.provide(gf,r.computed(()=>n.subflowsExecutions));const p=t;r.onMounted(()=>{v()}),r.watch(()=>n.flowGraph,()=>{v()}),r.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{Kt.cleanGraph(n.id),r.nextTick(()=>{p("loading",!0);const x=C.value;C.value=new Set,m.value=[],h.value={},x.forEach(J=>T(st+J,!1,!1));const D=Kt.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=x=>{i.value||Kt.linkedElements(n.id,x.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=()=>{o.value.filter(x=>x.type==="task"||x.type==="trigger").forEach(x=>{x.style={...x.style,opacity:"1",outline:"none"},x.class=""})};l(x=>{i.value=!0,k(),x.node.style={...x.node.style,zIndex:1976},a.value=x.node.position}),u(x=>{if(i.value=!1,x.intersections&&b(x.intersections,x.node)===null){const D=x.node,J=x.intersections.find(j=>j.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(j){p("message",{variant:"error",title:"cannot swap tasks",message:`${j.message}, ${j.messageOptions}`}),D.position=a.value}else D.position=a.value}else x.node.position=a.value;k(),x.node.style={...x.node.style,zIndex:5},a.value=null});const N=r.computed(()=>{var x;return(x=n.flowGraph)!=null&&x.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(x=>{k(),o.value.filter(D=>D.id!==x.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(x.node.id+".")||x.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(j=>D.id.startsWith(j))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),x.intersections&&!b(x.intersections,x.node)&&x.intersections.filter(D=>D.type==="task").length===1&&(x.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),x.node.style={...x.node.style,outline:"0.5px solid "+Fe("--bs-primary")},x.node.class="rounded-3")});const b=(x,D)=>{const J=x.filter(j=>j.type==="task").map(j=>ge.afterLastDot(j.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 x.filter(j=>j.type==="trigger").length>0?"triggererror":null},T=(x,D,J=!1)=>{const j=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(x)),F=x.replace(st,"");C.value.add(F),m.value=m.value.concat(j.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([j.cluster.uid]),h.value={...h.value,[j.cluster.uid]:F,[j.start]:F,[j.end]:F};for(let ne of j.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},O=x=>{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(x.type)&&!n.expandedSubflows.includes(x.id)){p("expand-subflow",[...n.expandedSubflows,x.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(x.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=r.ref(!0),V=r.ref(!1),W=()=>V.value=!V.value;function Z(x){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:x,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(x,D)=>(r.openBlock(),r.createBlock(r.unref(te.VueFlow),{id:e.id,"default-marker-color":r.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":r.withCtx(J=>[r.createVNode(j_,r.mergeProps(J,{onCollapse:D[0]||(D[0]=j=>T(j,!0))}),null,16)]),"node-dot":r.withCtx(J=>[r.createVNode(nE,r.normalizeProps(r.guardReactiveProps(J)),null,16)]),"node-task":r.withCtx(J=>[r.createVNode(by,r.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=j=>p(r.unref(H).EDIT,j)),onDelete:D[2]||(D[2]=j=>p(r.unref(H).DELETE,j)),onExpand:D[3]||(D[3]=j=>O(j)),onOpenLink:D[4]||(D[4]=j=>p(r.unref(H).OPEN_LINK,j)),onShowLogs:D[5]||(D[5]=j=>p(r.unref(H).SHOW_LOGS,j)),onShowDescription:D[6]||(D[6]=j=>p(r.unref(H).SHOW_DESCRIPTION,j)),onShowCondition:D[7]||(D[7]=j=>p(r.unref(H).SHOW_CONDITION,j)),onMouseover:D[8]||(D[8]=j=>y(j)),onMouseleave:D[9]||(D[9]=j=>g()),onAddError:D[10]||(D[10]=j=>p("on-add-flowable-error",j)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":r.withCtx(J=>[r.createVNode(Cy,r.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=j=>p(r.unref(H).DELETE,j)),onEdit:D[12]||(D[12]=j=>p(r.unref(H).EDIT,j)),onShowDescription:D[13]||(D[13]=j=>p(r.unref(H).SHOW_DESCRIPTION,j))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":r.withCtx(J=>[r.createVNode(Vy,r.mergeProps(J,{onExpand:D[14]||(D[14]=j=>O(j))}),null,16)]),"edge-edge":r.withCtx(J=>[r.createVNode(gE,r.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=j=>p(r.unref(H).ADD_TASK,j)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:r.withCtx(()=>[r.createVNode(r.unref(V_),{"pattern-color":R?r.unref(Fe)("--bs-grey-500"):r.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(r.openBlock(),r.createBlock(r.unref(wn.Controls),{key:0,"show-interactive":!1},{default:r.withCtx(()=>[e.toggleOrientationButton?(r.openBlock(),r.createBlock(r.unref(wn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.isHorizontal?Gy:qy)))]),_:1})):r.createCommentVNode("",!0),r.createVNode(r.unref(wn.ControlButton),{onClick:W},{default:r.withCtx(()=>[r.createVNode(Zy)]),_:1}),V.value?(r.openBlock(),r.createElementBlock("ul",zb,[r.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),r.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):r.createCommentVNode("",!0)]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),jb=K(Wb,[["__scopeId","data-v-5655b4c8"]]),Kb={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yb=["aria-hidden","aria-label"],Xb=["fill","width","height"],Zb={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Jb={key:0};function Qb(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Zb,[n.title?(r.openBlock(),r.createElementBlock("title",Jb,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,Xb))],16,Yb)}const e0=K(Kb,[["render",Qb]]),t0={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},n0=["aria-hidden","aria-label"],r0=["fill","width","height"],i0={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"},a0={key:0};function o0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",i0,[n.title?(r.openBlock(),r.createElementBlock("title",a0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,r0))],16,n0)}const s0=K(t0,[["render",o0]]),l0={key:0,class:"language"},u0=["innerHTML"],c0=r.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:r.shallowRef(s0),Check:r.shallowRef(e0)},n=e,i=r.ref(!1),a=r.ref(),o=r.shallowRef(t.ContentCopy.value),s=r.ref(),l=r.ref(),u=r.computed(()=>n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function c(){i.value=!0,a.value&&r.nextTick(()=>{s.value&&l.value&&lh.createPopper(s.value,l.value,{placement:"left"})})}function d(){clearTimeout(a.value),navigator.clipboard.writeText(n.code.trimEnd()),o.value=t.Check.value,a.value=setTimeout(()=>{o.value=t.ContentCopy.value,a.value=void 0},2e3)}return(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"code-block",onMouseover:c,onMouseleave:h[0]||(h[0]=m=>i.value=!1)},[f.language&&!i.value?(r.openBlock(),r.createElementBlock("div",l0,r.toDisplayString(f.language),1)):r.createCommentVNode("",!0),i.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{onClick:d}))],512),a.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[r.createTextVNode(" Copied! "),r.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",{innerHTML:u.value},null,8,u0)],32))}}),Yc=K(c0,[["__scopeId","data-v-a899f6a1"]]),d0={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},f0=["aria-hidden","aria-label"],h0=["fill","width","height"],m0={d:"M10,17L15,12L10,7V17Z"},p0={key:0};function g0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",m0,[n.title?(r.openBlock(),r.createElementBlock("title",p0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,h0))],16,f0)}const v0=K(d0,[["render",g0]]),_0={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},E0=["aria-hidden","aria-label"],y0=["fill","width","height"],b0={d:"M7,10L12,15L17,10H7Z"},k0={key:0};function C0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",b0,[n.title?(r.openBlock(),r.createElementBlock("title",k0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,y0))],16,E0)}const N0=K(_0,[["render",C0]]),w0=["id","open"],S0={class:"d-flex gap-2 align-items-center"},L0={key:0,class:"d-flex flex-grow-1"},T0=["id"],I0=r.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,i=r.ref(!0),a=Zt.useRoute(),o=Zt.useRouter(),s=t,l=r.computed(()=>`#${n.href}-body`),u=()=>{i.value=!i.value,i.value||s("expand"),o.replace({hash:i.value?"":l.value})},c=r.ref(!1);return r.watch(()=>n.initiallyExpanded,d=>{d!==void 0&&(c.value=d,i.value=!d)},{immediate:!0}),r.watch(()=>a.hash,d=>{d===l.value&&i.value&&(c.value=!0,i.value=!1)},{immediate:!0}),(d,f)=>(r.openBlock(),r.createElementBlock("details",{id:d.href,open:c.value},[r.createElementVNode("summary",{class:r.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:i.value}]),onClick:u},[r.createElementVNode("span",S0,[d.arrow?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value?v0:N0),{key:0,class:"arrow"})):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(d.clickableText)+" ",1),r.renderSlot(d.$slots,"additionalButtonText",{},void 0,!0)]),d.$slots.buttonRight?(r.openBlock(),r.createElementBlock("span",L0,[r.renderSlot(d.$slots,"buttonRight",{collapsed:i.value},void 0,!0)])):r.createCommentVNode("",!0)],2),d.$slots.content?(r.openBlock(),r.createElementBlock("div",{key:0,id:d.href+"-body"},[r.createElementVNode("div",null,[r.renderSlot(d.$slots,"content",{},void 0,!0)])],8,T0)):r.createCommentVNode("",!0)],8,w0))}}),an=K(I0,[["__scopeId","data-v-792a18bc"]]);function Wt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function If(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function A0(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 O0(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function Af(e){const t={},n=Wt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Wt).filter(i=>i!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Wt(e.additionalProperties):e.items&&(t.subType=Wt(e.items)),t}const R0={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},D0=["aria-hidden","aria-label"],P0=["fill","width","height"],B0={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},V0={key:0};function M0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",B0,[n.title?(r.openBlock(),r.createElementBlock("title",V0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,P0))],16,D0)}const x0=K(R0,[["render",M0]]),$0={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},q0=["aria-hidden","aria-label"],F0=["fill","width","height"],U0={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"},H0={key:0};function G0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",U0,[n.title?(r.openBlock(),r.createElementBlock("title",H0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,F0))],16,q0)}const Of=K($0,[["render",G0]]),z0={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},W0=["aria-hidden","aria-label"],j0=["fill","width","height"],K0={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"},Y0={key:0};function X0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",K0,[n.title?(r.openBlock(),r.createElementBlock("title",Y0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,j0))],16,W0)}const Z0=K(z0,[["render",X0]]),J0={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Q0=["aria-hidden","aria-label"],ek=["fill","width","height"],tk={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},nk={key:0};function rk(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",tk,[n.title?(r.openBlock(),r.createElementBlock("title",nk,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,ek))],16,Q0)}const Rf=K(J0,[["render",rk]]),ik={class:"me-3"},ak={class:"d-flex flex-column"},ok=r.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=r.computed(()=>{switch(t.type){case"success":return Z0;case"info":return Ja;case"warning":return Rf;case"danger":return Za;default:return Ja}});return(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass("doc-alert alert alert-"+i.type),role:"alert"},[r.createElementVNode("div",ik,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),r.createElementVNode("div",ak,[r.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}}),sk=K(ok,[["__scopeId","data-v-f7fd8bc1"]]),lk={class:"property-detail"},uk={key:0},ck=["href"],dk={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},fk={class:"ref-type"},hk={key:1,class:"type-box rounded fs-7 px-2 py-1"},mk={key:1},pk={class:"border rounded px-2 py-1"},gk={key:2},vk={class:"border rounded px-2 py-1"},_k={key:3},Ek={class:"border rounded px-2 py-1"},yk={key:4},bk={class:"border rounded px-2 py-1"},kk={key:5},Ck={class:"border rounded px-2 py-1"},Nk={key:6},wk={class:"border rounded px-2 py-1"},Sk={key:7},Lk={class:"border rounded px-2 py-1"},Tk={key:8},Ik={class:"border rounded px-2 py-1"},Ak={key:9},Ok={class:"border rounded px-2 py-1"},Rk={key:10},Dk={class:"border rounded px-2 py-1"},Pk={key:11},Bk={class:"border rounded px-2 py-1"},Vk={key:12},Mk={class:"border rounded px-2 py-1"},xk={key:13},$k={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},qk={key:14},Fk={class:"property-description markdown"},Uk={key:2},Hk=r.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=r.ref(Af(t.property).subType),i=r.ref(A0(t.property)),a=o=>o.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(o,s)=>(r.openBlock(),r.createElementBlock("div",lk,[n.value?(r.openBlock(),r.createElementBlock("div",uk,[s[1]||(s[1]=r.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(r.openBlock(),r.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("button",dk,[r.createElementVNode("span",fk,r.toDisplayString(r.unref(If)(n.value)),1),r.createVNode(Of)])],8,ck)):(r.openBlock(),r.createElementBlock("span",hk,r.toDisplayString(n.value),1))])):r.createCommentVNode("",!0),o.property.default!==void 0?(r.openBlock(),r.createElementBlock("div",mk,[s[2]||(s[2]=r.createElementVNode("span",null," Default ",-1)),r.createElementVNode("code",pk,r.toDisplayString(o.property.default),1)])):r.createCommentVNode("",!0),o.property.pattern!==void 0?(r.openBlock(),r.createElementBlock("div",gk,[s[3]||(s[3]=r.createElementVNode("span",null," Validation RegExp ",-1)),r.createElementVNode("code",vk,r.toDisplayString(o.property.pattern),1)])):r.createCommentVNode("",!0),o.property.unit!==void 0&&o.property.unit.trim().length>0?(r.openBlock(),r.createElementBlock("div",_k,[s[4]||(s[4]=r.createElementVNode("span",null," Unit ",-1)),r.createElementVNode("code",Ek,r.toDisplayString(o.property.unit),1)])):r.createCommentVNode("",!0),o.property.minLength!==void 0?(r.openBlock(),r.createElementBlock("div",yk,[s[5]||(s[5]=r.createElementVNode("span",null," Min length ",-1)),r.createElementVNode("code",bk,r.toDisplayString(o.property.minLength),1)])):r.createCommentVNode("",!0),o.property.maxLength!==void 0?(r.openBlock(),r.createElementBlock("div",kk,[s[6]||(s[6]=r.createElementVNode("span",null," Max length ",-1)),r.createElementVNode("code",Ck,r.toDisplayString(o.property.maxLength),1)])):r.createCommentVNode("",!0),o.property.minItems!==void 0?(r.openBlock(),r.createElementBlock("div",Nk,[s[7]||(s[7]=r.createElementVNode("span",null," Min items ",-1)),r.createElementVNode("code",wk,r.toDisplayString(o.property.minItems),1)])):r.createCommentVNode("",!0),o.property.maxItems!==void 0?(r.openBlock(),r.createElementBlock("div",Sk,[s[8]||(s[8]=r.createElementVNode("span",null," Max items ",-1)),r.createElementVNode("code",Lk,r.toDisplayString(o.property.maxItems),1)])):r.createCommentVNode("",!0),o.property.minimum!==void 0?(r.openBlock(),r.createElementBlock("div",Tk,[s[9]||(s[9]=r.createElementVNode("span",null," Minimum ",-1)),r.createElementVNode("code",Ik," >= "+r.toDisplayString(o.property.minimum),1)])):r.createCommentVNode("",!0),o.property.exclusiveMinimum!==void 0?(r.openBlock(),r.createElementBlock("div",Ak,[s[10]||(s[10]=r.createElementVNode("span",null," Minimum ",-1)),r.createElementVNode("code",Ok," > "+r.toDisplayString(o.property.minimum),1)])):r.createCommentVNode("",!0),o.property.maximum!==void 0?(r.openBlock(),r.createElementBlock("div",Rk,[s[11]||(s[11]=r.createElementVNode("span",null," Maximum ",-1)),r.createElementVNode("code",Dk," <= "+r.toDisplayString(o.property.maximum),1)])):r.createCommentVNode("",!0),o.property.exclusiveMaximum!==void 0?(r.openBlock(),r.createElementBlock("div",Pk,[s[12]||(s[12]=r.createElementVNode("span",null," Maximum ",-1)),r.createElementVNode("code",Bk," < "+r.toDisplayString(o.property.maximum),1)])):r.createCommentVNode("",!0),o.property.format!==void 0?(r.openBlock(),r.createElementBlock("div",Vk,[s[13]||(s[13]=r.createElementVNode("span",null," Format ",-1)),r.createElementVNode("code",Mk,r.toDisplayString(o.property.format),1)])):r.createCommentVNode("",!0),i.value!==void 0?(r.openBlock(),r.createElementBlock("div",xk,[s[14]||(s[14]=r.createElementVNode("span",null," Possible Values ",-1)),r.createElementVNode("div",$k,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(l,u)=>(r.openBlock(),r.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},r.toDisplayString(l),1))),128))])])):r.createCommentVNode("",!0),o.property.title!==void 0||o.property.description!==void 0?(r.openBlock(),r.createElementBlock("div",qk,[r.createElementVNode("div",Fk,[o.property.title!==void 0?r.renderSlot(o.$slots,"markdown",{key:0,content:a(o.property.title)},void 0,!0):r.createCommentVNode("",!0),o.property.description!==void 0?r.renderSlot(o.$slots,"markdown",{key:1,content:a(o.property.description)},void 0,!0):r.createCommentVNode("",!0),o.property.$internalStorageURI?(r.openBlock(),r.createElementBlock("div",Uk,[r.createVNode(sk,{type:"info"},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}}),Gk=K(Hk,[["__scopeId","data-v-79715a4e"]]),zk={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wk=["aria-hidden","aria-label"],jk=["fill","width","height"],Kk={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Yk={key:0};function Xk(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Kk,[n.title?(r.openBlock(),r.createElementBlock("title",Yk,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,jk))],16,Wk)}const Zk=K(zk,[["render",Xk]]),Jk={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={d:"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"},nC={key:0};function rC(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",tC,[n.title?(r.openBlock(),r.createElementBlock("title",nC,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,eC))],16,Qk)}const iC=K(Jk,[["render",rC]]),aC={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oC=["aria-hidden","aria-label"],sC=["fill","width","height"],lC={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"},uC={key:0};function cC(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",lC,[n.title?(r.openBlock(),r.createElementBlock("title",uC,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,sC))],16,oC)}const dC=K(aC,[["render",cC]]),fC={class:"border overflow-hidden"},hC={class:"d-flex flex-grow-1 align-items-center justify-content-between"},mC={class:"d-flex gap-2"},pC={class:"d-flex flex-wrap gap-2"},gC=["href"],vC={class:"ref-type"},_C={key:1,class:"type-box rounded fs-7 px-2 py-1"},EC=r.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},forceInclude:{default:()=>[]}},emits:["expand"],setup(e,{emit:t}){const n=e,i=t,a=r.ref(!1);r.watch(a,l=>{l&&i("expand")});const o=l=>{var u;return l.$dynamic===!0?!0:l.$dynamic===!1?!1:((u=l.anyOf)==null?void 0:u.some(c=>c.$dynamic===!0))??!1};function s(l){const u=[],c=[];for(const h in l)typeof l[h]=="object"&&(l[h]=O0(l[h]),l[h].$required?u.push(h):c.push(h));const d=[...u.sort(),...c.sort()],f={};return d.forEach(h=>{var m;(!l[h].$deprecated||(m=n.forceInclude)!=null&&m.includes(h))&&(f[h]=l[h])}),f}return(l,u)=>(r.openBlock(),r.createBlock(an,{class:"section-collapsible","clickable-text":l.sectionName,href:l.href,onExpand:u[2]||(u[2]=c=>i("expand")),"initially-expanded":l.initiallyExpanded||a.value},r.createSlots({_:2},[Object.keys(l.properties??{}).length>0?{name:"content",fn:r.withCtx(()=>[r.createElementVNode("div",fC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s(l.properties),(c,d)=>(r.openBlock(),r.createBlock(an,{class:"property",key:d,arrow:!1,"clickable-text":d,href:l.href+"_"+d,onExpand:u[1]||(u[1]=f=>a.value=!0)},{additionalButtonText:r.withCtx(()=>[c.$required?(r.openBlock(),r.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:r.withCtx(()=>u[3]||(u[3]=[r.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):r.createCommentVNode("",!0)]),buttonRight:r.withCtx(({collapsed:f})=>[r.createElementVNode("span",hC,[r.createElementVNode("span",mC,[l.showDynamic&&!o(c)?(r.openBlock(),r.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:r.withCtx(()=>[r.createVNode(iC,{class:"text-info"})]),_:1})):r.createCommentVNode("",!0),c.$beta?(r.openBlock(),r.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:r.withCtx(()=>[r.createVNode(dC,{class:"text-warning"})]),_:1})):r.createCommentVNode("",!0),c.$deprecated?(r.openBlock(),r.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:r.withCtx(()=>[r.createVNode(Rf,{class:"text-warning"})]),_:1})):r.createCommentVNode("",!0)]),r.createElementVNode("span",pC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Af)(c).types,h=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:h},[h.startsWith("#")?(r.openBlock(),r.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:h,onClick:u[0]||(u[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("span",vC,r.toDisplayString(r.unref(If)(h)),1),r.createVNode(Of)],8,gC)):(r.openBlock(),r.createElementBlock("span",_C,r.toDisplayString(h),1))],64))),128)),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(f?x0:Zk),{class:"arrow"}))])])]),content:r.withCtx(()=>[r.createVNode(Gk,{property:c},{markdown:r.withCtx(({content:f})=>[r.renderSlot(l.$slots,"markdown",{content:f},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),jt=K(EC,[["__scopeId","data-v-0d36ff40"]]),yC={class:"d-flex flex-column gap-6"},bC={key:0,class:"alert alert-info",role:"alert"},kC={key:1,class:"plugin-title markdown"},CC={key:2,class:"markdown"},NC={class:"d-flex flex-column gap-4"},wC={class:"d-flex flex-column gap-3"},SC={class:"markdown"},LC={key:0,class:"w-100 align-self-center"},TC={class:"markdown"},IC={class:"markdown"},AC={class:"markdown"},OC={class:"d-flex flex-column gap-7 ps-3"},RC={class:"markdown"},DC=r.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]}},async setup(e){let t,n;const i=e,a=r.ref(!1),o=r.ref(new Set),s=r.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!i.schema.definitions){o.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in i.schema.definitions){a.value=!0,s.value+=1,o.value.clear(),o.value.add(k),await r.nextTick();let b=0;const T=30,O=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(O))};requestAnimationFrame(O)}else o.value.clear()};r.watch([()=>i.schema,()=>i.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&i.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=i.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
24
+ </svg>`));return(o,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createElementVNode("div",{class:r.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[r.createVNode(Do,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),r.createElementVNode("div",N_,[r.createElementVNode("div",w_,[r.createVNode(le,{title:e.data.flowId},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),r.createElementVNode("div",S_,[r.createVNode(le,{title:e.data.namespace},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),r.createElementVNode("div",L_,[r.renderSlot(o.$slots,"badge-button-before",{},void 0,!0),e.data.link?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>o.$emit(r.unref(H).OPEN_LINK,e.data))},[r.createVNode(le,{title:r.unref(i)("open")},{default:r.withCtx(()=>[r.createVNode(Po,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),e.data.expandEnabled?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[1]||(s[1]=l=>n(r.unref(H).EXPAND_DEPENDENCIES,e.data))},[r.createVNode(le,{title:r.unref(i)("expand")},{default:r.withCtx(()=>[r.createVNode(C_,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),r.renderSlot(o.$slots,"badge-button-after",{},void 0,!0)])],2),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),I_=K(T_,[["__scopeId","data-v-2271d5b0"]]);var Ye=(e=>(e.Lines="lines",e.Dots="dots",e))(Ye||{});const ff=function({dimensions:e,size:t,color:n}){return r.h("path",{stroke:n,"stroke-width":t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},hf=function({radius:e,color:t}){return r.h("circle",{cx:e,cy:e,r:e,fill:t})};Ye.Lines+"",Ye.Dots+"";const A_={[Ye.Dots]:"#81818a",[Ye.Lines]:"#eee"},O_=["id","x","y","width","height","patternTransform"],R_={key:2,height:"100",width:"100"},D_=["fill"],P_=["x","y","fill"],B_={name:"Background",compatConfig:{MODE:3}},V_=r.defineComponent({...B_,props:{id:{},variant:{default:()=>Ye.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(),i=r.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===Ye.Dots?[c/e.offset,c/e.offset]:[u[0]/e.offset,u[1]/e.offset];return{scaledGap:u,offset:d,size:c}}),a=r.toRef(()=>`pattern-${t}${e.id?`-${e.id}`:""}`),o=r.toRef(()=>e.color||e.patternColor||A_[e.variant||Ye.Dots]);return(s,l)=>(r.openBlock(),r.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:r.normalizeStyle({height:`${s.height>100?100:s.height}%`,width:`${s.width>100?100:s.width}%`})},[r.renderSlot(s.$slots,"pattern-container",{id:a.value},()=>[r.createElementVNode("pattern",{id:a.value,x:r.unref(n).x%i.value.scaledGap[0],y:r.unref(n).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[r.renderSlot(s.$slots,"pattern",{},()=>[s.variant===r.unref(Ye).Lines?(r.openBlock(),r.createBlock(r.unref(ff),{key:0,size:s.lineWidth,color:o.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):s.variant===r.unref(Ye).Dots?(r.openBlock(),r.createBlock(r.unref(hf),{key:1,color:o.value,radius:i.value.size/s.offset},null,8,["color","radius"])):r.createCommentVNode("",!0),s.bgColor?(r.openBlock(),r.createElementBlock("svg",R_,[r.createElementVNode("rect",{width:"100%",height:"100%",fill:s.bgColor},null,8,D_)])):r.createCommentVNode("",!0)])],8,O_)]),r.createElementVNode("rect",{x:s.x,y:s.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,P_),r.renderSlot(s.$slots,"default",{id:a.value})],4))}}),M_={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},x_=["aria-hidden","aria-label"],$_=["fill","width","height"],q_={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},F_={key:0};function U_(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",q_,[n.title?(r.openBlock(),r.createElementBlock("title",F_,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,$_))],16,x_)}const H_=K(M_,[["render",U_]]),G_={class:"top-button-div text-white d-flex"},z_={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)}}},W_=Object.assign(z_,{__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,i=t,a=()=>{i(H.COLLAPSE,n.id)};return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.classes)},[r.createElementVNode("span",{class:r.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},r.toDisplayString(o.clusterName),3),r.createElementVNode("div",G_,[e.data.collapsable?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:s[0]||(s[0]=l=>a())},[r.createVNode(le,{title:o.$t("collapse")},{default:r.withCtx(()=>[r.createVNode(H_,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0)])],2))}}),j_=K(W_,[["__scopeId","data-v-0c251e77"]]),K_={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y_=["aria-hidden","aria-label"],X_=["fill","width","height"],Z_={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"},J_={key:0};function Q_(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Z_,[n.title?(r.openBlock(),r.createElementBlock("title",J_,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,X_))],16,Y_)}const mf=K(K_,[["render",Q_]]),eE={name:"Dot",components:{Handle:te.Handle,CircleIcon:mf},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}}}},tE=Object.assign(eE,{setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(t.classes)},[r.createVNode(r.unref(te.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),r.createElementVNode("div",{class:r.normalizeClass(["dot",t.classes])},[r.createVNode(mf,{class:r.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),r.createVNode(r.unref(te.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),nE=K(tE,[["__scopeId","data-v-666f472b"]]),rE={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},iE=["aria-hidden","aria-label"],aE=["fill","width","height"],oE={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},sE={key:0};function lE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",oE,[n.title?(r.openBlock(),r.createElementBlock("title",sE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,aE))],16,iE)}const uE=K(rE,[["render",lE]]),cE={class:"add-task-div rounded d-flex justify-content-center align-items-center"},dE=r.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",cE,[t.addTask?(r.openBlock(),r.createBlock(uE,{key:0,alt:"add task icon"})):r.createCommentVNode("",!0)]))}}),fE=K(dE,[["__scopeId","data-v-4afc4738"]]),hE={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:fE,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:r.computed(()=>te.getSmoothStepPath(e))}},inheritAttrs:!1},mE=["id","d","marker-end"];function pE(e,t,n,i,a,o){const s=r.resolveComponent("AddTaskButton"),l=r.resolveComponent("tooltip"),u=r.resolveComponent("EdgeLabelRenderer");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("path",{id:n.id,class:r.normalizeClass(o.classes),style:r.normalizeStyle(n.data.haveDashArray?{strokeDasharray:"2"}:{}),d:i.path[0],"marker-end":n.markerEnd},null,14,mE),r.createVNode(u,{style:{"z-index":"10"}},{default:r.withCtx(()=>[r.createElementVNode("div",{style:r.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${i.path[1]}px,${i.path[2]}px)`})},[r.createVNode(l,{title:o.title},{default:r.withCtx(()=>[n.data.haveAdd?(r.openBlock(),r.createBlock(s,{key:0,"add-task":!0,onClick:t[0]||(t[0]=c=>e.$emit(o.EVENTS.ADD_TASK,n.data.haveAdd)),class:r.normalizeClass({"text-danger":n.data.color})},null,8,["class"])):r.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})],64)}const gE=K(hE,[["render",pE],["__scopeId","data-v-a3e1d999"]]),vE={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_E=["aria-hidden","aria-label"],EE=["fill","width","height"],yE={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"},bE={key:0};function kE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",yE,[n.title?(r.openBlock(),r.createElementBlock("title",bE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,EE))],16,_E)}const pf=K(vE,[["render",kE]]),CE={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},NE=["aria-hidden","aria-label"],wE=["fill","width","height"],SE={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},LE={key:0};function TE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",SE,[n.title?(r.openBlock(),r.createElementBlock("title",LE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,wE))],16,NE)}const En=K(CE,[["render",TE]]),yn=Symbol("execution-injection-key"),gf=Symbol("subflows-executions-injection-key"),IE={class:"icon rounded"},AE={class:"node-content"},OE={class:"d-flex node-title"},RE={class:"text-truncate task-title"},DE={key:0,class:"d-flex"},PE={class:"text-white top-button-div"},BE={components:{ArrowExpand:En,InformationOutline:pf,OpenInNew:Po,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},title:{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}},inject:{execution:{from:yn}},computed:{Utils(){return ge},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,i;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((i=(n=(t=this.data.parent)==null?void 0:t.taskNode)==null?void 0:n.task)==null?void 0:i.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(){var e;if((e=this.data.node.type)!=null&&e.endsWith("SubflowGraphTask")){const t=this.data.node.task.subflowId??this.data.node.task;return t.namespace+" "+t.flowId}return this.trimmedId}}},VE=Object.assign(BE,{__name:"BasicNode",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...i)=>t.mouseover&&t.mouseover(...i)),onMouseleave:n[4]||(n[4]=(...i)=>t.mouseleave&&t.mouseleave(...i))},[e.state?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):r.createCommentVNode("",!0),r.createElementVNode("div",IE,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.iconComponent||Do),{cls:t.cls,class:r.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),r.createElementVNode("div",AE,[r.createElementVNode("div",OE,[r.createElementVNode("div",RE,[r.createVNode(le,{title:t.hoverTooltip},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title??t.trimmedId),1)]),_:1},8,["title"])]),t.description?(r.openBlock(),r.createElementBlock("span",DE,[r.createVNode(le,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:r.withCtx(()=>[r.createVNode(pf,{onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):r.createCommentVNode("",!0)]),r.renderSlot(t.$slots,"content",{},void 0,!0)]),r.createElementVNode("div",PE,[r.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=i=>t.$emit(r.unref(H).OPEN_LINK,{link:e.data.link}))},[r.createVNode(le,{title:t.$t("open")},{default:r.withCtx(()=>[r.createVNode(Po,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),t.expandable?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=i=>t.$emit(r.unref(H).EXPAND))},[r.createVNode(le,{title:t.$t("expand")},{default:r.withCtx(()=>[r.createVNode(En,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),vf=K(VE,[["__scopeId","data-v-ee0adf33"]]),ME=["innerHTML"],xE=r.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;r.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const n=r.ref(""),i=r.ref();r.onMounted(()=>{l()});const a=r.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),o=r.computed(()=>t.histories[t.histories.length-1]),s=r.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){i.value||(i.value=setInterval(()=>{f(),t.histories&&!Ce.isRunning(o.value.state)&&u()},100))}function u(){i.value&&(clearInterval(i.value),i.value=void 0)}function c(){return d()-a.value}function d(){return!t.histories||Ce.isRunning(o.value.state)?+new Date:new Date(o.value.date.toString()).getTime()}function f(){n.value=s.value.length===0?"&nbsp;":ge.humanDuration(c()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return r.onBeforeUnmount(()=>{u()}),(m,C)=>(r.openBlock(),r.createBlock(le,{key:o.value.date.toString()},{content:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(E,_)=>(r.openBlock(),r.createElementBlock("span",{key:"tt-"+_,class:"ks-duration-tt"},[r.createElementVNode("span",{class:r.normalizeClass(["ks-duration-tt-square",h(E.state)])},null,2),r.createElementVNode("strong",null,r.toDisplayString(E.state)+": ",1),r.createTextVNode(r.toDisplayString(r.unref(ge).dateFilter(E.date.toString(),"iso"))+" ",1),C[0]||(C[0]=r.createElementVNode("br",null,null,-1))]))),128))]),default:r.withCtx(()=>[r.createElementVNode("span",{innerHTML:n.value},null,8,ME)]),_:1}))}}),$E={class:"btn-group content rounded-1 content-children text-truncate"},qE={key:0,class:"taskRunCount"},FE={key:1},UE={key:2},HE=r.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=r.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),i=r.computed(()=>n.value.filter(s=>s.taskId===ge.afterLastDot(t.uid??""))),a=r.computed(()=>{if(!i.value)return null;if(i.value.length===1)return i.value[0].state.current;const s=i.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]}),o=r.computed(()=>{if(!i.value)return;const s=Math.max(...i.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(...i.value.map(u=>Rt.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:Rt(s).subtract(l,"second"),state:"CREATED"},{date:Rt(s),state:a.value}]});return(s,l)=>(r.openBlock(),r.createElementBlock("div",$E,[i.value.length>0?(r.openBlock(),r.createElementBlock("span",qE,r.toDisplayString(i.value.length)+" task runs",1)):r.createCommentVNode("",!0),i.value.length>0?(r.openBlock(),r.createElementBlock("span",FE," | ")):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("span",UE,[r.createVNode(xE,{histories:o.value},null,8,["histories"])])):r.createCommentVNode("",!0)]))}}),_f=K(HE,[["__scopeId","data-v-b7801302"]]),GE={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zE=["aria-hidden","aria-label"],WE=["fill","width","height"],jE={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"},KE={key:0};function YE(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",jE,[n.title?(r.openBlock(),r.createElementBlock("title",KE,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,WE))],16,zE)}const bn=K(GE,[["render",YE]]),XE={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ZE=["aria-hidden","aria-label"],JE=["fill","width","height"],QE={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},ey={key:0};function ty(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",QE,[n.title?(r.openBlock(),r.createElementBlock("title",ey,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,JE))],16,ZE)}const kn=K(XE,[["render",ty]]),ny={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ry=["aria-hidden","aria-label"],iy=["fill","width","height"],ay={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"},oy={key:0};function sy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",ay,[n.title?(r.openBlock(),r.createElementBlock("title",oy,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,iy))],16,ry)}const Ef=K(ny,[["render",sy]]),ly={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uy=["aria-hidden","aria-label"],cy=["fill","width","height"],dy={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},fy={key:0};function hy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",dy,[n.title?(r.openBlock(),r.createElementBlock("title",fy,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,cy))],16,uy)}const yf=K(ly,[["render",hy]]),my={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},py=["aria-hidden","aria-label"],gy=["fill","width","height"],vy={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"},_y={key:0};function Ey(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",vy,[n.title?(r.openBlock(),r.createElementBlock("title",_y,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,gy))],16,py)}const bf=K(my,[["render",Ey]]),yy={name:"Task",components:{Pencil:bn,Delete:kn,ExecutionInformations:_f,Handle:te.Handle,TextBoxSearch:Ef,AlertOutline:yf,Tooltip:le,SendLock:bf},inheritAttrs:!1,inject:{execution:{from:yn},subflowsExecutions:{from:gf}},computed:{SECTIONS(){return Qe},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(i=>i.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(i=>i.state.current),t=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return e.map(i=>{const a=t.indexOf(i[1]);return t[a]=void 0,[a,i]}).sort().map(i=>i[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,i,a;if((e=this.data.node.type)!=null&&e.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:(a=(i=(n=(t=this.taskExecution)==null?void 0:t.taskRunList.filter(s=>{var l;return s.taskId===this.data.node.task.id&&((l=s.outputs)==null?void 0:l.executionId)}))==null?void 0:n[0])==null?void 0:i.outputs)==null?void 0:a.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)}}},by=Object.assign(yy,{setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createVNode(vf,{id:e.id,data:t.dataWithLink,state:t.state,class:r.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=i=>t.forwardEvent(r.unref(H).SHOW_DESCRIPTION,i)),onExpand:n[6]||(n[6]=i=>t.forwardEvent(r.unref(H).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=i=>t.forwardEvent(r.unref(H).OPEN_LINK,i)),onMouseover:n[8]||(n[8]=i=>t.forwardEvent(r.unref(H).MOUSE_OVER,i)),onMouseleave:n[9]||(n[9]=i=>t.forwardEvent(r.unref(H).MOUSE_LEAVE))},{content:r.withCtx(()=>[t.taskExecution?(r.openBlock(),r.createBlock(_f,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):r.createCommentVNode("",!0)]),"badge-button-before":r.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:r.unref(Qe).TASKS}))},[r.createVNode(le,{title:t.$t("show task condition")},{default:r.withCtx(()=>[r.createVNode(bf,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):r.createCommentVNode("",!0),t.taskExecution?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=i=>t.$emit(r.unref(H).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[r.createVNode(le,{title:t.$t("show task logs")},{default:r.withCtx(()=>[r.createVNode(Ef,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(r.openBlock(),r.createElementBlock("span",{key:2,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=i=>t.$emit(r.unref(H).ADD_ERROR,{task:e.data.node.task}))},[r.createVNode(le,{title:t.$t("add error handler")},{default:r.withCtx(()=>[r.createVNode(yf,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(r.openBlock(),r.createElementBlock("span",{key:3,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=i=>t.$emit(r.unref(H).EDIT,{task:e.data.node.task,section:r.unref(Qe).TASKS}))},[r.createVNode(le,{title:t.$t("edit")},{default:r.withCtx(()=>[r.createVNode(bn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(r.openBlock(),r.createElementBlock("span",{key:4,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=i=>t.$emit(r.unref(H).DELETE,{id:t.taskId,section:r.unref(Qe).TASKS}))},[r.createVNode(le,{title:t.$t("delete")},{default:r.withCtx(()=>[r.createVNode(kn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),ky={name:"Task",inheritAttrs:!1,inject:{execution:{from:yn}},computed:{SECTIONS(){return Qe},EVENTS(){return H},color(){return this.data.color??"primary"},formattedData(){var e,t,n,i;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((i=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:i.disabled)}},triggerId(){return ge.afterLastDot(this.id)}},emits:[H.DELETE,H.EDIT,H.SHOW_DESCRIPTION],components:{Delete:kn,Pencil:bn,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)}}},Cy=Object.assign(ky,{setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createVNode(vf,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=i=>t.forwardEvent(r.unref(H).SHOW_DESCRIPTION,i)),onExpand:n[3]||(n[3]=i=>t.forwardEvent(r.unref(H).EXPAND,{id:e.id}))},r.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:r.withCtx(()=>[t.execution?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).EDIT,{task:e.data.node.triggerDeclaration,section:r.unref(Qe).TRIGGERS}))},[r.createVNode(le,{title:t.$t("edit")},{default:r.withCtx(()=>[r.createVNode(bn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=i=>t.$emit(r.unref(H).DELETE,{id:t.triggerId,section:r.unref(Qe).TRIGGERS}))},[r.createVNode(le,{title:t.$t("delete")},{default:r.withCtx(()=>[r.createVNode(kn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ny={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wy=["aria-hidden","aria-label"],Sy=["fill","width","height"],Ly={d:"M11 15H6L13 1V9H18L11 23V15Z"},Ty={key:0};function Iy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Ly,[n.title?(r.openBlock(),r.createElementBlock("title",Ty,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,Sy))],16,wy)}const Ay=K(Ny,[["render",Iy]]),Oy={class:"collapsed-cluster-node d-flex"},Ry={class:"node-text"},Dy={class:"text-white top-button-div"},Py={components:{Tooltip:le,Handle:te.Handle,ArrowExpand:En,LightningBolt:Ay},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}}},By=Object.assign(Py,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),r.createElementVNode("div",Oy,[r.createElementVNode("span",Ry,[e.data.iconComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.data.iconComponent),{key:0,class:r.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(r.unref(ge).afterLastDot(e.id)),1)]),r.createElementVNode("div",Dy,[r.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=i=>t.$emit(r.unref(H).EXPAND,{id:e.id}))},[r.createVNode(le,{title:t.$t("expand")},{default:r.withCtx(()=>[r.createVNode(En,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),r.createVNode(r.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Vy=K(By,[["__scopeId","data-v-89413b39"]]),My={name:"SplitCellsVerticalIcon",emits:["click"]},xy={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $y(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("svg",xy,t[0]||(t[0]=[r.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[r.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),r.createElementVNode("defs",null,[r.createElementVNode("clipPath",{id:"clip0_1111_7266"},[r.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const qy=K(My,[["render",$y],["__scopeId","data-v-084c51e6"]]),Fy={name:"SplitCellsHorizontalIcon",emits:["click"]},Uy={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("svg",Uy,t[0]||(t[0]=[r.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[r.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),r.createElementVNode("defs",null,[r.createElementVNode("clipPath",{id:"clip0_796_3996"},[r.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Gy=K(Fy,[["render",Hy],["__scopeId","data-v-c77c1469"]]),zy={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wy=["aria-hidden","aria-label"],jy=["fill","width","height"],Ky={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Yy={key:0};function Xy(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Ky,[n.title?(r.openBlock(),r.createElementBlock("title",Yy,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,jy))],16,Wy)}const Zy=K(zy,[["render",Xy]]);function Jy(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(),i=n.createElement("base"),a=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(a),t&&(i.href=t),a.href=e,a.href}const Qy=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function et(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function nn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function e0(e){const t=nn(e,"border-left-width"),n=nn(e,"border-right-width");return e.clientWidth+t+n}function t0(e){const t=nn(e,"border-top-width"),n=nn(e,"border-bottom-width");return e.clientHeight+t+n}function kf(e,t={}){const n=t.width||e0(e),i=t.height||t0(e);return{width:n,height:i}}function n0(){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 r0(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 rn(e){return new Promise((t,n)=>{const i=new Image;i.decode=()=>t(i),i.onload=()=>t(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function i0(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function a0(e,t,n){const i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${n}`),a.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),a.appendChild(o),o.appendChild(e),i0(a)}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 o0(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function s0(e){return et(e).map(t=>{const n=e.getPropertyValue(t),i=e.getPropertyPriority(t);return`${t}: ${n}${i?" !important":""};`}).join(" ")}function l0(e,t,n){const i=`.${e}:${t}`,a=n.cssText?o0(n):s0(n);return document.createTextNode(`${i}{${a}}`)}function Uc(e,t,n){const i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;const o=Qy();try{t.className=`${t.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(l0(o,n,i)),t.appendChild(s)}function u0(e,t){Uc(e,t,":before"),Uc(e,t,":after")}const Hc="application/font-woff",Gc="image/jpeg",c0={woff:Hc,woff2:Hc,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Gc,jpeg:Gc,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function d0(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Bo(e){const t=d0(e).toLowerCase();return c0[t]||""}function f0(e){return e.split(/,/)[1]}function co(e){return e.search(/^(data:)/)!==-1}function h0(e,t){return`data:${t};base64,${e}`}async function Cf(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const a=await i.blob();return new Promise((o,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{o(n({res:i,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(a)})}const Ya={};function m0(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function Vo(e,t,n){const i=m0(e,t,n.includeQueryParams);if(Ya[i]!=null)return Ya[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const o=await Cf(e,n.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),f0(l)));a=h0(o,t)}catch(o){a=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;o&&(s=typeof o=="string"?o:o.message),s&&console.warn(s)}return Ya[i]=a,a}async function p0(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):rn(t)}async function g0(e,t){if(e.currentSrc){const o=document.createElement("canvas"),s=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,s==null||s.drawImage(e,0,0,o.width,o.height);const l=o.toDataURL();return rn(l)}const n=e.poster,i=Bo(n),a=await Vo(n,i,t);return rn(a)}async function v0(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Cn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function _0(e,t){return Be(e,HTMLCanvasElement)?p0(e):Be(e,HTMLVideoElement)?g0(e,t):Be(e,HTMLIFrameElement)?v0(e):e.cloneNode(!1)}const E0=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function y0(e,t,n){var i,a;let o=[];return E0(e)&&e.assignedNodes?o=et(e.assignedNodes()):Be(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=et(e.contentDocument.body.childNodes):o=et(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),o.length===0||Be(e,HTMLVideoElement)||await o.reduce((s,l)=>s.then(()=>Cn(l,n)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function b0(e,t){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):et(i).forEach(a=>{let o=i.getPropertyValue(a);a==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),Be(e,HTMLIFrameElement)&&a==="display"&&o==="inline"&&(o="block"),a==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(a,o,i.getPropertyPriority(a))})}function k0(e,t){Be(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Be(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function C0(e,t){if(Be(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(a=>e.value===a.getAttribute("value"));i&&i.setAttribute("selected","")}}function N0(e,t){return Be(t,Element)&&(b0(e,t),u0(e,t),k0(e,t),C0(e,t)),t}async function w0(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const l=n[o].getAttribute("xlink:href");if(l){const u=e.querySelector(l),c=document.querySelector(l);!u&&c&&!i[l]&&(i[l]=await Cn(c,t,!0))}}const a=Object.values(i);if(a.length){const o="http://www.w3.org/1999/xhtml",s=document.createElementNS(o,"svg");s.setAttribute("xmlns",o),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(o,"defs");s.appendChild(l);for(let u=0;u<a.length;u++)l.appendChild(a[u]);e.appendChild(s)}return e}async function Cn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>_0(i,t)).then(i=>y0(e,i,t)).then(i=>N0(e,i)).then(i=>w0(i,t))}const Nf=/url\((['"]?)([^'"]+?)\1\)/g,S0=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,L0=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function T0(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function I0(e){const t=[];return e.replace(Nf,(n,i,a)=>(t.push(a),n)),t.filter(n=>!co(n))}async function A0(e,t,n,i,a){try{const o=n?Jy(t,n):t,s=Bo(t);let l;return a||(l=await Vo(o,s,i)),e.replace(T0(t),`$1${l}$3`)}catch{}return e}function O0(e,{preferredFontFormat:t}){return t?e.replace(L0,n=>{for(;;){const[i,,a]=S0.exec(n)||[];if(!a)return"";if(a===t)return`src: ${i};`}}):e}function wf(e){return e.search(Nf)!==-1}async function Sf(e,t,n){if(!wf(e))return e;const i=O0(e,n);return I0(i).reduce((o,s)=>o.then(l=>A0(l,s,t,n)),Promise.resolve(i))}async function zt(e,t,n){var i;const a=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(a){const o=await Sf(a,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function R0(e,t){await zt("background",e,t)||await zt("background-image",e,t),await zt("mask",e,t)||await zt("mask-image",e,t)}async function D0(e,t){const n=Be(e,HTMLImageElement);if(!(n&&!co(e.src))&&!(Be(e,SVGImageElement)&&!co(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,a=await Vo(i,Bo(i),t);await new Promise((o,s)=>{e.onload=o,e.onerror=s;const l=e;l.decode&&(l.decode=o),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=a):e.href.baseVal=a})}async function P0(e,t){const i=et(e.childNodes).map(a=>Lf(a,t));await Promise.all(i).then(()=>e)}async function Lf(e,t){Be(e,Element)&&(await R0(e,t),await D0(e,t),await P0(e,t))}function B0(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 i=t.style;return i!=null&&Object.keys(i).forEach(a=>{n[a]=i[a]}),e}const zc={};async function Wc(e){let t=zc[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},zc[e]=t,t}async function jc(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(i,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),Cf(l,t.fetchRequestInit,({result:u})=>(n=n.replace(s,`url(${u})`),[s,u]))});return Promise.all(o).then(()=>n)}function Kc(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=a.exec(i);if(u===null)break;t.push(u[0])}i=i.replace(a,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(s,"gi");for(;;){let u=o.exec(i);if(u===null){if(u=l.exec(i),u===null)break;o.lastIndex=l.lastIndex}else l.lastIndex=o.lastIndex;t.push(u[0])}return t}async function V0(e,t){const n=[],i=[];return e.forEach(a=>{if("cssRules"in a)try{et(a.cssRules||[]).forEach((o,s)=>{if(o.type===CSSRule.IMPORT_RULE){let l=s+1;const u=o.href,c=Wc(u).then(d=>jc(d,t)).then(d=>Kc(d).forEach(f=>{try{a.insertRule(f,f.startsWith("@import")?l+=1:a.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())});i.push(c)}})}catch(o){const s=e.find(l=>l.href==null)||document.styleSheets[0];a.href!=null&&i.push(Wc(a.href).then(l=>jc(l,t)).then(l=>Kc(l).forEach(u=>{s.insertRule(u,a.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(a=>{if("cssRules"in a)try{et(a.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${a.href}`,o)}}),n))}function M0(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>wf(t.style.getPropertyValue("src")))}async function x0(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=et(e.ownerDocument.styleSheets),i=await V0(n,t);return M0(i)}async function $0(e,t){const n=await x0(e,t);return(await Promise.all(n.map(a=>{const o=a.parentStyleSheet?a.parentStyleSheet.href:null;return Sf(a.cssText,o,t)}))).join(`
25
+ `)}async function q0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await $0(e,t);if(n){const i=document.createElement("style"),a=document.createTextNode(n);i.appendChild(a),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function F0(e,t={}){const{width:n,height:i}=kf(e,t),a=await Cn(e,t,!0);return await q0(a,t),await Lf(a,t),B0(a,t),await a0(a,n,i)}async function Tf(e,t={}){const{width:n,height:i}=kf(e,t),a=await F0(e,t),o=await rn(a),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||n0(),c=t.canvasWidth||n,d=t.canvasHeight||i;return s.width=c*u,s.height=d*u,t.skipAutoScale||r0(s),s.style.width=`${c}`,s.style.height=`${d}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(o,0,0,s.width,s.height),s}async function U0(e,t={}){return(await Tf(e,t)).toDataURL()}async function H0(e,t={}){return(await Tf(e,t)).toDataURL("image/jpeg",t.quality||1)}function G0(){const e=r.ref(""),t=r.ref("png"),n=r.ref();async function i(l,u={}){let c;const d=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":c=await a(l,u);break;case"png":c=await o(l,u);break;default:c=await o(l,u);break}return u.shouldDownload&&d!==""&&s(d),c}function a(l,u={quality:.95}){return n.value=null,H0(l,u).then(c=>(e.value=c,t.value="jpeg",c)).catch(c=>{throw c.value=c,new Error(c)})}function o(l,u={quality:.95}){return n.value=null,U0(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:i,download:s,dataUrl:e,error:n}}const z0={key:1,class:"exporting"},W0=r.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,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})}},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,i=r.ref(!1),a=r.ref(),{getNodes:o,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:c,setElements:d,vueFlowRef:f}=te.useVueFlow(n.id),h=r.ref({}),m=r.ref([]),C=r.ref(new Set),E=r.ref([]),{capture:_}=G0();r.provide(yn,r.computed(()=>n.execution)),r.provide(gf,r.computed(()=>n.subflowsExecutions));const p=t;r.onMounted(()=>{v()}),r.watch(()=>n.flowGraph,()=>{v()}),r.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{Kt.cleanGraph(n.id),r.nextTick(()=>{p("loading",!0);const x=C.value;C.value=new Set,m.value=[],h.value={},x.forEach(J=>T(st+J,!1,!1));const D=Kt.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=x=>{i.value||Kt.linkedElements(n.id,x.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=()=>{o.value.filter(x=>x.type==="task"||x.type==="trigger").forEach(x=>{x.style={...x.style,opacity:"1",outline:"none"},x.class=""})};l(x=>{i.value=!0,k(),x.node.style={...x.node.style,zIndex:1976},a.value=x.node.position}),u(x=>{if(i.value=!1,x.intersections&&b(x.intersections,x.node)===null){const D=x.node,J=x.intersections.find(j=>j.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(j){p("message",{variant:"error",title:"cannot swap tasks",message:`${j.message}, ${j.messageOptions}`}),D.position=a.value}else D.position=a.value}else x.node.position=a.value;k(),x.node.style={...x.node.style,zIndex:5},a.value=null});const N=r.computed(()=>{var x;return(x=n.flowGraph)!=null&&x.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(x=>{k(),o.value.filter(D=>D.id!==x.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(x.node.id+".")||x.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(j=>D.id.startsWith(j))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),x.intersections&&!b(x.intersections,x.node)&&x.intersections.filter(D=>D.type==="task").length===1&&(x.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),x.node.style={...x.node.style,outline:"0.5px solid "+Fe("--bs-primary")},x.node.class="rounded-3")});const b=(x,D)=>{const J=x.filter(j=>j.type==="task").map(j=>ge.afterLastDot(j.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 x.filter(j=>j.type==="trigger").length>0?"triggererror":null},T=(x,D,J=!1)=>{const j=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(x)),F=x.replace(st,"");C.value.add(F),m.value=m.value.concat(j.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([j.cluster.uid]),h.value={...h.value,[j.cluster.uid]:F,[j.start]:F,[j.end]:F};for(let ne of j.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},O=x=>{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(x.type)&&!n.expandedSubflows.includes(x.id)){p("expand-subflow",[...n.expandedSubflows,x.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(x.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=r.ref(!0),V=r.ref(!1),W=()=>V.value=!V.value;function Z(x){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:x,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(x,D)=>(r.openBlock(),r.createBlock(r.unref(te.VueFlow),{id:e.id,"default-marker-color":r.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":r.withCtx(J=>[r.createVNode(j_,r.mergeProps(J,{onCollapse:D[0]||(D[0]=j=>T(j,!0))}),null,16)]),"node-dot":r.withCtx(J=>[r.createVNode(nE,r.normalizeProps(r.guardReactiveProps(J)),null,16)]),"node-task":r.withCtx(J=>[r.createVNode(by,r.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=j=>p(r.unref(H).EDIT,j)),onDelete:D[2]||(D[2]=j=>p(r.unref(H).DELETE,j)),onExpand:D[3]||(D[3]=j=>O(j)),onOpenLink:D[4]||(D[4]=j=>p(r.unref(H).OPEN_LINK,j)),onShowLogs:D[5]||(D[5]=j=>p(r.unref(H).SHOW_LOGS,j)),onShowDescription:D[6]||(D[6]=j=>p(r.unref(H).SHOW_DESCRIPTION,j)),onShowCondition:D[7]||(D[7]=j=>p(r.unref(H).SHOW_CONDITION,j)),onMouseover:D[8]||(D[8]=j=>y(j)),onMouseleave:D[9]||(D[9]=j=>g()),onAddError:D[10]||(D[10]=j=>p("on-add-flowable-error",j)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":r.withCtx(J=>[r.createVNode(Cy,r.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=j=>p(r.unref(H).DELETE,j)),onEdit:D[12]||(D[12]=j=>p(r.unref(H).EDIT,j)),onShowDescription:D[13]||(D[13]=j=>p(r.unref(H).SHOW_DESCRIPTION,j))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":r.withCtx(J=>[r.createVNode(Vy,r.mergeProps(J,{onExpand:D[14]||(D[14]=j=>O(j))}),null,16)]),"edge-edge":r.withCtx(J=>[r.createVNode(gE,r.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=j=>p(r.unref(H).ADD_TASK,j)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:r.withCtx(()=>[r.createVNode(r.unref(V_),{"pattern-color":R?r.unref(Fe)("--bs-grey-500"):r.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(r.openBlock(),r.createBlock(r.unref(wn.Controls),{key:0,"show-interactive":!1},{default:r.withCtx(()=>[e.toggleOrientationButton?(r.openBlock(),r.createBlock(r.unref(wn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.isHorizontal?Gy:qy)))]),_:1})):r.createCommentVNode("",!0),r.createVNode(r.unref(wn.ControlButton),{onClick:W},{default:r.withCtx(()=>[r.createVNode(Zy)]),_:1}),V.value?(r.openBlock(),r.createElementBlock("ul",z0,[r.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),r.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):r.createCommentVNode("",!0)]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),j0=K(W0,[["__scopeId","data-v-5655b4c8"]]),K0={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y0=["aria-hidden","aria-label"],X0=["fill","width","height"],Z0={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},J0={key:0};function Q0(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Z0,[n.title?(r.openBlock(),r.createElementBlock("title",J0,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,X0))],16,Y0)}const eb=K(K0,[["render",Q0]]),tb={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nb=["aria-hidden","aria-label"],rb=["fill","width","height"],ib={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"},ab={key:0};function ob(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",ib,[n.title?(r.openBlock(),r.createElementBlock("title",ab,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,rb))],16,nb)}const sb=K(tb,[["render",ob]]),lb={key:0,class:"language"},ub=["innerHTML"],cb=r.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:r.shallowRef(sb),Check:r.shallowRef(eb)},n=e,i=r.ref(!1),a=r.ref(),o=r.shallowRef(t.ContentCopy.value),s=r.ref(),l=r.ref(),u=r.computed(()=>n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function c(){i.value=!0,a.value&&r.nextTick(()=>{s.value&&l.value&&lh.createPopper(s.value,l.value,{placement:"left"})})}function d(){clearTimeout(a.value),navigator.clipboard.writeText(n.code.trimEnd()),o.value=t.Check.value,a.value=setTimeout(()=>{o.value=t.ContentCopy.value,a.value=void 0},2e3)}return(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"code-block",onMouseover:c,onMouseleave:h[0]||(h[0]=m=>i.value=!1)},[f.language&&!i.value?(r.openBlock(),r.createElementBlock("div",lb,r.toDisplayString(f.language),1)):r.createCommentVNode("",!0),i.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{onClick:d}))],512),a.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[r.createTextVNode(" Copied! "),r.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",{innerHTML:u.value},null,8,ub)],32))}}),Yc=K(cb,[["__scopeId","data-v-a899f6a1"]]),db={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fb=["aria-hidden","aria-label"],hb=["fill","width","height"],mb={d:"M10,17L15,12L10,7V17Z"},pb={key:0};function gb(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",mb,[n.title?(r.openBlock(),r.createElementBlock("title",pb,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,hb))],16,fb)}const vb=K(db,[["render",gb]]),_b={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Eb=["aria-hidden","aria-label"],yb=["fill","width","height"],bb={d:"M7,10L12,15L17,10H7Z"},kb={key:0};function Cb(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",bb,[n.title?(r.openBlock(),r.createElementBlock("title",kb,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,yb))],16,Eb)}const Nb=K(_b,[["render",Cb]]),wb=["id","open"],Sb={class:"d-flex gap-2 align-items-center"},Lb={key:0,class:"d-flex flex-grow-1"},Tb=["id"],Ib=r.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,i=r.ref(!0),a=Zt.useRoute(),o=Zt.useRouter(),s=t,l=r.computed(()=>`#${n.href}-body`),u=d=>{d.preventDefault(),i.value=!i.value,c.value=!i.value,i.value||s("expand"),o.replace({hash:i.value?"":l.value})},c=r.ref(!1);return r.watch(()=>n.initiallyExpanded,d=>{d!==void 0&&(c.value=d,i.value=!d)},{immediate:!0}),r.watch(()=>a.hash,d=>{d===l.value&&i.value&&(c.value=!0,i.value=!1)},{immediate:!0}),(d,f)=>(r.openBlock(),r.createElementBlock("details",{id:d.href,open:c.value},[r.createElementVNode("summary",{class:r.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:i.value}]),onClick:u},[r.createElementVNode("span",Sb,[d.arrow?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value?vb:Nb),{key:0,class:"arrow"})):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(d.clickableText)+" ",1),r.renderSlot(d.$slots,"additionalButtonText",{},void 0,!0)]),d.$slots.buttonRight?(r.openBlock(),r.createElementBlock("span",Lb,[r.renderSlot(d.$slots,"buttonRight",{collapsed:i.value},void 0,!0)])):r.createCommentVNode("",!0)],2),d.$slots.content?(r.openBlock(),r.createElementBlock("div",{key:0,id:d.href+"-body"},[r.createElementVNode("div",null,[r.renderSlot(d.$slots,"content",{},void 0,!0)])],8,Tb)):r.createCommentVNode("",!0)],8,wb))}}),an=K(Ib,[["__scopeId","data-v-309ae3b9"]]);function Wt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function If(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function Ab(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 Ob(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function Af(e){const t={},n=Wt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Wt).filter(i=>i!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Wt(e.additionalProperties):e.items&&(t.subType=Wt(e.items)),t}const Rb={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Db=["aria-hidden","aria-label"],Pb=["fill","width","height"],Bb={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Vb={key:0};function Mb(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Bb,[n.title?(r.openBlock(),r.createElementBlock("title",Vb,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,Pb))],16,Db)}const xb=K(Rb,[["render",Mb]]),$b={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qb=["aria-hidden","aria-label"],Fb=["fill","width","height"],Ub={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"},Hb={key:0};function Gb(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Ub,[n.title?(r.openBlock(),r.createElementBlock("title",Hb,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,Fb))],16,qb)}const Of=K($b,[["render",Gb]]),zb={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wb=["aria-hidden","aria-label"],jb=["fill","width","height"],Kb={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"},Yb={key:0};function Xb(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Kb,[n.title?(r.openBlock(),r.createElementBlock("title",Yb,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,jb))],16,Wb)}const Zb=K(zb,[["render",Xb]]),Jb={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qb=["aria-hidden","aria-label"],ek=["fill","width","height"],tk={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},nk={key:0};function rk(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",tk,[n.title?(r.openBlock(),r.createElementBlock("title",nk,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,ek))],16,Qb)}const Rf=K(Jb,[["render",rk]]),ik={class:"me-3"},ak={class:"d-flex flex-column"},ok=r.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=r.computed(()=>{switch(t.type){case"success":return Zb;case"info":return Ja;case"warning":return Rf;case"danger":return Za;default:return Ja}});return(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass("doc-alert alert alert-"+i.type),role:"alert"},[r.createElementVNode("div",ik,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),r.createElementVNode("div",ak,[r.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}}),sk=K(ok,[["__scopeId","data-v-f7fd8bc1"]]),lk={class:"property-detail"},uk={key:0},ck=["href"],dk={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},fk={class:"ref-type"},hk={key:1,class:"type-box rounded fs-7 px-2 py-1"},mk={key:1},pk={class:"border rounded px-2 py-1"},gk={key:2},vk={class:"border rounded px-2 py-1"},_k={key:3},Ek={class:"border rounded px-2 py-1"},yk={key:4},bk={class:"border rounded px-2 py-1"},kk={key:5},Ck={class:"border rounded px-2 py-1"},Nk={key:6},wk={class:"border rounded px-2 py-1"},Sk={key:7},Lk={class:"border rounded px-2 py-1"},Tk={key:8},Ik={class:"border rounded px-2 py-1"},Ak={key:9},Ok={class:"border rounded px-2 py-1"},Rk={key:10},Dk={class:"border rounded px-2 py-1"},Pk={key:11},Bk={class:"border rounded px-2 py-1"},Vk={key:12},Mk={class:"border rounded px-2 py-1"},xk={key:13},$k={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},qk={key:14},Fk={class:"property-description markdown"},Uk={key:2},Hk=r.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=r.ref(Af(t.property).subType),i=r.ref(Ab(t.property)),a=o=>o.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(o,s)=>(r.openBlock(),r.createElementBlock("div",lk,[n.value?(r.openBlock(),r.createElementBlock("div",uk,[s[1]||(s[1]=r.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(r.openBlock(),r.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("button",dk,[r.createElementVNode("span",fk,r.toDisplayString(r.unref(If)(n.value)),1),r.createVNode(Of)])],8,ck)):(r.openBlock(),r.createElementBlock("span",hk,r.toDisplayString(n.value),1))])):r.createCommentVNode("",!0),o.property.default!==void 0?(r.openBlock(),r.createElementBlock("div",mk,[s[2]||(s[2]=r.createElementVNode("span",null," Default ",-1)),r.createElementVNode("code",pk,r.toDisplayString(o.property.default),1)])):r.createCommentVNode("",!0),o.property.pattern!==void 0?(r.openBlock(),r.createElementBlock("div",gk,[s[3]||(s[3]=r.createElementVNode("span",null," Validation RegExp ",-1)),r.createElementVNode("code",vk,r.toDisplayString(o.property.pattern),1)])):r.createCommentVNode("",!0),o.property.unit!==void 0&&o.property.unit.trim().length>0?(r.openBlock(),r.createElementBlock("div",_k,[s[4]||(s[4]=r.createElementVNode("span",null," Unit ",-1)),r.createElementVNode("code",Ek,r.toDisplayString(o.property.unit),1)])):r.createCommentVNode("",!0),o.property.minLength!==void 0?(r.openBlock(),r.createElementBlock("div",yk,[s[5]||(s[5]=r.createElementVNode("span",null," Min length ",-1)),r.createElementVNode("code",bk,r.toDisplayString(o.property.minLength),1)])):r.createCommentVNode("",!0),o.property.maxLength!==void 0?(r.openBlock(),r.createElementBlock("div",kk,[s[6]||(s[6]=r.createElementVNode("span",null," Max length ",-1)),r.createElementVNode("code",Ck,r.toDisplayString(o.property.maxLength),1)])):r.createCommentVNode("",!0),o.property.minItems!==void 0?(r.openBlock(),r.createElementBlock("div",Nk,[s[7]||(s[7]=r.createElementVNode("span",null," Min items ",-1)),r.createElementVNode("code",wk,r.toDisplayString(o.property.minItems),1)])):r.createCommentVNode("",!0),o.property.maxItems!==void 0?(r.openBlock(),r.createElementBlock("div",Sk,[s[8]||(s[8]=r.createElementVNode("span",null," Max items ",-1)),r.createElementVNode("code",Lk,r.toDisplayString(o.property.maxItems),1)])):r.createCommentVNode("",!0),o.property.minimum!==void 0?(r.openBlock(),r.createElementBlock("div",Tk,[s[9]||(s[9]=r.createElementVNode("span",null," Minimum ",-1)),r.createElementVNode("code",Ik," >= "+r.toDisplayString(o.property.minimum),1)])):r.createCommentVNode("",!0),o.property.exclusiveMinimum!==void 0?(r.openBlock(),r.createElementBlock("div",Ak,[s[10]||(s[10]=r.createElementVNode("span",null," Minimum ",-1)),r.createElementVNode("code",Ok," > "+r.toDisplayString(o.property.minimum),1)])):r.createCommentVNode("",!0),o.property.maximum!==void 0?(r.openBlock(),r.createElementBlock("div",Rk,[s[11]||(s[11]=r.createElementVNode("span",null," Maximum ",-1)),r.createElementVNode("code",Dk," <= "+r.toDisplayString(o.property.maximum),1)])):r.createCommentVNode("",!0),o.property.exclusiveMaximum!==void 0?(r.openBlock(),r.createElementBlock("div",Pk,[s[12]||(s[12]=r.createElementVNode("span",null," Maximum ",-1)),r.createElementVNode("code",Bk," < "+r.toDisplayString(o.property.maximum),1)])):r.createCommentVNode("",!0),o.property.format!==void 0?(r.openBlock(),r.createElementBlock("div",Vk,[s[13]||(s[13]=r.createElementVNode("span",null," Format ",-1)),r.createElementVNode("code",Mk,r.toDisplayString(o.property.format),1)])):r.createCommentVNode("",!0),i.value!==void 0?(r.openBlock(),r.createElementBlock("div",xk,[s[14]||(s[14]=r.createElementVNode("span",null," Possible Values ",-1)),r.createElementVNode("div",$k,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(l,u)=>(r.openBlock(),r.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},r.toDisplayString(l),1))),128))])])):r.createCommentVNode("",!0),o.property.title!==void 0||o.property.description!==void 0?(r.openBlock(),r.createElementBlock("div",qk,[r.createElementVNode("div",Fk,[o.property.title!==void 0?r.renderSlot(o.$slots,"markdown",{key:0,content:a(o.property.title)},void 0,!0):r.createCommentVNode("",!0),o.property.description!==void 0?r.renderSlot(o.$slots,"markdown",{key:1,content:a(o.property.description)},void 0,!0):r.createCommentVNode("",!0),o.property.$internalStorageURI?(r.openBlock(),r.createElementBlock("div",Uk,[r.createVNode(sk,{type:"info"},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}}),Gk=K(Hk,[["__scopeId","data-v-79715a4e"]]),zk={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wk=["aria-hidden","aria-label"],jk=["fill","width","height"],Kk={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Yk={key:0};function Xk(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",Kk,[n.title?(r.openBlock(),r.createElementBlock("title",Yk,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,jk))],16,Wk)}const Zk=K(zk,[["render",Xk]]),Jk={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={d:"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"},nC={key:0};function rC(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",tC,[n.title?(r.openBlock(),r.createElementBlock("title",nC,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,eC))],16,Qk)}const iC=K(Jk,[["render",rC]]),aC={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oC=["aria-hidden","aria-label"],sC=["fill","width","height"],lC={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"},uC={key:0};function cC(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",lC,[n.title?(r.openBlock(),r.createElementBlock("title",uC,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,sC))],16,oC)}const dC=K(aC,[["render",cC]]),fC={class:"border overflow-hidden"},hC={class:"d-flex flex-grow-1 align-items-center justify-content-between"},mC={class:"d-flex gap-2"},pC={class:"d-flex flex-wrap gap-2"},gC=["href"],vC={class:"ref-type"},_C={key:1,class:"type-box rounded fs-7 px-2 py-1"},EC=r.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},forceInclude:{default:()=>[]}},emits:["expand"],setup(e,{emit:t}){const n=e,i=t,a=r.ref(!1);r.watch(a,l=>{l&&i("expand")});const o=l=>{var u;return l.$dynamic===!0?!0:l.$dynamic===!1?!1:((u=l.anyOf)==null?void 0:u.some(c=>c.$dynamic===!0))??!1};function s(l){const u=[],c=[];for(const h in l)typeof l[h]=="object"&&(l[h]=Ob(l[h]),l[h].$required?u.push(h):c.push(h));const d=[...u.sort(),...c.sort()],f={};return d.forEach(h=>{var m;(!l[h].$deprecated||(m=n.forceInclude)!=null&&m.includes(h))&&(f[h]=l[h])}),f}return(l,u)=>(r.openBlock(),r.createBlock(an,{class:"section-collapsible","clickable-text":l.sectionName,href:l.href,onExpand:u[2]||(u[2]=c=>i("expand")),"initially-expanded":l.initiallyExpanded||a.value},r.createSlots({_:2},[Object.keys(l.properties??{}).length>0?{name:"content",fn:r.withCtx(()=>[r.createElementVNode("div",fC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s(l.properties),(c,d)=>(r.openBlock(),r.createBlock(an,{class:"property",key:d,arrow:!1,"clickable-text":d,href:l.href+"_"+d,onExpand:u[1]||(u[1]=f=>a.value=!0)},{additionalButtonText:r.withCtx(()=>[c.$required?(r.openBlock(),r.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:r.withCtx(()=>u[3]||(u[3]=[r.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):r.createCommentVNode("",!0)]),buttonRight:r.withCtx(({collapsed:f})=>[r.createElementVNode("span",hC,[r.createElementVNode("span",mC,[l.showDynamic&&!o(c)?(r.openBlock(),r.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:r.withCtx(()=>[r.createVNode(iC,{class:"text-info"})]),_:1})):r.createCommentVNode("",!0),c.$beta?(r.openBlock(),r.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:r.withCtx(()=>[r.createVNode(dC,{class:"text-warning"})]),_:1})):r.createCommentVNode("",!0),c.$deprecated?(r.openBlock(),r.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:r.withCtx(()=>[r.createVNode(Rf,{class:"text-warning"})]),_:1})):r.createCommentVNode("",!0)]),r.createElementVNode("span",pC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Af)(c).types,h=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:h},[h.startsWith("#")?(r.openBlock(),r.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:h,onClick:u[0]||(u[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("span",vC,r.toDisplayString(r.unref(If)(h)),1),r.createVNode(Of)],8,gC)):(r.openBlock(),r.createElementBlock("span",_C,r.toDisplayString(h),1))],64))),128)),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(f?xb:Zk),{class:"arrow"}))])])]),content:r.withCtx(()=>[r.createVNode(Gk,{property:c},{markdown:r.withCtx(({content:f})=>[r.renderSlot(l.$slots,"markdown",{content:f},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),jt=K(EC,[["__scopeId","data-v-0d36ff40"]]),yC={class:"d-flex flex-column gap-6"},bC={key:0,class:"alert alert-info",role:"alert"},kC={key:1,class:"plugin-title markdown"},CC={key:2,class:"markdown"},NC={class:"d-flex flex-column gap-4"},wC={class:"d-flex flex-column gap-3"},SC={class:"markdown"},LC={key:0,class:"w-100 align-self-center"},TC={class:"markdown"},IC={class:"markdown"},AC={class:"markdown"},OC={class:"d-flex flex-column gap-7 ps-3"},RC={class:"markdown"},DC=r.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]}},async setup(e){let t,n;const i=e,a=r.ref(!1),o=r.ref(new Set),s=r.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!i.schema.definitions){o.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in i.schema.definitions){a.value=!0,s.value+=1,o.value.clear(),o.value.add(k),await r.nextTick();let b=0;const T=30,O=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(O))};requestAnimationFrame(O)}else o.value.clear()};r.watch([()=>i.schema,()=>i.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&i.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=i.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
26
26
  type: "${i.pluginType}"
27
27
  `.concat(g.code)},c=r.ref(null),d=r.computed(()=>{var g;return(g=i.schema.properties)==null?void 0:g.$examples}),f=r.computed(()=>{var g,k;return Object.fromEntries((k=(g=i.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]=r.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,n(),t);c.value=([t,n]=r.withAsyncContext(()=>v({themes:[i.darkMode?m:h],langs:[C,E,_],engine:p()})),t=await t,n(),t);const y="github-"+(i.darkMode?"dark":"light");return r.onMounted(()=>{l(),window.addEventListener("hashchange",l)}),r.onUnmounted(()=>{var g;window.removeEventListener("hashchange",l),(g=c.value)==null||g.dispose()}),(g,k)=>{var N,b,T,O,R,U;return r.openBlock(),r.createElementBlock("div",yC,[r.createElementVNode("div",null,[(N=g.schema.properties)!=null&&N.$beta?(r.openBlock(),r.createElementBlock("div",bC,k[0]||(k[0]=[r.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)]))):r.createCommentVNode("",!0),(b=g.schema.properties)!=null&&b.title?(r.openBlock(),r.createElementBlock("div",kC,[r.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):r.createCommentVNode("",!0),(T=g.schema.properties)!=null&&T.description?(r.openBlock(),r.createElementBlock("div",CC,[r.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(Yc,{highlighter:c.value,language:"yaml",theme:y,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(r.openBlock(),r.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[d.value?(r.openBlock(),r.createBlock(an,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:r.withCtx(()=>[r.createElementVNode("div",NC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(V,W)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:g.pluginType+"-"+W},[r.createElementVNode("div",wC,[r.createElementVNode("div",SC,[V.title?r.renderSlot(g.$slots,"markdown",{key:0,content:V.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):r.createCommentVNode("",!0)]),V.code?(r.openBlock(),r.createBlock(Yc,{key:0,highlighter:c.value,language:V.lang??"yaml",theme:y,code:u(V)},null,8,["highlighter","language","code"])):r.createCommentVNode("",!0)]),W<d.value.length-1?(r.openBlock(),r.createElementBlock("hr",LC)):r.createCommentVNode("",!0)],64))),128))])]),_:3})):r.createCommentVNode("",!0),(O=g.schema.properties)!=null&&O.properties?(r.openBlock(),r.createBlock(jt,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded,"force-include":g.forceIncludeProperties},{markdown:r.withCtx(({content:V})=>[r.createElementVNode("div",TC,[r.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include"])):r.createCommentVNode("",!0),(R=g.schema.outputs)!=null&&R.properties&&Object.keys(g.schema.outputs.properties).length>0?(r.openBlock(),r.createBlock(jt,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:r.withCtx(({content:V})=>[r.createElementVNode("div",IC,[r.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):r.createCommentVNode("",!0),(U=g.schema.properties)!=null&&U.$metrics?(r.openBlock(),r.createBlock(jt,{key:3,class:"plugin-section",properties:f.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:r.withCtx(({content:V})=>[r.createElementVNode("div",AC,[r.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):r.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(r.openBlock(),r.createBlock(an,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${g.pluginType}-${s.value}`},{content:r.withCtx(()=>[r.createElementVNode("div",OC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Object.entries(g.schema.definitions),([V,W])=>(r.openBlock(),r.createBlock(jt,{properties:W.properties,"section-name":W.title??V.split("_")[0],href:V,"show-dynamic":!1,"initially-expanded":o.value.has(V),key:g.pluginType+"-"+V,class:"plugin-section nested-button-py-2",onExpand:Z=>{a.value=!0,o.value.add(V)}},{markdown:r.withCtx(({content:Z})=>[r.createElementVNode("div",RC,[r.renderSlot(g.$slots,"markdown",{content:Z},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):r.createCommentVNode("",!0)]))])}}}),PC=K(DC,[["__scopeId","data-v-5953ec4c"]]),BC={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},VC=["aria-hidden","aria-label"],MC=["fill","width","height"],xC={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},$C={key:0};function qC(e,t,n,i,a,o){return r.openBlock(),r.createElementBlock("span",r.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))}),[(r.openBlock(),r.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[r.createElementVNode("path",xC,[n.title?(r.openBlock(),r.createElementBlock("title",$C,r.toDisplayString(n.title),1)):r.createCommentVNode("",!0)])],8,MC))],16,VC)}const FC=K(BC,[["render",qC]]),UC=["href"],HC=["src","alt"],GC=r.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=Zt.useRoute(),i=r.computed(()=>t.href===void 0?`${n}/${pt(t.text)}`:t.href);return(a,o)=>(r.openBlock(),r.createElementBlock("a",{href:i.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[r.createElementVNode("img",{src:a.iconB64Svg,alt:`${a.text} icon`},null,8,HC),r.createTextVNode(r.toDisplayString(a.text)+" ",1),r.createVNode(FC,{class:"ms-auto"})],8,UC))}}),Xc=K(GC,[["__scopeId","data-v-b787c0f3"]]),zC={class:"d-flex flex-column gap-4"},WC={key:1,class:"d-flex flex-column"},jC=["id"],KC={class:"d-flex flex-column"},YC=r.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=r.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:pt(Nt(f))===t.subGroup)),i=r.computed(()=>{var f,h;return((f=n.value)==null?void 0:f.longDescription)??((h=n.value)==null?void 0:h.description)}),a=r.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),o=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=Zt.useRoute(),l=f=>`${s}/${pt(f)}`,u=f=>`${s}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>Vd(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m.filter(({deprecated:C})=>!C).map(({cls:C})=>C)]))}const d=r.computed(()=>c(n.value));return(f,h)=>(r.openBlock(),r.createElementBlock("div",zC,[i.value!==void 0?r.renderSlot(f.$slots,"markdown",{key:0,content:i.value.replaceAll(/ *:(?![ /])/g,": ")}):r.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(r.openBlock(),r.createElementBlock("div",WC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,m=>(r.openBlock(),r.createBlock(Xc,{id:`group-${r.unref(pt)(r.unref(Nt)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[m.subGroup]??f.icons[m.group]),text:r.unref(Nt)(m),href:l(r.unref(Nt)(m)),key:r.unref(Nt)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:2},r.renderList(d.value,(m,C)=>(r.openBlock(),r.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[r.createElementVNode("h4",{id:`section-${r.unref(pt)(C)}`,class:"text-capitalize"},r.toDisplayString(C),9,jC),r.createElementVNode("div",KC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m,E=>(r.openBlock(),r.createBlock(Xc,{id:r.unref(pt)(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:o(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))]))}}),XC=/"(?:_|\\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*:/,ZC=/"(?: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*:/,JC=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function QC(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){eN(e);return}return t}function eN(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function tN(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(!JC.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(XC.test(e)||ZC.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,QC)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}const nN=/\d/,rN=["-","_","/","."];function iN(e=""){if(!nN.test(e))return e!==e.toLowerCase()}function Df(e,t){const n=rN,i=[];if(!e||typeof e!="string")return i;let a="",o,s;for(const l of e){const u=n.includes(l);if(u===!0){i.push(a),a="",o=void 0;continue}const c=iN(l);if(s===!1){if(o===!1&&c===!0){i.push(a),a=l,o=c;continue}if(o===!0&&c===!1&&a.length>1){const d=a.at(-1);i.push(a.slice(0,Math.max(0,a.length-1))),a=d+l,o=c;continue}}a+=l,o=c,s=u}return i.push(a),i}function aN(e){return e?e[0].toUpperCase()+e.slice(1):""}function Pf(e,t){return e?(Array.isArray(e)?e:Df(e)).map(n=>aN(n)).join(""):""}function oN(e,t){return e?(Array.isArray(e)?e:Df(e)).map(n=>n.toLowerCase()).join("-"):""}class xt{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}xt.prototype.normal={};xt.prototype.property={};xt.prototype.space=void 0;function Bf(e,t){const n={},i={};for(const a of e)Object.assign(n,a.property),Object.assign(i,a.normal);return new xt(n,i,t)}function fo(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 sN=0;const Q=yt(),ke=yt(),Vf=yt(),M=yt(),de=yt(),St=yt(),qe=yt();function yt(){return 2**++sN}const ho=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ke,commaOrSpaceSeparated:qe,commaSeparated:St,number:M,overloadedBoolean:Vf,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),Xa=Object.keys(ho);class Mo extends Ve{constructor(t,n,i,a){let o=-1;if(super(t,n),Zc(this,"space",a),typeof i=="number")for(;++o<Xa.length;){const s=Xa[o];Zc(this,Xa[o],(i&ho[s])===ho[s])}}}Mo.prototype.defined=!0;function Zc(e,t,n){n&&(e[t]=n)}function At(e){const t={},n={};for(const[i,a]of Object.entries(e.properties)){const o=new Mo(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[fo(i)]=i,n[fo(o.attribute)]=i}return new xt(t,n,e.space)}const Mf=At({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,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:M,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:de,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:ke,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xf(e,t){return t in e?e[t]:t}function $f(e,t){return xf(e,t.toLowerCase())}const lN=At({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:St,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:M,colSpan:null,content:null,contentEditable:ke,controls:Q,controlsList:de,coords:M|St,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:Vf,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:de,height:M,hidden:Q,high:M,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:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,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:M,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:M,rowSpan:M,sandbox:de,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ke,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:$f}),uN=At({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:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className: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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:St,g2:St,glyphName:St,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xf}),qf=At({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()}}),Ff=At({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$f}),Uf=At({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cN=/[A-Z]/g,Jc=/-[a-z]/g,dN=/^data[-\w.:]+$/i;function fN(e,t){const n=fo(t);let i=t,a=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&dN.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Jc,mN);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Jc.test(o)){let s=o.replace(cN,hN);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Mo}return new a(i,t)}function hN(e){return"-"+e.toLowerCase()}function mN(e){return e.charAt(1).toUpperCase()}const pN=Bf([Mf,lN,qf,Ff,Uf],"html");Bf([Mf,uN,qf,Ff,Uf],"svg");const xo=["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"],gN=["p","h1","h2","h3","h4","h5","h6","li"];function on(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function $o(e){return on(e,"text")||on(e,Symbol.for("v-txt"))}function Hf(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 sn(e){if(!e)return"";if(Array.isArray(e))return e.map(sn).join("");if($o(e))return e.value||e.children||"";const t=Hf(e);return Array.isArray(t)?t.map(sn).filter(Boolean).join(""):""}function Gf(e,t=[]){if(Array.isArray(e))return e.flatMap(i=>Gf(i,t));let n=e;return t.some(i=>i==="*"||on(e,i))&&(n=Hf(e)||e,!Array.isArray(n)&&gN.some(i=>on(e,i))&&(n=[n])),n}function zf(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>zf(Gf(n,[t[0]]),t.slice(1))).filter(n=>!($o(n)&&sn(n).trim()==="")):e}function Wf(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?zf(e,t).reduce((n,i)=>($o(i)?typeof n[n.length-1]=="string"?n[n.length-1]+=i.children:n.push(i.children):n.push(i),n),[]):e}function vN(e,t){return t.reduce((n,i)=>{const a=_N(e,i);return a!==void 0&&(n[i]=a),n},{})}function _N(e,t){return t.split(".").reduce((n,i)=>n&&n[i],e)}const mo="default",jf=/^@|^v-on:/,Kf=/^:|^v-bind:/,EN=/^v-model/,yN=["select","textarea","input"],bN=["math","svg"],kN=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}`])),CN=r.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=r.getCurrentInstance())==null?void 0:c.appContext)==null?void 0:d.app,n=t==null?void 0:t.$nuxt,i=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:a}=((f=n==null?void 0:n.$config)==null?void 0:f.public)||{},o={...(h=a==null?void 0:a.components)!=null&&h.prose&&e.prose!==!1?kN:{},...((m=a==null?void 0:a.components)==null?void 0:m.map)||{},...r.toRaw(((E=(C=e.data)==null?void 0:C.mdc)==null?void 0:E.components)||{}),...e.components},s=r.computed(()=>{var p;const _=(((p=e.body)==null?void 0:p.children)||[]).map(v=>v.tag||v.type).filter(v=>!xo.includes(v));return Array.from(new Set(_)).sort().join(".")}),l=r.reactive({...e.data});r.watch(()=>e.data,_=>{Object.assign(l,_)}),await PN(e.body,{tags:o});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:o,contentKey:s,route:i,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:n,body:i,data:a,contentKey:o,route:s,unwrap:l,runtimeData:u,updateRuntimeData:c}=e;if(!i)return null;const d={...a,tags:t,$route:s,runtimeData:u,updateRuntimeData:c},f=n!==!1?po(n||((m=d.component)==null?void 0:m.name)||d.component||"div"):void 0;return f?r.h(f,{...(C=d.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:o},{default:h}):h==null?void 0:h();function h(){const E=Yf(i,r.h,{documentMeta:d,parentScope:d,resolveComponent:po});return E!=null&&E.default?l?Wf(E.default(),typeof l=="string"?l.split(" "):["*"]):E.default():null}}});function NN(e,t,n){const{documentMeta:i,parentScope:a,resolveComponent:o}=n;if(e.type==="text")return t(r.Text,e.value);if(e.type==="comment")return t(r.Comment,null,e.value);const s=e.tag,l=Zf(e,i.tags);if(e.tag==="binding")return wN(e,t,i,a);const u=Xf(l)?f=>f:o;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
28
28
  `+sn(e)+`
29
- <\/script>`);const c=u(l);typeof c=="object"&&(c.tag=s);const d=SN(e,i);return t(c,d,Yf(e,t,{documentMeta:i,parentScope:{...a,...d},resolveComponent:u}))}function Yf(e,t,n){const{documentMeta:i,parentScope:a,resolveComponent:o}=n,l=(e.children||[]).reduce((c,d)=>{if(!RN(d))return c[mo].children.push(d),c;const f=ON(d);return c[f]=c[f]||{props:{},children:[]},d.type==="element"&&(c[f].props=d.props,c[f].children.push(...d.children||[])),c},{[mo]:{props:{},children:[]}});return Object.entries(l).reduce((c,[d,{props:f,children:h}])=>(h.length&&(c[d]=(m={})=>{const C=vN(m,Object.keys(f||{}));let E=h.map(_=>NN(_,t,{documentMeta:i,parentScope:{...a,...C},resolveComponent:o}));return f!=null&&f.unwrap&&(E=Wf(E,f.unwrap)),DN(E)}),c),{})}function wN(e,t,n,i={}){var c,d;const a={...n.runtimeData,...i,$document:n,$doc:n},o=/\.|\[(\d+)\]/,l=((c=e.props)==null?void 0:c.value.trim().split(o).filter(Boolean)).reduce((f,h)=>{if(f&&h in f)return typeof f[h]=="function"?f[h]():f[h]},a),u=(d=e.props)==null?void 0:d.defaultValue;return t(r.Text,l??u??"")}function SN(e,t){const{tag:n="",props:i={}}=e;return Object.keys(i).reduce(function(a,o){if(o==="__ignoreMap")return a;const s=i[o];if(EN.test(o))return LN(o,s,a,t,{native:yN.includes(n)});if(o==="v-bind")return TN(o,s,a,t);if(jf.test(o))return IN(o,s,a,t);if(Kf.test(o))return AN(o,s,a,t);const{attribute:l}=fN(pN,o);return Array.isArray(s)&&s.every(u=>typeof u=="string")?(a[l]=s.join(" "),a):(a[l]=s,a)},{})}function LN(e,t,n,i,{native:a}){var u;const o=((u=e.match(/^v-model:([^=]+)/))==null?void 0:u[1])||"modelValue",s=a?"value":o,l=a?"onInput":`onUpdate:${o}`;return n[s]=Nn(t,i.runtimeData),n[l]=c=>{var d;i.updateRuntimeData(t,a?(d=c.target)==null?void 0:d.value:c)},n}function TN(e,t,n,i){const a=Nn(t,i);return n=Object.assign(n,a),n}function IN(e,t,n,i){return e=e.replace(jf,""),n.on=n.on||{},n.on[e]=()=>Nn(t,i),n}function AN(e,t,n,i){return e=e.replace(Kf,""),n[e]=Nn(t,i),n}const po=e=>{if(typeof e=="string"){if(xo.includes(e))return e;const t=r.resolveComponent(Pf(e),!1);return!e||(t==null?void 0:t.name)==="AsyncComponentWrapper"||typeof t=="string"?t:"setup"in t?r.defineAsyncComponent(()=>new Promise(n=>n(t))):t}return e};function Nn(e,t){const n=e.split(".").reduce((i,a)=>typeof i=="object"?i[a]:void 0,t);return typeof n>"u"?tN(e):n}function ON(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||mo}function RN(e){return e.tag==="template"}function Xf(e){return bN.includes(e)}function DN(e){const t=[];for(const n of e){const i=t[t.length-1];n.type===r.Text&&(i==null?void 0:i.type)===r.Text?i.children=i.children+n.children:t.push(n)}return t}async function PN(e,t){if(!e)return;const n=Array.from(new Set(i(e,t)));await Promise.all(n.map(async a=>{if(a!=null&&a.render||a!=null&&a.ssrRender||a!=null&&a.__ssrInlineRender)return;const o=po(a);o!=null&&o.__asyncLoader&&!o.__asyncResolved&&await o.__asyncLoader()}));function i(a,o){const s=a.tag;if(a.type==="text"||s==="binding"||a.type==="comment")return[];const l=Zf(a,o.tags);if(Xf(l))return[];const u=[];a.type!=="root"&&!xo.includes(l)&&u.push(l);for(const c of a.children||[])u.push(...i(c,o));return u}}function Zf(e,t){var i;const n=e.tag;return!n||typeof((i=e.props)==null?void 0:i.__ignoreMap)<"u"?n:t[n]||t[Pf(n)]||t[oN(e.tag)]||n}const BN=r.defineComponent({__name:"MDCRenderer",setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.Suspense,null,{default:r.withCtx(()=>[r.createVNode(CN,r.mergeProps(t.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=st;exports.DependenciesNode=I_;exports.EVENTS=H;exports.MDCRenderer=BN;exports.NODE_SIZES=Ze;exports.PluginIndex=YC;exports.SECTIONS=Qe;exports.STATES=re;exports.SchemaToHtml=PC;exports.State=Ce;exports.TaskIcon=Do;exports.Topology=jb;exports.Utils=ge;exports.VueFlowUtils=Kt;exports.YamlUtils=gh;exports.cssVariable=Fe;exports.editorViewTypes=dh;exports.executeFlowBehaviours=hh;exports.getMDCParser=t1;exports.isEntryAPluginElementPredicate=Vd;exports.logDisplayTypes=ch;exports.slugify=pt;exports.stateDisplayValues=mh;exports.stateGlobalChartTypes=uh;exports.storageKeys=fh;exports.subGroupName=Nt;
29
+ <\/script>`);const c=u(l);typeof c=="object"&&(c.tag=s);const d=SN(e,i);return t(c,d,Yf(e,t,{documentMeta:i,parentScope:{...a,...d},resolveComponent:u}))}function Yf(e,t,n){const{documentMeta:i,parentScope:a,resolveComponent:o}=n,l=(e.children||[]).reduce((c,d)=>{if(!RN(d))return c[mo].children.push(d),c;const f=ON(d);return c[f]=c[f]||{props:{},children:[]},d.type==="element"&&(c[f].props=d.props,c[f].children.push(...d.children||[])),c},{[mo]:{props:{},children:[]}});return Object.entries(l).reduce((c,[d,{props:f,children:h}])=>(h.length&&(c[d]=(m={})=>{const C=vN(m,Object.keys(f||{}));let E=h.map(_=>NN(_,t,{documentMeta:i,parentScope:{...a,...C},resolveComponent:o}));return f!=null&&f.unwrap&&(E=Wf(E,f.unwrap)),DN(E)}),c),{})}function wN(e,t,n,i={}){var c,d;const a={...n.runtimeData,...i,$document:n,$doc:n},o=/\.|\[(\d+)\]/,l=((c=e.props)==null?void 0:c.value.trim().split(o).filter(Boolean)).reduce((f,h)=>{if(f&&h in f)return typeof f[h]=="function"?f[h]():f[h]},a),u=(d=e.props)==null?void 0:d.defaultValue;return t(r.Text,l??u??"")}function SN(e,t){const{tag:n="",props:i={}}=e;return Object.keys(i).reduce(function(a,o){if(o==="__ignoreMap")return a;const s=i[o];if(EN.test(o))return LN(o,s,a,t,{native:yN.includes(n)});if(o==="v-bind")return TN(o,s,a,t);if(jf.test(o))return IN(o,s,a,t);if(Kf.test(o))return AN(o,s,a,t);const{attribute:l}=fN(pN,o);return Array.isArray(s)&&s.every(u=>typeof u=="string")?(a[l]=s.join(" "),a):(a[l]=s,a)},{})}function LN(e,t,n,i,{native:a}){var u;const o=((u=e.match(/^v-model:([^=]+)/))==null?void 0:u[1])||"modelValue",s=a?"value":o,l=a?"onInput":`onUpdate:${o}`;return n[s]=Nn(t,i.runtimeData),n[l]=c=>{var d;i.updateRuntimeData(t,a?(d=c.target)==null?void 0:d.value:c)},n}function TN(e,t,n,i){const a=Nn(t,i);return n=Object.assign(n,a),n}function IN(e,t,n,i){return e=e.replace(jf,""),n.on=n.on||{},n.on[e]=()=>Nn(t,i),n}function AN(e,t,n,i){return e=e.replace(Kf,""),n[e]=Nn(t,i),n}const po=e=>{if(typeof e=="string"){if(xo.includes(e))return e;const t=r.resolveComponent(Pf(e),!1);return!e||(t==null?void 0:t.name)==="AsyncComponentWrapper"||typeof t=="string"?t:"setup"in t?r.defineAsyncComponent(()=>new Promise(n=>n(t))):t}return e};function Nn(e,t){const n=e.split(".").reduce((i,a)=>typeof i=="object"?i[a]:void 0,t);return typeof n>"u"?tN(e):n}function ON(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||mo}function RN(e){return e.tag==="template"}function Xf(e){return bN.includes(e)}function DN(e){const t=[];for(const n of e){const i=t[t.length-1];n.type===r.Text&&(i==null?void 0:i.type)===r.Text?i.children=i.children+n.children:t.push(n)}return t}async function PN(e,t){if(!e)return;const n=Array.from(new Set(i(e,t)));await Promise.all(n.map(async a=>{if(a!=null&&a.render||a!=null&&a.ssrRender||a!=null&&a.__ssrInlineRender)return;const o=po(a);o!=null&&o.__asyncLoader&&!o.__asyncResolved&&await o.__asyncLoader()}));function i(a,o){const s=a.tag;if(a.type==="text"||s==="binding"||a.type==="comment")return[];const l=Zf(a,o.tags);if(Xf(l))return[];const u=[];a.type!=="root"&&!xo.includes(l)&&u.push(l);for(const c of a.children||[])u.push(...i(c,o));return u}}function Zf(e,t){var i;const n=e.tag;return!n||typeof((i=e.props)==null?void 0:i.__ignoreMap)<"u"?n:t[n]||t[Pf(n)]||t[oN(e.tag)]||n}const BN=r.defineComponent({__name:"MDCRenderer",setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.Suspense,null,{default:r.withCtx(()=>[r.createVNode(CN,r.mergeProps(t.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=st;exports.DependenciesNode=I_;exports.EVENTS=H;exports.MDCRenderer=BN;exports.NODE_SIZES=Ze;exports.PluginIndex=YC;exports.SECTIONS=Qe;exports.STATES=re;exports.SchemaToHtml=PC;exports.State=Ce;exports.TaskIcon=Do;exports.Topology=j0;exports.Utils=ge;exports.VueFlowUtils=Kt;exports.YamlUtils=gh;exports.cssVariable=Fe;exports.editorViewTypes=dh;exports.executeFlowBehaviours=hh;exports.getMDCParser=t1;exports.isEntryAPluginElementPredicate=Vd;exports.logDisplayTypes=ch;exports.slugify=pt;exports.stateDisplayValues=mh;exports.stateGlobalChartTypes=uh;exports.storageKeys=fh;exports.subGroupName=Nt;
30
30
  //# sourceMappingURL=kestra-index.cjs.js.map