@kestra-io/ui-libs 0.0.257 → 0.0.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/plugins/SchemaToHtml.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +1 -1
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +2 -2
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/plugins/SchemaToHtml.vue +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaToHtml.vue.d.ts","sourceRoot":"","sources":["../../../src/components/plugins/SchemaToHtml.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaToHtml.vue.d.ts","sourceRoot":"","sources":["../../../src/components/plugins/SchemaToHtml.vue"],"names":[],"mappings":"AAiSI,OAAO,KAAK,EAAe,UAAU,EAAC,MAAM,4BAA4B,CAAC;AAIzE,KAAK,WAAW,GAAG;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAsfN,QAAA,IAAI,OAAO;;CAAU,EAAE,OAAO;;CAAU,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAY,CAAE;AACpJ,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKjD,QAAA,MAAM,UAAU;iBApgBM,OAAO;cAHV,OAAO;4BACO,OAAO;4BACP,MAAM,EAAE;6EAwgBvC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -24,5 +24,5 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
24
24
|
</svg>`));return(r,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[t.createVNode(On,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",dc,[t.createElementVNode("div",fc,[t.createVNode(q,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",mc,[t.createVNode(q,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",pc,[t.renderSlot(r.$slots,"badge-button-before",{},void 0,!0),e.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>r.$emit(t.unref(N.EVENTS).OPEN_LINK,e.data))},[t.createVNode(q,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(El,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),e.data.expandEnabled?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[1]||(i[1]=s=>o(t.unref(N.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(q,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(uc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),hc=P(gc,[["__scopeId","data-v-2271d5b0"]]);var Be=(e=>(e.Lines="lines",e.Dots="dots",e))(Be||{});const _l=function({dimensions:e,size:n,color:o}){return t.h("path",{stroke:o,"stroke-width":n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},kl=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Be.Lines+"",Be.Dots+"";const Ec={[Be.Dots]:"#81818a",[Be.Lines]:"#eee"},_c=["id","x","y","width","height","patternTransform"],kc={key:2,height:"100",width:"100"},yc=["fill"],Cc=["x","y","fill"],vc={name:"Background",compatConfig:{MODE:3}},Nc=t.defineComponent({...vc,props:{id:{},variant:{default:()=>Be.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:0}},setup(e){const{id:n,viewport:o}=ne.useVueFlow(),l=t.computed(()=>{const i=o.value.zoom,[s,c]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*i||1,c*i||1],f=e.size*i,[h,g]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],C=[h*i||1+u[0]/2,g*i||1+u[1]/2];return{scaledGap:u,offset:C,size:f}}),a=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),r=t.toRef(()=>e.color||e.patternColor||Ec[e.variant||Be.Dots]);return(i,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[t.renderSlot(i.$slots,"pattern-container",{id:a.value},()=>[t.createElementVNode("pattern",{id:a.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(i.$slots,"pattern",{},()=>[i.variant===t.unref(Be).Lines?(t.openBlock(),t.createBlock(t.unref(_l),{key:0,size:i.lineWidth,color:r.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===t.unref(Be).Dots?(t.openBlock(),t.createBlock(t.unref(kl),{key:1,color:r.value,radius:l.value.size/2},null,8,["color","radius"])):t.createCommentVNode("",!0),i.bgColor?(t.openBlock(),t.createElementBlock("svg",kc,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,yc)])):t.createCommentVNode("",!0)])],8,_c)]),t.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,Cc),t.renderSlot(i.$slots,"default",{id:a.value})],4))}}),Sc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},bc=["aria-hidden","aria-label"],wc=["fill","width","height"],Lc={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},Tc={key:0};function Ac(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Lc,[o.title?(t.openBlock(),t.createElementBlock("title",Tc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,wc))],16,bc)}const Ic=P(Sc,[["render",Ac]]),Vc={class:"top-button-div text-white d-flex"},Oc={inheritAttrs:!1,components:{Tooltip:q},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const e=this.data.taskNode;if(e?.type?.endsWith("SubflowGraphTask")){const n=e.task.subflowId??e.task;return n.namespace+" "+n.flowId}return N.Utils.afterLastDot(this.id)}}},Bc=Object.assign(Oc,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:ne.Position,default:void 0},targetPosition:{type:ne.Position,default:void 0},id:{type:String,default:void 0}},emits:[N.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,a=()=>{l(N.EVENTS.COLLAPSE,o.id)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(r.clusterName),3),t.createElementVNode("div",Vc,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>a())},[t.createVNode(q,{title:r.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Ic,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),Dc=P(Bc,[["__scopeId","data-v-0c251e77"]]),Pc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$c=["aria-hidden","aria-label"],Rc=["fill","width","height"],Mc={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"},xc={key:0};function Fc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Mc,[o.title?(t.openBlock(),t.createElementBlock("title",xc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Rc))],16,$c)}const yl=P(Pc,[["render",Fc]]),Uc={name:"Dot",components:{Handle:ne.Handle,CircleIcon:yl},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,[N.Utils.afterLastDot(this.data.node.type)]:!0}}}},Hc=Object.assign(Uc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(ne.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(yl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(ne.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),zc=P(Hc,[["__scopeId","data-v-666f472b"]]),Gc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wc=["aria-hidden","aria-label"],jc=["fill","width","height"],Kc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Yc={key:0};function qc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Kc,[o.title?(t.openBlock(),t.createElementBlock("title",Yc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,jc))],16,Wc)}const Xc=P(Gc,[["render",qc]]),Zc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Jc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Zc,[n.addTask?(t.openBlock(),t.createBlock(Xc,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Qc=P(Jc,[["__scopeId","data-v-4afc4738"]]),eu=["id","d","marker-end"],tu=t.defineComponent({inheritAttrs:!1,__name:"EdgeNode",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}},setup(e){const n=e,o=t.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=i=>i;try{const{t:i}=pt();l=i}catch{}const a=t.computed(()=>{const{haveAdd:i}=n.data??{};return`${l("add task")} ${i?.length===2?`${l(i[1])} ${i[0]}`:""}`.trim()}),r=t.computed(()=>ne.getSmoothStepPath(n));return(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[r.value?.length?(t.openBlock(),t.createElementBlock("path",{key:0,id:e.id,class:t.normalizeClass(o.value),style:t.normalizeStyle(e.data.haveDashArray?{strokeDasharray:"2"}:{}),d:r.value[0],"marker-end":e.markerEnd},null,14,eu)):t.createCommentVNode("",!0),r.value?.length?(t.openBlock(),t.createBlock(t.unref(ne.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${r.value[1]}px,${r.value[2]}px)`})},[t.createVNode(q,{title:a.value},{default:t.withCtx(()=>[e.data.haveAdd?(t.openBlock(),t.createBlock(Qc,{key:0,"add-task":!0,onClick:s[0]||(s[0]=c=>i.$emit(t.unref(N.EVENTS).ADD_TASK,e.data.haveAdd)),class:t.normalizeClass({"text-danger":e.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):t.createCommentVNode("",!0)],64))}}),nu=P(tu,[["__scopeId","data-v-5e05a3ec"]]),ou=["innerHTML"],lu=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(C,E)=>{E[0].date!==C[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const a=t.computed(()=>n.histories?.length&&new Date(n.histories[0].date.toString()).getTime()),r=t.computed(()=>n.histories[n.histories.length-1]),i=t.computed(()=>n.histories.filter(C=>C.date.isValid()&&C.date&&C.state));function s(){l.value||(l.value=setInterval(()=>{h(),n.histories&&!te.isRunning(r.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return f()-a.value}function f(){return!n.histories||te.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function h(){o.value=i.value.length===0?" ":N.humanDuration(u()/1e3)}function g(C){return"ks-duration-tt-square-"+C.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(C,E)=>(t.openBlock(),t.createBlock(q,{key:r.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(S,k)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+k,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",g(S.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(S.state)+": ",1),t.createTextVNode(t.toDisplayString(N.dateFilter(S.date.toISOString(),"iso"))+" ",1),E[0]||(E[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,ou)]),_:1}))}}),ru={class:"btn-group content rounded-1 content-children text-truncate"},au={key:0,class:"taskRunCount"},iu={key:1},su={key:2},cu=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=t.computed(()=>o.value.filter(r=>r.taskId===N.afterLastDot(n.uid??""))),a=t.computed(()=>{if(!l.value)return;const r=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>en.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:en(r).subtract(i,"second"),state:"CREATED"},{date:en(r),state:n.state}]});return(r,i)=>(t.openBlock(),t.createElementBlock("div",ru,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",au,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",iu," | ")):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",su,[t.createVNode(lu,{histories:a.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),uu=P(cu,[["__scopeId","data-v-96fa5d6e"]]),du={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fu=["aria-hidden","aria-label"],mu=["fill","width","height"],pu={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"},gu={key:0};function hu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",pu,[o.title?(t.openBlock(),t.createElementBlock("title",gu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mu))],16,fu)}const Eu=P(du,[["render",hu]]),_u={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ku=["aria-hidden","aria-label"],yu=["fill","width","height"],Cu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},vu={key:0};function Nu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Cu,[o.title?(t.openBlock(),t.createElementBlock("title",vu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,yu))],16,ku)}const Bn=P(_u,[["render",Nu]]),Su={class:"icon rounded"},bu={class:"node-content"},wu={class:"d-flex node-title"},Lu={class:"text-truncate task-title"},Tu={key:0,class:"d-flex"},Au={class:"text-white top-button-div"},Iu=t.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[N.EVENTS.EXPAND,N.EVENTS.OPEN_LINK,N.EVENTS.SHOW_LOGS,N.EVENTS.MOUSE_OVER,N.EVENTS.MOUSE_LEAVE,N.EVENTS.ADD_ERROR,N.EVENTS.EDIT,N.EVENTS.DELETE,N.EVENTS.ADD_TASK,N.EVENTS.SHOW_DESCRIPTION],setup(e,{emit:n}){const o=n,l=e;function a(){o(N.EVENTS.MOUSE_OVER,l.data.node)}function r(){o(N.EVENTS.MOUSE_LEAVE)}const i=t.computed(()=>l.data?.expandable||!1),s=t.computed(()=>{const E=l.data.node.task??l.data.node.trigger??null;return E?E.description??null:null}),c=t.computed(()=>N.Utils.afterLastDot(l.id??"")),u=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),f=t.computed(()=>[{"unused-path":l.data.unused,disabled:l.data.node.task?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),h=t.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(l.data.node?.task)return l.data.node.task.type}),g=t.computed(()=>{if(l.data.node.type?.endsWith("SubflowGraphTask")){const E=l.data.node.task.subflowId??l.data.node.task;return E.namespace+" "+E.flowId}return c.value}),C=t.computed(()=>l.title??c.value);return(E,S)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...f.value,"running-border-animation":E.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:E.state?`var(--ks-border-${E.state.toLowerCase()})`:void 0}),onMouseover:a,onMouseleave:r},[t.createElementVNode("div",Su,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E.iconComponent||On),{cls:h.value,class:t.normalizeClass([u.value,"rounded bg-white"]),theme:"light",icons:E.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",bu,[t.createElementVNode("div",wu,[t.createElementVNode("div",Lu,[t.createVNode(q,{title:g.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(C.value),1)]),_:1},8,["title"])]),s.value?(t.openBlock(),t.createElementBlock("span",Tu,[t.createVNode(q,{title:E.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(Eu,{onClick:S[0]||(S[0]=k=>E.$emit(t.unref(N.EVENTS).SHOW_DESCRIPTION,{id:c.value,description:s.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(E.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",Au,[t.renderSlot(E.$slots,"badge-button-before",{},void 0,!0),E.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${E.data.color}`]]),onClick:S[1]||(S[1]=k=>E.$emit(t.unref(N.EVENTS).OPEN_LINK,{link:E.data.link}))},[t.createVNode(q,{title:E.$t("open")},{default:t.withCtx(()=>[t.createVNode(El,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${E.data.color}`]]),onClick:S[2]||(S[2]=k=>E.$emit(t.unref(N.EVENTS).EXPAND))},[t.createVNode(q,{title:E.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Bn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(E.$slots,"badge-button-after",{},void 0,!0)])],38))}}),Cl=P(Iu,[["__scopeId","data-v-a7581f1b"]]),Dn=Symbol("execution-injection-key"),vl=Symbol("subflows-executions-injection-key"),Vu={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ou=["aria-hidden","aria-label"],Bu=["fill","width","height"],Du={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"},Pu={key:0};function $u(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Du,[o.title?(t.openBlock(),t.createElementBlock("title",Pu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Bu))],16,Ou)}const Pn=P(Vu,[["render",$u]]),Ru={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Mu=["aria-hidden","aria-label"],xu=["fill","width","height"],Fu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Uu={key:0};function Hu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Fu,[o.title?(t.openBlock(),t.createElementBlock("title",Uu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,xu))],16,Mu)}const $n=P(Ru,[["render",Hu]]),zu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gu=["aria-hidden","aria-label"],Wu=["fill","width","height"],ju={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"},Ku={key:0};function Yu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ju,[o.title?(t.openBlock(),t.createElementBlock("title",Ku,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Wu))],16,Gu)}const qu=P(zu,[["render",Yu]]),Xu={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Zu=["aria-hidden","aria-label"],Ju=["fill","width","height"],Qu={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},ed={key:0};function td(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Qu,[o.title?(t.openBlock(),t.createElementBlock("title",ed,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ju))],16,Zu)}const nd=P(Xu,[["render",td]]),od={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ld=["aria-hidden","aria-label"],rd=["fill","width","height"],ad={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"},id={key:0};function sd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ad,[o.title?(t.openBlock(),t.createElementBlock("title",id,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,rd))],16,ld)}const cd=P(od,[["render",sd]]),ud={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dd=["aria-hidden","aria-label"],fd=["fill","width","height"],md={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},pd={key:0};function gd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",md,[o.title?(t.openBlock(),t.createElementBlock("title",pd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fd))],16,dd)}const hd=P(ud,[["render",gd]]),Ed={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_d=["aria-hidden","aria-label"],kd=["fill","width","height"],yd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Cd={key:0};function vd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",yd,[o.title?(t.openBlock(),t.createElementBlock("title",Cd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,kd))],16,_d)}const Nl=P(Ed,[["render",vd]]),Nd={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sd=["aria-hidden","aria-label"],bd=["fill","width","height"],wd={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},Ld={key:0};function Td(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",wd,[o.title?(t.openBlock(),t.createElementBlock("title",Ld,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bd))],16,Sd)}const Rn=P(Nd,[["render",Td]]),Ad={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Id=["aria-hidden","aria-label"],Vd=["fill","width","height"],Od={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},Bd={key:0};function Dd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Od,[o.title?(t.openBlock(),t.createElementBlock("title",Bd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Vd))],16,Id)}const Pd=P(Ad,[["render",Dd]]),$d=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:ne.Position.Right},targetPosition:{default:ne.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean}},setup(e,{emit:n}){const o=e,l=n,a=t.inject(Dn),r=t.inject(vl),i=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>N.Utils.afterLastDot(o.id)),c=t.computed(()=>{const k=o.data.executionId;if(k)return k===a?.value?.id?a?.value:Object.values(r?.value||{}).find(m=>m.id===k)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),f=t.computed(()=>u.value.filter(k=>k.taskId===N.Utils.afterLastDot(o.data.node.uid))),h=t.computed(()=>{if(!f.value?.length)return null;if(f.value.length===1)return f.value[0].state.current;const k=f.value.map(L=>L.state.current),m=[te.FAILED,te.KILLED,te.WARNING,te.SKIPPED,te.KILLING,te.RUNNING,te.SUCCESS,te.RESTARTED,te.CREATED];return k.map(L=>[m.indexOf(L[1]),L]).sort().map(L=>L[1])[0]}),g=t.computed(()=>({"execution-no-taskrun":!!(c.value&&f.value&&f.value.length===0)})),C=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),E=t.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const k=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:k.namespace,id:k.flowId,executionId:c.value?.taskRunList.filter(m=>m.id===o.data.node.taskRun.id&&m.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),S=t.computed(()=>{if(h.value===te.RUNNING)return"task is running";if(h.value===te.SUCCESS)return"task was successful";if(h.value===te.WARNING)return"task sent a warning";if(h.value===te.SKIPPED)return"task was skipped";if(h.value===te.FAILED)return"task failed"});return(k,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:k.sourcePosition},null,8,["position"]),t.createVNode(Cl,{id:k.id,data:E.value,state:h.value,class:t.normalizeClass(g.value),icons:k.icons,"icon-component":k.iconComponent,onShowDescription:m[6]||(m[6]=_=>l(t.unref(N.EVENTS).SHOW_DESCRIPTION,_)),onExpand:m[7]||(m[7]=_=>l(t.unref(N.EVENTS).EXPAND,C.value)),onOpenLink:m[8]||(m[8]=_=>l(t.unref(N.EVENTS).OPEN_LINK,_)),onMouseover:m[9]||(m[9]=_=>l(t.unref(N.EVENTS).MOUSE_OVER,_)),onMouseleave:m[10]||(m[10]=_=>l(t.unref(N.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>[c.value?(t.openBlock(),t.createBlock(uu,{key:0,execution:c.value,task:k.data.node.task,color:i.value,uid:k.data.node.uid,state:h.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),k.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[k.playgroundEnabled&&k.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:m[0]||(m[0]=_=>l(t.unref(N.EVENTS).RUN_TASK,{task:k.data.node.task}))},[t.createVNode(q,{style:{display:"flex"},title:k.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(hd,{class:"button-play-icon",alt:k.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"playground-button",style:t.normalizeStyle({color:`var(--ks-content-${h.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${h.value?.toLowerCase()})`})},[t.createVNode(q,{style:{display:"flex"},title:S.value?k.$t(S.value):void 0},{default:t.withCtx(()=>[h.value===t.unref(te).RUNNING?(t.openBlock(),t.createBlock(Ho,{key:0,alt:S.value?k.$t(S.value):void 0},null,8,["alt"])):h.value===t.unref(te).SUCCESS?(t.openBlock(),t.createBlock(Nl,{key:1,alt:S.value?k.$t(S.value):void 0},null,8,["alt"])):h.value===t.unref(te).WARNING?(t.openBlock(),t.createBlock(Rn,{key:2,alt:S.value?k.$t(S.value):void 0},null,8,["alt"])):h.value===t.unref(te).SKIPPED?(t.openBlock(),t.createBlock(Pd,{key:3,alt:S.value?k.$t(S.value):void 0},null,8,["alt"])):h.value===t.unref(te).FAILED?(t.openBlock(),t.createBlock(Tt,{key:4,alt:S.value?k.$t(S.value):void 0},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[k.data.node.task&&k.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:m[1]||(m[1]=_=>l(t.unref(N.EVENTS).SHOW_CONDITION,{id:s.value,task:k.data.node.task,section:t.unref(N.SECTIONS).TASKS}))},[t.createVNode(q,{title:k.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(cd,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[2]||(m[2]=_=>l(t.unref(N.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:f.value}))},[t.createVNode(q,{title:k.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(qu,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!k.data.isReadOnly&&k.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[3]||(m[3]=_=>l(t.unref(N.EVENTS).ADD_ERROR,{task:k.data.node.task}))},[t.createVNode(q,{title:k.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(nd,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!k.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[4]||(m[4]=_=>l(t.unref(N.EVENTS).EDIT,{task:k.data.node.task,section:t.unref(N.SECTIONS).TASKS}))},[t.createVNode(q,{title:k.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!k.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[5]||(m[5]=_=>l(t.unref(N.EVENTS).DELETE,{id:s.value,section:t.unref(N.SECTIONS).TASKS}))},[t.createVNode(q,{title:k.$t("delete")},{default:t.withCtx(()=>[t.createVNode($n,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:k.targetPosition},null,8,["position"])],64))}}),Rd=P($d,[["__scopeId","data-v-3bf9185b"]]),Md={name:"Task",inheritAttrs:!1,inject:{execution:{from:Dn}},computed:{SECTIONS(){return N.SECTIONS},EVENTS(){return N.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return N.Utils.afterLastDot(this.id)}},emits:[N.EVENTS.DELETE,N.EVENTS.EDIT,N.EVENTS.SHOW_DESCRIPTION],components:{Delete:$n,Pencil:Pn,Handle:ne.Handle,Tooltip:q},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,n){this.$emit(e,n)}}},xd=Object.assign(Md,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(Cl,{id:e.id,data:n.formattedData,color:n.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:o[2]||(o[2]=l=>n.forwardEvent(t.unref(N.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(N.EVENTS).EXPAND,{id:e.id}))},t.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:t.withCtx(()=>[n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(N.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(N.SECTIONS).TRIGGERS}))},[t.createVNode(q,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[1]||(o[1]=l=>n.$emit(t.unref(N.EVENTS).DELETE,{id:n.triggerId,section:t.unref(N.SECTIONS).TRIGGERS}))},[t.createVNode(q,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode($n,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Fd={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ud=["aria-hidden","aria-label"],Hd=["fill","width","height"],zd={d:"M11 15H6L13 1V9H18L11 23V15Z"},Gd={key:0};function Wd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zd,[o.title?(t.openBlock(),t.createElementBlock("title",Gd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hd))],16,Ud)}const jd=P(Fd,[["render",Wd]]),Kd={class:"collapsed-cluster-node d-flex"},Yd={class:"node-text"},qd={class:"text-white top-button-div"},Xd={components:{Tooltip:q,Handle:ne.Handle,ArrowExpand:Bn,LightningBolt:jd},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 N.EVENTS},expandable(){return this.data?.expandable||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Zd=Object.assign(Xd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",Kd,[t.createElementVNode("span",Yd,[e.data.iconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.data.iconComponent),{key:0,class:t.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(N.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",qd,[t.renderSlot(n.$slots,"badge-button-before",{},void 0,!0),n.expandable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(N.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(q,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Bn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Jd=P(Zd,[["__scopeId","data-v-89413b39"]]),Qd={name:"SplitCellsVerticalIcon",emits:["click"]},ef={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tf(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",ef,[...n[0]||(n[0]=[t.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[t.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),t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_1111_7266"},[t.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)])])}const nf=P(Qd,[["render",tf],["__scopeId","data-v-084c51e6"]]),of={name:"SplitCellsHorizontalIcon",emits:["click"]},lf={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rf(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",lf,[...n[0]||(n[0]=[t.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[t.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),t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_796_3996"},[t.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)])])}const af=P(of,[["render",rf],["__scopeId","data-v-c77c1469"]]),sf={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cf=["aria-hidden","aria-label"],uf=["fill","width","height"],df={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},ff={key:0};function mf(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",df,[o.title?(t.openBlock(),t.createElementBlock("title",ff,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,uf))],16,cf)}const pf=P(sf,[["render",mf]]);function gf(e,n){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 o=document.implementation.createHTMLDocument(),l=o.createElement("base"),a=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(a),n&&(l.href=n),a.href=e,a.href}const hf=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Re(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}let Je=null;function Sl(e={}){return Je||(e.includeStyleProperties?(Je=e.includeStyleProperties,Je):(Je=Re(window.getComputedStyle(document.documentElement)),Je))}function Bt(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function Ef(e){const n=Bt(e,"border-left-width"),o=Bt(e,"border-right-width");return e.clientWidth+n+o}function _f(e){const n=Bt(e,"border-top-width"),o=Bt(e,"border-bottom-width");return e.clientHeight+n+o}function bl(e,n={}){const o=n.width||Ef(e),l=n.height||_f(e);return{width:o,height:l}}function kf(){let e,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(e=parseInt(o,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ke=16384;function yf(e){(e.width>ke||e.height>ke)&&(e.width>ke&&e.height>ke?e.width>e.height?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke):e.width>ke?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke))}function Dt(e){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function Cf(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function vf(e,n,o){const l="http://www.w3.org/2000/svg",a=document.createElementNS(l,"svg"),r=document.createElementNS(l,"foreignObject");return a.setAttribute("width",`${n}`),a.setAttribute("height",`${o}`),a.setAttribute("viewBox",`0 0 ${n} ${o}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),a.appendChild(r),r.appendChild(e),Cf(a)}const Ee=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function Nf(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function Sf(e,n){return Sl(n).map(o=>{const l=e.getPropertyValue(o),a=e.getPropertyPriority(o);return`${o}: ${l}${a?" !important":""};`}).join(" ")}function bf(e,n,o,l){const a=`.${e}:${n}`,r=o.cssText?Nf(o):Sf(o,l);return document.createTextNode(`${a}{${r}}`)}function Lo(e,n,o,l){const a=window.getComputedStyle(e,o),r=a.getPropertyValue("content");if(r===""||r==="none")return;const i=hf();try{n.className=`${n.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(bf(i,o,a,l)),n.appendChild(s)}function wf(e,n,o){Lo(e,n,":before",o),Lo(e,n,":after",o)}const To="application/font-woff",Ao="image/jpeg",Lf={woff:To,woff2:To,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ao,jpeg:Ao,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Tf(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function Mn(e){const n=Tf(e).toLowerCase();return Lf[n]||""}function Af(e){return e.split(/,/)[1]}function kn(e){return e.search(/^(data:)/)!==-1}function If(e,n){return`data:${n};base64,${e}`}async function wl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const a=await l.blob();return new Promise((r,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{r(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(a)})}const ln={};function Vf(e,n,o){let l=e.replace(/\?.*/,"");return o&&(l=e),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function xn(e,n,o){const l=Vf(e,n,o.includeQueryParams);if(ln[l]!=null)return ln[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const r=await wl(e,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),Af(s)));a=If(r,n)}catch(r){a=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;r&&(i=typeof r=="string"?r:r.message),i&&console.warn(i)}return ln[l]=a,a}async function Of(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):Dt(n)}async function Bf(e,n){if(e.currentSrc){const r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,i?.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return Dt(s)}const o=e.poster,l=Mn(o),a=await xn(o,l,n);return Dt(a)}async function Df(e,n){var o;try{if(!((o=e?.contentDocument)===null||o===void 0)&&o.body)return await Ht(e.contentDocument.body,n,!0)}catch{}return e.cloneNode(!1)}async function Pf(e,n){return Ee(e,HTMLCanvasElement)?Of(e):Ee(e,HTMLVideoElement)?Bf(e,n):Ee(e,HTMLIFrameElement)?Df(e,n):e.cloneNode(Ll(e))}const $f=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ll=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Rf(e,n,o){var l,a;if(Ll(n))return n;let r=[];return $f(e)&&e.assignedNodes?r=Re(e.assignedNodes()):Ee(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?r=Re(e.contentDocument.body.childNodes):r=Re(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),r.length===0||Ee(e,HTMLVideoElement)||await r.reduce((i,s)=>i.then(()=>Ht(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function Mf(e,n,o){const l=n.style;if(!l)return;const a=window.getComputedStyle(e);a.cssText?(l.cssText=a.cssText,l.transformOrigin=a.transformOrigin):Sl(o).forEach(r=>{let i=a.getPropertyValue(r);r==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Ee(e,HTMLIFrameElement)&&r==="display"&&i==="inline"&&(i="block"),r==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),l.setProperty(r,i,a.getPropertyPriority(r))})}function xf(e,n){Ee(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),Ee(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function Ff(e,n){if(Ee(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(a=>e.value===a.getAttribute("value"));l&&l.setAttribute("selected","")}}function Uf(e,n,o){return Ee(n,Element)&&(Mf(e,n,o),wf(e,n,o),xf(e,n),Ff(e,n)),n}async function Hf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let r=0;r<o.length;r++){const s=o[r].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Ht(u,n,!0))}}const a=Object.values(l);if(a.length){const r="http://www.w3.org/1999/xhtml",i=document.createElementNS(r,"svg");i.setAttribute("xmlns",r),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(r,"defs");i.appendChild(s);for(let c=0;c<a.length;c++)s.appendChild(a[c]);e.appendChild(i)}return e}async function Ht(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>Pf(l,n)).then(l=>Rf(e,l,n)).then(l=>Uf(e,l,n)).then(l=>Hf(l,n))}const Tl=/url\((['"]?)([^'"]+?)\1\)/g,zf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Gf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Wf(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function jf(e){const n=[];return e.replace(Tl,(o,l,a)=>(n.push(a),o)),n.filter(o=>!kn(o))}async function Kf(e,n,o,l,a){try{const r=o?gf(n,o):n,i=Mn(n);let s;return a||(s=await xn(r,i,l)),e.replace(Wf(n),`$1${s}$3`)}catch{}return e}function Yf(e,{preferredFontFormat:n}){return n?e.replace(Gf,o=>{for(;;){const[l,,a]=zf.exec(o)||[];if(!a)return"";if(a===n)return`src: ${l};`}}):e}function Al(e){return e.search(Tl)!==-1}async function Il(e,n,o){if(!Al(e))return e;const l=Yf(e,o);return jf(l).reduce((r,i)=>r.then(s=>Kf(s,i,n,o)),Promise.resolve(l))}async function Qe(e,n,o){var l;const a=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(a){const r=await Il(a,null,o);return n.style.setProperty(e,r,n.style.getPropertyPriority(e)),!0}return!1}async function qf(e,n){await Qe("background",e,n)||await Qe("background-image",e,n),await Qe("mask",e,n)||await Qe("-webkit-mask",e,n)||await Qe("mask-image",e,n)||await Qe("-webkit-mask-image",e,n)}async function Xf(e,n){const o=Ee(e,HTMLImageElement);if(!(o&&!kn(e.src))&&!(Ee(e,SVGImageElement)&&!kn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,a=await xn(l,Mn(l),n);await new Promise((r,i)=>{e.onload=r,e.onerror=n.onImageErrorHandler?(...c)=>{try{r(n.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Zf(e,n){const l=Re(e.childNodes).map(a=>Vl(a,n));await Promise.all(l).then(()=>e)}async function Vl(e,n){Ee(e,Element)&&(await qf(e,n),await Xf(e,n),await Zf(e,n))}function Jf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(a=>{o[a]=l[a]}),e}const Io={};async function Vo(e){let n=Io[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},Io[e]=n,n}async function Oo(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,r=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),wl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(r).then(()=>o)}function Bo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(a,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=r.exec(l);if(c===null){if(c=s.exec(l),c===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;n.push(c[0])}return n}async function Qf(e,n){const o=[],l=[];return e.forEach(a=>{if("cssRules"in a)try{Re(a.cssRules||[]).forEach((r,i)=>{if(r.type===CSSRule.IMPORT_RULE){let s=i+1;const c=r.href,u=Vo(c).then(f=>Oo(f,n)).then(f=>Bo(f).forEach(h=>{try{a.insertRule(h,h.startsWith("@import")?s+=1:a.cssRules.length)}catch(g){console.error("Error inserting rule from remote css",{rule:h,error:g})}})).catch(f=>{console.error("Error loading remote css",f.toString())});l.push(u)}})}catch(r){const i=e.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&l.push(Vo(a.href).then(s=>Oo(s,n)).then(s=>Bo(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(l).then(()=>(e.forEach(a=>{if("cssRules"in a)try{Re(a.cssRules||[]).forEach(r=>{o.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${a.href}`,r)}}),o))}function em(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Al(n.style.getPropertyValue("src")))}async function tm(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Re(e.ownerDocument.styleSheets),l=await Qf(o,n);return em(l)}function Ol(e){return e.trim().replace(/["']/g,"")}function nm(e){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(r=>{n.add(Ol(r))}),Array.from(l.children).forEach(r=>{r instanceof HTMLElement&&o(r)})}return o(e),n}async function om(e,n){const o=await tm(e,n),l=nm(e);return(await Promise.all(o.filter(r=>l.has(Ol(r.style.fontFamily))).map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return Il(r.cssText,i,n)}))).join(`
|
|
25
25
|
`)}async function lm(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await om(e,n);if(o){const l=document.createElement("style"),a=document.createTextNode(o);l.appendChild(a),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function rm(e,n={}){const{width:o,height:l}=bl(e,n),a=await Ht(e,n,!0);return await lm(a,n),await Vl(a,n),Jf(a,n),await vf(a,o,l)}async function Bl(e,n={}){const{width:o,height:l}=bl(e,n),a=await rm(e,n),r=await Dt(a),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||kf(),u=n.canvasWidth||o,f=n.canvasHeight||l;return i.width=u*c,i.height=f*c,n.skipAutoScale||yf(i),i.style.width=`${u}`,i.style.height=`${f}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(r,0,0,i.width,i.height),i}async function am(e,n={}){return(await Bl(e,n)).toDataURL()}async function im(e,n={}){return(await Bl(e,n)).toDataURL("image/jpeg",n.quality||1)}function sm(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let u;const f=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":u=await a(s,c);break;case"png":u=await r(s,c);break;default:u=await r(s,c);break}return c.shouldDownload&&f!==""&&i(f),u}function a(s,c={quality:.95}){return o.value=null,im(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function r(s,c={quality:.95}){return o.value=null,am(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:i,dataUrl:e,error:o}}const cm={key:1,class:"exporting"},um=t.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:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1}},emits:[N.EVENTS.EDIT,N.EVENTS.DELETE,N.EVENTS.RUN_TASK,N.EVENTS.OPEN_LINK,N.EVENTS.SHOW_LOGS,N.EVENTS.SHOW_DESCRIPTION,N.EVENTS.RUN_TASK,"on-add-flowable-error",N.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",N.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),a=t.ref(),{getNodes:r,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:f,vueFlowRef:h}=ne.useVueFlow(o.id),g=t.ref({}),C=t.ref([]),E=t.ref(new Set),S=t.ref([]),{capture:k}=sm();t.provide(Dn,t.computed(()=>o.execution)),t.provide(vl,t.computed(()=>o.subflowsExecutions));const m=n;t.onMounted(()=>{_()}),t.watch(()=>o.flowGraph,()=>{_()}),t.watch(()=>o.isHorizontal,()=>{_()});const _=()=>{N.cleanGraph(o.id),t.nextTick(()=>{m("loading",!0);const $=E.value;E.value=new Set,C.value=[],g.value={},$.forEach(U=>F(N.CLUSTER_PREFIX+U,!1,!1));const I=N.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,C.value,o.isHorizontal,g.value,E.value,S.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);I&&(f(I),u(),m("loading",!1))})},L=$=>{l.value||N.linkedElements(o.id,$.uid).forEach(I=>{I?.type==="task"&&(I.style={...I.style,outline:"0.5px solid "+Ce("--bs-gray-900")},I.class="rounded-3")})},v=()=>{V()},V=()=>{r.value.filter($=>$.type==="task"||$.type==="trigger").forEach($=>{$.style={...$.style,opacity:"1",outline:"none"},$.class=""})};s($=>{l.value=!0,V(),$.node.style={...$.node.style,zIndex:1976},a.value=$.node.position}),c($=>{if(l.value=!1,$.intersections&&w($.intersections,$.node)===null){const I=$.node,U=$.intersections.find(R=>R.type==="task");if(U)try{o.source&&m("swapped-task",{newSource:z.swapBlocks({source:o.source,section:"tasks",key1:N.Utils.afterLastDot(I.id)??"",key2:N.Utils.afterLastDot(U.id)??""}),swappedTasks:[I.id,U.id]})}catch(R){m("message",{variant:"error",title:"cannot swap tasks",message:`${R.message}, ${R.messageOptions}`}),I.position=a.value}else I.position=a.value}else $.node.position=a.value;V(),$.node.style={...$.node.style,zIndex:5},a.value=null});const O=t.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter($=>$.cluster.type.endsWith("SubflowGraphCluster")).map($=>$.cluster.taskNode.uid+"."):[]);i($=>{V(),r.value.filter(I=>I.id!==$.node.id).forEach(I=>{I.type==="trigger"||I.type==="task"&&(I.id.startsWith($.node.id+".")||$.node.id.startsWith(I.id+"."))||O?.value?.some(U=>I.id.startsWith(U))?I.style={...I.style,opacity:"0.5"}:I.style={...I.style,opacity:"1"}}),$.intersections&&!w($.intersections,$.node)&&$.intersections.filter(I=>I.type==="task").length===1&&($.intersections.forEach(I=>{I.type==="task"&&(I.style={...I.style,outline:"0.5px solid "+Ce("--bs-primary")},I.class="rounded-3")}),$.node.style={...$.node.style,outline:"0.5px solid "+Ce("--bs-primary")},$.node.class="rounded-3")});const w=($,I)=>{const U=$.filter(R=>R.type==="task").map(R=>N.Utils.afterLastDot(R.id));if(U.length>1)return"toomuchtaskerror";try{if(U.length===1&&o.source&&z.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:N.Utils.afterLastDot(U[0])??"",key2:N.Utils.afterLastDot(I.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return $.filter(R=>R.type==="trigger").length>0?"triggererror":null},F=($,I,U=!1)=>{const R=o.flowGraph.clusters.find(fe=>fe.cluster.uid.endsWith($)),Ie=$.replace(N.CLUSTER_PREFIX,"");E.value.add(Ie),C.value=C.value.concat(R.nodes.filter(fe=>fe!==Ie||U)),C.value=C.value.concat([R.cluster.uid]),g.value={...g.value,[R.cluster.uid]:Ie,[R.start]:Ie,[R.end]:Ie};for(let fe of R.nodes)o.flowGraph.clusters.map(Fe=>Fe.cluster.uid).includes(fe)&&F(fe,!1,!0);I&&_()},G=$=>{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($.type)&&!o.expandedSubflows.includes($.id)){m("expand-subflow",[...o.expandedSubflows,$.id]);return}g.value={},C.value=[],S.value=[],E.value.delete($.id),E.value.forEach(U=>F(U,!1,!1)),_()},oe=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=t.ref(!0),Z=t.ref(!1),$e=()=>Z.value=!Z.value;function Xe($){if(!h.value){console.warn("Flow not found");return}ge.value=!1,k(h.value,{type:$,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return($,I)=>(t.openBlock(),t.createBlock(t.unref(ne.VueFlow),{id:e.id,"default-marker-color":t.unref(Ce)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":t.withCtx(U=>[t.createVNode(Dc,t.mergeProps(U,{onCollapse:I[0]||(I[0]=R=>F(R,!0))}),null,16)]),"node-dot":t.withCtx(U=>[t.createVNode(zc,t.normalizeProps(t.guardReactiveProps(U)),null,16)]),"node-task":t.withCtx(U=>[t.createVNode(Rd,t.mergeProps(U,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:I[1]||(I[1]=R=>m(t.unref(N.EVENTS).EDIT,R)),onDelete:I[2]||(I[2]=R=>m(t.unref(N.EVENTS).DELETE,R)),onRunTask:I[3]||(I[3]=R=>m(t.unref(N.EVENTS).RUN_TASK,R)),onExpand:I[4]||(I[4]=R=>G(R)),onOpenLink:I[5]||(I[5]=R=>m(t.unref(N.EVENTS).OPEN_LINK,R)),onShowLogs:I[6]||(I[6]=R=>m(t.unref(N.EVENTS).SHOW_LOGS,R)),onShowDescription:I[7]||(I[7]=R=>m(t.unref(N.EVENTS).SHOW_DESCRIPTION,R)),onShowCondition:I[8]||(I[8]=R=>m(t.unref(N.EVENTS).SHOW_CONDITION,R)),onMouseover:I[9]||(I[9]=R=>L(R)),onMouseleave:I[10]||(I[10]=R=>v()),onAddError:I[11]||(I[11]=R=>m("on-add-flowable-error",R)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-trigger":t.withCtx(U=>[t.createVNode(xd,t.mergeProps(U,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:I[12]||(I[12]=R=>m(t.unref(N.EVENTS).DELETE,R)),onEdit:I[13]||(I[13]=R=>m(t.unref(N.EVENTS).EDIT,R)),onShowDescription:I[14]||(I[14]=R=>m(t.unref(N.EVENTS).SHOW_DESCRIPTION,R))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(U=>[t.createVNode(Jd,t.mergeProps(U,{onExpand:I[15]||(I[15]=R=>G(R))}),null,16)]),"edge-edge":t.withCtx(U=>[t.createVNode(nu,t.mergeProps(U,{"yaml-source":e.source,onAddTask:I[16]||(I[16]=R=>m(t.unref(N.EVENTS).ADD_TASK,R)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:t.withCtx(()=>[t.createVNode(t.unref(Nc),{"pattern-color":oe?t.unref(Ce)("--bs-grey-500"):t.unref(Ce)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(t.openBlock(),t.createBlock(t.unref(Qt.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(Qt.ControlButton),{key:0,onClick:I[17]||(I[17]=U=>m("toggle-orientation",U))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?af:nf)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(Qt.ControlButton),{onClick:$e},{default:t.withCtx(()=>[t.createVNode(pf)]),_:1}),Z.value?(t.openBlock(),t.createElementBlock("ul",cm,[t.createElementVNode("li",{onClick:I[18]||(I[18]=U=>Xe("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:I[19]||(I[19]=U=>Xe("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),dm=P(um,[["__scopeId","data-v-f889d0c2"]]),fm={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mm=["aria-hidden","aria-label"],pm=["fill","width","height"],gm={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"},hm={key:0};function Em(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",gm,[o.title?(t.openBlock(),t.createElementBlock("title",hm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,pm))],16,mm)}const _m=P(fm,[["render",Em]]),km={key:0,class:"language"},ym=["innerHTML"],Cm=t.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 n={ContentCopy:t.shallowRef(_m),Check:t.shallowRef(Nl)},o=e,l=t.ref(!1),a=t.ref(),r=t.shallowRef(n.ContentCopy.value),i=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,a.value&&t.nextTick(()=>{i.value&&s.value&&dr.createPopper(i.value,s.value,{placement:"left"})})}function f(){clearTimeout(a.value),navigator.clipboard.writeText(o.code.trimEnd()),r.value=n.Check.value,a.value=setTimeout(()=>{r.value=n.ContentCopy.value,a.value=void 0},2e3)}return(h,g)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:g[0]||(g[0]=C=>l.value=!1)},[h.language&&!l.value?(t.openBlock(),t.createElementBlock("div",km,t.toDisplayString(h.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{onClick:f}))],512),a.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...g[1]||(g[1]=[t.createTextVNode(" Copied! ",-1),t.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{innerHTML:c.value},null,8,ym)],32))}}),Do=P(Cm,[["__scopeId","data-v-a899f6a1"]]),vm={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Nm=["aria-hidden","aria-label"],Sm=["fill","width","height"],bm={d:"M10,17L15,12L10,7V17Z"},wm={key:0};function Lm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",bm,[o.title?(t.openBlock(),t.createElementBlock("title",wm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sm))],16,Nm)}const Tm=P(vm,[["render",Lm]]),Am={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Im=["aria-hidden","aria-label"],Vm=["fill","width","height"],Om={d:"M7,10L12,15L17,10H7Z"},Bm={key:0};function Dm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Om,[o.title?(t.openBlock(),t.createElementBlock("title",Bm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Vm))],16,Im)}const Pm=P(Am,[["render",Dm]]);function $m(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Dl(e){return typeof e=="function"?e():t.unref(e)}const Rm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mm=Object.prototype.toString,xm=e=>Mm.call(e)==="[object Object]",Fm=()=>{};function Um(e){return Object.entries(e)}function Hm(e){var n;const o=Dl(e);return(n=o?.$el)!=null?n:o}const Pl=Rm?window:void 0;function Po(...e){let n,o,l,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,l,a]=e,n=Pl):[n,o,l,a]=e,!n)return Fm;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const r=[],i=()=>{r.forEach(f=>f()),r.length=0},s=(f,h,g,C)=>(f.addEventListener(h,g,C),()=>f.removeEventListener(h,g,C)),c=t.watch(()=>[Hm(n),Dl(a)],([f,h])=>{if(i(),!f)return;const g=xm(h)?{...h}:h;r.push(...o.flatMap(C=>l.map(E=>s(f,C,E,g))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return $m(u),u}const $o=["hash","host","hostname","href","pathname","port","protocol","search"];function zm(e={}){const{window:n=Pl}=e,o=Object.fromEntries($o.map(r=>[r,t.ref()]));for(const[r,i]of Um(o))t.watch(i,s=>{!n?.location||n.location[r]===s||(n.location[r]=s)});const l=r=>{var i;const{state:s,length:c}=n?.history||{},{origin:u}=n?.location||{};for(const f of $o)o[f].value=(i=n?.location)==null?void 0:i[f];return t.reactive({trigger:r,state:s,length:c,origin:u,...o})},a=t.ref(l("load"));return n&&(Po(n,"popstate",()=>a.value=l("popstate"),{passive:!0}),Po(n,"hashchange",()=>a.value=l("hashchange"),{passive:!0})),a}const Gm=["id","open"],Wm={class:"d-flex gap-2 align-items-center"},jm={key:0,class:"d-flex flex-grow-1"},Km=["id"],Ym=t.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),a=zm(),r=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),!o.noUrlChange&&(window.location.hash=l.value?"":i.value)},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>a.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,f)=>(t.openBlock(),t.createElementBlock("details",{id:u.href,open:c.value},[t.createElementVNode("summary",{class:t.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[t.createElementVNode("span",Wm,[u.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?Tm:Pm),{key:0,class:"arrow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.clickableText)+" ",1),t.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(t.openBlock(),t.createElementBlock("span",jm,[t.renderSlot(u.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):t.createCommentVNode("",!0)],2),u.$slots.content?(t.openBlock(),t.createElementBlock("div",{key:0,id:u.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Km)):t.createCommentVNode("",!0)],8,Gm))}}),Pt=P(Ym,[["__scopeId","data-v-4b935a77"]]);function St(e){if(e.type)return Array.isArray(e.type)?e.type:[e.type];if(e.$ref)return["#"+e.$ref.slice(8)]}function $l(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function qm(e){if(e.enum)return e.enum;if(e.items?.enum)return e.items.enum;if(e.additionalProperties?.enum)return e.additionalProperties.enum}function Xm(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Rl(e){const n={},o=a=>{const r=St(a);if(r&&r.length>0)return r;if(a.anyOf)return a.anyOf.flatMap(St).filter(i=>i!==void 0).filter(N.Utils.distinctFilter)},l=o(e);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&e.items){const a=o(e.items);a&&e.items.anyOf&&(n.types=n.types.filter(r=>r!=="array").concat(a))}return e.additionalProperties?n.subType=St(e.additionalProperties)?.[0]:e.items&&(n.subType=St(e.items)?.[0]),n}const Zm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jm=["aria-hidden","aria-label"],Qm=["fill","width","height"],ep={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},tp={key:0};function np(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ep,[o.title?(t.openBlock(),t.createElementBlock("title",tp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qm))],16,Jm)}const op=P(Zm,[["render",np]]),lp={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},rp=["aria-hidden","aria-label"],ap=["fill","width","height"],ip={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"},sp={key:0};function cp(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ip,[o.title?(t.openBlock(),t.createElementBlock("title",sp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ap))],16,rp)}const Ml=P(lp,[["render",cp]]),up={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dp=["aria-hidden","aria-label"],fp=["fill","width","height"],mp={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"},pp={key:0};function gp(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",mp,[o.title?(t.openBlock(),t.createElementBlock("title",pp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fp))],16,dp)}const hp=P(up,[["render",gp]]),Ep={class:"me-3"},_p={class:"d-flex flex-column"},kp=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return hp;case"info":return Tt;case"warning":return Rn;case"danger":return an;default:return Tt}});return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",Ep,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",_p,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),yp=P(kp,[["__scopeId","data-v-f7fd8bc1"]]),Cp={class:"property-detail"},vp={key:0},Np=["href"],Sp={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},bp={class:"ref-type"},wp={key:1,class:"type-box rounded fs-7 px-2 py-1"},Lp={key:1},Tp={class:"border rounded px-2 py-1"},Ap={key:2},Ip={class:"border rounded px-2 py-1"},Vp={key:3},Op={class:"border rounded px-2 py-1"},Bp={key:4},Dp={class:"border rounded px-2 py-1"},Pp={key:5},$p={class:"border rounded px-2 py-1"},Rp={key:6},Mp={class:"border rounded px-2 py-1"},xp={key:7},Fp={class:"border rounded px-2 py-1"},Up={key:8},Hp={class:"border rounded px-2 py-1"},zp={key:9},Gp={class:"border rounded px-2 py-1"},Wp={key:10},jp={class:"border rounded px-2 py-1"},Kp={key:11},Yp={class:"border rounded px-2 py-1"},qp={key:12},Xp={class:"border rounded px-2 py-1"},Zp={key:13},Jp={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},Qp={key:14},e1={class:"property-description markdown"},t1={key:2},n1=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Rl(n.property).subType),l=t.ref(qm(n.property)),a=r=>r.replace(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replace(new RegExp("(?<!:):(?![: /])","g"),": ");return(r,i)=>(t.openBlock(),t.createElementBlock("div",Cp,[o.value?(t.openBlock(),t.createElementBlock("div",vp,[i[1]||(i[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",Sp,[t.createElementVNode("span",bp,t.toDisplayString(t.unref($l)(o.value)),1),t.createVNode(Ml)])],8,Np)):(t.openBlock(),t.createElementBlock("span",wp,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),r.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",Lp,[i[2]||(i[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",Tp,t.toDisplayString(r.property.default),1)])):t.createCommentVNode("",!0),r.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",Ap,[i[3]||(i[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",Ip,t.toDisplayString(r.property.pattern),1)])):t.createCommentVNode("",!0),r.property.unit!==void 0&&r.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",Vp,[i[4]||(i[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",Op,t.toDisplayString(r.property.unit),1)])):t.createCommentVNode("",!0),r.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",Bp,[i[5]||(i[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",Dp,t.toDisplayString(r.property.minLength),1)])):t.createCommentVNode("",!0),r.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",Pp,[i[6]||(i[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",$p,t.toDisplayString(r.property.maxLength),1)])):t.createCommentVNode("",!0),r.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",Rp,[i[7]||(i[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",Mp,t.toDisplayString(r.property.minItems),1)])):t.createCommentVNode("",!0),r.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",xp,[i[8]||(i[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Fp,t.toDisplayString(r.property.maxItems),1)])):t.createCommentVNode("",!0),r.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",Up,[i[9]||(i[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Hp," >= "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",zp,[i[10]||(i[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Gp," > "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",Wp,[i[11]||(i[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",jp," <= "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Kp,[i[12]||(i[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Yp," < "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",qp,[i[13]||(i[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",Xp,t.toDisplayString(r.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Zp,[i[14]||(i[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",Jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(s,c)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},t.toDisplayString(s),1))),128))])])):t.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",Qp,[t.createElementVNode("div",e1,[r.property.title!==void 0?t.renderSlot(r.$slots,"markdown",{key:0,content:a(r.property.title)},void 0,!0):t.createCommentVNode("",!0),r.property.description!==void 0?t.renderSlot(r.$slots,"markdown",{key:1,content:a(r.property.description)},void 0,!0):t.createCommentVNode("",!0),r.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",t1,[t.createVNode(yp,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),o1=P(n1,[["__scopeId","data-v-721fbdf5"]]),l1={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},r1=["aria-hidden","aria-label"],a1=["fill","width","height"],i1={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},s1={key:0};function c1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",i1,[o.title?(t.openBlock(),t.createElementBlock("title",s1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,a1))],16,r1)}const u1=P(l1,[["render",c1]]),d1={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},f1=["aria-hidden","aria-label"],m1=["fill","width","height"],p1={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"},g1={key:0};function h1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",p1,[o.title?(t.openBlock(),t.createElementBlock("title",g1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,m1))],16,f1)}const E1=P(d1,[["render",h1]]),_1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},k1=["aria-hidden","aria-label"],y1=["fill","width","height"],C1={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"},v1={key:0};function N1(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",C1,[o.title?(t.openBlock(),t.createElementBlock("title",v1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,y1))],16,k1)}const S1=P(_1,[["render",N1]]),b1={class:"border overflow-hidden"},w1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},L1={class:"d-flex gap-2"},T1={class:"d-flex flex-wrap justify-content-end gap-2"},A1=["href"],I1={class:"ref-type"},V1={key:1,class:"type-box rounded fs-7 px-2 py-1"},O1=t.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:()=>[]},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,a=t.ref(!1);t.watch(a,s=>{s&&l("expand")});const r=s=>s.$dynamic===!0?!0:s.$dynamic===!1?!1:s.anyOf?.some(c=>c.$dynamic===!0)??!1;function i(s){const c=[],u=[];for(const g in s)typeof s[g]=="object"&&(s[g]=Xm(s[g]),s[g].$required?c.push(g):u.push(g));const f=[...c.sort(),...u.sort()],h={};return f.forEach(g=>{(!s[g].$deprecated||o.forceInclude?.includes(g))&&(h[g]=s[g])}),h}return(s,c)=>(t.openBlock(),t.createBlock(Pt,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||a.value,"no-url-change":s.noUrlChange},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",b1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(s.properties),(u,f)=>(t.openBlock(),t.createBlock(Pt,{class:"property",key:f,arrow:!1,"clickable-text":f,href:s.href+"_"+f,onExpand:c[1]||(c[1]=h=>a.value=!0),"no-url-change":s.noUrlChange},{additionalButtonText:t.withCtx(()=>[u.$required?(t.openBlock(),t.createBlock(q,{key:0,class:"d-flex",title:"Required"},{default:t.withCtx(()=>[...c[3]||(c[3]=[t.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):t.createCommentVNode("",!0)]),buttonRight:t.withCtx(({collapsed:h})=>[t.createElementVNode("span",w1,[t.createElementVNode("span",L1,[s.showDynamic&&!r(u)?(t.openBlock(),t.createBlock(q,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(E1,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(q,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(S1,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),u.$deprecated?(t.openBlock(),t.createBlock(q,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",T1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Rl)(u).types,g=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:g},[g.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:g,onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("span",I1,t.toDisplayString(t.unref($l)(g)),1),t.createVNode(Ml)],8,A1)):(t.openBlock(),t.createElementBlock("span",V1,t.toDisplayString(g),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h?op:u1),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(o1,{property:u},{markdown:t.withCtx(({content:h})=>[t.renderSlot(s.$slots,"markdown",{content:h},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded","no-url-change"]))}}),bt=P(O1,[["__scopeId","data-v-1b987541"]]),B1={class:"d-flex flex-column gap-6"},D1={class:"d-flex flex-column gap-3"},P1={key:0,class:"alert alert-info mb-2",role:"alert"},$1={key:1,class:"plugin-title markdown"},R1={key:2,class:"markdown"},M1={class:"d-flex flex-column gap-4"},x1={class:"d-flex flex-column gap-3"},F1={class:"markdown"},U1={key:0,class:"w-100 align-self-center"},H1={class:"markdown"},z1={class:"markdown"},G1={class:"markdown"},W1={class:"d-flex flex-column gap-7 ps-3"},j1={class:"markdown"},K1=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,a=t.ref(!1),r=t.ref(new Set),i=t.ref(0),s=async()=>{const E=window.location.hash.slice(1);if(!E||!l.schema.definitions){r.value.clear();return}const S=E.includes("#")?E.split("#").pop()?.split(".").pop():E;if(S&&S in l.schema.definitions){a.value=!0,i.value+=1,r.value.clear(),r.value.add(S),await t.nextTick();let k=0;const m=30,_=()=>{const L=document.getElementById(S);L?L.scrollIntoView({behavior:"smooth",block:"start"}):k<m&&(k++,requestAnimationFrame(_))};requestAnimationFrame(_)}else r.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([E,S],[k,m])=>{(E!==k||S!==m)&&l.schema.definitions&&s()});const c=E=>E?.full?E.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
26
26
|
type: "${l.pluginType}"
|
|
27
|
-
`.concat(E.code),u=t.ref(),f=t.computed(()=>l.schema.properties?.$examples),h=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(E=>[E.name,{...E,name:void 0}]))),{getHighlighterCore:g}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);u.value=([n,o]=t.withAsyncContext(()=>g()),n=await n,o(),n);const C="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{window.removeEventListener("hashchange",s),u.value?.dispose()}),(E,S)=>(t.openBlock(),t.createElementBlock("div",B1,[t.createElementVNode("div",D1,[E.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",P1,[...S[0]||(S[0]=[t.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)])])):t.createCommentVNode("",!0),E.schema.properties?.title?(t.openBlock(),t.createElementBlock("div",$1,[t.renderSlot(E.$slots,"markdown",{content:E.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),E.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",R1,[t.renderSlot(E.$slots,"markdown",{content:E.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Do,{highlighter:u.value,language:"yaml",theme:C,code:`type: "${E.pluginType}"`,key:E.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:E.pluginType},[f.value?(t.openBlock(),t.createBlock(Pt,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":E.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",M1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(k,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:E.pluginType+"-"+m},[t.createElementVNode("div",x1,[t.createElementVNode("div",F1,[k.title?t.renderSlot(E.$slots,"markdown",{key:0,content:k.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),k.code?(t.openBlock(),t.createBlock(Do,{key:0,highlighter:u.value,language:k.lang??"yaml",theme:C,code:c(k)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),m<f.value.length-1?(t.openBlock(),t.createElementBlock("hr",U1)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),E.schema.properties?.properties?(t.openBlock(),t.createBlock(bt,{key:1,class:"plugin-section",properties:E.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":E.propsInitiallyExpanded,"force-include":E.forceIncludeProperties,"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:k})=>[t.createElementVNode("div",H1,[t.renderSlot(E.$slots,"markdown",{content:k},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):t.createCommentVNode("",!0),E.schema.outputs?.properties&&Object.keys(E.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(bt,{key:2,class:"plugin-section",properties:E.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:k})=>[t.createElementVNode("div",z1,[t.renderSlot(E.$slots,"markdown",{content:k},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),E.schema.properties?.$metrics?(t.openBlock(),t.createBlock(bt,{key:3,class:"plugin-section",properties:h.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:k})=>[t.createElementVNode("div",G1,[t.renderSlot(E.$slots,"markdown",{content:k},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),E.schema.definitions&&Object.keys(E.schema.definitions).length>0?(t.openBlock(),t.createBlock(Pt,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${E.pluginType}-${i.value}`,"no-url-change":E.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",W1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(E.schema.definitions),([k,m])=>(t.openBlock(),t.createBlock(bt,{properties:m.properties,"section-name":m.title??k.split("_")[0],href:k,"show-dynamic":!1,"initially-expanded":r.value.has(k),key:E.pluginType+"-"+k,class:"plugin-section nested-button-py-2",onExpand:_=>{a.value=!0,r.value.add(k)},"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:_})=>[t.createElementVNode("div",j1,[t.renderSlot(E.$slots,"markdown",{content:_},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),Y1=P(K1,[["__scopeId","data-v-bd2eb9cd"]]),q1={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},X1=["aria-hidden","aria-label"],Z1=["fill","width","height"],J1={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},Q1={key:0};function eg(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",J1,[o.title?(t.openBlock(),t.createElementBlock("title",Q1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Z1))],16,X1)}const tg=P(q1,[["render",eg]]),ng=["href"],og=["src","alt"],lg=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},routePath:{},href:{}},setup(e){const n=e,o=t.computed(()=>n.href===void 0?`${n.routePath}/${We(n.text)}`:n.href);return(l,a)=>(t.openBlock(),t.createElementBlock("a",{href:o.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[t.createElementVNode("img",{src:l.iconB64Svg,alt:`${l.text} icon`},null,8,og),t.createTextVNode(t.toDisplayString(l.text)+" ",1),t.createVNode(tg,{class:"ms-auto"})],8,ng))}}),Ro=P(lg,[["__scopeId","data-v-a361531e"]]),rg={class:"d-flex flex-column gap-4"},ag={key:1,class:"d-flex flex-column"},ig=["id"],sg={class:"d-flex flex-column"},cg=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},routePath:{},icons:{},subGroup:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(f=>n.subGroup===void 0?!0:We(et(f))===n.subGroup)),l=t.computed(()=>o.value?.longDescription??o.value?.description),a=t.computed(()=>n.plugins.filter(f=>f.name.toLowerCase()===n.pluginName.toLowerCase()&&f.subGroup!==void 0)),r=f=>{let h=f.split(".");return h?.[h.length-1]},i=f=>`${n.routePath}/${We(f)}`,s=f=>`${n.routePath}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,g])=>Uo(h,g)).map(([h,g])=>[h.replace(/[A-Z]/g,C=>` ${C}`),g.filter(({deprecated:C})=>!C).map(({cls:C})=>C)]))}const u=t.computed(()=>c(o.value));return(f,h)=>(t.openBlock(),t.createElementBlock("div",rg,[l.value!==void 0?t.renderSlot(f.$slots,"markdown",{key:0,content:l.value.replace(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(t.openBlock(),t.createElementBlock("div",ag,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,g=>(t.openBlock(),t.createBlock(Ro,{id:`group-${t.unref(We)(t.unref(et)(g))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[g.subGroup]??f.icons[g.group]),text:t.unref(et)(g),href:i(t.unref(et)(g)),key:t.unref(et)(g),"route-path":f.routePath,class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:g})},null,8,["id","icon-b64-svg","text","href","route-path","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(u.value,(g,C)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[t.createElementVNode("h4",{id:`section-${t.unref(We)(C)}`,class:"text-capitalize"},t.toDisplayString(C),9,ig),t.createElementVNode("div",sg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g,E=>(t.openBlock(),t.createBlock(Ro,{id:t.unref(We)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[o.value.subGroup??o.value.group]??f.icons[o.value.group]),text:r(E),href:s(E),key:E,"route-path":f.routePath,class:"text-capitalize",onClick:S=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","route-path","onClick"]))),128))])]))),128))]))}}),ug=/"(?:_|\\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*:/,dg=/"(?: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*:/,fg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function mg(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){pg(e);return}return n}function pg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function gg(e,n={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const o=e.trim();if(o.length<=9)switch(o.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(!fg.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ug.test(e)||dg.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,mg)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const hg=/\d/,Eg=["-","_","/","."];function _g(e=""){if(!hg.test(e))return e!==e.toLowerCase()}function xl(e,n){const o=Eg,l=[];if(!e||typeof e!="string")return l;let a="",r,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=_g(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const f=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=f+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function kg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Fl(e,n){return e?(Array.isArray(e)?e:xl(e)).map(o=>kg(o)).join(""):""}function yg(e,n){return e?(Array.isArray(e)?e:xl(e)).map(o=>o.toLowerCase()).join("-"):""}class gt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}gt.prototype.normal={};gt.prototype.property={};gt.prototype.space=void 0;function Ul(e,n){const o={},l={};for(const a of e)Object.assign(o,a.property),Object.assign(l,a.normal);return new gt(o,l,n)}function yn(e){return e.toLowerCase()}class _e{constructor(n,o){this.attribute=o,this.property=n}}_e.prototype.attribute="";_e.prototype.booleanish=!1;_e.prototype.boolean=!1;_e.prototype.commaOrSpaceSeparated=!1;_e.prototype.commaSeparated=!1;_e.prototype.defined=!1;_e.prototype.mustUseProperty=!1;_e.prototype.number=!1;_e.prototype.overloadedBoolean=!1;_e.prototype.property="";_e.prototype.spaceSeparated=!1;_e.prototype.space=void 0;let Cg=0;const x=qe(),se=qe(),Cn=qe(),A=qe(),J=qe(),nt=qe(),ye=qe();function qe(){return 2**++Cg}const vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:x,booleanish:se,commaOrSpaceSeparated:ye,commaSeparated:nt,number:A,overloadedBoolean:Cn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(vn);class Fn extends _e{constructor(n,o,l,a){let r=-1;if(super(n,o),Mo(this,"space",a),typeof l=="number")for(;++r<rn.length;){const i=rn[r];Mo(this,rn[r],(l&vn[i])===vn[i])}}}Fn.prototype.defined=!0;function Mo(e,n,o){o&&(e[n]=o)}function rt(e){const n={},o={};for(const[l,a]of Object.entries(e.properties)){const r=new Fn(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[yn(l)]=l,o[yn(r.attribute)]=l}return new gt(n,o,e.space)}const Hl=rt({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:A,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:se,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function zl(e,n){return n in e?e[n]:n}function Gl(e,n){return zl(e,n.toLowerCase())}const vg=rt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nt,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:x,allowPaymentRequest:x,allowUserMedia:x,alt:null,as:null,async:x,autoCapitalize:null,autoComplete:J,autoFocus:x,autoPlay:x,blocking:J,capture:null,charSet:null,checked:x,cite:null,className:J,cols:A,colSpan:null,content:null,contentEditable:se,controls:x,controlsList:J,coords:A|nt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:x,defer:x,dir:null,dirName:null,disabled:x,download:Cn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:x,formTarget:null,headers:J,height:A,hidden:Cn,high:A,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:x,inputMode:null,integrity:null,is:null,isMap:x,itemId:null,itemProp:J,itemRef:J,itemScope:x,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:x,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:x,muted:x,name:null,nonce:null,noModule:x,noValidate:x,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:x,optimum:A,pattern:null,ping:J,placeholder:null,playsInline:x,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:x,referrerPolicy:null,rel:J,required:x,reversed:x,rows:A,rowSpan:A,sandbox:J,scope:null,scoped:x,seamless:x,selected:x,shadowRootClonable:x,shadowRootDelegatesFocus:x,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:x,useMap:null,value:se,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:x,declare:x,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:x,noHref:x,noShade:x,noWrap:x,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:x,disableRemotePlayback:x,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Gl}),Ng=rt({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:ye,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:J,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:x,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:nt,g2:nt,glyphName:nt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zl}),Wl=rt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),jl=rt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gl}),Kl=rt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Sg=/[A-Z]/g,xo=/-[a-z]/g,bg=/^data[-\w.:]+$/i;function wg(e,n){const o=yn(n);let l=n,a=_e;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&bg.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(xo,Tg);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!xo.test(r)){let i=r.replace(Sg,Lg);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=Fn}return new a(l,n)}function Lg(e){return"-"+e.toLowerCase()}function Tg(e){return e.charAt(1).toUpperCase()}const Ag=Ul([Hl,vg,Wl,jl,Kl],"html");Ul([Hl,Ng,Wl,jl,Kl],"svg");const Un=["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"],Ig=["p","h1","h2","h3","h4","h5","h6","li"];function $t(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function Hn(e){return $t(e,"text")||$t(e,Symbol.for("v-txt"))}function Yl(e){return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof e.children?.default=="function"?e.children.default():[]}function Rt(e){if(!e)return"";if(Array.isArray(e))return e.map(Rt).join("");if(Hn(e))return e.value||e.children||"";const n=Yl(e);return Array.isArray(n)?n.map(Rt).filter(Boolean).join(""):""}function ql(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>ql(l,n));let o=e;return n.some(l=>l==="*"||$t(e,l))&&(o=Yl(e)||e,!Array.isArray(o)&&Ig.some(l=>$t(e,l))&&(o=[o])),o}function Xl(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>Xl(ql(o,[n[0]]),n.slice(1))).filter(o=>!(Hn(o)&&Rt(o).trim()==="")):e}function Zl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?Xl(e,n).reduce((o,l)=>(Hn(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function Vg(e,n){return n.reduce((o,l)=>{const a=Og(e,l);return a!==void 0&&(o[l]=a),o},{})}function Og(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const Nn="default",Jl=/^@|^v-on:/,Ql=/^:|^v-bind:/,Bg=/^v-model/,Dg=["select","textarea","input"],Pg=["math","svg"],$g=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}`])),Rg=["script","base"],Mg=t.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){const o=t.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:a}=o?.$config?.public||{},r=t.computed(()=>({...a?.components?.prose&&e.prose!==!1?$g:{},...a?.components?.map||{},...t.toRaw(e.data?.mdc?.components||{}),...e.components})),i=t.computed(()=>{const u=(e.body?.children||[]).map(f=>f.tag||f.type).filter(f=>!Un.includes(f));return Array.from(new Set(u)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,u=>{Object.assign(s,u)}),await qg(e.body,{tags:r.value});function c(u,f){const h=u.split(".").length-1;return u.split(".").reduce((g,C,E)=>E==h&&g?(g[C]=f,g[C]):typeof g=="object"?g[C]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(e){const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const f={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},h=o!==!1?Sn(o||f.component?.name||f.component||"div"):void 0;return h?t.h(h,{...f.component?.props,class:e.class,...this.$attrs,key:r},{default:g}):g?.();function g(){const C=er(l,t.h,{documentMeta:f,parentScope:f,resolveComponent:Sn});return C?.default?s?Zl(C.default(),typeof s=="string"?s.split(" "):["*"]):C.default():null}}});function xg(e,n,o,l){const{documentMeta:a,parentScope:r,resolveComponent:i}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const s=e.tag,c=nr(e,a.tags);if(e.tag==="binding")return Fg(e,n,a,r);const u=tr(c)?g=>g:i;if(Rg.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Rt(e)+"</"+c+">");const f=u(c);typeof f=="object"&&(f.tag=s);const h=Ug(e,a);return l&&(h.key=l),n(f,h,er(e,n,{documentMeta:a,parentScope:{...r,...h},resolveComponent:u}))}function er(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(e.children||[]).reduce((u,f)=>{if(!Kg(f))return u[Nn].children.push(f),u;const h=jg(f);return u[h]=u[h]||{props:{},children:[]},f.type==="element"&&(u[h].props=f.props,u[h].children.push(...f.children||[])),u},{[Nn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[f,{props:h,children:g}])=>(g.length&&(u[f]=(C={})=>{const E=Vg(C,Object.keys(h||{}));let S=g.map((k,m)=>xg(k,n,{documentMeta:l,parentScope:{...a,...E},resolveComponent:r},String(k.props?.key||m)));return h?.unwrap&&(S=Zl(S,h.unwrap)),Yg(S)}),u),{})}function Fg(e,n,o,l={}){const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=(e.props?.value.trim().split(r).filter(Boolean)).reduce((u,f)=>{if(u&&f in u)return typeof u[f]=="function"?u[f]():u[f]},a),c=e.props?.defaultValue;return n(t.Text,s??c??"")}function Ug(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(Bg.test(r))return Hg(r,i,a,n,{native:Dg.includes(o)});if(r==="v-bind")return zg(r,i,a,n);if(Jl.test(r))return Gg(r,i,a,n);if(Ql.test(r))return Wg(r,i,a,n);const{attribute:s}=wg(Ag,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function Hg(e,n,o,l,{native:a}){const r=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=zt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,a?c.target?.value:c)},o}function zg(e,n,o,l){const a=zt(n,l);return o=Object.assign(o,a),o}function Gg(e,n,o,l){return e=e.replace(Jl,""),o.on=o.on||{},o.on[e]=()=>zt(n,l),o}function Wg(e,n,o,l){return e=e.replace(Ql,""),o[e]=zt(n,l),o}const Sn=e=>{if(typeof e=="string"){if(Un.includes(e))return e;const n=t.resolveComponent(Fl(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?t.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return e};function zt(e,n){const o=e.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?gg(e):o}function jg(e){let n="";for(const o of Object.keys(e.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){n=o.split(/[:#]/,2)[1];break}return n||Nn}function Kg(e){return e.tag==="template"}function tr(e){return Pg.includes(e)}function Yg(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&l?.type===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function qg(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async a=>{if(a?.render||a?.ssrRender||a?.__ssrInlineRender)return;const r=Sn(a);r?.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=nr(a,r.tags);if(tr(s))return[];const c=[];a.type!=="root"&&!Un.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function nr(e,n){const o=e.tag;return!o||typeof e.props?.__ignoreMap<"u"?o:n[o]||n[Fl(o)]||n[yg(e.tag)]||o}const Xg=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(Mg,t.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=N.CLUSTER_PREFIX;exports.EVENTS=N.EVENTS;exports.NODE_SIZES=N.NODE_SIZES;exports.SECTIONS=N.SECTIONS;exports.Utils=N.Utils;exports.VueFlowUtils=N.VueFlowUtils;exports.editorViewTypes=N.editorViewTypes;exports.executeFlowBehaviours=N.executeFlowBehaviours;exports.logDisplayTypes=N.logDisplayTypes;exports.stateDisplayValues=N.stateDisplayValues;exports.stateGlobalChartTypes=N.stateGlobalChartTypes;exports.storageKeys=N.storageKeys;exports.DependenciesNode=hc;exports.MDCRenderer=Xg;exports.PluginIndex=cg;exports.RotatingDotsIcon=Ho;exports.STATES=H;exports.SchemaToHtml=Y1;exports.State=te;exports.TaskIcon=On;exports.Topology=dm;exports.YamlUtils=mr;exports.cssVariable=Ce;exports.getMDCParser=Ba;exports.isEntryAPluginElementPredicate=Uo;exports.slugify=We;exports.subGroupName=et;
|
|
27
|
+
`.concat(E.code),u=t.ref(),f=t.computed(()=>l.schema.properties?.$examples),h=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(E=>[E.name,{...E,name:void 0}]))),{getHighlighterCore:g}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);u.value=([n,o]=t.withAsyncContext(()=>g()),n=await n,o(),n);const C="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{window.removeEventListener("hashchange",s)}),(E,S)=>(t.openBlock(),t.createElementBlock("div",B1,[t.createElementVNode("div",D1,[E.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",P1,[...S[0]||(S[0]=[t.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)])])):t.createCommentVNode("",!0),E.schema.properties?.title?(t.openBlock(),t.createElementBlock("div",$1,[t.renderSlot(E.$slots,"markdown",{content:E.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),E.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",R1,[t.renderSlot(E.$slots,"markdown",{content:E.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Do,{highlighter:u.value,language:"yaml",theme:C,code:`type: "${E.pluginType}"`,key:E.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:E.pluginType},[f.value?(t.openBlock(),t.createBlock(Pt,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":E.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",M1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(k,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:E.pluginType+"-"+m},[t.createElementVNode("div",x1,[t.createElementVNode("div",F1,[k.title?t.renderSlot(E.$slots,"markdown",{key:0,content:k.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),k.code?(t.openBlock(),t.createBlock(Do,{key:0,highlighter:u.value,language:k.lang??"yaml",theme:C,code:c(k)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),m<f.value.length-1?(t.openBlock(),t.createElementBlock("hr",U1)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),E.schema.properties?.properties?(t.openBlock(),t.createBlock(bt,{key:1,class:"plugin-section",properties:E.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":E.propsInitiallyExpanded,"force-include":E.forceIncludeProperties,"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:k})=>[t.createElementVNode("div",H1,[t.renderSlot(E.$slots,"markdown",{content:k},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):t.createCommentVNode("",!0),E.schema.outputs?.properties&&Object.keys(E.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(bt,{key:2,class:"plugin-section",properties:E.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:k})=>[t.createElementVNode("div",z1,[t.renderSlot(E.$slots,"markdown",{content:k},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),E.schema.properties?.$metrics?(t.openBlock(),t.createBlock(bt,{key:3,class:"plugin-section",properties:h.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:k})=>[t.createElementVNode("div",G1,[t.renderSlot(E.$slots,"markdown",{content:k},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),E.schema.definitions&&Object.keys(E.schema.definitions).length>0?(t.openBlock(),t.createBlock(Pt,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${E.pluginType}-${i.value}`,"no-url-change":E.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",W1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(E.schema.definitions),([k,m])=>(t.openBlock(),t.createBlock(bt,{properties:m.properties,"section-name":m.title??k.split("_")[0],href:k,"show-dynamic":!1,"initially-expanded":r.value.has(k),key:E.pluginType+"-"+k,class:"plugin-section nested-button-py-2",onExpand:_=>{a.value=!0,r.value.add(k)},"no-url-change":E.noUrlChange},{markdown:t.withCtx(({content:_})=>[t.createElementVNode("div",j1,[t.renderSlot(E.$slots,"markdown",{content:_},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),Y1=P(K1,[["__scopeId","data-v-e94db40a"]]),q1={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},X1=["aria-hidden","aria-label"],Z1=["fill","width","height"],J1={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},Q1={key:0};function eg(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",J1,[o.title?(t.openBlock(),t.createElementBlock("title",Q1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Z1))],16,X1)}const tg=P(q1,[["render",eg]]),ng=["href"],og=["src","alt"],lg=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},routePath:{},href:{}},setup(e){const n=e,o=t.computed(()=>n.href===void 0?`${n.routePath}/${We(n.text)}`:n.href);return(l,a)=>(t.openBlock(),t.createElementBlock("a",{href:o.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[t.createElementVNode("img",{src:l.iconB64Svg,alt:`${l.text} icon`},null,8,og),t.createTextVNode(t.toDisplayString(l.text)+" ",1),t.createVNode(tg,{class:"ms-auto"})],8,ng))}}),Ro=P(lg,[["__scopeId","data-v-a361531e"]]),rg={class:"d-flex flex-column gap-4"},ag={key:1,class:"d-flex flex-column"},ig=["id"],sg={class:"d-flex flex-column"},cg=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},routePath:{},icons:{},subGroup:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(f=>n.subGroup===void 0?!0:We(et(f))===n.subGroup)),l=t.computed(()=>o.value?.longDescription??o.value?.description),a=t.computed(()=>n.plugins.filter(f=>f.name.toLowerCase()===n.pluginName.toLowerCase()&&f.subGroup!==void 0)),r=f=>{let h=f.split(".");return h?.[h.length-1]},i=f=>`${n.routePath}/${We(f)}`,s=f=>`${n.routePath}/${f}`;function c(f){return Object.fromEntries(Object.entries(f).filter(([h,g])=>Uo(h,g)).map(([h,g])=>[h.replace(/[A-Z]/g,C=>` ${C}`),g.filter(({deprecated:C})=>!C).map(({cls:C})=>C)]))}const u=t.computed(()=>c(o.value));return(f,h)=>(t.openBlock(),t.createElementBlock("div",rg,[l.value!==void 0?t.renderSlot(f.$slots,"markdown",{key:0,content:l.value.replace(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(t.openBlock(),t.createElementBlock("div",ag,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,g=>(t.openBlock(),t.createBlock(Ro,{id:`group-${t.unref(We)(t.unref(et)(g))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[g.subGroup]??f.icons[g.group]),text:t.unref(et)(g),href:i(t.unref(et)(g)),key:t.unref(et)(g),"route-path":f.routePath,class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:g})},null,8,["id","icon-b64-svg","text","href","route-path","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(u.value,(g,C)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[t.createElementVNode("h4",{id:`section-${t.unref(We)(C)}`,class:"text-capitalize"},t.toDisplayString(C),9,ig),t.createElementVNode("div",sg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g,E=>(t.openBlock(),t.createBlock(Ro,{id:t.unref(We)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[o.value.subGroup??o.value.group]??f.icons[o.value.group]),text:r(E),href:s(E),key:E,"route-path":f.routePath,class:"text-capitalize",onClick:S=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","route-path","onClick"]))),128))])]))),128))]))}}),ug=/"(?:_|\\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*:/,dg=/"(?: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*:/,fg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function mg(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){pg(e);return}return n}function pg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function gg(e,n={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const o=e.trim();if(o.length<=9)switch(o.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(!fg.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ug.test(e)||dg.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,mg)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const hg=/\d/,Eg=["-","_","/","."];function _g(e=""){if(!hg.test(e))return e!==e.toLowerCase()}function xl(e,n){const o=Eg,l=[];if(!e||typeof e!="string")return l;let a="",r,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=_g(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const f=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=f+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function kg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Fl(e,n){return e?(Array.isArray(e)?e:xl(e)).map(o=>kg(o)).join(""):""}function yg(e,n){return e?(Array.isArray(e)?e:xl(e)).map(o=>o.toLowerCase()).join("-"):""}class gt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}gt.prototype.normal={};gt.prototype.property={};gt.prototype.space=void 0;function Ul(e,n){const o={},l={};for(const a of e)Object.assign(o,a.property),Object.assign(l,a.normal);return new gt(o,l,n)}function yn(e){return e.toLowerCase()}class _e{constructor(n,o){this.attribute=o,this.property=n}}_e.prototype.attribute="";_e.prototype.booleanish=!1;_e.prototype.boolean=!1;_e.prototype.commaOrSpaceSeparated=!1;_e.prototype.commaSeparated=!1;_e.prototype.defined=!1;_e.prototype.mustUseProperty=!1;_e.prototype.number=!1;_e.prototype.overloadedBoolean=!1;_e.prototype.property="";_e.prototype.spaceSeparated=!1;_e.prototype.space=void 0;let Cg=0;const x=qe(),se=qe(),Cn=qe(),A=qe(),J=qe(),nt=qe(),ye=qe();function qe(){return 2**++Cg}const vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:x,booleanish:se,commaOrSpaceSeparated:ye,commaSeparated:nt,number:A,overloadedBoolean:Cn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(vn);class Fn extends _e{constructor(n,o,l,a){let r=-1;if(super(n,o),Mo(this,"space",a),typeof l=="number")for(;++r<rn.length;){const i=rn[r];Mo(this,rn[r],(l&vn[i])===vn[i])}}}Fn.prototype.defined=!0;function Mo(e,n,o){o&&(e[n]=o)}function rt(e){const n={},o={};for(const[l,a]of Object.entries(e.properties)){const r=new Fn(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[yn(l)]=l,o[yn(r.attribute)]=l}return new gt(n,o,e.space)}const Hl=rt({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:A,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:se,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function zl(e,n){return n in e?e[n]:n}function Gl(e,n){return zl(e,n.toLowerCase())}const vg=rt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nt,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:x,allowPaymentRequest:x,allowUserMedia:x,alt:null,as:null,async:x,autoCapitalize:null,autoComplete:J,autoFocus:x,autoPlay:x,blocking:J,capture:null,charSet:null,checked:x,cite:null,className:J,cols:A,colSpan:null,content:null,contentEditable:se,controls:x,controlsList:J,coords:A|nt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:x,defer:x,dir:null,dirName:null,disabled:x,download:Cn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:x,formTarget:null,headers:J,height:A,hidden:Cn,high:A,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:x,inputMode:null,integrity:null,is:null,isMap:x,itemId:null,itemProp:J,itemRef:J,itemScope:x,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:x,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:x,muted:x,name:null,nonce:null,noModule:x,noValidate:x,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:x,optimum:A,pattern:null,ping:J,placeholder:null,playsInline:x,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:x,referrerPolicy:null,rel:J,required:x,reversed:x,rows:A,rowSpan:A,sandbox:J,scope:null,scoped:x,seamless:x,selected:x,shadowRootClonable:x,shadowRootDelegatesFocus:x,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:x,useMap:null,value:se,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:x,declare:x,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:x,noHref:x,noShade:x,noWrap:x,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:x,disableRemotePlayback:x,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Gl}),Ng=rt({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:ye,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:J,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:x,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:nt,g2:nt,glyphName:nt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zl}),Wl=rt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),jl=rt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gl}),Kl=rt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Sg=/[A-Z]/g,xo=/-[a-z]/g,bg=/^data[-\w.:]+$/i;function wg(e,n){const o=yn(n);let l=n,a=_e;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&bg.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(xo,Tg);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!xo.test(r)){let i=r.replace(Sg,Lg);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=Fn}return new a(l,n)}function Lg(e){return"-"+e.toLowerCase()}function Tg(e){return e.charAt(1).toUpperCase()}const Ag=Ul([Hl,vg,Wl,jl,Kl],"html");Ul([Hl,Ng,Wl,jl,Kl],"svg");const Un=["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"],Ig=["p","h1","h2","h3","h4","h5","h6","li"];function $t(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function Hn(e){return $t(e,"text")||$t(e,Symbol.for("v-txt"))}function Yl(e){return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof e.children?.default=="function"?e.children.default():[]}function Rt(e){if(!e)return"";if(Array.isArray(e))return e.map(Rt).join("");if(Hn(e))return e.value||e.children||"";const n=Yl(e);return Array.isArray(n)?n.map(Rt).filter(Boolean).join(""):""}function ql(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>ql(l,n));let o=e;return n.some(l=>l==="*"||$t(e,l))&&(o=Yl(e)||e,!Array.isArray(o)&&Ig.some(l=>$t(e,l))&&(o=[o])),o}function Xl(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>Xl(ql(o,[n[0]]),n.slice(1))).filter(o=>!(Hn(o)&&Rt(o).trim()==="")):e}function Zl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?Xl(e,n).reduce((o,l)=>(Hn(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function Vg(e,n){return n.reduce((o,l)=>{const a=Og(e,l);return a!==void 0&&(o[l]=a),o},{})}function Og(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const Nn="default",Jl=/^@|^v-on:/,Ql=/^:|^v-bind:/,Bg=/^v-model/,Dg=["select","textarea","input"],Pg=["math","svg"],$g=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}`])),Rg=["script","base"],Mg=t.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){const o=t.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:a}=o?.$config?.public||{},r=t.computed(()=>({...a?.components?.prose&&e.prose!==!1?$g:{},...a?.components?.map||{},...t.toRaw(e.data?.mdc?.components||{}),...e.components})),i=t.computed(()=>{const u=(e.body?.children||[]).map(f=>f.tag||f.type).filter(f=>!Un.includes(f));return Array.from(new Set(u)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,u=>{Object.assign(s,u)}),await qg(e.body,{tags:r.value});function c(u,f){const h=u.split(".").length-1;return u.split(".").reduce((g,C,E)=>E==h&&g?(g[C]=f,g[C]):typeof g=="object"?g[C]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(e){const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const f={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},h=o!==!1?Sn(o||f.component?.name||f.component||"div"):void 0;return h?t.h(h,{...f.component?.props,class:e.class,...this.$attrs,key:r},{default:g}):g?.();function g(){const C=er(l,t.h,{documentMeta:f,parentScope:f,resolveComponent:Sn});return C?.default?s?Zl(C.default(),typeof s=="string"?s.split(" "):["*"]):C.default():null}}});function xg(e,n,o,l){const{documentMeta:a,parentScope:r,resolveComponent:i}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const s=e.tag,c=nr(e,a.tags);if(e.tag==="binding")return Fg(e,n,a,r);const u=tr(c)?g=>g:i;if(Rg.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Rt(e)+"</"+c+">");const f=u(c);typeof f=="object"&&(f.tag=s);const h=Ug(e,a);return l&&(h.key=l),n(f,h,er(e,n,{documentMeta:a,parentScope:{...r,...h},resolveComponent:u}))}function er(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(e.children||[]).reduce((u,f)=>{if(!Kg(f))return u[Nn].children.push(f),u;const h=jg(f);return u[h]=u[h]||{props:{},children:[]},f.type==="element"&&(u[h].props=f.props,u[h].children.push(...f.children||[])),u},{[Nn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[f,{props:h,children:g}])=>(g.length&&(u[f]=(C={})=>{const E=Vg(C,Object.keys(h||{}));let S=g.map((k,m)=>xg(k,n,{documentMeta:l,parentScope:{...a,...E},resolveComponent:r},String(k.props?.key||m)));return h?.unwrap&&(S=Zl(S,h.unwrap)),Yg(S)}),u),{})}function Fg(e,n,o,l={}){const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=(e.props?.value.trim().split(r).filter(Boolean)).reduce((u,f)=>{if(u&&f in u)return typeof u[f]=="function"?u[f]():u[f]},a),c=e.props?.defaultValue;return n(t.Text,s??c??"")}function Ug(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(Bg.test(r))return Hg(r,i,a,n,{native:Dg.includes(o)});if(r==="v-bind")return zg(r,i,a,n);if(Jl.test(r))return Gg(r,i,a,n);if(Ql.test(r))return Wg(r,i,a,n);const{attribute:s}=wg(Ag,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function Hg(e,n,o,l,{native:a}){const r=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=zt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,a?c.target?.value:c)},o}function zg(e,n,o,l){const a=zt(n,l);return o=Object.assign(o,a),o}function Gg(e,n,o,l){return e=e.replace(Jl,""),o.on=o.on||{},o.on[e]=()=>zt(n,l),o}function Wg(e,n,o,l){return e=e.replace(Ql,""),o[e]=zt(n,l),o}const Sn=e=>{if(typeof e=="string"){if(Un.includes(e))return e;const n=t.resolveComponent(Fl(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?t.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return e};function zt(e,n){const o=e.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?gg(e):o}function jg(e){let n="";for(const o of Object.keys(e.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){n=o.split(/[:#]/,2)[1];break}return n||Nn}function Kg(e){return e.tag==="template"}function tr(e){return Pg.includes(e)}function Yg(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&l?.type===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function qg(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async a=>{if(a?.render||a?.ssrRender||a?.__ssrInlineRender)return;const r=Sn(a);r?.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=nr(a,r.tags);if(tr(s))return[];const c=[];a.type!=="root"&&!Un.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function nr(e,n){const o=e.tag;return!o||typeof e.props?.__ignoreMap<"u"?o:n[o]||n[Fl(o)]||n[yg(e.tag)]||o}const Xg=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(Mg,t.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=N.CLUSTER_PREFIX;exports.EVENTS=N.EVENTS;exports.NODE_SIZES=N.NODE_SIZES;exports.SECTIONS=N.SECTIONS;exports.Utils=N.Utils;exports.VueFlowUtils=N.VueFlowUtils;exports.editorViewTypes=N.editorViewTypes;exports.executeFlowBehaviours=N.executeFlowBehaviours;exports.logDisplayTypes=N.logDisplayTypes;exports.stateDisplayValues=N.stateDisplayValues;exports.stateGlobalChartTypes=N.stateGlobalChartTypes;exports.storageKeys=N.storageKeys;exports.DependenciesNode=hc;exports.MDCRenderer=Xg;exports.PluginIndex=cg;exports.RotatingDotsIcon=Ho;exports.STATES=H;exports.SchemaToHtml=Y1;exports.State=te;exports.TaskIcon=On;exports.Topology=dm;exports.YamlUtils=mr;exports.cssVariable=Ce;exports.getMDCParser=Ba;exports.isEntryAPluginElementPredicate=Uo;exports.slugify=We;exports.subGroupName=et;
|
|
28
28
|
//# sourceMappingURL=kestra-index.cjs.js.map
|