@kestra-io/ui-libs 0.0.227 → 0.0.228
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/{FlowYamlUtils-MCAmyY3D.js → FlowYamlUtils-BrY8bEv7.js} +24 -17
- package/dist/{FlowYamlUtils-MCAmyY3D.js.map → FlowYamlUtils-BrY8bEv7.js.map} +1 -1
- package/dist/{FlowYamlUtils-DAm_-0Qh.cjs → FlowYamlUtils-DvtepVr2.cjs} +3 -2
- package/dist/{FlowYamlUtils-DAm_-0Qh.cjs.map → FlowYamlUtils-DvtepVr2.cjs.map} +1 -1
- package/dist/{VueFlowUtils-A_7_qgxS.js → VueFlowUtils-8xjnZl4e.js} +2 -2
- package/dist/{VueFlowUtils-A_7_qgxS.js.map → VueFlowUtils-8xjnZl4e.js.map} +1 -1
- package/dist/{VueFlowUtils-CL70qtJ4.cjs → VueFlowUtils-dC12uRkV.cjs} +2 -2
- package/dist/{VueFlowUtils-CL70qtJ4.cjs.map → VueFlowUtils-dC12uRkV.cjs.map} +1 -1
- package/dist/components/misc/Collapsible.vue.d.ts.map +1 -1
- package/dist/kestra-flowyamlutils.cjs.js +1 -1
- package/dist/kestra-flowyamlutils.es.js +1 -1
- package/dist/kestra-index.cjs.js +14 -14
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +1487 -1489
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/kestra-vueflowutils.cjs.js +1 -1
- package/dist/kestra-vueflowutils.es.js +2 -2
- package/dist/ui-libs.css +1 -1
- package/dist/utils/FlowYamlUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/misc/Collapsible.vue +2 -5
- package/src/utils/FlowYamlUtils.test.ts +11 -0
- package/src/utils/FlowYamlUtils.ts +16 -5
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";var er=Object.create;var Gn=Object.defineProperty;var tr=Object.getOwnPropertyDescriptor;var nr=Object.getOwnPropertyNames;var or=Object.getPrototypeOf,lr=Object.prototype.hasOwnProperty;var rr=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of nr(n))!lr.call(e,r)&&r!==o&&Gn(e,r,{get:()=>n[r],enumerable:!(l=tr(n,r))||l.enumerable});return e};var ir=(e,n,o)=>(o=e!=null?er(or(e)):{},rr(n||!e||!e.__esModule?Gn(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("yaml"),y=require("./VueFlowUtils-CL70qtJ4.cjs"),W=require("./FlowYamlUtils-DAm_-0Qh.cjs"),t=require("vue"),re=require("@vue-flow/core"),tn=require("@vue-flow/controls"),nn=require("moment"),ar=require("@popperjs/core"),bt=require("vue-router"),sr={lineWidth:0},Wn=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],cr={stringify:W.stringify,parse:W.parse,pairsToMap:W.pairsToMap,extractTask(e,n){for(const o of Wn){const l=W.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(i){if(i){if(i instanceof We.YAMLMap&&i.get("type")!==void 0&&n===i.get("id"))return o?o(i):i;if(i.items)for(const[a,s]of i.items.entries()){let c;if(s instanceof We.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(i instanceof We.YAMLMap?i.set(s.key.value,c):i.items[a]=c),!o&&c))return c}}}const r=l(e.contents);if(r!==void 0)return o?new We.Document(r):new We.Document(r)},replaceTaskInDocument(e,n,o,l="tasks",r="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:r,key:n,newContent:o})},sort:W.sort,getAllCharts:W.getAllCharts,getChartAtPosition:W.getChartAtPosition,localizeElementAtIndex:W.localizeElementAtIndex,getTaskType:W.getTypeAtPosition,swapTasks(e,n,o){const l=We.parseDocument(e),r=this._extractTask(l,n),i=this._extractTask(l,o);return We.visit(l,{Pair(a,s){if(s.key.value==="dependsOn"&&s.value.items.map(c=>c.value).includes(o))throw{message:"dependency task",messageOptions:{taskId:o}}}}),this._extractTask(l,n,()=>i),this._extractTask(l,o,()=>r),l.toString(sr)},insertTask(e,n,o,l,r){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:r})},insertSection(e,n,o){return W.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:W.insertErrorInFlowable,deleteSection(e,n,o){return W.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===y.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((r,i)=>W.deleteBlock({source:r,section:i,key:n}),e)},getLastTask(e,n){return W.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return W.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return W.isParentChildrenRelation({source:e,sections:Wn,key1:n,key2:o,keyName:"id"})},replaceIdAndNamespace:W.replaceIdAndNamespace,updateMetadata:W.updateMetadata,cleanMetadata:W.cleanMetadata,getMetadata:W.getMetadata,deleteMetadata:W.deleteMetadata,flowHaveTasks:W.flowHaveTasks,extractPluginDefault:W.extractPluginDefault,replacePluginDefaultsInDocument:W.replacePluginDefaultsInDocument,deletePluginDefaults:W.deletePluginDefaults,extractFieldFromMaps:W.extractFieldFromMaps,getVersionAtPosition:W.getVersionAtPosition},Ne=e=>{const n=document.querySelector(":root"),o=n?getComputedStyle(n):null;return o==null?void 0:o.getPropertyValue(e)};var ur=y.requireMapValues();const gt=W.getDefaultExportFromCjs(ur),B=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},dr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fr=["aria-hidden","aria-label"],mr=["fill","width","height"],pr={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},gr={key:0};function hr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",pr,[o.title?(t.openBlock(),t.createElementBlock("title",gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mr))],16,fr)}const jn=B(dr,[["render",hr]]),Er={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kr=["aria-hidden","aria-label"],_r=["fill","width","height"],yr={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},Cr={key:0};function Nr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon check-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",yr,[o.title?(t.openBlock(),t.createElementBlock("title",Cr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_r))],16,kr)}const vr=B(Er,[["render",Nr]]),Sr={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},br=["aria-hidden","aria-label"],Lr=["fill","width","height"],Tr={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},wr={key:0};function Ar(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon play-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Tr,[o.title?(t.openBlock(),t.createElementBlock("title",wr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Lr))],16,br)}const Ir=B(Sr,[["render",Ar]]),Vr={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Or=["aria-hidden","aria-label"],Dr=["fill","width","height"],Br={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},Pr={key:0};function Rr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon close-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Br,[o.title?(t.openBlock(),t.createElementBlock("title",Pr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Dr))],16,Or)}const cn=B(Vr,[["render",Rr]]),$r={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Mr=["aria-hidden","aria-label"],xr=["fill","width","height"],Fr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},Ur={key:0};function Hr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Fr,[o.title?(t.openBlock(),t.createElementBlock("title",Ur,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,xr))],16,Mr)}const zr=B($r,[["render",Hr]]),Gr={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wr=["aria-hidden","aria-label"],jr=["fill","width","height"],Kr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},Yr={key:0};function qr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Kr,[o.title?(t.openBlock(),t.createElementBlock("title",Yr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,jr))],16,Wr)}const Xr=B(Gr,[["render",qr]]),Zr={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jr=["aria-hidden","aria-label"],Qr=["fill","width","height"],ei={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},ti={key:0};function ni(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",ei,[o.title?(t.openBlock(),t.createElementBlock("title",ti,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qr))],16,Jr)}const un=B(Zr,[["render",ni]]),oi={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},li=["aria-hidden","aria-label"],ri=["fill","width","height"],ii={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},ai={key:0};function si(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",ii,[o.title?(t.openBlock(),t.createElementBlock("title",ai,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ri))],16,li)}const ci=B(oi,[["render",si]]),ui={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},di=["aria-hidden","aria-label"],fi=["fill","width","height"],mi={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},pi={key:0};function gi(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",mi,[o.title?(t.openBlock(),t.createElementBlock("title",pi,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fi))],16,di)}const hi=B(ui,[["render",gi]]),Ei={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ki=["aria-hidden","aria-label"],_i=["fill","width","height"],yi={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},Ci={key:0};function Ni(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon refresh-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",yi,[o.title?(t.openBlock(),t.createElementBlock("title",Ci,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_i))],16,ki)}const Kn=B(Ei,[["render",Ni]]),vi={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Si=["aria-hidden","aria-label"],bi=["fill","width","height"],Li={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},Ti={key:0};function wi(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon cancel-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Li,[o.title?(t.openBlock(),t.createElementBlock("title",Ti,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bi))],16,Si)}const Yn=B(vi,[["render",wi]]),G=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:ci,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Xr,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:vr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Ir,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:cn,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:zr,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:un,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:cn,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:jn,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Yn,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Yn,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:hi,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:Kn,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:Kn,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:jn,isRunning:!1,isKillable:!1,isFailed:!1}});class ae{static get CREATED(){return G.CREATED.name}static get RESTARTED(){return G.RESTARTED.name}static get SUCCESS(){return G.SUCCESS.name}static get RUNNING(){return G.RUNNING.name}static get KILLING(){return G.KILLING.name}static get KILLED(){return G.KILLED.name}static get FAILED(){return G.FAILED.name}static get WARNING(){return G.WARNING.name}static get PAUSED(){return G.PAUSED.name}static get CANCELLED(){return G.CANCELLED.name}static get QUEUED(){return G.QUEUED.name}static get RETRYING(){return G.RETRYING.name}static get RETRIED(){return G.RETRIED.name}static get BREAKPOINT(){return G.BREAKPOINT.name}static isRunning(n){return G[n]&&G[n].isRunning}static isKillable(n){return G[n]&&G[n].isKillable}static isPaused(n){return G[n]&&G[n]===G.PAUSED}static isFailed(n){return G[n]&&G[n].isFailed}static isQueued(n){return G[n]&&G[n]===G.QUEUED}static allStates(){return gt(G,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(G)}static colorClass(){return gt(G,n=>n.colorClass)}static color(){return gt(G,n=>Ne("--bs-"+n.colorClass))}static getStateColor(n){return G[n].color}static icon(){return gt(G,n=>n.icon)}static getTerminatedStates(){return Object.values(G).filter(n=>!n.isRunning).map(n=>n.name)}}let ht;async function Ai(){if(ht)return ht;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(o=>o.useMarkdownParser);return ht=await(e.default??e)(),ht}var vt={exports:{}},Ii=vt.exports,qn;function Vi(){return qn||(qn=1,function(e,n){(function(o,l,r){e.exports=r(),e.exports.default=r()})("slugify",Ii,function(){var o=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),l=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(i,a){if(typeof i!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var s=l[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,d=a.trim===void 0?!0:a.trim,m=i.normalize().split("").reduce(function(E,h){var C=s[h];return C===void 0&&(C=o[h]),C===void 0&&(C=h),C===c&&(C=" "),E+C.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(m=m.replace(/[^A-Za-z0-9\s]/g,"")),d&&(m=m.trim()),m=m.replace(/\s+/g,c),a.lower&&(m=m.toLowerCase()),m}return r.extend=function(i){Object.assign(o,i)},r})}(vt)),vt.exports}var Oi=Vi();const Ro=W.getDefaultExportFromCjs(Oi);Ro.extend({"(":"-",")":""});function je(e){return Ro(e,{lower:!0,locale:"en"})}function $o(e,n){var o;return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||((o=n[0])==null?void 0:o.cls)!==void 0)}function Je(e){const n=e.title.replaceAll(/\.([a-zA-Z])/g,(o,l)=>` ${l.toUpperCase()}`);return n.charAt(0).toUpperCase()+n.slice(1)}/*!
|
|
1
|
+
"use strict";var er=Object.create;var Gn=Object.defineProperty;var tr=Object.getOwnPropertyDescriptor;var nr=Object.getOwnPropertyNames;var or=Object.getPrototypeOf,lr=Object.prototype.hasOwnProperty;var rr=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of nr(n))!lr.call(e,r)&&r!==o&&Gn(e,r,{get:()=>n[r],enumerable:!(l=tr(n,r))||l.enumerable});return e};var ir=(e,n,o)=>(o=e!=null?er(or(e)):{},rr(n||!e||!e.__esModule?Gn(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("yaml"),y=require("./VueFlowUtils-dC12uRkV.cjs"),W=require("./FlowYamlUtils-DvtepVr2.cjs"),t=require("vue"),re=require("@vue-flow/core"),en=require("@vue-flow/controls"),tn=require("moment"),ar=require("@popperjs/core"),Ln=require("vue-router"),sr={lineWidth:0},Wn=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],cr={stringify:W.stringify,parse:W.parse,pairsToMap:W.pairsToMap,extractTask(e,n){for(const o of Wn){const l=W.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(i){if(i){if(i instanceof We.YAMLMap&&i.get("type")!==void 0&&n===i.get("id"))return o?o(i):i;if(i.items)for(const[a,s]of i.items.entries()){let c;if(s instanceof We.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(i instanceof We.YAMLMap?i.set(s.key.value,c):i.items[a]=c),!o&&c))return c}}}const r=l(e.contents);if(r!==void 0)return o?new We.Document(r):new We.Document(r)},replaceTaskInDocument(e,n,o,l="tasks",r="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:r,key:n,newContent:o})},sort:W.sort,getAllCharts:W.getAllCharts,getChartAtPosition:W.getChartAtPosition,localizeElementAtIndex:W.localizeElementAtIndex,getTaskType:W.getTypeAtPosition,swapTasks(e,n,o){const l=We.parseDocument(e),r=this._extractTask(l,n),i=this._extractTask(l,o);return We.visit(l,{Pair(a,s){if(s.key.value==="dependsOn"&&s.value.items.map(c=>c.value).includes(o))throw{message:"dependency task",messageOptions:{taskId:o}}}}),this._extractTask(l,n,()=>i),this._extractTask(l,o,()=>r),l.toString(sr)},insertTask(e,n,o,l,r){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:r})},insertSection(e,n,o){return W.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:W.insertErrorInFlowable,deleteSection(e,n,o){return W.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===y.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((r,i)=>W.deleteBlock({source:r,section:i,key:n}),e)},getLastTask(e,n){return W.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return W.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return W.isParentChildrenRelation({source:e,sections:Wn,key1:n,key2:o,keyName:"id"})},replaceIdAndNamespace:W.replaceIdAndNamespace,updateMetadata:W.updateMetadata,cleanMetadata:W.cleanMetadata,getMetadata:W.getMetadata,deleteMetadata:W.deleteMetadata,flowHaveTasks:W.flowHaveTasks,extractPluginDefault:W.extractPluginDefault,replacePluginDefaultsInDocument:W.replacePluginDefaultsInDocument,deletePluginDefaults:W.deletePluginDefaults,extractFieldFromMaps:W.extractFieldFromMaps,getVersionAtPosition:W.getVersionAtPosition},Ne=e=>{const n=document.querySelector(":root"),o=n?getComputedStyle(n):null;return o==null?void 0:o.getPropertyValue(e)};var ur=y.requireMapValues();const gt=W.getDefaultExportFromCjs(ur),B=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},dr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fr=["aria-hidden","aria-label"],mr=["fill","width","height"],pr={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},gr={key:0};function hr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",pr,[o.title?(t.openBlock(),t.createElementBlock("title",gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mr))],16,fr)}const jn=B(dr,[["render",hr]]),Er={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kr=["aria-hidden","aria-label"],_r=["fill","width","height"],yr={d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"},Cr={key:0};function Nr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon check-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",yr,[o.title?(t.openBlock(),t.createElementBlock("title",Cr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_r))],16,kr)}const vr=B(Er,[["render",Nr]]),Sr={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},br=["aria-hidden","aria-label"],Lr=["fill","width","height"],Tr={d:"M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},wr={key:0};function Ar(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon play-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Tr,[o.title?(t.openBlock(),t.createElementBlock("title",wr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Lr))],16,br)}const Ir=B(Sr,[["render",Ar]]),Vr={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Or=["aria-hidden","aria-label"],Dr=["fill","width","height"],Br={d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},Pr={key:0};function Rr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon close-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Br,[o.title?(t.openBlock(),t.createElementBlock("title",Pr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Dr))],16,Or)}const sn=B(Vr,[["render",Rr]]),$r={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Mr=["aria-hidden","aria-label"],xr=["fill","width","height"],Fr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9"},Ur={key:0};function Hr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Fr,[o.title?(t.openBlock(),t.createElementBlock("title",Ur,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,xr))],16,Mr)}const zr=B($r,[["render",Hr]]),Gr={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wr=["aria-hidden","aria-label"],jr=["fill","width","height"],Kr={d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M8,8H10V16H8M16,8V16L11,12"},Yr={key:0};function qr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Kr,[o.title?(t.openBlock(),t.createElementBlock("title",Yr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,jr))],16,Wr)}const Xr=B(Gr,[["render",qr]]),Zr={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jr=["aria-hidden","aria-label"],Qr=["fill","width","height"],ei={d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},ti={key:0};function ni(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",ei,[o.title?(t.openBlock(),t.createElementBlock("title",ti,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qr))],16,Jr)}const cn=B(Zr,[["render",ni]]),oi={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},li=["aria-hidden","aria-label"],ri=["fill","width","height"],ii={d:"M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5A1.5,1.5 0 0,0 10.5,12M10.5,17.5A1.5,1.5 0 0,0 12,19A1.5,1.5 0 0,0 13.5,17.5A1.5,1.5 0 0,0 12,16A1.5,1.5 0 0,0 10.5,17.5M10.5,6.5A1.5,1.5 0 0,0 12,8A1.5,1.5 0 0,0 13.5,6.5A1.5,1.5 0 0,0 12,5A1.5,1.5 0 0,0 10.5,6.5Z"},ai={key:0};function si(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",ii,[o.title?(t.openBlock(),t.createElementBlock("title",ai,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ri))],16,li)}const ci=B(oi,[["render",si]]),ui={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},di=["aria-hidden","aria-label"],fi=["fill","width","height"],mi={d:"M22 12C22 6.46 17.54 2 12 2C10.83 2 9.7 2.19 8.62 2.56L9.32 4.5C10.17 4.16 11.06 3.97 12 3.97C16.41 3.97 20.03 7.59 20.03 12C20.03 16.41 16.41 20.03 12 20.03C7.59 20.03 3.97 16.41 3.97 12C3.97 11.06 4.16 10.12 4.5 9.28L2.56 8.62C2.19 9.7 2 10.83 2 12C2 17.54 6.46 22 12 22C17.54 22 22 17.54 22 12M5.47 7C4.68 7 3.97 6.32 3.97 5.47C3.97 4.68 4.68 3.97 5.47 3.97C6.32 3.97 7 4.68 7 5.47C7 6.32 6.32 7 5.47 7M9 9H11V15H9M13 9H15V15H13"},pi={key:0};function gi(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",mi,[o.title?(t.openBlock(),t.createElementBlock("title",pi,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fi))],16,di)}const hi=B(ui,[["render",gi]]),Ei={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ki=["aria-hidden","aria-label"],_i=["fill","width","height"],yi={d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"},Ci={key:0};function Ni(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon refresh-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",yi,[o.title?(t.openBlock(),t.createElementBlock("title",Ci,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_i))],16,ki)}const Kn=B(Ei,[["render",Ni]]),vi={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Si=["aria-hidden","aria-label"],bi=["fill","width","height"],Li={d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"},Ti={key:0};function wi(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon cancel-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Li,[o.title?(t.openBlock(),t.createElementBlock("title",Ti,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bi))],16,Si)}const Yn=B(vi,[["render",wi]]),G=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:ci,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Xr,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:vr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Ir,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:sn,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:zr,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:cn,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:sn,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:jn,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:Yn,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:Yn,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:hi,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:Kn,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:Kn,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:jn,isRunning:!1,isKillable:!1,isFailed:!1}});class ae{static get CREATED(){return G.CREATED.name}static get RESTARTED(){return G.RESTARTED.name}static get SUCCESS(){return G.SUCCESS.name}static get RUNNING(){return G.RUNNING.name}static get KILLING(){return G.KILLING.name}static get KILLED(){return G.KILLED.name}static get FAILED(){return G.FAILED.name}static get WARNING(){return G.WARNING.name}static get PAUSED(){return G.PAUSED.name}static get CANCELLED(){return G.CANCELLED.name}static get QUEUED(){return G.QUEUED.name}static get RETRYING(){return G.RETRYING.name}static get RETRIED(){return G.RETRIED.name}static get BREAKPOINT(){return G.BREAKPOINT.name}static isRunning(n){return G[n]&&G[n].isRunning}static isKillable(n){return G[n]&&G[n].isKillable}static isPaused(n){return G[n]&&G[n]===G.PAUSED}static isFailed(n){return G[n]&&G[n].isFailed}static isQueued(n){return G[n]&&G[n]===G.QUEUED}static allStates(){return gt(G,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(G)}static colorClass(){return gt(G,n=>n.colorClass)}static color(){return gt(G,n=>Ne("--bs-"+n.colorClass))}static getStateColor(n){return G[n].color}static icon(){return gt(G,n=>n.icon)}static getTerminatedStates(){return Object.values(G).filter(n=>!n.isRunning).map(n=>n.name)}}let ht;async function Ai(){if(ht)return ht;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-CPHSSwzs.cjs")).then(o=>o.useMarkdownParser);return ht=await(e.default??e)(),ht}var vt={exports:{}},Ii=vt.exports,qn;function Vi(){return qn||(qn=1,function(e,n){(function(o,l,r){e.exports=r(),e.exports.default=r()})("slugify",Ii,function(){var o=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),l=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(i,a){if(typeof i!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var s=l[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,u=a.trim===void 0?!0:a.trim,h=i.normalize().split("").reduce(function(E,g){var C=s[g];return C===void 0&&(C=o[g]),C===void 0&&(C=g),C===c&&(C=" "),E+C.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(h=h.replace(/[^A-Za-z0-9\s]/g,"")),u&&(h=h.trim()),h=h.replace(/\s+/g,c),a.lower&&(h=h.toLowerCase()),h}return r.extend=function(i){Object.assign(o,i)},r})}(vt)),vt.exports}var Oi=Vi();const Ro=W.getDefaultExportFromCjs(Oi);Ro.extend({"(":"-",")":""});function je(e){return Ro(e,{lower:!0,locale:"en"})}function $o(e,n){var o;return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||((o=n[0])==null?void 0:o.cls)!==void 0)}function Je(e){const n=e.title.replaceAll(/\.([a-zA-Z])/g,(o,l)=>` ${l.toUpperCase()}`);return n.charAt(0).toUpperCase()+n.slice(1)}/*!
|
|
2
2
|
* shared v11.1.3
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
5
|
-
*/const Be=typeof window<"u";let ve,Ye;if(process.env.NODE_ENV!=="production"){const e=Be&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ve=n=>{e.mark(n)},Ye=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const Di=/\{([0-9a-zA-Z]+)\}/g;function
|
|
5
|
+
*/const Be=typeof window<"u";let ve,Ye;if(process.env.NODE_ENV!=="production"){const e=Be&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ve=n=>{e.mark(n)},Ye=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const Di=/\{([0-9a-zA-Z]+)\}/g;function Dt(e,...n){return n.length===1&&Y(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(Di,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const Pe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),Bi=(e,n,o)=>Pi({l:e,k:n,s:o}),Pi=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ue=e=>typeof e=="number"&&isFinite(e),Ri=e=>Tn(e)==="[object Date]",bt=e=>Tn(e)==="[object RegExp]",Bt=e=>K(e)&&Object.keys(e).length===0,de=Object.assign,$i=Object.create,Z=(e=null)=>$i(e);let Xn;const Ke=()=>Xn||(Xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Z());function Zn(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Mi=Object.prototype.hasOwnProperty;function be(e,n){return Mi.call(e,n)}const se=Array.isArray,ee=e=>typeof e=="function",D=e=>typeof e=="string",le=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",xi=e=>Y(e)&&ee(e.then)&&ee(e.catch),Mo=Object.prototype.toString,Tn=e=>Mo.call(e),K=e=>Tn(e)==="[object Object]",Fi=e=>e==null?"":se(e)||K(e)&&e.toString===Mo?JSON.stringify(e,null,2):String(e);function wn(e,n=""){return e.reduce((o,l,r)=>r===0?o+l:o+n+l,"")}const Jn=2;function Ui(e,n=0,o=e.length){const l=e.split(/\r?\n/);let r=0;const i=[];for(let a=0;a<l.length;a++)if(r+=l[a].length+1,r>=n){for(let s=a-Jn;s<=a+Jn||o>r;s++){if(s<0||s>=l.length)continue;const c=s+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${l[s]}`);const u=l[s].length;if(s===a){const h=n-(r-u)+1,E=Math.max(1,o>r?u-h:o-n);i.push(" | "+" ".repeat(h)+"^".repeat(E))}else if(s>a){if(o>r){const h=Math.max(Math.min(o-r,u),1);i.push(" | "+"^".repeat(h))}r+=u+1}}break}return i.join(`
|
|
6
6
|
`)}function Me(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const Qn={};function Hi(e){Qn[e]||(Qn[e]=!0,Me(e))}function zi(){const e=new Map;return{events:e,on(o,l){const r=e.get(o);r&&r.push(l)||e.set(o,[l])},off(o,l){const r=e.get(o);r&&r.splice(r.indexOf(l)>>>0,1)},emit(o,l){(e.get(o)||[]).slice().map(r=>r(l)),(e.get("*")||[]).slice().map(r=>r(o,l))}}}const Et=e=>!Y(e)||se(e);function St(e,n){if(Et(e)||Et(n))throw new Error("Invalid value");const o=[{src:e,des:n}];for(;o.length;){const{src:l,des:r}=o.pop();Object.keys(l).forEach(i=>{i!=="__proto__"&&(Y(l[i])&&!Y(r[i])&&(r[i]=Array.isArray(l[i])?[]:Z()),Et(r[i])||Et(l[i])?r[i]=l[i]:o.push({src:l[i],des:r[i]}))})}}/*!
|
|
7
7
|
* message-compiler v11.1.3
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
|
-
*/function Gi(e,n,o){return{line:e,column:n,offset:o}}function
|
|
11
|
-
`,Zi="\u2028",Ji="\u2029";function Qi(e){const n=e;let o=0,l=1,r=1,i=0;const a=N=>n[N]===Xi&&n[N+1]===ge,s=N=>n[N]===ge,c=N=>n[N]===Ji,d=N=>n[N]===Zi,m=N=>a(N)||s(N)||c(N)||d(N),E=()=>o,h=()=>l,C=()=>r,V=()=>i,L=N=>a(N)||c(N)||d(N)?ge:n[N],O=()=>L(o),g=()=>L(o+i);function k(){return i=0,m(o)&&(l++,r=0),a(o)&&o++,o++,r++,n[o]}function S(){return a(o+i)&&i++,i++,n[o+i]}function p(){o=0,l=1,r=1,i=0}function b(N=0){i=N}function I(){const N=o+i;for(;N!==o;)k();i=0}return{index:E,line:h,column:C,peekOffset:V,charAt:L,currentChar:O,currentPeek:g,next:k,peek:S,reset:p,resetPeek:b,skipToPeek:I}}const Re=void 0,ea=".",eo="'",ta="tokenizer";function na(e,n={}){const o=n.location!==!1,l=Qi(e),r=()=>l.index(),i=()=>Gi(l.line(),l.column(),l.index()),a=i(),s=r(),c={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:m}=n;function E(u,f,v,...$){const te=d();if(f.column+=v,f.offset+=v,m){const ne=o?dn(te.startLoc,f):null,j=nt(u,ne,{domain:ta,args:$});m(j)}}function h(u,f,v){u.endLoc=i(),u.currentType=f;const $={type:f};return o&&($.loc=dn(u.startLoc,u.endLoc)),v!=null&&($.value=v),$}const C=u=>h(u,13);function V(u,f){return u.currentChar()===f?(u.next(),f):(E(M.EXPECTED_TOKEN,i(),0,f),"")}function L(u){let f="";for(;u.currentPeek()===Ve||u.currentPeek()===ge;)f+=u.currentPeek(),u.peek();return f}function O(u){const f=L(u);return u.skipToPeek(),f}function g(u){if(u===Re)return!1;const f=u.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function k(u){if(u===Re)return!1;const f=u.charCodeAt(0);return f>=48&&f<=57}function S(u,f){const{currentType:v}=f;if(v!==2)return!1;L(u);const $=g(u.currentPeek());return u.resetPeek(),$}function p(u,f){const{currentType:v}=f;if(v!==2)return!1;L(u);const $=u.currentPeek()==="-"?u.peek():u.currentPeek(),te=k($);return u.resetPeek(),te}function b(u,f){const{currentType:v}=f;if(v!==2)return!1;L(u);const $=u.currentPeek()===eo;return u.resetPeek(),$}function I(u,f){const{currentType:v}=f;if(v!==7)return!1;L(u);const $=u.currentPeek()===".";return u.resetPeek(),$}function N(u,f){const{currentType:v}=f;if(v!==8)return!1;L(u);const $=g(u.currentPeek());return u.resetPeek(),$}function x(u,f){const{currentType:v}=f;if(!(v===7||v===11))return!1;L(u);const $=u.currentPeek()===":";return u.resetPeek(),$}function H(u,f){const{currentType:v}=f;if(v!==9)return!1;const $=()=>{const ne=u.currentPeek();return ne==="{"?g(u.peek()):ne==="@"||ne==="|"||ne===":"||ne==="."||ne===Ve||!ne?!1:ne===ge?(u.peek(),$()):ce(u,!1)},te=$();return u.resetPeek(),te}function J(u){L(u);const f=u.currentPeek()==="|";return u.resetPeek(),f}function ce(u,f=!0){const v=(te=!1,ne="")=>{const j=u.currentPeek();return j==="{"||j==="@"||!j?te:j==="|"?!(ne===Ve||ne===ge):j===Ve?(u.peek(),v(!0,Ve)):j===ge?(u.peek(),v(!0,ge)):!0},$=v();return f&&u.resetPeek(),$}function F(u,f){const v=u.currentChar();return v===Re?Re:f(v)?(u.next(),v):null}function he(u){const f=u.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function Ae(u){return F(u,he)}function P(u){const f=u.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function A(u){return F(u,P)}function z(u){const f=u.charCodeAt(0);return f>=48&&f<=57}function R(u){return F(u,z)}function Ie(u){const f=u.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function me(u){return F(u,Ie)}function Ue(u){let f="",v="";for(;f=R(u);)v+=f;return v}function Wt(u){let f="";for(;;){const v=u.currentChar();if(v==="{"||v==="}"||v==="@"||v==="|"||!v)break;if(v===Ve||v===ge)if(ce(u))f+=v,u.next();else{if(J(u))break;f+=v,u.next()}else f+=v,u.next()}return f}function jt(u){O(u);let f="",v="";for(;f=A(u);)v+=f;return u.currentChar()===Re&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),v}function Kt(u){O(u);let f="";return u.currentChar()==="-"?(u.next(),f+=`-${Ue(u)}`):f+=Ue(u),u.currentChar()===Re&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),f}function Yt(u){return u!==eo&&u!==ge}function Hn(u){O(u),V(u,"'");let f="",v="";for(;f=F(u,Yt);)f==="\\"?v+=qt(u):v+=f;const $=u.currentChar();return $===ge||$===Re?(E(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),$===ge&&(u.next(),V(u,"'")),v):(V(u,"'"),v)}function qt(u){const f=u.currentChar();switch(f){case"\\":case"'":return u.next(),`\\${f}`;case"u":return mt(u,f,4);case"U":return mt(u,f,6);default:return E(M.UNKNOWN_ESCAPE_SEQUENCE,i(),0,f),""}}function mt(u,f,v){V(u,f);let $="";for(let te=0;te<v;te++){const ne=me(u);if(!ne){E(M.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${f}${$}${u.currentChar()}`);break}$+=ne}return`\\${f}${$}`}function Xt(u){return u!=="{"&&u!=="}"&&u!==Ve&&u!==ge}function Zt(u){O(u);let f="",v="";for(;f=F(u,Xt);)v+=f;return v}function Jt(u){let f="",v="";for(;f=Ae(u);)v+=f;return v}function Qt(u){const f=v=>{const $=u.currentChar();return $==="{"||$==="@"||$==="|"||$==="("||$===")"||!$||$===Ve?v:(v+=$,u.next(),f(v))};return f("")}function lt(u){O(u);const f=V(u,"|");return O(u),f}function rt(u,f){let v=null;switch(u.currentChar()){case"{":return f.braceNest>=1&&E(M.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),u.next(),v=h(f,2,"{"),O(u),f.braceNest++,v;case"}":return f.braceNest>0&&f.currentType===2&&E(M.EMPTY_PLACEHOLDER,i(),0),u.next(),v=h(f,3,"}"),f.braceNest--,f.braceNest>0&&O(u),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),v;case"@":return f.braceNest>0&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),v=He(u,f)||C(f),f.braceNest=0,v;default:{let te=!0,ne=!0,j=!0;if(J(u))return f.braceNest>0&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),v=h(f,1,lt(u)),f.braceNest=0,f.inLinked=!1,v;if(f.braceNest>0&&(f.currentType===4||f.currentType===5||f.currentType===6))return E(M.UNTERMINATED_CLOSING_BRACE,i(),0),f.braceNest=0,it(u,f);if(te=S(u,f))return v=h(f,4,jt(u)),O(u),v;if(ne=p(u,f))return v=h(f,5,Kt(u)),O(u),v;if(j=b(u,f))return v=h(f,6,Hn(u)),O(u),v;if(!te&&!ne&&!j)return v=h(f,12,Zt(u)),E(M.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,v.value),O(u),v;break}}return v}function He(u,f){const{currentType:v}=f;let $=null;const te=u.currentChar();switch((v===7||v===8||v===11||v===9)&&(te===ge||te===Ve)&&E(M.INVALID_LINKED_FORMAT,i(),0),te){case"@":return u.next(),$=h(f,7,"@"),f.inLinked=!0,$;case".":return O(u),u.next(),h(f,8,".");case":":return O(u),u.next(),h(f,9,":");default:return J(u)?($=h(f,1,lt(u)),f.braceNest=0,f.inLinked=!1,$):I(u,f)||x(u,f)?(O(u),He(u,f)):N(u,f)?(O(u),h(f,11,Jt(u))):H(u,f)?(O(u),te==="{"?rt(u,f)||$:h(f,10,Qt(u))):(v===7&&E(M.INVALID_LINKED_FORMAT,i(),0),f.braceNest=0,f.inLinked=!1,it(u,f))}}function it(u,f){let v={type:13};if(f.braceNest>0)return rt(u,f)||C(f);if(f.inLinked)return He(u,f)||C(f);switch(u.currentChar()){case"{":return rt(u,f)||C(f);case"}":return E(M.UNBALANCED_CLOSING_BRACE,i(),0),u.next(),h(f,3,"}");case"@":return He(u,f)||C(f);default:{if(J(u))return v=h(f,1,lt(u)),f.braceNest=0,f.inLinked=!1,v;if(ce(u))return h(f,0,Wt(u));break}}return v}function en(){const{currentType:u,offset:f,startLoc:v,endLoc:$}=c;return c.lastType=u,c.lastOffset=f,c.lastStartLoc=v,c.lastEndLoc=$,c.offset=r(),c.startLoc=i(),l.currentChar()===Re?h(c,13):it(l,c)}return{nextToken:en,currentOffset:r,currentPosition:i,context:d}}const oa="parser",la=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ra(e,n,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(n||o,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function ia(e={}){const n=e.location!==!1,{onError:o}=e;function l(g,k,S,p,...b){const I=g.currentPosition();if(I.offset+=p,I.column+=p,o){const N=n?dn(S,I):null,x=nt(k,N,{domain:oa,args:b});o(x)}}function r(g,k,S){const p={type:g};return n&&(p.start=k,p.end=k,p.loc={start:S,end:S}),p}function i(g,k,S,p){n&&(g.end=k,g.loc&&(g.loc.end=S))}function a(g,k){const S=g.context(),p=r(3,S.offset,S.startLoc);return p.value=k,i(p,g.currentOffset(),g.currentPosition()),p}function s(g,k){const S=g.context(),{lastOffset:p,lastStartLoc:b}=S,I=r(5,p,b);return I.index=parseInt(k,10),g.nextToken(),i(I,g.currentOffset(),g.currentPosition()),I}function c(g,k){const S=g.context(),{lastOffset:p,lastStartLoc:b}=S,I=r(4,p,b);return I.key=k,g.nextToken(),i(I,g.currentOffset(),g.currentPosition()),I}function d(g,k){const S=g.context(),{lastOffset:p,lastStartLoc:b}=S,I=r(9,p,b);return I.value=k.replace(la,ra),g.nextToken(),i(I,g.currentOffset(),g.currentPosition()),I}function m(g){const k=g.nextToken(),S=g.context(),{lastOffset:p,lastStartLoc:b}=S,I=r(8,p,b);return k.type!==11?(l(g,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),I.value="",i(I,p,b),{nextConsumeToken:k,node:I}):(k.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Te(k)),I.value=k.value||"",i(I,g.currentOffset(),g.currentPosition()),{node:I})}function E(g,k){const S=g.context(),p=r(7,S.offset,S.startLoc);return p.value=k,i(p,g.currentOffset(),g.currentPosition()),p}function h(g){const k=g.context(),S=r(6,k.offset,k.startLoc);let p=g.nextToken();if(p.type===8){const b=m(g);S.modifier=b.node,p=b.nextConsumeToken||g.nextToken()}switch(p.type!==9&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(p)),p=g.nextToken(),p.type===2&&(p=g.nextToken()),p.type){case 10:p.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(p)),S.key=E(g,p.value||"");break;case 4:p.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(p)),S.key=c(g,p.value||"");break;case 5:p.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(p)),S.key=s(g,p.value||"");break;case 6:p.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(p)),S.key=d(g,p.value||"");break;default:{l(g,M.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const b=g.context(),I=r(7,b.offset,b.startLoc);return I.value="",i(I,b.offset,b.startLoc),S.key=I,i(S,b.offset,b.startLoc),{nextConsumeToken:p,node:S}}}return i(S,g.currentOffset(),g.currentPosition()),{node:S}}function C(g){const k=g.context(),S=k.currentType===1?g.currentOffset():k.offset,p=k.currentType===1?k.endLoc:k.startLoc,b=r(2,S,p);b.items=[];let I=null;do{const H=I||g.nextToken();switch(I=null,H.type){case 0:H.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(a(g,H.value||""));break;case 5:H.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(s(g,H.value||""));break;case 4:H.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(c(g,H.value||""));break;case 6:H.value==null&&l(g,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(d(g,H.value||""));break;case 7:{const J=h(g);b.items.push(J.node),I=J.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const N=k.currentType===1?k.lastOffset:g.currentOffset(),x=k.currentType===1?k.lastEndLoc:g.currentPosition();return i(b,N,x),b}function V(g,k,S,p){const b=g.context();let I=p.items.length===0;const N=r(1,k,S);N.cases=[],N.cases.push(p);do{const x=C(g);I||(I=x.items.length===0),N.cases.push(x)}while(b.currentType!==13);return I&&l(g,M.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),i(N,g.currentOffset(),g.currentPosition()),N}function L(g){const k=g.context(),{offset:S,startLoc:p}=k,b=C(g);return k.currentType===13?b:V(g,S,p,b)}function O(g){const k=na(g,de({},e)),S=k.context(),p=r(0,S.offset,S.startLoc);return n&&p.loc&&(p.loc.source=g),p.body=L(k),e.onCacheKey&&(p.cacheKey=e.onCacheKey(g)),S.currentType!==13&&l(k,M.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,g[S.offset]||""),i(p,k.currentOffset(),k.currentPosition()),p}return{parse:O}}function Te(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function aa(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:i=>(o.helpers.add(i),i)}}function to(e,n){for(let o=0;o<e.length;o++)An(e[o],n)}function An(e,n){switch(e.type){case 1:to(e.cases,n),n.helper("plural");break;case 2:to(e.items,n);break;case 6:{An(e.key,n),n.helper("linked"),n.helper("type");break}case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named");break}}function sa(e,n={}){const o=aa(e);o.helper("normalize"),e.body&&An(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function ca(e){const n=e.body;return n.type===2?no(n):n.cases.forEach(o=>no(o)),e}function no(e){if(e.items.length===1){const n=e.items[0];(n.type===3||n.type===9)&&(e.static=n.value,delete n.value)}else{const n=[];for(let o=0;o<e.items.length;o++){const l=e.items[o];if(!(l.type===3||l.type===9)||l.value==null)break;n.push(l.value)}if(n.length===e.items.length){e.static=wn(n);for(let o=0;o<e.items.length;o++){const l=e.items[o];(l.type===3||l.type===9)&&delete l.value}}}}const ua="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:{const n=e;Qe(n.body),n.b=n.body,delete n.body;break}case 1:{const n=e,o=n.cases;for(let l=0;l<o.length;l++)Qe(o[l]);n.c=o,delete n.cases;break}case 2:{const n=e,o=n.items;for(let l=0;l<o.length;l++)Qe(o[l]);n.i=o,delete n.items,n.static&&(n.s=n.static,delete n.static);break}case 3:case 9:case 8:case 7:{const n=e;n.value&&(n.v=n.value,delete n.value);break}case 6:{const n=e;Qe(n.key),n.k=n.key,delete n.key,n.modifier&&(Qe(n.modifier),n.m=n.modifier,delete n.modifier);break}case 5:{const n=e;n.i=n.index,delete n.index;break}case 4:{const n=e;n.k=n.key,delete n.key;break}default:if(process.env.NODE_ENV!=="production")throw nt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ua,args:[e.type]})}delete e.type}const da="parser";function fa(e,n){const{filename:o,breakLineCode:l,needIndent:r}=n,i=n.location!==!1,a={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const s=()=>a;function c(L,O){a.code+=L}function d(L,O=!0){const g=O?l:"";c(r?g+" ".repeat(L):g)}function m(L=!0){const O=++a.indentLevel;L&&d(O)}function E(L=!0){const O=--a.indentLevel;L&&d(O)}function h(){d(a.indentLevel)}return{context:s,push:c,indent:m,deindent:E,newline:h,helper:L=>`_${L}`,needIndent:()=>a.needIndent}}function ma(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),tt(e,n.key),n.modifier?(e.push(", "),tt(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function pa(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const r=n.items.length;for(let i=0;i<r&&(tt(e,n.items[i]),i!==r-1);i++)e.push(", ");e.deindent(l()),e.push("])")}function ga(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const r=n.cases.length;for(let i=0;i<r&&(tt(e,n.cases[i]),i!==r-1);i++)e.push(", ");e.deindent(l()),e.push("])")}}function ha(e,n){n.body?tt(e,n.body):e.push("null")}function tt(e,n){const{helper:o}=e;switch(n.type){case 0:ha(e,n);break;case 1:ga(e,n);break;case 2:pa(e,n);break;case 6:ma(e,n);break;case 8:e.push(JSON.stringify(n.value),n);break;case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${n.index}))`,n);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:e.push(JSON.stringify(n.value),n);break;case 3:e.push(JSON.stringify(n.value),n);break;default:if(process.env.NODE_ENV!=="production")throw nt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:da,args:[n.type]})}}const Ea=(e,n={})=>{const o=D(n.mode)?n.mode:"normal",l=D(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
12
|
-
`,i=n.needIndent?n.needIndent:o!=="arrow",a=e.helpers||[],s=fa(e,{filename:l,breakLineCode:r,needIndent:i});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),a.length>0&&(s.push(`const { ${wn(a.map(
|
|
10
|
+
*/function Gi(e,n,o){return{line:e,column:n,offset:o}}function un(e,n,o){return{start:e,end:n}}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Wi=17,ji={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function nt(e,n,o={}){const{domain:l,messages:r,args:i}=o,a=process.env.NODE_ENV!=="production"?Dt((r||ji)[e]||"",...i||[]):e,s=new SyntaxError(String(a));return s.code=e,n&&(s.location=n),s.domain=l,s}function Ki(e){throw e}const Yi=/<\/?[\w\s="/.':;#-\/]+>/,qi=e=>Yi.test(e),Ve=" ",Xi="\r",ge=`
|
|
11
|
+
`,Zi="\u2028",Ji="\u2029";function Qi(e){const n=e;let o=0,l=1,r=1,i=0;const a=N=>n[N]===Xi&&n[N+1]===ge,s=N=>n[N]===ge,c=N=>n[N]===Ji,u=N=>n[N]===Zi,h=N=>a(N)||s(N)||c(N)||u(N),E=()=>o,g=()=>l,C=()=>r,V=()=>i,L=N=>a(N)||c(N)||u(N)?ge:n[N],O=()=>L(o),p=()=>L(o+i);function k(){return i=0,h(o)&&(l++,r=0),a(o)&&o++,o++,r++,n[o]}function S(){return a(o+i)&&i++,i++,n[o+i]}function m(){o=0,l=1,r=1,i=0}function b(N=0){i=N}function I(){const N=o+i;for(;N!==o;)k();i=0}return{index:E,line:g,column:C,peekOffset:V,charAt:L,currentChar:O,currentPeek:p,next:k,peek:S,reset:m,resetPeek:b,skipToPeek:I}}const Re=void 0,ea=".",eo="'",ta="tokenizer";function na(e,n={}){const o=n.location!==!1,l=Qi(e),r=()=>l.index(),i=()=>Gi(l.line(),l.column(),l.index()),a=i(),s=r(),c={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:h}=n;function E(d,f,v,...$){const te=u();if(f.column+=v,f.offset+=v,h){const ne=o?un(te.startLoc,f):null,j=nt(d,ne,{domain:ta,args:$});h(j)}}function g(d,f,v){d.endLoc=i(),d.currentType=f;const $={type:f};return o&&($.loc=un(d.startLoc,d.endLoc)),v!=null&&($.value=v),$}const C=d=>g(d,13);function V(d,f){return d.currentChar()===f?(d.next(),f):(E(M.EXPECTED_TOKEN,i(),0,f),"")}function L(d){let f="";for(;d.currentPeek()===Ve||d.currentPeek()===ge;)f+=d.currentPeek(),d.peek();return f}function O(d){const f=L(d);return d.skipToPeek(),f}function p(d){if(d===Re)return!1;const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function k(d){if(d===Re)return!1;const f=d.charCodeAt(0);return f>=48&&f<=57}function S(d,f){const{currentType:v}=f;if(v!==2)return!1;L(d);const $=p(d.currentPeek());return d.resetPeek(),$}function m(d,f){const{currentType:v}=f;if(v!==2)return!1;L(d);const $=d.currentPeek()==="-"?d.peek():d.currentPeek(),te=k($);return d.resetPeek(),te}function b(d,f){const{currentType:v}=f;if(v!==2)return!1;L(d);const $=d.currentPeek()===eo;return d.resetPeek(),$}function I(d,f){const{currentType:v}=f;if(v!==7)return!1;L(d);const $=d.currentPeek()===".";return d.resetPeek(),$}function N(d,f){const{currentType:v}=f;if(v!==8)return!1;L(d);const $=p(d.currentPeek());return d.resetPeek(),$}function x(d,f){const{currentType:v}=f;if(!(v===7||v===11))return!1;L(d);const $=d.currentPeek()===":";return d.resetPeek(),$}function H(d,f){const{currentType:v}=f;if(v!==9)return!1;const $=()=>{const ne=d.currentPeek();return ne==="{"?p(d.peek()):ne==="@"||ne==="|"||ne===":"||ne==="."||ne===Ve||!ne?!1:ne===ge?(d.peek(),$()):ce(d,!1)},te=$();return d.resetPeek(),te}function J(d){L(d);const f=d.currentPeek()==="|";return d.resetPeek(),f}function ce(d,f=!0){const v=(te=!1,ne="")=>{const j=d.currentPeek();return j==="{"||j==="@"||!j?te:j==="|"?!(ne===Ve||ne===ge):j===Ve?(d.peek(),v(!0,Ve)):j===ge?(d.peek(),v(!0,ge)):!0},$=v();return f&&d.resetPeek(),$}function F(d,f){const v=d.currentChar();return v===Re?Re:f(v)?(d.next(),v):null}function he(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function Ae(d){return F(d,he)}function P(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function A(d){return F(d,P)}function z(d){const f=d.charCodeAt(0);return f>=48&&f<=57}function R(d){return F(d,z)}function Ie(d){const f=d.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function me(d){return F(d,Ie)}function Ue(d){let f="",v="";for(;f=R(d);)v+=f;return v}function Gt(d){let f="";for(;;){const v=d.currentChar();if(v==="{"||v==="}"||v==="@"||v==="|"||!v)break;if(v===Ve||v===ge)if(ce(d))f+=v,d.next();else{if(J(d))break;f+=v,d.next()}else f+=v,d.next()}return f}function Wt(d){O(d);let f="",v="";for(;f=A(d);)v+=f;return d.currentChar()===Re&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),v}function jt(d){O(d);let f="";return d.currentChar()==="-"?(d.next(),f+=`-${Ue(d)}`):f+=Ue(d),d.currentChar()===Re&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),f}function Kt(d){return d!==eo&&d!==ge}function Hn(d){O(d),V(d,"'");let f="",v="";for(;f=F(d,Kt);)f==="\\"?v+=Yt(d):v+=f;const $=d.currentChar();return $===ge||$===Re?(E(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),$===ge&&(d.next(),V(d,"'")),v):(V(d,"'"),v)}function Yt(d){const f=d.currentChar();switch(f){case"\\":case"'":return d.next(),`\\${f}`;case"u":return mt(d,f,4);case"U":return mt(d,f,6);default:return E(M.UNKNOWN_ESCAPE_SEQUENCE,i(),0,f),""}}function mt(d,f,v){V(d,f);let $="";for(let te=0;te<v;te++){const ne=me(d);if(!ne){E(M.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${f}${$}${d.currentChar()}`);break}$+=ne}return`\\${f}${$}`}function qt(d){return d!=="{"&&d!=="}"&&d!==Ve&&d!==ge}function Xt(d){O(d);let f="",v="";for(;f=F(d,qt);)v+=f;return v}function Zt(d){let f="",v="";for(;f=Ae(d);)v+=f;return v}function Jt(d){const f=v=>{const $=d.currentChar();return $==="{"||$==="@"||$==="|"||$==="("||$===")"||!$||$===Ve?v:(v+=$,d.next(),f(v))};return f("")}function lt(d){O(d);const f=V(d,"|");return O(d),f}function rt(d,f){let v=null;switch(d.currentChar()){case"{":return f.braceNest>=1&&E(M.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),d.next(),v=g(f,2,"{"),O(d),f.braceNest++,v;case"}":return f.braceNest>0&&f.currentType===2&&E(M.EMPTY_PLACEHOLDER,i(),0),d.next(),v=g(f,3,"}"),f.braceNest--,f.braceNest>0&&O(d),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),v;case"@":return f.braceNest>0&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),v=He(d,f)||C(f),f.braceNest=0,v;default:{let te=!0,ne=!0,j=!0;if(J(d))return f.braceNest>0&&E(M.UNTERMINATED_CLOSING_BRACE,i(),0),v=g(f,1,lt(d)),f.braceNest=0,f.inLinked=!1,v;if(f.braceNest>0&&(f.currentType===4||f.currentType===5||f.currentType===6))return E(M.UNTERMINATED_CLOSING_BRACE,i(),0),f.braceNest=0,it(d,f);if(te=S(d,f))return v=g(f,4,Wt(d)),O(d),v;if(ne=m(d,f))return v=g(f,5,jt(d)),O(d),v;if(j=b(d,f))return v=g(f,6,Hn(d)),O(d),v;if(!te&&!ne&&!j)return v=g(f,12,Xt(d)),E(M.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,v.value),O(d),v;break}}return v}function He(d,f){const{currentType:v}=f;let $=null;const te=d.currentChar();switch((v===7||v===8||v===11||v===9)&&(te===ge||te===Ve)&&E(M.INVALID_LINKED_FORMAT,i(),0),te){case"@":return d.next(),$=g(f,7,"@"),f.inLinked=!0,$;case".":return O(d),d.next(),g(f,8,".");case":":return O(d),d.next(),g(f,9,":");default:return J(d)?($=g(f,1,lt(d)),f.braceNest=0,f.inLinked=!1,$):I(d,f)||x(d,f)?(O(d),He(d,f)):N(d,f)?(O(d),g(f,11,Zt(d))):H(d,f)?(O(d),te==="{"?rt(d,f)||$:g(f,10,Jt(d))):(v===7&&E(M.INVALID_LINKED_FORMAT,i(),0),f.braceNest=0,f.inLinked=!1,it(d,f))}}function it(d,f){let v={type:13};if(f.braceNest>0)return rt(d,f)||C(f);if(f.inLinked)return He(d,f)||C(f);switch(d.currentChar()){case"{":return rt(d,f)||C(f);case"}":return E(M.UNBALANCED_CLOSING_BRACE,i(),0),d.next(),g(f,3,"}");case"@":return He(d,f)||C(f);default:{if(J(d))return v=g(f,1,lt(d)),f.braceNest=0,f.inLinked=!1,v;if(ce(d))return g(f,0,Gt(d));break}}return v}function Qt(){const{currentType:d,offset:f,startLoc:v,endLoc:$}=c;return c.lastType=d,c.lastOffset=f,c.lastStartLoc=v,c.lastEndLoc=$,c.offset=r(),c.startLoc=i(),l.currentChar()===Re?g(c,13):it(l,c)}return{nextToken:Qt,currentOffset:r,currentPosition:i,context:u}}const oa="parser",la=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ra(e,n,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(n||o,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function ia(e={}){const n=e.location!==!1,{onError:o}=e;function l(p,k,S,m,...b){const I=p.currentPosition();if(I.offset+=m,I.column+=m,o){const N=n?un(S,I):null,x=nt(k,N,{domain:oa,args:b});o(x)}}function r(p,k,S){const m={type:p};return n&&(m.start=k,m.end=k,m.loc={start:S,end:S}),m}function i(p,k,S,m){n&&(p.end=k,p.loc&&(p.loc.end=S))}function a(p,k){const S=p.context(),m=r(3,S.offset,S.startLoc);return m.value=k,i(m,p.currentOffset(),p.currentPosition()),m}function s(p,k){const S=p.context(),{lastOffset:m,lastStartLoc:b}=S,I=r(5,m,b);return I.index=parseInt(k,10),p.nextToken(),i(I,p.currentOffset(),p.currentPosition()),I}function c(p,k){const S=p.context(),{lastOffset:m,lastStartLoc:b}=S,I=r(4,m,b);return I.key=k,p.nextToken(),i(I,p.currentOffset(),p.currentPosition()),I}function u(p,k){const S=p.context(),{lastOffset:m,lastStartLoc:b}=S,I=r(9,m,b);return I.value=k.replace(la,ra),p.nextToken(),i(I,p.currentOffset(),p.currentPosition()),I}function h(p){const k=p.nextToken(),S=p.context(),{lastOffset:m,lastStartLoc:b}=S,I=r(8,m,b);return k.type!==11?(l(p,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),I.value="",i(I,m,b),{nextConsumeToken:k,node:I}):(k.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Te(k)),I.value=k.value||"",i(I,p.currentOffset(),p.currentPosition()),{node:I})}function E(p,k){const S=p.context(),m=r(7,S.offset,S.startLoc);return m.value=k,i(m,p.currentOffset(),p.currentPosition()),m}function g(p){const k=p.context(),S=r(6,k.offset,k.startLoc);let m=p.nextToken();if(m.type===8){const b=h(p);S.modifier=b.node,m=b.nextConsumeToken||p.nextToken()}switch(m.type!==9&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(m)),m=p.nextToken(),m.type===2&&(m=p.nextToken()),m.type){case 10:m.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(m)),S.key=E(p,m.value||"");break;case 4:m.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(m)),S.key=c(p,m.value||"");break;case 5:m.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(m)),S.key=s(p,m.value||"");break;case 6:m.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(m)),S.key=u(p,m.value||"");break;default:{l(p,M.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const b=p.context(),I=r(7,b.offset,b.startLoc);return I.value="",i(I,b.offset,b.startLoc),S.key=I,i(S,b.offset,b.startLoc),{nextConsumeToken:m,node:S}}}return i(S,p.currentOffset(),p.currentPosition()),{node:S}}function C(p){const k=p.context(),S=k.currentType===1?p.currentOffset():k.offset,m=k.currentType===1?k.endLoc:k.startLoc,b=r(2,S,m);b.items=[];let I=null;do{const H=I||p.nextToken();switch(I=null,H.type){case 0:H.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(a(p,H.value||""));break;case 5:H.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(s(p,H.value||""));break;case 4:H.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(c(p,H.value||""));break;case 6:H.value==null&&l(p,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Te(H)),b.items.push(u(p,H.value||""));break;case 7:{const J=g(p);b.items.push(J.node),I=J.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const N=k.currentType===1?k.lastOffset:p.currentOffset(),x=k.currentType===1?k.lastEndLoc:p.currentPosition();return i(b,N,x),b}function V(p,k,S,m){const b=p.context();let I=m.items.length===0;const N=r(1,k,S);N.cases=[],N.cases.push(m);do{const x=C(p);I||(I=x.items.length===0),N.cases.push(x)}while(b.currentType!==13);return I&&l(p,M.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),i(N,p.currentOffset(),p.currentPosition()),N}function L(p){const k=p.context(),{offset:S,startLoc:m}=k,b=C(p);return k.currentType===13?b:V(p,S,m,b)}function O(p){const k=na(p,de({},e)),S=k.context(),m=r(0,S.offset,S.startLoc);return n&&m.loc&&(m.loc.source=p),m.body=L(k),e.onCacheKey&&(m.cacheKey=e.onCacheKey(p)),S.currentType!==13&&l(k,M.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,p[S.offset]||""),i(m,k.currentOffset(),k.currentPosition()),m}return{parse:O}}function Te(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function aa(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:i=>(o.helpers.add(i),i)}}function to(e,n){for(let o=0;o<e.length;o++)An(e[o],n)}function An(e,n){switch(e.type){case 1:to(e.cases,n),n.helper("plural");break;case 2:to(e.items,n);break;case 6:{An(e.key,n),n.helper("linked"),n.helper("type");break}case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named");break}}function sa(e,n={}){const o=aa(e);o.helper("normalize"),e.body&&An(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function ca(e){const n=e.body;return n.type===2?no(n):n.cases.forEach(o=>no(o)),e}function no(e){if(e.items.length===1){const n=e.items[0];(n.type===3||n.type===9)&&(e.static=n.value,delete n.value)}else{const n=[];for(let o=0;o<e.items.length;o++){const l=e.items[o];if(!(l.type===3||l.type===9)||l.value==null)break;n.push(l.value)}if(n.length===e.items.length){e.static=wn(n);for(let o=0;o<e.items.length;o++){const l=e.items[o];(l.type===3||l.type===9)&&delete l.value}}}}const ua="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:{const n=e;Qe(n.body),n.b=n.body,delete n.body;break}case 1:{const n=e,o=n.cases;for(let l=0;l<o.length;l++)Qe(o[l]);n.c=o,delete n.cases;break}case 2:{const n=e,o=n.items;for(let l=0;l<o.length;l++)Qe(o[l]);n.i=o,delete n.items,n.static&&(n.s=n.static,delete n.static);break}case 3:case 9:case 8:case 7:{const n=e;n.value&&(n.v=n.value,delete n.value);break}case 6:{const n=e;Qe(n.key),n.k=n.key,delete n.key,n.modifier&&(Qe(n.modifier),n.m=n.modifier,delete n.modifier);break}case 5:{const n=e;n.i=n.index,delete n.index;break}case 4:{const n=e;n.k=n.key,delete n.key;break}default:if(process.env.NODE_ENV!=="production")throw nt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ua,args:[e.type]})}delete e.type}const da="parser";function fa(e,n){const{filename:o,breakLineCode:l,needIndent:r}=n,i=n.location!==!1,a={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const s=()=>a;function c(L,O){a.code+=L}function u(L,O=!0){const p=O?l:"";c(r?p+" ".repeat(L):p)}function h(L=!0){const O=++a.indentLevel;L&&u(O)}function E(L=!0){const O=--a.indentLevel;L&&u(O)}function g(){u(a.indentLevel)}return{context:s,push:c,indent:h,deindent:E,newline:g,helper:L=>`_${L}`,needIndent:()=>a.needIndent}}function ma(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),tt(e,n.key),n.modifier?(e.push(", "),tt(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function pa(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const r=n.items.length;for(let i=0;i<r&&(tt(e,n.items[i]),i!==r-1);i++)e.push(", ");e.deindent(l()),e.push("])")}function ga(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const r=n.cases.length;for(let i=0;i<r&&(tt(e,n.cases[i]),i!==r-1);i++)e.push(", ");e.deindent(l()),e.push("])")}}function ha(e,n){n.body?tt(e,n.body):e.push("null")}function tt(e,n){const{helper:o}=e;switch(n.type){case 0:ha(e,n);break;case 1:ga(e,n);break;case 2:pa(e,n);break;case 6:ma(e,n);break;case 8:e.push(JSON.stringify(n.value),n);break;case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${o("interpolate")}(${o("list")}(${n.index}))`,n);break;case 4:e.push(`${o("interpolate")}(${o("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:e.push(JSON.stringify(n.value),n);break;case 3:e.push(JSON.stringify(n.value),n);break;default:if(process.env.NODE_ENV!=="production")throw nt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:da,args:[n.type]})}}const Ea=(e,n={})=>{const o=D(n.mode)?n.mode:"normal",l=D(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
12
|
+
`,i=n.needIndent?n.needIndent:o!=="arrow",a=e.helpers||[],s=fa(e,{filename:l,breakLineCode:r,needIndent:i});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),a.length>0&&(s.push(`const { ${wn(a.map(h=>`${h}: _${h}`),", ")} } = ctx`),s.newline()),s.push("return "),tt(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function ka(e,n={}){const o=de({},n),l=!!o.jit,r=!!o.minify,i=o.optimize==null?!0:o.optimize,s=ia(o).parse(e);return l?(i&&ca(s),r&&Qe(s),{ast:s,code:""}):(sa(s,o),Ea(s,o))}/*!
|
|
13
13
|
* core-base v11.1.3
|
|
14
14
|
* (c) 2025 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function _a(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Le(e){return Y(e)&&In(e)===0&&(be(e,"b")||be(e,"body"))}const xo=["b","body"];function ya(e){return xe(e,xo)}const Fo=["c","cases"];function Ca(e){return xe(e,Fo,[])}const Uo=["s","static"];function Na(e){return xe(e,Uo)}const Ho=["i","items"];function va(e){return xe(e,Ho,[])}const zo=["t","type"];function In(e){return xe(e,zo)}const Go=["v","value"];function kt(e,n){const o=xe(e,Go);if(o!=null)return o;throw st(n)}const Wo=["m","modifier"];function Sa(e){return xe(e,Wo)}const jo=["k","key"];function ba(e){const n=xe(e,jo);if(n)return n;throw st(6)}function xe(e,n,o){for(let l=0;l<n.length;l++){const r=n[l];if(be(e,r)&&e[r]!=null)return e[r]}return o}const Ko=[...xo,...Fo,...Uo,...Ho,...jo,...Wo,...Go,...zo];function st(e){return new Error(`unhandled node type: ${e}`)}function on(e){return o=>La(o,e)}function La(e,n){const o=ya(n);if(o==null)throw st(0);if(In(o)===1){const i=Ca(o);return e.plural(i.reduce((a,s)=>[...a,oo(e,s)],[]))}else return oo(e,o)}function oo(e,n){const o=Na(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=va(n).reduce((r,i)=>[...r,fn(e,i)],[]);return e.normalize(l)}}function fn(e,n){const o=In(n);switch(o){case 3:return kt(n,o);case 9:return kt(n,o);case 4:{const l=n;if(be(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(be(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw st(o)}case 5:{const l=n;if(be(l,"i")&&ue(l.i))return e.interpolate(e.list(l.i));if(be(l,"index")&&ue(l.index))return e.interpolate(e.list(l.index));throw st(o)}case 6:{const l=n,r=Sa(l),i=ba(l);return e.linked(fn(e,i),r?fn(e,r):void 0,e.type)}case 7:return kt(n,o);case 8:return kt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Ta="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function wa(e,n){n&&qi(e)&&Me(Bt(Ta,{source:e}))}const Aa=e=>e;let _t=Z();function Ia(e,n={}){let o=!1;const l=n.onError||Ki;return n.onError=r=>{o=!0,l(r)},{...ka(e,n),detectError:o}}function Va(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&D(e)){const o=le(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&wa(e,o);const r=(n.onCacheKey||Aa)(e),i=_t[r];if(i)return i;const{ast:a,detectError:s}=Ia(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=on(a);return s?c:_t[r]=c}else{if(process.env.NODE_ENV!=="production"&&!Le(e))return Me(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),()=>e;const o=e.cacheKey;if(o){const l=_t[o];return l||(_t[o]=on(e))}else return on(e)}}let ct=null;function Oa(e){ct=e}function Da(e,n,o){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const Ba=Pa("function:translate");function Pa(e){return n=>ct&&ct.emit(e,n)}const pe={INVALID_ARGUMENT:Wi,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ra=24;function Oe(e){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:$a}:void 0)}const $a={[pe.INVALID_ARGUMENT]:"Invalid arguments",[pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Vn(e,n){return n.locale!=null?lo(n.locale):lo(e.locale)}let ln;function lo(e){if(D(e))return e;if(ee(e)){if(e.resolvedOnce&&ln!=null)return ln;if(e.constructor.name==="Function"){const n=e();if(xi(n))throw Oe(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ln=n}else throw Oe(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Oe(pe.NOT_SUPPORT_LOCALE_TYPE)}function Ma(e,n,o){return[...new Set([o,...se(n)?n:Y(n)?Object.keys(n):D(n)?[n]:[o]])]}function Yo(e,n,o){const l=D(o)?o:Tt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(l);if(!i){i=[];let a=[o];for(;se(a);)a=ro(i,a,n);const s=se(n)||!K(n)?n:n.default?n.default:null;a=D(s)?[s]:s,se(a)&&ro(i,a,!1),r.__localeChainCache.set(l,i)}return i}function ro(e,n,o){let l=!0;for(let r=0;r<n.length&&le(l);r++){const i=n[r];D(i)&&(l=xa(e,n[r],o))}return l}function xa(e,n,o){let l;const r=n.split("-");do{const i=r.join("-");l=Fa(e,i,o),r.splice(-1,1)}while(r.length&&l===!0);return l}function Fa(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(se(o)||K(o))&&o[r]&&(l=o[r])}return l}const Fe=[];Fe[0]={w:[0],i:[3,0],"[":[4],o:[7]};Fe[1]={w:[1],".":[2],"[":[4],o:[7]};Fe[2]={w:[2],i:[3,0],0:[3,0]};Fe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Fe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Fe[5]={"'":[4,0],o:8,l:[5,0]};Fe[6]={'"':[4,0],o:8,l:[6,0]};const Ua=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ha(e){return Ua.test(e)}function za(e){const n=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return n===o&&(n===34||n===39)?e.slice(1,-1):e}function Ga(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Wa(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ha(n)?za(n):"*"+n}function ja(e){const n=[];let o=-1,l=0,r=0,i,a,s,c,d,m,E;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(n.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,l=4,h[0]();else{if(r=0,a===void 0||(a=Wa(a),a===!1))return!1;h[1]()}};function C(){const V=e[o+1];if(l===5&&V==="'"||l===6&&V==='"')return o++,s="\\"+V,h[0](),!0}for(;l!==null;)if(o++,i=e[o],!(i==="\\"&&C())){if(c=Ga(i),E=Fe[l],d=E[c]||E.l||8,d===8||(l=d[0],d[1]!==void 0&&(m=h[d[1]],m&&(s=i,m()===!1))))return;if(l===7)return n}}const io=new Map;function Ka(e,n){return Y(e)?e[n]:null}function Ya(e,n){if(!Y(e))return null;let o=io.get(n);if(o||(o=ja(n),o&&io.set(n,o)),!o)return null;const l=o.length;let r=e,i=0;for(;i<l;){const a=o[i];if(Ko.includes(a)&&Le(r))return null;const s=r[a];if(s===void 0||ee(r))return null;r=s,i++}return r}const Ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},qa=8,Xa={[Ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function qe(e,...n){return Bt(Xa[e],...n)}const Za="11.1.3",Rt=-1,Tt="en-US",wt="",ao=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ja(){return{upper:(e,n)=>n==="text"&&D(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&D(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&D(e)?ao(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?ao(e.children):e}}let qo;function Qa(e){qo=e}let Xo;function es(e){Xo=e}let Zo;function ts(e){Zo=e}let Jo=null;const ns=e=>{Jo=e},os=()=>Jo;let Qo=null;const so=e=>{Qo=e},ls=()=>Qo;let co=0;function rs(e={}){const n=ee(e.onWarn)?e.onWarn:Me,o=D(e.version)?e.version:Za,l=D(e.locale)||ee(e.locale)?e.locale:Tt,r=ee(l)?Tt:l,i=se(e.fallbackLocale)||K(e.fallbackLocale)||D(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=K(e.messages)?e.messages:rn(r),s=K(e.datetimeFormats)?e.datetimeFormats:rn(r),c=K(e.numberFormats)?e.numberFormats:rn(r),d=de(Z(),e.modifiers,Ja()),m=e.pluralRules||Z(),E=ee(e.missing)?e.missing:null,h=le(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,C=le(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,V=!!e.fallbackFormat,L=!!e.unresolving,O=ee(e.postTranslation)?e.postTranslation:null,g=K(e.processor)?e.processor:null,k=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,p=ee(e.messageCompiler)?e.messageCompiler:qo;process.env.NODE_ENV!=="production"&&ee(e.messageCompiler)&&Hi(qe(Ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const b=ee(e.messageResolver)?e.messageResolver:Xo||Ka,I=ee(e.localeFallbacker)?e.localeFallbacker:Zo||Ma,N=Y(e.fallbackContext)?e.fallbackContext:void 0,x=e,H=Y(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,J=Y(x.__numberFormatters)?x.__numberFormatters:new Map,ce=Y(x.__meta)?x.__meta:{};co++;const F={version:o,cid:co,locale:l,fallbackLocale:i,messages:a,modifiers:d,pluralRules:m,missing:E,missingWarn:h,fallbackWarn:C,fallbackFormat:V,unresolving:L,postTranslation:O,processor:g,warnHtmlMessage:k,escapeParameter:S,messageCompiler:p,messageResolver:b,localeFallbacker:I,fallbackContext:N,onWarn:n,__meta:ce};return F.datetimeFormats=s,F.numberFormats=c,F.__datetimeFormatters=H,F.__numberFormatters=J,process.env.NODE_ENV!=="production"&&(F.__v_emitter=x.__v_emitter!=null?x.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Da(F,o,ce),F}const rn=e=>({[e]:Z()});function $t(e,n){return e instanceof RegExp?e.test(n):e}function el(e,n){return e instanceof RegExp?e.test(n):e}function On(e,n,o,l,r){const{missing:i,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:r,groupId:`${r}:${n}`})}if(i!==null){const s=i(e,o,n,r);return D(s)?s:n}else return process.env.NODE_ENV!=="production"&&el(l,n)&&a(qe(Ee.NOT_FOUND_KEY,{key:n,locale:o})),n}function at(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function tl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function is(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(tl(e,n[l]))return!0;return!1}const uo=typeof Intl<"u",nl={dateTimeFormat:uo&&typeof Intl.DateTimeFormat<"u",numberFormat:uo&&typeof Intl.NumberFormat<"u"};function fo(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!nl.dateTimeFormat)return i(qe(Ee.CANNOT_FORMAT_DATE)),wt;const[c,d,m,E]=mn(...n),h=le(m.missingWarn)?m.missingWarn:e.missingWarn,C=le(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,V=!!m.part,L=Vn(e,m),O=a(e,r,L);if(!D(c)||c==="")return new Intl.DateTimeFormat(L,E).format(d);let g={},k,S=null,p=L,b=null;const I="datetime format";for(let H=0;H<O.length;H++){if(k=b=O[H],process.env.NODE_ENV!=="production"&&L!==k&&$t(C,c)&&i(qe(Ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&L!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:I,key:c,from:p,to:b,groupId:`${I}:${c}`})}if(g=o[k]||{},S=g[c],K(S))break;On(e,c,k,h,I),p=b}if(!K(S)||!D(k))return l?Rt:c;let N=`${k}__${c}`;Pt(E)||(N=`${N}__${JSON.stringify(E)}`);let x=s.get(N);return x||(x=new Intl.DateTimeFormat(k,de({},S,E)),s.set(N,x)),V?x.formatToParts(d):x.format(d)}const ol=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function mn(...e){const[n,o,l,r]=e,i=Z();let a=Z(),s;if(D(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Oe(pe.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(d);try{s.toISOString()}catch{throw Oe(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Ri(n)){if(isNaN(n.getTime()))throw Oe(pe.INVALID_DATE_ARGUMENT);s=n}else if(ue(n))s=n;else throw Oe(pe.INVALID_ARGUMENT);return D(o)?i.key=o:K(o)&&Object.keys(o).forEach(c=>{ol.includes(c)?a[c]=o[c]:i[c]=o[c]}),D(l)?i.locale=l:K(l)&&(a=l),K(r)&&(a=r),[i.key||"",s,i,a]}function mo(e,n,o){const l=e;for(const r in o){const i=`${n}__${r}`;l.__datetimeFormatters.has(i)&&l.__datetimeFormatters.delete(i)}}function po(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!nl.numberFormat)return i(qe(Ee.CANNOT_FORMAT_NUMBER)),wt;const[c,d,m,E]=pn(...n),h=le(m.missingWarn)?m.missingWarn:e.missingWarn,C=le(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,V=!!m.part,L=Vn(e,m),O=a(e,r,L);if(!D(c)||c==="")return new Intl.NumberFormat(L,E).format(d);let g={},k,S=null,p=L,b=null;const I="number format";for(let H=0;H<O.length;H++){if(k=b=O[H],process.env.NODE_ENV!=="production"&&L!==k&&$t(C,c)&&i(qe(Ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&L!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:I,key:c,from:p,to:b,groupId:`${I}:${c}`})}if(g=o[k]||{},S=g[c],K(S))break;On(e,c,k,h,I),p=b}if(!K(S)||!D(k))return l?Rt:c;let N=`${k}__${c}`;Pt(E)||(N=`${N}__${JSON.stringify(E)}`);let x=s.get(N);return x||(x=new Intl.NumberFormat(k,de({},S,E)),s.set(N,x)),V?x.formatToParts(d):x.format(d)}const ll=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function pn(...e){const[n,o,l,r]=e,i=Z();let a=Z();if(!ue(n))throw Oe(pe.INVALID_ARGUMENT);const s=n;return D(o)?i.key=o:K(o)&&Object.keys(o).forEach(c=>{ll.includes(c)?a[c]=o[c]:i[c]=o[c]}),D(l)?i.locale=l:K(l)&&(a=l),K(r)&&(a=r),[i.key||"",s,i,a]}function go(e,n,o){const l=e;for(const r in o){const i=`${n}__${r}`;l.__numberFormatters.has(i)&&l.__numberFormatters.delete(i)}}const as=e=>e,ss=e=>"",cs="text",us=e=>e.length===0?"":wn(e),ds=Fi;function ho(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function fs(e){const n=ue(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ue(e.named.count)||ue(e.named.n))?ue(e.named.count)?e.named.count:ue(e.named.n)?e.named.n:n:n}function ms(e,n){n.count||(n.count=e),n.n||(n.n=e)}function ps(e={}){const n=e.locale,o=fs(e),l=Y(e.pluralRules)&&D(n)&&ee(e.pluralRules[n])?e.pluralRules[n]:ho,r=Y(e.pluralRules)&&D(n)&&ee(e.pluralRules[n])?ho:void 0,i=g=>g[l(o,g.length,r)],a=e.list||[],s=g=>a[g],c=e.named||Z();ue(e.pluralIndex)&&ms(o,c);const d=g=>c[g];function m(g,k){const S=ee(e.messages)?e.messages(g,!!k):Y(e.messages)?e.messages[g]:!1;return S||(e.parent?e.parent.message(g):ss)}const E=g=>e.modifiers?e.modifiers[g]:as,h=K(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:us,C=K(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:ds,V=K(e.processor)&&D(e.processor.type)?e.processor.type:cs,O={list:s,named:d,plural:i,linked:(g,...k)=>{const[S,p]=k;let b="text",I="";k.length===1?Y(S)?(I=S.modifier||I,b=S.type||b):D(S)&&(I=S||I):k.length===2&&(D(S)&&(I=S||I),D(p)&&(b=p||b));const N=m(g,!0)(O),x=b==="vnode"&&se(N)&&I?N[0]:N;return I?E(I)(x,b):x},message:m,type:V,interpolate:C,normalize:h,values:de(Z(),a,c)};return O}const Eo=()=>"",Se=e=>ee(e);function ko(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[c,d]=gn(...n),m=le(d.missingWarn)?d.missingWarn:e.missingWarn,E=le(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,h=le(d.escapeParameter)?d.escapeParameter:e.escapeParameter,C=!!d.resolvedMessage,V=D(d.default)||le(d.default)?le(d.default)?i?c:()=>c:d.default:o?i?c:()=>c:null,L=o||V!=null&&(D(V)||ee(V)),O=Vn(e,d);h&&gs(d);let[g,k,S]=C?[c,O,s[O]||Z()]:rl(e,c,O,a,E,m),p=g,b=c;if(!C&&!(D(p)||Le(p)||Se(p))&&L&&(p=V,b=p),!C&&(!(D(p)||Le(p)||Se(p))||!D(k)))return r?Rt:c;if(process.env.NODE_ENV!=="production"&&D(p)&&e.messageCompiler==null)return Me(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let I=!1;const N=()=>{I=!0},x=Se(p)?p:il(e,c,k,p,b,N);if(I)return p;const H=_s(e,k,S,d),J=ps(H),ce=hs(e,x,J),F=l?l(ce,c):ce;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:D(c)?c:Se(p)?p.key:"",locale:k||(Se(p)?p.locale:""),format:D(p)?p:Se(p)?p.source:"",message:F};he.meta=de({},e.__meta,os()||{}),Ba(he)}return F}function gs(e){se(e.list)?e.list=e.list.map(n=>D(n)?Zn(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{D(e.named[n])&&(e.named[n]=Zn(e.named[n]))})}function rl(e,n,o,l,r,i){const{messages:a,onWarn:s,messageResolver:c,localeFallbacker:d}=e,m=d(e,l,o);let E=Z(),h,C=null,V=o,L=null;const O="translate";for(let g=0;g<m.length;g++){if(h=L=m[g],process.env.NODE_ENV!=="production"&&o!==h&&!tl(o,h)&&$t(r,n)&&s(qe(Ee.FALLBACK_TO_TRANSLATE,{key:n,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const b=e.__v_emitter;b&&b.emit("fallback",{type:O,key:n,from:V,to:L,groupId:`${O}:${n}`})}E=a[h]||Z();let k=null,S,p;if(process.env.NODE_ENV!=="production"&&Be&&(k=window.performance.now(),S="intlify-message-resolve-start",p="intlify-message-resolve-end",ve&&ve(S)),(C=c(E,n))===null&&(C=E[n]),process.env.NODE_ENV!=="production"&&Be){const b=window.performance.now(),I=e.__v_emitter;I&&k&&C&&I.emit("message-resolve",{type:"message-resolve",key:n,message:C,time:b-k,groupId:`${O}:${n}`}),S&&p&&ve&&Ye&&(ve(p),Ye("intlify message resolve",S,p))}if(D(C)||Le(C)||Se(C))break;if(!is(h,m)){const b=On(e,n,h,i,O);b!==n&&(C=b)}V=L}return[C,h,E]}function il(e,n,o,l,r,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Se(l)){const h=l;return h.locale=h.locale||o,h.key=h.key||n,h}if(a==null){const h=()=>l;return h.locale=o,h.key=n,h}let c=null,d,m;process.env.NODE_ENV!=="production"&&Be&&(c=window.performance.now(),d="intlify-message-compilation-start",m="intlify-message-compilation-end",ve&&ve(d));const E=a(l,Es(e,o,r,l,s,i));if(process.env.NODE_ENV!=="production"&&Be){const h=window.performance.now(),C=e.__v_emitter;C&&c&&C.emit("message-compilation",{type:"message-compilation",message:l,time:h-c,groupId:`translate:${n}`}),d&&m&&ve&&Ye&&(ve(m),Ye("intlify message compilation",d,m))}return E.locale=o,E.key=n,E.source=l,E}function hs(e,n,o){let l=null,r,i;process.env.NODE_ENV!=="production"&&Be&&(l=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",ve&&ve(r));const a=n(o);if(process.env.NODE_ENV!=="production"&&Be){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-l,groupId:`translate:${n.key}`}),r&&i&&ve&&Ye&&(ve(i),Ye("intlify message evaluation",r,i))}return a}function gn(...e){const[n,o,l]=e,r=Z();if(!D(n)&&!ue(n)&&!Se(n)&&!Le(n))throw Oe(pe.INVALID_ARGUMENT);const i=ue(n)?String(n):(Se(n),n);return ue(o)?r.plural=o:D(o)?r.default=o:K(o)&&!Pt(o)?r.named=o:se(o)&&(r.list=o),ue(l)?r.plural=l:D(l)?r.default=l:K(l)&&de(r,l),[i,r]}function Es(e,n,o,l,r,i){return{locale:n,key:o,warnHtmlMessage:r,onError:a=>{if(i&&i(a),process.env.NODE_ENV!=="production"){const s=ks(l),c=`Message compilation error: ${a.message}`,d=a.location&&s&&Ui(s,a.location.start.offset,a.location.end.offset),m=e.__v_emitter;m&&s&&m.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${o}`}),console.error(d?`${c}
|
|
17
|
-
${
|
|
16
|
+
*/function _a(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Le(e){return Y(e)&&In(e)===0&&(be(e,"b")||be(e,"body"))}const xo=["b","body"];function ya(e){return xe(e,xo)}const Fo=["c","cases"];function Ca(e){return xe(e,Fo,[])}const Uo=["s","static"];function Na(e){return xe(e,Uo)}const Ho=["i","items"];function va(e){return xe(e,Ho,[])}const zo=["t","type"];function In(e){return xe(e,zo)}const Go=["v","value"];function kt(e,n){const o=xe(e,Go);if(o!=null)return o;throw st(n)}const Wo=["m","modifier"];function Sa(e){return xe(e,Wo)}const jo=["k","key"];function ba(e){const n=xe(e,jo);if(n)return n;throw st(6)}function xe(e,n,o){for(let l=0;l<n.length;l++){const r=n[l];if(be(e,r)&&e[r]!=null)return e[r]}return o}const Ko=[...xo,...Fo,...Uo,...Ho,...jo,...Wo,...Go,...zo];function st(e){return new Error(`unhandled node type: ${e}`)}function nn(e){return o=>La(o,e)}function La(e,n){const o=ya(n);if(o==null)throw st(0);if(In(o)===1){const i=Ca(o);return e.plural(i.reduce((a,s)=>[...a,oo(e,s)],[]))}else return oo(e,o)}function oo(e,n){const o=Na(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=va(n).reduce((r,i)=>[...r,dn(e,i)],[]);return e.normalize(l)}}function dn(e,n){const o=In(n);switch(o){case 3:return kt(n,o);case 9:return kt(n,o);case 4:{const l=n;if(be(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(be(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw st(o)}case 5:{const l=n;if(be(l,"i")&&ue(l.i))return e.interpolate(e.list(l.i));if(be(l,"index")&&ue(l.index))return e.interpolate(e.list(l.index));throw st(o)}case 6:{const l=n,r=Sa(l),i=ba(l);return e.linked(dn(e,i),r?dn(e,r):void 0,e.type)}case 7:return kt(n,o);case 8:return kt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Ta="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function wa(e,n){n&&qi(e)&&Me(Dt(Ta,{source:e}))}const Aa=e=>e;let _t=Z();function Ia(e,n={}){let o=!1;const l=n.onError||Ki;return n.onError=r=>{o=!0,l(r)},{...ka(e,n),detectError:o}}function Va(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&D(e)){const o=le(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&wa(e,o);const r=(n.onCacheKey||Aa)(e),i=_t[r];if(i)return i;const{ast:a,detectError:s}=Ia(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=nn(a);return s?c:_t[r]=c}else{if(process.env.NODE_ENV!=="production"&&!Le(e))return Me(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),()=>e;const o=e.cacheKey;if(o){const l=_t[o];return l||(_t[o]=nn(e))}else return nn(e)}}let ct=null;function Oa(e){ct=e}function Da(e,n,o){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const Ba=Pa("function:translate");function Pa(e){return n=>ct&&ct.emit(e,n)}const pe={INVALID_ARGUMENT:Wi,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ra=24;function Oe(e){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:$a}:void 0)}const $a={[pe.INVALID_ARGUMENT]:"Invalid arguments",[pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Vn(e,n){return n.locale!=null?lo(n.locale):lo(e.locale)}let on;function lo(e){if(D(e))return e;if(ee(e)){if(e.resolvedOnce&&on!=null)return on;if(e.constructor.name==="Function"){const n=e();if(xi(n))throw Oe(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return on=n}else throw Oe(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Oe(pe.NOT_SUPPORT_LOCALE_TYPE)}function Ma(e,n,o){return[...new Set([o,...se(n)?n:Y(n)?Object.keys(n):D(n)?[n]:[o]])]}function Yo(e,n,o){const l=D(o)?o:Lt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(l);if(!i){i=[];let a=[o];for(;se(a);)a=ro(i,a,n);const s=se(n)||!K(n)?n:n.default?n.default:null;a=D(s)?[s]:s,se(a)&&ro(i,a,!1),r.__localeChainCache.set(l,i)}return i}function ro(e,n,o){let l=!0;for(let r=0;r<n.length&&le(l);r++){const i=n[r];D(i)&&(l=xa(e,n[r],o))}return l}function xa(e,n,o){let l;const r=n.split("-");do{const i=r.join("-");l=Fa(e,i,o),r.splice(-1,1)}while(r.length&&l===!0);return l}function Fa(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(se(o)||K(o))&&o[r]&&(l=o[r])}return l}const Fe=[];Fe[0]={w:[0],i:[3,0],"[":[4],o:[7]};Fe[1]={w:[1],".":[2],"[":[4],o:[7]};Fe[2]={w:[2],i:[3,0],0:[3,0]};Fe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Fe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Fe[5]={"'":[4,0],o:8,l:[5,0]};Fe[6]={'"':[4,0],o:8,l:[6,0]};const Ua=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ha(e){return Ua.test(e)}function za(e){const n=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return n===o&&(n===34||n===39)?e.slice(1,-1):e}function Ga(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Wa(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ha(n)?za(n):"*"+n}function ja(e){const n=[];let o=-1,l=0,r=0,i,a,s,c,u,h,E;const g=[];g[0]=()=>{a===void 0?a=s:a+=s},g[1]=()=>{a!==void 0&&(n.push(a),a=void 0)},g[2]=()=>{g[0](),r++},g[3]=()=>{if(r>0)r--,l=4,g[0]();else{if(r=0,a===void 0||(a=Wa(a),a===!1))return!1;g[1]()}};function C(){const V=e[o+1];if(l===5&&V==="'"||l===6&&V==='"')return o++,s="\\"+V,g[0](),!0}for(;l!==null;)if(o++,i=e[o],!(i==="\\"&&C())){if(c=Ga(i),E=Fe[l],u=E[c]||E.l||8,u===8||(l=u[0],u[1]!==void 0&&(h=g[u[1]],h&&(s=i,h()===!1))))return;if(l===7)return n}}const io=new Map;function Ka(e,n){return Y(e)?e[n]:null}function Ya(e,n){if(!Y(e))return null;let o=io.get(n);if(o||(o=ja(n),o&&io.set(n,o)),!o)return null;const l=o.length;let r=e,i=0;for(;i<l;){const a=o[i];if(Ko.includes(a)&&Le(r))return null;const s=r[a];if(s===void 0||ee(r))return null;r=s,i++}return r}const Ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},qa=8,Xa={[Ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function qe(e,...n){return Dt(Xa[e],...n)}const Za="11.1.3",Pt=-1,Lt="en-US",Tt="",ao=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ja(){return{upper:(e,n)=>n==="text"&&D(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&D(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&D(e)?ao(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?ao(e.children):e}}let qo;function Qa(e){qo=e}let Xo;function es(e){Xo=e}let Zo;function ts(e){Zo=e}let Jo=null;const ns=e=>{Jo=e},os=()=>Jo;let Qo=null;const so=e=>{Qo=e},ls=()=>Qo;let co=0;function rs(e={}){const n=ee(e.onWarn)?e.onWarn:Me,o=D(e.version)?e.version:Za,l=D(e.locale)||ee(e.locale)?e.locale:Lt,r=ee(l)?Lt:l,i=se(e.fallbackLocale)||K(e.fallbackLocale)||D(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=K(e.messages)?e.messages:ln(r),s=K(e.datetimeFormats)?e.datetimeFormats:ln(r),c=K(e.numberFormats)?e.numberFormats:ln(r),u=de(Z(),e.modifiers,Ja()),h=e.pluralRules||Z(),E=ee(e.missing)?e.missing:null,g=le(e.missingWarn)||bt(e.missingWarn)?e.missingWarn:!0,C=le(e.fallbackWarn)||bt(e.fallbackWarn)?e.fallbackWarn:!0,V=!!e.fallbackFormat,L=!!e.unresolving,O=ee(e.postTranslation)?e.postTranslation:null,p=K(e.processor)?e.processor:null,k=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,m=ee(e.messageCompiler)?e.messageCompiler:qo;process.env.NODE_ENV!=="production"&&ee(e.messageCompiler)&&Hi(qe(Ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const b=ee(e.messageResolver)?e.messageResolver:Xo||Ka,I=ee(e.localeFallbacker)?e.localeFallbacker:Zo||Ma,N=Y(e.fallbackContext)?e.fallbackContext:void 0,x=e,H=Y(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,J=Y(x.__numberFormatters)?x.__numberFormatters:new Map,ce=Y(x.__meta)?x.__meta:{};co++;const F={version:o,cid:co,locale:l,fallbackLocale:i,messages:a,modifiers:u,pluralRules:h,missing:E,missingWarn:g,fallbackWarn:C,fallbackFormat:V,unresolving:L,postTranslation:O,processor:p,warnHtmlMessage:k,escapeParameter:S,messageCompiler:m,messageResolver:b,localeFallbacker:I,fallbackContext:N,onWarn:n,__meta:ce};return F.datetimeFormats=s,F.numberFormats=c,F.__datetimeFormatters=H,F.__numberFormatters=J,process.env.NODE_ENV!=="production"&&(F.__v_emitter=x.__v_emitter!=null?x.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Da(F,o,ce),F}const ln=e=>({[e]:Z()});function Rt(e,n){return e instanceof RegExp?e.test(n):e}function el(e,n){return e instanceof RegExp?e.test(n):e}function On(e,n,o,l,r){const{missing:i,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:r,groupId:`${r}:${n}`})}if(i!==null){const s=i(e,o,n,r);return D(s)?s:n}else return process.env.NODE_ENV!=="production"&&el(l,n)&&a(qe(Ee.NOT_FOUND_KEY,{key:n,locale:o})),n}function at(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function tl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function is(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(tl(e,n[l]))return!0;return!1}const uo=typeof Intl<"u",nl={dateTimeFormat:uo&&typeof Intl.DateTimeFormat<"u",numberFormat:uo&&typeof Intl.NumberFormat<"u"};function fo(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!nl.dateTimeFormat)return i(qe(Ee.CANNOT_FORMAT_DATE)),Tt;const[c,u,h,E]=fn(...n),g=le(h.missingWarn)?h.missingWarn:e.missingWarn,C=le(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,V=!!h.part,L=Vn(e,h),O=a(e,r,L);if(!D(c)||c==="")return new Intl.DateTimeFormat(L,E).format(u);let p={},k,S=null,m=L,b=null;const I="datetime format";for(let H=0;H<O.length;H++){if(k=b=O[H],process.env.NODE_ENV!=="production"&&L!==k&&Rt(C,c)&&i(qe(Ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&L!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:I,key:c,from:m,to:b,groupId:`${I}:${c}`})}if(p=o[k]||{},S=p[c],K(S))break;On(e,c,k,g,I),m=b}if(!K(S)||!D(k))return l?Pt:c;let N=`${k}__${c}`;Bt(E)||(N=`${N}__${JSON.stringify(E)}`);let x=s.get(N);return x||(x=new Intl.DateTimeFormat(k,de({},S,E)),s.set(N,x)),V?x.formatToParts(u):x.format(u)}const ol=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fn(...e){const[n,o,l,r]=e,i=Z();let a=Z(),s;if(D(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Oe(pe.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Oe(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Ri(n)){if(isNaN(n.getTime()))throw Oe(pe.INVALID_DATE_ARGUMENT);s=n}else if(ue(n))s=n;else throw Oe(pe.INVALID_ARGUMENT);return D(o)?i.key=o:K(o)&&Object.keys(o).forEach(c=>{ol.includes(c)?a[c]=o[c]:i[c]=o[c]}),D(l)?i.locale=l:K(l)&&(a=l),K(r)&&(a=r),[i.key||"",s,i,a]}function mo(e,n,o){const l=e;for(const r in o){const i=`${n}__${r}`;l.__datetimeFormatters.has(i)&&l.__datetimeFormatters.delete(i)}}function po(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!nl.numberFormat)return i(qe(Ee.CANNOT_FORMAT_NUMBER)),Tt;const[c,u,h,E]=mn(...n),g=le(h.missingWarn)?h.missingWarn:e.missingWarn,C=le(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,V=!!h.part,L=Vn(e,h),O=a(e,r,L);if(!D(c)||c==="")return new Intl.NumberFormat(L,E).format(u);let p={},k,S=null,m=L,b=null;const I="number format";for(let H=0;H<O.length;H++){if(k=b=O[H],process.env.NODE_ENV!=="production"&&L!==k&&Rt(C,c)&&i(qe(Ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&L!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:I,key:c,from:m,to:b,groupId:`${I}:${c}`})}if(p=o[k]||{},S=p[c],K(S))break;On(e,c,k,g,I),m=b}if(!K(S)||!D(k))return l?Pt:c;let N=`${k}__${c}`;Bt(E)||(N=`${N}__${JSON.stringify(E)}`);let x=s.get(N);return x||(x=new Intl.NumberFormat(k,de({},S,E)),s.set(N,x)),V?x.formatToParts(u):x.format(u)}const ll=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function mn(...e){const[n,o,l,r]=e,i=Z();let a=Z();if(!ue(n))throw Oe(pe.INVALID_ARGUMENT);const s=n;return D(o)?i.key=o:K(o)&&Object.keys(o).forEach(c=>{ll.includes(c)?a[c]=o[c]:i[c]=o[c]}),D(l)?i.locale=l:K(l)&&(a=l),K(r)&&(a=r),[i.key||"",s,i,a]}function go(e,n,o){const l=e;for(const r in o){const i=`${n}__${r}`;l.__numberFormatters.has(i)&&l.__numberFormatters.delete(i)}}const as=e=>e,ss=e=>"",cs="text",us=e=>e.length===0?"":wn(e),ds=Fi;function ho(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function fs(e){const n=ue(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ue(e.named.count)||ue(e.named.n))?ue(e.named.count)?e.named.count:ue(e.named.n)?e.named.n:n:n}function ms(e,n){n.count||(n.count=e),n.n||(n.n=e)}function ps(e={}){const n=e.locale,o=fs(e),l=Y(e.pluralRules)&&D(n)&&ee(e.pluralRules[n])?e.pluralRules[n]:ho,r=Y(e.pluralRules)&&D(n)&&ee(e.pluralRules[n])?ho:void 0,i=p=>p[l(o,p.length,r)],a=e.list||[],s=p=>a[p],c=e.named||Z();ue(e.pluralIndex)&&ms(o,c);const u=p=>c[p];function h(p,k){const S=ee(e.messages)?e.messages(p,!!k):Y(e.messages)?e.messages[p]:!1;return S||(e.parent?e.parent.message(p):ss)}const E=p=>e.modifiers?e.modifiers[p]:as,g=K(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:us,C=K(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:ds,V=K(e.processor)&&D(e.processor.type)?e.processor.type:cs,O={list:s,named:u,plural:i,linked:(p,...k)=>{const[S,m]=k;let b="text",I="";k.length===1?Y(S)?(I=S.modifier||I,b=S.type||b):D(S)&&(I=S||I):k.length===2&&(D(S)&&(I=S||I),D(m)&&(b=m||b));const N=h(p,!0)(O),x=b==="vnode"&&se(N)&&I?N[0]:N;return I?E(I)(x,b):x},message:h,type:V,interpolate:C,normalize:g,values:de(Z(),a,c)};return O}const Eo=()=>"",Se=e=>ee(e);function ko(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[c,u]=pn(...n),h=le(u.missingWarn)?u.missingWarn:e.missingWarn,E=le(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,g=le(u.escapeParameter)?u.escapeParameter:e.escapeParameter,C=!!u.resolvedMessage,V=D(u.default)||le(u.default)?le(u.default)?i?c:()=>c:u.default:o?i?c:()=>c:null,L=o||V!=null&&(D(V)||ee(V)),O=Vn(e,u);g&&gs(u);let[p,k,S]=C?[c,O,s[O]||Z()]:rl(e,c,O,a,E,h),m=p,b=c;if(!C&&!(D(m)||Le(m)||Se(m))&&L&&(m=V,b=m),!C&&(!(D(m)||Le(m)||Se(m))||!D(k)))return r?Pt:c;if(process.env.NODE_ENV!=="production"&&D(m)&&e.messageCompiler==null)return Me(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let I=!1;const N=()=>{I=!0},x=Se(m)?m:il(e,c,k,m,b,N);if(I)return m;const H=_s(e,k,S,u),J=ps(H),ce=hs(e,x,J),F=l?l(ce,c):ce;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:D(c)?c:Se(m)?m.key:"",locale:k||(Se(m)?m.locale:""),format:D(m)?m:Se(m)?m.source:"",message:F};he.meta=de({},e.__meta,os()||{}),Ba(he)}return F}function gs(e){se(e.list)?e.list=e.list.map(n=>D(n)?Zn(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{D(e.named[n])&&(e.named[n]=Zn(e.named[n]))})}function rl(e,n,o,l,r,i){const{messages:a,onWarn:s,messageResolver:c,localeFallbacker:u}=e,h=u(e,l,o);let E=Z(),g,C=null,V=o,L=null;const O="translate";for(let p=0;p<h.length;p++){if(g=L=h[p],process.env.NODE_ENV!=="production"&&o!==g&&!tl(o,g)&&Rt(r,n)&&s(qe(Ee.FALLBACK_TO_TRANSLATE,{key:n,target:g})),process.env.NODE_ENV!=="production"&&o!==g){const b=e.__v_emitter;b&&b.emit("fallback",{type:O,key:n,from:V,to:L,groupId:`${O}:${n}`})}E=a[g]||Z();let k=null,S,m;if(process.env.NODE_ENV!=="production"&&Be&&(k=window.performance.now(),S="intlify-message-resolve-start",m="intlify-message-resolve-end",ve&&ve(S)),(C=c(E,n))===null&&(C=E[n]),process.env.NODE_ENV!=="production"&&Be){const b=window.performance.now(),I=e.__v_emitter;I&&k&&C&&I.emit("message-resolve",{type:"message-resolve",key:n,message:C,time:b-k,groupId:`${O}:${n}`}),S&&m&&ve&&Ye&&(ve(m),Ye("intlify message resolve",S,m))}if(D(C)||Le(C)||Se(C))break;if(!is(g,h)){const b=On(e,n,g,i,O);b!==n&&(C=b)}V=L}return[C,g,E]}function il(e,n,o,l,r,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Se(l)){const g=l;return g.locale=g.locale||o,g.key=g.key||n,g}if(a==null){const g=()=>l;return g.locale=o,g.key=n,g}let c=null,u,h;process.env.NODE_ENV!=="production"&&Be&&(c=window.performance.now(),u="intlify-message-compilation-start",h="intlify-message-compilation-end",ve&&ve(u));const E=a(l,Es(e,o,r,l,s,i));if(process.env.NODE_ENV!=="production"&&Be){const g=window.performance.now(),C=e.__v_emitter;C&&c&&C.emit("message-compilation",{type:"message-compilation",message:l,time:g-c,groupId:`translate:${n}`}),u&&h&&ve&&Ye&&(ve(h),Ye("intlify message compilation",u,h))}return E.locale=o,E.key=n,E.source=l,E}function hs(e,n,o){let l=null,r,i;process.env.NODE_ENV!=="production"&&Be&&(l=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",ve&&ve(r));const a=n(o);if(process.env.NODE_ENV!=="production"&&Be){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-l,groupId:`translate:${n.key}`}),r&&i&&ve&&Ye&&(ve(i),Ye("intlify message evaluation",r,i))}return a}function pn(...e){const[n,o,l]=e,r=Z();if(!D(n)&&!ue(n)&&!Se(n)&&!Le(n))throw Oe(pe.INVALID_ARGUMENT);const i=ue(n)?String(n):(Se(n),n);return ue(o)?r.plural=o:D(o)?r.default=o:K(o)&&!Bt(o)?r.named=o:se(o)&&(r.list=o),ue(l)?r.plural=l:D(l)?r.default=l:K(l)&&de(r,l),[i,r]}function Es(e,n,o,l,r,i){return{locale:n,key:o,warnHtmlMessage:r,onError:a=>{if(i&&i(a),process.env.NODE_ENV!=="production"){const s=ks(l),c=`Message compilation error: ${a.message}`,u=a.location&&s&&Ui(s,a.location.start.offset,a.location.end.offset),h=e.__v_emitter;h&&s&&h.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
17
|
+
${u}`:c)}else throw a},onCacheKey:a=>Bi(n,o,a)}}function ks(e){if(D(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function _s(e,n,o,l){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:h}=e,g={locale:n,modifiers:r,pluralRules:i,messages:(C,V)=>{let L=a(o,C);if(L==null&&(h||V)){const[,,O]=rl(h||e,C,n,s,c,u);L=a(O,C)}if(D(L)||Le(L)){let O=!1;const k=il(e,C,n,L,C,()=>{O=!0});return O?Eo:k}else return Se(L)?L:Eo}};return e.processor&&(g.processor=e.processor),l.list&&(g.list=l.list),l.named&&(g.named=l.named),ue(l.plural)&&(g.pluralIndex=l.plural),g}_a();/*!
|
|
18
18
|
* vue-i18n v11.1.3
|
|
19
19
|
* (c) 2025 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
|
-
*/const ys="11.1.3";function Cs(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ke().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ke().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1)}const fe={UNEXPECTED_RETURN_TYPE:Ra,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ut(e,...n){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:Ns,args:n}:void 0)}const Ns={[fe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[fe.INVALID_ARGUMENT]:"Invalid argument",[fe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[fe.NOT_INSTALLED]:"Need to install with `app.use` function",[fe.UNEXPECTED_ERROR]:"Unexpected error",[fe.REQUIRED_VALUE]:"Required in value: {0}",[fe.INVALID_VALUE]:"Invalid value",[fe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[fe.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[fe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[fe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},
|
|
22
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[$e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Dn(e,...n){return Bt(Ss[e],...n)}function dt(e){if(!Y(e)||Le(e))return e;for(const n in e)if(be(e,n))if(!n.includes("."))Y(e[n])&&dt(e[n]);else{const o=n.split("."),l=o.length-1;let r=e,i=!1;for(let a=0;a<l;a++){if(o[a]==="__proto__")throw new Error(`unsafe key: ${o[a]}`);if(o[a]in r||(r[o[a]]=Z()),!Y(r[o[a]])){process.env.NODE_ENV!=="production"&&Me(Dn($e.IGNORE_OBJ_FLATTEN,{key:o[a]})),i=!0;break}r=r[o[a]]}if(i||(Le(r)?Ko.includes(o[l])||delete e[n]:(r[o[l]]=e[n],delete e[n])),!Le(r)){const a=r[o[l]];Y(a)&&dt(a)}}return e}function sl(e,n){const{messages:o,__i18n:l,messageResolver:r,flatJson:i}=n,a=K(o)?o:se(l)?Z():{[e]:Z()};if(se(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:d}=s;c?(a[c]=a[c]||Z(),St(d,a[c])):St(d,a)}else D(s)&&St(JSON.parse(s),a)}),r==null&&i)for(const s in a)be(a,s)&&dt(a[s]);return a}function cl(e){return e.type}function bs(e,n,o){let l=Y(n.messages)?n.messages:Z();"__i18nGlobal"in o&&(l=sl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const r=Object.keys(l);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,l[i])});{if(Y(n.datetimeFormats)){const i=Object.keys(n.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,n.datetimeFormats[a])})}if(Y(n.numberFormats)){const i=Object.keys(n.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,n.numberFormats[a])})}}}function _o(e){return t.createVNode(t.Text,null,e,0)}const yo="__INTLIFY_META__",Co=()=>[],Ls=()=>!1;let No=0;function vo(e){return(n,o,l,r)=>e(o,l,t.getCurrentInstance()||void 0,r)}const Ts=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=cl(e)[yo])?{[yo]:n}:null};function ws(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,r=e.flatJson,i=Be?t.ref:t.shallowRef;let a=le(e.inheritLocale)?e.inheritLocale:!0;const s=i(n&&a?n.locale.value:D(e.locale)?e.locale:Tt),c=i(n&&a?n.fallbackLocale.value:D(e.fallbackLocale)||se(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),d=i(sl(s.value,e)),m=i(K(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),E=i(K(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=n?n.missingWarn:le(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,C=n?n.fallbackWarn:le(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,V=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,O=ee(e.missing)?e.missing:null,g=ee(e.missing)?vo(e.missing):null,k=ee(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const b=n?n.modifiers:K(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,N;N=(()=>{l&&so(null);const _={version:ys,locale:s.value,fallbackLocale:c.value,messages:d.value,modifiers:b,pluralRules:I,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:C,fallbackFormat:L,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:S,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=m.value,_.numberFormats=E.value,_.__datetimeFormatters=K(N)?N.__datetimeFormatters:void 0,_.__numberFormatters=K(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=K(N)?N.__v_emitter:void 0);const w=rs(_);return l&&so(w),w})(),at(N,s.value,c.value);function H(){return[s.value,c.value,d.value,m.value,E.value]}const J=t.computed({get:()=>s.value,set:_=>{N.locale=_,s.value=_}}),ce=t.computed({get:()=>c.value,set:_=>{N.fallbackLocale=_,c.value=_,at(N,s.value,_)}}),F=t.computed(()=>d.value),he=t.computed(()=>m.value),Ae=t.computed(()=>E.value);function P(){return ee(k)?k:null}function A(_){k=_,N.postTranslation=_}function z(){return O}function R(_){_!==null&&(g=vo(_)),O=_,N.missing=g}function Ie(_,w){return _!=="translate"||!w.resolvedMessage}const me=(_,w,q,oe,ze,pt)=>{H();let Ze;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(N.fallbackContext=n?ls():void 0),Ze=_(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(N.fallbackContext=void 0)}if(q!=="translate exists"&&ue(Ze)&&Ze===Rt||q==="translate exists"&&!Ze){const[Ge,Ql]=w();if(process.env.NODE_ENV!=="production"&&n&&D(Ge)&&Ie(q,Ql)&&(V&&($t(C,Ge)||el(h,Ge))&&Me(Dn($e.FALLBACK_TO_ROOT,{key:Ge,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:zn}=N;zn&&V&&zn.emit("fallback",{type:q,key:Ge,to:"global",groupId:`${q}:${Ge}`})}return n&&V?oe(n):ze(Ge)}else{if(pt(Ze))return Ze;throw ut(fe.UNEXPECTED_RETURN_TYPE)}};function Ue(..._){return me(w=>Reflect.apply(ko,null,[w,..._]),()=>gn(..._),"translate",w=>Reflect.apply(w.t,w,[..._]),w=>w,w=>D(w))}function Wt(..._){const[w,q,oe]=_;if(oe&&!Y(oe))throw ut(fe.INVALID_ARGUMENT);return Ue(w,q,de({resolvedMessage:!0},oe||{}))}function jt(..._){return me(w=>Reflect.apply(fo,null,[w,..._]),()=>mn(..._),"datetime format",w=>Reflect.apply(w.d,w,[..._]),()=>wt,w=>D(w))}function Kt(..._){return me(w=>Reflect.apply(po,null,[w,..._]),()=>pn(..._),"number format",w=>Reflect.apply(w.n,w,[..._]),()=>wt,w=>D(w))}function Yt(_){return _.map(w=>D(w)||ue(w)||le(w)?_o(String(w)):w)}const qt={normalize:Yt,interpolate:_=>_,type:"vnode"};function mt(..._){return me(w=>{let q;const oe=w;try{oe.processor=qt,q=Reflect.apply(ko,null,[oe,..._])}finally{oe.processor=null}return q},()=>gn(..._),"translate",w=>w[hn](..._),w=>[_o(w)],w=>se(w))}function Xt(..._){return me(w=>Reflect.apply(po,null,[w,..._]),()=>pn(..._),"number format",w=>w[kn](..._),Co,w=>D(w)||se(w))}function Zt(..._){return me(w=>Reflect.apply(fo,null,[w,..._]),()=>mn(..._),"datetime format",w=>w[En](..._),Co,w=>D(w)||se(w))}function Jt(_){I=_,N.pluralRules=I}function Qt(_,w){return me(()=>{if(!_)return!1;const q=D(w)?w:s.value,oe=He(q),ze=N.messageResolver(oe,_);return Le(ze)||Se(ze)||D(ze)},()=>[_],"translate exists",q=>Reflect.apply(q.te,q,[_,w]),Ls,q=>le(q))}function lt(_){let w=null;const q=Yo(N,c.value,s.value);for(let oe=0;oe<q.length;oe++){const ze=d.value[q[oe]]||{},pt=N.messageResolver(ze,_);if(pt!=null){w=pt;break}}return w}function rt(_){const w=lt(_);return w??(n?n.tm(_)||{}:{})}function He(_){return d.value[_]||{}}function it(_,w){if(r){const q={[_]:w};for(const oe in q)be(q,oe)&&dt(q[oe]);w=q[_]}d.value[_]=w,N.messages=d.value}function en(_,w){d.value[_]=d.value[_]||{};const q={[_]:w};if(r)for(const oe in q)be(q,oe)&&dt(q[oe]);w=q[_],St(w,d.value[_]),N.messages=d.value}function u(_){return m.value[_]||{}}function f(_,w){m.value[_]=w,N.datetimeFormats=m.value,mo(N,_,w)}function v(_,w){m.value[_]=de(m.value[_]||{},w),N.datetimeFormats=m.value,mo(N,_,w)}function $(_){return E.value[_]||{}}function te(_,w){E.value[_]=w,N.numberFormats=E.value,go(N,_,w)}function ne(_,w){E.value[_]=de(E.value[_]||{},w),N.numberFormats=E.value,go(N,_,w)}No++,n&&Be&&(t.watch(n.locale,_=>{a&&(s.value=_,N.locale=_,at(N,s.value,c.value))}),t.watch(n.fallbackLocale,_=>{a&&(c.value=_,N.fallbackLocale=_,at(N,s.value,c.value))}));const j={id:No,locale:J,fallbackLocale:ce,get inheritLocale(){return a},set inheritLocale(_){a=_,_&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,at(N,s.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:F,get modifiers(){return b},get pluralRules(){return I||{}},get isGlobal(){return l},get missingWarn(){return h},set missingWarn(_){h=_,N.missingWarn=h},get fallbackWarn(){return C},set fallbackWarn(_){C=_,N.fallbackWarn=C},get fallbackRoot(){return V},set fallbackRoot(_){V=_},get fallbackFormat(){return L},set fallbackFormat(_){L=_,N.fallbackFormat=L},get warnHtmlMessage(){return S},set warnHtmlMessage(_){S=_,N.warnHtmlMessage=_},get escapeParameter(){return p},set escapeParameter(_){p=_,N.escapeParameter=_},t:Ue,getLocaleMessage:He,setLocaleMessage:it,mergeLocaleMessage:en,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:z,setMissingHandler:R,[vs]:Jt};return j.datetimeFormats=he,j.numberFormats=Ae,j.rt=Wt,j.te=Qt,j.tm=rt,j.d=jt,j.n=Kt,j.getDateTimeFormat=u,j.setDateTimeFormat=f,j.mergeDateTimeFormat=v,j.getNumberFormat=$,j.setNumberFormat=te,j.mergeNumberFormat=ne,j[al]=o,j[hn]=mt,j[En]=Zt,j[kn]=Xt,process.env.NODE_ENV!=="production"&&(j[_n]=_=>{N.__v_emitter=_},j[yn]=()=>{N.__v_emitter=void 0}),j}function So(e,n){}const Bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function As({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,r)=>[...l,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((o,l)=>{const r=e[l];return r&&(o[l]=r()),o},Z())}function ul(){return t.Fragment}de({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ue(e)||!isNaN(e)}},Bn);function Is(e){return se(e)&&!D(e[0])}function dl(e,n,o,l){const{slots:r,attrs:i}=n;return()=>{const a={part:!0};let s=Z();e.locale&&(a.locale=e.locale),D(e.format)?a.key=e.format:Y(e.format)&&(D(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,C)=>o.includes(C)?de(Z(),h,{[C]:e.format[C]}):h,Z()));const c=l(e.value,a,s);let d=[a.key];se(c)?d=c.map((h,C)=>{const V=r[h.type],L=V?V({[h.type]:h.value,index:C,parts:c}):[h.value];return Is(L)&&(L[0].key=`${h.type}-${C}`),L}):D(c)&&(d=[c]);const m=de(Z(),i),E=D(e.tag)||Y(e.tag)?e.tag:ul();return t.h(E,m,d)}}de({value:{type:Number,required:!0},format:{type:[String,Object]}},Bn);const Vs=Pe("global-vue-i18n");function Mt(e={}){const n=t.getCurrentInstance();if(n==null)throw ut(fe.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw ut(fe.NOT_INSTALLED);const o=Os(n),l=Bs(o),r=cl(n),i=Ds(e,r);if(i==="global")return bs(l,e,r),l;if(i==="parent"){let c=Ps(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Me(Dn($e.NOT_FOUND_PARENT_SCOPE)),c=l),c}const a=o;let s=a.__getInstance(n);if(s==null){const c=de({},e);"__i18n"in r&&(c.__i18n=r.__i18n),l&&(c.__root=l),s=ws(c),a.__composerExtend&&(s[Cn]=a.__composerExtend(s)),$s(a,n,s),a.__setInstance(n,s)}return s}function Os(e){const n=t.inject(e.isCE?Vs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ut(e.isCE?fe.NOT_INSTALLED_WITH_PROVIDE:fe.UNEXPECTED_ERROR);return n}function Ds(e,n){return Pt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function Bs(e){return e.mode==="composition"?e.global:e.global.__composer}function Ps(e,n,o=!1){let l=null;const r=n.root;let i=Rs(n,o);for(;i!=null;){const a=e;if(e.mode==="composition")l=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(l=s.__composer,o&&l&&!l[al]&&(l=null))}if(l!=null||r===i)break;i=i.parent}return l}function Rs(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function $s(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,l=zi();const r=o;r[_n]&&r[_n](l),l.on("*",So)}},n),t.onUnmounted(()=>{const r=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",So),r[yn]&&r[yn](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const i=r[Cn];i&&(i(),delete r[Cn])},n)}de({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Bn);Cs();Qa(Va);es(Ya);ts(Yo);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ke();e.__INTLIFY__=!0,Oa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const X=t.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let n;typeof document<"u"&&(n=import("bootstrap"));const o=e,l=t.ref(),r=t.ref(),i=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const a=await n;typeof document<"u"&&r.value&&i.value&&(l.value=new a.Tooltip(r.value,{trigger:"hover",html:!0,placement:o.placement,title:i.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{var a;(a=l.value)==null||a.dispose()}),(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:r},a.$attrs),[t.renderSlot(a.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:i},[t.renderSlot(a.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(a.title),1)])],512)],64))}}),Ms=t.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const n=e,o=t.computed(()=>`data:image/svg+xml;base64,${i.value}`),l=t.computed(()=>({flowable:a.value?a.value.flowable:!1})),r=t.computed(()=>({backgroundImage:`url(${o.value})`})),i=t.computed(()=>{let c=a.value&&a.value.icon?window.atob(a.value.icon):void 0;c||(c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const d=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let m=Ne(d?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(m=(n.theme==="dark"?Ne("--bs-gray-900"):Ne("--bs-black"))??m),n.variable&&(m=Ne(n.variable)??m),c=c.replace(/currentColor/g,m),window.btoa(c)}),a=t.computed(()=>n.cls?(n.icons||{})[s(n.cls)]:n.customIcon);function s(c){return c.includes("$")?c.substring(0,c.indexOf("$")):c}return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.value,"wrapper"])},[c.onlyIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"icon",style:t.normalizeStyle(r.value)},null,4)):(t.openBlock(),t.createBlock(X,{key:0,title:c.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(r.value)},null,4)]),_:1},8,["title"]))],2))}}),Pn=B(Ms,[["__scopeId","data-v-23f8d853"]]),xs={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fs=["aria-hidden","aria-label"],Us=["fill","width","height"],Hs={d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},zs={key:0};function Gs(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Hs,[o.title?(t.openBlock(),t.createElementBlock("title",zs,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Us))],16,Fs)}const Rn=B(xs,[["render",Gs]]),Ws={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},js=["aria-hidden","aria-label"],Ks=["fill","width","height"],Ys={d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"},qs={key:0};function Xs(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Ys,[o.title?(t.openBlock(),t.createElementBlock("title",qs,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ks))],16,js)}const Zs=B(Ws,[["render",Xs]]),Js={class:"dependency-text d-flex flex-column flex-grow-1"},Qs={class:"dependency-flow-text text-truncate"},ec={class:"dependency-namespace-text text-truncate"},tc={class:"text-white top-button-div"},nc=t.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[y.EVENTS.EXPAND_DEPENDENCIES,y.EVENTS.OPEN_LINK,y.EVENTS.MOUSE_OVER,y.EVENTS.MOUSE_LEAVE],setup(e,{emit:n}){const o=n,{t:l}=Mt(),r=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
21
|
+
*/const ys="11.1.3";function Cs(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ke().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ke().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1)}const fe={UNEXPECTED_RETURN_TYPE:Ra,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ut(e,...n){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:Ns,args:n}:void 0)}const Ns={[fe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[fe.INVALID_ARGUMENT]:"Invalid argument",[fe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[fe.NOT_INSTALLED]:"Need to install with `app.use` function",[fe.UNEXPECTED_ERROR]:"Unexpected error",[fe.REQUIRED_VALUE]:"Required in value: {0}",[fe.INVALID_VALUE]:"Invalid value",[fe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[fe.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[fe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[fe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},gn=Pe("__translateVNode"),hn=Pe("__datetimeParts"),En=Pe("__numberParts"),kn=Pe("__enableEmitter"),_n=Pe("__disableEmitter"),vs=Pe("__setPluralRules"),al=Pe("__injectWithOption"),yn=Pe("__dispose"),$e={FALLBACK_TO_ROOT:qa,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},Ss={[$e.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[$e.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[$e.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[$e.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
22
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[$e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Dn(e,...n){return Dt(Ss[e],...n)}function dt(e){if(!Y(e)||Le(e))return e;for(const n in e)if(be(e,n))if(!n.includes("."))Y(e[n])&&dt(e[n]);else{const o=n.split("."),l=o.length-1;let r=e,i=!1;for(let a=0;a<l;a++){if(o[a]==="__proto__")throw new Error(`unsafe key: ${o[a]}`);if(o[a]in r||(r[o[a]]=Z()),!Y(r[o[a]])){process.env.NODE_ENV!=="production"&&Me(Dn($e.IGNORE_OBJ_FLATTEN,{key:o[a]})),i=!0;break}r=r[o[a]]}if(i||(Le(r)?Ko.includes(o[l])||delete e[n]:(r[o[l]]=e[n],delete e[n])),!Le(r)){const a=r[o[l]];Y(a)&&dt(a)}}return e}function sl(e,n){const{messages:o,__i18n:l,messageResolver:r,flatJson:i}=n,a=K(o)?o:se(l)?Z():{[e]:Z()};if(se(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(a[c]=a[c]||Z(),St(u,a[c])):St(u,a)}else D(s)&&St(JSON.parse(s),a)}),r==null&&i)for(const s in a)be(a,s)&&dt(a[s]);return a}function cl(e){return e.type}function bs(e,n,o){let l=Y(n.messages)?n.messages:Z();"__i18nGlobal"in o&&(l=sl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const r=Object.keys(l);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,l[i])});{if(Y(n.datetimeFormats)){const i=Object.keys(n.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,n.datetimeFormats[a])})}if(Y(n.numberFormats)){const i=Object.keys(n.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,n.numberFormats[a])})}}}function _o(e){return t.createVNode(t.Text,null,e,0)}const yo="__INTLIFY_META__",Co=()=>[],Ls=()=>!1;let No=0;function vo(e){return(n,o,l,r)=>e(o,l,t.getCurrentInstance()||void 0,r)}const Ts=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=cl(e)[yo])?{[yo]:n}:null};function ws(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,r=e.flatJson,i=Be?t.ref:t.shallowRef;let a=le(e.inheritLocale)?e.inheritLocale:!0;const s=i(n&&a?n.locale.value:D(e.locale)?e.locale:Lt),c=i(n&&a?n.fallbackLocale.value:D(e.fallbackLocale)||se(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=i(sl(s.value,e)),h=i(K(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),E=i(K(e.numberFormats)?e.numberFormats:{[s.value]:{}});let g=n?n.missingWarn:le(e.missingWarn)||bt(e.missingWarn)?e.missingWarn:!0,C=n?n.fallbackWarn:le(e.fallbackWarn)||bt(e.fallbackWarn)?e.fallbackWarn:!0,V=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,O=ee(e.missing)?e.missing:null,p=ee(e.missing)?vo(e.missing):null,k=ee(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const b=n?n.modifiers:K(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,N;N=(()=>{l&&so(null);const _={version:ys,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:b,pluralRules:I,missing:p===null?void 0:p,missingWarn:g,fallbackWarn:C,fallbackFormat:L,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:S,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=h.value,_.numberFormats=E.value,_.__datetimeFormatters=K(N)?N.__datetimeFormatters:void 0,_.__numberFormatters=K(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=K(N)?N.__v_emitter:void 0);const w=rs(_);return l&&so(w),w})(),at(N,s.value,c.value);function H(){return[s.value,c.value,u.value,h.value,E.value]}const J=t.computed({get:()=>s.value,set:_=>{N.locale=_,s.value=_}}),ce=t.computed({get:()=>c.value,set:_=>{N.fallbackLocale=_,c.value=_,at(N,s.value,_)}}),F=t.computed(()=>u.value),he=t.computed(()=>h.value),Ae=t.computed(()=>E.value);function P(){return ee(k)?k:null}function A(_){k=_,N.postTranslation=_}function z(){return O}function R(_){_!==null&&(p=vo(_)),O=_,N.missing=p}function Ie(_,w){return _!=="translate"||!w.resolvedMessage}const me=(_,w,q,oe,ze,pt)=>{H();let Ze;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(N.fallbackContext=n?ls():void 0),Ze=_(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(N.fallbackContext=void 0)}if(q!=="translate exists"&&ue(Ze)&&Ze===Pt||q==="translate exists"&&!Ze){const[Ge,Ql]=w();if(process.env.NODE_ENV!=="production"&&n&&D(Ge)&&Ie(q,Ql)&&(V&&(Rt(C,Ge)||el(g,Ge))&&Me(Dn($e.FALLBACK_TO_ROOT,{key:Ge,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:zn}=N;zn&&V&&zn.emit("fallback",{type:q,key:Ge,to:"global",groupId:`${q}:${Ge}`})}return n&&V?oe(n):ze(Ge)}else{if(pt(Ze))return Ze;throw ut(fe.UNEXPECTED_RETURN_TYPE)}};function Ue(..._){return me(w=>Reflect.apply(ko,null,[w,..._]),()=>pn(..._),"translate",w=>Reflect.apply(w.t,w,[..._]),w=>w,w=>D(w))}function Gt(..._){const[w,q,oe]=_;if(oe&&!Y(oe))throw ut(fe.INVALID_ARGUMENT);return Ue(w,q,de({resolvedMessage:!0},oe||{}))}function Wt(..._){return me(w=>Reflect.apply(fo,null,[w,..._]),()=>fn(..._),"datetime format",w=>Reflect.apply(w.d,w,[..._]),()=>Tt,w=>D(w))}function jt(..._){return me(w=>Reflect.apply(po,null,[w,..._]),()=>mn(..._),"number format",w=>Reflect.apply(w.n,w,[..._]),()=>Tt,w=>D(w))}function Kt(_){return _.map(w=>D(w)||ue(w)||le(w)?_o(String(w)):w)}const Yt={normalize:Kt,interpolate:_=>_,type:"vnode"};function mt(..._){return me(w=>{let q;const oe=w;try{oe.processor=Yt,q=Reflect.apply(ko,null,[oe,..._])}finally{oe.processor=null}return q},()=>pn(..._),"translate",w=>w[gn](..._),w=>[_o(w)],w=>se(w))}function qt(..._){return me(w=>Reflect.apply(po,null,[w,..._]),()=>mn(..._),"number format",w=>w[En](..._),Co,w=>D(w)||se(w))}function Xt(..._){return me(w=>Reflect.apply(fo,null,[w,..._]),()=>fn(..._),"datetime format",w=>w[hn](..._),Co,w=>D(w)||se(w))}function Zt(_){I=_,N.pluralRules=I}function Jt(_,w){return me(()=>{if(!_)return!1;const q=D(w)?w:s.value,oe=He(q),ze=N.messageResolver(oe,_);return Le(ze)||Se(ze)||D(ze)},()=>[_],"translate exists",q=>Reflect.apply(q.te,q,[_,w]),Ls,q=>le(q))}function lt(_){let w=null;const q=Yo(N,c.value,s.value);for(let oe=0;oe<q.length;oe++){const ze=u.value[q[oe]]||{},pt=N.messageResolver(ze,_);if(pt!=null){w=pt;break}}return w}function rt(_){const w=lt(_);return w??(n?n.tm(_)||{}:{})}function He(_){return u.value[_]||{}}function it(_,w){if(r){const q={[_]:w};for(const oe in q)be(q,oe)&&dt(q[oe]);w=q[_]}u.value[_]=w,N.messages=u.value}function Qt(_,w){u.value[_]=u.value[_]||{};const q={[_]:w};if(r)for(const oe in q)be(q,oe)&&dt(q[oe]);w=q[_],St(w,u.value[_]),N.messages=u.value}function d(_){return h.value[_]||{}}function f(_,w){h.value[_]=w,N.datetimeFormats=h.value,mo(N,_,w)}function v(_,w){h.value[_]=de(h.value[_]||{},w),N.datetimeFormats=h.value,mo(N,_,w)}function $(_){return E.value[_]||{}}function te(_,w){E.value[_]=w,N.numberFormats=E.value,go(N,_,w)}function ne(_,w){E.value[_]=de(E.value[_]||{},w),N.numberFormats=E.value,go(N,_,w)}No++,n&&Be&&(t.watch(n.locale,_=>{a&&(s.value=_,N.locale=_,at(N,s.value,c.value))}),t.watch(n.fallbackLocale,_=>{a&&(c.value=_,N.fallbackLocale=_,at(N,s.value,c.value))}));const j={id:No,locale:J,fallbackLocale:ce,get inheritLocale(){return a},set inheritLocale(_){a=_,_&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,at(N,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:F,get modifiers(){return b},get pluralRules(){return I||{}},get isGlobal(){return l},get missingWarn(){return g},set missingWarn(_){g=_,N.missingWarn=g},get fallbackWarn(){return C},set fallbackWarn(_){C=_,N.fallbackWarn=C},get fallbackRoot(){return V},set fallbackRoot(_){V=_},get fallbackFormat(){return L},set fallbackFormat(_){L=_,N.fallbackFormat=L},get warnHtmlMessage(){return S},set warnHtmlMessage(_){S=_,N.warnHtmlMessage=_},get escapeParameter(){return m},set escapeParameter(_){m=_,N.escapeParameter=_},t:Ue,getLocaleMessage:He,setLocaleMessage:it,mergeLocaleMessage:Qt,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:z,setMissingHandler:R,[vs]:Zt};return j.datetimeFormats=he,j.numberFormats=Ae,j.rt=Gt,j.te=Jt,j.tm=rt,j.d=Wt,j.n=jt,j.getDateTimeFormat=d,j.setDateTimeFormat=f,j.mergeDateTimeFormat=v,j.getNumberFormat=$,j.setNumberFormat=te,j.mergeNumberFormat=ne,j[al]=o,j[gn]=mt,j[hn]=Xt,j[En]=qt,process.env.NODE_ENV!=="production"&&(j[kn]=_=>{N.__v_emitter=_},j[_n]=()=>{N.__v_emitter=void 0}),j}function So(e,n){}const Bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function As({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,r)=>[...l,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((o,l)=>{const r=e[l];return r&&(o[l]=r()),o},Z())}function ul(){return t.Fragment}de({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ue(e)||!isNaN(e)}},Bn);function Is(e){return se(e)&&!D(e[0])}function dl(e,n,o,l){const{slots:r,attrs:i}=n;return()=>{const a={part:!0};let s=Z();e.locale&&(a.locale=e.locale),D(e.format)?a.key=e.format:Y(e.format)&&(D(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((g,C)=>o.includes(C)?de(Z(),g,{[C]:e.format[C]}):g,Z()));const c=l(e.value,a,s);let u=[a.key];se(c)?u=c.map((g,C)=>{const V=r[g.type],L=V?V({[g.type]:g.value,index:C,parts:c}):[g.value];return Is(L)&&(L[0].key=`${g.type}-${C}`),L}):D(c)&&(u=[c]);const h=de(Z(),i),E=D(e.tag)||Y(e.tag)?e.tag:ul();return t.h(E,h,u)}}de({value:{type:Number,required:!0},format:{type:[String,Object]}},Bn);const Vs=Pe("global-vue-i18n");function $t(e={}){const n=t.getCurrentInstance();if(n==null)throw ut(fe.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw ut(fe.NOT_INSTALLED);const o=Os(n),l=Bs(o),r=cl(n),i=Ds(e,r);if(i==="global")return bs(l,e,r),l;if(i==="parent"){let c=Ps(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Me(Dn($e.NOT_FOUND_PARENT_SCOPE)),c=l),c}const a=o;let s=a.__getInstance(n);if(s==null){const c=de({},e);"__i18n"in r&&(c.__i18n=r.__i18n),l&&(c.__root=l),s=ws(c),a.__composerExtend&&(s[yn]=a.__composerExtend(s)),$s(a,n,s),a.__setInstance(n,s)}return s}function Os(e){const n=t.inject(e.isCE?Vs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ut(e.isCE?fe.NOT_INSTALLED_WITH_PROVIDE:fe.UNEXPECTED_ERROR);return n}function Ds(e,n){return Bt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function Bs(e){return e.mode==="composition"?e.global:e.global.__composer}function Ps(e,n,o=!1){let l=null;const r=n.root;let i=Rs(n,o);for(;i!=null;){const a=e;if(e.mode==="composition")l=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(l=s.__composer,o&&l&&!l[al]&&(l=null))}if(l!=null||r===i)break;i=i.parent}return l}function Rs(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function $s(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,l=zi();const r=o;r[kn]&&r[kn](l),l.on("*",So)}},n),t.onUnmounted(()=>{const r=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",So),r[_n]&&r[_n](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const i=r[yn];i&&(i(),delete r[yn])},n)}de({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Bn);Cs();Qa(Va);es(Ya);ts(Yo);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ke();e.__INTLIFY__=!0,Oa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const X=t.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let n;typeof document<"u"&&(n=import("bootstrap"));const o=e,l=t.ref(),r=t.ref(),i=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const a=await n;typeof document<"u"&&r.value&&i.value&&(l.value=new a.Tooltip(r.value,{trigger:"hover",html:!0,placement:o.placement,title:i.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{var a;(a=l.value)==null||a.dispose()}),(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:r},a.$attrs),[t.renderSlot(a.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:i},[t.renderSlot(a.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(a.title),1)])],512)],64))}}),Ms=t.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const n=e,o=t.computed(()=>`data:image/svg+xml;base64,${i.value}`),l=t.computed(()=>({flowable:a.value?a.value.flowable:!1})),r=t.computed(()=>({backgroundImage:`url(${o.value})`})),i=t.computed(()=>{let c=a.value&&a.value.icon?window.atob(a.value.icon):void 0;c||(c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const u=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let h=Ne(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(h=(n.theme==="dark"?Ne("--bs-gray-900"):Ne("--bs-black"))??h),n.variable&&(h=Ne(n.variable)??h),c=c.replace(/currentColor/g,h),window.btoa(c)}),a=t.computed(()=>n.cls?(n.icons||{})[s(n.cls)]:n.customIcon);function s(c){return c.includes("$")?c.substring(0,c.indexOf("$")):c}return(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.value,"wrapper"])},[c.onlyIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"icon",style:t.normalizeStyle(r.value)},null,4)):(t.openBlock(),t.createBlock(X,{key:0,title:c.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(r.value)},null,4)]),_:1},8,["title"]))],2))}}),Pn=B(Ms,[["__scopeId","data-v-23f8d853"]]),xs={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fs=["aria-hidden","aria-label"],Us=["fill","width","height"],Hs={d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"},zs={key:0};function Gs(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Hs,[o.title?(t.openBlock(),t.createElementBlock("title",zs,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Us))],16,Fs)}const Rn=B(xs,[["render",Gs]]),Ws={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},js=["aria-hidden","aria-label"],Ks=["fill","width","height"],Ys={d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"},qs={key:0};function Xs(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Ys,[o.title?(t.openBlock(),t.createElementBlock("title",qs,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ks))],16,js)}const Zs=B(Ws,[["render",Xs]]),Js={class:"dependency-text d-flex flex-column flex-grow-1"},Qs={class:"dependency-flow-text text-truncate"},ec={class:"dependency-namespace-text text-truncate"},tc={class:"text-white top-button-div"},nc=t.defineComponent({name:"Dependencies",inheritAttrs:!1,__name:"DependenciesNode",props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0}},emits:[y.EVENTS.EXPAND_DEPENDENCIES,y.EVENTS.OPEN_LINK,y.EVENTS.MOUSE_OVER,y.EVENTS.MOUSE_LEAVE],setup(e,{emit:n}){const o=n,{t:l}=$t(),r=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
23
23
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
|
|
24
|
-
</svg>`));return(i,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.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(Pn,{"custom-icon":{icon:r.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",Js,[t.createElementVNode("div",Qs,[t.createVNode(X,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",ec,[t.createVNode(X,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",tc,[t.renderSlot(i.$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:a[0]||(a[0]=s=>i.$emit(t.unref(y.EVENTS).OPEN_LINK,e.data))},[t.createVNode(X,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(Rn,{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:a[1]||(a[1]=s=>o(t.unref(y.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(X,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(Zs,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),oc=B(nc,[["__scopeId","data-v-2271d5b0"]]);var we=(e=>(e.Lines="lines",e.Dots="dots",e))(we||{});const fl=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]}`})},ml=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};we.Lines+"",we.Dots+"";const lc={[we.Dots]:"#81818a",[we.Lines]:"#eee"},rc=["id","x","y","width","height","patternTransform"],ic={key:2,height:"100",width:"100"},ac=["fill"],sc=["x","y","fill"],cc={name:"Background",compatConfig:{MODE:3}},uc=t.defineComponent({...cc,props:{id:{},variant:{default:()=>we.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:2}},setup(e){const{id:n,viewport:o}=re.useVueFlow(),l=t.computed(()=>{const[a,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],c=[a*o.value.zoom||1,s*o.value.zoom||1],d=e.size*o.value.zoom,m=e.variant===we.Dots?[d/e.offset,d/e.offset]:[c[0]/e.offset,c[1]/e.offset];return{scaledGap:c,offset:m,size:d}}),r=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),i=t.toRef(()=>e.color||e.patternColor||lc[e.variant||we.Dots]);return(a,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${a.height>100?100:a.height}%`,width:`${a.width>100?100:a.width}%`})},[t.renderSlot(a.$slots,"pattern-container",{id:r.value},()=>[t.createElementVNode("pattern",{id:r.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(a.$slots,"pattern",{},()=>[a.variant===t.unref(we).Lines?(t.openBlock(),t.createBlock(t.unref(fl),{key:0,size:a.lineWidth,color:i.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):a.variant===t.unref(we).Dots?(t.openBlock(),t.createBlock(t.unref(ml),{key:1,color:i.value,radius:l.value.size/a.offset},null,8,["color","radius"])):t.createCommentVNode("",!0),a.bgColor?(t.openBlock(),t.createElementBlock("svg",ic,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:a.bgColor},null,8,ac)])):t.createCommentVNode("",!0)])],8,rc)]),t.createElementVNode("rect",{x:a.x,y:a.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,sc),t.renderSlot(a.$slots,"default",{id:r.value})],4))}}),dc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fc=["aria-hidden","aria-label"],mc=["fill","width","height"],pc={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},gc={key:0};function hc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",pc,[o.title?(t.openBlock(),t.createElementBlock("title",gc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mc))],16,fc)}const Ec=B(dc,[["render",hc]]),kc={class:"top-button-div text-white d-flex"},_c={inheritAttrs:!1,components:{Tooltip:X},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){var n;const e=this.data.taskNode;if((n=e==null?void 0:e.type)!=null&&n.endsWith("SubflowGraphTask")){const o=e.task.subflowId??e.task;return o.namespace+" "+o.flowId}return y.Utils.afterLastDot(this.id)}}},yc=Object.assign(_c,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:re.Position,default:void 0},targetPosition:{type:re.Position,default:void 0},id:{type:String,default:void 0}},emits:[y.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,r=()=>{l(y.EVENTS.COLLAPSE,o.id)};return(i,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(i.clusterName),3),t.createElementVNode("div",kc,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:a[0]||(a[0]=s=>r())},[t.createVNode(X,{title:i.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Ec,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),Cc=B(yc,[["__scopeId","data-v-0c251e77"]]),Nc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vc=["aria-hidden","aria-label"],Sc=["fill","width","height"],bc={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"},Lc={key:0};function Tc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",bc,[o.title?(t.openBlock(),t.createElementBlock("title",Lc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sc))],16,vc)}const pl=B(Nc,[["render",Tc]]),wc={name:"Dot",components:{Handle:re.Handle,CircleIcon:pl},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,[y.Utils.afterLastDot(this.data.node.type)]:!0}}}},Ac=Object.assign(wc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(re.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(pl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(re.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),Ic=B(Ac,[["__scopeId","data-v-666f472b"]]),Vc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oc=["aria-hidden","aria-label"],Dc=["fill","width","height"],Bc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Pc={key:0};function Rc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Bc,[o.title?(t.openBlock(),t.createElementBlock("title",Pc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Dc))],16,Oc)}const $c=B(Vc,[["render",Rc]]),Mc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},xc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Mc,[n.addTask?(t.openBlock(),t.createBlock($c,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Fc=B(xc,[["__scopeId","data-v-4afc4738"]]),Uc={data(){return{tooltips:[]}},props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},components:{AddTaskButton:Fc,EdgeLabelRenderer:re.EdgeLabelRenderer,Tooltip:X},computed:{Utils(){return y.Utils},EVENTS(){return y.EVENTS},classes(){return{"vue-flow__edge-path":!0,["stroke-"+this.data.color]:this.data.color,"unused-path":this.data.unused}},title(){const{haveAdd:e}=this.data;return`${this.$t("add task")} ${(e==null?void 0:e.length)===2?`${this.$t(e[1])} ${e[0]}`:""}`.trim()}},setup(e){return{path:t.computed(()=>re.getSmoothStepPath(e))}},inheritAttrs:!1},Hc=["id","d","marker-end"];function zc(e,n,o,l,r,i){const a=t.resolveComponent("AddTaskButton"),s=t.resolveComponent("tooltip"),c=t.resolveComponent("EdgeLabelRenderer");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("path",{id:o.id,class:t.normalizeClass(i.classes),style:t.normalizeStyle(o.data.haveDashArray?{strokeDasharray:"2"}:{}),d:l.path[0],"marker-end":o.markerEnd},null,14,Hc),t.createVNode(c,{style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${l.path[1]}px,${l.path[2]}px)`})},[t.createVNode(s,{title:i.title},{default:t.withCtx(()=>[o.data.haveAdd?(t.openBlock(),t.createBlock(a,{key:0,"add-task":!0,onClick:n[0]||(n[0]=d=>e.$emit(i.EVENTS.ADD_TASK,o.data.haveAdd)),class:t.normalizeClass({"text-danger":o.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})],64)}const Gc=B(Uc,[["render",zc],["__scopeId","data-v-a3e1d999"]]),Wc={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},jc=["aria-hidden","aria-label"],Kc=["fill","width","height"],Yc={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"},qc={key:0};function Xc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Yc,[o.title?(t.openBlock(),t.createElementBlock("title",qc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Kc))],16,jc)}const gl=B(Wc,[["render",Xc]]),Zc={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jc=["aria-hidden","aria-label"],Qc=["fill","width","height"],eu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},tu={key:0};function nu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",eu,[o.title?(t.openBlock(),t.createElementBlock("title",tu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qc))],16,Jc)}const xt=B(Zc,[["render",nu]]),Ft=Symbol("execution-injection-key"),hl=Symbol("subflows-executions-injection-key"),El=Symbol("playground-enabled-injection-key"),ou={class:"icon rounded"},lu={class:"node-content"},ru={class:"d-flex node-title"},iu={class:"text-truncate task-title"},au={key:0,class:"d-flex"},su={class:"text-white top-button-div"},cu={components:{ArrowExpand:xt,InformationOutline:gl,OpenInNew:Rn,Tooltip:X},emits:[y.EVENTS.EXPAND,y.EVENTS.OPEN_LINK,y.EVENTS.SHOW_LOGS,y.EVENTS.MOUSE_OVER,y.EVENTS.MOUSE_LEAVE,y.EVENTS.ADD_ERROR,y.EVENTS.EDIT,y.EVENTS.DELETE,y.EVENTS.ADD_TASK,y.EVENTS.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},title:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(y.EVENTS.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(y.EVENTS.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},inject:{execution:{from:Ft}},computed:{Utils(){return y.Utils},borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return y.EVENTS},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return y.Utils.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e,n,o,l;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((l=(o=(n=this.data.parent)==null?void 0:n.taskNode)==null?void 0:o.task)==null?void 0:l.disabled),[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){var e;if((e=this.data.node.type)!=null&&e.endsWith("SubflowGraphTask")){const n=this.data.node.task.subflowId??this.data.node.task;return n.namespace+" "+n.flowId}return this.trimmedId}}},uu=Object.assign(cu,{__name:"BasicNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([n.classes,"node-wrapper rounded-3 border"]),onMouseover:o[3]||(o[3]=(...l)=>n.mouseover&&n.mouseover(...l)),onMouseleave:o[4]||(o[4]=(...l)=>n.mouseleave&&n.mouseleave(...l))},[e.state?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["status-div",[`bg-${n.stateColor}`]])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",ou,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.iconComponent||Pn),{cls:n.cls,class:t.normalizeClass([n.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",lu,[t.createElementVNode("div",ru,[t.createElementVNode("div",iu,[t.createVNode(X,{title:n.hoverTooltip},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title??n.trimmedId),1)]),_:1},8,["title"])]),n.description?(t.openBlock(),t.createElementBlock("span",au,[t.createVNode(X,{title:n.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(gl,{onClick:o[0]||(o[0]=l=>n.$emit(t.unref(y.EVENTS).SHOW_DESCRIPTION,{id:n.trimmedId,description:n.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(n.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",su,[t.renderSlot(n.$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:o[1]||(o[1]=l=>n.$emit(t.unref(y.EVENTS).OPEN_LINK,{link:e.data.link}))},[t.createVNode(X,{title:n.$t("open")},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),n.expandable?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:o[2]||(o[2]=l=>n.$emit(t.unref(y.EVENTS).EXPAND))},[t.createVNode(X,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(xt,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])],34))}}),kl=B(uu,[["__scopeId","data-v-ee0adf33"]]),du=["innerHTML"],fu=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(C,V)=>{V[0].date!==C[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const r=t.computed(()=>{var C;return((C=n.histories)==null?void 0:C.length)&&new Date(n.histories[0].date.toString()).getTime()}),i=t.computed(()=>n.histories[n.histories.length-1]),a=t.computed(()=>n.histories.filter(C=>C.date.isValid()&&C.date&&C.state));function s(){l.value||(l.value=setInterval(()=>{E(),n.histories&&!ae.isRunning(i.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function d(){return m()-r.value}function m(){return!n.histories||ae.isRunning(i.value.state)?+new Date:new Date(i.value.date.toString()).getTime()}function E(){o.value=a.value.length===0?" ":y.Utils.humanDuration(d()/1e3)}function h(C){return"ks-duration-tt-square-"+C.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(C,V)=>(t.openBlock(),t.createBlock(X,{key:i.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(L,O)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+O,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",h(L.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(L.state)+": ",1),t.createTextVNode(t.toDisplayString(t.unref(y.Utils).dateFilter(L.date.toString(),"iso"))+" ",1),V[0]||(V[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,du)]),_:1}))}}),mu={class:"btn-group content rounded-1 content-children text-truncate"},pu={key:0,class:"taskRunCount"},gu={key:1},hu={key:2},Eu=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const n=e,o=t.computed(()=>{var a;return(a=n.execution)!=null&&a.taskRunList?n.execution.taskRunList:[]}),l=t.computed(()=>o.value.filter(a=>a.taskId===y.Utils.afterLastDot(n.uid??""))),r=t.computed(()=>{if(!l.value)return null;if(l.value.length===1)return l.value[0].state.current;const a=l.value.map(d=>d.state.current),s=[ae.FAILED,ae.KILLED,ae.WARNING,ae.KILLING,ae.RUNNING,ae.SUCCESS,ae.RESTARTED,ae.CREATED];return a.map(d=>{const m=s.indexOf(d[1]);return s[m]=void 0,[m,d]}).sort().map(d=>d[1])[0]}),i=t.computed(()=>{if(!l.value)return;const a=Math.max(...l.value.filter(c=>c.state.histories&&c.state.histories.length>0).map(c=>new Date(c.state.histories[c.state.histories.length-1].date).getTime())),s=Math.max(...l.value.map(c=>nn.duration(c.state.duration).asMilliseconds()/1e3,0));return[{date:nn(a).subtract(s,"second"),state:"CREATED"},{date:nn(a),state:r.value}]});return(a,s)=>(t.openBlock(),t.createElementBlock("div",mu,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",pu,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",gu," | ")):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",hu,[t.createVNode(fu,{histories:i.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),_l=B(Eu,[["__scopeId","data-v-a204e986"]]),ku={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_u=["aria-hidden","aria-label"],yu=["fill","width","height"],Cu={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"},Nu={key:0};function vu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Nu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,yu))],16,_u)}const Ut=B(ku,[["render",vu]]),Su={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},bu=["aria-hidden","aria-label"],Lu=["fill","width","height"],Tu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},wu={key:0};function Au(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Tu,[o.title?(t.openBlock(),t.createElementBlock("title",wu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Lu))],16,bu)}const Ht=B(Su,[["render",Au]]),Iu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vu=["aria-hidden","aria-label"],Ou=["fill","width","height"],Du={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"},Bu={key:0};function Pu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Bu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ou))],16,Vu)}const yl=B(Iu,[["render",Pu]]),Ru={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$u=["aria-hidden","aria-label"],Mu=["fill","width","height"],xu={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Fu={key:0};function Uu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",xu,[o.title?(t.openBlock(),t.createElementBlock("title",Fu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Mu))],16,$u)}const Cl=B(Ru,[["render",Uu]]),Hu={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zu=["aria-hidden","aria-label"],Gu=["fill","width","height"],Wu={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},ju={key:0};function Ku(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",ju,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gu))],16,zu)}const Yu=B(Hu,[["render",Ku]]),qu={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xu=["aria-hidden","aria-label"],Zu=["fill","width","height"],Ju={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"},Qu={key:0};function ed(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Qu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zu))],16,Xu)}const Nl=B(qu,[["render",ed]]),td={name:"Task",components:{Pencil:Ut,Delete:Ht,ExecutionInformations:_l,Handle:re.Handle,TextBoxSearch:yl,AlertOutline:Cl,Tooltip:X,SendLock:Nl},inheritAttrs:!1,inject:{execution:{from:Ft},subflowsExecutions:{from:hl},playgroundEnabled:{from:El}},computed:{SECTIONS(){return y.SECTIONS},EVENTS(){return y.EVENTS},color(){return this.data.color??"primary"},taskId(){return y.Utils.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var n,o;const e=this.data.executionId;if(e)return e===((n=this.execution)==null?void 0:n.id)?this.execution:(o=Object.values(this.subflowsExecutions).filter(l=>l.id===this.data.executionId))==null?void 0:o[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===y.Utils.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(l=>l.state.current),n=[ae.FAILED,ae.KILLED,ae.WARNING,ae.KILLING,ae.RUNNING,ae.SUCCESS,ae.RESTARTED,ae.CREATED];return e.map(l=>{const r=n.indexOf(l[1]);return n[r]=void 0,[r,l]}).sort().map(l=>l[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,n,o,l,r;if((e=this.data.node.type)!=null&&e.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const i=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:i.namespace,id:i.flowId,executionId:(r=(l=(o=(n=this.taskExecution)==null?void 0:n.taskRunList.filter(a=>{var s;return a.taskId===this.data.node.task.id&&((s=a.outputs)==null?void 0:s.executionId)}))==null?void 0:o[0])==null?void 0:l.outputs)==null?void 0:r.executionId}}}return this.data}},emits:[y.EVENTS.EXPAND,y.EVENTS.OPEN_LINK,y.EVENTS.SHOW_LOGS,y.EVENTS.MOUSE_OVER,y.EVENTS.MOUSE_LEAVE,y.EVENTS.ADD_ERROR,y.EVENTS.EDIT,y.EVENTS.DELETE,y.EVENTS.ADD_TASK,y.EVENTS.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,n){this.$emit(e,n)}}},nd=Object.assign(td,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(kl,{id:e.id,data:n.dataWithLink,state:n.state,class:t.normalizeClass(n.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:o[6]||(o[6]=l=>n.forwardEvent(t.unref(y.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[7]||(o[7]=l=>n.forwardEvent(t.unref(y.EVENTS).EXPAND,n.expandData)),onOpenLink:o[8]||(o[8]=l=>n.forwardEvent(t.unref(y.EVENTS).OPEN_LINK,l)),onMouseover:o[9]||(o[9]=l=>n.forwardEvent(t.unref(y.EVENTS).MOUSE_OVER,l)),onMouseleave:o[10]||(o[10]=l=>n.forwardEvent(t.unref(y.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>[n.taskExecution?(t.openBlock(),t.createBlock(_l,{key:0,execution:n.taskExecution,task:e.data.node.task,color:n.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):t.createCommentVNode("",!0),n.playgroundEnabled&&e.data.node.task?(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"playground-button",onClick:o[0]||(o[0]=l=>n.$emit(t.unref(y.EVENTS).RUN_TASK,{task:e.data.node.task}))},[t.createVNode(X,{style:{display:"flex"},title:n.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(Yu,{class:"button-play-icon",alt:"Play task"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:o[1]||(o[1]=l=>n.$emit(t.unref(y.EVENTS).SHOW_CONDITION,{id:n.taskId,task:e.data.node.task,section:t.unref(y.SECTIONS).TASKS}))},[t.createVNode(X,{title:n.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(Nl,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),n.taskExecution?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[2]||(o[2]=l=>n.$emit(t.unref(y.EVENTS).SHOW_LOGS,{id:n.taskId,execution:n.taskExecution,taskRuns:n.taskRuns}))},[t.createVNode(X,{title:n.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(yl,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!n.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[3]||(o[3]=l=>n.$emit(t.unref(y.EVENTS).ADD_ERROR,{task:e.data.node.task}))},[t.createVNode(X,{title:n.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(Cl,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!n.taskExecution&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[4]||(o[4]=l=>n.$emit(t.unref(y.EVENTS).EDIT,{task:e.data.node.task,section:t.unref(y.SECTIONS).TASKS}))},[t.createVNode(X,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Ut,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!n.taskExecution&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[5]||(o[5]=l=>n.$emit(t.unref(y.EVENTS).DELETE,{id:n.taskId,section:t.unref(y.SECTIONS).TASKS}))},[t.createVNode(X,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Ht,{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(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),od=B(nd,[["__scopeId","data-v-8b3dd8bd"]]),ld={name:"Task",inheritAttrs:!1,inject:{execution:{from:Ft}},computed:{SECTIONS(){return y.SECTIONS},EVENTS(){return y.EVENTS},color(){return this.data.color??"primary"},formattedData(){var e,n,o,l;return{...this.data,unused:((n=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:n.disabled)||((l=(o=this.data.node)==null?void 0:o.trigger)==null?void 0:l.disabled)}},triggerId(){return y.Utils.afterLastDot(this.id)}},emits:[y.EVENTS.DELETE,y.EVENTS.EDIT,y.EVENTS.SHOW_DESCRIPTION],components:{Delete:Ht,Pencil:Ut,Handle:re.Handle,Tooltip:X},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)}}},rd=Object.assign(ld,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(kl,{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(y.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(y.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(y.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(y.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Ut,{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(y.EVENTS).DELETE,{id:n.triggerId,section:t.unref(y.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Ht,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),id={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ad=["aria-hidden","aria-label"],sd=["fill","width","height"],cd={d:"M11 15H6L13 1V9H18L11 23V15Z"},ud={key:0};function dd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",cd,[o.title?(t.openBlock(),t.createElementBlock("title",ud,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sd))],16,ad)}const fd=B(id,[["render",dd]]),md={class:"collapsed-cluster-node d-flex"},pd={class:"node-text"},gd={class:"text-white top-button-div"},hd={components:{Tooltip:X,Handle:re.Handle,ArrowExpand:xt,LightningBolt:fd},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 y.EVENTS},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Ed=Object.assign(hd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",md,[t.createElementVNode("span",pd,[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(y.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",gd,[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(y.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(X,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(xt,{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(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),kd=B(Ed,[["__scopeId","data-v-89413b39"]]),_d={name:"SplitCellsVerticalIcon",emits:["click"]},yd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("svg",yd,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 Nd=B(_d,[["render",Cd],["__scopeId","data-v-084c51e6"]]),vd={name:"SplitCellsHorizontalIcon",emits:["click"]},Sd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("svg",Sd,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 Ld=B(vd,[["render",bd],["__scopeId","data-v-c77c1469"]]),Td={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wd=["aria-hidden","aria-label"],Ad=["fill","width","height"],Id={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Vd={key:0};function Od(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Id,[o.title?(t.openBlock(),t.createElementBlock("title",Vd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ad))],16,wd)}const Dd=B(Td,[["render",Od]]);function Bd(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"),r=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(r),n&&(l.href=n),r.href=e,r.href}const Pd=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function De(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}function At(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function Rd(e){const n=At(e,"border-left-width"),o=At(e,"border-right-width");return e.clientWidth+n+o}function $d(e){const n=At(e,"border-top-width"),o=At(e,"border-bottom-width");return e.clientHeight+n+o}function vl(e,n={}){const o=n.width||Rd(e),l=n.height||$d(e);return{width:o,height:l}}function Md(){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 ye=16384;function xd(e){(e.width>ye||e.height>ye)&&(e.width>ye&&e.height>ye?e.width>e.height?(e.height*=ye/e.width,e.width=ye):(e.width*=ye/e.height,e.height=ye):e.width>ye?(e.height*=ye/e.width,e.width=ye):(e.width*=ye/e.height,e.height=ye))}function It(e){return new Promise((n,o)=>{const l=new Image;l.decode=()=>n(l),l.onload=()=>n(l),l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function Fd(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function Ud(e,n,o){const l="http://www.w3.org/2000/svg",r=document.createElementNS(l,"svg"),i=document.createElementNS(l,"foreignObject");return r.setAttribute("width",`${n}`),r.setAttribute("height",`${o}`),r.setAttribute("viewBox",`0 0 ${n} ${o}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),r.appendChild(i),i.appendChild(e),Fd(r)}const ke=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||ke(o,n)};function Hd(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function zd(e){return De(e).map(n=>{const o=e.getPropertyValue(n),l=e.getPropertyPriority(n);return`${n}: ${o}${l?" !important":""};`}).join(" ")}function Gd(e,n,o){const l=`.${e}:${n}`,r=o.cssText?Hd(o):zd(o);return document.createTextNode(`${l}{${r}}`)}function bo(e,n,o){const l=window.getComputedStyle(e,o),r=l.getPropertyValue("content");if(r===""||r==="none")return;const i=Pd();try{n.className=`${n.className} ${i}`}catch{return}const a=document.createElement("style");a.appendChild(Gd(i,o,l)),n.appendChild(a)}function Wd(e,n){bo(e,n,":before"),bo(e,n,":after")}const Lo="application/font-woff",To="image/jpeg",jd={woff:Lo,woff2:Lo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:To,jpeg:To,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Kd(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function $n(e){const n=Kd(e).toLowerCase();return jd[n]||""}function Yd(e){return e.split(/,/)[1]}function Nn(e){return e.search(/^(data:)/)!==-1}function qd(e,n){return`data:${n};base64,${e}`}async function Sl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const r=await l.blob();return new Promise((i,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{i(o({res:l,result:s.result}))}catch(c){a(c)}},s.readAsDataURL(r)})}const an={};function Xd(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 Mn(e,n,o){const l=Xd(e,n,o.includeQueryParams);if(an[l]!=null)return an[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const i=await Sl(e,o.fetchRequestInit,({res:a,result:s})=>(n||(n=a.headers.get("Content-Type")||""),Yd(s)));r=qd(i,n)}catch(i){r=o.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return an[l]=r,r}async function Zd(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):It(n)}async function Jd(e,n){if(e.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,a==null||a.drawImage(e,0,0,i.width,i.height);const s=i.toDataURL();return It(s)}const o=e.poster,l=$n(o),r=await Mn(o,l,n);return It(r)}async function Qd(e){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await zt(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function ef(e,n){return ke(e,HTMLCanvasElement)?Zd(e):ke(e,HTMLVideoElement)?Jd(e,n):ke(e,HTMLIFrameElement)?Qd(e):e.cloneNode(!1)}const tf=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function nf(e,n,o){var l,r;let i=[];return tf(e)&&e.assignedNodes?i=De(e.assignedNodes()):ke(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?i=De(e.contentDocument.body.childNodes):i=De(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),i.length===0||ke(e,HTMLVideoElement)||await i.reduce((a,s)=>a.then(()=>zt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function of(e,n){const o=n.style;if(!o)return;const l=window.getComputedStyle(e);l.cssText?(o.cssText=l.cssText,o.transformOrigin=l.transformOrigin):De(l).forEach(r=>{let i=l.getPropertyValue(r);r==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),ke(e,HTMLIFrameElement)&&r==="display"&&i==="inline"&&(i="block"),r==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),o.setProperty(r,i,l.getPropertyPriority(r))})}function lf(e,n){ke(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),ke(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function rf(e,n){if(ke(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(r=>e.value===r.getAttribute("value"));l&&l.setAttribute("selected","")}}function af(e,n){return ke(n,Element)&&(of(e,n),Wd(e,n),lf(e,n),rf(e,n)),n}async function sf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let i=0;i<o.length;i++){const s=o[i].getAttribute("xlink:href");if(s){const c=e.querySelector(s),d=document.querySelector(s);!c&&d&&!l[s]&&(l[s]=await zt(d,n,!0))}}const r=Object.values(l);if(r.length){const i="http://www.w3.org/1999/xhtml",a=document.createElementNS(i,"svg");a.setAttribute("xmlns",i),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(i,"defs");a.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);e.appendChild(a)}return e}async function zt(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>ef(l,n)).then(l=>nf(e,l,n)).then(l=>af(e,l)).then(l=>sf(l,n))}const bl=/url\((['"]?)([^'"]+?)\1\)/g,cf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,uf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function df(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function ff(e){const n=[];return e.replace(bl,(o,l,r)=>(n.push(r),o)),n.filter(o=>!Nn(o))}async function mf(e,n,o,l,r){try{const i=o?Bd(n,o):n,a=$n(n);let s;return r||(s=await Mn(i,a,l)),e.replace(df(n),`$1${s}$3`)}catch{}return e}function pf(e,{preferredFontFormat:n}){return n?e.replace(uf,o=>{for(;;){const[l,,r]=cf.exec(o)||[];if(!r)return"";if(r===n)return`src: ${l};`}}):e}function Ll(e){return e.search(bl)!==-1}async function Tl(e,n,o){if(!Ll(e))return e;const l=pf(e,o);return ff(l).reduce((i,a)=>i.then(s=>mf(s,a,n,o)),Promise.resolve(l))}async function yt(e,n,o){var l;const r=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(r){const i=await Tl(r,null,o);return n.style.setProperty(e,i,n.style.getPropertyPriority(e)),!0}return!1}async function gf(e,n){await yt("background",e,n)||await yt("background-image",e,n),await yt("mask",e,n)||await yt("mask-image",e,n)}async function hf(e,n){const o=ke(e,HTMLImageElement);if(!(o&&!Nn(e.src))&&!(ke(e,SVGImageElement)&&!Nn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,r=await Mn(l,$n(l),n);await new Promise((i,a)=>{e.onload=i,e.onerror=a;const s=e;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Ef(e,n){const l=De(e.childNodes).map(r=>wl(r,n));await Promise.all(l).then(()=>e)}async function wl(e,n){ke(e,Element)&&(await gf(e,n),await hf(e,n),await Ef(e,n))}function kf(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(r=>{o[r]=l[r]}),e}const wo={};async function Ao(e){let n=wo[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},wo[e]=n,n}async function Io(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,i=(o.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Sl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(a,`url(${c})`),[a,c]))});return Promise.all(i).then(()=>o)}function Vo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let c=i.exec(l);if(c===null){if(c=s.exec(l),c===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;n.push(c[0])}return n}async function _f(e,n){const o=[],l=[];return e.forEach(r=>{if("cssRules"in r)try{De(r.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let s=a+1;const c=i.href,d=Ao(c).then(m=>Io(m,n)).then(m=>Vo(m).forEach(E=>{try{r.insertRule(E,E.startsWith("@import")?s+=1:r.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:E,error:h})}})).catch(m=>{console.error("Error loading remote css",m.toString())});l.push(d)}})}catch(i){const a=e.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&l.push(Ao(r.href).then(s=>Io(s,n)).then(s=>Vo(s).forEach(c=>{a.insertRule(c,r.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(l).then(()=>(e.forEach(r=>{if("cssRules"in r)try{De(r.cssRules||[]).forEach(i=>{o.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${r.href}`,i)}}),o))}function yf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Ll(n.style.getPropertyValue("src")))}async function Cf(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=De(e.ownerDocument.styleSheets),l=await _f(o,n);return yf(l)}async function Nf(e,n){const o=await Cf(e,n);return(await Promise.all(o.map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return Tl(r.cssText,i,n)}))).join(`
|
|
25
|
-
`)}async function vf(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Nf(e,n);if(o){const l=document.createElement("style"),r=document.createTextNode(o);l.appendChild(r),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function Sf(e,n={}){const{width:o,height:l}=vl(e,n),r=await zt(e,n,!0);return await vf(r,n),await wl(r,n),kf(r,n),await Ud(r,o,l)}async function Al(e,n={}){const{width:o,height:l}=vl(e,n),r=await Sf(e,n),i=await It(r),a=document.createElement("canvas"),s=a.getContext("2d"),c=n.pixelRatio||Md(),d=n.canvasWidth||o,m=n.canvasHeight||l;return a.width=d*c,a.height=m*c,n.skipAutoScale||xd(a),a.style.width=`${d}`,a.style.height=`${m}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function bf(e,n={}){return(await Al(e,n)).toDataURL()}async function Lf(e,n={}){return(await Al(e,n)).toDataURL("image/jpeg",n.quality||1)}function Tf(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let d;const m=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":d=await r(s,c);break;case"png":d=await i(s,c);break;default:d=await i(s,c);break}return c.shouldDownload&&m!==""&&a(m),d}function r(s,c={quality:.95}){return o.value=null,Lf(s,c).then(d=>(e.value=d,n.value="jpeg",d)).catch(d=>{throw d.value=d,new Error(d)})}function i(s,c={quality:.95}){return o.value=null,bf(s,c).then(d=>(e.value=d,n.value="png",d)).catch(d=>{throw d.value=d,new Error(d)})}function a(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:a,dataUrl:e,error:o}}const wf={key:1,class:"exporting"},Af=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}},emits:[y.EVENTS.EDIT,y.EVENTS.DELETE,y.EVENTS.RUN_TASK,y.EVENTS.OPEN_LINK,y.EVENTS.SHOW_LOGS,y.EVENTS.SHOW_DESCRIPTION,y.EVENTS.RUN_TASK,"on-add-flowable-error",y.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",y.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),r=t.ref(),{getNodes:i,onNodeDrag:a,onNodeDragStart:s,onNodeDragStop:c,fitView:d,setElements:m,vueFlowRef:E}=re.useVueFlow(o.id),h=t.ref({}),C=t.ref([]),V=t.ref(new Set),L=t.ref([]),{capture:O}=Tf();t.provide(Ft,t.computed(()=>o.execution)),t.provide(hl,t.computed(()=>o.subflowsExecutions)),t.provide(El,t.computed(()=>o.playgroundEnabled));const g=n;t.onMounted(()=>{k()}),t.watch(()=>o.flowGraph,()=>{k()}),t.watch(()=>o.isHorizontal,()=>{k()});const k=()=>{y.cleanGraph(o.id),t.nextTick(()=>{g("loading",!0);const P=V.value;V.value=new Set,C.value=[],h.value={},P.forEach(z=>x(y.CLUSTER_PREFIX+z,!1,!1));const A=y.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,C.value,o.isHorizontal,h.value,V.value,L.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);A&&(m(A),d(),g("loading",!1))})},S=P=>{l.value||y.linkedElements(o.id,P.uid).forEach(A=>{(A==null?void 0:A.type)==="task"&&(A.style={...A.style,outline:"0.5px solid "+Ne("--bs-gray-900")},A.class="rounded-3")})},p=()=>{b()},b=()=>{i.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{l.value=!0,b(),P.node.style={...P.node.style,zIndex:1976},r.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&N(P.intersections,P.node)===null){const A=P.node,z=P.intersections.find(R=>R.type==="task");if(z)try{o.source&&g("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:y.Utils.afterLastDot(A.id)??"",key2:y.Utils.afterLastDot(z.id)??""}),swappedTasks:[A.id,z.id]})}catch(R){g("message",{variant:"error",title:"cannot swap tasks",message:`${R.message}, ${R.messageOptions}`}),A.position=r.value}else A.position=r.value}else P.node.position=r.value;b(),P.node.style={...P.node.style,zIndex:5},r.value=null});const I=t.computed(()=>{var P;return(P=o.flowGraph)!=null&&P.clusters?o.flowGraph.clusters.filter(A=>A.cluster.type.endsWith("SubflowGraphCluster")).map(A=>A.cluster.taskNode.uid+"."):[]});a(P=>{b(),i.value.filter(A=>A.id!==P.node.id).forEach(A=>{var z;A.type==="trigger"||A.type==="task"&&(A.id.startsWith(P.node.id+".")||P.node.id.startsWith(A.id+"."))||(z=I==null?void 0:I.value)!=null&&z.some(R=>A.id.startsWith(R))?A.style={...A.style,opacity:"0.5"}:A.style={...A.style,opacity:"1"}}),P.intersections&&!N(P.intersections,P.node)&&P.intersections.filter(A=>A.type==="task").length===1&&(P.intersections.forEach(A=>{A.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+Ne("--bs-primary")},A.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+Ne("--bs-primary")},P.node.class="rounded-3")});const N=(P,A)=>{const z=P.filter(R=>R.type==="task").map(R=>y.Utils.afterLastDot(R.id));if(z.length>1)return"toomuchtaskerror";try{if(z.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:y.Utils.afterLastDot(z[0])??"",key2:y.Utils.afterLastDot(A.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(R=>R.type==="trigger").length>0?"triggererror":null},x=(P,A,z=!1)=>{const R=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(y.CLUSTER_PREFIX,"");V.value.add(Ie),C.value=C.value.concat(R.nodes.filter(me=>me!==Ie||z)),C.value=C.value.concat([R.cluster.uid]),h.value={...h.value,[R.cluster.uid]:Ie,[R.start]:Ie,[R.end]:Ie};for(let me of R.nodes)o.flowGraph.clusters.map(Ue=>Ue.cluster.uid).includes(me)&&x(me,!1,!0);A&&k()},H=P=>{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(P.type)&&!o.expandedSubflows.includes(P.id)){g("expand-subflow",[...o.expandedSubflows,P.id]);return}h.value={},C.value=[],L.value=[],V.value.delete(P.id),V.value.forEach(z=>x(z,!1,!1)),k()},J=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ce=t.ref(!0),F=t.ref(!1),he=()=>F.value=!F.value;function Ae(P){if(!E.value){console.warn("Flow not found");return}ce.value=!1,O(E.value,{type:P,shouldDownload:!0}).then(()=>ce.value=!0).finally(()=>F.value=!1)}return(P,A)=>(t.openBlock(),t.createBlock(t.unref(re.VueFlow),{id:e.id,"default-marker-color":t.unref(Ne)("--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(z=>[t.createVNode(Cc,t.mergeProps(z,{onCollapse:A[0]||(A[0]=R=>x(R,!0))}),null,16)]),"node-dot":t.withCtx(z=>[t.createVNode(Ic,t.normalizeProps(t.guardReactiveProps(z)),null,16)]),"node-task":t.withCtx(z=>[t.createVNode(od,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,onEdit:A[1]||(A[1]=R=>g(t.unref(y.EVENTS).EDIT,R)),onDelete:A[2]||(A[2]=R=>g(t.unref(y.EVENTS).DELETE,R)),onRunTask:A[3]||(A[3]=R=>g(t.unref(y.EVENTS).RUN_TASK,R)),onExpand:A[4]||(A[4]=R=>H(R)),onOpenLink:A[5]||(A[5]=R=>g(t.unref(y.EVENTS).OPEN_LINK,R)),onShowLogs:A[6]||(A[6]=R=>g(t.unref(y.EVENTS).SHOW_LOGS,R)),onShowDescription:A[7]||(A[7]=R=>g(t.unref(y.EVENTS).SHOW_DESCRIPTION,R)),onShowCondition:A[8]||(A[8]=R=>g(t.unref(y.EVENTS).SHOW_CONDITION,R)),onMouseover:A[9]||(A[9]=R=>S(R)),onMouseleave:A[10]||(A[10]=R=>p()),onAddError:A[11]||(A[11]=R=>g("on-add-flowable-error",R)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":t.withCtx(z=>[t.createVNode(rd,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:A[12]||(A[12]=R=>g(t.unref(y.EVENTS).DELETE,R)),onEdit:A[13]||(A[13]=R=>g(t.unref(y.EVENTS).EDIT,R)),onShowDescription:A[14]||(A[14]=R=>g(t.unref(y.EVENTS).SHOW_DESCRIPTION,R))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(z=>[t.createVNode(kd,t.mergeProps(z,{onExpand:A[15]||(A[15]=R=>H(R))}),null,16)]),"edge-edge":t.withCtx(z=>[t.createVNode(Gc,t.mergeProps(z,{"yaml-source":e.source,onAddTask:A[16]||(A[16]=R=>g(t.unref(y.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(uc),{"pattern-color":J?t.unref(Ne)("--bs-grey-500"):t.unref(Ne)("--bs-grey-300")},null,8,["pattern-color"]),ce.value?(t.openBlock(),t.createBlock(t.unref(tn.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(tn.ControlButton),{key:0,onClick:A[17]||(A[17]=z=>g("toggle-orientation",z))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?Ld:Nd)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(tn.ControlButton),{onClick:he},{default:t.withCtx(()=>[t.createVNode(Dd)]),_:1}),F.value?(t.openBlock(),t.createElementBlock("ul",wf,[t.createElementVNode("li",{onClick:A[18]||(A[18]=z=>Ae("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:A[19]||(A[19]=z=>Ae("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),If=B(Af,[["__scopeId","data-v-e2e42379"]]),Vf={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Of=["aria-hidden","aria-label"],Df=["fill","width","height"],Bf={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Pf={key:0};function Rf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Bf,[o.title?(t.openBlock(),t.createElementBlock("title",Pf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Df))],16,Of)}const $f=B(Vf,[["render",Rf]]),Mf={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xf=["aria-hidden","aria-label"],Ff=["fill","width","height"],Uf={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"},Hf={key:0};function zf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Uf,[o.title?(t.openBlock(),t.createElementBlock("title",Hf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ff))],16,xf)}const Gf=B(Mf,[["render",zf]]),Wf={key:0,class:"language"},jf=["innerHTML"],Kf=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(Gf),Check:t.shallowRef($f)},o=e,l=t.ref(!1),r=t.ref(),i=t.shallowRef(n.ContentCopy.value),a=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function d(){l.value=!0,r.value&&t.nextTick(()=>{a.value&&s.value&&ar.createPopper(a.value,s.value,{placement:"left"})})}function m(){clearTimeout(r.value),navigator.clipboard.writeText(o.code.trimEnd()),i.value=n.Check.value,r.value=setTimeout(()=>{i.value=n.ContentCopy.value,r.value=void 0},2e3)}return(E,h)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:d,onMouseleave:h[0]||(h[0]=C=>l.value=!1)},[E.language&&!l.value?(t.openBlock(),t.createElementBlock("div",Wf,t.toDisplayString(E.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:a,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value),{onClick:m}))],512),r.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[t.createTextVNode(" Copied! "),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,jf)],32))}}),Oo=B(Kf,[["__scopeId","data-v-a899f6a1"]]),Yf={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qf=["aria-hidden","aria-label"],Xf=["fill","width","height"],Zf={d:"M10,17L15,12L10,7V17Z"},Jf={key:0};function Qf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Zf,[o.title?(t.openBlock(),t.createElementBlock("title",Jf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xf))],16,qf)}const em=B(Yf,[["render",Qf]]),tm={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nm=["aria-hidden","aria-label"],om=["fill","width","height"],lm={d:"M7,10L12,15L17,10H7Z"},rm={key:0};function im(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",lm,[o.title?(t.openBlock(),t.createElementBlock("title",rm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,om))],16,nm)}const am=B(tm,[["render",im]]),sm=["id","open"],cm={class:"d-flex gap-2 align-items-center"},um={key:0,class:"d-flex flex-grow-1"},dm=["id"],fm=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}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),r=bt.useRoute(),i=bt.useRouter(),a=n,s=t.computed(()=>`#${o.href}-body`),c=m=>{m.preventDefault(),l.value=!l.value,d.value=!l.value,l.value||a("expand"),i.replace({hash:l.value?"":s.value})},d=t.ref(!1);return t.watch(()=>o.initiallyExpanded,m=>{m!==void 0&&(d.value=m,l.value=!m)},{immediate:!0}),t.watch(()=>r.hash,m=>{m===s.value&&l.value&&(d.value=!0,l.value=!1)},{immediate:!0}),(m,E)=>(t.openBlock(),t.createElementBlock("details",{id:m.href,open:d.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:c},[t.createElementVNode("span",cm,[m.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?em:am),{key:0,class:"arrow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(m.clickableText)+" ",1),t.renderSlot(m.$slots,"additionalButtonText",{},void 0,!0)]),m.$slots.buttonRight?(t.openBlock(),t.createElementBlock("span",um,[t.renderSlot(m.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):t.createCommentVNode("",!0)],2),m.$slots.content?(t.openBlock(),t.createElementBlock("div",{key:0,id:m.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(m.$slots,"content",{},void 0,!0)])],8,dm)):t.createCommentVNode("",!0)],8,sm))}}),Vt=B(fm,[["__scopeId","data-v-309ae3b9"]]);function Ct(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function Il(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function mm(e){var n,o;if(e.enum)return e.enum;if((n=e.items)!=null&&n.enum)return e.items.enum;if((o=e.additionalProperties)!=null&&o.enum)return e.additionalProperties.enum}function pm(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Vl(e){const n={},o=Ct(e);return o?n.types=[o]:e.anyOf?n.types=e.anyOf.map(Ct).filter(l=>l!==void 0).filter(y.Utils.distinctFilter):n.types=["object"],e.additionalProperties?n.subType=Ct(e.additionalProperties):e.items&&(n.subType=Ct(e.items)),n}const gm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hm=["aria-hidden","aria-label"],Em=["fill","width","height"],km={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},_m={key:0};function ym(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",km,[o.title?(t.openBlock(),t.createElementBlock("title",_m,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Em))],16,hm)}const Cm=B(gm,[["render",ym]]),Nm={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vm=["aria-hidden","aria-label"],Sm=["fill","width","height"],bm={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"},Lm={key:0};function Tm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Lm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sm))],16,vm)}const Ol=B(Nm,[["render",Tm]]),wm={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Am=["aria-hidden","aria-label"],Im=["fill","width","height"],Vm={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"},Om={key:0};function Dm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Vm,[o.title?(t.openBlock(),t.createElementBlock("title",Om,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Im))],16,Am)}const Bm=B(wm,[["render",Dm]]),Pm={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],$m=["fill","width","height"],Mm={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},xm={key:0};function Fm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Mm,[o.title?(t.openBlock(),t.createElementBlock("title",xm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$m))],16,Rm)}const Dl=B(Pm,[["render",Fm]]),Um={class:"me-3"},Hm={class:"d-flex flex-column"},zm=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return Bm;case"info":return un;case"warning":return Dl;case"danger":return cn;default:return un}});return(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",Um,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",Hm,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),Gm=B(zm,[["__scopeId","data-v-f7fd8bc1"]]),Wm={class:"property-detail"},jm={key:0},Km=["href"],Ym={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},qm={class:"ref-type"},Xm={key:1,class:"type-box rounded fs-7 px-2 py-1"},Zm={key:1},Jm={class:"border rounded px-2 py-1"},Qm={key:2},ep={class:"border rounded px-2 py-1"},tp={key:3},np={class:"border rounded px-2 py-1"},op={key:4},lp={class:"border rounded px-2 py-1"},rp={key:5},ip={class:"border rounded px-2 py-1"},ap={key:6},sp={class:"border rounded px-2 py-1"},cp={key:7},up={class:"border rounded px-2 py-1"},dp={key:8},fp={class:"border rounded px-2 py-1"},mp={key:9},pp={class:"border rounded px-2 py-1"},gp={key:10},hp={class:"border rounded px-2 py-1"},Ep={key:11},kp={class:"border rounded px-2 py-1"},_p={key:12},yp={class:"border rounded px-2 py-1"},Cp={key:13},Np={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},vp={key:14},Sp={class:"property-description markdown"},bp={key:2},Lp=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Vl(n.property).subType),l=t.ref(mm(n.property)),r=i=>i.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(i,a)=>(t.openBlock(),t.createElementBlock("div",Wm,[o.value?(t.openBlock(),t.createElementBlock("div",jm,[a[1]||(a[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:a[0]||(a[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",Ym,[t.createElementVNode("span",qm,t.toDisplayString(t.unref(Il)(o.value)),1),t.createVNode(Ol)])],8,Km)):(t.openBlock(),t.createElementBlock("span",Xm,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),i.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",Zm,[a[2]||(a[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",Jm,t.toDisplayString(i.property.default),1)])):t.createCommentVNode("",!0),i.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",Qm,[a[3]||(a[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",ep,t.toDisplayString(i.property.pattern),1)])):t.createCommentVNode("",!0),i.property.unit!==void 0&&i.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",tp,[a[4]||(a[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",np,t.toDisplayString(i.property.unit),1)])):t.createCommentVNode("",!0),i.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",op,[a[5]||(a[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",lp,t.toDisplayString(i.property.minLength),1)])):t.createCommentVNode("",!0),i.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",rp,[a[6]||(a[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",ip,t.toDisplayString(i.property.maxLength),1)])):t.createCommentVNode("",!0),i.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",ap,[a[7]||(a[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",sp,t.toDisplayString(i.property.minItems),1)])):t.createCommentVNode("",!0),i.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",cp,[a[8]||(a[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",up,t.toDisplayString(i.property.maxItems),1)])):t.createCommentVNode("",!0),i.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",dp,[a[9]||(a[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",fp," >= "+t.toDisplayString(i.property.minimum),1)])):t.createCommentVNode("",!0),i.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",mp,[a[10]||(a[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",pp," > "+t.toDisplayString(i.property.minimum),1)])):t.createCommentVNode("",!0),i.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",gp,[a[11]||(a[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",hp," <= "+t.toDisplayString(i.property.maximum),1)])):t.createCommentVNode("",!0),i.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Ep,[a[12]||(a[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",kp," < "+t.toDisplayString(i.property.maximum),1)])):t.createCommentVNode("",!0),i.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",_p,[a[13]||(a[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",yp,t.toDisplayString(i.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Cp,[a[14]||(a[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",Np,[(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),i.property.title!==void 0||i.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",vp,[t.createElementVNode("div",Sp,[i.property.title!==void 0?t.renderSlot(i.$slots,"markdown",{key:0,content:r(i.property.title)},void 0,!0):t.createCommentVNode("",!0),i.property.description!==void 0?t.renderSlot(i.$slots,"markdown",{key:1,content:r(i.property.description)},void 0,!0):t.createCommentVNode("",!0),i.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",bp,[t.createVNode(Gm,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(i.$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)]))}}),Tp=B(Lp,[["__scopeId","data-v-79715a4e"]]),wp={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ap=["aria-hidden","aria-label"],Ip=["fill","width","height"],Vp={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Op={key:0};function Dp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Vp,[o.title?(t.openBlock(),t.createElementBlock("title",Op,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ip))],16,Ap)}const Bp=B(wp,[["render",Dp]]),Pp={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rp=["aria-hidden","aria-label"],$p=["fill","width","height"],Mp={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"},xp={key:0};function Fp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",xp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$p))],16,Rp)}const Up=B(Pp,[["render",Fp]]),Hp={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zp=["aria-hidden","aria-label"],Gp=["fill","width","height"],Wp={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"},jp={key:0};function Kp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Wp,[o.title?(t.openBlock(),t.createElementBlock("title",jp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gp))],16,zp)}const Yp=B(Hp,[["render",Kp]]),qp={class:"border overflow-hidden"},Xp={class:"d-flex flex-grow-1 align-items-center justify-content-between"},Zp={class:"d-flex gap-2"},Jp={class:"d-flex flex-wrap gap-2"},Qp=["href"],eg={class:"ref-type"},tg={key:1,class:"type-box rounded fs-7 px-2 py-1"},ng=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:()=>[]}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,r=t.ref(!1);t.watch(r,s=>{s&&l("expand")});const i=s=>{var c;return s.$dynamic===!0?!0:s.$dynamic===!1?!1:((c=s.anyOf)==null?void 0:c.some(d=>d.$dynamic===!0))??!1};function a(s){const c=[],d=[];for(const h in s)typeof s[h]=="object"&&(s[h]=pm(s[h]),s[h].$required?c.push(h):d.push(h));const m=[...c.sort(),...d.sort()],E={};return m.forEach(h=>{var C;(!s[h].$deprecated||(C=o.forceInclude)!=null&&C.includes(h))&&(E[h]=s[h])}),E}return(s,c)=>(t.openBlock(),t.createBlock(Vt,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=d=>l("expand")),"initially-expanded":s.initiallyExpanded||r.value},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",qp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(s.properties),(d,m)=>(t.openBlock(),t.createBlock(Vt,{class:"property",key:m,arrow:!1,"clickable-text":m,href:s.href+"_"+m,onExpand:c[1]||(c[1]=E=>r.value=!0)},{additionalButtonText:t.withCtx(()=>[d.$required?(t.openBlock(),t.createBlock(X,{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:E})=>[t.createElementVNode("span",Xp,[t.createElementVNode("span",Zp,[s.showDynamic&&!i(d)?(t.openBlock(),t.createBlock(X,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(Up,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),d.$beta?(t.openBlock(),t.createBlock(X,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(Yp,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),d.$deprecated?(t.openBlock(),t.createBlock(X,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Dl,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",Jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Vl)(d).types,h=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:h},[h.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:h,onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("span",eg,t.toDisplayString(t.unref(Il)(h)),1),t.createVNode(Ol)],8,Qp)):(t.openBlock(),t.createElementBlock("span",tg,t.toDisplayString(h),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E?Cm:Bp),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(Tp,{property:d},{markdown:t.withCtx(({content:E})=>[t.renderSlot(s.$slots,"markdown",{content:E},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),Nt=B(ng,[["__scopeId","data-v-0d36ff40"]]),og={class:"d-flex flex-column gap-6"},lg={key:0,class:"alert alert-info",role:"alert"},rg={key:1,class:"plugin-title markdown"},ig={key:2,class:"markdown"},ag={class:"d-flex flex-column gap-4"},sg={class:"d-flex flex-column gap-3"},cg={class:"markdown"},ug={key:0,class:"w-100 align-self-center"},dg={class:"markdown"},fg={class:"markdown"},mg={class:"markdown"},pg={class:"d-flex flex-column gap-7 ps-3"},gg={class:"markdown"},hg=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]}},async setup(e){let n,o;const l=e,r=t.ref(!1),i=t.ref(new Set),a=t.ref(0),s=async()=>{var I;const p=window.location.hash.slice(1);if(!p||!l.schema.definitions){i.value.clear();return}const b=p.includes("#")?(I=p.split("#").pop())==null?void 0:I.split(".").pop():p;if(b&&b in l.schema.definitions){r.value=!0,a.value+=1,i.value.clear(),i.value.add(b),await t.nextTick();let N=0;const x=30,H=()=>{const J=document.getElementById(b);J?J.scrollIntoView({behavior:"smooth",block:"start"}):N<x&&(N++,requestAnimationFrame(H))};requestAnimationFrame(H)}else i.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([p,b],[I,N])=>{(p!==I||b!==N)&&l.schema.definitions&&s()},{immediate:!0});const c=p=>{var b;return p!=null&&p.full?p.code:`id: "${(b=l.pluginType.split(".").reverse()[0])==null?void 0:b.toLowerCase()}"
|
|
24
|
+
</svg>`));return(i,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.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(Pn,{"custom-icon":{icon:r.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",Js,[t.createElementVNode("div",Qs,[t.createVNode(X,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",ec,[t.createVNode(X,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",tc,[t.renderSlot(i.$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:a[0]||(a[0]=s=>i.$emit(t.unref(y.EVENTS).OPEN_LINK,e.data))},[t.createVNode(X,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(Rn,{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:a[1]||(a[1]=s=>o(t.unref(y.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(X,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(Zs,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),oc=B(nc,[["__scopeId","data-v-2271d5b0"]]);var we=(e=>(e.Lines="lines",e.Dots="dots",e))(we||{});const fl=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]}`})},ml=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};we.Lines+"",we.Dots+"";const lc={[we.Dots]:"#81818a",[we.Lines]:"#eee"},rc=["id","x","y","width","height","patternTransform"],ic={key:2,height:"100",width:"100"},ac=["fill"],sc=["x","y","fill"],cc={name:"Background",compatConfig:{MODE:3}},uc=t.defineComponent({...cc,props:{id:{},variant:{default:()=>we.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:2}},setup(e){const{id:n,viewport:o}=re.useVueFlow(),l=t.computed(()=>{const[a,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],c=[a*o.value.zoom||1,s*o.value.zoom||1],u=e.size*o.value.zoom,h=e.variant===we.Dots?[u/e.offset,u/e.offset]:[c[0]/e.offset,c[1]/e.offset];return{scaledGap:c,offset:h,size:u}}),r=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),i=t.toRef(()=>e.color||e.patternColor||lc[e.variant||we.Dots]);return(a,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${a.height>100?100:a.height}%`,width:`${a.width>100?100:a.width}%`})},[t.renderSlot(a.$slots,"pattern-container",{id:r.value},()=>[t.createElementVNode("pattern",{id:r.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(a.$slots,"pattern",{},()=>[a.variant===t.unref(we).Lines?(t.openBlock(),t.createBlock(t.unref(fl),{key:0,size:a.lineWidth,color:i.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):a.variant===t.unref(we).Dots?(t.openBlock(),t.createBlock(t.unref(ml),{key:1,color:i.value,radius:l.value.size/a.offset},null,8,["color","radius"])):t.createCommentVNode("",!0),a.bgColor?(t.openBlock(),t.createElementBlock("svg",ic,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:a.bgColor},null,8,ac)])):t.createCommentVNode("",!0)])],8,rc)]),t.createElementVNode("rect",{x:a.x,y:a.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,sc),t.renderSlot(a.$slots,"default",{id:r.value})],4))}}),dc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fc=["aria-hidden","aria-label"],mc=["fill","width","height"],pc={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},gc={key:0};function hc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",pc,[o.title?(t.openBlock(),t.createElementBlock("title",gc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mc))],16,fc)}const Ec=B(dc,[["render",hc]]),kc={class:"top-button-div text-white d-flex"},_c={inheritAttrs:!1,components:{Tooltip:X},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){var n;const e=this.data.taskNode;if((n=e==null?void 0:e.type)!=null&&n.endsWith("SubflowGraphTask")){const o=e.task.subflowId??e.task;return o.namespace+" "+o.flowId}return y.Utils.afterLastDot(this.id)}}},yc=Object.assign(_c,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:re.Position,default:void 0},targetPosition:{type:re.Position,default:void 0},id:{type:String,default:void 0}},emits:[y.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,r=()=>{l(y.EVENTS.COLLAPSE,o.id)};return(i,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(i.clusterName),3),t.createElementVNode("div",kc,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:a[0]||(a[0]=s=>r())},[t.createVNode(X,{title:i.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Ec,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),Cc=B(yc,[["__scopeId","data-v-0c251e77"]]),Nc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vc=["aria-hidden","aria-label"],Sc=["fill","width","height"],bc={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"},Lc={key:0};function Tc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",bc,[o.title?(t.openBlock(),t.createElementBlock("title",Lc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sc))],16,vc)}const pl=B(Nc,[["render",Tc]]),wc={name:"Dot",components:{Handle:re.Handle,CircleIcon:pl},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,[y.Utils.afterLastDot(this.data.node.type)]:!0}}}},Ac=Object.assign(wc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(re.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(pl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(re.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),Ic=B(Ac,[["__scopeId","data-v-666f472b"]]),Vc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oc=["aria-hidden","aria-label"],Dc=["fill","width","height"],Bc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Pc={key:0};function Rc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Bc,[o.title?(t.openBlock(),t.createElementBlock("title",Pc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Dc))],16,Oc)}const $c=B(Vc,[["render",Rc]]),Mc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},xc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Mc,[n.addTask?(t.openBlock(),t.createBlock($c,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Fc=B(xc,[["__scopeId","data-v-4afc4738"]]),Uc={data(){return{tooltips:[]}},props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},components:{AddTaskButton:Fc,EdgeLabelRenderer:re.EdgeLabelRenderer,Tooltip:X},computed:{Utils(){return y.Utils},EVENTS(){return y.EVENTS},classes(){return{"vue-flow__edge-path":!0,["stroke-"+this.data.color]:this.data.color,"unused-path":this.data.unused}},title(){const{haveAdd:e}=this.data;return`${this.$t("add task")} ${(e==null?void 0:e.length)===2?`${this.$t(e[1])} ${e[0]}`:""}`.trim()}},setup(e){return{path:t.computed(()=>re.getSmoothStepPath(e))}},inheritAttrs:!1},Hc=["id","d","marker-end"];function zc(e,n,o,l,r,i){const a=t.resolveComponent("AddTaskButton"),s=t.resolveComponent("tooltip"),c=t.resolveComponent("EdgeLabelRenderer");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("path",{id:o.id,class:t.normalizeClass(i.classes),style:t.normalizeStyle(o.data.haveDashArray?{strokeDasharray:"2"}:{}),d:l.path[0],"marker-end":o.markerEnd},null,14,Hc),t.createVNode(c,{style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${l.path[1]}px,${l.path[2]}px)`})},[t.createVNode(s,{title:i.title},{default:t.withCtx(()=>[o.data.haveAdd?(t.openBlock(),t.createBlock(a,{key:0,"add-task":!0,onClick:n[0]||(n[0]=u=>e.$emit(i.EVENTS.ADD_TASK,o.data.haveAdd)),class:t.normalizeClass({"text-danger":o.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})],64)}const Gc=B(Uc,[["render",zc],["__scopeId","data-v-a3e1d999"]]),Wc={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},jc=["aria-hidden","aria-label"],Kc=["fill","width","height"],Yc={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"},qc={key:0};function Xc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Yc,[o.title?(t.openBlock(),t.createElementBlock("title",qc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Kc))],16,jc)}const gl=B(Wc,[["render",Xc]]),Zc={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jc=["aria-hidden","aria-label"],Qc=["fill","width","height"],eu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},tu={key:0};function nu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",eu,[o.title?(t.openBlock(),t.createElementBlock("title",tu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Qc))],16,Jc)}const Mt=B(Zc,[["render",nu]]),xt=Symbol("execution-injection-key"),hl=Symbol("subflows-executions-injection-key"),El=Symbol("playground-enabled-injection-key"),ou={class:"icon rounded"},lu={class:"node-content"},ru={class:"d-flex node-title"},iu={class:"text-truncate task-title"},au={key:0,class:"d-flex"},su={class:"text-white top-button-div"},cu={components:{ArrowExpand:Mt,InformationOutline:gl,OpenInNew:Rn,Tooltip:X},emits:[y.EVENTS.EXPAND,y.EVENTS.OPEN_LINK,y.EVENTS.SHOW_LOGS,y.EVENTS.MOUSE_OVER,y.EVENTS.MOUSE_LEAVE,y.EVENTS.ADD_ERROR,y.EVENTS.EDIT,y.EVENTS.DELETE,y.EVENTS.ADD_TASK,y.EVENTS.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},title:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(y.EVENTS.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(y.EVENTS.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},inject:{execution:{from:xt}},computed:{Utils(){return y.Utils},borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return y.EVENTS},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return y.Utils.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e,n,o,l;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((l=(o=(n=this.data.parent)==null?void 0:n.taskNode)==null?void 0:o.task)==null?void 0:l.disabled),[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){var e;if((e=this.data.node.type)!=null&&e.endsWith("SubflowGraphTask")){const n=this.data.node.task.subflowId??this.data.node.task;return n.namespace+" "+n.flowId}return this.trimmedId}}},uu=Object.assign(cu,{__name:"BasicNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([n.classes,"node-wrapper rounded-3 border"]),onMouseover:o[3]||(o[3]=(...l)=>n.mouseover&&n.mouseover(...l)),onMouseleave:o[4]||(o[4]=(...l)=>n.mouseleave&&n.mouseleave(...l))},[e.state?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["status-div",[`bg-${n.stateColor}`]])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",ou,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.iconComponent||Pn),{cls:n.cls,class:t.normalizeClass([n.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",lu,[t.createElementVNode("div",ru,[t.createElementVNode("div",iu,[t.createVNode(X,{title:n.hoverTooltip},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title??n.trimmedId),1)]),_:1},8,["title"])]),n.description?(t.openBlock(),t.createElementBlock("span",au,[t.createVNode(X,{title:n.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(gl,{onClick:o[0]||(o[0]=l=>n.$emit(t.unref(y.EVENTS).SHOW_DESCRIPTION,{id:n.trimmedId,description:n.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(n.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",su,[t.renderSlot(n.$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:o[1]||(o[1]=l=>n.$emit(t.unref(y.EVENTS).OPEN_LINK,{link:e.data.link}))},[t.createVNode(X,{title:n.$t("open")},{default:t.withCtx(()=>[t.createVNode(Rn,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),n.expandable?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:o[2]||(o[2]=l=>n.$emit(t.unref(y.EVENTS).EXPAND))},[t.createVNode(X,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Mt,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])],34))}}),kl=B(uu,[["__scopeId","data-v-ee0adf33"]]),du=["innerHTML"],fu=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(C,V)=>{V[0].date!==C[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const r=t.computed(()=>{var C;return((C=n.histories)==null?void 0:C.length)&&new Date(n.histories[0].date.toString()).getTime()}),i=t.computed(()=>n.histories[n.histories.length-1]),a=t.computed(()=>n.histories.filter(C=>C.date.isValid()&&C.date&&C.state));function s(){l.value||(l.value=setInterval(()=>{E(),n.histories&&!ae.isRunning(i.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return h()-r.value}function h(){return!n.histories||ae.isRunning(i.value.state)?+new Date:new Date(i.value.date.toString()).getTime()}function E(){o.value=a.value.length===0?" ":y.Utils.humanDuration(u()/1e3)}function g(C){return"ks-duration-tt-square-"+C.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(C,V)=>(t.openBlock(),t.createBlock(X,{key:i.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(L,O)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+O,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",g(L.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(L.state)+": ",1),t.createTextVNode(t.toDisplayString(t.unref(y.Utils).dateFilter(L.date.toString(),"iso"))+" ",1),V[0]||(V[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,du)]),_:1}))}}),mu={class:"btn-group content rounded-1 content-children text-truncate"},pu={key:0,class:"taskRunCount"},gu={key:1},hu={key:2},Eu=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const n=e,o=t.computed(()=>{var a;return(a=n.execution)!=null&&a.taskRunList?n.execution.taskRunList:[]}),l=t.computed(()=>o.value.filter(a=>a.taskId===y.Utils.afterLastDot(n.uid??""))),r=t.computed(()=>{if(!l.value)return null;if(l.value.length===1)return l.value[0].state.current;const a=l.value.map(u=>u.state.current),s=[ae.FAILED,ae.KILLED,ae.WARNING,ae.KILLING,ae.RUNNING,ae.SUCCESS,ae.RESTARTED,ae.CREATED];return a.map(u=>{const h=s.indexOf(u[1]);return s[h]=void 0,[h,u]}).sort().map(u=>u[1])[0]}),i=t.computed(()=>{if(!l.value)return;const a=Math.max(...l.value.filter(c=>c.state.histories&&c.state.histories.length>0).map(c=>new Date(c.state.histories[c.state.histories.length-1].date).getTime())),s=Math.max(...l.value.map(c=>tn.duration(c.state.duration).asMilliseconds()/1e3,0));return[{date:tn(a).subtract(s,"second"),state:"CREATED"},{date:tn(a),state:r.value}]});return(a,s)=>(t.openBlock(),t.createElementBlock("div",mu,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",pu,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",gu," | ")):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",hu,[t.createVNode(fu,{histories:i.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),_l=B(Eu,[["__scopeId","data-v-a204e986"]]),ku={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_u=["aria-hidden","aria-label"],yu=["fill","width","height"],Cu={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"},Nu={key:0};function vu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Nu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,yu))],16,_u)}const Ft=B(ku,[["render",vu]]),Su={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},bu=["aria-hidden","aria-label"],Lu=["fill","width","height"],Tu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},wu={key:0};function Au(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Tu,[o.title?(t.openBlock(),t.createElementBlock("title",wu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Lu))],16,bu)}const Ut=B(Su,[["render",Au]]),Iu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vu=["aria-hidden","aria-label"],Ou=["fill","width","height"],Du={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"},Bu={key:0};function Pu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Bu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ou))],16,Vu)}const yl=B(Iu,[["render",Pu]]),Ru={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$u=["aria-hidden","aria-label"],Mu=["fill","width","height"],xu={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Fu={key:0};function Uu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",xu,[o.title?(t.openBlock(),t.createElementBlock("title",Fu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Mu))],16,$u)}const Cl=B(Ru,[["render",Uu]]),Hu={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zu=["aria-hidden","aria-label"],Gu=["fill","width","height"],Wu={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},ju={key:0};function Ku(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",ju,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gu))],16,zu)}const Yu=B(Hu,[["render",Ku]]),qu={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xu=["aria-hidden","aria-label"],Zu=["fill","width","height"],Ju={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"},Qu={key:0};function ed(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Qu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zu))],16,Xu)}const Nl=B(qu,[["render",ed]]),td={name:"Task",components:{Pencil:Ft,Delete:Ut,ExecutionInformations:_l,Handle:re.Handle,TextBoxSearch:yl,AlertOutline:Cl,Tooltip:X,SendLock:Nl},inheritAttrs:!1,inject:{execution:{from:xt},subflowsExecutions:{from:hl},playgroundEnabled:{from:El}},computed:{SECTIONS(){return y.SECTIONS},EVENTS(){return y.EVENTS},color(){return this.data.color??"primary"},taskId(){return y.Utils.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var n,o;const e=this.data.executionId;if(e)return e===((n=this.execution)==null?void 0:n.id)?this.execution:(o=Object.values(this.subflowsExecutions).filter(l=>l.id===this.data.executionId))==null?void 0:o[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===y.Utils.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(l=>l.state.current),n=[ae.FAILED,ae.KILLED,ae.WARNING,ae.KILLING,ae.RUNNING,ae.SUCCESS,ae.RESTARTED,ae.CREATED];return e.map(l=>{const r=n.indexOf(l[1]);return n[r]=void 0,[r,l]}).sort().map(l=>l[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,n,o,l,r;if((e=this.data.node.type)!=null&&e.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const i=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:i.namespace,id:i.flowId,executionId:(r=(l=(o=(n=this.taskExecution)==null?void 0:n.taskRunList.filter(a=>{var s;return a.taskId===this.data.node.task.id&&((s=a.outputs)==null?void 0:s.executionId)}))==null?void 0:o[0])==null?void 0:l.outputs)==null?void 0:r.executionId}}}return this.data}},emits:[y.EVENTS.EXPAND,y.EVENTS.OPEN_LINK,y.EVENTS.SHOW_LOGS,y.EVENTS.MOUSE_OVER,y.EVENTS.MOUSE_LEAVE,y.EVENTS.ADD_ERROR,y.EVENTS.EDIT,y.EVENTS.DELETE,y.EVENTS.ADD_TASK,y.EVENTS.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,n){this.$emit(e,n)}}},nd=Object.assign(td,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(kl,{id:e.id,data:n.dataWithLink,state:n.state,class:t.normalizeClass(n.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:o[6]||(o[6]=l=>n.forwardEvent(t.unref(y.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[7]||(o[7]=l=>n.forwardEvent(t.unref(y.EVENTS).EXPAND,n.expandData)),onOpenLink:o[8]||(o[8]=l=>n.forwardEvent(t.unref(y.EVENTS).OPEN_LINK,l)),onMouseover:o[9]||(o[9]=l=>n.forwardEvent(t.unref(y.EVENTS).MOUSE_OVER,l)),onMouseleave:o[10]||(o[10]=l=>n.forwardEvent(t.unref(y.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>[n.taskExecution?(t.openBlock(),t.createBlock(_l,{key:0,execution:n.taskExecution,task:e.data.node.task,color:n.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):t.createCommentVNode("",!0),n.playgroundEnabled&&e.data.node.task?(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"playground-button",onClick:o[0]||(o[0]=l=>n.$emit(t.unref(y.EVENTS).RUN_TASK,{task:e.data.node.task}))},[t.createVNode(X,{style:{display:"flex"},title:n.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(Yu,{class:"button-play-icon",alt:"Play task"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:o[1]||(o[1]=l=>n.$emit(t.unref(y.EVENTS).SHOW_CONDITION,{id:n.taskId,task:e.data.node.task,section:t.unref(y.SECTIONS).TASKS}))},[t.createVNode(X,{title:n.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(Nl,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),n.taskExecution?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[2]||(o[2]=l=>n.$emit(t.unref(y.EVENTS).SHOW_LOGS,{id:n.taskId,execution:n.taskExecution,taskRuns:n.taskRuns}))},[t.createVNode(X,{title:n.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(yl,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!n.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[3]||(o[3]=l=>n.$emit(t.unref(y.EVENTS).ADD_ERROR,{task:e.data.node.task}))},[t.createVNode(X,{title:n.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(Cl,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!n.taskExecution&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[4]||(o[4]=l=>n.$emit(t.unref(y.EVENTS).EDIT,{task:e.data.node.task,section:t.unref(y.SECTIONS).TASKS}))},[t.createVNode(X,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Ft,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!n.taskExecution&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[5]||(o[5]=l=>n.$emit(t.unref(y.EVENTS).DELETE,{id:n.taskId,section:t.unref(y.SECTIONS).TASKS}))},[t.createVNode(X,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Ut,{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(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),od=B(nd,[["__scopeId","data-v-8b3dd8bd"]]),ld={name:"Task",inheritAttrs:!1,inject:{execution:{from:xt}},computed:{SECTIONS(){return y.SECTIONS},EVENTS(){return y.EVENTS},color(){return this.data.color??"primary"},formattedData(){var e,n,o,l;return{...this.data,unused:((n=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:n.disabled)||((l=(o=this.data.node)==null?void 0:o.trigger)==null?void 0:l.disabled)}},triggerId(){return y.Utils.afterLastDot(this.id)}},emits:[y.EVENTS.DELETE,y.EVENTS.EDIT,y.EVENTS.SHOW_DESCRIPTION],components:{Delete:Ut,Pencil:Ft,Handle:re.Handle,Tooltip:X},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)}}},rd=Object.assign(ld,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(kl,{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(y.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(y.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(y.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(y.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Ft,{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(y.EVENTS).DELETE,{id:n.triggerId,section:t.unref(y.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Ut,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),id={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ad=["aria-hidden","aria-label"],sd=["fill","width","height"],cd={d:"M11 15H6L13 1V9H18L11 23V15Z"},ud={key:0};function dd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",cd,[o.title?(t.openBlock(),t.createElementBlock("title",ud,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sd))],16,ad)}const fd=B(id,[["render",dd]]),md={class:"collapsed-cluster-node d-flex"},pd={class:"node-text"},gd={class:"text-white top-button-div"},hd={components:{Tooltip:X,Handle:re.Handle,ArrowExpand:Mt,LightningBolt:fd},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 y.EVENTS},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Ed=Object.assign(hd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(re.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",md,[t.createElementVNode("span",pd,[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(y.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",gd,[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(y.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(X,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Mt,{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(re.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),kd=B(Ed,[["__scopeId","data-v-89413b39"]]),_d={name:"SplitCellsVerticalIcon",emits:["click"]},yd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("svg",yd,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 Nd=B(_d,[["render",Cd],["__scopeId","data-v-084c51e6"]]),vd={name:"SplitCellsHorizontalIcon",emits:["click"]},Sd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("svg",Sd,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 Ld=B(vd,[["render",bd],["__scopeId","data-v-c77c1469"]]),Td={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wd=["aria-hidden","aria-label"],Ad=["fill","width","height"],Id={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Vd={key:0};function Od(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Id,[o.title?(t.openBlock(),t.createElementBlock("title",Vd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ad))],16,wd)}const Dd=B(Td,[["render",Od]]);function Bd(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"),r=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(r),n&&(l.href=n),r.href=e,r.href}const Pd=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function De(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}function wt(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function Rd(e){const n=wt(e,"border-left-width"),o=wt(e,"border-right-width");return e.clientWidth+n+o}function $d(e){const n=wt(e,"border-top-width"),o=wt(e,"border-bottom-width");return e.clientHeight+n+o}function vl(e,n={}){const o=n.width||Rd(e),l=n.height||$d(e);return{width:o,height:l}}function Md(){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 ye=16384;function xd(e){(e.width>ye||e.height>ye)&&(e.width>ye&&e.height>ye?e.width>e.height?(e.height*=ye/e.width,e.width=ye):(e.width*=ye/e.height,e.height=ye):e.width>ye?(e.height*=ye/e.width,e.width=ye):(e.width*=ye/e.height,e.height=ye))}function At(e){return new Promise((n,o)=>{const l=new Image;l.decode=()=>n(l),l.onload=()=>n(l),l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function Fd(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function Ud(e,n,o){const l="http://www.w3.org/2000/svg",r=document.createElementNS(l,"svg"),i=document.createElementNS(l,"foreignObject");return r.setAttribute("width",`${n}`),r.setAttribute("height",`${o}`),r.setAttribute("viewBox",`0 0 ${n} ${o}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),r.appendChild(i),i.appendChild(e),Fd(r)}const ke=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||ke(o,n)};function Hd(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function zd(e){return De(e).map(n=>{const o=e.getPropertyValue(n),l=e.getPropertyPriority(n);return`${n}: ${o}${l?" !important":""};`}).join(" ")}function Gd(e,n,o){const l=`.${e}:${n}`,r=o.cssText?Hd(o):zd(o);return document.createTextNode(`${l}{${r}}`)}function bo(e,n,o){const l=window.getComputedStyle(e,o),r=l.getPropertyValue("content");if(r===""||r==="none")return;const i=Pd();try{n.className=`${n.className} ${i}`}catch{return}const a=document.createElement("style");a.appendChild(Gd(i,o,l)),n.appendChild(a)}function Wd(e,n){bo(e,n,":before"),bo(e,n,":after")}const Lo="application/font-woff",To="image/jpeg",jd={woff:Lo,woff2:Lo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:To,jpeg:To,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Kd(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function $n(e){const n=Kd(e).toLowerCase();return jd[n]||""}function Yd(e){return e.split(/,/)[1]}function Cn(e){return e.search(/^(data:)/)!==-1}function qd(e,n){return`data:${n};base64,${e}`}async function Sl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const r=await l.blob();return new Promise((i,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{i(o({res:l,result:s.result}))}catch(c){a(c)}},s.readAsDataURL(r)})}const rn={};function Xd(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 Mn(e,n,o){const l=Xd(e,n,o.includeQueryParams);if(rn[l]!=null)return rn[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const i=await Sl(e,o.fetchRequestInit,({res:a,result:s})=>(n||(n=a.headers.get("Content-Type")||""),Yd(s)));r=qd(i,n)}catch(i){r=o.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return rn[l]=r,r}async function Zd(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):At(n)}async function Jd(e,n){if(e.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,a==null||a.drawImage(e,0,0,i.width,i.height);const s=i.toDataURL();return At(s)}const o=e.poster,l=$n(o),r=await Mn(o,l,n);return At(r)}async function Qd(e){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await Ht(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function ef(e,n){return ke(e,HTMLCanvasElement)?Zd(e):ke(e,HTMLVideoElement)?Jd(e,n):ke(e,HTMLIFrameElement)?Qd(e):e.cloneNode(!1)}const tf=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function nf(e,n,o){var l,r;let i=[];return tf(e)&&e.assignedNodes?i=De(e.assignedNodes()):ke(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?i=De(e.contentDocument.body.childNodes):i=De(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),i.length===0||ke(e,HTMLVideoElement)||await i.reduce((a,s)=>a.then(()=>Ht(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function of(e,n){const o=n.style;if(!o)return;const l=window.getComputedStyle(e);l.cssText?(o.cssText=l.cssText,o.transformOrigin=l.transformOrigin):De(l).forEach(r=>{let i=l.getPropertyValue(r);r==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),ke(e,HTMLIFrameElement)&&r==="display"&&i==="inline"&&(i="block"),r==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),o.setProperty(r,i,l.getPropertyPriority(r))})}function lf(e,n){ke(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),ke(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function rf(e,n){if(ke(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(r=>e.value===r.getAttribute("value"));l&&l.setAttribute("selected","")}}function af(e,n){return ke(n,Element)&&(of(e,n),Wd(e,n),lf(e,n),rf(e,n)),n}async function sf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let i=0;i<o.length;i++){const s=o[i].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 r=Object.values(l);if(r.length){const i="http://www.w3.org/1999/xhtml",a=document.createElementNS(i,"svg");a.setAttribute("xmlns",i),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(i,"defs");a.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);e.appendChild(a)}return e}async function Ht(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>ef(l,n)).then(l=>nf(e,l,n)).then(l=>af(e,l)).then(l=>sf(l,n))}const bl=/url\((['"]?)([^'"]+?)\1\)/g,cf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,uf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function df(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function ff(e){const n=[];return e.replace(bl,(o,l,r)=>(n.push(r),o)),n.filter(o=>!Cn(o))}async function mf(e,n,o,l,r){try{const i=o?Bd(n,o):n,a=$n(n);let s;return r||(s=await Mn(i,a,l)),e.replace(df(n),`$1${s}$3`)}catch{}return e}function pf(e,{preferredFontFormat:n}){return n?e.replace(uf,o=>{for(;;){const[l,,r]=cf.exec(o)||[];if(!r)return"";if(r===n)return`src: ${l};`}}):e}function Ll(e){return e.search(bl)!==-1}async function Tl(e,n,o){if(!Ll(e))return e;const l=pf(e,o);return ff(l).reduce((i,a)=>i.then(s=>mf(s,a,n,o)),Promise.resolve(l))}async function yt(e,n,o){var l;const r=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(r){const i=await Tl(r,null,o);return n.style.setProperty(e,i,n.style.getPropertyPriority(e)),!0}return!1}async function gf(e,n){await yt("background",e,n)||await yt("background-image",e,n),await yt("mask",e,n)||await yt("mask-image",e,n)}async function hf(e,n){const o=ke(e,HTMLImageElement);if(!(o&&!Cn(e.src))&&!(ke(e,SVGImageElement)&&!Cn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,r=await Mn(l,$n(l),n);await new Promise((i,a)=>{e.onload=i,e.onerror=a;const s=e;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Ef(e,n){const l=De(e.childNodes).map(r=>wl(r,n));await Promise.all(l).then(()=>e)}async function wl(e,n){ke(e,Element)&&(await gf(e,n),await hf(e,n),await Ef(e,n))}function kf(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(r=>{o[r]=l[r]}),e}const wo={};async function Ao(e){let n=wo[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},wo[e]=n,n}async function Io(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,i=(o.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Sl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(a,`url(${c})`),[a,c]))});return Promise.all(i).then(()=>o)}function Vo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let c=i.exec(l);if(c===null){if(c=s.exec(l),c===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;n.push(c[0])}return n}async function _f(e,n){const o=[],l=[];return e.forEach(r=>{if("cssRules"in r)try{De(r.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let s=a+1;const c=i.href,u=Ao(c).then(h=>Io(h,n)).then(h=>Vo(h).forEach(E=>{try{r.insertRule(E,E.startsWith("@import")?s+=1:r.cssRules.length)}catch(g){console.error("Error inserting rule from remote css",{rule:E,error:g})}})).catch(h=>{console.error("Error loading remote css",h.toString())});l.push(u)}})}catch(i){const a=e.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&l.push(Ao(r.href).then(s=>Io(s,n)).then(s=>Vo(s).forEach(c=>{a.insertRule(c,r.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(l).then(()=>(e.forEach(r=>{if("cssRules"in r)try{De(r.cssRules||[]).forEach(i=>{o.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${r.href}`,i)}}),o))}function yf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Ll(n.style.getPropertyValue("src")))}async function Cf(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=De(e.ownerDocument.styleSheets),l=await _f(o,n);return yf(l)}async function Nf(e,n){const o=await Cf(e,n);return(await Promise.all(o.map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return Tl(r.cssText,i,n)}))).join(`
|
|
25
|
+
`)}async function vf(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Nf(e,n);if(o){const l=document.createElement("style"),r=document.createTextNode(o);l.appendChild(r),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function Sf(e,n={}){const{width:o,height:l}=vl(e,n),r=await Ht(e,n,!0);return await vf(r,n),await wl(r,n),kf(r,n),await Ud(r,o,l)}async function Al(e,n={}){const{width:o,height:l}=vl(e,n),r=await Sf(e,n),i=await At(r),a=document.createElement("canvas"),s=a.getContext("2d"),c=n.pixelRatio||Md(),u=n.canvasWidth||o,h=n.canvasHeight||l;return a.width=u*c,a.height=h*c,n.skipAutoScale||xd(a),a.style.width=`${u}`,a.style.height=`${h}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function bf(e,n={}){return(await Al(e,n)).toDataURL()}async function Lf(e,n={}){return(await Al(e,n)).toDataURL("image/jpeg",n.quality||1)}function Tf(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let u;const h=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":u=await r(s,c);break;case"png":u=await i(s,c);break;default:u=await i(s,c);break}return c.shouldDownload&&h!==""&&a(h),u}function r(s,c={quality:.95}){return o.value=null,Lf(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s,c={quality:.95}){return o.value=null,bf(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function a(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:a,dataUrl:e,error:o}}const wf={key:1,class:"exporting"},Af=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}},emits:[y.EVENTS.EDIT,y.EVENTS.DELETE,y.EVENTS.RUN_TASK,y.EVENTS.OPEN_LINK,y.EVENTS.SHOW_LOGS,y.EVENTS.SHOW_DESCRIPTION,y.EVENTS.RUN_TASK,"on-add-flowable-error",y.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",y.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),r=t.ref(),{getNodes:i,onNodeDrag:a,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:h,vueFlowRef:E}=re.useVueFlow(o.id),g=t.ref({}),C=t.ref([]),V=t.ref(new Set),L=t.ref([]),{capture:O}=Tf();t.provide(xt,t.computed(()=>o.execution)),t.provide(hl,t.computed(()=>o.subflowsExecutions)),t.provide(El,t.computed(()=>o.playgroundEnabled));const p=n;t.onMounted(()=>{k()}),t.watch(()=>o.flowGraph,()=>{k()}),t.watch(()=>o.isHorizontal,()=>{k()});const k=()=>{y.cleanGraph(o.id),t.nextTick(()=>{p("loading",!0);const P=V.value;V.value=new Set,C.value=[],g.value={},P.forEach(z=>x(y.CLUSTER_PREFIX+z,!1,!1));const A=y.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,C.value,o.isHorizontal,g.value,V.value,L.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);A&&(h(A),u(),p("loading",!1))})},S=P=>{l.value||y.linkedElements(o.id,P.uid).forEach(A=>{(A==null?void 0:A.type)==="task"&&(A.style={...A.style,outline:"0.5px solid "+Ne("--bs-gray-900")},A.class="rounded-3")})},m=()=>{b()},b=()=>{i.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{l.value=!0,b(),P.node.style={...P.node.style,zIndex:1976},r.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&N(P.intersections,P.node)===null){const A=P.node,z=P.intersections.find(R=>R.type==="task");if(z)try{o.source&&p("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:y.Utils.afterLastDot(A.id)??"",key2:y.Utils.afterLastDot(z.id)??""}),swappedTasks:[A.id,z.id]})}catch(R){p("message",{variant:"error",title:"cannot swap tasks",message:`${R.message}, ${R.messageOptions}`}),A.position=r.value}else A.position=r.value}else P.node.position=r.value;b(),P.node.style={...P.node.style,zIndex:5},r.value=null});const I=t.computed(()=>{var P;return(P=o.flowGraph)!=null&&P.clusters?o.flowGraph.clusters.filter(A=>A.cluster.type.endsWith("SubflowGraphCluster")).map(A=>A.cluster.taskNode.uid+"."):[]});a(P=>{b(),i.value.filter(A=>A.id!==P.node.id).forEach(A=>{var z;A.type==="trigger"||A.type==="task"&&(A.id.startsWith(P.node.id+".")||P.node.id.startsWith(A.id+"."))||(z=I==null?void 0:I.value)!=null&&z.some(R=>A.id.startsWith(R))?A.style={...A.style,opacity:"0.5"}:A.style={...A.style,opacity:"1"}}),P.intersections&&!N(P.intersections,P.node)&&P.intersections.filter(A=>A.type==="task").length===1&&(P.intersections.forEach(A=>{A.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+Ne("--bs-primary")},A.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+Ne("--bs-primary")},P.node.class="rounded-3")});const N=(P,A)=>{const z=P.filter(R=>R.type==="task").map(R=>y.Utils.afterLastDot(R.id));if(z.length>1)return"toomuchtaskerror";try{if(z.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:y.Utils.afterLastDot(z[0])??"",key2:y.Utils.afterLastDot(A.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(R=>R.type==="trigger").length>0?"triggererror":null},x=(P,A,z=!1)=>{const R=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(y.CLUSTER_PREFIX,"");V.value.add(Ie),C.value=C.value.concat(R.nodes.filter(me=>me!==Ie||z)),C.value=C.value.concat([R.cluster.uid]),g.value={...g.value,[R.cluster.uid]:Ie,[R.start]:Ie,[R.end]:Ie};for(let me of R.nodes)o.flowGraph.clusters.map(Ue=>Ue.cluster.uid).includes(me)&&x(me,!1,!0);A&&k()},H=P=>{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(P.type)&&!o.expandedSubflows.includes(P.id)){p("expand-subflow",[...o.expandedSubflows,P.id]);return}g.value={},C.value=[],L.value=[],V.value.delete(P.id),V.value.forEach(z=>x(z,!1,!1)),k()},J=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ce=t.ref(!0),F=t.ref(!1),he=()=>F.value=!F.value;function Ae(P){if(!E.value){console.warn("Flow not found");return}ce.value=!1,O(E.value,{type:P,shouldDownload:!0}).then(()=>ce.value=!0).finally(()=>F.value=!1)}return(P,A)=>(t.openBlock(),t.createBlock(t.unref(re.VueFlow),{id:e.id,"default-marker-color":t.unref(Ne)("--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(z=>[t.createVNode(Cc,t.mergeProps(z,{onCollapse:A[0]||(A[0]=R=>x(R,!0))}),null,16)]),"node-dot":t.withCtx(z=>[t.createVNode(Ic,t.normalizeProps(t.guardReactiveProps(z)),null,16)]),"node-task":t.withCtx(z=>[t.createVNode(od,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,onEdit:A[1]||(A[1]=R=>p(t.unref(y.EVENTS).EDIT,R)),onDelete:A[2]||(A[2]=R=>p(t.unref(y.EVENTS).DELETE,R)),onRunTask:A[3]||(A[3]=R=>p(t.unref(y.EVENTS).RUN_TASK,R)),onExpand:A[4]||(A[4]=R=>H(R)),onOpenLink:A[5]||(A[5]=R=>p(t.unref(y.EVENTS).OPEN_LINK,R)),onShowLogs:A[6]||(A[6]=R=>p(t.unref(y.EVENTS).SHOW_LOGS,R)),onShowDescription:A[7]||(A[7]=R=>p(t.unref(y.EVENTS).SHOW_DESCRIPTION,R)),onShowCondition:A[8]||(A[8]=R=>p(t.unref(y.EVENTS).SHOW_CONDITION,R)),onMouseover:A[9]||(A[9]=R=>S(R)),onMouseleave:A[10]||(A[10]=R=>m()),onAddError:A[11]||(A[11]=R=>p("on-add-flowable-error",R)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":t.withCtx(z=>[t.createVNode(rd,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:A[12]||(A[12]=R=>p(t.unref(y.EVENTS).DELETE,R)),onEdit:A[13]||(A[13]=R=>p(t.unref(y.EVENTS).EDIT,R)),onShowDescription:A[14]||(A[14]=R=>p(t.unref(y.EVENTS).SHOW_DESCRIPTION,R))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(z=>[t.createVNode(kd,t.mergeProps(z,{onExpand:A[15]||(A[15]=R=>H(R))}),null,16)]),"edge-edge":t.withCtx(z=>[t.createVNode(Gc,t.mergeProps(z,{"yaml-source":e.source,onAddTask:A[16]||(A[16]=R=>p(t.unref(y.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(uc),{"pattern-color":J?t.unref(Ne)("--bs-grey-500"):t.unref(Ne)("--bs-grey-300")},null,8,["pattern-color"]),ce.value?(t.openBlock(),t.createBlock(t.unref(en.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(en.ControlButton),{key:0,onClick:A[17]||(A[17]=z=>p("toggle-orientation",z))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?Ld:Nd)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(en.ControlButton),{onClick:he},{default:t.withCtx(()=>[t.createVNode(Dd)]),_:1}),F.value?(t.openBlock(),t.createElementBlock("ul",wf,[t.createElementVNode("li",{onClick:A[18]||(A[18]=z=>Ae("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:A[19]||(A[19]=z=>Ae("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),If=B(Af,[["__scopeId","data-v-e2e42379"]]),Vf={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Of=["aria-hidden","aria-label"],Df=["fill","width","height"],Bf={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Pf={key:0};function Rf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Bf,[o.title?(t.openBlock(),t.createElementBlock("title",Pf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Df))],16,Of)}const $f=B(Vf,[["render",Rf]]),Mf={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xf=["aria-hidden","aria-label"],Ff=["fill","width","height"],Uf={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"},Hf={key:0};function zf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Uf,[o.title?(t.openBlock(),t.createElementBlock("title",Hf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ff))],16,xf)}const Gf=B(Mf,[["render",zf]]),Wf={key:0,class:"language"},jf=["innerHTML"],Kf=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(Gf),Check:t.shallowRef($f)},o=e,l=t.ref(!1),r=t.ref(),i=t.shallowRef(n.ContentCopy.value),a=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,r.value&&t.nextTick(()=>{a.value&&s.value&&ar.createPopper(a.value,s.value,{placement:"left"})})}function h(){clearTimeout(r.value),navigator.clipboard.writeText(o.code.trimEnd()),i.value=n.Check.value,r.value=setTimeout(()=>{i.value=n.ContentCopy.value,r.value=void 0},2e3)}return(E,g)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:g[0]||(g[0]=C=>l.value=!1)},[E.language&&!l.value?(t.openBlock(),t.createElementBlock("div",Wf,t.toDisplayString(E.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:a,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value),{onClick:h}))],512),r.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! "),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,jf)],32))}}),Oo=B(Kf,[["__scopeId","data-v-a899f6a1"]]),Yf={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qf=["aria-hidden","aria-label"],Xf=["fill","width","height"],Zf={d:"M10,17L15,12L10,7V17Z"},Jf={key:0};function Qf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Zf,[o.title?(t.openBlock(),t.createElementBlock("title",Jf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xf))],16,qf)}const em=B(Yf,[["render",Qf]]),tm={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nm=["aria-hidden","aria-label"],om=["fill","width","height"],lm={d:"M7,10L12,15L17,10H7Z"},rm={key:0};function im(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",lm,[o.title?(t.openBlock(),t.createElementBlock("title",rm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,om))],16,nm)}const am=B(tm,[["render",im]]),sm=["id","open"],cm={class:"d-flex gap-2 align-items-center"},um={key:0,class:"d-flex flex-grow-1"},dm=["id"],fm=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}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),r=Ln.useRoute(),i=n,a=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||i("expand"),window.location.hash=l.value?"":a.value},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>r.hash,u=>{u===a.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,h)=>(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",cm,[u.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?em:am),{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",um,[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,dm)):t.createCommentVNode("",!0)],8,sm))}}),It=B(fm,[["__scopeId","data-v-5411e3ca"]]);function Ct(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function Il(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function mm(e){var n,o;if(e.enum)return e.enum;if((n=e.items)!=null&&n.enum)return e.items.enum;if((o=e.additionalProperties)!=null&&o.enum)return e.additionalProperties.enum}function pm(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Vl(e){const n={},o=Ct(e);return o?n.types=[o]:e.anyOf?n.types=e.anyOf.map(Ct).filter(l=>l!==void 0).filter(y.Utils.distinctFilter):n.types=["object"],e.additionalProperties?n.subType=Ct(e.additionalProperties):e.items&&(n.subType=Ct(e.items)),n}const gm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hm=["aria-hidden","aria-label"],Em=["fill","width","height"],km={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},_m={key:0};function ym(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",km,[o.title?(t.openBlock(),t.createElementBlock("title",_m,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Em))],16,hm)}const Cm=B(gm,[["render",ym]]),Nm={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vm=["aria-hidden","aria-label"],Sm=["fill","width","height"],bm={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"},Lm={key:0};function Tm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Lm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sm))],16,vm)}const Ol=B(Nm,[["render",Tm]]),wm={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Am=["aria-hidden","aria-label"],Im=["fill","width","height"],Vm={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"},Om={key:0};function Dm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Vm,[o.title?(t.openBlock(),t.createElementBlock("title",Om,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Im))],16,Am)}const Bm=B(wm,[["render",Dm]]),Pm={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],$m=["fill","width","height"],Mm={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},xm={key:0};function Fm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Mm,[o.title?(t.openBlock(),t.createElementBlock("title",xm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$m))],16,Rm)}const Dl=B(Pm,[["render",Fm]]),Um={class:"me-3"},Hm={class:"d-flex flex-column"},zm=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return Bm;case"info":return cn;case"warning":return Dl;case"danger":return sn;default:return cn}});return(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",Um,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",Hm,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),Gm=B(zm,[["__scopeId","data-v-f7fd8bc1"]]),Wm={class:"property-detail"},jm={key:0},Km=["href"],Ym={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},qm={class:"ref-type"},Xm={key:1,class:"type-box rounded fs-7 px-2 py-1"},Zm={key:1},Jm={class:"border rounded px-2 py-1"},Qm={key:2},ep={class:"border rounded px-2 py-1"},tp={key:3},np={class:"border rounded px-2 py-1"},op={key:4},lp={class:"border rounded px-2 py-1"},rp={key:5},ip={class:"border rounded px-2 py-1"},ap={key:6},sp={class:"border rounded px-2 py-1"},cp={key:7},up={class:"border rounded px-2 py-1"},dp={key:8},fp={class:"border rounded px-2 py-1"},mp={key:9},pp={class:"border rounded px-2 py-1"},gp={key:10},hp={class:"border rounded px-2 py-1"},Ep={key:11},kp={class:"border rounded px-2 py-1"},_p={key:12},yp={class:"border rounded px-2 py-1"},Cp={key:13},Np={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},vp={key:14},Sp={class:"property-description markdown"},bp={key:2},Lp=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Vl(n.property).subType),l=t.ref(mm(n.property)),r=i=>i.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(i,a)=>(t.openBlock(),t.createElementBlock("div",Wm,[o.value?(t.openBlock(),t.createElementBlock("div",jm,[a[1]||(a[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:a[0]||(a[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",Ym,[t.createElementVNode("span",qm,t.toDisplayString(t.unref(Il)(o.value)),1),t.createVNode(Ol)])],8,Km)):(t.openBlock(),t.createElementBlock("span",Xm,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),i.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",Zm,[a[2]||(a[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",Jm,t.toDisplayString(i.property.default),1)])):t.createCommentVNode("",!0),i.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",Qm,[a[3]||(a[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",ep,t.toDisplayString(i.property.pattern),1)])):t.createCommentVNode("",!0),i.property.unit!==void 0&&i.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",tp,[a[4]||(a[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",np,t.toDisplayString(i.property.unit),1)])):t.createCommentVNode("",!0),i.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",op,[a[5]||(a[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",lp,t.toDisplayString(i.property.minLength),1)])):t.createCommentVNode("",!0),i.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",rp,[a[6]||(a[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",ip,t.toDisplayString(i.property.maxLength),1)])):t.createCommentVNode("",!0),i.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",ap,[a[7]||(a[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",sp,t.toDisplayString(i.property.minItems),1)])):t.createCommentVNode("",!0),i.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",cp,[a[8]||(a[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",up,t.toDisplayString(i.property.maxItems),1)])):t.createCommentVNode("",!0),i.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",dp,[a[9]||(a[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",fp," >= "+t.toDisplayString(i.property.minimum),1)])):t.createCommentVNode("",!0),i.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",mp,[a[10]||(a[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",pp," > "+t.toDisplayString(i.property.minimum),1)])):t.createCommentVNode("",!0),i.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",gp,[a[11]||(a[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",hp," <= "+t.toDisplayString(i.property.maximum),1)])):t.createCommentVNode("",!0),i.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Ep,[a[12]||(a[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",kp," < "+t.toDisplayString(i.property.maximum),1)])):t.createCommentVNode("",!0),i.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",_p,[a[13]||(a[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",yp,t.toDisplayString(i.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Cp,[a[14]||(a[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",Np,[(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),i.property.title!==void 0||i.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",vp,[t.createElementVNode("div",Sp,[i.property.title!==void 0?t.renderSlot(i.$slots,"markdown",{key:0,content:r(i.property.title)},void 0,!0):t.createCommentVNode("",!0),i.property.description!==void 0?t.renderSlot(i.$slots,"markdown",{key:1,content:r(i.property.description)},void 0,!0):t.createCommentVNode("",!0),i.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",bp,[t.createVNode(Gm,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(i.$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)]))}}),Tp=B(Lp,[["__scopeId","data-v-79715a4e"]]),wp={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ap=["aria-hidden","aria-label"],Ip=["fill","width","height"],Vp={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Op={key:0};function Dp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Vp,[o.title?(t.openBlock(),t.createElementBlock("title",Op,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ip))],16,Ap)}const Bp=B(wp,[["render",Dp]]),Pp={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rp=["aria-hidden","aria-label"],$p=["fill","width","height"],Mp={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"},xp={key:0};function Fp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",xp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$p))],16,Rp)}const Up=B(Pp,[["render",Fp]]),Hp={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zp=["aria-hidden","aria-label"],Gp=["fill","width","height"],Wp={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"},jp={key:0};function Kp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Wp,[o.title?(t.openBlock(),t.createElementBlock("title",jp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gp))],16,zp)}const Yp=B(Hp,[["render",Kp]]),qp={class:"border overflow-hidden"},Xp={class:"d-flex flex-grow-1 align-items-center justify-content-between"},Zp={class:"d-flex gap-2"},Jp={class:"d-flex flex-wrap gap-2"},Qp=["href"],eg={class:"ref-type"},tg={key:1,class:"type-box rounded fs-7 px-2 py-1"},ng=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:()=>[]}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,r=t.ref(!1);t.watch(r,s=>{s&&l("expand")});const i=s=>{var c;return s.$dynamic===!0?!0:s.$dynamic===!1?!1:((c=s.anyOf)==null?void 0:c.some(u=>u.$dynamic===!0))??!1};function a(s){const c=[],u=[];for(const g in s)typeof s[g]=="object"&&(s[g]=pm(s[g]),s[g].$required?c.push(g):u.push(g));const h=[...c.sort(),...u.sort()],E={};return h.forEach(g=>{var C;(!s[g].$deprecated||(C=o.forceInclude)!=null&&C.includes(g))&&(E[g]=s[g])}),E}return(s,c)=>(t.openBlock(),t.createBlock(It,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||r.value},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",qp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(s.properties),(u,h)=>(t.openBlock(),t.createBlock(It,{class:"property",key:h,arrow:!1,"clickable-text":h,href:s.href+"_"+h,onExpand:c[1]||(c[1]=E=>r.value=!0)},{additionalButtonText:t.withCtx(()=>[u.$required?(t.openBlock(),t.createBlock(X,{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:E})=>[t.createElementVNode("span",Xp,[t.createElementVNode("span",Zp,[s.showDynamic&&!i(u)?(t.openBlock(),t.createBlock(X,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(Up,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(X,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(Yp,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),u.$deprecated?(t.openBlock(),t.createBlock(X,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Dl,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",Jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Vl)(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",eg,t.toDisplayString(t.unref(Il)(g)),1),t.createVNode(Ol)],8,Qp)):(t.openBlock(),t.createElementBlock("span",tg,t.toDisplayString(g),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(E?Cm:Bp),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(Tp,{property:u},{markdown:t.withCtx(({content:E})=>[t.renderSlot(s.$slots,"markdown",{content:E},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),Nt=B(ng,[["__scopeId","data-v-0d36ff40"]]),og={class:"d-flex flex-column gap-6"},lg={key:0,class:"alert alert-info",role:"alert"},rg={key:1,class:"plugin-title markdown"},ig={key:2,class:"markdown"},ag={class:"d-flex flex-column gap-4"},sg={class:"d-flex flex-column gap-3"},cg={class:"markdown"},ug={key:0,class:"w-100 align-self-center"},dg={class:"markdown"},fg={class:"markdown"},mg={class:"markdown"},pg={class:"d-flex flex-column gap-7 ps-3"},gg={class:"markdown"},hg=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]}},async setup(e){let n,o;const l=e,r=t.ref(!1),i=t.ref(new Set),a=t.ref(0),s=async()=>{var I;const m=window.location.hash.slice(1);if(!m||!l.schema.definitions){i.value.clear();return}const b=m.includes("#")?(I=m.split("#").pop())==null?void 0:I.split(".").pop():m;if(b&&b in l.schema.definitions){r.value=!0,a.value+=1,i.value.clear(),i.value.add(b),await t.nextTick();let N=0;const x=30,H=()=>{const J=document.getElementById(b);J?J.scrollIntoView({behavior:"smooth",block:"start"}):N<x&&(N++,requestAnimationFrame(H))};requestAnimationFrame(H)}else i.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([m,b],[I,N])=>{(m!==I||b!==N)&&l.schema.definitions&&s()},{immediate:!0});const c=m=>{var b;return m!=null&&m.full?m.code:`id: "${(b=l.pluginType.split(".").reverse()[0])==null?void 0:b.toLowerCase()}"
|
|
26
26
|
type: "${l.pluginType}"
|
|
27
|
-
`.concat(p.code)},d=t.ref(null),m=t.computed(()=>{var p;return(p=l.schema.properties)==null?void 0:p.$examples}),E=t.computed(()=>{var p,b;return Object.fromEntries((b=(p=l.schema.properties)==null?void 0:p.$metrics)==null?void 0:b.map(I=>[I.name,{...I,name:void 0}]))}),{githubLight:h,githubDark:C,yaml:V,python:L,javascript:O,createJavaScriptRegexEngine:g,createHighlighterCore:k}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),n=await n,o(),n);d.value=([n,o]=t.withAsyncContext(()=>k({themes:[l.darkMode?C:h],langs:[V,L,O],engine:g()})),n=await n,o(),n);const S="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{var p;window.removeEventListener("hashchange",s),(p=d.value)==null||p.dispose()}),(p,b)=>{var I,N,x,H,J,ce;return t.openBlock(),t.createElementBlock("div",og,[t.createElementVNode("div",null,[(I=p.schema.properties)!=null&&I.$beta?(t.openBlock(),t.createElementBlock("div",lg,b[0]||(b[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),(N=p.schema.properties)!=null&&N.title?(t.openBlock(),t.createElementBlock("div",rg,[t.renderSlot(p.$slots,"markdown",{content:p.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(x=p.schema.properties)!=null&&x.description?(t.openBlock(),t.createElementBlock("div",ig,[t.renderSlot(p.$slots,"markdown",{content:p.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Oo,{highlighter:d.value,language:"yaml",theme:S,code:`type: "${p.pluginType}"`,key:p.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:p.pluginType},[m.value?(t.openBlock(),t.createBlock(Vt,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:t.withCtx(()=>[t.createElementVNode("div",ag,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(F,he)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p.pluginType+"-"+he},[t.createElementVNode("div",sg,[t.createElementVNode("div",cg,[F.title?t.renderSlot(p.$slots,"markdown",{key:0,content:F.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),F.code?(t.openBlock(),t.createBlock(Oo,{key:0,highlighter:d.value,language:F.lang??"yaml",theme:S,code:c(F)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),he<m.value.length-1?(t.openBlock(),t.createElementBlock("hr",ug)):t.createCommentVNode("",!0)],64))),128))])]),_:3})):t.createCommentVNode("",!0),(H=p.schema.properties)!=null&&H.properties?(t.openBlock(),t.createBlock(Nt,{key:1,class:"plugin-section",properties:p.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":p.propsInitiallyExpanded,"force-include":p.forceIncludeProperties},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",dg,[t.renderSlot(p.$slots,"markdown",{content:F},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include"])):t.createCommentVNode("",!0),(J=p.schema.outputs)!=null&&J.properties&&Object.keys(p.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(Nt,{key:2,class:"plugin-section",properties:p.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",fg,[t.renderSlot(p.$slots,"markdown",{content:F},void 0,!0)])]),_:3},8,["properties"])):t.createCommentVNode("",!0),(ce=p.schema.properties)!=null&&ce.$metrics?(t.openBlock(),t.createBlock(Nt,{key:3,class:"plugin-section",properties:E.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",mg,[t.renderSlot(p.$slots,"markdown",{content:F},void 0,!0)])]),_:3},8,["properties"])):t.createCommentVNode("",!0),p.schema.definitions&&Object.keys(p.schema.definitions).length>0?(t.openBlock(),t.createBlock(Vt,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":r.value,key:`definitions-${p.pluginType}-${a.value}`},{content:t.withCtx(()=>[t.createElementVNode("div",pg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(p.schema.definitions),([F,he])=>(t.openBlock(),t.createBlock(Nt,{properties:he.properties,"section-name":he.title??F.split("_")[0],href:F,"show-dynamic":!1,"initially-expanded":i.value.has(F),key:p.pluginType+"-"+F,class:"plugin-section nested-button-py-2",onExpand:Ae=>{r.value=!0,i.value.add(F)}},{markdown:t.withCtx(({content:Ae})=>[t.createElementVNode("div",gg,[t.renderSlot(p.$slots,"markdown",{content:Ae},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):t.createCommentVNode("",!0)]))])}}}),Eg=B(hg,[["__scopeId","data-v-5953ec4c"]]),kg={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_g=["aria-hidden","aria-label"],yg=["fill","width","height"],Cg={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},Ng={key:0};function vg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Cg,[o.title?(t.openBlock(),t.createElementBlock("title",Ng,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,yg))],16,_g)}const Sg=B(kg,[["render",vg]]),bg=["href"],Lg=["src","alt"],Tg=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const n=e,{path:o}=bt.useRoute(),l=t.computed(()=>n.href===void 0?`${o}/${je(n.text)}`:n.href);return(r,i)=>(t.openBlock(),t.createElementBlock("a",{href:l.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[t.createElementVNode("img",{src:r.iconB64Svg,alt:`${r.text} icon`},null,8,Lg),t.createTextVNode(t.toDisplayString(r.text)+" ",1),t.createVNode(Sg,{class:"ms-auto"})],8,bg))}}),Do=B(Tg,[["__scopeId","data-v-b787c0f3"]]),wg={class:"d-flex flex-column gap-4"},Ag={key:1,class:"d-flex flex-column"},Ig=["id"],Vg={class:"d-flex flex-column"},Og=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(E=>n.subGroup===void 0?!0:je(Je(E))===n.subGroup)),l=t.computed(()=>{var E,h;return((E=o.value)==null?void 0:E.longDescription)??((h=o.value)==null?void 0:h.description)}),r=t.computed(()=>n.plugins.filter(E=>E.name.toLowerCase()===n.pluginName.toLowerCase()&&E.subGroup!==void 0)),i=E=>{let h=E.split(".");return h==null?void 0:h[h.length-1]},{path:a}=bt.useRoute(),s=E=>`${a}/${je(E)}`,c=E=>`${a}/${E}`;function d(E){return Object.fromEntries(Object.entries(E).filter(([h,C])=>$o(h,C)).map(([h,C])=>[h.replaceAll(/[A-Z]/g,V=>` ${V}`),C.filter(({deprecated:V})=>!V).map(({cls:V})=>V)]))}const m=t.computed(()=>d(o.value));return(E,h)=>(t.openBlock(),t.createElementBlock("div",wg,[l.value!==void 0?t.renderSlot(E.$slots,"markdown",{key:0,content:l.value.replaceAll(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),E.subGroup===void 0&&E.plugins.length>1?(t.openBlock(),t.createElementBlock("div",Ag,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,C=>(t.openBlock(),t.createBlock(Do,{id:`group-${t.unref(je)(t.unref(Je)(C))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(E.icons[C.subGroup]??E.icons[C.group]),text:t.unref(Je)(C),href:s(t.unref(Je)(C)),key:t.unref(Je)(C),class:"text-capitalize",onClick:V=>E.$emit("goTo",{subGroup:C})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(m.value,(C,V)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:V},[t.createElementVNode("h4",{id:`section-${t.unref(je)(V)}`,class:"text-capitalize"},t.toDisplayString(V),9,Ig),t.createElementVNode("div",Vg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C,L=>(t.openBlock(),t.createBlock(Do,{id:t.unref(je)(L),"icon-b64-svg":"data:image/svg+xml;base64,"+(E.icons[L]??E.icons[o.value.subGroup??o.value.group]??E.icons[o.value.group]),text:i(L),href:c(L),key:L,class:"text-capitalize",onClick:O=>E.$emit("goTo",{element:L})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),Dg=/"(?:_|\\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*:/,Bg=/"(?: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*:/,Pg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Rg(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){$g(e);return}return n}function $g(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Mg(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(!Pg.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Dg.test(e)||Bg.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Rg)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const xg=/\d/,Fg=["-","_","/","."];function Ug(e=""){if(!xg.test(e))return e!==e.toLowerCase()}function Bl(e,n){const o=Fg,l=[];if(!e||typeof e!="string")return l;let r="",i,a;for(const s of e){const c=o.includes(s);if(c===!0){l.push(r),r="",i=void 0;continue}const d=Ug(s);if(a===!1){if(i===!1&&d===!0){l.push(r),r=s,i=d;continue}if(i===!0&&d===!1&&r.length>1){const m=r.at(-1);l.push(r.slice(0,Math.max(0,r.length-1))),r=m+s,i=d;continue}}r+=s,i=d,a=c}return l.push(r),l}function Hg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Pl(e,n){return e?(Array.isArray(e)?e:Bl(e)).map(o=>Hg(o)).join(""):""}function zg(e,n){return e?(Array.isArray(e)?e:Bl(e)).map(o=>o.toLowerCase()).join("-"):""}class ft{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}ft.prototype.normal={};ft.prototype.property={};ft.prototype.space=void 0;function Rl(e,n){const o={},l={};for(const r of e)Object.assign(o,r.property),Object.assign(l,r.normal);return new ft(o,l,n)}function vn(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 Gg=0;const U=Xe(),ie=Xe(),$l=Xe(),T=Xe(),Q=Xe(),et=Xe(),Ce=Xe();function Xe(){return 2**++Gg}const Sn=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ie,commaOrSpaceSeparated:Ce,commaSeparated:et,number:T,overloadedBoolean:$l,spaceSeparated:Q},Symbol.toStringTag,{value:"Module"})),sn=Object.keys(Sn);class xn extends _e{constructor(n,o,l,r){let i=-1;if(super(n,o),Bo(this,"space",r),typeof l=="number")for(;++i<sn.length;){const a=sn[i];Bo(this,sn[i],(l&Sn[a])===Sn[a])}}}xn.prototype.defined=!0;function Bo(e,n,o){o&&(e[n]=o)}function ot(e){const n={},o={};for(const[l,r]of Object.entries(e.properties)){const i=new xn(l,e.transform(e.attributes||{},l),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(i.mustUseProperty=!0),n[l]=i,o[vn(l)]=l,o[vn(i.attribute)]=l}return new ft(n,o,e.space)}const Ml=ot({properties:{ariaActiveDescendant:null,ariaAtomic:ie,ariaAutoComplete:null,ariaBusy:ie,ariaChecked:ie,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:Q,ariaCurrent:null,ariaDescribedBy:Q,ariaDetails:null,ariaDisabled:ie,ariaDropEffect:Q,ariaErrorMessage:null,ariaExpanded:ie,ariaFlowTo:Q,ariaGrabbed:ie,ariaHasPopup:null,ariaHidden:ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Q,ariaLevel:T,ariaLive:null,ariaModal:ie,ariaMultiLine:ie,ariaMultiSelectable:ie,ariaOrientation:null,ariaOwns:Q,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:ie,ariaReadOnly:ie,ariaRelevant:null,ariaRequired:ie,ariaRoleDescription:Q,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:ie,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function xl(e,n){return n in e?e[n]:n}function Fl(e,n){return xl(e,n.toLowerCase())}const Wg=ot({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:et,acceptCharset:Q,accessKey:Q,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:Q,autoFocus:U,autoPlay:U,blocking:Q,capture:null,charSet:null,checked:U,cite:null,className:Q,cols:T,colSpan:null,content:null,contentEditable:ie,controls:U,controlsList:Q,coords:T|et,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:$l,draggable:ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:Q,height:T,hidden:U,high:T,href:null,hrefLang:null,htmlFor:Q,httpEquiv:Q,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:Q,itemRef:Q,itemScope:U,itemType:Q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:T,pattern:null,ping:Q,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:Q,required:U,reversed:U,rows:T,rowSpan:T,sandbox:Q,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ie,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Q,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:ie,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:Fl}),jg=ot({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:Ce,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:Q,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:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:et,g2:et,glyphName:et,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,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:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xl}),Ul=ot({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()}}),Hl=ot({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fl}),zl=ot({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Kg=/[A-Z]/g,Po=/-[a-z]/g,Yg=/^data[-\w.:]+$/i;function qg(e,n){const o=vn(n);let l=n,r=_e;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&Yg.test(n)){if(n.charAt(4)==="-"){const i=n.slice(5).replace(Po,Zg);l="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=n.slice(4);if(!Po.test(i)){let a=i.replace(Kg,Xg);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}r=xn}return new r(l,n)}function Xg(e){return"-"+e.toLowerCase()}function Zg(e){return e.charAt(1).toUpperCase()}const Jg=Rl([Ml,Wg,Ul,Hl,zl],"html");Rl([Ml,jg,Ul,Hl,zl],"svg");const Fn=["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"],Qg=["p","h1","h2","h3","h4","h5","h6","li"];function Ot(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function Un(e){return Ot(e,"text")||Ot(e,Symbol.for("v-txt"))}function Gl(e){var n;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((n=e.children)==null?void 0:n.default)=="function"?e.children.default():[]}function Dt(e){if(!e)return"";if(Array.isArray(e))return e.map(Dt).join("");if(Un(e))return e.value||e.children||"";const n=Gl(e);return Array.isArray(n)?n.map(Dt).filter(Boolean).join(""):""}function Wl(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>Wl(l,n));let o=e;return n.some(l=>l==="*"||Ot(e,l))&&(o=Gl(e)||e,!Array.isArray(o)&&Qg.some(l=>Ot(e,l))&&(o=[o])),o}function jl(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>jl(Wl(o,[n[0]]),n.slice(1))).filter(o=>!(Un(o)&&Dt(o).trim()==="")):e}function Kl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?jl(e,n).reduce((o,l)=>(Un(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function e1(e,n){return n.reduce((o,l)=>{const r=t1(e,l);return r!==void 0&&(o[l]=r),o},{})}function t1(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const bn="default",Yl=/^@|^v-on:/,ql=/^:|^v-bind:/,n1=/^v-model/,o1=["select","textarea","input"],l1=["math","svg"],r1=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}`])),i1=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){var d,m,E,h,C,V,L;const n=(m=(d=t.getCurrentInstance())==null?void 0:d.appContext)==null?void 0:m.app,o=n==null?void 0:n.$nuxt,l=(o==null?void 0:o.$route)||(o==null?void 0:o._route),{mdc:r}=((E=o==null?void 0:o.$config)==null?void 0:E.public)||{},i={...(h=r==null?void 0:r.components)!=null&&h.prose&&e.prose!==!1?r1:{},...((C=r==null?void 0:r.components)==null?void 0:C.map)||{},...t.toRaw(((L=(V=e.data)==null?void 0:V.mdc)==null?void 0:L.components)||{}),...e.components},a=t.computed(()=>{var g;const O=(((g=e.body)==null?void 0:g.children)||[]).map(k=>k.tag||k.type).filter(k=>!Fn.includes(k));return Array.from(new Set(O)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,O=>{Object.assign(s,O)}),await E1(e.body,{tags:i});function c(O,g){const k=O.split(".").length-1;return O.split(".").reduce((S,p,b)=>b==k&&S?(S[p]=g,S[p]):typeof S=="object"?S[p]:void 0,s)}return{tags:i,contentKey:a,route:l,runtimeData:s,updateRuntimeData:c}},render(e){var C,V;const{tags:n,tag:o,body:l,data:r,contentKey:i,route:a,unwrap:s,runtimeData:c,updateRuntimeData:d}=e;if(!l)return null;const m={...r,tags:n,$route:a,runtimeData:c,updateRuntimeData:d},E=o!==!1?Ln(o||((C=m.component)==null?void 0:C.name)||m.component||"div"):void 0;return E?t.h(E,{...(V=m.component)==null?void 0:V.props,class:e.class,...this.$attrs,key:i},{default:h}):h==null?void 0:h();function h(){const L=Xl(l,t.h,{documentMeta:m,parentScope:m,resolveComponent:Ln});return L!=null&&L.default?s?Kl(L.default(),typeof s=="string"?s.split(" "):["*"]):L.default():null}}});function a1(e,n,o){const{documentMeta:l,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 a=e.tag,s=Jl(e,l.tags);if(e.tag==="binding")return s1(e,n,l,r);const c=Zl(s)?E=>E:i;if(s==="script")return n("pre",{class:"script-to-pre"},`<script>
|
|
28
|
-
`+
|
|
29
|
-
<\/script>`);const
|
|
27
|
+
`.concat(m.code)},u=t.ref(null),h=t.computed(()=>{var m;return(m=l.schema.properties)==null?void 0:m.$examples}),E=t.computed(()=>{var m,b;return Object.fromEntries((b=(m=l.schema.properties)==null?void 0:m.$metrics)==null?void 0:b.map(I=>[I.name,{...I,name:void 0}]))}),{githubLight:g,githubDark:C,yaml:V,python:L,javascript:O,createJavaScriptRegexEngine:p,createHighlighterCore:k}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),n=await n,o(),n);u.value=([n,o]=t.withAsyncContext(()=>k({themes:[l.darkMode?C:g],langs:[V,L,O],engine:p()})),n=await n,o(),n);const S="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{var m;window.removeEventListener("hashchange",s),(m=u.value)==null||m.dispose()}),(m,b)=>{var I,N,x,H,J,ce;return t.openBlock(),t.createElementBlock("div",og,[t.createElementVNode("div",null,[(I=m.schema.properties)!=null&&I.$beta?(t.openBlock(),t.createElementBlock("div",lg,b[0]||(b[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),(N=m.schema.properties)!=null&&N.title?(t.openBlock(),t.createElementBlock("div",rg,[t.renderSlot(m.$slots,"markdown",{content:m.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(x=m.schema.properties)!=null&&x.description?(t.openBlock(),t.createElementBlock("div",ig,[t.renderSlot(m.$slots,"markdown",{content:m.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Oo,{highlighter:u.value,language:"yaml",theme:S,code:`type: "${m.pluginType}"`,key:m.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:m.pluginType},[h.value?(t.openBlock(),t.createBlock(It,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:t.withCtx(()=>[t.createElementVNode("div",ag,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,(F,he)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m.pluginType+"-"+he},[t.createElementVNode("div",sg,[t.createElementVNode("div",cg,[F.title?t.renderSlot(m.$slots,"markdown",{key:0,content:F.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),F.code?(t.openBlock(),t.createBlock(Oo,{key:0,highlighter:u.value,language:F.lang??"yaml",theme:S,code:c(F)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),he<h.value.length-1?(t.openBlock(),t.createElementBlock("hr",ug)):t.createCommentVNode("",!0)],64))),128))])]),_:3})):t.createCommentVNode("",!0),(H=m.schema.properties)!=null&&H.properties?(t.openBlock(),t.createBlock(Nt,{key:1,class:"plugin-section",properties:m.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":m.propsInitiallyExpanded,"force-include":m.forceIncludeProperties},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",dg,[t.renderSlot(m.$slots,"markdown",{content:F},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include"])):t.createCommentVNode("",!0),(J=m.schema.outputs)!=null&&J.properties&&Object.keys(m.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(Nt,{key:2,class:"plugin-section",properties:m.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",fg,[t.renderSlot(m.$slots,"markdown",{content:F},void 0,!0)])]),_:3},8,["properties"])):t.createCommentVNode("",!0),(ce=m.schema.properties)!=null&&ce.$metrics?(t.openBlock(),t.createBlock(Nt,{key:3,class:"plugin-section",properties:E.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",mg,[t.renderSlot(m.$slots,"markdown",{content:F},void 0,!0)])]),_:3},8,["properties"])):t.createCommentVNode("",!0),m.schema.definitions&&Object.keys(m.schema.definitions).length>0?(t.openBlock(),t.createBlock(It,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":r.value,key:`definitions-${m.pluginType}-${a.value}`},{content:t.withCtx(()=>[t.createElementVNode("div",pg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(m.schema.definitions),([F,he])=>(t.openBlock(),t.createBlock(Nt,{properties:he.properties,"section-name":he.title??F.split("_")[0],href:F,"show-dynamic":!1,"initially-expanded":i.value.has(F),key:m.pluginType+"-"+F,class:"plugin-section nested-button-py-2",onExpand:Ae=>{r.value=!0,i.value.add(F)}},{markdown:t.withCtx(({content:Ae})=>[t.createElementVNode("div",gg,[t.renderSlot(m.$slots,"markdown",{content:Ae},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):t.createCommentVNode("",!0)]))])}}}),Eg=B(hg,[["__scopeId","data-v-5953ec4c"]]),kg={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_g=["aria-hidden","aria-label"],yg=["fill","width","height"],Cg={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},Ng={key:0};function vg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(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",Cg,[o.title?(t.openBlock(),t.createElementBlock("title",Ng,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,yg))],16,_g)}const Sg=B(kg,[["render",vg]]),bg=["href"],Lg=["src","alt"],Tg=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const n=e,{path:o}=Ln.useRoute(),l=t.computed(()=>n.href===void 0?`${o}/${je(n.text)}`:n.href);return(r,i)=>(t.openBlock(),t.createElementBlock("a",{href:l.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[t.createElementVNode("img",{src:r.iconB64Svg,alt:`${r.text} icon`},null,8,Lg),t.createTextVNode(t.toDisplayString(r.text)+" ",1),t.createVNode(Sg,{class:"ms-auto"})],8,bg))}}),Do=B(Tg,[["__scopeId","data-v-b787c0f3"]]),wg={class:"d-flex flex-column gap-4"},Ag={key:1,class:"d-flex flex-column"},Ig=["id"],Vg={class:"d-flex flex-column"},Og=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(E=>n.subGroup===void 0?!0:je(Je(E))===n.subGroup)),l=t.computed(()=>{var E,g;return((E=o.value)==null?void 0:E.longDescription)??((g=o.value)==null?void 0:g.description)}),r=t.computed(()=>n.plugins.filter(E=>E.name.toLowerCase()===n.pluginName.toLowerCase()&&E.subGroup!==void 0)),i=E=>{let g=E.split(".");return g==null?void 0:g[g.length-1]},{path:a}=Ln.useRoute(),s=E=>`${a}/${je(E)}`,c=E=>`${a}/${E}`;function u(E){return Object.fromEntries(Object.entries(E).filter(([g,C])=>$o(g,C)).map(([g,C])=>[g.replaceAll(/[A-Z]/g,V=>` ${V}`),C.filter(({deprecated:V})=>!V).map(({cls:V})=>V)]))}const h=t.computed(()=>u(o.value));return(E,g)=>(t.openBlock(),t.createElementBlock("div",wg,[l.value!==void 0?t.renderSlot(E.$slots,"markdown",{key:0,content:l.value.replaceAll(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),E.subGroup===void 0&&E.plugins.length>1?(t.openBlock(),t.createElementBlock("div",Ag,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,C=>(t.openBlock(),t.createBlock(Do,{id:`group-${t.unref(je)(t.unref(Je)(C))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(E.icons[C.subGroup]??E.icons[C.group]),text:t.unref(Je)(C),href:s(t.unref(Je)(C)),key:t.unref(Je)(C),class:"text-capitalize",onClick:V=>E.$emit("goTo",{subGroup:C})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(h.value,(C,V)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:V},[t.createElementVNode("h4",{id:`section-${t.unref(je)(V)}`,class:"text-capitalize"},t.toDisplayString(V),9,Ig),t.createElementVNode("div",Vg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C,L=>(t.openBlock(),t.createBlock(Do,{id:t.unref(je)(L),"icon-b64-svg":"data:image/svg+xml;base64,"+(E.icons[L]??E.icons[o.value.subGroup??o.value.group]??E.icons[o.value.group]),text:i(L),href:c(L),key:L,class:"text-capitalize",onClick:O=>E.$emit("goTo",{element:L})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),Dg=/"(?:_|\\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*:/,Bg=/"(?: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*:/,Pg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Rg(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){$g(e);return}return n}function $g(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Mg(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(!Pg.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Dg.test(e)||Bg.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Rg)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const xg=/\d/,Fg=["-","_","/","."];function Ug(e=""){if(!xg.test(e))return e!==e.toLowerCase()}function Bl(e,n){const o=Fg,l=[];if(!e||typeof e!="string")return l;let r="",i,a;for(const s of e){const c=o.includes(s);if(c===!0){l.push(r),r="",i=void 0;continue}const u=Ug(s);if(a===!1){if(i===!1&&u===!0){l.push(r),r=s,i=u;continue}if(i===!0&&u===!1&&r.length>1){const h=r.at(-1);l.push(r.slice(0,Math.max(0,r.length-1))),r=h+s,i=u;continue}}r+=s,i=u,a=c}return l.push(r),l}function Hg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Pl(e,n){return e?(Array.isArray(e)?e:Bl(e)).map(o=>Hg(o)).join(""):""}function zg(e,n){return e?(Array.isArray(e)?e:Bl(e)).map(o=>o.toLowerCase()).join("-"):""}class ft{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}ft.prototype.normal={};ft.prototype.property={};ft.prototype.space=void 0;function Rl(e,n){const o={},l={};for(const r of e)Object.assign(o,r.property),Object.assign(l,r.normal);return new ft(o,l,n)}function Nn(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 Gg=0;const U=Xe(),ie=Xe(),$l=Xe(),T=Xe(),Q=Xe(),et=Xe(),Ce=Xe();function Xe(){return 2**++Gg}const vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ie,commaOrSpaceSeparated:Ce,commaSeparated:et,number:T,overloadedBoolean:$l,spaceSeparated:Q},Symbol.toStringTag,{value:"Module"})),an=Object.keys(vn);class xn extends _e{constructor(n,o,l,r){let i=-1;if(super(n,o),Bo(this,"space",r),typeof l=="number")for(;++i<an.length;){const a=an[i];Bo(this,an[i],(l&vn[a])===vn[a])}}}xn.prototype.defined=!0;function Bo(e,n,o){o&&(e[n]=o)}function ot(e){const n={},o={};for(const[l,r]of Object.entries(e.properties)){const i=new xn(l,e.transform(e.attributes||{},l),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(i.mustUseProperty=!0),n[l]=i,o[Nn(l)]=l,o[Nn(i.attribute)]=l}return new ft(n,o,e.space)}const Ml=ot({properties:{ariaActiveDescendant:null,ariaAtomic:ie,ariaAutoComplete:null,ariaBusy:ie,ariaChecked:ie,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:Q,ariaCurrent:null,ariaDescribedBy:Q,ariaDetails:null,ariaDisabled:ie,ariaDropEffect:Q,ariaErrorMessage:null,ariaExpanded:ie,ariaFlowTo:Q,ariaGrabbed:ie,ariaHasPopup:null,ariaHidden:ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Q,ariaLevel:T,ariaLive:null,ariaModal:ie,ariaMultiLine:ie,ariaMultiSelectable:ie,ariaOrientation:null,ariaOwns:Q,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:ie,ariaReadOnly:ie,ariaRelevant:null,ariaRequired:ie,ariaRoleDescription:Q,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:ie,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function xl(e,n){return n in e?e[n]:n}function Fl(e,n){return xl(e,n.toLowerCase())}const Wg=ot({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:et,acceptCharset:Q,accessKey:Q,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:Q,autoFocus:U,autoPlay:U,blocking:Q,capture:null,charSet:null,checked:U,cite:null,className:Q,cols:T,colSpan:null,content:null,contentEditable:ie,controls:U,controlsList:Q,coords:T|et,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:$l,draggable:ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:Q,height:T,hidden:U,high:T,href:null,hrefLang:null,htmlFor:Q,httpEquiv:Q,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:Q,itemRef:Q,itemScope:U,itemType:Q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:T,pattern:null,ping:Q,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:Q,required:U,reversed:U,rows:T,rowSpan:T,sandbox:Q,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ie,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Q,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:ie,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:Fl}),jg=ot({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:Ce,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:Q,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:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:et,g2:et,glyphName:et,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,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:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xl}),Ul=ot({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()}}),Hl=ot({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fl}),zl=ot({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Kg=/[A-Z]/g,Po=/-[a-z]/g,Yg=/^data[-\w.:]+$/i;function qg(e,n){const o=Nn(n);let l=n,r=_e;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&Yg.test(n)){if(n.charAt(4)==="-"){const i=n.slice(5).replace(Po,Zg);l="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=n.slice(4);if(!Po.test(i)){let a=i.replace(Kg,Xg);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}r=xn}return new r(l,n)}function Xg(e){return"-"+e.toLowerCase()}function Zg(e){return e.charAt(1).toUpperCase()}const Jg=Rl([Ml,Wg,Ul,Hl,zl],"html");Rl([Ml,jg,Ul,Hl,zl],"svg");const Fn=["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"],Qg=["p","h1","h2","h3","h4","h5","h6","li"];function Vt(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function Un(e){return Vt(e,"text")||Vt(e,Symbol.for("v-txt"))}function Gl(e){var n;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((n=e.children)==null?void 0:n.default)=="function"?e.children.default():[]}function Ot(e){if(!e)return"";if(Array.isArray(e))return e.map(Ot).join("");if(Un(e))return e.value||e.children||"";const n=Gl(e);return Array.isArray(n)?n.map(Ot).filter(Boolean).join(""):""}function Wl(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>Wl(l,n));let o=e;return n.some(l=>l==="*"||Vt(e,l))&&(o=Gl(e)||e,!Array.isArray(o)&&Qg.some(l=>Vt(e,l))&&(o=[o])),o}function jl(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>jl(Wl(o,[n[0]]),n.slice(1))).filter(o=>!(Un(o)&&Ot(o).trim()==="")):e}function Kl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?jl(e,n).reduce((o,l)=>(Un(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function e1(e,n){return n.reduce((o,l)=>{const r=t1(e,l);return r!==void 0&&(o[l]=r),o},{})}function t1(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const Sn="default",Yl=/^@|^v-on:/,ql=/^:|^v-bind:/,n1=/^v-model/,o1=["select","textarea","input"],l1=["math","svg"],r1=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}`])),i1=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){var u,h,E,g,C,V,L;const n=(h=(u=t.getCurrentInstance())==null?void 0:u.appContext)==null?void 0:h.app,o=n==null?void 0:n.$nuxt,l=(o==null?void 0:o.$route)||(o==null?void 0:o._route),{mdc:r}=((E=o==null?void 0:o.$config)==null?void 0:E.public)||{},i={...(g=r==null?void 0:r.components)!=null&&g.prose&&e.prose!==!1?r1:{},...((C=r==null?void 0:r.components)==null?void 0:C.map)||{},...t.toRaw(((L=(V=e.data)==null?void 0:V.mdc)==null?void 0:L.components)||{}),...e.components},a=t.computed(()=>{var p;const O=(((p=e.body)==null?void 0:p.children)||[]).map(k=>k.tag||k.type).filter(k=>!Fn.includes(k));return Array.from(new Set(O)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,O=>{Object.assign(s,O)}),await E1(e.body,{tags:i});function c(O,p){const k=O.split(".").length-1;return O.split(".").reduce((S,m,b)=>b==k&&S?(S[m]=p,S[m]):typeof S=="object"?S[m]:void 0,s)}return{tags:i,contentKey:a,route:l,runtimeData:s,updateRuntimeData:c}},render(e){var C,V;const{tags:n,tag:o,body:l,data:r,contentKey:i,route:a,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const h={...r,tags:n,$route:a,runtimeData:c,updateRuntimeData:u},E=o!==!1?bn(o||((C=h.component)==null?void 0:C.name)||h.component||"div"):void 0;return E?t.h(E,{...(V=h.component)==null?void 0:V.props,class:e.class,...this.$attrs,key:i},{default:g}):g==null?void 0:g();function g(){const L=Xl(l,t.h,{documentMeta:h,parentScope:h,resolveComponent:bn});return L!=null&&L.default?s?Kl(L.default(),typeof s=="string"?s.split(" "):["*"]):L.default():null}}});function a1(e,n,o){const{documentMeta:l,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 a=e.tag,s=Jl(e,l.tags);if(e.tag==="binding")return s1(e,n,l,r);const c=Zl(s)?E=>E:i;if(s==="script")return n("pre",{class:"script-to-pre"},`<script>
|
|
28
|
+
`+Ot(e)+`
|
|
29
|
+
<\/script>`);const u=c(s);typeof u=="object"&&(u.tag=a);const h=c1(e,l);return n(u,h,Xl(e,n,{documentMeta:l,parentScope:{...r,...h},resolveComponent:c}))}function Xl(e,n,o){const{documentMeta:l,parentScope:r,resolveComponent:i}=o,s=(e.children||[]).reduce((u,h)=>{if(!g1(h))return u[Sn].children.push(h),u;const E=p1(h);return u[E]=u[E]||{props:{},children:[]},h.type==="element"&&(u[E].props=h.props,u[E].children.push(...h.children||[])),u},{[Sn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[h,{props:E,children:g}])=>(g.length&&(u[h]=(C={})=>{const V=e1(C,Object.keys(E||{}));let L=g.map(O=>a1(O,n,{documentMeta:l,parentScope:{...r,...V},resolveComponent:i}));return E!=null&&E.unwrap&&(L=Kl(L,E.unwrap)),h1(L)}),u),{})}function s1(e,n,o,l={}){var u,h;const r={...o.runtimeData,...l,$document:o,$doc:o},i=/\.|\[(\d+)\]/,s=((u=e.props)==null?void 0:u.value.trim().split(i).filter(Boolean)).reduce((E,g)=>{if(E&&g in E)return typeof E[g]=="function"?E[g]():E[g]},r),c=(h=e.props)==null?void 0:h.defaultValue;return n(t.Text,s??c??"")}function c1(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(r,i){if(i==="__ignoreMap")return r;const a=l[i];if(n1.test(i))return u1(i,a,r,n,{native:o1.includes(o)});if(i==="v-bind")return d1(i,a,r,n);if(Yl.test(i))return f1(i,a,r,n);if(ql.test(i))return m1(i,a,r,n);const{attribute:s}=qg(Jg,i);return Array.isArray(a)&&a.every(c=>typeof c=="string")?(r[s]=a.join(" "),r):(r[s]=a,r)},{})}function u1(e,n,o,l,{native:r}){var c;const i=((c=e.match(/^v-model:([^=]+)/))==null?void 0:c[1])||"modelValue",a=r?"value":i,s=r?"onInput":`onUpdate:${i}`;return o[a]=zt(n,l.runtimeData),o[s]=u=>{var h;l.updateRuntimeData(n,r?(h=u.target)==null?void 0:h.value:u)},o}function d1(e,n,o,l){const r=zt(n,l);return o=Object.assign(o,r),o}function f1(e,n,o,l){return e=e.replace(Yl,""),o.on=o.on||{},o.on[e]=()=>zt(n,l),o}function m1(e,n,o,l){return e=e.replace(ql,""),o[e]=zt(n,l),o}const bn=e=>{if(typeof e=="string"){if(Fn.includes(e))return e;const n=t.resolveComponent(Pl(e),!1);return!e||(n==null?void 0: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,r)=>typeof l=="object"?l[r]:void 0,n);return typeof o>"u"?Mg(e):o}function p1(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||Sn}function g1(e){return e.tag==="template"}function Zl(e){return l1.includes(e)}function h1(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&(l==null?void 0:l.type)===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function E1(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const i=bn(r);i!=null&&i.__asyncLoader&&!i.__asyncResolved&&await i.__asyncLoader()}));function l(r,i){const a=r.tag;if(r.type==="text"||a==="binding"||r.type==="comment")return[];const s=Jl(r,i.tags);if(Zl(s))return[];const c=[];r.type!=="root"&&!Fn.includes(s)&&c.push(s);for(const u of r.children||[])c.push(...l(u,i));return c}}function Jl(e,n){var l;const o=e.tag;return!o||typeof((l=e.props)==null?void 0:l.__ignoreMap)<"u"?o:n[o]||n[Pl(o)]||n[zg(e.tag)]||o}const k1=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(i1,t.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=y.CLUSTER_PREFIX;exports.EVENTS=y.EVENTS;exports.NODE_SIZES=y.NODE_SIZES;exports.SECTIONS=y.SECTIONS;exports.Utils=y.Utils;exports.VueFlowUtils=y.VueFlowUtils;exports.editorViewTypes=y.editorViewTypes;exports.executeFlowBehaviours=y.executeFlowBehaviours;exports.logDisplayTypes=y.logDisplayTypes;exports.stateDisplayValues=y.stateDisplayValues;exports.stateGlobalChartTypes=y.stateGlobalChartTypes;exports.storageKeys=y.storageKeys;exports.DependenciesNode=oc;exports.MDCRenderer=k1;exports.PluginIndex=Og;exports.STATES=G;exports.SchemaToHtml=Eg;exports.State=ae;exports.TaskIcon=Pn;exports.Topology=If;exports.YamlUtils=cr;exports.cssVariable=Ne;exports.getMDCParser=Ai;exports.isEntryAPluginElementPredicate=$o;exports.slugify=je;exports.subGroupName=Je;
|
|
30
30
|
//# sourceMappingURL=kestra-index.cjs.js.map
|