@kestra-io/ui-libs 0.0.230 → 0.0.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Xl=Object.create;var Gn=Object.defineProperty;var Zl=Object.getOwnPropertyDescriptor;var Jl=Object.getOwnPropertyNames;var Ql=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var tr=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of Jl(n))!er.call(e,a)&&a!==o&&Gn(e,a,{get:()=>n[a],enumerable:!(l=Zl(n,a))||l.enumerable});return e};var nr=(e,n,o)=>(o=e!=null?Xl(Ql(e)):{},tr(n||!e||!e.__esModule?Gn(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("yaml"),N=require("./VueFlowUtils-BhTB7zMW.cjs"),W=require("./FlowYamlUtils-DvtepVr2.cjs"),t=require("vue"),ne=require("@vue-flow/core"),Zt=require("@vue-flow/controls"),Jt=require("moment"),or=require("@popperjs/core"),vn=require("vue-router"),lr={lineWidth:0},Wn=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],rr={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(r){if(r){if(r instanceof We.YAMLMap&&r.get("type")!==void 0&&n===r.get("id"))return o?o(r):r;if(r.items)for(const[i,s]of r.items.entries()){let c;if(s instanceof We.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(r instanceof We.YAMLMap?r.set(s.key.value,c):r.items[i]=c),!o&&c))return c}}}const a=l(e.contents);if(a!==void 0)return o?new We.Document(a):new We.Document(a)},replaceTaskInDocument(e,n,o,l="tasks",a="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:a,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),a=this._extractTask(l,n),r=this._extractTask(l,o);return We.visit(l,{Pair(i,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,()=>r),this._extractTask(l,o,()=>a),l.toString(lr)},insertTask(e,n,o,l,a){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:a})},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===N.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((a,r)=>W.deleteBlock({source:a,section:r,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},ve=e=>{const n=document.querySelector(":root"),o=n?getComputedStyle(n):null;return o==null?void 0:o.getPropertyValue(e)};var ar=N.requireMapValues();const gt=W.getDefaultExportFromCjs(ar),D=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},ir={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sr=["aria-hidden","aria-label"],cr=["fill","width","height"],ur={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"},dr={key:0};function fr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ur,[o.title?(t.openBlock(),t.createElementBlock("title",dr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,cr))],16,sr)}const Kn=D(ir,[["render",fr]]),mr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pr=["aria-hidden","aria-label"],gr=["fill","width","height"],hr={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"},Er={key:0};function _r(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",hr,[o.title?(t.openBlock(),t.createElementBlock("title",Er,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gr))],16,pr)}const kr=D(mr,[["render",_r]]),yr={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cr=["aria-hidden","aria-label"],vr=["fill","width","height"],Nr={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"},Sr={key:0};function br(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nr,[o.title?(t.openBlock(),t.createElementBlock("title",Sr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,vr))],16,Cr)}const Lr=D(yr,[["render",br]]),wr={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tr=["aria-hidden","aria-label"],Ar=["fill","width","height"],Ir={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"},Vr={key:0};function Br(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ir,[o.title?(t.openBlock(),t.createElementBlock("title",Vr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ar))],16,Tr)}const ln=D(wr,[["render",Br]]),Or={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Dr=["aria-hidden","aria-label"],Pr=["fill","width","height"],$r={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"},Rr={key:0};function Mr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",$r,[o.title?(t.openBlock(),t.createElementBlock("title",Rr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pr))],16,Dr)}const xr=D(Or,[["render",Mr]]),Fr={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ur=["aria-hidden","aria-label"],Hr=["fill","width","height"],zr={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"},Gr={key:0};function Wr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hr))],16,Ur)}const Kr=D(Fr,[["render",Wr]]),jr={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yr=["aria-hidden","aria-label"],qr=["fill","width","height"],Xr={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"},Zr={key:0};function Jr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xr,[o.title?(t.openBlock(),t.createElementBlock("title",Zr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qr))],16,Yr)}const bt=D(jr,[["render",Jr]]),Qr={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ea=["aria-hidden","aria-label"],ta=["fill","width","height"],na={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"},oa={key:0};function la(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",na,[o.title?(t.openBlock(),t.createElementBlock("title",oa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ta))],16,ea)}const ra=D(Qr,[["render",la]]),aa={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ia=["aria-hidden","aria-label"],sa=["fill","width","height"],ca={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"},ua={key:0};function da(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ca,[o.title?(t.openBlock(),t.createElementBlock("title",ua,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sa))],16,ia)}const fa=D(aa,[["render",da]]),ma={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pa=["aria-hidden","aria-label"],ga=["fill","width","height"],ha={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"},Ea={key:0};function _a(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ha,[o.title?(t.openBlock(),t.createElementBlock("title",Ea,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ga))],16,pa)}const jn=D(ma,[["render",_a]]),ka={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ya=["aria-hidden","aria-label"],Ca=["fill","width","height"],va={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"},Na={key:0};function Sa(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",va,[o.title?(t.openBlock(),t.createElementBlock("title",Na,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ca))],16,ya)}const Yn=D(ka,[["render",Sa]]),G=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:ra,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Kr,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:kr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Lr,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:ln,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:xr,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:bt,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:ln,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Kn,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:fa,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:jn,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:jn,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:Kn,isRunning:!1,isKillable:!1,isFailed:!1}});class te{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 SKIPPED(){return G.SKIPPED.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=>ve("--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 ba(){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 Nt={exports:{}},La=Nt.exports,qn;function wa(){return qn||(qn=1,function(e,n){(function(o,l,a){e.exports=a(),e.exports.default=a()})("slugify",La,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 a(r,i){if(typeof r!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var s=l[i.locale]||{},c=i.replacement===void 0?"-":i.replacement,u=i.trim===void 0?!0:i.trim,E=r.normalize().split("").reduce(function(g,h){var _=s[h];return _===void 0&&(_=o[h]),_===void 0&&(_=h),_===c&&(_=" "),g+_.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(E=E.replace(/[^A-Za-z0-9\s]/g,"")),u&&(E=E.trim()),E=E.replace(/\s+/g,c),i.lower&&(E=E.toLowerCase()),E}return a.extend=function(r){Object.assign(o,r)},a})}(Nt)),Nt.exports}var Ta=wa();const $o=W.getDefaultExportFromCjs(Ta);$o.extend({"(":"-",")":""});function Ke(e){return $o(e,{lower:!0,locale:"en"})}function Ro(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)}const Aa={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ia=["aria-hidden","aria-label"],Va=["fill","width","height"],Ba={d:"M12 19C13.1 19 14 19.9 14 21S13.1 23 12 23 10 22.1 10 21 10.9 19 12 19M12 1C13.1 1 14 1.9 14 3S13.1 5 12 5 10 4.1 10 3 10.9 1 12 1M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M3 10C4.1 10 5 10.9 5 12S4.1 14 3 14 1 13.1 1 12 1.9 10 3 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M21 10C22.1 10 23 10.9 23 12S22.1 14 21 14 19 13.1 19 12 19.9 10 21 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z"},Oa={key:0};function Da(e,n,o,l,a,r){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-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ba,[o.title?(t.openBlock(),t.createElementBlock("title",Oa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Va))],16,Ia)}const Pa=D(Aa,[["render",Da]]),$a=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(Pa,{class:"loading-dots-circle",alt:n.alt},null,8,["alt"]))}}),Mo=D($a,[["__scopeId","data-v-a7ad4137"]]);/*!
|
|
1
|
+
"use strict";var Xl=Object.create;var Gn=Object.defineProperty;var Zl=Object.getOwnPropertyDescriptor;var Jl=Object.getOwnPropertyNames;var Ql=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var tr=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of Jl(n))!er.call(e,a)&&a!==o&&Gn(e,a,{get:()=>n[a],enumerable:!(l=Zl(n,a))||l.enumerable});return e};var nr=(e,n,o)=>(o=e!=null?Xl(Ql(e)):{},tr(n||!e||!e.__esModule?Gn(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("yaml"),S=require("./VueFlowUtils-BhTB7zMW.cjs"),W=require("./FlowYamlUtils-DvtepVr2.cjs"),t=require("vue"),ne=require("@vue-flow/core"),Zt=require("@vue-flow/controls"),Jt=require("moment"),or=require("@popperjs/core"),vn=require("vue-router"),lr={lineWidth:0},Wn=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],rr={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(r){if(r){if(r instanceof We.YAMLMap&&r.get("type")!==void 0&&n===r.get("id"))return o?o(r):r;if(r.items)for(const[i,s]of r.items.entries()){let c;if(s instanceof We.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(r instanceof We.YAMLMap?r.set(s.key.value,c):r.items[i]=c),!o&&c))return c}}}const a=l(e.contents);if(a!==void 0)return o?new We.Document(a):new We.Document(a)},replaceTaskInDocument(e,n,o,l="tasks",a="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:a,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),a=this._extractTask(l,n),r=this._extractTask(l,o);return We.visit(l,{Pair(i,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,()=>r),this._extractTask(l,o,()=>a),l.toString(lr)},insertTask(e,n,o,l,a){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:a})},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===S.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((a,r)=>W.deleteBlock({source:a,section:r,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},ve=e=>{const n=document.querySelector(":root"),o=n?getComputedStyle(n):null;return o==null?void 0:o.getPropertyValue(e)};var ar=S.requireMapValues();const gt=W.getDefaultExportFromCjs(ar),D=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},ir={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sr=["aria-hidden","aria-label"],cr=["fill","width","height"],ur={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"},dr={key:0};function fr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ur,[o.title?(t.openBlock(),t.createElementBlock("title",dr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,cr))],16,sr)}const Kn=D(ir,[["render",fr]]),mr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pr=["aria-hidden","aria-label"],gr=["fill","width","height"],hr={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"},Er={key:0};function _r(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",hr,[o.title?(t.openBlock(),t.createElementBlock("title",Er,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gr))],16,pr)}const kr=D(mr,[["render",_r]]),yr={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cr=["aria-hidden","aria-label"],vr=["fill","width","height"],Nr={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"},Sr={key:0};function br(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nr,[o.title?(t.openBlock(),t.createElementBlock("title",Sr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,vr))],16,Cr)}const Lr=D(yr,[["render",br]]),wr={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tr=["aria-hidden","aria-label"],Ar=["fill","width","height"],Ir={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"},Vr={key:0};function Br(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ir,[o.title?(t.openBlock(),t.createElementBlock("title",Vr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ar))],16,Tr)}const ln=D(wr,[["render",Br]]),Or={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Dr=["aria-hidden","aria-label"],Pr=["fill","width","height"],$r={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"},Rr={key:0};function Mr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",$r,[o.title?(t.openBlock(),t.createElementBlock("title",Rr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pr))],16,Dr)}const xr=D(Or,[["render",Mr]]),Fr={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ur=["aria-hidden","aria-label"],Hr=["fill","width","height"],zr={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"},Gr={key:0};function Wr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hr))],16,Ur)}const Kr=D(Fr,[["render",Wr]]),jr={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yr=["aria-hidden","aria-label"],qr=["fill","width","height"],Xr={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"},Zr={key:0};function Jr(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xr,[o.title?(t.openBlock(),t.createElementBlock("title",Zr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qr))],16,Yr)}const bt=D(jr,[["render",Jr]]),Qr={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ea=["aria-hidden","aria-label"],ta=["fill","width","height"],na={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"},oa={key:0};function la(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",na,[o.title?(t.openBlock(),t.createElementBlock("title",oa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ta))],16,ea)}const ra=D(Qr,[["render",la]]),aa={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ia=["aria-hidden","aria-label"],sa=["fill","width","height"],ca={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"},ua={key:0};function da(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ca,[o.title?(t.openBlock(),t.createElementBlock("title",ua,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sa))],16,ia)}const fa=D(aa,[["render",da]]),ma={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pa=["aria-hidden","aria-label"],ga=["fill","width","height"],ha={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"},Ea={key:0};function _a(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ha,[o.title?(t.openBlock(),t.createElementBlock("title",Ea,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ga))],16,pa)}const jn=D(ma,[["render",_a]]),ka={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ya=["aria-hidden","aria-label"],Ca=["fill","width","height"],va={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"},Na={key:0};function Sa(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",va,[o.title?(t.openBlock(),t.createElementBlock("title",Na,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ca))],16,ya)}const Yn=D(ka,[["render",Sa]]),G=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:ra,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:Kr,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:kr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:Lr,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:ln,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:xr,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:bt,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:ln,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:Kn,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:fa,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:jn,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:jn,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:Kn,isRunning:!1,isKillable:!1,isFailed:!1}});class te{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 SKIPPED(){return G.SKIPPED.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=>ve("--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 ba(){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 Nt={exports:{}},La=Nt.exports,qn;function wa(){return qn||(qn=1,function(e,n){(function(o,l,a){e.exports=a(),e.exports.default=a()})("slugify",La,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 a(r,i){if(typeof r!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var s=l[i.locale]||{},c=i.replacement===void 0?"-":i.replacement,u=i.trim===void 0?!0:i.trim,E=r.normalize().split("").reduce(function(g,h){var _=s[h];return _===void 0&&(_=o[h]),_===void 0&&(_=h),_===c&&(_=" "),g+_.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(E=E.replace(/[^A-Za-z0-9\s]/g,"")),u&&(E=E.trim()),E=E.replace(/\s+/g,c),i.lower&&(E=E.toLowerCase()),E}return a.extend=function(r){Object.assign(o,r)},a})}(Nt)),Nt.exports}var Ta=wa();const $o=W.getDefaultExportFromCjs(Ta);$o.extend({"(":"-",")":""});function Ke(e){return $o(e,{lower:!0,locale:"en"})}function Ro(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)}const Aa={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ia=["aria-hidden","aria-label"],Va=["fill","width","height"],Ba={d:"M12 19C13.1 19 14 19.9 14 21S13.1 23 12 23 10 22.1 10 21 10.9 19 12 19M12 1C13.1 1 14 1.9 14 3S13.1 5 12 5 10 4.1 10 3 10.9 1 12 1M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M3 10C4.1 10 5 10.9 5 12S4.1 14 3 14 1 13.1 1 12 1.9 10 3 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M21 10C22.1 10 23 10.9 23 12S22.1 14 21 14 19 13.1 19 12 19.9 10 21 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z"},Oa={key:0};function Da(e,n,o,l,a,r){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-circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ba,[o.title?(t.openBlock(),t.createElementBlock("title",Oa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Va))],16,Ia)}const Pa=D(Aa,[["render",Da]]),$a=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(Pa,{class:"loading-dots-circle",alt:n.alt},null,8,["alt"]))}}),Mo=D($a,[["__scopeId","data-v-a7ad4137"]]);/*!
|
|
2
2
|
* shared v11.1.3
|
|
3
3
|
* (c) 2025 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
* (c) 2025 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
10
|
*/function Ya(e,n,o){return{line:e,column:n,offset:o}}function rn(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},qa=17,Xa={[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:a,args:r}=o,i=process.env.NODE_ENV!=="production"?Dt((a||Xa)[e]||"",...r||[]):e,s=new SyntaxError(String(i));return s.code=e,n&&(s.location=n),s.domain=l,s}function Za(e){throw e}const Ja=/<\/?[\w\s="/.':;#-\/]+>/,Qa=e=>Ja.test(e),Ve=" ",ei="\r",ge=`
|
|
11
|
-
`,ti="\u2028",ni="\u2029";function oi(e){const n=e;let o=0,l=1,a=1,r=0;const i=v=>n[v]===ei&&n[v+1]===ge,s=v=>n[v]===ge,c=v=>n[v]===ni,u=v=>n[v]===ti,E=v=>i(v)||s(v)||c(v)||u(v),g=()=>o,h=()=>l,_=()=>a,A=()=>r,S=v=>i(v)||c(v)||u(v)?ge:n[v],C=()=>S(o),f=()=>S(o+r);function k(){return r=0,E(o)&&(l++,a=0),i(o)&&o++,o++,a++,n[o]}function b(){return i(o+r)&&r++,r++,n[o+r]}function p(){o=0,l=1,a=1,r=0}function w(v=0){r=v}function V(){const v=o+r;for(;v!==o;)k();r=0}return{index:g,line:h,column:_,peekOffset:A,charAt:S,currentChar:C,currentPeek:f,next:k,peek:b,reset:p,resetPeek:w,skipToPeek:V}}const $e=void 0,li=".",eo="'",ri="tokenizer";function ai(e,n={}){const o=n.location!==!1,l=oi(e),a=()=>l.index(),r=()=>Ya(l.line(),l.column(),l.index()),i=r(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:E}=n;function g(d,m,L,...R){const oe=u();if(m.column+=L,m.offset+=L,E){const le=o?rn(oe.startLoc,m):null,K=nt(d,le,{domain:ri,args:R});E(K)}}function h(d,m,L){d.endLoc=r(),d.currentType=m;const R={type:m};return o&&(R.loc=rn(d.startLoc,d.endLoc)),L!=null&&(R.value=L),R}const _=d=>h(d,13);function A(d,m){return d.currentChar()===m?(d.next(),m):(g(M.EXPECTED_TOKEN,r(),0,m),"")}function S(d){let m="";for(;d.currentPeek()===Ve||d.currentPeek()===ge;)m+=d.currentPeek(),d.peek();return m}function C(d){const m=S(d);return d.skipToPeek(),m}function f(d){if(d===$e)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function k(d){if(d===$e)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function b(d,m){const{currentType:L}=m;if(L!==2)return!1;S(d);const R=f(d.currentPeek());return d.resetPeek(),R}function p(d,m){const{currentType:L}=m;if(L!==2)return!1;S(d);const R=d.currentPeek()==="-"?d.peek():d.currentPeek(),oe=k(R);return d.resetPeek(),oe}function w(d,m){const{currentType:L}=m;if(L!==2)return!1;S(d);const R=d.currentPeek()===eo;return d.resetPeek(),R}function V(d,m){const{currentType:L}=m;if(L!==7)return!1;S(d);const R=d.currentPeek()===".";return d.resetPeek(),R}function v(d,m){const{currentType:L}=m;if(L!==8)return!1;S(d);const R=f(d.currentPeek());return d.resetPeek(),R}function x(d,m){const{currentType:L}=m;if(!(L===7||L===11))return!1;S(d);const R=d.currentPeek()===":";return d.resetPeek(),R}function H(d,m){const{currentType:L}=m;if(L!==9)return!1;const R=()=>{const le=d.currentPeek();return le==="{"?f(d.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Ve||!le?!1:le===ge?(d.peek(),R()):ce(d,!1)},oe=R();return d.resetPeek(),oe}function J(d){S(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function ce(d,m=!0){const L=(oe=!1,le="")=>{const K=d.currentPeek();return K==="{"||K==="@"||!K?oe:K==="|"?!(le===Ve||le===ge):K===Ve?(d.peek(),L(!0,Ve)):K===ge?(d.peek(),L(!0,ge)):!0},R=L();return m&&d.resetPeek(),R}function F(d,m){const L=d.currentChar();return L===$e?$e:m(L)?(d.next(),L):null}function he(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function Ae(d){return F(d,he)}function P(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function B(d){return F(d,P)}function z(d){const m=d.charCodeAt(0);return m>=48&&m<=57}function $(d){return F(d,z)}function Ie(d){const m=d.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function me(d){return F(d,Ie)}function Ue(d){let m="",L="";for(;m=$(d);)L+=m;return L}function Ut(d){let m="";for(;;){const L=d.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===Ve||L===ge)if(ce(d))m+=L,d.next();else{if(J(d))break;m+=L,d.next()}else m+=L,d.next()}return m}function Ht(d){C(d);let m="",L="";for(;m=B(d);)L+=m;return d.currentChar()===$e&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),L}function zt(d){C(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${Ue(d)}`):m+=Ue(d),d.currentChar()===$e&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),m}function Gt(d){return d!==eo&&d!==ge}function Hn(d){C(d),A(d,"'");let m="",L="";for(;m=F(d,Gt);)m==="\\"?L+=Wt(d):L+=m;const R=d.currentChar();return R===ge||R===$e?(g(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),R===ge&&(d.next(),A(d,"'")),L):(A(d,"'"),L)}function Wt(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return mt(d,m,4);case"U":return mt(d,m,6);default:return g(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function mt(d,m,L){A(d,m);let R="";for(let oe=0;oe<L;oe++){const le=me(d);if(!le){g(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${R}${d.currentChar()}`);break}R+=le}return`\\${m}${R}`}function Kt(d){return d!=="{"&&d!=="}"&&d!==Ve&&d!==ge}function jt(d){C(d);let m="",L="";for(;m=F(d,Kt);)L+=m;return L}function Yt(d){let m="",L="";for(;m=Ae(d);)L+=m;return L}function qt(d){const m=L=>{const R=d.currentChar();return R==="{"||R==="@"||R==="|"||R==="("||R===")"||!R||R===Ve?L:(L+=R,d.next(),m(L))};return m("")}function lt(d){C(d);const m=A(d,"|");return C(d),m}function rt(d,m){let L=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&g(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),L=h(m,2,"{"),C(d),m.braceNest++,L;case"}":return m.braceNest>0&&m.currentType===2&&g(M.EMPTY_PLACEHOLDER,r(),0),d.next(),L=h(m,3,"}"),m.braceNest--,m.braceNest>0&&C(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),L;case"@":return m.braceNest>0&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=He(d,m)||_(m),m.braceNest=0,L;default:{let oe=!0,le=!0,K=!0;if(J(d))return m.braceNest>0&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=h(m,1,lt(d)),m.braceNest=0,m.inLinked=!1,L;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return g(M.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,at(d,m);if(oe=b(d,m))return L=h(m,4,Ht(d)),C(d),L;if(le=p(d,m))return L=h(m,5,zt(d)),C(d),L;if(K=w(d,m))return L=h(m,6,Hn(d)),C(d),L;if(!oe&&!le&&!K)return L=h(m,12,jt(d)),g(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),C(d),L;break}}return L}function He(d,m){const{currentType:L}=m;let R=null;const oe=d.currentChar();switch((L===7||L===8||L===11||L===9)&&(oe===ge||oe===Ve)&&g(M.INVALID_LINKED_FORMAT,r(),0),oe){case"@":return d.next(),R=h(m,7,"@"),m.inLinked=!0,R;case".":return C(d),d.next(),h(m,8,".");case":":return C(d),d.next(),h(m,9,":");default:return J(d)?(R=h(m,1,lt(d)),m.braceNest=0,m.inLinked=!1,R):V(d,m)||x(d,m)?(C(d),He(d,m)):v(d,m)?(C(d),h(m,11,Yt(d))):H(d,m)?(C(d),oe==="{"?rt(d,m)||R:h(m,10,qt(d))):(L===7&&g(M.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,at(d,m))}}function at(d,m){let L={type:13};if(m.braceNest>0)return rt(d,m)||_(m);if(m.inLinked)return He(d,m)||_(m);switch(d.currentChar()){case"{":return rt(d,m)||_(m);case"}":return g(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),h(m,3,"}");case"@":return He(d,m)||_(m);default:{if(J(d))return L=h(m,1,lt(d)),m.braceNest=0,m.inLinked=!1,L;if(ce(d))return h(m,0,Ut(d));break}}return L}function Xt(){const{currentType:d,offset:m,startLoc:L,endLoc:R}=c;return c.lastType=d,c.lastOffset=m,c.lastStartLoc=L,c.lastEndLoc=R,c.offset=a(),c.startLoc=r(),l.currentChar()===$e?h(c,13):at(l,c)}return{nextToken:Xt,currentOffset:a,currentPosition:r,context:u}}const ii="parser",si=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ci(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 ui(e={}){const n=e.location!==!1,{onError:o}=e;function l(f,k,b,p,...w){const V=f.currentPosition();if(V.offset+=p,V.column+=p,o){const v=n?rn(b,V):null,x=nt(k,v,{domain:ii,args:w});o(x)}}function a(f,k,b){const p={type:f};return n&&(p.start=k,p.end=k,p.loc={start:b,end:b}),p}function r(f,k,b,p){n&&(f.end=k,f.loc&&(f.loc.end=b))}function i(f,k){const b=f.context(),p=a(3,b.offset,b.startLoc);return p.value=k,r(p,f.currentOffset(),f.currentPosition()),p}function s(f,k){const b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(5,p,w);return V.index=parseInt(k,10),f.nextToken(),r(V,f.currentOffset(),f.currentPosition()),V}function c(f,k){const b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(4,p,w);return V.key=k,f.nextToken(),r(V,f.currentOffset(),f.currentPosition()),V}function u(f,k){const b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(9,p,w);return V.value=k.replace(si,ci),f.nextToken(),r(V,f.currentOffset(),f.currentPosition()),V}function E(f){const k=f.nextToken(),b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(8,p,w);return k.type!==11?(l(f,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),V.value="",r(V,p,w),{nextConsumeToken:k,node:V}):(k.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,we(k)),V.value=k.value||"",r(V,f.currentOffset(),f.currentPosition()),{node:V})}function g(f,k){const b=f.context(),p=a(7,b.offset,b.startLoc);return p.value=k,r(p,f.currentOffset(),f.currentPosition()),p}function h(f){const k=f.context(),b=a(6,k.offset,k.startLoc);let p=f.nextToken();if(p.type===8){const w=E(f);b.modifier=w.node,p=w.nextConsumeToken||f.nextToken()}switch(p.type!==9&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),p=f.nextToken(),p.type===2&&(p=f.nextToken()),p.type){case 10:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=g(f,p.value||"");break;case 4:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=c(f,p.value||"");break;case 5:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=s(f,p.value||"");break;case 6:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=u(f,p.value||"");break;default:{l(f,M.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const w=f.context(),V=a(7,w.offset,w.startLoc);return V.value="",r(V,w.offset,w.startLoc),b.key=V,r(b,w.offset,w.startLoc),{nextConsumeToken:p,node:b}}}return r(b,f.currentOffset(),f.currentPosition()),{node:b}}function _(f){const k=f.context(),b=k.currentType===1?f.currentOffset():k.offset,p=k.currentType===1?k.endLoc:k.startLoc,w=a(2,b,p);w.items=[];let V=null;do{const H=V||f.nextToken();switch(V=null,H.type){case 0:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(i(f,H.value||""));break;case 5:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(s(f,H.value||""));break;case 4:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(c(f,H.value||""));break;case 6:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(u(f,H.value||""));break;case 7:{const J=h(f);w.items.push(J.node),V=J.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const v=k.currentType===1?k.lastOffset:f.currentOffset(),x=k.currentType===1?k.lastEndLoc:f.currentPosition();return r(w,v,x),w}function A(f,k,b,p){const w=f.context();let V=p.items.length===0;const v=a(1,k,b);v.cases=[],v.cases.push(p);do{const x=_(f);V||(V=x.items.length===0),v.cases.push(x)}while(w.currentType!==13);return V&&l(f,M.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),r(v,f.currentOffset(),f.currentPosition()),v}function S(f){const k=f.context(),{offset:b,startLoc:p}=k,w=_(f);return k.currentType===13?w:A(f,b,p,w)}function C(f){const k=ai(f,de({},e)),b=k.context(),p=a(0,b.offset,b.startLoc);return n&&p.loc&&(p.loc.source=f),p.body=S(k),e.onCacheKey&&(p.cacheKey=e.onCacheKey(f)),b.currentType!==13&&l(k,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,f[b.offset]||""),r(p,k.currentOffset(),k.currentPosition()),p}return{parse:C}}function we(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 di(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:r=>(o.helpers.add(r),r)}}function to(e,n){for(let o=0;o<e.length;o++)bn(e[o],n)}function bn(e,n){switch(e.type){case 1:to(e.cases,n),n.helper("plural");break;case 2:to(e.items,n);break;case 6:{bn(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 fi(e,n={}){const o=di(e);o.helper("normalize"),e.body&&bn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function mi(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=Sn(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 pi="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:pi,args:[e.type]})}delete e.type}const gi="parser";function hi(e,n){const{filename:o,breakLineCode:l,needIndent:a}=n,r=n.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(S,C){i.code+=S}function u(S,C=!0){const f=C?l:"";c(a?f+" ".repeat(S):f)}function E(S=!0){const C=++i.indentLevel;S&&u(C)}function g(S=!0){const C=--i.indentLevel;S&&u(C)}function h(){u(i.indentLevel)}return{context:s,push:c,indent:E,deindent:g,newline:h,helper:S=>`_${S}`,needIndent:()=>i.needIndent}}function Ei(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 _i(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const a=n.items.length;for(let r=0;r<a&&(tt(e,n.items[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}function ki(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const a=n.cases.length;for(let r=0;r<a&&(tt(e,n.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}}function yi(e,n){n.body?tt(e,n.body):e.push("null")}function tt(e,n){const{helper:o}=e;switch(n.type){case 0:yi(e,n);break;case 1:ki(e,n);break;case 2:_i(e,n);break;case 6:Ei(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:gi,args:[n.type]})}}const Ci=(e,n={})=>{const o=O(n.mode)?n.mode:"normal",l=O(n.filename)?n.filename:"message.intl";n.sourceMap;const a=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
11
|
+
`,ti="\u2028",ni="\u2029";function oi(e){const n=e;let o=0,l=1,a=1,r=0;const i=N=>n[N]===ei&&n[N+1]===ge,s=N=>n[N]===ge,c=N=>n[N]===ni,u=N=>n[N]===ti,E=N=>i(N)||s(N)||c(N)||u(N),g=()=>o,h=()=>l,_=()=>a,A=()=>r,v=N=>i(N)||c(N)||u(N)?ge:n[N],C=()=>v(o),f=()=>v(o+r);function k(){return r=0,E(o)&&(l++,a=0),i(o)&&o++,o++,a++,n[o]}function b(){return i(o+r)&&r++,r++,n[o+r]}function p(){o=0,l=1,a=1,r=0}function w(N=0){r=N}function V(){const N=o+r;for(;N!==o;)k();r=0}return{index:g,line:h,column:_,peekOffset:A,charAt:v,currentChar:C,currentPeek:f,next:k,peek:b,reset:p,resetPeek:w,skipToPeek:V}}const $e=void 0,li=".",eo="'",ri="tokenizer";function ai(e,n={}){const o=n.location!==!1,l=oi(e),a=()=>l.index(),r=()=>Ya(l.line(),l.column(),l.index()),i=r(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:E}=n;function g(d,m,L,...R){const oe=u();if(m.column+=L,m.offset+=L,E){const le=o?rn(oe.startLoc,m):null,K=nt(d,le,{domain:ri,args:R});E(K)}}function h(d,m,L){d.endLoc=r(),d.currentType=m;const R={type:m};return o&&(R.loc=rn(d.startLoc,d.endLoc)),L!=null&&(R.value=L),R}const _=d=>h(d,13);function A(d,m){return d.currentChar()===m?(d.next(),m):(g(M.EXPECTED_TOKEN,r(),0,m),"")}function v(d){let m="";for(;d.currentPeek()===Ve||d.currentPeek()===ge;)m+=d.currentPeek(),d.peek();return m}function C(d){const m=v(d);return d.skipToPeek(),m}function f(d){if(d===$e)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function k(d){if(d===$e)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function b(d,m){const{currentType:L}=m;if(L!==2)return!1;v(d);const R=f(d.currentPeek());return d.resetPeek(),R}function p(d,m){const{currentType:L}=m;if(L!==2)return!1;v(d);const R=d.currentPeek()==="-"?d.peek():d.currentPeek(),oe=k(R);return d.resetPeek(),oe}function w(d,m){const{currentType:L}=m;if(L!==2)return!1;v(d);const R=d.currentPeek()===eo;return d.resetPeek(),R}function V(d,m){const{currentType:L}=m;if(L!==7)return!1;v(d);const R=d.currentPeek()===".";return d.resetPeek(),R}function N(d,m){const{currentType:L}=m;if(L!==8)return!1;v(d);const R=f(d.currentPeek());return d.resetPeek(),R}function x(d,m){const{currentType:L}=m;if(!(L===7||L===11))return!1;v(d);const R=d.currentPeek()===":";return d.resetPeek(),R}function H(d,m){const{currentType:L}=m;if(L!==9)return!1;const R=()=>{const le=d.currentPeek();return le==="{"?f(d.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Ve||!le?!1:le===ge?(d.peek(),R()):ce(d,!1)},oe=R();return d.resetPeek(),oe}function J(d){v(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function ce(d,m=!0){const L=(oe=!1,le="")=>{const K=d.currentPeek();return K==="{"||K==="@"||!K?oe:K==="|"?!(le===Ve||le===ge):K===Ve?(d.peek(),L(!0,Ve)):K===ge?(d.peek(),L(!0,ge)):!0},R=L();return m&&d.resetPeek(),R}function F(d,m){const L=d.currentChar();return L===$e?$e:m(L)?(d.next(),L):null}function he(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function Ae(d){return F(d,he)}function P(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function B(d){return F(d,P)}function z(d){const m=d.charCodeAt(0);return m>=48&&m<=57}function $(d){return F(d,z)}function Ie(d){const m=d.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function me(d){return F(d,Ie)}function Ue(d){let m="",L="";for(;m=$(d);)L+=m;return L}function Ut(d){let m="";for(;;){const L=d.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===Ve||L===ge)if(ce(d))m+=L,d.next();else{if(J(d))break;m+=L,d.next()}else m+=L,d.next()}return m}function Ht(d){C(d);let m="",L="";for(;m=B(d);)L+=m;return d.currentChar()===$e&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),L}function zt(d){C(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${Ue(d)}`):m+=Ue(d),d.currentChar()===$e&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),m}function Gt(d){return d!==eo&&d!==ge}function Hn(d){C(d),A(d,"'");let m="",L="";for(;m=F(d,Gt);)m==="\\"?L+=Wt(d):L+=m;const R=d.currentChar();return R===ge||R===$e?(g(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),R===ge&&(d.next(),A(d,"'")),L):(A(d,"'"),L)}function Wt(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return mt(d,m,4);case"U":return mt(d,m,6);default:return g(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function mt(d,m,L){A(d,m);let R="";for(let oe=0;oe<L;oe++){const le=me(d);if(!le){g(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${R}${d.currentChar()}`);break}R+=le}return`\\${m}${R}`}function Kt(d){return d!=="{"&&d!=="}"&&d!==Ve&&d!==ge}function jt(d){C(d);let m="",L="";for(;m=F(d,Kt);)L+=m;return L}function Yt(d){let m="",L="";for(;m=Ae(d);)L+=m;return L}function qt(d){const m=L=>{const R=d.currentChar();return R==="{"||R==="@"||R==="|"||R==="("||R===")"||!R||R===Ve?L:(L+=R,d.next(),m(L))};return m("")}function lt(d){C(d);const m=A(d,"|");return C(d),m}function rt(d,m){let L=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&g(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),L=h(m,2,"{"),C(d),m.braceNest++,L;case"}":return m.braceNest>0&&m.currentType===2&&g(M.EMPTY_PLACEHOLDER,r(),0),d.next(),L=h(m,3,"}"),m.braceNest--,m.braceNest>0&&C(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),L;case"@":return m.braceNest>0&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=He(d,m)||_(m),m.braceNest=0,L;default:{let oe=!0,le=!0,K=!0;if(J(d))return m.braceNest>0&&g(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=h(m,1,lt(d)),m.braceNest=0,m.inLinked=!1,L;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return g(M.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,at(d,m);if(oe=b(d,m))return L=h(m,4,Ht(d)),C(d),L;if(le=p(d,m))return L=h(m,5,zt(d)),C(d),L;if(K=w(d,m))return L=h(m,6,Hn(d)),C(d),L;if(!oe&&!le&&!K)return L=h(m,12,jt(d)),g(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),C(d),L;break}}return L}function He(d,m){const{currentType:L}=m;let R=null;const oe=d.currentChar();switch((L===7||L===8||L===11||L===9)&&(oe===ge||oe===Ve)&&g(M.INVALID_LINKED_FORMAT,r(),0),oe){case"@":return d.next(),R=h(m,7,"@"),m.inLinked=!0,R;case".":return C(d),d.next(),h(m,8,".");case":":return C(d),d.next(),h(m,9,":");default:return J(d)?(R=h(m,1,lt(d)),m.braceNest=0,m.inLinked=!1,R):V(d,m)||x(d,m)?(C(d),He(d,m)):N(d,m)?(C(d),h(m,11,Yt(d))):H(d,m)?(C(d),oe==="{"?rt(d,m)||R:h(m,10,qt(d))):(L===7&&g(M.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,at(d,m))}}function at(d,m){let L={type:13};if(m.braceNest>0)return rt(d,m)||_(m);if(m.inLinked)return He(d,m)||_(m);switch(d.currentChar()){case"{":return rt(d,m)||_(m);case"}":return g(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),h(m,3,"}");case"@":return He(d,m)||_(m);default:{if(J(d))return L=h(m,1,lt(d)),m.braceNest=0,m.inLinked=!1,L;if(ce(d))return h(m,0,Ut(d));break}}return L}function Xt(){const{currentType:d,offset:m,startLoc:L,endLoc:R}=c;return c.lastType=d,c.lastOffset=m,c.lastStartLoc=L,c.lastEndLoc=R,c.offset=a(),c.startLoc=r(),l.currentChar()===$e?h(c,13):at(l,c)}return{nextToken:Xt,currentOffset:a,currentPosition:r,context:u}}const ii="parser",si=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ci(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 ui(e={}){const n=e.location!==!1,{onError:o}=e;function l(f,k,b,p,...w){const V=f.currentPosition();if(V.offset+=p,V.column+=p,o){const N=n?rn(b,V):null,x=nt(k,N,{domain:ii,args:w});o(x)}}function a(f,k,b){const p={type:f};return n&&(p.start=k,p.end=k,p.loc={start:b,end:b}),p}function r(f,k,b,p){n&&(f.end=k,f.loc&&(f.loc.end=b))}function i(f,k){const b=f.context(),p=a(3,b.offset,b.startLoc);return p.value=k,r(p,f.currentOffset(),f.currentPosition()),p}function s(f,k){const b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(5,p,w);return V.index=parseInt(k,10),f.nextToken(),r(V,f.currentOffset(),f.currentPosition()),V}function c(f,k){const b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(4,p,w);return V.key=k,f.nextToken(),r(V,f.currentOffset(),f.currentPosition()),V}function u(f,k){const b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(9,p,w);return V.value=k.replace(si,ci),f.nextToken(),r(V,f.currentOffset(),f.currentPosition()),V}function E(f){const k=f.nextToken(),b=f.context(),{lastOffset:p,lastStartLoc:w}=b,V=a(8,p,w);return k.type!==11?(l(f,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),V.value="",r(V,p,w),{nextConsumeToken:k,node:V}):(k.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,we(k)),V.value=k.value||"",r(V,f.currentOffset(),f.currentPosition()),{node:V})}function g(f,k){const b=f.context(),p=a(7,b.offset,b.startLoc);return p.value=k,r(p,f.currentOffset(),f.currentPosition()),p}function h(f){const k=f.context(),b=a(6,k.offset,k.startLoc);let p=f.nextToken();if(p.type===8){const w=E(f);b.modifier=w.node,p=w.nextConsumeToken||f.nextToken()}switch(p.type!==9&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),p=f.nextToken(),p.type===2&&(p=f.nextToken()),p.type){case 10:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=g(f,p.value||"");break;case 4:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=c(f,p.value||"");break;case 5:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=s(f,p.value||"");break;case 6:p.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(p)),b.key=u(f,p.value||"");break;default:{l(f,M.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const w=f.context(),V=a(7,w.offset,w.startLoc);return V.value="",r(V,w.offset,w.startLoc),b.key=V,r(b,w.offset,w.startLoc),{nextConsumeToken:p,node:b}}}return r(b,f.currentOffset(),f.currentPosition()),{node:b}}function _(f){const k=f.context(),b=k.currentType===1?f.currentOffset():k.offset,p=k.currentType===1?k.endLoc:k.startLoc,w=a(2,b,p);w.items=[];let V=null;do{const H=V||f.nextToken();switch(V=null,H.type){case 0:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(i(f,H.value||""));break;case 5:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(s(f,H.value||""));break;case 4:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(c(f,H.value||""));break;case 6:H.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,we(H)),w.items.push(u(f,H.value||""));break;case 7:{const J=h(f);w.items.push(J.node),V=J.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const N=k.currentType===1?k.lastOffset:f.currentOffset(),x=k.currentType===1?k.lastEndLoc:f.currentPosition();return r(w,N,x),w}function A(f,k,b,p){const w=f.context();let V=p.items.length===0;const N=a(1,k,b);N.cases=[],N.cases.push(p);do{const x=_(f);V||(V=x.items.length===0),N.cases.push(x)}while(w.currentType!==13);return V&&l(f,M.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),r(N,f.currentOffset(),f.currentPosition()),N}function v(f){const k=f.context(),{offset:b,startLoc:p}=k,w=_(f);return k.currentType===13?w:A(f,b,p,w)}function C(f){const k=ai(f,de({},e)),b=k.context(),p=a(0,b.offset,b.startLoc);return n&&p.loc&&(p.loc.source=f),p.body=v(k),e.onCacheKey&&(p.cacheKey=e.onCacheKey(f)),b.currentType!==13&&l(k,M.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,f[b.offset]||""),r(p,k.currentOffset(),k.currentPosition()),p}return{parse:C}}function we(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 di(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:r=>(o.helpers.add(r),r)}}function to(e,n){for(let o=0;o<e.length;o++)bn(e[o],n)}function bn(e,n){switch(e.type){case 1:to(e.cases,n),n.helper("plural");break;case 2:to(e.items,n);break;case 6:{bn(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 fi(e,n={}){const o=di(e);o.helper("normalize"),e.body&&bn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function mi(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=Sn(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 pi="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:pi,args:[e.type]})}delete e.type}const gi="parser";function hi(e,n){const{filename:o,breakLineCode:l,needIndent:a}=n,r=n.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(v,C){i.code+=v}function u(v,C=!0){const f=C?l:"";c(a?f+" ".repeat(v):f)}function E(v=!0){const C=++i.indentLevel;v&&u(C)}function g(v=!0){const C=--i.indentLevel;v&&u(C)}function h(){u(i.indentLevel)}return{context:s,push:c,indent:E,deindent:g,newline:h,helper:v=>`_${v}`,needIndent:()=>i.needIndent}}function Ei(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 _i(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const a=n.items.length;for(let r=0;r<a&&(tt(e,n.items[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}function ki(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const a=n.cases.length;for(let r=0;r<a&&(tt(e,n.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}}function yi(e,n){n.body?tt(e,n.body):e.push("null")}function tt(e,n){const{helper:o}=e;switch(n.type){case 0:yi(e,n);break;case 1:ki(e,n);break;case 2:_i(e,n);break;case 6:Ei(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:gi,args:[n.type]})}}const Ci=(e,n={})=>{const o=O(n.mode)?n.mode:"normal",l=O(n.filename)?n.filename:"message.intl";n.sourceMap;const a=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
12
12
|
`,r=n.needIndent?n.needIndent:o!=="arrow",i=e.helpers||[],s=hi(e,{filename:l,breakLineCode:a,needIndent:r});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(r),i.length>0&&(s.push(`const { ${Sn(i.map(E=>`${E}: _${E}`),", ")} } = ctx`),s.newline()),s.push("return "),tt(s,e),s.deindent(r),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function vi(e,n={}){const o=de({},n),l=!!o.jit,a=!!o.minify,r=o.optimize==null?!0:o.optimize,s=ui(o).parse(e);return l?(r&&mi(s),a&&Qe(s),{ast:s,code:""}):(fi(s,o),Ci(s,o))}/*!
|
|
13
13
|
* core-base v11.1.3
|
|
14
14
|
* (c) 2025 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function Ni(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Le(e){return Y(e)&&Ln(e)===0&&(be(e,"b")||be(e,"body"))}const Fo=["b","body"];function Si(e){return xe(e,Fo)}const Uo=["c","cases"];function bi(e){return xe(e,Uo,[])}const Ho=["s","static"];function Li(e){return xe(e,Ho)}const zo=["i","items"];function wi(e){return xe(e,zo,[])}const Go=["t","type"];function Ln(e){return xe(e,Go)}const Wo=["v","value"];function _t(e,n){const o=xe(e,Wo);if(o!=null)return o;throw st(n)}const Ko=["m","modifier"];function Ti(e){return xe(e,Ko)}const jo=["k","key"];function Ai(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 a=n[l];if(be(e,a)&&e[a]!=null)return e[a]}return o}const Yo=[...Fo,...Uo,...Ho,...zo,...jo,...Ko,...Wo,...Go];function st(e){return new Error(`unhandled node type: ${e}`)}function Qt(e){return o=>Ii(o,e)}function Ii(e,n){const o=Si(n);if(o==null)throw st(0);if(Ln(o)===1){const r=bi(o);return e.plural(r.reduce((i,s)=>[...i,oo(e,s)],[]))}else return oo(e,o)}function oo(e,n){const o=Li(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=wi(n).reduce((a,r)=>[...a,an(e,r)],[]);return e.normalize(l)}}function an(e,n){const o=Ln(n);switch(o){case 3:return _t(n,o);case 9:return _t(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,a=Ti(l),r=Ai(l);return e.linked(an(e,r),a?an(e,a):void 0,e.type)}case 7:return _t(n,o);case 8:return _t(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Vi="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Bi(e,n){n&&Qa(e)&&Me(Dt(Vi,{source:e}))}const Oi=e=>e;let kt=Z();function Di(e,n={}){let o=!1;const l=n.onError||Za;return n.onError=a=>{o=!0,l(a)},{...vi(e,n),detectError:o}}function Pi(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Bi(e,o);const a=(n.onCacheKey||Oi)(e),r=kt[a];if(r)return r;const{ast:i,detectError:s}=Di(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=Qt(i);return s?c:kt[a]=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=kt[o];return l||(kt[o]=Qt(e))}else return Qt(e)}}let ct=null;function $i(e){ct=e}function Ri(e,n,o){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const Mi=xi("function:translate");function xi(e){return n=>ct&&ct.emit(e,n)}const pe={INVALID_ARGUMENT:qa,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},Fi=24;function Be(e){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:Ui}:void 0)}const Ui={[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 wn(e,n){return n.locale!=null?lo(n.locale):lo(e.locale)}let en;function lo(e){if(O(e))return e;if(ee(e)){if(e.resolvedOnce&&en!=null)return en;if(e.constructor.name==="Function"){const n=e();if(za(n))throw Be(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return en=n}else throw Be(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Be(pe.NOT_SUPPORT_LOCALE_TYPE)}function Hi(e,n,o){return[...new Set([o,...se(n)?n:Y(n)?Object.keys(n):O(n)?[n]:[o]])]}function qo(e,n,o){const l=O(o)?o:wt,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(l);if(!r){r=[];let i=[o];for(;se(i);)i=ro(r,i,n);const s=se(n)||!j(n)?n:n.default?n.default:null;i=O(s)?[s]:s,se(i)&&ro(r,i,!1),a.__localeChainCache.set(l,r)}return r}function ro(e,n,o){let l=!0;for(let a=0;a<n.length&&ae(l);a++){const r=n[a];O(r)&&(l=zi(e,n[a],o))}return l}function zi(e,n,o){let l;const a=n.split("-");do{const r=a.join("-");l=Gi(e,r,o),a.splice(-1,1)}while(a.length&&l===!0);return l}function Gi(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const a=n.replace(/!/g,"");e.push(a),(se(o)||j(o))&&o[a]&&(l=o[a])}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 Wi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ki(e){return Wi.test(e)}function ji(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 Yi(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 qi(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ki(n)?ji(n):"*"+n}function Xi(e){const n=[];let o=-1,l=0,a=0,r,i,s,c,u,E,g;const h=[];h[0]=()=>{i===void 0?i=s:i+=s},h[1]=()=>{i!==void 0&&(n.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,l=4,h[0]();else{if(a=0,i===void 0||(i=qi(i),i===!1))return!1;h[1]()}};function _(){const A=e[o+1];if(l===5&&A==="'"||l===6&&A==='"')return o++,s="\\"+A,h[0](),!0}for(;l!==null;)if(o++,r=e[o],!(r==="\\"&&_())){if(c=Yi(r),g=Fe[l],u=g[c]||g.l||8,u===8||(l=u[0],u[1]!==void 0&&(E=h[u[1]],E&&(s=r,E()===!1))))return;if(l===7)return n}}const ao=new Map;function Zi(e,n){return Y(e)?e[n]:null}function Ji(e,n){if(!Y(e))return null;let o=ao.get(n);if(o||(o=Xi(n),o&&ao.set(n,o)),!o)return null;const l=o.length;let a=e,r=0;for(;r<l;){const i=o[r];if(Yo.includes(i)&&Le(a))return null;const s=a[i];if(s===void 0||ee(a))return null;a=s,r++}return a}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},Qi=8,es={[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(es[e],...n)}const ts="11.1.3",$t=-1,wt="en-US",Tt="",io=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ns(){return{upper:(e,n)=>n==="text"&&O(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&O(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&O(e)?io(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?io(e.children):e}}let Xo;function os(e){Xo=e}let Zo;function ls(e){Zo=e}let Jo;function rs(e){Jo=e}let Qo=null;const as=e=>{Qo=e},is=()=>Qo;let el=null;const so=e=>{el=e},ss=()=>el;let co=0;function cs(e={}){const n=ee(e.onWarn)?e.onWarn:Me,o=O(e.version)?e.version:ts,l=O(e.locale)||ee(e.locale)?e.locale:wt,a=ee(l)?wt:l,r=se(e.fallbackLocale)||j(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=j(e.messages)?e.messages:tn(a),s=j(e.datetimeFormats)?e.datetimeFormats:tn(a),c=j(e.numberFormats)?e.numberFormats:tn(a),u=de(Z(),e.modifiers,ns()),E=e.pluralRules||Z(),g=ee(e.missing)?e.missing:null,h=ae(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,_=ae(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,A=!!e.fallbackFormat,S=!!e.unresolving,C=ee(e.postTranslation)?e.postTranslation:null,f=j(e.processor)?e.processor:null,k=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,p=ee(e.messageCompiler)?e.messageCompiler:Xo;process.env.NODE_ENV!=="production"&&ee(e.messageCompiler)&&Ka(qe(Ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=ee(e.messageResolver)?e.messageResolver:Zo||Zi,V=ee(e.localeFallbacker)?e.localeFallbacker:Jo||Hi,v=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:r,messages:i,modifiers:u,pluralRules:E,missing:g,missingWarn:h,fallbackWarn:_,fallbackFormat:A,unresolving:S,postTranslation:C,processor:f,warnHtmlMessage:k,escapeParameter:b,messageCompiler:p,messageResolver:w,localeFallbacker:V,fallbackContext:v,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__)&&Ri(F,o,ce),F}const tn=e=>({[e]:Z()});function Rt(e,n){return e instanceof RegExp?e.test(n):e}function tl(e,n){return e instanceof RegExp?e.test(n):e}function Tn(e,n,o,l,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:a,groupId:`${a}:${n}`})}if(r!==null){const s=r(e,o,n,a);return O(s)?s:n}else return process.env.NODE_ENV!=="production"&&tl(l,n)&&i(qe(Ee.NOT_FOUND_KEY,{key:n,locale:o})),n}function it(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function nl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function us(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(nl(e,n[l]))return!0;return!1}const uo=typeof Intl<"u",ol={dateTimeFormat:uo&&typeof Intl.DateTimeFormat<"u",numberFormat:uo&&typeof Intl.NumberFormat<"u"};function fo(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!ol.dateTimeFormat)return r(qe(Ee.CANNOT_FORMAT_DATE)),Tt;const[c,u,E,g]=sn(...n),h=ae(E.missingWarn)?E.missingWarn:e.missingWarn,_=ae(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,A=!!E.part,S=wn(e,E),C=i(e,a,S);if(!O(c)||c==="")return new Intl.DateTimeFormat(S,g).format(u);let f={},k,b=null,p=S,w=null;const V="datetime format";for(let H=0;H<C.length;H++){if(k=w=C[H],process.env.NODE_ENV!=="production"&&S!==k&&Rt(_,c)&&r(qe(Ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&S!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:V,key:c,from:p,to:w,groupId:`${V}:${c}`})}if(f=o[k]||{},b=f[c],j(b))break;Tn(e,c,k,h,V),p=w}if(!j(b)||!O(k))return l?$t:c;let v=`${k}__${c}`;Pt(g)||(v=`${v}__${JSON.stringify(g)}`);let x=s.get(v);return x||(x=new Intl.DateTimeFormat(k,de({},b,g)),s.set(v,x)),A?x.formatToParts(u):x.format(u)}const ll=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function sn(...e){const[n,o,l,a]=e,r=Z();let i=Z(),s;if(O(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Be(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 Be(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Fa(n)){if(isNaN(n.getTime()))throw Be(pe.INVALID_DATE_ARGUMENT);s=n}else if(ue(n))s=n;else throw Be(pe.INVALID_ARGUMENT);return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{ll.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function mo(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__datetimeFormatters.has(r)&&l.__datetimeFormatters.delete(r)}}function po(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!ol.numberFormat)return r(qe(Ee.CANNOT_FORMAT_NUMBER)),Tt;const[c,u,E,g]=cn(...n),h=ae(E.missingWarn)?E.missingWarn:e.missingWarn,_=ae(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,A=!!E.part,S=wn(e,E),C=i(e,a,S);if(!O(c)||c==="")return new Intl.NumberFormat(S,g).format(u);let f={},k,b=null,p=S,w=null;const V="number format";for(let H=0;H<C.length;H++){if(k=w=C[H],process.env.NODE_ENV!=="production"&&S!==k&&Rt(_,c)&&r(qe(Ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&S!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:V,key:c,from:p,to:w,groupId:`${V}:${c}`})}if(f=o[k]||{},b=f[c],j(b))break;Tn(e,c,k,h,V),p=w}if(!j(b)||!O(k))return l?$t:c;let v=`${k}__${c}`;Pt(g)||(v=`${v}__${JSON.stringify(g)}`);let x=s.get(v);return x||(x=new Intl.NumberFormat(k,de({},b,g)),s.set(v,x)),A?x.formatToParts(u):x.format(u)}const rl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cn(...e){const[n,o,l,a]=e,r=Z();let i=Z();if(!ue(n))throw Be(pe.INVALID_ARGUMENT);const s=n;return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{rl.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function go(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__numberFormatters.has(r)&&l.__numberFormatters.delete(r)}}const ds=e=>e,fs=e=>"",ms="text",ps=e=>e.length===0?"":Sn(e),gs=Ga;function ho(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function hs(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 Es(e,n){n.count||(n.count=e),n.n||(n.n=e)}function _s(e={}){const n=e.locale,o=hs(e),l=Y(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?e.pluralRules[n]:ho,a=Y(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?ho:void 0,r=f=>f[l(o,f.length,a)],i=e.list||[],s=f=>i[f],c=e.named||Z();ue(e.pluralIndex)&&Es(o,c);const u=f=>c[f];function E(f,k){const b=ee(e.messages)?e.messages(f,!!k):Y(e.messages)?e.messages[f]:!1;return b||(e.parent?e.parent.message(f):fs)}const g=f=>e.modifiers?e.modifiers[f]:ds,h=j(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:ps,_=j(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:gs,A=j(e.processor)&&O(e.processor.type)?e.processor.type:ms,C={list:s,named:u,plural:r,linked:(f,...k)=>{const[b,p]=k;let w="text",V="";k.length===1?Y(b)?(V=b.modifier||V,w=b.type||w):O(b)&&(V=b||V):k.length===2&&(O(b)&&(V=b||V),O(p)&&(w=p||w));const v=E(f,!0)(C),x=w==="vnode"&&se(v)&&V?v[0]:v;return V?g(V)(x,w):x},message:E,type:A,interpolate:_,normalize:h,values:de(Z(),i,c)};return C}const Eo=()=>"",Se=e=>ee(e);function _o(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:s}=e,[c,u]=un(...n),E=ae(u.missingWarn)?u.missingWarn:e.missingWarn,g=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,_=!!u.resolvedMessage,A=O(u.default)||ae(u.default)?ae(u.default)?r?c:()=>c:u.default:o?r?c:()=>c:null,S=o||A!=null&&(O(A)||ee(A)),C=wn(e,u);h&&ks(u);let[f,k,b]=_?[c,C,s[C]||Z()]:al(e,c,C,i,g,E),p=f,w=c;if(!_&&!(O(p)||Le(p)||Se(p))&&S&&(p=A,w=p),!_&&(!(O(p)||Le(p)||Se(p))||!O(k)))return a?$t:c;if(process.env.NODE_ENV!=="production"&&O(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 V=!1;const v=()=>{V=!0},x=Se(p)?p:il(e,c,k,p,w,v);if(V)return p;const H=Ns(e,k,b,u),J=_s(H),ce=ys(e,x,J),F=l?l(ce,c):ce;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:O(c)?c:Se(p)?p.key:"",locale:k||(Se(p)?p.locale:""),format:O(p)?p:Se(p)?p.source:"",message:F};he.meta=de({},e.__meta,is()||{}),Mi(he)}return F}function ks(e){se(e.list)?e.list=e.list.map(n=>O(n)?Zn(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{O(e.named[n])&&(e.named[n]=Zn(e.named[n]))})}function al(e,n,o,l,a,r){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,E=u(e,l,o);let g=Z(),h,_=null,A=o,S=null;const C="translate";for(let f=0;f<E.length;f++){if(h=S=E[f],process.env.NODE_ENV!=="production"&&o!==h&&!nl(o,h)&&Rt(a,n)&&s(qe(Ee.FALLBACK_TO_TRANSLATE,{key:n,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const w=e.__v_emitter;w&&w.emit("fallback",{type:C,key:n,from:A,to:S,groupId:`${C}:${n}`})}g=i[h]||Z();let k=null,b,p;if(process.env.NODE_ENV!=="production"&&De&&(k=window.performance.now(),b="intlify-message-resolve-start",p="intlify-message-resolve-end",Ne&&Ne(b)),(_=c(g,n))===null&&(_=g[n]),process.env.NODE_ENV!=="production"&&De){const w=window.performance.now(),V=e.__v_emitter;V&&k&&_&&V.emit("message-resolve",{type:"message-resolve",key:n,message:_,time:w-k,groupId:`${C}:${n}`}),b&&p&&Ne&&Ye&&(Ne(p),Ye("intlify message resolve",b,p))}if(O(_)||Le(_)||Se(_))break;if(!us(h,E)){const w=Tn(e,n,h,r,C);w!==n&&(_=w)}A=S}return[_,h,g]}function il(e,n,o,l,a,r){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Se(l)){const h=l;return h.locale=h.locale||o,h.key=h.key||n,h}if(i==null){const h=()=>l;return h.locale=o,h.key=n,h}let c=null,u,E;process.env.NODE_ENV!=="production"&&De&&(c=window.performance.now(),u="intlify-message-compilation-start",E="intlify-message-compilation-end",Ne&&Ne(u));const g=i(l,Cs(e,o,a,l,s,r));if(process.env.NODE_ENV!=="production"&&De){const h=window.performance.now(),_=e.__v_emitter;_&&c&&_.emit("message-compilation",{type:"message-compilation",message:l,time:h-c,groupId:`translate:${n}`}),u&&E&&Ne&&Ye&&(Ne(E),Ye("intlify message compilation",u,E))}return g.locale=o,g.key=n,g.source=l,g}function ys(e,n,o){let l=null,a,r;process.env.NODE_ENV!=="production"&&De&&(l=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",Ne&&Ne(a));const i=n(o);if(process.env.NODE_ENV!=="production"&&De){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-l,groupId:`translate:${n.key}`}),a&&r&&Ne&&Ye&&(Ne(r),Ye("intlify message evaluation",a,r))}return i}function un(...e){const[n,o,l]=e,a=Z();if(!O(n)&&!ue(n)&&!Se(n)&&!Le(n))throw Be(pe.INVALID_ARGUMENT);const r=ue(n)?String(n):(Se(n),n);return ue(o)?a.plural=o:O(o)?a.default=o:j(o)&&!Pt(o)?a.named=o:se(o)&&(a.list=o),ue(l)?a.plural=l:O(l)?a.default=l:j(l)&&de(a,l),[r,a]}function Cs(e,n,o,l,a,r){return{locale:n,key:o,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const s=vs(l),c=`Message compilation error: ${i.message}`,u=i.location&&s&&Wa(s,i.location.start.offset,i.location.end.offset),E=e.__v_emitter;E&&s&&E.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
17
|
-
${u}`:c)}else throw i},onCacheKey:i=>Ma(n,o,i)}}function vs(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ns(e,n,o,l){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:E}=e,h={locale:n,modifiers:a,pluralRules:r,messages:(_,A)=>{let
|
|
16
|
+
*/function Ni(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Le(e){return Y(e)&&Ln(e)===0&&(be(e,"b")||be(e,"body"))}const Fo=["b","body"];function Si(e){return xe(e,Fo)}const Uo=["c","cases"];function bi(e){return xe(e,Uo,[])}const Ho=["s","static"];function Li(e){return xe(e,Ho)}const zo=["i","items"];function wi(e){return xe(e,zo,[])}const Go=["t","type"];function Ln(e){return xe(e,Go)}const Wo=["v","value"];function _t(e,n){const o=xe(e,Wo);if(o!=null)return o;throw st(n)}const Ko=["m","modifier"];function Ti(e){return xe(e,Ko)}const jo=["k","key"];function Ai(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 a=n[l];if(be(e,a)&&e[a]!=null)return e[a]}return o}const Yo=[...Fo,...Uo,...Ho,...zo,...jo,...Ko,...Wo,...Go];function st(e){return new Error(`unhandled node type: ${e}`)}function Qt(e){return o=>Ii(o,e)}function Ii(e,n){const o=Si(n);if(o==null)throw st(0);if(Ln(o)===1){const r=bi(o);return e.plural(r.reduce((i,s)=>[...i,oo(e,s)],[]))}else return oo(e,o)}function oo(e,n){const o=Li(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=wi(n).reduce((a,r)=>[...a,an(e,r)],[]);return e.normalize(l)}}function an(e,n){const o=Ln(n);switch(o){case 3:return _t(n,o);case 9:return _t(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,a=Ti(l),r=Ai(l);return e.linked(an(e,r),a?an(e,a):void 0,e.type)}case 7:return _t(n,o);case 8:return _t(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const Vi="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Bi(e,n){n&&Qa(e)&&Me(Dt(Vi,{source:e}))}const Oi=e=>e;let kt=Z();function Di(e,n={}){let o=!1;const l=n.onError||Za;return n.onError=a=>{o=!0,l(a)},{...vi(e,n),detectError:o}}function Pi(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Bi(e,o);const a=(n.onCacheKey||Oi)(e),r=kt[a];if(r)return r;const{ast:i,detectError:s}=Di(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=Qt(i);return s?c:kt[a]=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=kt[o];return l||(kt[o]=Qt(e))}else return Qt(e)}}let ct=null;function $i(e){ct=e}function Ri(e,n,o){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const Mi=xi("function:translate");function xi(e){return n=>ct&&ct.emit(e,n)}const pe={INVALID_ARGUMENT:qa,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},Fi=24;function Be(e){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:Ui}:void 0)}const Ui={[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 wn(e,n){return n.locale!=null?lo(n.locale):lo(e.locale)}let en;function lo(e){if(O(e))return e;if(ee(e)){if(e.resolvedOnce&&en!=null)return en;if(e.constructor.name==="Function"){const n=e();if(za(n))throw Be(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return en=n}else throw Be(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Be(pe.NOT_SUPPORT_LOCALE_TYPE)}function Hi(e,n,o){return[...new Set([o,...se(n)?n:Y(n)?Object.keys(n):O(n)?[n]:[o]])]}function qo(e,n,o){const l=O(o)?o:wt,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(l);if(!r){r=[];let i=[o];for(;se(i);)i=ro(r,i,n);const s=se(n)||!j(n)?n:n.default?n.default:null;i=O(s)?[s]:s,se(i)&&ro(r,i,!1),a.__localeChainCache.set(l,r)}return r}function ro(e,n,o){let l=!0;for(let a=0;a<n.length&&ae(l);a++){const r=n[a];O(r)&&(l=zi(e,n[a],o))}return l}function zi(e,n,o){let l;const a=n.split("-");do{const r=a.join("-");l=Gi(e,r,o),a.splice(-1,1)}while(a.length&&l===!0);return l}function Gi(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const a=n.replace(/!/g,"");e.push(a),(se(o)||j(o))&&o[a]&&(l=o[a])}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 Wi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ki(e){return Wi.test(e)}function ji(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 Yi(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 qi(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ki(n)?ji(n):"*"+n}function Xi(e){const n=[];let o=-1,l=0,a=0,r,i,s,c,u,E,g;const h=[];h[0]=()=>{i===void 0?i=s:i+=s},h[1]=()=>{i!==void 0&&(n.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,l=4,h[0]();else{if(a=0,i===void 0||(i=qi(i),i===!1))return!1;h[1]()}};function _(){const A=e[o+1];if(l===5&&A==="'"||l===6&&A==='"')return o++,s="\\"+A,h[0](),!0}for(;l!==null;)if(o++,r=e[o],!(r==="\\"&&_())){if(c=Yi(r),g=Fe[l],u=g[c]||g.l||8,u===8||(l=u[0],u[1]!==void 0&&(E=h[u[1]],E&&(s=r,E()===!1))))return;if(l===7)return n}}const ao=new Map;function Zi(e,n){return Y(e)?e[n]:null}function Ji(e,n){if(!Y(e))return null;let o=ao.get(n);if(o||(o=Xi(n),o&&ao.set(n,o)),!o)return null;const l=o.length;let a=e,r=0;for(;r<l;){const i=o[r];if(Yo.includes(i)&&Le(a))return null;const s=a[i];if(s===void 0||ee(a))return null;a=s,r++}return a}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},Qi=8,es={[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(es[e],...n)}const ts="11.1.3",$t=-1,wt="en-US",Tt="",io=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ns(){return{upper:(e,n)=>n==="text"&&O(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&O(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&O(e)?io(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?io(e.children):e}}let Xo;function os(e){Xo=e}let Zo;function ls(e){Zo=e}let Jo;function rs(e){Jo=e}let Qo=null;const as=e=>{Qo=e},is=()=>Qo;let el=null;const so=e=>{el=e},ss=()=>el;let co=0;function cs(e={}){const n=ee(e.onWarn)?e.onWarn:Me,o=O(e.version)?e.version:ts,l=O(e.locale)||ee(e.locale)?e.locale:wt,a=ee(l)?wt:l,r=se(e.fallbackLocale)||j(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=j(e.messages)?e.messages:tn(a),s=j(e.datetimeFormats)?e.datetimeFormats:tn(a),c=j(e.numberFormats)?e.numberFormats:tn(a),u=de(Z(),e.modifiers,ns()),E=e.pluralRules||Z(),g=ee(e.missing)?e.missing:null,h=ae(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,_=ae(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,A=!!e.fallbackFormat,v=!!e.unresolving,C=ee(e.postTranslation)?e.postTranslation:null,f=j(e.processor)?e.processor:null,k=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,p=ee(e.messageCompiler)?e.messageCompiler:Xo;process.env.NODE_ENV!=="production"&&ee(e.messageCompiler)&&Ka(qe(Ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=ee(e.messageResolver)?e.messageResolver:Zo||Zi,V=ee(e.localeFallbacker)?e.localeFallbacker:Jo||Hi,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:r,messages:i,modifiers:u,pluralRules:E,missing:g,missingWarn:h,fallbackWarn:_,fallbackFormat:A,unresolving:v,postTranslation:C,processor:f,warnHtmlMessage:k,escapeParameter:b,messageCompiler:p,messageResolver:w,localeFallbacker:V,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__)&&Ri(F,o,ce),F}const tn=e=>({[e]:Z()});function Rt(e,n){return e instanceof RegExp?e.test(n):e}function tl(e,n){return e instanceof RegExp?e.test(n):e}function Tn(e,n,o,l,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:a,groupId:`${a}:${n}`})}if(r!==null){const s=r(e,o,n,a);return O(s)?s:n}else return process.env.NODE_ENV!=="production"&&tl(l,n)&&i(qe(Ee.NOT_FOUND_KEY,{key:n,locale:o})),n}function it(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function nl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function us(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(nl(e,n[l]))return!0;return!1}const uo=typeof Intl<"u",ol={dateTimeFormat:uo&&typeof Intl.DateTimeFormat<"u",numberFormat:uo&&typeof Intl.NumberFormat<"u"};function fo(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!ol.dateTimeFormat)return r(qe(Ee.CANNOT_FORMAT_DATE)),Tt;const[c,u,E,g]=sn(...n),h=ae(E.missingWarn)?E.missingWarn:e.missingWarn,_=ae(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,A=!!E.part,v=wn(e,E),C=i(e,a,v);if(!O(c)||c==="")return new Intl.DateTimeFormat(v,g).format(u);let f={},k,b=null,p=v,w=null;const V="datetime format";for(let H=0;H<C.length;H++){if(k=w=C[H],process.env.NODE_ENV!=="production"&&v!==k&&Rt(_,c)&&r(qe(Ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&v!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:V,key:c,from:p,to:w,groupId:`${V}:${c}`})}if(f=o[k]||{},b=f[c],j(b))break;Tn(e,c,k,h,V),p=w}if(!j(b)||!O(k))return l?$t:c;let N=`${k}__${c}`;Pt(g)||(N=`${N}__${JSON.stringify(g)}`);let x=s.get(N);return x||(x=new Intl.DateTimeFormat(k,de({},b,g)),s.set(N,x)),A?x.formatToParts(u):x.format(u)}const ll=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function sn(...e){const[n,o,l,a]=e,r=Z();let i=Z(),s;if(O(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Be(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 Be(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Fa(n)){if(isNaN(n.getTime()))throw Be(pe.INVALID_DATE_ARGUMENT);s=n}else if(ue(n))s=n;else throw Be(pe.INVALID_ARGUMENT);return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{ll.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function mo(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__datetimeFormatters.has(r)&&l.__datetimeFormatters.delete(r)}}function po(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!ol.numberFormat)return r(qe(Ee.CANNOT_FORMAT_NUMBER)),Tt;const[c,u,E,g]=cn(...n),h=ae(E.missingWarn)?E.missingWarn:e.missingWarn,_=ae(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,A=!!E.part,v=wn(e,E),C=i(e,a,v);if(!O(c)||c==="")return new Intl.NumberFormat(v,g).format(u);let f={},k,b=null,p=v,w=null;const V="number format";for(let H=0;H<C.length;H++){if(k=w=C[H],process.env.NODE_ENV!=="production"&&v!==k&&Rt(_,c)&&r(qe(Ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&v!==k){const J=e.__v_emitter;J&&J.emit("fallback",{type:V,key:c,from:p,to:w,groupId:`${V}:${c}`})}if(f=o[k]||{},b=f[c],j(b))break;Tn(e,c,k,h,V),p=w}if(!j(b)||!O(k))return l?$t:c;let N=`${k}__${c}`;Pt(g)||(N=`${N}__${JSON.stringify(g)}`);let x=s.get(N);return x||(x=new Intl.NumberFormat(k,de({},b,g)),s.set(N,x)),A?x.formatToParts(u):x.format(u)}const rl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cn(...e){const[n,o,l,a]=e,r=Z();let i=Z();if(!ue(n))throw Be(pe.INVALID_ARGUMENT);const s=n;return O(o)?r.key=o:j(o)&&Object.keys(o).forEach(c=>{rl.includes(c)?i[c]=o[c]:r[c]=o[c]}),O(l)?r.locale=l:j(l)&&(i=l),j(a)&&(i=a),[r.key||"",s,r,i]}function go(e,n,o){const l=e;for(const a in o){const r=`${n}__${a}`;l.__numberFormatters.has(r)&&l.__numberFormatters.delete(r)}}const ds=e=>e,fs=e=>"",ms="text",ps=e=>e.length===0?"":Sn(e),gs=Ga;function ho(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function hs(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 Es(e,n){n.count||(n.count=e),n.n||(n.n=e)}function _s(e={}){const n=e.locale,o=hs(e),l=Y(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?e.pluralRules[n]:ho,a=Y(e.pluralRules)&&O(n)&&ee(e.pluralRules[n])?ho:void 0,r=f=>f[l(o,f.length,a)],i=e.list||[],s=f=>i[f],c=e.named||Z();ue(e.pluralIndex)&&Es(o,c);const u=f=>c[f];function E(f,k){const b=ee(e.messages)?e.messages(f,!!k):Y(e.messages)?e.messages[f]:!1;return b||(e.parent?e.parent.message(f):fs)}const g=f=>e.modifiers?e.modifiers[f]:ds,h=j(e.processor)&&ee(e.processor.normalize)?e.processor.normalize:ps,_=j(e.processor)&&ee(e.processor.interpolate)?e.processor.interpolate:gs,A=j(e.processor)&&O(e.processor.type)?e.processor.type:ms,C={list:s,named:u,plural:r,linked:(f,...k)=>{const[b,p]=k;let w="text",V="";k.length===1?Y(b)?(V=b.modifier||V,w=b.type||w):O(b)&&(V=b||V):k.length===2&&(O(b)&&(V=b||V),O(p)&&(w=p||w));const N=E(f,!0)(C),x=w==="vnode"&&se(N)&&V?N[0]:N;return V?g(V)(x,w):x},message:E,type:A,interpolate:_,normalize:h,values:de(Z(),i,c)};return C}const Eo=()=>"",Se=e=>ee(e);function _o(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:s}=e,[c,u]=un(...n),E=ae(u.missingWarn)?u.missingWarn:e.missingWarn,g=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,_=!!u.resolvedMessage,A=O(u.default)||ae(u.default)?ae(u.default)?r?c:()=>c:u.default:o?r?c:()=>c:null,v=o||A!=null&&(O(A)||ee(A)),C=wn(e,u);h&&ks(u);let[f,k,b]=_?[c,C,s[C]||Z()]:al(e,c,C,i,g,E),p=f,w=c;if(!_&&!(O(p)||Le(p)||Se(p))&&v&&(p=A,w=p),!_&&(!(O(p)||Le(p)||Se(p))||!O(k)))return a?$t:c;if(process.env.NODE_ENV!=="production"&&O(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 V=!1;const N=()=>{V=!0},x=Se(p)?p:il(e,c,k,p,w,N);if(V)return p;const H=Ns(e,k,b,u),J=_s(H),ce=ys(e,x,J),F=l?l(ce,c):ce;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:O(c)?c:Se(p)?p.key:"",locale:k||(Se(p)?p.locale:""),format:O(p)?p:Se(p)?p.source:"",message:F};he.meta=de({},e.__meta,is()||{}),Mi(he)}return F}function ks(e){se(e.list)?e.list=e.list.map(n=>O(n)?Zn(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{O(e.named[n])&&(e.named[n]=Zn(e.named[n]))})}function al(e,n,o,l,a,r){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,E=u(e,l,o);let g=Z(),h,_=null,A=o,v=null;const C="translate";for(let f=0;f<E.length;f++){if(h=v=E[f],process.env.NODE_ENV!=="production"&&o!==h&&!nl(o,h)&&Rt(a,n)&&s(qe(Ee.FALLBACK_TO_TRANSLATE,{key:n,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const w=e.__v_emitter;w&&w.emit("fallback",{type:C,key:n,from:A,to:v,groupId:`${C}:${n}`})}g=i[h]||Z();let k=null,b,p;if(process.env.NODE_ENV!=="production"&&De&&(k=window.performance.now(),b="intlify-message-resolve-start",p="intlify-message-resolve-end",Ne&&Ne(b)),(_=c(g,n))===null&&(_=g[n]),process.env.NODE_ENV!=="production"&&De){const w=window.performance.now(),V=e.__v_emitter;V&&k&&_&&V.emit("message-resolve",{type:"message-resolve",key:n,message:_,time:w-k,groupId:`${C}:${n}`}),b&&p&&Ne&&Ye&&(Ne(p),Ye("intlify message resolve",b,p))}if(O(_)||Le(_)||Se(_))break;if(!us(h,E)){const w=Tn(e,n,h,r,C);w!==n&&(_=w)}A=v}return[_,h,g]}function il(e,n,o,l,a,r){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Se(l)){const h=l;return h.locale=h.locale||o,h.key=h.key||n,h}if(i==null){const h=()=>l;return h.locale=o,h.key=n,h}let c=null,u,E;process.env.NODE_ENV!=="production"&&De&&(c=window.performance.now(),u="intlify-message-compilation-start",E="intlify-message-compilation-end",Ne&&Ne(u));const g=i(l,Cs(e,o,a,l,s,r));if(process.env.NODE_ENV!=="production"&&De){const h=window.performance.now(),_=e.__v_emitter;_&&c&&_.emit("message-compilation",{type:"message-compilation",message:l,time:h-c,groupId:`translate:${n}`}),u&&E&&Ne&&Ye&&(Ne(E),Ye("intlify message compilation",u,E))}return g.locale=o,g.key=n,g.source=l,g}function ys(e,n,o){let l=null,a,r;process.env.NODE_ENV!=="production"&&De&&(l=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",Ne&&Ne(a));const i=n(o);if(process.env.NODE_ENV!=="production"&&De){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-l,groupId:`translate:${n.key}`}),a&&r&&Ne&&Ye&&(Ne(r),Ye("intlify message evaluation",a,r))}return i}function un(...e){const[n,o,l]=e,a=Z();if(!O(n)&&!ue(n)&&!Se(n)&&!Le(n))throw Be(pe.INVALID_ARGUMENT);const r=ue(n)?String(n):(Se(n),n);return ue(o)?a.plural=o:O(o)?a.default=o:j(o)&&!Pt(o)?a.named=o:se(o)&&(a.list=o),ue(l)?a.plural=l:O(l)?a.default=l:j(l)&&de(a,l),[r,a]}function Cs(e,n,o,l,a,r){return{locale:n,key:o,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const s=vs(l),c=`Message compilation error: ${i.message}`,u=i.location&&s&&Wa(s,i.location.start.offset,i.location.end.offset),E=e.__v_emitter;E&&s&&E.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
17
|
+
${u}`:c)}else throw i},onCacheKey:i=>Ma(n,o,i)}}function vs(e){if(O(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ns(e,n,o,l){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:E}=e,h={locale:n,modifiers:a,pluralRules:r,messages:(_,A)=>{let v=i(o,_);if(v==null&&(E||A)){const[,,C]=al(E||e,_,n,s,c,u);v=i(C,_)}if(O(v)||Le(v)){let C=!1;const k=il(e,_,n,v,_,()=>{C=!0});return C?Eo:k}else return Se(v)?v:Eo}};return e.processor&&(h.processor=e.processor),l.list&&(h.list=l.list),l.named&&(h.named=l.named),ue(l.plural)&&(h.pluralIndex=l.plural),h}Ni();/*!
|
|
18
18
|
* vue-i18n v11.1.3
|
|
19
19
|
* (c) 2025 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/const Ss="11.1.3";function bs(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(je().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(je().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(je().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(je().__INTLIFY_PROD_DEVTOOLS__=!1)}const fe={UNEXPECTED_RETURN_TYPE:Fi,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:Ls,args:n}:void 0)}const Ls={[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"},dn=Pe("__translateVNode"),fn=Pe("__datetimeParts"),mn=Pe("__numberParts"),pn=Pe("__enableEmitter"),gn=Pe("__disableEmitter"),ws=Pe("__setPluralRules"),sl=Pe("__injectWithOption"),hn=Pe("__dispose"),Re={FALLBACK_TO_ROOT:Qi,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},Ts={[Re.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Re.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Re.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Re.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`,[Re.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function An(e,...n){return Dt(Ts[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 a=e,r=!1;for(let i=0;i<l;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in a||(a[o[i]]=Z()),!Y(a[o[i]])){process.env.NODE_ENV!=="production"&&Me(An(Re.IGNORE_OBJ_FLATTEN,{key:o[i]})),r=!0;break}a=a[o[i]]}if(r||(Le(a)?Yo.includes(o[l])||delete e[n]:(a[o[l]]=e[n],delete e[n])),!Le(a)){const i=a[o[l]];Y(i)&&dt(i)}}return e}function cl(e,n){const{messages:o,__i18n:l,messageResolver:a,flatJson:r}=n,i=j(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?(i[c]=i[c]||Z(),St(u,i[c])):St(u,i)}else O(s)&&St(JSON.parse(s),i)}),a==null&&r)for(const s in i)be(i,s)&&dt(i[s]);return i}function ul(e){return e.type}function As(e,n,o){let l=Y(n.messages)?n.messages:Z();"__i18nGlobal"in o&&(l=cl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(Y(n.datetimeFormats)){const r=Object.keys(n.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,n.datetimeFormats[i])})}if(Y(n.numberFormats)){const r=Object.keys(n.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,n.numberFormats[i])})}}}function ko(e){return t.createVNode(t.Text,null,e,0)}const yo="__INTLIFY_META__",Co=()=>[],Is=()=>!1;let vo=0;function No(e){return(n,o,l,a)=>e(o,l,t.getCurrentInstance()||void 0,a)}const Vs=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=ul(e)[yo])?{[yo]:n}:null};function Bs(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,a=e.flatJson,r=De?t.ref:t.shallowRef;let i=ae(e.inheritLocale)?e.inheritLocale:!0;const s=r(n&&i?n.locale.value:O(e.locale)?e.locale:wt),c=r(n&&i?n.fallbackLocale.value:O(e.fallbackLocale)||se(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=r(cl(s.value,e)),E=r(j(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),g=r(j(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=n?n.missingWarn:ae(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,_=n?n.fallbackWarn:ae(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,A=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,C=ee(e.missing)?e.missing:null,f=ee(e.missing)?No(e.missing):null,k=ee(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const w=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let V=e.pluralRules||n&&n.pluralRules,v;v=(()=>{l&&so(null);const y={version:Ss,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:w,pluralRules:V,missing:f===null?void 0:f,missingWarn:h,fallbackWarn:_,fallbackFormat:S,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:b,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};y.datetimeFormats=E.value,y.numberFormats=g.value,y.__datetimeFormatters=j(v)?v.__datetimeFormatters:void 0,y.__numberFormatters=j(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(y.__v_emitter=j(v)?v.__v_emitter:void 0);const I=cs(y);return l&&so(I),I})(),it(v,s.value,c.value);function H(){return[s.value,c.value,u.value,E.value,g.value]}const J=t.computed({get:()=>s.value,set:y=>{v.locale=y,s.value=y}}),ce=t.computed({get:()=>c.value,set:y=>{v.fallbackLocale=y,c.value=y,it(v,s.value,y)}}),F=t.computed(()=>u.value),he=t.computed(()=>E.value),Ae=t.computed(()=>g.value);function P(){return ee(k)?k:null}function B(y){k=y,v.postTranslation=y}function z(){return C}function $(y){y!==null&&(f=No(y)),C=y,v.missing=f}function Ie(y,I){return y!=="translate"||!I.resolvedMessage}const me=(y,I,q,re,ze,pt)=>{H();let Ze;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(v.fallbackContext=n?ss():void 0),Ze=y(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(v.fallbackContext=void 0)}if(q!=="translate exists"&&ue(Ze)&&Ze===$t||q==="translate exists"&&!Ze){const[Ge,ql]=I();if(process.env.NODE_ENV!=="production"&&n&&O(Ge)&&Ie(q,ql)&&(A&&(Rt(_,Ge)||tl(h,Ge))&&Me(An(Re.FALLBACK_TO_ROOT,{key:Ge,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:zn}=v;zn&&A&&zn.emit("fallback",{type:q,key:Ge,to:"global",groupId:`${q}:${Ge}`})}return n&&A?re(n):ze(Ge)}else{if(pt(Ze))return Ze;throw ut(fe.UNEXPECTED_RETURN_TYPE)}};function Ue(...y){return me(I=>Reflect.apply(_o,null,[I,...y]),()=>un(...y),"translate",I=>Reflect.apply(I.t,I,[...y]),I=>I,I=>O(I))}function Ut(...y){const[I,q,re]=y;if(re&&!Y(re))throw ut(fe.INVALID_ARGUMENT);return Ue(I,q,de({resolvedMessage:!0},re||{}))}function Ht(...y){return me(I=>Reflect.apply(fo,null,[I,...y]),()=>sn(...y),"datetime format",I=>Reflect.apply(I.d,I,[...y]),()=>Tt,I=>O(I))}function zt(...y){return me(I=>Reflect.apply(po,null,[I,...y]),()=>cn(...y),"number format",I=>Reflect.apply(I.n,I,[...y]),()=>Tt,I=>O(I))}function Gt(y){return y.map(I=>O(I)||ue(I)||ae(I)?ko(String(I)):I)}const Wt={normalize:Gt,interpolate:y=>y,type:"vnode"};function mt(...y){return me(I=>{let q;const re=I;try{re.processor=Wt,q=Reflect.apply(_o,null,[re,...y])}finally{re.processor=null}return q},()=>un(...y),"translate",I=>I[dn](...y),I=>[ko(I)],I=>se(I))}function Kt(...y){return me(I=>Reflect.apply(po,null,[I,...y]),()=>cn(...y),"number format",I=>I[mn](...y),Co,I=>O(I)||se(I))}function jt(...y){return me(I=>Reflect.apply(fo,null,[I,...y]),()=>sn(...y),"datetime format",I=>I[fn](...y),Co,I=>O(I)||se(I))}function Yt(y){V=y,v.pluralRules=V}function qt(y,I){return me(()=>{if(!y)return!1;const q=O(I)?I:s.value,re=He(q),ze=v.messageResolver(re,y);return Le(ze)||Se(ze)||O(ze)},()=>[y],"translate exists",q=>Reflect.apply(q.te,q,[y,I]),Is,q=>ae(q))}function lt(y){let I=null;const q=qo(v,c.value,s.value);for(let re=0;re<q.length;re++){const ze=u.value[q[re]]||{},pt=v.messageResolver(ze,y);if(pt!=null){I=pt;break}}return I}function rt(y){const I=lt(y);return I??(n?n.tm(y)||{}:{})}function He(y){return u.value[y]||{}}function at(y,I){if(a){const q={[y]:I};for(const re in q)be(q,re)&&dt(q[re]);I=q[y]}u.value[y]=I,v.messages=u.value}function Xt(y,I){u.value[y]=u.value[y]||{};const q={[y]:I};if(a)for(const re in q)be(q,re)&&dt(q[re]);I=q[y],St(I,u.value[y]),v.messages=u.value}function d(y){return E.value[y]||{}}function m(y,I){E.value[y]=I,v.datetimeFormats=E.value,mo(v,y,I)}function L(y,I){E.value[y]=de(E.value[y]||{},I),v.datetimeFormats=E.value,mo(v,y,I)}function R(y){return g.value[y]||{}}function oe(y,I){g.value[y]=I,v.numberFormats=g.value,go(v,y,I)}function le(y,I){g.value[y]=de(g.value[y]||{},I),v.numberFormats=g.value,go(v,y,I)}vo++,n&&De&&(t.watch(n.locale,y=>{i&&(s.value=y,v.locale=y,it(v,s.value,c.value))}),t.watch(n.fallbackLocale,y=>{i&&(c.value=y,v.fallbackLocale=y,it(v,s.value,c.value))}));const K={id:vo,locale:J,fallbackLocale:ce,get inheritLocale(){return i},set inheritLocale(y){i=y,y&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,it(v,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:F,get modifiers(){return w},get pluralRules(){return V||{}},get isGlobal(){return l},get missingWarn(){return h},set missingWarn(y){h=y,v.missingWarn=h},get fallbackWarn(){return _},set fallbackWarn(y){_=y,v.fallbackWarn=_},get fallbackRoot(){return A},set fallbackRoot(y){A=y},get fallbackFormat(){return S},set fallbackFormat(y){S=y,v.fallbackFormat=S},get warnHtmlMessage(){return b},set warnHtmlMessage(y){b=y,v.warnHtmlMessage=y},get escapeParameter(){return p},set escapeParameter(y){p=y,v.escapeParameter=y},t:Ue,getLocaleMessage:He,setLocaleMessage:at,mergeLocaleMessage:Xt,getPostTranslationHandler:P,setPostTranslationHandler:B,getMissingHandler:z,setMissingHandler:$,[ws]:Yt};return K.datetimeFormats=he,K.numberFormats=Ae,K.rt=Ut,K.te=qt,K.tm=rt,K.d=Ht,K.n=zt,K.getDateTimeFormat=d,K.setDateTimeFormat=m,K.mergeDateTimeFormat=L,K.getNumberFormat=R,K.setNumberFormat=oe,K.mergeNumberFormat=le,K[sl]=o,K[dn]=mt,K[fn]=jt,K[mn]=Kt,process.env.NODE_ENV!=="production"&&(K[pn]=y=>{v.__v_emitter=y},K[gn]=()=>{v.__v_emitter=void 0}),K}function So(e,n){}const In={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Os({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===t.Fragment?a.children:[a]],[]):n.reduce((o,l)=>{const a=e[l];return a&&(o[l]=a()),o},Z())}function dl(){return t.Fragment}de({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ue(e)||!isNaN(e)}},In);function Ds(e){return se(e)&&!O(e[0])}function fl(e,n,o,l){const{slots:a,attrs:r}=n;return()=>{const i={part:!0};let s=Z();e.locale&&(i.locale=e.locale),O(e.format)?i.key=e.format:Y(e.format)&&(O(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((h,_)=>o.includes(_)?de(Z(),h,{[_]:e.format[_]}):h,Z()));const c=l(e.value,i,s);let u=[i.key];se(c)?u=c.map((h,_)=>{const A=a[h.type],S=A?A({[h.type]:h.value,index:_,parts:c}):[h.value];return Ds(S)&&(S[0].key=`${h.type}-${_}`),S}):O(c)&&(u=[c]);const E=de(Z(),r),g=O(e.tag)||Y(e.tag)?e.tag:dl();return t.h(g,E,u)}}de({value:{type:Number,required:!0},format:{type:[String,Object]}},In);const Ps=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=$s(n),l=Ms(o),a=ul(n),r=Rs(e,a);if(r==="global")return As(l,e,a),l;if(r==="parent"){let c=xs(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Me(An(Re.NOT_FOUND_PARENT_SCOPE)),c=l),c}const i=o;let s=i.__getInstance(n);if(s==null){const c=de({},e);"__i18n"in a&&(c.__i18n=a.__i18n),l&&(c.__root=l),s=Bs(c),i.__composerExtend&&(s[hn]=i.__composerExtend(s)),Us(i,n,s),i.__setInstance(n,s)}return s}function $s(e){const n=t.inject(e.isCE?Ps:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ut(e.isCE?fe.NOT_INSTALLED_WITH_PROVIDE:fe.UNEXPECTED_ERROR);return n}function Rs(e,n){return Pt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function Ms(e){return e.mode==="composition"?e.global:e.global.__composer}function xs(e,n,o=!1){let l=null;const a=n.root;let r=Fs(n,o);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,o&&l&&!l[sl]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Fs(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function Us(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,l=ja();const a=o;a[pn]&&a[pn](l),l.on("*",So)}},n),t.onUnmounted(()=>{const a=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",So),a[gn]&&a[gn](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const r=a[hn];r&&(r(),delete a[hn])},n)}de({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},In);bs();os(Pi);ls(Ji);rs(qo);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=je();e.__INTLIFY__=!0,$i(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(),a=t.ref(),r=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const i=await n;typeof document<"u"&&a.value&&r.value&&(l.value=new i.Tooltip(a.value,{trigger:"hover",html:!0,placement:o.placement,title:r.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{var i;(i=l.value)==null||i.dispose()}),(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:a},i.$attrs),[t.renderSlot(i.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:r},[t.renderSlot(i.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])],512)],64))}}),Hs=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,${r.value}`),l=t.computed(()=>({flowable:i.value?i.value.flowable:!1})),a=t.computed(()=>({backgroundImage:`url(${o.value})`})),r=t.computed(()=>{let c=i.value&&i.value.icon?window.atob(i.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 E=ve(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(E=(n.theme==="dark"?ve("--bs-gray-900"):ve("--bs-black"))??E),n.variable&&(E=ve(n.variable)??E),c=c.replace(/currentColor/g,E),window.btoa(c)}),i=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(a.value)},null,4)):(t.openBlock(),t.createBlock(X,{key:0,title:c.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(a.value)},null,4)]),_:1},8,["title"]))],2))}}),Vn=D(Hs,[["__scopeId","data-v-23f8d853"]]),zs={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gs=["aria-hidden","aria-label"],Ws=["fill","width","height"],Ks={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"},js={key:0};function Ys(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ks,[o.title?(t.openBlock(),t.createElementBlock("title",js,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ws))],16,Gs)}const ml=D(zs,[["render",Ys]]),qs={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xs=["aria-hidden","aria-label"],Zs=["fill","width","height"],Js={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 ec(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Js,[o.title?(t.openBlock(),t.createElementBlock("title",Qs,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zs))],16,Xs)}const tc=D(qs,[["render",ec]]),nc={class:"dependency-text d-flex flex-column flex-grow-1"},oc={class:"dependency-flow-text text-truncate"},lc={class:"dependency-namespace-text text-truncate"},rc={class:"text-white top-button-div"},ac=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:[N.EVENTS.EXPAND_DEPENDENCIES,N.EVENTS.OPEN_LINK,N.EVENTS.MOUSE_OVER,N.EVENTS.MOUSE_LEAVE],setup(e,{emit:n}){const o=n,{t:l}=Mt(),a=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
22
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Re.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function An(e,...n){return Dt(Ts[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 a=e,r=!1;for(let i=0;i<l;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in a||(a[o[i]]=Z()),!Y(a[o[i]])){process.env.NODE_ENV!=="production"&&Me(An(Re.IGNORE_OBJ_FLATTEN,{key:o[i]})),r=!0;break}a=a[o[i]]}if(r||(Le(a)?Yo.includes(o[l])||delete e[n]:(a[o[l]]=e[n],delete e[n])),!Le(a)){const i=a[o[l]];Y(i)&&dt(i)}}return e}function cl(e,n){const{messages:o,__i18n:l,messageResolver:a,flatJson:r}=n,i=j(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?(i[c]=i[c]||Z(),St(u,i[c])):St(u,i)}else O(s)&&St(JSON.parse(s),i)}),a==null&&r)for(const s in i)be(i,s)&&dt(i[s]);return i}function ul(e){return e.type}function As(e,n,o){let l=Y(n.messages)?n.messages:Z();"__i18nGlobal"in o&&(l=cl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(Y(n.datetimeFormats)){const r=Object.keys(n.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,n.datetimeFormats[i])})}if(Y(n.numberFormats)){const r=Object.keys(n.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,n.numberFormats[i])})}}}function ko(e){return t.createVNode(t.Text,null,e,0)}const yo="__INTLIFY_META__",Co=()=>[],Is=()=>!1;let vo=0;function No(e){return(n,o,l,a)=>e(o,l,t.getCurrentInstance()||void 0,a)}const Vs=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=ul(e)[yo])?{[yo]:n}:null};function Bs(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,a=e.flatJson,r=De?t.ref:t.shallowRef;let i=ae(e.inheritLocale)?e.inheritLocale:!0;const s=r(n&&i?n.locale.value:O(e.locale)?e.locale:wt),c=r(n&&i?n.fallbackLocale.value:O(e.fallbackLocale)||se(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=r(cl(s.value,e)),E=r(j(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),g=r(j(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=n?n.missingWarn:ae(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,_=n?n.fallbackWarn:ae(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,A=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,C=ee(e.missing)?e.missing:null,f=ee(e.missing)?No(e.missing):null,k=ee(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const w=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let V=e.pluralRules||n&&n.pluralRules,N;N=(()=>{l&&so(null);const y={version:Ss,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:w,pluralRules:V,missing:f===null?void 0:f,missingWarn:h,fallbackWarn:_,fallbackFormat:v,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:b,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};y.datetimeFormats=E.value,y.numberFormats=g.value,y.__datetimeFormatters=j(N)?N.__datetimeFormatters:void 0,y.__numberFormatters=j(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(y.__v_emitter=j(N)?N.__v_emitter:void 0);const I=cs(y);return l&&so(I),I})(),it(N,s.value,c.value);function H(){return[s.value,c.value,u.value,E.value,g.value]}const J=t.computed({get:()=>s.value,set:y=>{N.locale=y,s.value=y}}),ce=t.computed({get:()=>c.value,set:y=>{N.fallbackLocale=y,c.value=y,it(N,s.value,y)}}),F=t.computed(()=>u.value),he=t.computed(()=>E.value),Ae=t.computed(()=>g.value);function P(){return ee(k)?k:null}function B(y){k=y,N.postTranslation=y}function z(){return C}function $(y){y!==null&&(f=No(y)),C=y,N.missing=f}function Ie(y,I){return y!=="translate"||!I.resolvedMessage}const me=(y,I,q,re,ze,pt)=>{H();let Ze;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(N.fallbackContext=n?ss():void 0),Ze=y(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(N.fallbackContext=void 0)}if(q!=="translate exists"&&ue(Ze)&&Ze===$t||q==="translate exists"&&!Ze){const[Ge,ql]=I();if(process.env.NODE_ENV!=="production"&&n&&O(Ge)&&Ie(q,ql)&&(A&&(Rt(_,Ge)||tl(h,Ge))&&Me(An(Re.FALLBACK_TO_ROOT,{key:Ge,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:zn}=N;zn&&A&&zn.emit("fallback",{type:q,key:Ge,to:"global",groupId:`${q}:${Ge}`})}return n&&A?re(n):ze(Ge)}else{if(pt(Ze))return Ze;throw ut(fe.UNEXPECTED_RETURN_TYPE)}};function Ue(...y){return me(I=>Reflect.apply(_o,null,[I,...y]),()=>un(...y),"translate",I=>Reflect.apply(I.t,I,[...y]),I=>I,I=>O(I))}function Ut(...y){const[I,q,re]=y;if(re&&!Y(re))throw ut(fe.INVALID_ARGUMENT);return Ue(I,q,de({resolvedMessage:!0},re||{}))}function Ht(...y){return me(I=>Reflect.apply(fo,null,[I,...y]),()=>sn(...y),"datetime format",I=>Reflect.apply(I.d,I,[...y]),()=>Tt,I=>O(I))}function zt(...y){return me(I=>Reflect.apply(po,null,[I,...y]),()=>cn(...y),"number format",I=>Reflect.apply(I.n,I,[...y]),()=>Tt,I=>O(I))}function Gt(y){return y.map(I=>O(I)||ue(I)||ae(I)?ko(String(I)):I)}const Wt={normalize:Gt,interpolate:y=>y,type:"vnode"};function mt(...y){return me(I=>{let q;const re=I;try{re.processor=Wt,q=Reflect.apply(_o,null,[re,...y])}finally{re.processor=null}return q},()=>un(...y),"translate",I=>I[dn](...y),I=>[ko(I)],I=>se(I))}function Kt(...y){return me(I=>Reflect.apply(po,null,[I,...y]),()=>cn(...y),"number format",I=>I[mn](...y),Co,I=>O(I)||se(I))}function jt(...y){return me(I=>Reflect.apply(fo,null,[I,...y]),()=>sn(...y),"datetime format",I=>I[fn](...y),Co,I=>O(I)||se(I))}function Yt(y){V=y,N.pluralRules=V}function qt(y,I){return me(()=>{if(!y)return!1;const q=O(I)?I:s.value,re=He(q),ze=N.messageResolver(re,y);return Le(ze)||Se(ze)||O(ze)},()=>[y],"translate exists",q=>Reflect.apply(q.te,q,[y,I]),Is,q=>ae(q))}function lt(y){let I=null;const q=qo(N,c.value,s.value);for(let re=0;re<q.length;re++){const ze=u.value[q[re]]||{},pt=N.messageResolver(ze,y);if(pt!=null){I=pt;break}}return I}function rt(y){const I=lt(y);return I??(n?n.tm(y)||{}:{})}function He(y){return u.value[y]||{}}function at(y,I){if(a){const q={[y]:I};for(const re in q)be(q,re)&&dt(q[re]);I=q[y]}u.value[y]=I,N.messages=u.value}function Xt(y,I){u.value[y]=u.value[y]||{};const q={[y]:I};if(a)for(const re in q)be(q,re)&&dt(q[re]);I=q[y],St(I,u.value[y]),N.messages=u.value}function d(y){return E.value[y]||{}}function m(y,I){E.value[y]=I,N.datetimeFormats=E.value,mo(N,y,I)}function L(y,I){E.value[y]=de(E.value[y]||{},I),N.datetimeFormats=E.value,mo(N,y,I)}function R(y){return g.value[y]||{}}function oe(y,I){g.value[y]=I,N.numberFormats=g.value,go(N,y,I)}function le(y,I){g.value[y]=de(g.value[y]||{},I),N.numberFormats=g.value,go(N,y,I)}vo++,n&&De&&(t.watch(n.locale,y=>{i&&(s.value=y,N.locale=y,it(N,s.value,c.value))}),t.watch(n.fallbackLocale,y=>{i&&(c.value=y,N.fallbackLocale=y,it(N,s.value,c.value))}));const K={id:vo,locale:J,fallbackLocale:ce,get inheritLocale(){return i},set inheritLocale(y){i=y,y&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,it(N,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:F,get modifiers(){return w},get pluralRules(){return V||{}},get isGlobal(){return l},get missingWarn(){return h},set missingWarn(y){h=y,N.missingWarn=h},get fallbackWarn(){return _},set fallbackWarn(y){_=y,N.fallbackWarn=_},get fallbackRoot(){return A},set fallbackRoot(y){A=y},get fallbackFormat(){return v},set fallbackFormat(y){v=y,N.fallbackFormat=v},get warnHtmlMessage(){return b},set warnHtmlMessage(y){b=y,N.warnHtmlMessage=y},get escapeParameter(){return p},set escapeParameter(y){p=y,N.escapeParameter=y},t:Ue,getLocaleMessage:He,setLocaleMessage:at,mergeLocaleMessage:Xt,getPostTranslationHandler:P,setPostTranslationHandler:B,getMissingHandler:z,setMissingHandler:$,[ws]:Yt};return K.datetimeFormats=he,K.numberFormats=Ae,K.rt=Ut,K.te=qt,K.tm=rt,K.d=Ht,K.n=zt,K.getDateTimeFormat=d,K.setDateTimeFormat=m,K.mergeDateTimeFormat=L,K.getNumberFormat=R,K.setNumberFormat=oe,K.mergeNumberFormat=le,K[sl]=o,K[dn]=mt,K[fn]=jt,K[mn]=Kt,process.env.NODE_ENV!=="production"&&(K[pn]=y=>{N.__v_emitter=y},K[gn]=()=>{N.__v_emitter=void 0}),K}function So(e,n){}const In={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Os({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===t.Fragment?a.children:[a]],[]):n.reduce((o,l)=>{const a=e[l];return a&&(o[l]=a()),o},Z())}function dl(){return t.Fragment}de({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ue(e)||!isNaN(e)}},In);function Ds(e){return se(e)&&!O(e[0])}function fl(e,n,o,l){const{slots:a,attrs:r}=n;return()=>{const i={part:!0};let s=Z();e.locale&&(i.locale=e.locale),O(e.format)?i.key=e.format:Y(e.format)&&(O(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((h,_)=>o.includes(_)?de(Z(),h,{[_]:e.format[_]}):h,Z()));const c=l(e.value,i,s);let u=[i.key];se(c)?u=c.map((h,_)=>{const A=a[h.type],v=A?A({[h.type]:h.value,index:_,parts:c}):[h.value];return Ds(v)&&(v[0].key=`${h.type}-${_}`),v}):O(c)&&(u=[c]);const E=de(Z(),r),g=O(e.tag)||Y(e.tag)?e.tag:dl();return t.h(g,E,u)}}de({value:{type:Number,required:!0},format:{type:[String,Object]}},In);const Ps=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=$s(n),l=Ms(o),a=ul(n),r=Rs(e,a);if(r==="global")return As(l,e,a),l;if(r==="parent"){let c=xs(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Me(An(Re.NOT_FOUND_PARENT_SCOPE)),c=l),c}const i=o;let s=i.__getInstance(n);if(s==null){const c=de({},e);"__i18n"in a&&(c.__i18n=a.__i18n),l&&(c.__root=l),s=Bs(c),i.__composerExtend&&(s[hn]=i.__composerExtend(s)),Us(i,n,s),i.__setInstance(n,s)}return s}function $s(e){const n=t.inject(e.isCE?Ps:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ut(e.isCE?fe.NOT_INSTALLED_WITH_PROVIDE:fe.UNEXPECTED_ERROR);return n}function Rs(e,n){return Pt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function Ms(e){return e.mode==="composition"?e.global:e.global.__composer}function xs(e,n,o=!1){let l=null;const a=n.root;let r=Fs(n,o);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,o&&l&&!l[sl]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Fs(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function Us(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=o,l=ja();const a=o;a[pn]&&a[pn](l),l.on("*",So)}},n),t.onUnmounted(()=>{const a=o;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",So),a[gn]&&a[gn](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const r=a[hn];r&&(r(),delete a[hn])},n)}de({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},In);bs();os(Pi);ls(Ji);rs(qo);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=je();e.__INTLIFY__=!0,$i(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(),a=t.ref(),r=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const i=await n;typeof document<"u"&&a.value&&r.value&&(l.value=new i.Tooltip(a.value,{trigger:"hover",html:!0,placement:o.placement,title:r.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{var i;(i=l.value)==null||i.dispose()}),(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:a},i.$attrs),[t.renderSlot(i.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:r},[t.renderSlot(i.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])],512)],64))}}),Hs=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,${r.value}`),l=t.computed(()=>({flowable:i.value?i.value.flowable:!1})),a=t.computed(()=>({backgroundImage:`url(${o.value})`})),r=t.computed(()=>{let c=i.value&&i.value.icon?window.atob(i.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 E=ve(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(E=(n.theme==="dark"?ve("--bs-gray-900"):ve("--bs-black"))??E),n.variable&&(E=ve(n.variable)??E),c=c.replace(/currentColor/g,E),window.btoa(c)}),i=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(a.value)},null,4)):(t.openBlock(),t.createBlock(X,{key:0,title:c.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(a.value)},null,4)]),_:1},8,["title"]))],2))}}),Vn=D(Hs,[["__scopeId","data-v-23f8d853"]]),zs={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gs=["aria-hidden","aria-label"],Ws=["fill","width","height"],Ks={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"},js={key:0};function Ys(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ks,[o.title?(t.openBlock(),t.createElementBlock("title",js,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ws))],16,Gs)}const ml=D(zs,[["render",Ys]]),qs={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xs=["aria-hidden","aria-label"],Zs=["fill","width","height"],Js={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 ec(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Js,[o.title?(t.openBlock(),t.createElementBlock("title",Qs,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zs))],16,Xs)}const tc=D(qs,[["render",ec]]),nc={class:"dependency-text d-flex flex-column flex-grow-1"},oc={class:"dependency-flow-text text-truncate"},lc={class:"dependency-namespace-text text-truncate"},rc={class:"text-white top-button-div"},ac=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:[S.EVENTS.EXPAND_DEPENDENCIES,S.EVENTS.OPEN_LINK,S.EVENTS.MOUSE_OVER,S.EVENTS.MOUSE_LEAVE],setup(e,{emit:n}){const o=n,{t:l}=Mt(),a=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(r,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[t.createVNode(Vn,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",nc,[t.createElementVNode("div",oc,[t.createVNode(X,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",lc,[t.createVNode(X,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",rc,[t.renderSlot(r.$slots,"badge-button-before",{},void 0,!0),e.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>r.$emit(t.unref(N.EVENTS).OPEN_LINK,e.data))},[t.createVNode(X,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(ml,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),e.data.expandEnabled?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[1]||(i[1]=s=>o(t.unref(N.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(X,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(tc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),ic=D(ac,[["__scopeId","data-v-2271d5b0"]]);var Te=(e=>(e.Lines="lines",e.Dots="dots",e))(Te||{});const pl=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]}`})},gl=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Te.Lines+"",Te.Dots+"";const sc={[Te.Dots]:"#81818a",[Te.Lines]:"#eee"},cc=["id","x","y","width","height","patternTransform"],uc={key:2,height:"100",width:"100"},dc=["fill"],fc=["x","y","fill"],mc={name:"Background",compatConfig:{MODE:3}},pc=t.defineComponent({...mc,props:{id:{},variant:{default:()=>Te.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}=ne.useVueFlow(),l=t.computed(()=>{const[i,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],c=[i*o.value.zoom||1,s*o.value.zoom||1],u=e.size*o.value.zoom,E=e.variant===Te.Dots?[u/e.offset,u/e.offset]:[c[0]/e.offset,c[1]/e.offset];return{scaledGap:c,offset:E,size:u}}),a=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),r=t.toRef(()=>e.color||e.patternColor||sc[e.variant||Te.Dots]);return(i,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[t.renderSlot(i.$slots,"pattern-container",{id:a.value},()=>[t.createElementVNode("pattern",{id:a.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(i.$slots,"pattern",{},()=>[i.variant===t.unref(Te).Lines?(t.openBlock(),t.createBlock(t.unref(pl),{key:0,size:i.lineWidth,color:r.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===t.unref(Te).Dots?(t.openBlock(),t.createBlock(t.unref(gl),{key:1,color:r.value,radius:l.value.size/i.offset},null,8,["color","radius"])):t.createCommentVNode("",!0),i.bgColor?(t.openBlock(),t.createElementBlock("svg",uc,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,dc)])):t.createCommentVNode("",!0)])],8,cc)]),t.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,fc),t.renderSlot(i.$slots,"default",{id:a.value})],4))}}),gc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hc=["aria-hidden","aria-label"],Ec=["fill","width","height"],_c={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},kc={key:0};function yc(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",_c,[o.title?(t.openBlock(),t.createElementBlock("title",kc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ec))],16,hc)}const Cc=D(gc,[["render",yc]]),vc={class:"top-button-div text-white d-flex"},Nc={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 N.Utils.afterLastDot(this.id)}}},Sc=Object.assign(Nc,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:ne.Position,default:void 0},targetPosition:{type:ne.Position,default:void 0},id:{type:String,default:void 0}},emits:[N.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,a=()=>{l(N.EVENTS.COLLAPSE,o.id)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(r.clusterName),3),t.createElementVNode("div",vc,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>a())},[t.createVNode(X,{title:r.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Cc,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),bc=D(Sc,[["__scopeId","data-v-0c251e77"]]),Lc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wc=["aria-hidden","aria-label"],Tc=["fill","width","height"],Ac={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"},Ic={key:0};function Vc(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ac,[o.title?(t.openBlock(),t.createElementBlock("title",Ic,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Tc))],16,wc)}const hl=D(Lc,[["render",Vc]]),Bc={name:"Dot",components:{Handle:ne.Handle,CircleIcon:hl},inheritAttrs:!1,props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},label:{type:String,default:void 0}},computed:{classes(){return{"unused-path":this.data.unused,[N.Utils.afterLastDot(this.data.node.type)]:!0}}}},Oc=Object.assign(Bc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(ne.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(hl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(ne.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),Dc=D(Oc,[["__scopeId","data-v-666f472b"]]),Pc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$c=["aria-hidden","aria-label"],Rc=["fill","width","height"],Mc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},xc={key:0};function Fc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Mc,[o.title?(t.openBlock(),t.createElementBlock("title",xc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Rc))],16,$c)}const Uc=D(Pc,[["render",Fc]]),Hc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},zc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Hc,[n.addTask?(t.openBlock(),t.createBlock(Uc,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Gc=D(zc,[["__scopeId","data-v-4afc4738"]]),Wc={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:Gc,EdgeLabelRenderer:ne.EdgeLabelRenderer,Tooltip:X},computed:{Utils(){return N.Utils},EVENTS(){return N.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(()=>ne.getSmoothStepPath(e))}},inheritAttrs:!1},Kc=["id","d","marker-end"];function jc(e,n,o,l,a,r){const i=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(r.classes),style:t.normalizeStyle(o.data.haveDashArray?{strokeDasharray:"2"}:{}),d:l.path[0],"marker-end":o.markerEnd},null,14,Kc),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:r.title},{default:t.withCtx(()=>[o.data.haveAdd?(t.openBlock(),t.createBlock(i,{key:0,"add-task":!0,onClick:n[0]||(n[0]=u=>e.$emit(r.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 Yc=D(Wc,[["render",jc],["__scopeId","data-v-a3e1d999"]]),qc=["innerHTML"],Xc=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(_,A)=>{A[0].date!==_[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const a=t.computed(()=>{var _;return((_=n.histories)==null?void 0:_.length)&&new Date(n.histories[0].date.toString()).getTime()}),r=t.computed(()=>n.histories[n.histories.length-1]),i=t.computed(()=>n.histories.filter(_=>_.date.isValid()&&_.date&&_.state));function s(){l.value||(l.value=setInterval(()=>{g(),n.histories&&!te.isRunning(r.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return E()-a.value}function E(){return!n.histories||te.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function g(){o.value=i.value.length===0?" ":N.humanDuration(u()/1e3)}function h(_){return"ks-duration-tt-square-"+_.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(_,A)=>(t.openBlock(),t.createBlock(X,{key:r.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(S,C)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+C,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",h(S.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(S.state)+": ",1),t.createTextVNode(t.toDisplayString(N.dateFilter(S.date.toISOString(),"iso"))+" ",1),A[0]||(A[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,qc)]),_:1}))}}),Zc={class:"btn-group content rounded-1 content-children text-truncate"},Jc={key:0,class:"taskRunCount"},Qc={key:1},eu={key:2},tu=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>{var r;return(r=n.execution)!=null&&r.taskRunList?n.execution.taskRunList:[]}),l=t.computed(()=>o.value.filter(r=>r.taskId===N.afterLastDot(n.uid??""))),a=t.computed(()=>{if(!l.value)return;const r=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>Jt.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:Jt(r).subtract(i,"second"),state:"CREATED"},{date:Jt(r),state:n.state}]});return(r,i)=>(t.openBlock(),t.createElementBlock("div",Zc,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",Jc,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",Qc," | ")):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",eu,[t.createVNode(Xc,{histories:a.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),nu=D(tu,[["__scopeId","data-v-2b139cc5"]]),ou={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lu=["aria-hidden","aria-label"],ru=["fill","width","height"],au={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"},iu={key:0};function su(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",au,[o.title?(t.openBlock(),t.createElementBlock("title",iu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ru))],16,lu)}const cu=D(ou,[["render",su]]),uu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},du=["aria-hidden","aria-label"],fu=["fill","width","height"],mu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},pu={key:0};function gu(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",mu,[o.title?(t.openBlock(),t.createElementBlock("title",pu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fu))],16,du)}const Bn=D(uu,[["render",gu]]),hu={class:"icon rounded"},Eu={class:"node-content"},_u={class:"d-flex node-title"},ku={class:"text-truncate task-title"},yu={key:0,class:"d-flex"},Cu={class:"text-white top-button-div"},vu=t.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[N.EVENTS.EXPAND,N.EVENTS.OPEN_LINK,N.EVENTS.SHOW_LOGS,N.EVENTS.MOUSE_OVER,N.EVENTS.MOUSE_LEAVE,N.EVENTS.ADD_ERROR,N.EVENTS.EDIT,N.EVENTS.DELETE,N.EVENTS.ADD_TASK,N.EVENTS.SHOW_DESCRIPTION],setup(e,{emit:n}){const o=n,l=e;function a(){o(N.EVENTS.MOUSE_OVER,l.data.node)}function r(){o(N.EVENTS.MOUSE_LEAVE)}const i=t.computed(()=>{var _;return((_=l.data)==null?void 0:_.expandable)||!1}),s=t.computed(()=>{const _=l.data.node.task??l.data.node.trigger??null;return _?_.description??null:null}),c=t.computed(()=>N.Utils.afterLastDot(l.id??"")),u=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),E=t.computed(()=>{var _,A,S,C;return[{"unused-path":l.data.unused,disabled:((_=l.data.node.task)==null?void 0:_.disabled)||((C=(S=(A=l.data.parent)==null?void 0:A.taskNode)==null?void 0:S.task)==null?void 0:C.disabled)},l.class]}),g=t.computed(()=>{var _;if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if((_=l.data.node)!=null&&_.task)return l.data.node.task.type}),h=t.computed(()=>{var _;if((_=l.data.node.type)!=null&&_.endsWith("SubflowGraphTask")){const A=l.data.node.task.subflowId??l.data.node.task;return A.namespace+" "+A.flowId}return c.value});return(_,A)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...E.value,"running-border-animation":_.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:_.state?`var(--ks-border-${_.state.toLowerCase()})`:void 0}),onMouseover:a,onMouseleave:r},[t.createElementVNode("div",hu,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.iconComponent||Vn),{cls:g.value,class:t.normalizeClass([u.value,"rounded bg-white"]),theme:"light",icons:_.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",Eu,[t.createElementVNode("div",_u,[t.createElementVNode("div",ku,[t.createVNode(X,{title:h.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.title??c.value),1)]),_:1},8,["title"])]),s.value?(t.openBlock(),t.createElementBlock("span",yu,[t.createVNode(X,{title:_.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(cu,{onClick:A[0]||(A[0]=S=>_.$emit(t.unref(N.EVENTS).SHOW_DESCRIPTION,{id:c.value,description:s.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(_.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",Cu,[t.renderSlot(_.$slots,"badge-button-before",{},void 0,!0),_.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${_.data.color}`]]),onClick:A[1]||(A[1]=S=>_.$emit(t.unref(N.EVENTS).OPEN_LINK,{link:_.data.link}))},[t.createVNode(X,{title:_.$t("open")},{default:t.withCtx(()=>[t.createVNode(ml,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${_.data.color}`]]),onClick:A[2]||(A[2]=S=>_.$emit(t.unref(N.EVENTS).EXPAND))},[t.createVNode(X,{title:_.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Bn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(_.$slots,"badge-button-after",{},void 0,!0)])],38))}}),El=D(vu,[["__scopeId","data-v-394f20a4"]]),On=Symbol("execution-injection-key"),_l=Symbol("subflows-executions-injection-key"),Nu={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Su=["aria-hidden","aria-label"],bu=["fill","width","height"],Lu={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"},wu={key:0};function Tu(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Lu,[o.title?(t.openBlock(),t.createElementBlock("title",wu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bu))],16,Su)}const Dn=D(Nu,[["render",Tu]]),Au={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Iu=["aria-hidden","aria-label"],Vu=["fill","width","height"],Bu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Ou={key:0};function Du(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Bu,[o.title?(t.openBlock(),t.createElementBlock("title",Ou,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Vu))],16,Iu)}const Pn=D(Au,[["render",Du]]),Pu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$u=["aria-hidden","aria-label"],Ru=["fill","width","height"],Mu={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"},xu={key:0};function Fu(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Mu,[o.title?(t.openBlock(),t.createElementBlock("title",xu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ru))],16,$u)}const Uu=D(Pu,[["render",Fu]]),Hu={name:"AlertOutlineIcon",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:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Ku={key:0};function ju(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",Ku,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gu))],16,zu)}const Yu=D(Hu,[["render",ju]]),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,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ju,[o.title?(t.openBlock(),t.createElementBlock("title",Qu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zu))],16,Xu)}const td=D(qu,[["render",ed]]),nd={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},od=["aria-hidden","aria-label"],ld=["fill","width","height"],rd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},ad={key:0};function id(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",rd,[o.title?(t.openBlock(),t.createElementBlock("title",ad,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ld))],16,od)}const sd=D(nd,[["render",id]]),cd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ud=["aria-hidden","aria-label"],dd=["fill","width","height"],fd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},md={key:0};function pd(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",fd,[o.title?(t.openBlock(),t.createElementBlock("title",md,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,dd))],16,ud)}const kl=D(cd,[["render",pd]]),gd={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hd=["aria-hidden","aria-label"],Ed=["fill","width","height"],_d={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},kd={key:0};function yd(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",_d,[o.title?(t.openBlock(),t.createElementBlock("title",kd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ed))],16,hd)}const $n=D(gd,[["render",yd]]),Cd={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vd=["aria-hidden","aria-label"],Nd=["fill","width","height"],Sd={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},bd={key:0};function Ld(e,n,o,l,a,r){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-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Sd,[o.title?(t.openBlock(),t.createElementBlock("title",bd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Nd))],16,vd)}const wd=D(Cd,[["render",Ld]]),Td=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:ne.Position.Right},targetPosition:{default:ne.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean}},setup(e,{emit:n}){const o=e,l=n,a=t.inject(On),r=t.inject(_l),i=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>N.Utils.afterLastDot(o.id)),c=t.computed(()=>{var f;const C=o.data.executionId;if(C)return C===((f=a==null?void 0:a.value)==null?void 0:f.id)?a==null?void 0:a.value:Object.values((r==null?void 0:r.value)||{}).find(k=>k.id===C)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),E=t.computed(()=>u.value.filter(C=>C.taskId===N.Utils.afterLastDot(o.data.node.uid))),g=t.computed(()=>{var b;if(!((b=E.value)!=null&&b.length))return null;if(E.value.length===1)return E.value[0].state.current;const C=E.value.map(p=>p.state.current),f=[te.FAILED,te.KILLED,te.WARNING,te.SKIPPED,te.KILLING,te.RUNNING,te.SUCCESS,te.RESTARTED,te.CREATED];return C.map(p=>[f.indexOf(p[1]),p]).sort().map(p=>p[1])[0]}),h=t.computed(()=>({"execution-no-taskrun":!!(c.value&&E.value&&E.value.length===0)})),_=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),A=t.computed(()=>{var C,f,k,b,p;if((C=o.data.node.type)!=null&&C.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const w=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:w.namespace,id:w.flowId,executionId:(p=(b=(k=(f=c.value)==null?void 0:f.taskRunList.filter(V=>{var v;return V.taskId===o.data.node.task.id&&((v=V.outputs)==null?void 0:v.executionId)}))==null?void 0:k[0])==null?void 0:b.outputs)==null?void 0:p.executionId}}}return o.data}),S=t.computed(()=>g.value===te.RUNNING?"task is running":g.value===te.SUCCESS?"task was successful":g.value===te.WARNING?"task sent a warning":g.value===te.SKIPPED?"task was skipped":g.value===te.FAILED?"task failed":"");return(C,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:C.sourcePosition},null,8,["position"]),t.createVNode(El,{id:C.id,data:A.value,state:g.value,class:t.normalizeClass(h.value),icons:C.icons,"icon-component":C.iconComponent,onShowDescription:f[6]||(f[6]=k=>l(t.unref(N.EVENTS).SHOW_DESCRIPTION,k)),onExpand:f[7]||(f[7]=k=>l(t.unref(N.EVENTS).EXPAND,_.value)),onOpenLink:f[8]||(f[8]=k=>l(t.unref(N.EVENTS).OPEN_LINK,k)),onMouseover:f[9]||(f[9]=k=>l(t.unref(N.EVENTS).MOUSE_OVER,k)),onMouseleave:f[10]||(f[10]=k=>l(t.unref(N.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>{var k,b;return[c.value?(t.openBlock(),t.createBlock(nu,{key:0,execution:c.value,task:C.data.node.task,color:i.value,uid:C.data.node.uid,state:g.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),C.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[C.playgroundEnabled&&C.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:f[0]||(f[0]=p=>l(t.unref(N.EVENTS).RUN_TASK,{task:C.data.node.task}))},[t.createVNode(X,{style:{display:"flex"},title:C.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(sd,{class:"button-play-icon",alt:C.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"playground-button",style:t.normalizeStyle({color:`var(--ks-content-${(k=g.value)==null?void 0:k.toLowerCase()})`,backgroundColor:`var(--ks-background-${(b=g.value)==null?void 0:b.toLowerCase()})`})},[t.createVNode(X,{style:{display:"flex"},title:C.$t(S.value)},{default:t.withCtx(()=>[g.value===t.unref(te).RUNNING?(t.openBlock(),t.createBlock(Mo,{key:0,alt:C.$t(S.value)},null,8,["alt"])):g.value===t.unref(te).SUCCESS?(t.openBlock(),t.createBlock(kl,{key:1,alt:C.$t(S.value)},null,8,["alt"])):g.value===t.unref(te).WARNING?(t.openBlock(),t.createBlock($n,{key:2,alt:C.$t(S.value)},null,8,["alt"])):g.value===t.unref(te).SKIPPED?(t.openBlock(),t.createBlock(wd,{key:3,alt:C.$t(S.value)},null,8,["alt"])):g.value===t.unref(te).FAILED?(t.openBlock(),t.createBlock(bt,{key:4,alt:C.$t(S.value)},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]}),"badge-button-before":t.withCtx(()=>[C.data.node.task&&C.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:f[1]||(f[1]=k=>l(t.unref(N.EVENTS).SHOW_CONDITION,{id:s.value,task:C.data.node.task,section:t.unref(N.SECTIONS).TASKS}))},[t.createVNode(X,{title:C.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(td,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[2]||(f[2]=k=>l(t.unref(N.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:E.value}))},[t.createVNode(X,{title:C.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(Uu,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly&&C.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[3]||(f[3]=k=>l(t.unref(N.EVENTS).ADD_ERROR,{task:C.data.node.task}))},[t.createVNode(X,{title:C.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(Yu,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[4]||(f[4]=k=>l(t.unref(N.EVENTS).EDIT,{task:C.data.node.task,section:t.unref(N.SECTIONS).TASKS}))},[t.createVNode(X,{title:C.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[5]||(f[5]=k=>l(t.unref(N.EVENTS).DELETE,{id:s.value,section:t.unref(N.SECTIONS).TASKS}))},[t.createVNode(X,{title:C.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:C.targetPosition},null,8,["position"])],64))}}),Ad=D(Td,[["__scopeId","data-v-2e8ae97f"]]),Id={name:"Task",inheritAttrs:!1,inject:{execution:{from:On}},computed:{SECTIONS(){return N.SECTIONS},EVENTS(){return N.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 N.Utils.afterLastDot(this.id)}},emits:[N.EVENTS.DELETE,N.EVENTS.EDIT,N.EVENTS.SHOW_DESCRIPTION],components:{Delete:Pn,Pencil:Dn,Handle:ne.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)}}},Vd=Object.assign(Id,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(El,{id:e.id,data:n.formattedData,color:n.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:o[2]||(o[2]=l=>n.forwardEvent(t.unref(N.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(N.EVENTS).EXPAND,{id:e.id}))},t.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:t.withCtx(()=>[n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(N.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(N.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),n.execution?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${n.color}`]]),onClick:o[1]||(o[1]=l=>n.$emit(t.unref(N.EVENTS).DELETE,{id:n.triggerId,section:t.unref(N.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Bd={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Od=["aria-hidden","aria-label"],Dd=["fill","width","height"],Pd={d:"M11 15H6L13 1V9H18L11 23V15Z"},$d={key:0};function Rd(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Pd,[o.title?(t.openBlock(),t.createElementBlock("title",$d,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Dd))],16,Od)}const Md=D(Bd,[["render",Rd]]),xd={class:"collapsed-cluster-node d-flex"},Fd={class:"node-text"},Ud={class:"text-white top-button-div"},Hd={components:{Tooltip:X,Handle:ne.Handle,ArrowExpand:Bn,LightningBolt:Md},inheritAttrs:!1,props:{id:{type:String,default:void 0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},data:{type:Object,required:!0}},data(){return{filter:void 0,isOpen:!1}},computed:{EVENTS(){return N.EVENTS},expandable(){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}}},zd=Object.assign(Hd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",xd,[t.createElementVNode("span",Fd,[e.data.iconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.data.iconComponent),{key:0,class:t.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(N.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",Ud,[t.renderSlot(n.$slots,"badge-button-before",{},void 0,!0),n.expandable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:o[0]||(o[0]=l=>n.$emit(t.unref(N.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(X,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Bn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Gd=D(zd,[["__scopeId","data-v-89413b39"]]),Wd={name:"SplitCellsVerticalIcon",emits:["click"]},Kd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",Kd,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 Yd=D(Wd,[["render",jd],["__scopeId","data-v-084c51e6"]]),qd={name:"SplitCellsHorizontalIcon",emits:["click"]},Xd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",Xd,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 Jd=D(qd,[["render",Zd],["__scopeId","data-v-c77c1469"]]),Qd={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ef=["aria-hidden","aria-label"],tf=["fill","width","height"],nf={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},of={key:0};function lf(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",nf,[o.title?(t.openBlock(),t.createElementBlock("title",of,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,tf))],16,ef)}const rf=D(Qd,[["render",lf]]);function af(e,n){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const o=document.implementation.createHTMLDocument(),l=o.createElement("base"),a=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(a),n&&(l.href=n),a.href=e,a.href}const sf=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Oe(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 cf(e){const n=At(e,"border-left-width"),o=At(e,"border-right-width");return e.clientWidth+n+o}function uf(e){const n=At(e,"border-top-width"),o=At(e,"border-bottom-width");return e.clientHeight+n+o}function yl(e,n={}){const o=n.width||cf(e),l=n.height||uf(e);return{width:o,height:l}}function df(){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 ff(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 mf(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function pf(e,n,o){const l="http://www.w3.org/2000/svg",a=document.createElementNS(l,"svg"),r=document.createElementNS(l,"foreignObject");return a.setAttribute("width",`${n}`),a.setAttribute("height",`${o}`),a.setAttribute("viewBox",`0 0 ${n} ${o}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),a.appendChild(r),r.appendChild(e),mf(a)}const _e=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||_e(o,n)};function gf(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function hf(e){return Oe(e).map(n=>{const o=e.getPropertyValue(n),l=e.getPropertyPriority(n);return`${n}: ${o}${l?" !important":""};`}).join(" ")}function Ef(e,n,o){const l=`.${e}:${n}`,a=o.cssText?gf(o):hf(o);return document.createTextNode(`${l}{${a}}`)}function bo(e,n,o){const l=window.getComputedStyle(e,o),a=l.getPropertyValue("content");if(a===""||a==="none")return;const r=sf();try{n.className=`${n.className} ${r}`}catch{return}const i=document.createElement("style");i.appendChild(Ef(r,o,l)),n.appendChild(i)}function _f(e,n){bo(e,n,":before"),bo(e,n,":after")}const Lo="application/font-woff",wo="image/jpeg",kf={woff:Lo,woff2:Lo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:wo,jpeg:wo,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function yf(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function Rn(e){const n=yf(e).toLowerCase();return kf[n]||""}function Cf(e){return e.split(/,/)[1]}function En(e){return e.search(/^(data:)/)!==-1}function vf(e,n){return`data:${n};base64,${e}`}async function Cl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const a=await l.blob();return new Promise((r,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{r(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(a)})}const nn={};function Nf(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=Nf(e,n,o.includeQueryParams);if(nn[l]!=null)return nn[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const r=await Cl(e,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),Cf(s)));a=vf(r,n)}catch(r){a=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;r&&(i=typeof r=="string"?r:r.message),i&&console.warn(i)}return nn[l]=a,a}async function Sf(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):It(n)}async function bf(e,n){if(e.currentSrc){const r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,i==null||i.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return It(s)}const o=e.poster,l=Rn(o),a=await Mn(o,l,n);return It(a)}async function Lf(e){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await xt(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function wf(e,n){return _e(e,HTMLCanvasElement)?Sf(e):_e(e,HTMLVideoElement)?bf(e,n):_e(e,HTMLIFrameElement)?Lf(e):e.cloneNode(!1)}const Tf=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function Af(e,n,o){var l,a;let r=[];return Tf(e)&&e.assignedNodes?r=Oe(e.assignedNodes()):_e(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?r=Oe(e.contentDocument.body.childNodes):r=Oe(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),r.length===0||_e(e,HTMLVideoElement)||await r.reduce((i,s)=>i.then(()=>xt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function If(e,n){const o=n.style;if(!o)return;const l=window.getComputedStyle(e);l.cssText?(o.cssText=l.cssText,o.transformOrigin=l.transformOrigin):Oe(l).forEach(a=>{let r=l.getPropertyValue(a);a==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),_e(e,HTMLIFrameElement)&&a==="display"&&r==="inline"&&(r="block"),a==="d"&&n.getAttribute("d")&&(r=`path(${n.getAttribute("d")})`),o.setProperty(a,r,l.getPropertyPriority(a))})}function Vf(e,n){_e(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),_e(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function Bf(e,n){if(_e(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(a=>e.value===a.getAttribute("value"));l&&l.setAttribute("selected","")}}function Of(e,n){return _e(n,Element)&&(If(e,n),_f(e,n),Vf(e,n),Bf(e,n)),n}async function Df(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let r=0;r<o.length;r++){const s=o[r].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await xt(u,n,!0))}}const a=Object.values(l);if(a.length){const r="http://www.w3.org/1999/xhtml",i=document.createElementNS(r,"svg");i.setAttribute("xmlns",r),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(r,"defs");i.appendChild(s);for(let c=0;c<a.length;c++)s.appendChild(a[c]);e.appendChild(i)}return e}async function xt(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>wf(l,n)).then(l=>Af(e,l,n)).then(l=>Of(e,l)).then(l=>Df(l,n))}const vl=/url\((['"]?)([^'"]+?)\1\)/g,Pf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,$f=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Rf(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function Mf(e){const n=[];return e.replace(vl,(o,l,a)=>(n.push(a),o)),n.filter(o=>!En(o))}async function xf(e,n,o,l,a){try{const r=o?af(n,o):n,i=Rn(n);let s;return a||(s=await Mn(r,i,l)),e.replace(Rf(n),`$1${s}$3`)}catch{}return e}function Ff(e,{preferredFontFormat:n}){return n?e.replace($f,o=>{for(;;){const[l,,a]=Pf.exec(o)||[];if(!a)return"";if(a===n)return`src: ${l};`}}):e}function Nl(e){return e.search(vl)!==-1}async function Sl(e,n,o){if(!Nl(e))return e;const l=Ff(e,o);return Mf(l).reduce((r,i)=>r.then(s=>xf(s,i,n,o)),Promise.resolve(l))}async function yt(e,n,o){var l;const a=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(a){const r=await Sl(a,null,o);return n.style.setProperty(e,r,n.style.getPropertyPriority(e)),!0}return!1}async function Uf(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=_e(e,HTMLImageElement);if(!(o&&!En(e.src))&&!(_e(e,SVGImageElement)&&!En(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,a=await Mn(l,Rn(l),n);await new Promise((r,i)=>{e.onload=r,e.onerror=i;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=a):e.href.baseVal=a})}async function zf(e,n){const l=Oe(e.childNodes).map(a=>bl(a,n));await Promise.all(l).then(()=>e)}async function bl(e,n){_e(e,Element)&&(await Uf(e,n),await Hf(e,n),await zf(e,n))}function Gf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(a=>{o[a]=l[a]}),e}const To={};async function Ao(e){let n=To[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},To[e]=n,n}async function Io(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,r=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Cl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(r).then(()=>o)}function Vo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(a,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=r.exec(l);if(c===null){if(c=s.exec(l),c===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;n.push(c[0])}return n}async function Wf(e,n){const o=[],l=[];return e.forEach(a=>{if("cssRules"in a)try{Oe(a.cssRules||[]).forEach((r,i)=>{if(r.type===CSSRule.IMPORT_RULE){let s=i+1;const c=r.href,u=Ao(c).then(E=>Io(E,n)).then(E=>Vo(E).forEach(g=>{try{a.insertRule(g,g.startsWith("@import")?s+=1:a.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:g,error:h})}})).catch(E=>{console.error("Error loading remote css",E.toString())});l.push(u)}})}catch(r){const i=e.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&l.push(Ao(a.href).then(s=>Io(s,n)).then(s=>Vo(s).forEach(c=>{i.insertRule(c,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(l).then(()=>(e.forEach(a=>{if("cssRules"in a)try{Oe(a.cssRules||[]).forEach(r=>{o.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${a.href}`,r)}}),o))}function Kf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Nl(n.style.getPropertyValue("src")))}async function jf(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Oe(e.ownerDocument.styleSheets),l=await Wf(o,n);return Kf(l)}async function Yf(e,n){const o=await jf(e,n);return(await Promise.all(o.map(a=>{const r=a.parentStyleSheet?a.parentStyleSheet.href:null;return Sl(a.cssText,r,n)}))).join(`
|
|
25
|
-
`)}async function qf(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Yf(e,n);if(o){const l=document.createElement("style"),a=document.createTextNode(o);l.appendChild(a),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function Xf(e,n={}){const{width:o,height:l}=yl(e,n),a=await xt(e,n,!0);return await qf(a,n),await bl(a,n),Gf(a,n),await pf(a,o,l)}async function Ll(e,n={}){const{width:o,height:l}=yl(e,n),a=await Xf(e,n),r=await It(a),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||df(),u=n.canvasWidth||o,E=n.canvasHeight||l;return i.width=u*c,i.height=E*c,n.skipAutoScale||ff(i),i.style.width=`${u}`,i.style.height=`${E}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(r,0,0,i.width,i.height),i}async function Zf(e,n={}){return(await Ll(e,n)).toDataURL()}async function Jf(e,n={}){return(await Ll(e,n)).toDataURL("image/jpeg",n.quality||1)}function Qf(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let u;const E=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":u=await a(s,c);break;case"png":u=await r(s,c);break;default:u=await r(s,c);break}return c.shouldDownload&&E!==""&&i(E),u}function a(s,c={quality:.95}){return o.value=null,Jf(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function r(s,c={quality:.95}){return o.value=null,Zf(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:i,dataUrl:e,error:o}}const em={key:1,class:"exporting"},tm=t.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1}},emits:[N.EVENTS.EDIT,N.EVENTS.DELETE,N.EVENTS.RUN_TASK,N.EVENTS.OPEN_LINK,N.EVENTS.SHOW_LOGS,N.EVENTS.SHOW_DESCRIPTION,N.EVENTS.RUN_TASK,"on-add-flowable-error",N.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",N.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),a=t.ref(),{getNodes:r,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:E,vueFlowRef:g}=ne.useVueFlow(o.id),h=t.ref({}),_=t.ref([]),A=t.ref(new Set),S=t.ref([]),{capture:C}=Qf();t.provide(On,t.computed(()=>o.execution)),t.provide(_l,t.computed(()=>o.subflowsExecutions));const f=n;t.onMounted(()=>{k()}),t.watch(()=>o.flowGraph,()=>{k()}),t.watch(()=>o.isHorizontal,()=>{k()});const k=()=>{N.cleanGraph(o.id),t.nextTick(()=>{f("loading",!0);const P=A.value;A.value=new Set,_.value=[],h.value={},P.forEach(z=>x(N.CLUSTER_PREFIX+z,!1,!1));const B=N.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,_.value,o.isHorizontal,h.value,A.value,S.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);B&&(E(B),u(),f("loading",!1))})},b=P=>{l.value||N.linkedElements(o.id,P.uid).forEach(B=>{(B==null?void 0:B.type)==="task"&&(B.style={...B.style,outline:"0.5px solid "+ve("--bs-gray-900")},B.class="rounded-3")})},p=()=>{w()},w=()=>{r.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,w(),P.node.style={...P.node.style,zIndex:1976},a.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&v(P.intersections,P.node)===null){const B=P.node,z=P.intersections.find($=>$.type==="task");if(z)try{o.source&&f("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:N.Utils.afterLastDot(B.id)??"",key2:N.Utils.afterLastDot(z.id)??""}),swappedTasks:[B.id,z.id]})}catch($){f("message",{variant:"error",title:"cannot swap tasks",message:`${$.message}, ${$.messageOptions}`}),B.position=a.value}else B.position=a.value}else P.node.position=a.value;w(),P.node.style={...P.node.style,zIndex:5},a.value=null});const V=t.computed(()=>{var P;return(P=o.flowGraph)!=null&&P.clusters?o.flowGraph.clusters.filter(B=>B.cluster.type.endsWith("SubflowGraphCluster")).map(B=>B.cluster.taskNode.uid+"."):[]});i(P=>{w(),r.value.filter(B=>B.id!==P.node.id).forEach(B=>{var z;B.type==="trigger"||B.type==="task"&&(B.id.startsWith(P.node.id+".")||P.node.id.startsWith(B.id+"."))||(z=V==null?void 0:V.value)!=null&&z.some($=>B.id.startsWith($))?B.style={...B.style,opacity:"0.5"}:B.style={...B.style,opacity:"1"}}),P.intersections&&!v(P.intersections,P.node)&&P.intersections.filter(B=>B.type==="task").length===1&&(P.intersections.forEach(B=>{B.type==="task"&&(B.style={...B.style,outline:"0.5px solid "+ve("--bs-primary")},B.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+ve("--bs-primary")},P.node.class="rounded-3")});const v=(P,B)=>{const z=P.filter($=>$.type==="task").map($=>N.Utils.afterLastDot($.id));if(z.length>1)return"toomuchtaskerror";try{if(z.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:N.Utils.afterLastDot(z[0])??"",key2:N.Utils.afterLastDot(B.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter($=>$.type==="trigger").length>0?"triggererror":null},x=(P,B,z=!1)=>{const $=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(N.CLUSTER_PREFIX,"");A.value.add(Ie),_.value=_.value.concat($.nodes.filter(me=>me!==Ie||z)),_.value=_.value.concat([$.cluster.uid]),h.value={...h.value,[$.cluster.uid]:Ie,[$.start]:Ie,[$.end]:Ie};for(let me of $.nodes)o.flowGraph.clusters.map(Ue=>Ue.cluster.uid).includes(me)&&x(me,!1,!0);B&&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)){f("expand-subflow",[...o.expandedSubflows,P.id]);return}h.value={},_.value=[],S.value=[],A.value.delete(P.id),A.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(!g.value){console.warn("Flow not found");return}ce.value=!1,C(g.value,{type:P,shouldDownload:!0}).then(()=>ce.value=!0).finally(()=>F.value=!1)}return(P,B)=>(t.openBlock(),t.createBlock(t.unref(ne.VueFlow),{id:e.id,"default-marker-color":t.unref(ve)("--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(bc,t.mergeProps(z,{onCollapse:B[0]||(B[0]=$=>x($,!0))}),null,16)]),"node-dot":t.withCtx(z=>[t.createVNode(Dc,t.normalizeProps(t.guardReactiveProps(z)),null,16)]),"node-task":t.withCtx(z=>[t.createVNode(Ad,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:B[1]||(B[1]=$=>f(t.unref(N.EVENTS).EDIT,$)),onDelete:B[2]||(B[2]=$=>f(t.unref(N.EVENTS).DELETE,$)),onRunTask:B[3]||(B[3]=$=>f(t.unref(N.EVENTS).RUN_TASK,$)),onExpand:B[4]||(B[4]=$=>H($)),onOpenLink:B[5]||(B[5]=$=>f(t.unref(N.EVENTS).OPEN_LINK,$)),onShowLogs:B[6]||(B[6]=$=>f(t.unref(N.EVENTS).SHOW_LOGS,$)),onShowDescription:B[7]||(B[7]=$=>f(t.unref(N.EVENTS).SHOW_DESCRIPTION,$)),onShowCondition:B[8]||(B[8]=$=>f(t.unref(N.EVENTS).SHOW_CONDITION,$)),onMouseover:B[9]||(B[9]=$=>b($)),onMouseleave:B[10]||(B[10]=$=>p()),onAddError:B[11]||(B[11]=$=>f("on-add-flowable-error",$)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-trigger":t.withCtx(z=>[t.createVNode(Vd,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:B[12]||(B[12]=$=>f(t.unref(N.EVENTS).DELETE,$)),onEdit:B[13]||(B[13]=$=>f(t.unref(N.EVENTS).EDIT,$)),onShowDescription:B[14]||(B[14]=$=>f(t.unref(N.EVENTS).SHOW_DESCRIPTION,$))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(z=>[t.createVNode(Gd,t.mergeProps(z,{onExpand:B[15]||(B[15]=$=>H($))}),null,16)]),"edge-edge":t.withCtx(z=>[t.createVNode(Yc,t.mergeProps(z,{"yaml-source":e.source,onAddTask:B[16]||(B[16]=$=>f(t.unref(N.EVENTS).ADD_TASK,$)),"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(pc),{"pattern-color":J?t.unref(ve)("--bs-grey-500"):t.unref(ve)("--bs-grey-300")},null,8,["pattern-color"]),ce.value?(t.openBlock(),t.createBlock(t.unref(Zt.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(Zt.ControlButton),{key:0,onClick:B[17]||(B[17]=z=>f("toggle-orientation",z))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?Jd:Yd)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(Zt.ControlButton),{onClick:he},{default:t.withCtx(()=>[t.createVNode(rf)]),_:1}),F.value?(t.openBlock(),t.createElementBlock("ul",em,[t.createElementVNode("li",{onClick:B[18]||(B[18]=z=>Ae("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:B[19]||(B[19]=z=>Ae("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),nm=D(tm,[["__scopeId","data-v-52da5473"]]),om={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lm=["aria-hidden","aria-label"],rm=["fill","width","height"],am={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"},im={key:0};function sm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",am,[o.title?(t.openBlock(),t.createElementBlock("title",im,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,rm))],16,lm)}const cm=D(om,[["render",sm]]),um={key:0,class:"language"},dm=["innerHTML"],fm=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(cm),Check:t.shallowRef(kl)},o=e,l=t.ref(!1),a=t.ref(),r=t.shallowRef(n.ContentCopy.value),i=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,a.value&&t.nextTick(()=>{i.value&&s.value&&or.createPopper(i.value,s.value,{placement:"left"})})}function E(){clearTimeout(a.value),navigator.clipboard.writeText(o.code.trimEnd()),r.value=n.Check.value,a.value=setTimeout(()=>{r.value=n.ContentCopy.value,a.value=void 0},2e3)}return(g,h)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:h[0]||(h[0]=_=>l.value=!1)},[g.language&&!l.value?(t.openBlock(),t.createElementBlock("div",um,t.toDisplayString(g.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{onClick:E}))],512),a.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,dm)],32))}}),Bo=D(fm,[["__scopeId","data-v-a899f6a1"]]),mm={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pm=["aria-hidden","aria-label"],gm=["fill","width","height"],hm={d:"M10,17L15,12L10,7V17Z"},Em={key:0};function _m(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",hm,[o.title?(t.openBlock(),t.createElementBlock("title",Em,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gm))],16,pm)}const km=D(mm,[["render",_m]]),ym={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cm=["aria-hidden","aria-label"],vm=["fill","width","height"],Nm={d:"M7,10L12,15L17,10H7Z"},Sm={key:0};function bm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nm,[o.title?(t.openBlock(),t.createElementBlock("title",Sm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,vm))],16,Cm)}const Lm=D(ym,[["render",bm]]),wm=["id","open"],Tm={class:"d-flex gap-2 align-items-center"},Am={key:0,class:"d-flex flex-grow-1"},Im=["id"],Vm=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),a=vn.useRoute(),r=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),window.location.hash=l.value?"":i.value},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>a.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,E)=>(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",Tm,[u.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?km:Lm),{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",Am,[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,Im)):t.createCommentVNode("",!0)],8,wm))}}),Vt=D(Vm,[["__scopeId","data-v-5411e3ca"]]);function Ct(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function wl(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Bm(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 Om(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Tl(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(N.Utils.distinctFilter):n.types=["object"],e.additionalProperties?n.subType=Ct(e.additionalProperties):e.items&&(n.subType=Ct(e.items)),n}const Dm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pm=["aria-hidden","aria-label"],$m=["fill","width","height"],Rm={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Mm={key:0};function xm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Rm,[o.title?(t.openBlock(),t.createElementBlock("title",Mm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$m))],16,Pm)}const Fm=D(Dm,[["render",xm]]),Um={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hm=["aria-hidden","aria-label"],zm=["fill","width","height"],Gm={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"},Wm={key:0};function Km(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Gm,[o.title?(t.openBlock(),t.createElementBlock("title",Wm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zm))],16,Hm)}const Al=D(Um,[["render",Km]]),jm={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ym=["aria-hidden","aria-label"],qm=["fill","width","height"],Xm={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"},Zm={key:0};function Jm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xm,[o.title?(t.openBlock(),t.createElementBlock("title",Zm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qm))],16,Ym)}const Qm=D(jm,[["render",Jm]]),ep={class:"me-3"},tp={class:"d-flex flex-column"},np=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return Qm;case"info":return bt;case"warning":return $n;case"danger":return ln;default:return bt}});return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",ep,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",tp,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),op=D(np,[["__scopeId","data-v-f7fd8bc1"]]),lp={class:"property-detail"},rp={key:0},ap=["href"],ip={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},sp={class:"ref-type"},cp={key:1,class:"type-box rounded fs-7 px-2 py-1"},up={key:1},dp={class:"border rounded px-2 py-1"},fp={key:2},mp={class:"border rounded px-2 py-1"},pp={key:3},gp={class:"border rounded px-2 py-1"},hp={key:4},Ep={class:"border rounded px-2 py-1"},_p={key:5},kp={class:"border rounded px-2 py-1"},yp={key:6},Cp={class:"border rounded px-2 py-1"},vp={key:7},Np={class:"border rounded px-2 py-1"},Sp={key:8},bp={class:"border rounded px-2 py-1"},Lp={key:9},wp={class:"border rounded px-2 py-1"},Tp={key:10},Ap={class:"border rounded px-2 py-1"},Ip={key:11},Vp={class:"border rounded px-2 py-1"},Bp={key:12},Op={class:"border rounded px-2 py-1"},Dp={key:13},Pp={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},$p={key:14},Rp={class:"property-description markdown"},Mp={key:2},xp=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Tl(n.property).subType),l=t.ref(Bm(n.property)),a=r=>r.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(r,i)=>(t.openBlock(),t.createElementBlock("div",lp,[o.value?(t.openBlock(),t.createElementBlock("div",rp,[i[1]||(i[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",ip,[t.createElementVNode("span",sp,t.toDisplayString(t.unref(wl)(o.value)),1),t.createVNode(Al)])],8,ap)):(t.openBlock(),t.createElementBlock("span",cp,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),r.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",up,[i[2]||(i[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",dp,t.toDisplayString(r.property.default),1)])):t.createCommentVNode("",!0),r.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",fp,[i[3]||(i[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",mp,t.toDisplayString(r.property.pattern),1)])):t.createCommentVNode("",!0),r.property.unit!==void 0&&r.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",pp,[i[4]||(i[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",gp,t.toDisplayString(r.property.unit),1)])):t.createCommentVNode("",!0),r.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",hp,[i[5]||(i[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",Ep,t.toDisplayString(r.property.minLength),1)])):t.createCommentVNode("",!0),r.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",_p,[i[6]||(i[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",kp,t.toDisplayString(r.property.maxLength),1)])):t.createCommentVNode("",!0),r.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",yp,[i[7]||(i[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",Cp,t.toDisplayString(r.property.minItems),1)])):t.createCommentVNode("",!0),r.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",vp,[i[8]||(i[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Np,t.toDisplayString(r.property.maxItems),1)])):t.createCommentVNode("",!0),r.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",Sp,[i[9]||(i[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",bp," >= "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Lp,[i[10]||(i[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",wp," > "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",Tp,[i[11]||(i[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Ap," <= "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Ip,[i[12]||(i[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Vp," < "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",Bp,[i[13]||(i[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",Op,t.toDisplayString(r.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Dp,[i[14]||(i[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",Pp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(s,c)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},t.toDisplayString(s),1))),128))])])):t.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",$p,[t.createElementVNode("div",Rp,[r.property.title!==void 0?t.renderSlot(r.$slots,"markdown",{key:0,content:a(r.property.title)},void 0,!0):t.createCommentVNode("",!0),r.property.description!==void 0?t.renderSlot(r.$slots,"markdown",{key:1,content:a(r.property.description)},void 0,!0):t.createCommentVNode("",!0),r.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",Mp,[t.createVNode(op,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Fp=D(xp,[["__scopeId","data-v-79715a4e"]]),Up={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hp=["aria-hidden","aria-label"],zp=["fill","width","height"],Gp={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Wp={key:0};function Kp(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Gp,[o.title?(t.openBlock(),t.createElementBlock("title",Wp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zp))],16,Hp)}const jp=D(Up,[["render",Kp]]),Yp={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qp=["aria-hidden","aria-label"],Xp=["fill","width","height"],Zp={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"},Jp={key:0};function Qp(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Zp,[o.title?(t.openBlock(),t.createElementBlock("title",Jp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xp))],16,qp)}const e1=D(Yp,[["render",Qp]]),t1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},n1=["aria-hidden","aria-label"],o1=["fill","width","height"],l1={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"},r1={key:0};function a1(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",l1,[o.title?(t.openBlock(),t.createElementBlock("title",r1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,o1))],16,n1)}const i1=D(t1,[["render",a1]]),s1={class:"border overflow-hidden"},c1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},u1={class:"d-flex gap-2"},d1={class:"d-flex flex-wrap gap-2"},f1=["href"],m1={class:"ref-type"},p1={key:1,class:"type-box rounded fs-7 px-2 py-1"},g1=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,a=t.ref(!1);t.watch(a,s=>{s&&l("expand")});const r=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 i(s){const c=[],u=[];for(const h in s)typeof s[h]=="object"&&(s[h]=Om(s[h]),s[h].$required?c.push(h):u.push(h));const E=[...c.sort(),...u.sort()],g={};return E.forEach(h=>{var _;(!s[h].$deprecated||(_=o.forceInclude)!=null&&_.includes(h))&&(g[h]=s[h])}),g}return(s,c)=>(t.openBlock(),t.createBlock(Vt,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||a.value},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",s1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(s.properties),(u,E)=>(t.openBlock(),t.createBlock(Vt,{class:"property",key:E,arrow:!1,"clickable-text":E,href:s.href+"_"+E,onExpand:c[1]||(c[1]=g=>a.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:g})=>[t.createElementVNode("span",c1,[t.createElementVNode("span",u1,[s.showDynamic&&!r(u)?(t.openBlock(),t.createBlock(X,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(e1,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(X,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(i1,{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($n,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",d1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Tl)(u).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",m1,t.toDisplayString(t.unref(wl)(h)),1),t.createVNode(Al)],8,f1)):(t.openBlock(),t.createElementBlock("span",p1,t.toDisplayString(h),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g?Fm:jp),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(Fp,{property:u},{markdown:t.withCtx(({content:g})=>[t.renderSlot(s.$slots,"markdown",{content:g},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),vt=D(g1,[["__scopeId","data-v-0d36ff40"]]),h1={class:"d-flex flex-column gap-6"},E1={key:0,class:"alert alert-info",role:"alert"},_1={key:1,class:"plugin-title markdown"},k1={key:2,class:"markdown"},y1={class:"d-flex flex-column gap-4"},C1={class:"d-flex flex-column gap-3"},v1={class:"markdown"},N1={key:0,class:"w-100 align-self-center"},S1={class:"markdown"},b1={class:"markdown"},L1={class:"markdown"},w1={class:"d-flex flex-column gap-7 ps-3"},T1={class:"markdown"},A1=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,a=t.ref(!1),r=t.ref(new Set),i=t.ref(0),s=async()=>{var V;const p=window.location.hash.slice(1);if(!p||!l.schema.definitions){r.value.clear();return}const w=p.includes("#")?(V=p.split("#").pop())==null?void 0:V.split(".").pop():p;if(w&&w in l.schema.definitions){a.value=!0,i.value+=1,r.value.clear(),r.value.add(w),await t.nextTick();let v=0;const x=30,H=()=>{const J=document.getElementById(w);J?J.scrollIntoView({behavior:"smooth",block:"start"}):v<x&&(v++,requestAnimationFrame(H))};requestAnimationFrame(H)}else r.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([p,w],[V,v])=>{(p!==V||w!==v)&&l.schema.definitions&&s()},{immediate:!0});const c=p=>{var w;return p!=null&&p.full?p.code:`id: "${(w=l.pluginType.split(".").reverse()[0])==null?void 0:w.toLowerCase()}"
|
|
24
|
+
</svg>`));return(r,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass([[`border-${e.data.color}`],"dependency-node-wrapper rounded-3 border"])},[t.createVNode(Vn,{"custom-icon":{icon:a.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",nc,[t.createElementVNode("div",oc,[t.createVNode(X,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",lc,[t.createVNode(X,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",rc,[t.renderSlot(r.$slots,"badge-button-before",{},void 0,!0),e.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>r.$emit(t.unref(S.EVENTS).OPEN_LINK,e.data))},[t.createVNode(X,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(ml,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),e.data.expandEnabled?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[1]||(i[1]=s=>o(t.unref(S.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(X,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(tc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),ic=D(ac,[["__scopeId","data-v-2271d5b0"]]);var Te=(e=>(e.Lines="lines",e.Dots="dots",e))(Te||{});const pl=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]}`})},gl=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Te.Lines+"",Te.Dots+"";const sc={[Te.Dots]:"#81818a",[Te.Lines]:"#eee"},cc=["id","x","y","width","height","patternTransform"],uc={key:2,height:"100",width:"100"},dc=["fill"],fc=["x","y","fill"],mc={name:"Background",compatConfig:{MODE:3}},pc=t.defineComponent({...mc,props:{id:{},variant:{default:()=>Te.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}=ne.useVueFlow(),l=t.computed(()=>{const[i,s]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],c=[i*o.value.zoom||1,s*o.value.zoom||1],u=e.size*o.value.zoom,E=e.variant===Te.Dots?[u/e.offset,u/e.offset]:[c[0]/e.offset,c[1]/e.offset];return{scaledGap:c,offset:E,size:u}}),a=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),r=t.toRef(()=>e.color||e.patternColor||sc[e.variant||Te.Dots]);return(i,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${i.height>100?100:i.height}%`,width:`${i.width>100?100:i.width}%`})},[t.renderSlot(i.$slots,"pattern-container",{id:a.value},()=>[t.createElementVNode("pattern",{id:a.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(i.$slots,"pattern",{},()=>[i.variant===t.unref(Te).Lines?(t.openBlock(),t.createBlock(t.unref(pl),{key:0,size:i.lineWidth,color:r.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===t.unref(Te).Dots?(t.openBlock(),t.createBlock(t.unref(gl),{key:1,color:r.value,radius:l.value.size/i.offset},null,8,["color","radius"])):t.createCommentVNode("",!0),i.bgColor?(t.openBlock(),t.createElementBlock("svg",uc,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,dc)])):t.createCommentVNode("",!0)])],8,cc)]),t.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${a.value})`},null,8,fc),t.renderSlot(i.$slots,"default",{id:a.value})],4))}}),gc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hc=["aria-hidden","aria-label"],Ec=["fill","width","height"],_c={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},kc={key:0};function yc(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",_c,[o.title?(t.openBlock(),t.createElementBlock("title",kc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ec))],16,hc)}const Cc=D(gc,[["render",yc]]),vc={class:"top-button-div text-white d-flex"},Nc={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 S.Utils.afterLastDot(this.id)}}},Sc=Object.assign(Nc,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:ne.Position,default:void 0},targetPosition:{type:ne.Position,default:void 0},id:{type:String,default:void 0}},emits:[S.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,a=()=>{l(S.EVENTS.COLLAPSE,o.id)};return(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(r.clusterName),3),t.createElementVNode("div",vc,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:i[0]||(i[0]=s=>a())},[t.createVNode(X,{title:r.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(Cc,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),bc=D(Sc,[["__scopeId","data-v-0c251e77"]]),Lc={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wc=["aria-hidden","aria-label"],Tc=["fill","width","height"],Ac={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"},Ic={key:0};function Vc(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ac,[o.title?(t.openBlock(),t.createElementBlock("title",Ic,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Tc))],16,wc)}const hl=D(Lc,[["render",Vc]]),Bc={name:"Dot",components:{Handle:ne.Handle,CircleIcon:hl},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,[S.Utils.afterLastDot(this.data.node.type)]:!0}}}},Oc=Object.assign(Bc,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(ne.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(hl,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(ne.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),Dc=D(Oc,[["__scopeId","data-v-666f472b"]]),Pc={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$c=["aria-hidden","aria-label"],Rc=["fill","width","height"],Mc={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},xc={key:0};function Fc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:!0,"aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Mc,[o.title?(t.openBlock(),t.createElementBlock("title",xc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Rc))],16,$c)}const Uc=D(Pc,[["render",Fc]]),Hc={class:"add-task-div rounded d-flex justify-content-center align-items-center"},zc=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Hc,[n.addTask?(t.openBlock(),t.createBlock(Uc,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Gc=D(zc,[["__scopeId","data-v-4afc4738"]]),Wc={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:Gc,EdgeLabelRenderer:ne.EdgeLabelRenderer,Tooltip:X},computed:{Utils(){return S.Utils},EVENTS(){return S.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(()=>ne.getSmoothStepPath(e))}},inheritAttrs:!1},Kc=["id","d","marker-end"];function jc(e,n,o,l,a,r){const i=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(r.classes),style:t.normalizeStyle(o.data.haveDashArray?{strokeDasharray:"2"}:{}),d:l.path[0],"marker-end":o.markerEnd},null,14,Kc),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:r.title},{default:t.withCtx(()=>[o.data.haveAdd?(t.openBlock(),t.createBlock(i,{key:0,"add-task":!0,onClick:n[0]||(n[0]=u=>e.$emit(r.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 Yc=D(Wc,[["render",jc],["__scopeId","data-v-a3e1d999"]]),qc=["innerHTML"],Xc=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(_,A)=>{A[0].date!==_[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const a=t.computed(()=>{var _;return((_=n.histories)==null?void 0:_.length)&&new Date(n.histories[0].date.toString()).getTime()}),r=t.computed(()=>n.histories[n.histories.length-1]),i=t.computed(()=>n.histories.filter(_=>_.date.isValid()&&_.date&&_.state));function s(){l.value||(l.value=setInterval(()=>{g(),n.histories&&!te.isRunning(r.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return E()-a.value}function E(){return!n.histories||te.isRunning(r.value.state)?+new Date:new Date(r.value.date.toString()).getTime()}function g(){o.value=i.value.length===0?" ":S.humanDuration(u()/1e3)}function h(_){return"ks-duration-tt-square-"+_.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(_,A)=>(t.openBlock(),t.createBlock(X,{key:r.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(v,C)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+C,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",h(v.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(v.state)+": ",1),t.createTextVNode(t.toDisplayString(S.dateFilter(v.date.toISOString(),"iso"))+" ",1),A[0]||(A[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,qc)]),_:1}))}}),Zc={class:"btn-group content rounded-1 content-children text-truncate"},Jc={key:0,class:"taskRunCount"},Qc={key:1},eu={key:2},tu=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>{var r;return(r=n.execution)!=null&&r.taskRunList?n.execution.taskRunList:[]}),l=t.computed(()=>o.value.filter(r=>r.taskId===S.afterLastDot(n.uid??""))),a=t.computed(()=>{if(!l.value)return;const r=Math.max(...l.value.filter(s=>s.state.histories&&s.state.histories.length>0).map(s=>new Date(s.state.histories[s.state.histories.length-1].date).getTime())),i=Math.max(...l.value.map(s=>Jt.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:Jt(r).subtract(i,"second"),state:"CREATED"},{date:Jt(r),state:n.state}]});return(r,i)=>(t.openBlock(),t.createElementBlock("div",Zc,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",Jc,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",Qc," | ")):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",eu,[t.createVNode(Xc,{histories:a.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),nu=D(tu,[["__scopeId","data-v-2b139cc5"]]),ou={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lu=["aria-hidden","aria-label"],ru=["fill","width","height"],au={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"},iu={key:0};function su(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",au,[o.title?(t.openBlock(),t.createElementBlock("title",iu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ru))],16,lu)}const cu=D(ou,[["render",su]]),uu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},du=["aria-hidden","aria-label"],fu=["fill","width","height"],mu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},pu={key:0};function gu(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",mu,[o.title?(t.openBlock(),t.createElementBlock("title",pu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fu))],16,du)}const Bn=D(uu,[["render",gu]]),hu={class:"icon rounded"},Eu={class:"node-content"},_u={class:"d-flex node-title"},ku={class:"text-truncate task-title"},yu={key:0,class:"d-flex"},Cu={class:"text-white top-button-div"},vu=t.defineComponent({name:"BasicNode",inheritAttrs:!1,__name:"BasicNode",props:{id:{},title:{},type:{},disabled:{type:Boolean},state:{},data:{},icons:{},iconComponent:{},class:{}},emits:[S.EVENTS.EXPAND,S.EVENTS.OPEN_LINK,S.EVENTS.SHOW_LOGS,S.EVENTS.MOUSE_OVER,S.EVENTS.MOUSE_LEAVE,S.EVENTS.ADD_ERROR,S.EVENTS.EDIT,S.EVENTS.DELETE,S.EVENTS.ADD_TASK,S.EVENTS.SHOW_DESCRIPTION],setup(e,{emit:n}){const o=n,l=e;function a(){o(S.EVENTS.MOUSE_OVER,l.data.node)}function r(){o(S.EVENTS.MOUSE_LEAVE)}const i=t.computed(()=>{var _;return((_=l.data)==null?void 0:_.expandable)||!1}),s=t.computed(()=>{const _=l.data.node.task??l.data.node.trigger??null;return _?_.description??null:null}),c=t.computed(()=>S.Utils.afterLastDot(l.id??"")),u=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),E=t.computed(()=>{var _,A,v,C;return[{"unused-path":l.data.unused,disabled:((_=l.data.node.task)==null?void 0:_.disabled)||((C=(v=(A=l.data.parent)==null?void 0:A.taskNode)==null?void 0:v.task)==null?void 0:C.disabled)},l.class]}),g=t.computed(()=>{var _;if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if((_=l.data.node)!=null&&_.task)return l.data.node.task.type}),h=t.computed(()=>{var _;if((_=l.data.node.type)!=null&&_.endsWith("SubflowGraphTask")){const A=l.data.node.task.subflowId??l.data.node.task;return A.namespace+" "+A.flowId}return c.value});return(_,A)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...E.value,"running-border-animation":_.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:_.state?`var(--ks-border-${_.state.toLowerCase()})`:void 0}),onMouseover:a,onMouseleave:r},[t.createElementVNode("div",hu,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.iconComponent||Vn),{cls:g.value,class:t.normalizeClass([u.value,"rounded bg-white"]),theme:"light",icons:_.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",Eu,[t.createElementVNode("div",_u,[t.createElementVNode("div",ku,[t.createVNode(X,{title:h.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.title??c.value),1)]),_:1},8,["title"])]),s.value?(t.openBlock(),t.createElementBlock("span",yu,[t.createVNode(X,{title:_.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(cu,{onClick:A[0]||(A[0]=v=>_.$emit(t.unref(S.EVENTS).SHOW_DESCRIPTION,{id:c.value,description:s.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(_.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",Cu,[t.renderSlot(_.$slots,"badge-button-before",{},void 0,!0),_.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${_.data.color}`]]),onClick:A[1]||(A[1]=v=>_.$emit(t.unref(S.EVENTS).OPEN_LINK,{link:_.data.link}))},[t.createVNode(X,{title:_.$t("open")},{default:t.withCtx(()=>[t.createVNode(ml,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${_.data.color}`]]),onClick:A[2]||(A[2]=v=>_.$emit(t.unref(S.EVENTS).EXPAND))},[t.createVNode(X,{title:_.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Bn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(_.$slots,"badge-button-after",{},void 0,!0)])],38))}}),El=D(vu,[["__scopeId","data-v-394f20a4"]]),On=Symbol("execution-injection-key"),_l=Symbol("subflows-executions-injection-key"),Nu={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Su=["aria-hidden","aria-label"],bu=["fill","width","height"],Lu={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"},wu={key:0};function Tu(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Lu,[o.title?(t.openBlock(),t.createElementBlock("title",wu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bu))],16,Su)}const Dn=D(Nu,[["render",Tu]]),Au={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Iu=["aria-hidden","aria-label"],Vu=["fill","width","height"],Bu={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Ou={key:0};function Du(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Bu,[o.title?(t.openBlock(),t.createElementBlock("title",Ou,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Vu))],16,Iu)}const Pn=D(Au,[["render",Du]]),Pu={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$u=["aria-hidden","aria-label"],Ru=["fill","width","height"],Mu={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"},xu={key:0};function Fu(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Mu,[o.title?(t.openBlock(),t.createElementBlock("title",xu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ru))],16,$u)}const Uu=D(Pu,[["render",Fu]]),Hu={name:"AlertOutlineIcon",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:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Ku={key:0};function ju(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",Ku,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Gu))],16,zu)}const Yu=D(Hu,[["render",ju]]),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,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ju,[o.title?(t.openBlock(),t.createElementBlock("title",Qu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Zu))],16,Xu)}const td=D(qu,[["render",ed]]),nd={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},od=["aria-hidden","aria-label"],ld=["fill","width","height"],rd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},ad={key:0};function id(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",rd,[o.title?(t.openBlock(),t.createElementBlock("title",ad,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ld))],16,od)}const sd=D(nd,[["render",id]]),cd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ud=["aria-hidden","aria-label"],dd=["fill","width","height"],fd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},md={key:0};function pd(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",fd,[o.title?(t.openBlock(),t.createElementBlock("title",md,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,dd))],16,ud)}const kl=D(cd,[["render",pd]]),gd={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hd=["aria-hidden","aria-label"],Ed=["fill","width","height"],_d={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},kd={key:0};function yd(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",_d,[o.title?(t.openBlock(),t.createElementBlock("title",kd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ed))],16,hd)}const $n=D(gd,[["render",yd]]),Cd={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vd=["aria-hidden","aria-label"],Nd=["fill","width","height"],Sd={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},bd={key:0};function Ld(e,n,o,l,a,r){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-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Sd,[o.title?(t.openBlock(),t.createElementBlock("title",bd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Nd))],16,vd)}const wd=D(Cd,[["render",Ld]]),Td=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:ne.Position.Right},targetPosition:{default:ne.Position.Left},id:{},icons:{default:void 0},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},playgroundEnabled:{type:Boolean},playgroundReadyToStart:{type:Boolean}},setup(e,{emit:n}){const o=e,l=n,a=t.inject(On),r=t.inject(_l),i=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>S.Utils.afterLastDot(o.id)),c=t.computed(()=>{var f;const C=o.data.executionId;if(C)return C===((f=a==null?void 0:a.value)==null?void 0:f.id)?a==null?void 0:a.value:Object.values((r==null?void 0:r.value)||{}).find(k=>k.id===C)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),E=t.computed(()=>u.value.filter(C=>C.taskId===S.Utils.afterLastDot(o.data.node.uid))),g=t.computed(()=>{var b;if(!((b=E.value)!=null&&b.length))return null;if(E.value.length===1)return E.value[0].state.current;const C=E.value.map(p=>p.state.current),f=[te.FAILED,te.KILLED,te.WARNING,te.SKIPPED,te.KILLING,te.RUNNING,te.SUCCESS,te.RESTARTED,te.CREATED];return C.map(p=>[f.indexOf(p[1]),p]).sort().map(p=>p[1])[0]}),h=t.computed(()=>({"execution-no-taskrun":!!(c.value&&E.value&&E.value.length===0)})),_=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),A=t.computed(()=>{var C,f,k,b,p;if((C=o.data.node.type)!=null&&C.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const w=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:w.namespace,id:w.flowId,executionId:(p=(b=(k=(f=c.value)==null?void 0:f.taskRunList.filter(V=>{var N;return V.taskId===o.data.node.task.id&&((N=V.outputs)==null?void 0:N.executionId)}))==null?void 0:k[0])==null?void 0:b.outputs)==null?void 0:p.executionId}}}return o.data}),v=t.computed(()=>{if(g.value===te.RUNNING)return"task is running";if(g.value===te.SUCCESS)return"task was successful";if(g.value===te.WARNING)return"task sent a warning";if(g.value===te.SKIPPED)return"task was skipped";if(g.value===te.FAILED)return"task failed"});return(C,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:C.sourcePosition},null,8,["position"]),t.createVNode(El,{id:C.id,data:A.value,state:g.value,class:t.normalizeClass(h.value),icons:C.icons,"icon-component":C.iconComponent,onShowDescription:f[6]||(f[6]=k=>l(t.unref(S.EVENTS).SHOW_DESCRIPTION,k)),onExpand:f[7]||(f[7]=k=>l(t.unref(S.EVENTS).EXPAND,_.value)),onOpenLink:f[8]||(f[8]=k=>l(t.unref(S.EVENTS).OPEN_LINK,k)),onMouseover:f[9]||(f[9]=k=>l(t.unref(S.EVENTS).MOUSE_OVER,k)),onMouseleave:f[10]||(f[10]=k=>l(t.unref(S.EVENTS).MOUSE_LEAVE))},{content:t.withCtx(()=>{var k,b;return[c.value?(t.openBlock(),t.createBlock(nu,{key:0,execution:c.value,task:C.data.node.task,color:i.value,uid:C.data.node.uid,state:g.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),C.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[C.playgroundEnabled&&C.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:f[0]||(f[0]=p=>l(t.unref(S.EVENTS).RUN_TASK,{task:C.data.node.task}))},[t.createVNode(X,{style:{display:"flex"},title:C.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(sd,{class:"button-play-icon",alt:C.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"playground-button",style:t.normalizeStyle({color:`var(--ks-content-${(k=g.value)==null?void 0:k.toLowerCase()})`,backgroundColor:`var(--ks-background-${(b=g.value)==null?void 0:b.toLowerCase()})`})},[t.createVNode(X,{style:{display:"flex"},title:v.value?C.$t(v.value):void 0},{default:t.withCtx(()=>[g.value===t.unref(te).RUNNING?(t.openBlock(),t.createBlock(Mo,{key:0,alt:v.value?C.$t(v.value):void 0},null,8,["alt"])):g.value===t.unref(te).SUCCESS?(t.openBlock(),t.createBlock(kl,{key:1,alt:v.value?C.$t(v.value):void 0},null,8,["alt"])):g.value===t.unref(te).WARNING?(t.openBlock(),t.createBlock($n,{key:2,alt:v.value?C.$t(v.value):void 0},null,8,["alt"])):g.value===t.unref(te).SKIPPED?(t.openBlock(),t.createBlock(wd,{key:3,alt:v.value?C.$t(v.value):void 0},null,8,["alt"])):g.value===t.unref(te).FAILED?(t.openBlock(),t.createBlock(bt,{key:4,alt:v.value?C.$t(v.value):void 0},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]}),"badge-button-before":t.withCtx(()=>[C.data.node.task&&C.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:f[1]||(f[1]=k=>l(t.unref(S.EVENTS).SHOW_CONDITION,{id:s.value,task:C.data.node.task,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(X,{title:C.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(td,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[2]||(f[2]=k=>l(t.unref(S.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:E.value}))},[t.createVNode(X,{title:C.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(Uu,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly&&C.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[3]||(f[3]=k=>l(t.unref(S.EVENTS).ADD_ERROR,{task:C.data.node.task}))},[t.createVNode(X,{title:C.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(Yu,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[4]||(f[4]=k=>l(t.unref(S.EVENTS).EDIT,{task:C.data.node.task,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(X,{title:C.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Dn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!C.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:f[5]||(f[5]=k=>l(t.unref(S.EVENTS).DELETE,{id:s.value,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(X,{title:C.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:C.targetPosition},null,8,["position"])],64))}}),Ad=D(Td,[["__scopeId","data-v-a1d3d303"]]),Id={name:"Task",inheritAttrs:!1,inject:{execution:{from:On}},computed:{SECTIONS(){return S.SECTIONS},EVENTS(){return S.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 S.Utils.afterLastDot(this.id)}},emits:[S.EVENTS.DELETE,S.EVENTS.EDIT,S.EVENTS.SHOW_DESCRIPTION],components:{Delete:Pn,Pencil:Dn,Handle:ne.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)}}},Vd=Object.assign(Id,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(El,{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(S.EVENTS).SHOW_DESCRIPTION,l)),onExpand:o[3]||(o[3]=l=>n.forwardEvent(t.unref(S.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(S.EVENTS).EDIT,{task:e.data.node.triggerDeclaration,section:t.unref(S.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Dn,{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(S.EVENTS).DELETE,{id:n.triggerId,section:t.unref(S.SECTIONS).TRIGGERS}))},[t.createVNode(X,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Pn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Bd={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Od=["aria-hidden","aria-label"],Dd=["fill","width","height"],Pd={d:"M11 15H6L13 1V9H18L11 23V15Z"},$d={key:0};function Rd(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Pd,[o.title?(t.openBlock(),t.createElementBlock("title",$d,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Dd))],16,Od)}const Md=D(Bd,[["render",Rd]]),xd={class:"collapsed-cluster-node d-flex"},Fd={class:"node-text"},Ud={class:"text-white top-button-div"},Hd={components:{Tooltip:X,Handle:ne.Handle,ArrowExpand:Bn,LightningBolt:Md},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 S.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}}},zd=Object.assign(Hd,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(ne.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",xd,[t.createElementVNode("span",Fd,[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(S.Utils).afterLastDot(e.id)),1)]),t.createElementVNode("div",Ud,[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(S.EVENTS).EXPAND,{id:e.id}))},[t.createVNode(X,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Bn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"badge-button-after",{},void 0,!0)])]),t.createVNode(t.unref(ne.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Gd=D(zd,[["__scopeId","data-v-89413b39"]]),Wd={name:"SplitCellsVerticalIcon",emits:["click"]},Kd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",Kd,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 Yd=D(Wd,[["render",jd],["__scopeId","data-v-084c51e6"]]),qd={name:"SplitCellsHorizontalIcon",emits:["click"]},Xd={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("svg",Xd,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 Jd=D(qd,[["render",Zd],["__scopeId","data-v-c77c1469"]]),Qd={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ef=["aria-hidden","aria-label"],tf=["fill","width","height"],nf={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},of={key:0};function lf(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",nf,[o.title?(t.openBlock(),t.createElementBlock("title",of,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,tf))],16,ef)}const rf=D(Qd,[["render",lf]]);function af(e,n){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const o=document.implementation.createHTMLDocument(),l=o.createElement("base"),a=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(a),n&&(l.href=n),a.href=e,a.href}const sf=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Oe(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 cf(e){const n=At(e,"border-left-width"),o=At(e,"border-right-width");return e.clientWidth+n+o}function uf(e){const n=At(e,"border-top-width"),o=At(e,"border-bottom-width");return e.clientHeight+n+o}function yl(e,n={}){const o=n.width||cf(e),l=n.height||uf(e);return{width:o,height:l}}function df(){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 ff(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 mf(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function pf(e,n,o){const l="http://www.w3.org/2000/svg",a=document.createElementNS(l,"svg"),r=document.createElementNS(l,"foreignObject");return a.setAttribute("width",`${n}`),a.setAttribute("height",`${o}`),a.setAttribute("viewBox",`0 0 ${n} ${o}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),a.appendChild(r),r.appendChild(e),mf(a)}const _e=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||_e(o,n)};function gf(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function hf(e){return Oe(e).map(n=>{const o=e.getPropertyValue(n),l=e.getPropertyPriority(n);return`${n}: ${o}${l?" !important":""};`}).join(" ")}function Ef(e,n,o){const l=`.${e}:${n}`,a=o.cssText?gf(o):hf(o);return document.createTextNode(`${l}{${a}}`)}function bo(e,n,o){const l=window.getComputedStyle(e,o),a=l.getPropertyValue("content");if(a===""||a==="none")return;const r=sf();try{n.className=`${n.className} ${r}`}catch{return}const i=document.createElement("style");i.appendChild(Ef(r,o,l)),n.appendChild(i)}function _f(e,n){bo(e,n,":before"),bo(e,n,":after")}const Lo="application/font-woff",wo="image/jpeg",kf={woff:Lo,woff2:Lo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:wo,jpeg:wo,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function yf(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function Rn(e){const n=yf(e).toLowerCase();return kf[n]||""}function Cf(e){return e.split(/,/)[1]}function En(e){return e.search(/^(data:)/)!==-1}function vf(e,n){return`data:${n};base64,${e}`}async function Cl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const a=await l.blob();return new Promise((r,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{r(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(a)})}const nn={};function Nf(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=Nf(e,n,o.includeQueryParams);if(nn[l]!=null)return nn[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const r=await Cl(e,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),Cf(s)));a=vf(r,n)}catch(r){a=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;r&&(i=typeof r=="string"?r:r.message),i&&console.warn(i)}return nn[l]=a,a}async function Sf(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):It(n)}async function bf(e,n){if(e.currentSrc){const r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,i==null||i.drawImage(e,0,0,r.width,r.height);const s=r.toDataURL();return It(s)}const o=e.poster,l=Rn(o),a=await Mn(o,l,n);return It(a)}async function Lf(e){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await xt(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function wf(e,n){return _e(e,HTMLCanvasElement)?Sf(e):_e(e,HTMLVideoElement)?bf(e,n):_e(e,HTMLIFrameElement)?Lf(e):e.cloneNode(!1)}const Tf=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function Af(e,n,o){var l,a;let r=[];return Tf(e)&&e.assignedNodes?r=Oe(e.assignedNodes()):_e(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?r=Oe(e.contentDocument.body.childNodes):r=Oe(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),r.length===0||_e(e,HTMLVideoElement)||await r.reduce((i,s)=>i.then(()=>xt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function If(e,n){const o=n.style;if(!o)return;const l=window.getComputedStyle(e);l.cssText?(o.cssText=l.cssText,o.transformOrigin=l.transformOrigin):Oe(l).forEach(a=>{let r=l.getPropertyValue(a);a==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),_e(e,HTMLIFrameElement)&&a==="display"&&r==="inline"&&(r="block"),a==="d"&&n.getAttribute("d")&&(r=`path(${n.getAttribute("d")})`),o.setProperty(a,r,l.getPropertyPriority(a))})}function Vf(e,n){_e(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),_e(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function Bf(e,n){if(_e(e,HTMLSelectElement)){const o=n,l=Array.from(o.children).find(a=>e.value===a.getAttribute("value"));l&&l.setAttribute("selected","")}}function Of(e,n){return _e(n,Element)&&(If(e,n),_f(e,n),Vf(e,n),Bf(e,n)),n}async function Df(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let r=0;r<o.length;r++){const s=o[r].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await xt(u,n,!0))}}const a=Object.values(l);if(a.length){const r="http://www.w3.org/1999/xhtml",i=document.createElementNS(r,"svg");i.setAttribute("xmlns",r),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(r,"defs");i.appendChild(s);for(let c=0;c<a.length;c++)s.appendChild(a[c]);e.appendChild(i)}return e}async function xt(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>wf(l,n)).then(l=>Af(e,l,n)).then(l=>Of(e,l)).then(l=>Df(l,n))}const vl=/url\((['"]?)([^'"]+?)\1\)/g,Pf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,$f=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Rf(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function Mf(e){const n=[];return e.replace(vl,(o,l,a)=>(n.push(a),o)),n.filter(o=>!En(o))}async function xf(e,n,o,l,a){try{const r=o?af(n,o):n,i=Rn(n);let s;return a||(s=await Mn(r,i,l)),e.replace(Rf(n),`$1${s}$3`)}catch{}return e}function Ff(e,{preferredFontFormat:n}){return n?e.replace($f,o=>{for(;;){const[l,,a]=Pf.exec(o)||[];if(!a)return"";if(a===n)return`src: ${l};`}}):e}function Nl(e){return e.search(vl)!==-1}async function Sl(e,n,o){if(!Nl(e))return e;const l=Ff(e,o);return Mf(l).reduce((r,i)=>r.then(s=>xf(s,i,n,o)),Promise.resolve(l))}async function yt(e,n,o){var l;const a=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(a){const r=await Sl(a,null,o);return n.style.setProperty(e,r,n.style.getPropertyPriority(e)),!0}return!1}async function Uf(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=_e(e,HTMLImageElement);if(!(o&&!En(e.src))&&!(_e(e,SVGImageElement)&&!En(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,a=await Mn(l,Rn(l),n);await new Promise((r,i)=>{e.onload=r,e.onerror=i;const s=e;s.decode&&(s.decode=r),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=a):e.href.baseVal=a})}async function zf(e,n){const l=Oe(e.childNodes).map(a=>bl(a,n));await Promise.all(l).then(()=>e)}async function bl(e,n){_e(e,Element)&&(await Uf(e,n),await Hf(e,n),await zf(e,n))}function Gf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(a=>{o[a]=l[a]}),e}const To={};async function Ao(e){let n=To[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},To[e]=n,n}async function Io(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,r=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Cl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(r).then(()=>o)}function Vo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(a,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=r.exec(l);if(c===null){if(c=s.exec(l),c===null)break;r.lastIndex=s.lastIndex}else s.lastIndex=r.lastIndex;n.push(c[0])}return n}async function Wf(e,n){const o=[],l=[];return e.forEach(a=>{if("cssRules"in a)try{Oe(a.cssRules||[]).forEach((r,i)=>{if(r.type===CSSRule.IMPORT_RULE){let s=i+1;const c=r.href,u=Ao(c).then(E=>Io(E,n)).then(E=>Vo(E).forEach(g=>{try{a.insertRule(g,g.startsWith("@import")?s+=1:a.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:g,error:h})}})).catch(E=>{console.error("Error loading remote css",E.toString())});l.push(u)}})}catch(r){const i=e.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&l.push(Ao(a.href).then(s=>Io(s,n)).then(s=>Vo(s).forEach(c=>{i.insertRule(c,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",r)}}),Promise.all(l).then(()=>(e.forEach(a=>{if("cssRules"in a)try{Oe(a.cssRules||[]).forEach(r=>{o.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${a.href}`,r)}}),o))}function Kf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Nl(n.style.getPropertyValue("src")))}async function jf(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Oe(e.ownerDocument.styleSheets),l=await Wf(o,n);return Kf(l)}async function Yf(e,n){const o=await jf(e,n);return(await Promise.all(o.map(a=>{const r=a.parentStyleSheet?a.parentStyleSheet.href:null;return Sl(a.cssText,r,n)}))).join(`
|
|
25
|
+
`)}async function qf(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Yf(e,n);if(o){const l=document.createElement("style"),a=document.createTextNode(o);l.appendChild(a),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function Xf(e,n={}){const{width:o,height:l}=yl(e,n),a=await xt(e,n,!0);return await qf(a,n),await bl(a,n),Gf(a,n),await pf(a,o,l)}async function Ll(e,n={}){const{width:o,height:l}=yl(e,n),a=await Xf(e,n),r=await It(a),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||df(),u=n.canvasWidth||o,E=n.canvasHeight||l;return i.width=u*c,i.height=E*c,n.skipAutoScale||ff(i),i.style.width=`${u}`,i.style.height=`${E}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(r,0,0,i.width,i.height),i}async function Zf(e,n={}){return(await Ll(e,n)).toDataURL()}async function Jf(e,n={}){return(await Ll(e,n)).toDataURL("image/jpeg",n.quality||1)}function Qf(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){let u;const E=c.fileName??`vue-flow-screenshot-${Date.now()}`;switch(c.type){case"jpeg":u=await a(s,c);break;case"png":u=await r(s,c);break;default:u=await r(s,c);break}return c.shouldDownload&&E!==""&&i(E),u}function a(s,c={quality:.95}){return o.value=null,Jf(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function r(s,c={quality:.95}){return o.value=null,Zf(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:i,dataUrl:e,error:o}}const em={key:1,class:"exporting"},tm=t.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1}},emits:[S.EVENTS.EDIT,S.EVENTS.DELETE,S.EVENTS.RUN_TASK,S.EVENTS.OPEN_LINK,S.EVENTS.SHOW_LOGS,S.EVENTS.SHOW_DESCRIPTION,S.EVENTS.RUN_TASK,"on-add-flowable-error",S.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",S.EVENTS.SHOW_CONDITION],setup(e,{emit:n}){const o=e,l=t.ref(!1),a=t.ref(),{getNodes:r,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:E,vueFlowRef:g}=ne.useVueFlow(o.id),h=t.ref({}),_=t.ref([]),A=t.ref(new Set),v=t.ref([]),{capture:C}=Qf();t.provide(On,t.computed(()=>o.execution)),t.provide(_l,t.computed(()=>o.subflowsExecutions));const f=n;t.onMounted(()=>{k()}),t.watch(()=>o.flowGraph,()=>{k()}),t.watch(()=>o.isHorizontal,()=>{k()});const k=()=>{S.cleanGraph(o.id),t.nextTick(()=>{f("loading",!0);const P=A.value;A.value=new Set,_.value=[],h.value={},P.forEach(z=>x(S.CLUSTER_PREFIX+z,!1,!1));const B=S.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,_.value,o.isHorizontal,h.value,A.value,v.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);B&&(E(B),u(),f("loading",!1))})},b=P=>{l.value||S.linkedElements(o.id,P.uid).forEach(B=>{(B==null?void 0:B.type)==="task"&&(B.style={...B.style,outline:"0.5px solid "+ve("--bs-gray-900")},B.class="rounded-3")})},p=()=>{w()},w=()=>{r.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,w(),P.node.style={...P.node.style,zIndex:1976},a.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&N(P.intersections,P.node)===null){const B=P.node,z=P.intersections.find($=>$.type==="task");if(z)try{o.source&&f("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:S.Utils.afterLastDot(B.id)??"",key2:S.Utils.afterLastDot(z.id)??""}),swappedTasks:[B.id,z.id]})}catch($){f("message",{variant:"error",title:"cannot swap tasks",message:`${$.message}, ${$.messageOptions}`}),B.position=a.value}else B.position=a.value}else P.node.position=a.value;w(),P.node.style={...P.node.style,zIndex:5},a.value=null});const V=t.computed(()=>{var P;return(P=o.flowGraph)!=null&&P.clusters?o.flowGraph.clusters.filter(B=>B.cluster.type.endsWith("SubflowGraphCluster")).map(B=>B.cluster.taskNode.uid+"."):[]});i(P=>{w(),r.value.filter(B=>B.id!==P.node.id).forEach(B=>{var z;B.type==="trigger"||B.type==="task"&&(B.id.startsWith(P.node.id+".")||P.node.id.startsWith(B.id+"."))||(z=V==null?void 0:V.value)!=null&&z.some($=>B.id.startsWith($))?B.style={...B.style,opacity:"0.5"}:B.style={...B.style,opacity:"1"}}),P.intersections&&!N(P.intersections,P.node)&&P.intersections.filter(B=>B.type==="task").length===1&&(P.intersections.forEach(B=>{B.type==="task"&&(B.style={...B.style,outline:"0.5px solid "+ve("--bs-primary")},B.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+ve("--bs-primary")},P.node.class="rounded-3")});const N=(P,B)=>{const z=P.filter($=>$.type==="task").map($=>S.Utils.afterLastDot($.id));if(z.length>1)return"toomuchtaskerror";try{if(z.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:S.Utils.afterLastDot(z[0])??"",key2:S.Utils.afterLastDot(B.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter($=>$.type==="trigger").length>0?"triggererror":null},x=(P,B,z=!1)=>{const $=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(S.CLUSTER_PREFIX,"");A.value.add(Ie),_.value=_.value.concat($.nodes.filter(me=>me!==Ie||z)),_.value=_.value.concat([$.cluster.uid]),h.value={...h.value,[$.cluster.uid]:Ie,[$.start]:Ie,[$.end]:Ie};for(let me of $.nodes)o.flowGraph.clusters.map(Ue=>Ue.cluster.uid).includes(me)&&x(me,!1,!0);B&&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)){f("expand-subflow",[...o.expandedSubflows,P.id]);return}h.value={},_.value=[],v.value=[],A.value.delete(P.id),A.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(!g.value){console.warn("Flow not found");return}ce.value=!1,C(g.value,{type:P,shouldDownload:!0}).then(()=>ce.value=!0).finally(()=>F.value=!1)}return(P,B)=>(t.openBlock(),t.createBlock(t.unref(ne.VueFlow),{id:e.id,"default-marker-color":t.unref(ve)("--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(bc,t.mergeProps(z,{onCollapse:B[0]||(B[0]=$=>x($,!0))}),null,16)]),"node-dot":t.withCtx(z=>[t.createVNode(Dc,t.normalizeProps(t.guardReactiveProps(z)),null,16)]),"node-task":t.withCtx(z=>[t.createVNode(Ad,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:B[1]||(B[1]=$=>f(t.unref(S.EVENTS).EDIT,$)),onDelete:B[2]||(B[2]=$=>f(t.unref(S.EVENTS).DELETE,$)),onRunTask:B[3]||(B[3]=$=>f(t.unref(S.EVENTS).RUN_TASK,$)),onExpand:B[4]||(B[4]=$=>H($)),onOpenLink:B[5]||(B[5]=$=>f(t.unref(S.EVENTS).OPEN_LINK,$)),onShowLogs:B[6]||(B[6]=$=>f(t.unref(S.EVENTS).SHOW_LOGS,$)),onShowDescription:B[7]||(B[7]=$=>f(t.unref(S.EVENTS).SHOW_DESCRIPTION,$)),onShowCondition:B[8]||(B[8]=$=>f(t.unref(S.EVENTS).SHOW_CONDITION,$)),onMouseover:B[9]||(B[9]=$=>b($)),onMouseleave:B[10]||(B[10]=$=>p()),onAddError:B[11]||(B[11]=$=>f("on-add-flowable-error",$)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-trigger":t.withCtx(z=>[t.createVNode(Vd,t.mergeProps(z,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:B[12]||(B[12]=$=>f(t.unref(S.EVENTS).DELETE,$)),onEdit:B[13]||(B[13]=$=>f(t.unref(S.EVENTS).EDIT,$)),onShowDescription:B[14]||(B[14]=$=>f(t.unref(S.EVENTS).SHOW_DESCRIPTION,$))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(z=>[t.createVNode(Gd,t.mergeProps(z,{onExpand:B[15]||(B[15]=$=>H($))}),null,16)]),"edge-edge":t.withCtx(z=>[t.createVNode(Yc,t.mergeProps(z,{"yaml-source":e.source,onAddTask:B[16]||(B[16]=$=>f(t.unref(S.EVENTS).ADD_TASK,$)),"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(pc),{"pattern-color":J?t.unref(ve)("--bs-grey-500"):t.unref(ve)("--bs-grey-300")},null,8,["pattern-color"]),ce.value?(t.openBlock(),t.createBlock(t.unref(Zt.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(Zt.ControlButton),{key:0,onClick:B[17]||(B[17]=z=>f("toggle-orientation",z))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?Jd:Yd)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(Zt.ControlButton),{onClick:he},{default:t.withCtx(()=>[t.createVNode(rf)]),_:1}),F.value?(t.openBlock(),t.createElementBlock("ul",em,[t.createElementVNode("li",{onClick:B[18]||(B[18]=z=>Ae("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:B[19]||(B[19]=z=>Ae("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),nm=D(tm,[["__scopeId","data-v-52da5473"]]),om={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lm=["aria-hidden","aria-label"],rm=["fill","width","height"],am={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"},im={key:0};function sm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",am,[o.title?(t.openBlock(),t.createElementBlock("title",im,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,rm))],16,lm)}const cm=D(om,[["render",sm]]),um={key:0,class:"language"},dm=["innerHTML"],fm=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(cm),Check:t.shallowRef(kl)},o=e,l=t.ref(!1),a=t.ref(),r=t.shallowRef(n.ContentCopy.value),i=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,a.value&&t.nextTick(()=>{i.value&&s.value&&or.createPopper(i.value,s.value,{placement:"left"})})}function E(){clearTimeout(a.value),navigator.clipboard.writeText(o.code.trimEnd()),r.value=n.Check.value,a.value=setTimeout(()=>{r.value=n.ContentCopy.value,a.value=void 0},2e3)}return(g,h)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:h[0]||(h[0]=_=>l.value=!1)},[g.language&&!l.value?(t.openBlock(),t.createElementBlock("div",um,t.toDisplayString(g.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value),{onClick:E}))],512),a.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,dm)],32))}}),Bo=D(fm,[["__scopeId","data-v-a899f6a1"]]),mm={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pm=["aria-hidden","aria-label"],gm=["fill","width","height"],hm={d:"M10,17L15,12L10,7V17Z"},Em={key:0};function _m(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",hm,[o.title?(t.openBlock(),t.createElementBlock("title",Em,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gm))],16,pm)}const km=D(mm,[["render",_m]]),ym={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cm=["aria-hidden","aria-label"],vm=["fill","width","height"],Nm={d:"M7,10L12,15L17,10H7Z"},Sm={key:0};function bm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nm,[o.title?(t.openBlock(),t.createElementBlock("title",Sm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,vm))],16,Cm)}const Lm=D(ym,[["render",bm]]),wm=["id","open"],Tm={class:"d-flex gap-2 align-items-center"},Am={key:0,class:"d-flex flex-grow-1"},Im=["id"],Vm=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),a=vn.useRoute(),r=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),window.location.hash=l.value?"":i.value},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>a.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,E)=>(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",Tm,[u.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?km:Lm),{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",Am,[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,Im)):t.createCommentVNode("",!0)],8,wm))}}),Vt=D(Vm,[["__scopeId","data-v-5411e3ca"]]);function Ct(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function wl(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Bm(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 Om(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function Tl(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(S.Utils.distinctFilter):n.types=["object"],e.additionalProperties?n.subType=Ct(e.additionalProperties):e.items&&(n.subType=Ct(e.items)),n}const Dm={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pm=["aria-hidden","aria-label"],$m=["fill","width","height"],Rm={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Mm={key:0};function xm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Rm,[o.title?(t.openBlock(),t.createElementBlock("title",Mm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,$m))],16,Pm)}const Fm=D(Dm,[["render",xm]]),Um={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hm=["aria-hidden","aria-label"],zm=["fill","width","height"],Gm={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"},Wm={key:0};function Km(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Gm,[o.title?(t.openBlock(),t.createElementBlock("title",Wm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zm))],16,Hm)}const Al=D(Um,[["render",Km]]),jm={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ym=["aria-hidden","aria-label"],qm=["fill","width","height"],Xm={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"},Zm={key:0};function Jm(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xm,[o.title?(t.openBlock(),t.createElementBlock("title",Zm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qm))],16,Ym)}const Qm=D(jm,[["render",Jm]]),ep={class:"me-3"},tp={class:"d-flex flex-column"},np=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return Qm;case"info":return bt;case"warning":return $n;case"danger":return ln;default:return bt}});return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[t.createElementVNode("div",ep,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",tp,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),op=D(np,[["__scopeId","data-v-f7fd8bc1"]]),lp={class:"property-detail"},rp={key:0},ap=["href"],ip={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},sp={class:"ref-type"},cp={key:1,class:"type-box rounded fs-7 px-2 py-1"},up={key:1},dp={class:"border rounded px-2 py-1"},fp={key:2},mp={class:"border rounded px-2 py-1"},pp={key:3},gp={class:"border rounded px-2 py-1"},hp={key:4},Ep={class:"border rounded px-2 py-1"},_p={key:5},kp={class:"border rounded px-2 py-1"},yp={key:6},Cp={class:"border rounded px-2 py-1"},vp={key:7},Np={class:"border rounded px-2 py-1"},Sp={key:8},bp={class:"border rounded px-2 py-1"},Lp={key:9},wp={class:"border rounded px-2 py-1"},Tp={key:10},Ap={class:"border rounded px-2 py-1"},Ip={key:11},Vp={class:"border rounded px-2 py-1"},Bp={key:12},Op={class:"border rounded px-2 py-1"},Dp={key:13},Pp={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},$p={key:14},Rp={class:"property-description markdown"},Mp={key:2},xp=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(Tl(n.property).subType),l=t.ref(Bm(n.property)),a=r=>r.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(r,i)=>(t.openBlock(),t.createElementBlock("div",lp,[o.value?(t.openBlock(),t.createElementBlock("div",rp,[i[1]||(i[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",ip,[t.createElementVNode("span",sp,t.toDisplayString(t.unref(wl)(o.value)),1),t.createVNode(Al)])],8,ap)):(t.openBlock(),t.createElementBlock("span",cp,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),r.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",up,[i[2]||(i[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",dp,t.toDisplayString(r.property.default),1)])):t.createCommentVNode("",!0),r.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",fp,[i[3]||(i[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",mp,t.toDisplayString(r.property.pattern),1)])):t.createCommentVNode("",!0),r.property.unit!==void 0&&r.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",pp,[i[4]||(i[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",gp,t.toDisplayString(r.property.unit),1)])):t.createCommentVNode("",!0),r.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",hp,[i[5]||(i[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",Ep,t.toDisplayString(r.property.minLength),1)])):t.createCommentVNode("",!0),r.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",_p,[i[6]||(i[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",kp,t.toDisplayString(r.property.maxLength),1)])):t.createCommentVNode("",!0),r.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",yp,[i[7]||(i[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",Cp,t.toDisplayString(r.property.minItems),1)])):t.createCommentVNode("",!0),r.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",vp,[i[8]||(i[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Np,t.toDisplayString(r.property.maxItems),1)])):t.createCommentVNode("",!0),r.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",Sp,[i[9]||(i[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",bp," >= "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Lp,[i[10]||(i[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",wp," > "+t.toDisplayString(r.property.minimum),1)])):t.createCommentVNode("",!0),r.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",Tp,[i[11]||(i[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Ap," <= "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Ip,[i[12]||(i[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Vp," < "+t.toDisplayString(r.property.maximum),1)])):t.createCommentVNode("",!0),r.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",Bp,[i[13]||(i[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",Op,t.toDisplayString(r.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",Dp,[i[14]||(i[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",Pp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(s,c)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},t.toDisplayString(s),1))),128))])])):t.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",$p,[t.createElementVNode("div",Rp,[r.property.title!==void 0?t.renderSlot(r.$slots,"markdown",{key:0,content:a(r.property.title)},void 0,!0):t.createCommentVNode("",!0),r.property.description!==void 0?t.renderSlot(r.$slots,"markdown",{key:1,content:a(r.property.description)},void 0,!0):t.createCommentVNode("",!0),r.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",Mp,[t.createVNode(op,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Fp=D(xp,[["__scopeId","data-v-79715a4e"]]),Up={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hp=["aria-hidden","aria-label"],zp=["fill","width","height"],Gp={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},Wp={key:0};function Kp(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Gp,[o.title?(t.openBlock(),t.createElementBlock("title",Wp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zp))],16,Hp)}const jp=D(Up,[["render",Kp]]),Yp={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qp=["aria-hidden","aria-label"],Xp=["fill","width","height"],Zp={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"},Jp={key:0};function Qp(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Zp,[o.title?(t.openBlock(),t.createElementBlock("title",Jp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xp))],16,qp)}const e1=D(Yp,[["render",Qp]]),t1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},n1=["aria-hidden","aria-label"],o1=["fill","width","height"],l1={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"},r1={key:0};function a1(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",l1,[o.title?(t.openBlock(),t.createElementBlock("title",r1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,o1))],16,n1)}const i1=D(t1,[["render",a1]]),s1={class:"border overflow-hidden"},c1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},u1={class:"d-flex gap-2"},d1={class:"d-flex flex-wrap gap-2"},f1=["href"],m1={class:"ref-type"},p1={key:1,class:"type-box rounded fs-7 px-2 py-1"},g1=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,a=t.ref(!1);t.watch(a,s=>{s&&l("expand")});const r=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 i(s){const c=[],u=[];for(const h in s)typeof s[h]=="object"&&(s[h]=Om(s[h]),s[h].$required?c.push(h):u.push(h));const E=[...c.sort(),...u.sort()],g={};return E.forEach(h=>{var _;(!s[h].$deprecated||(_=o.forceInclude)!=null&&_.includes(h))&&(g[h]=s[h])}),g}return(s,c)=>(t.openBlock(),t.createBlock(Vt,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||a.value},t.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",s1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(s.properties),(u,E)=>(t.openBlock(),t.createBlock(Vt,{class:"property",key:E,arrow:!1,"clickable-text":E,href:s.href+"_"+E,onExpand:c[1]||(c[1]=g=>a.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:g})=>[t.createElementVNode("span",c1,[t.createElementVNode("span",u1,[s.showDynamic&&!r(u)?(t.openBlock(),t.createBlock(X,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(e1,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(X,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(i1,{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($n,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",d1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Tl)(u).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",m1,t.toDisplayString(t.unref(wl)(h)),1),t.createVNode(Al)],8,f1)):(t.openBlock(),t.createElementBlock("span",p1,t.toDisplayString(h),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g?Fm:jp),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(Fp,{property:u},{markdown:t.withCtx(({content:g})=>[t.renderSlot(s.$slots,"markdown",{content:g},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),vt=D(g1,[["__scopeId","data-v-0d36ff40"]]),h1={class:"d-flex flex-column gap-6"},E1={key:0,class:"alert alert-info",role:"alert"},_1={key:1,class:"plugin-title markdown"},k1={key:2,class:"markdown"},y1={class:"d-flex flex-column gap-4"},C1={class:"d-flex flex-column gap-3"},v1={class:"markdown"},N1={key:0,class:"w-100 align-self-center"},S1={class:"markdown"},b1={class:"markdown"},L1={class:"markdown"},w1={class:"d-flex flex-column gap-7 ps-3"},T1={class:"markdown"},A1=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,a=t.ref(!1),r=t.ref(new Set),i=t.ref(0),s=async()=>{var V;const p=window.location.hash.slice(1);if(!p||!l.schema.definitions){r.value.clear();return}const w=p.includes("#")?(V=p.split("#").pop())==null?void 0:V.split(".").pop():p;if(w&&w in l.schema.definitions){a.value=!0,i.value+=1,r.value.clear(),r.value.add(w),await t.nextTick();let N=0;const x=30,H=()=>{const J=document.getElementById(w);J?J.scrollIntoView({behavior:"smooth",block:"start"}):N<x&&(N++,requestAnimationFrame(H))};requestAnimationFrame(H)}else r.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([p,w],[V,N])=>{(p!==V||w!==N)&&l.schema.definitions&&s()},{immediate:!0});const c=p=>{var w;return p!=null&&p.full?p.code:`id: "${(w=l.pluginType.split(".").reverse()[0])==null?void 0:w.toLowerCase()}"
|
|
26
26
|
type: "${l.pluginType}"
|
|
27
|
-
`.concat(p.code)},u=t.ref(null),E=t.computed(()=>{var p;return(p=l.schema.properties)==null?void 0:p.$examples}),g=t.computed(()=>{var p,w;return Object.fromEntries((w=(p=l.schema.properties)==null?void 0:p.$metrics)==null?void 0:w.map(V=>[V.name,{...V,name:void 0}]))}),{githubLight:h,githubDark:_,yaml:A,python:S,javascript:C,createJavaScriptRegexEngine:f,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?_:h],langs:[A,S,C],engine:f()})),n=await n,o(),n);const b="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{var p;window.removeEventListener("hashchange",s),(p=u.value)==null||p.dispose()}),(p,w)=>{var V,v,x,H,J,ce;return t.openBlock(),t.createElementBlock("div",h1,[t.createElementVNode("div",null,[(V=p.schema.properties)!=null&&V.$beta?(t.openBlock(),t.createElementBlock("div",E1,w[0]||(w[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),(v=p.schema.properties)!=null&&v.title?(t.openBlock(),t.createElementBlock("div",_1,[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",k1,[t.renderSlot(p.$slots,"markdown",{content:p.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Bo,{highlighter:u.value,language:"yaml",theme:b,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},[E.value?(t.openBlock(),t.createBlock(Vt,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:t.withCtx(()=>[t.createElementVNode("div",y1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,(F,he)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p.pluginType+"-"+he},[t.createElementVNode("div",C1,[t.createElementVNode("div",v1,[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(Bo,{key:0,highlighter:u.value,language:F.lang??"yaml",theme:b,code:c(F)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),he<E.value.length-1?(t.openBlock(),t.createElementBlock("hr",N1)):t.createCommentVNode("",!0)],64))),128))])]),_:3})):t.createCommentVNode("",!0),(H=p.schema.properties)!=null&&H.properties?(t.openBlock(),t.createBlock(vt,{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",S1,[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(vt,{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",b1,[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(vt,{key:3,class:"plugin-section",properties:g.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",L1,[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":a.value,key:`definitions-${p.pluginType}-${i.value}`},{content:t.withCtx(()=>[t.createElementVNode("div",w1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(p.schema.definitions),([F,he])=>(t.openBlock(),t.createBlock(vt,{properties:he.properties,"section-name":he.title??F.split("_")[0],href:F,"show-dynamic":!1,"initially-expanded":r.value.has(F),key:p.pluginType+"-"+F,class:"plugin-section nested-button-py-2",onExpand:Ae=>{a.value=!0,r.value.add(F)}},{markdown:t.withCtx(({content:Ae})=>[t.createElementVNode("div",T1,[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)]))])}}}),I1=D(A1,[["__scopeId","data-v-5953ec4c"]]),V1={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},B1=["aria-hidden","aria-label"],O1=["fill","width","height"],D1={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},P1={key:0};function $1(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",D1,[o.title?(t.openBlock(),t.createElementBlock("title",P1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,O1))],16,B1)}const R1=D(V1,[["render",$1]]),M1=["href"],x1=["src","alt"],F1=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const n=e,{path:o}=vn.useRoute(),l=t.computed(()=>n.href===void 0?`${o}/${Ke(n.text)}`:n.href);return(a,r)=>(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:a.iconB64Svg,alt:`${a.text} icon`},null,8,x1),t.createTextVNode(t.toDisplayString(a.text)+" ",1),t.createVNode(R1,{class:"ms-auto"})],8,M1))}}),Oo=D(F1,[["__scopeId","data-v-b787c0f3"]]),U1={class:"d-flex flex-column gap-4"},H1={key:1,class:"d-flex flex-column"},z1=["id"],G1={class:"d-flex flex-column"},W1=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(g=>n.subGroup===void 0?!0:Ke(Je(g))===n.subGroup)),l=t.computed(()=>{var g,h;return((g=o.value)==null?void 0:g.longDescription)??((h=o.value)==null?void 0:h.description)}),a=t.computed(()=>n.plugins.filter(g=>g.name.toLowerCase()===n.pluginName.toLowerCase()&&g.subGroup!==void 0)),r=g=>{let h=g.split(".");return h==null?void 0:h[h.length-1]},{path:i}=vn.useRoute(),s=g=>`${i}/${Ke(g)}`,c=g=>`${i}/${g}`;function u(g){return Object.fromEntries(Object.entries(g).filter(([h,_])=>Ro(h,_)).map(([h,_])=>[h.replaceAll(/[A-Z]/g,A=>` ${A}`),_.filter(({deprecated:A})=>!A).map(({cls:A})=>A)]))}const E=t.computed(()=>u(o.value));return(g,h)=>(t.openBlock(),t.createElementBlock("div",U1,[l.value!==void 0?t.renderSlot(g.$slots,"markdown",{key:0,content:l.value.replaceAll(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),g.subGroup===void 0&&g.plugins.length>1?(t.openBlock(),t.createElementBlock("div",H1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,_=>(t.openBlock(),t.createBlock(Oo,{id:`group-${t.unref(Ke)(t.unref(Je)(_))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(g.icons[_.subGroup]??g.icons[_.group]),text:t.unref(Je)(_),href:s(t.unref(Je)(_)),key:t.unref(Je)(_),class:"text-capitalize",onClick:A=>g.$emit("goTo",{subGroup:_})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(E.value,(_,A)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:A},[t.createElementVNode("h4",{id:`section-${t.unref(Ke)(A)}`,class:"text-capitalize"},t.toDisplayString(A),9,z1),t.createElementVNode("div",G1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,S=>(t.openBlock(),t.createBlock(Oo,{id:t.unref(Ke)(S),"icon-b64-svg":"data:image/svg+xml;base64,"+(g.icons[S]??g.icons[o.value.subGroup??o.value.group]??g.icons[o.value.group]),text:r(S),href:c(S),key:S,class:"text-capitalize",onClick:C=>g.$emit("goTo",{element:S})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),K1=/"(?:_|\\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*:/,j1=/"(?: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*:/,Y1=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function q1(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){X1(e);return}return n}function X1(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Z1(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(!Y1.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(K1.test(e)||j1.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,q1)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const J1=/\d/,Q1=["-","_","/","."];function eg(e=""){if(!J1.test(e))return e!==e.toLowerCase()}function Il(e,n){const o=Q1,l=[];if(!e||typeof e!="string")return l;let a="",r,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=eg(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const E=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=E+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function tg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Vl(e,n){return e?(Array.isArray(e)?e:Il(e)).map(o=>tg(o)).join(""):""}function ng(e,n){return e?(Array.isArray(e)?e:Il(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 Bl(e,n){const o={},l={};for(const a of e)Object.assign(o,a.property),Object.assign(l,a.normal);return new ft(o,l,n)}function _n(e){return e.toLowerCase()}class ke{constructor(n,o){this.attribute=o,this.property=n}}ke.prototype.attribute="";ke.prototype.booleanish=!1;ke.prototype.boolean=!1;ke.prototype.commaOrSpaceSeparated=!1;ke.prototype.commaSeparated=!1;ke.prototype.defined=!1;ke.prototype.mustUseProperty=!1;ke.prototype.number=!1;ke.prototype.overloadedBoolean=!1;ke.prototype.property="";ke.prototype.spaceSeparated=!1;ke.prototype.space=void 0;let og=0;const U=Xe(),ie=Xe(),Ol=Xe(),T=Xe(),Q=Xe(),et=Xe(),Ce=Xe();function Xe(){return 2**++og}const kn=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ie,commaOrSpaceSeparated:Ce,commaSeparated:et,number:T,overloadedBoolean:Ol,spaceSeparated:Q},Symbol.toStringTag,{value:"Module"})),on=Object.keys(kn);class xn extends ke{constructor(n,o,l,a){let r=-1;if(super(n,o),Do(this,"space",a),typeof l=="number")for(;++r<on.length;){const i=on[r];Do(this,on[r],(l&kn[i])===kn[i])}}}xn.prototype.defined=!0;function Do(e,n,o){o&&(e[n]=o)}function ot(e){const n={},o={};for(const[l,a]of Object.entries(e.properties)){const r=new xn(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[_n(l)]=l,o[_n(r.attribute)]=l}return new ft(n,o,e.space)}const Dl=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 Pl(e,n){return n in e?e[n]:n}function $l(e,n){return Pl(e,n.toLowerCase())}const lg=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:Ol,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:$l}),rg=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:Pl}),Rl=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()}}),Ml=ot({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$l}),xl=ot({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ag=/[A-Z]/g,Po=/-[a-z]/g,ig=/^data[-\w.:]+$/i;function sg(e,n){const o=_n(n);let l=n,a=ke;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&ig.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(Po,ug);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!Po.test(r)){let i=r.replace(ag,cg);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=xn}return new a(l,n)}function cg(e){return"-"+e.toLowerCase()}function ug(e){return e.charAt(1).toUpperCase()}const dg=Bl([Dl,lg,Rl,Ml,xl],"html");Bl([Dl,rg,Rl,Ml,xl],"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"],fg=["p","h1","h2","h3","h4","h5","h6","li"];function Bt(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function Un(e){return Bt(e,"text")||Bt(e,Symbol.for("v-txt"))}function Fl(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=Fl(e);return Array.isArray(n)?n.map(Ot).filter(Boolean).join(""):""}function Ul(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>Ul(l,n));let o=e;return n.some(l=>l==="*"||Bt(e,l))&&(o=Fl(e)||e,!Array.isArray(o)&&fg.some(l=>Bt(e,l))&&(o=[o])),o}function Hl(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>Hl(Ul(o,[n[0]]),n.slice(1))).filter(o=>!(Un(o)&&Ot(o).trim()==="")):e}function zl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?Hl(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 mg(e,n){return n.reduce((o,l)=>{const a=pg(e,l);return a!==void 0&&(o[l]=a),o},{})}function pg(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const yn="default",Gl=/^@|^v-on:/,Wl=/^:|^v-bind:/,gg=/^v-model/,hg=["select","textarea","input"],Eg=["math","svg"],_g=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),kg=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,E,g,h,_,A,S;const n=(E=(u=t.getCurrentInstance())==null?void 0:u.appContext)==null?void 0:E.app,o=n==null?void 0:n.$nuxt,l=(o==null?void 0:o.$route)||(o==null?void 0:o._route),{mdc:a}=((g=o==null?void 0:o.$config)==null?void 0:g.public)||{},r={...(h=a==null?void 0:a.components)!=null&&h.prose&&e.prose!==!1?_g:{},...((_=a==null?void 0:a.components)==null?void 0:_.map)||{},...t.toRaw(((S=(A=e.data)==null?void 0:A.mdc)==null?void 0:S.components)||{}),...e.components},i=t.computed(()=>{var f;const C=(((f=e.body)==null?void 0:f.children)||[]).map(k=>k.tag||k.type).filter(k=>!Fn.includes(k));return Array.from(new Set(C)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,C=>{Object.assign(s,C)}),await Ig(e.body,{tags:r});function c(C,f){const k=C.split(".").length-1;return C.split(".").reduce((b,p,w)=>w==k&&b?(b[p]=f,b[p]):typeof b=="object"?b[p]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(e){var _,A;const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const E={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},g=o!==!1?Cn(o||((_=E.component)==null?void 0:_.name)||E.component||"div"):void 0;return g?t.h(g,{...(A=E.component)==null?void 0:A.props,class:e.class,...this.$attrs,key:r},{default:h}):h==null?void 0:h();function h(){const S=Kl(l,t.h,{documentMeta:E,parentScope:E,resolveComponent:Cn});return S!=null&&S.default?s?zl(S.default(),typeof s=="string"?s.split(" "):["*"]):S.default():null}}});function yg(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const i=e.tag,s=Yl(e,l.tags);if(e.tag==="binding")return Cg(e,n,l,a);const c=jl(s)?g=>g:r;if(s==="script")return n("pre",{class:"script-to-pre"},`<script>
|
|
27
|
+
`.concat(p.code)},u=t.ref(null),E=t.computed(()=>{var p;return(p=l.schema.properties)==null?void 0:p.$examples}),g=t.computed(()=>{var p,w;return Object.fromEntries((w=(p=l.schema.properties)==null?void 0:p.$metrics)==null?void 0:w.map(V=>[V.name,{...V,name:void 0}]))}),{githubLight:h,githubDark:_,yaml:A,python:v,javascript:C,createJavaScriptRegexEngine:f,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?_:h],langs:[A,v,C],engine:f()})),n=await n,o(),n);const b="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{var p;window.removeEventListener("hashchange",s),(p=u.value)==null||p.dispose()}),(p,w)=>{var V,N,x,H,J,ce;return t.openBlock(),t.createElementBlock("div",h1,[t.createElementVNode("div",null,[(V=p.schema.properties)!=null&&V.$beta?(t.openBlock(),t.createElementBlock("div",E1,w[0]||(w[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",_1,[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",k1,[t.renderSlot(p.$slots,"markdown",{content:p.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Bo,{highlighter:u.value,language:"yaml",theme:b,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},[E.value?(t.openBlock(),t.createBlock(Vt,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:t.withCtx(()=>[t.createElementVNode("div",y1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,(F,he)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p.pluginType+"-"+he},[t.createElementVNode("div",C1,[t.createElementVNode("div",v1,[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(Bo,{key:0,highlighter:u.value,language:F.lang??"yaml",theme:b,code:c(F)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),he<E.value.length-1?(t.openBlock(),t.createElementBlock("hr",N1)):t.createCommentVNode("",!0)],64))),128))])]),_:3})):t.createCommentVNode("",!0),(H=p.schema.properties)!=null&&H.properties?(t.openBlock(),t.createBlock(vt,{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",S1,[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(vt,{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",b1,[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(vt,{key:3,class:"plugin-section",properties:g.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:t.withCtx(({content:F})=>[t.createElementVNode("div",L1,[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":a.value,key:`definitions-${p.pluginType}-${i.value}`},{content:t.withCtx(()=>[t.createElementVNode("div",w1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(p.schema.definitions),([F,he])=>(t.openBlock(),t.createBlock(vt,{properties:he.properties,"section-name":he.title??F.split("_")[0],href:F,"show-dynamic":!1,"initially-expanded":r.value.has(F),key:p.pluginType+"-"+F,class:"plugin-section nested-button-py-2",onExpand:Ae=>{a.value=!0,r.value.add(F)}},{markdown:t.withCtx(({content:Ae})=>[t.createElementVNode("div",T1,[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)]))])}}}),I1=D(A1,[["__scopeId","data-v-5953ec4c"]]),V1={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},B1=["aria-hidden","aria-label"],O1=["fill","width","height"],D1={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},P1={key:0};function $1(e,n,o,l,a,r){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]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",D1,[o.title?(t.openBlock(),t.createElementBlock("title",P1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,O1))],16,B1)}const R1=D(V1,[["render",$1]]),M1=["href"],x1=["src","alt"],F1=t.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const n=e,{path:o}=vn.useRoute(),l=t.computed(()=>n.href===void 0?`${o}/${Ke(n.text)}`:n.href);return(a,r)=>(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:a.iconB64Svg,alt:`${a.text} icon`},null,8,x1),t.createTextVNode(t.toDisplayString(a.text)+" ",1),t.createVNode(R1,{class:"ms-auto"})],8,M1))}}),Oo=D(F1,[["__scopeId","data-v-b787c0f3"]]),U1={class:"d-flex flex-column gap-4"},H1={key:1,class:"d-flex flex-column"},z1=["id"],G1={class:"d-flex flex-column"},W1=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const n=e,o=t.computed(()=>n.plugins.find(g=>n.subGroup===void 0?!0:Ke(Je(g))===n.subGroup)),l=t.computed(()=>{var g,h;return((g=o.value)==null?void 0:g.longDescription)??((h=o.value)==null?void 0:h.description)}),a=t.computed(()=>n.plugins.filter(g=>g.name.toLowerCase()===n.pluginName.toLowerCase()&&g.subGroup!==void 0)),r=g=>{let h=g.split(".");return h==null?void 0:h[h.length-1]},{path:i}=vn.useRoute(),s=g=>`${i}/${Ke(g)}`,c=g=>`${i}/${g}`;function u(g){return Object.fromEntries(Object.entries(g).filter(([h,_])=>Ro(h,_)).map(([h,_])=>[h.replaceAll(/[A-Z]/g,A=>` ${A}`),_.filter(({deprecated:A})=>!A).map(({cls:A})=>A)]))}const E=t.computed(()=>u(o.value));return(g,h)=>(t.openBlock(),t.createElementBlock("div",U1,[l.value!==void 0?t.renderSlot(g.$slots,"markdown",{key:0,content:l.value.replaceAll(/ *:(?![ /])/g,": ")}):t.createCommentVNode("",!0),g.subGroup===void 0&&g.plugins.length>1?(t.openBlock(),t.createElementBlock("div",H1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,_=>(t.openBlock(),t.createBlock(Oo,{id:`group-${t.unref(Ke)(t.unref(Je)(_))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(g.icons[_.subGroup]??g.icons[_.group]),text:t.unref(Je)(_),href:s(t.unref(Je)(_)),key:t.unref(Je)(_),class:"text-capitalize",onClick:A=>g.$emit("goTo",{subGroup:_})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(E.value,(_,A)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section",key:A},[t.createElementVNode("h4",{id:`section-${t.unref(Ke)(A)}`,class:"text-capitalize"},t.toDisplayString(A),9,z1),t.createElementVNode("div",G1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,v=>(t.openBlock(),t.createBlock(Oo,{id:t.unref(Ke)(v),"icon-b64-svg":"data:image/svg+xml;base64,"+(g.icons[v]??g.icons[o.value.subGroup??o.value.group]??g.icons[o.value.group]),text:r(v),href:c(v),key:v,class:"text-capitalize",onClick:C=>g.$emit("goTo",{element:v})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),K1=/"(?:_|\\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*:/,j1=/"(?: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*:/,Y1=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function q1(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){X1(e);return}return n}function X1(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Z1(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(!Y1.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(K1.test(e)||j1.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,q1)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const J1=/\d/,Q1=["-","_","/","."];function eg(e=""){if(!J1.test(e))return e!==e.toLowerCase()}function Il(e,n){const o=Q1,l=[];if(!e||typeof e!="string")return l;let a="",r,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=eg(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const E=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=E+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function tg(e){return e?e[0].toUpperCase()+e.slice(1):""}function Vl(e,n){return e?(Array.isArray(e)?e:Il(e)).map(o=>tg(o)).join(""):""}function ng(e,n){return e?(Array.isArray(e)?e:Il(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 Bl(e,n){const o={},l={};for(const a of e)Object.assign(o,a.property),Object.assign(l,a.normal);return new ft(o,l,n)}function _n(e){return e.toLowerCase()}class ke{constructor(n,o){this.attribute=o,this.property=n}}ke.prototype.attribute="";ke.prototype.booleanish=!1;ke.prototype.boolean=!1;ke.prototype.commaOrSpaceSeparated=!1;ke.prototype.commaSeparated=!1;ke.prototype.defined=!1;ke.prototype.mustUseProperty=!1;ke.prototype.number=!1;ke.prototype.overloadedBoolean=!1;ke.prototype.property="";ke.prototype.spaceSeparated=!1;ke.prototype.space=void 0;let og=0;const U=Xe(),ie=Xe(),Ol=Xe(),T=Xe(),Q=Xe(),et=Xe(),Ce=Xe();function Xe(){return 2**++og}const kn=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:ie,commaOrSpaceSeparated:Ce,commaSeparated:et,number:T,overloadedBoolean:Ol,spaceSeparated:Q},Symbol.toStringTag,{value:"Module"})),on=Object.keys(kn);class xn extends ke{constructor(n,o,l,a){let r=-1;if(super(n,o),Do(this,"space",a),typeof l=="number")for(;++r<on.length;){const i=on[r];Do(this,on[r],(l&kn[i])===kn[i])}}}xn.prototype.defined=!0;function Do(e,n,o){o&&(e[n]=o)}function ot(e){const n={},o={};for(const[l,a]of Object.entries(e.properties)){const r=new xn(l,e.transform(e.attributes||{},l),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[_n(l)]=l,o[_n(r.attribute)]=l}return new ft(n,o,e.space)}const Dl=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 Pl(e,n){return n in e?e[n]:n}function $l(e,n){return Pl(e,n.toLowerCase())}const lg=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:Ol,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:$l}),rg=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:Pl}),Rl=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()}}),Ml=ot({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$l}),xl=ot({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ag=/[A-Z]/g,Po=/-[a-z]/g,ig=/^data[-\w.:]+$/i;function sg(e,n){const o=_n(n);let l=n,a=ke;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&ig.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(Po,ug);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!Po.test(r)){let i=r.replace(ag,cg);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=xn}return new a(l,n)}function cg(e){return"-"+e.toLowerCase()}function ug(e){return e.charAt(1).toUpperCase()}const dg=Bl([Dl,lg,Rl,Ml,xl],"html");Bl([Dl,rg,Rl,Ml,xl],"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"],fg=["p","h1","h2","h3","h4","h5","h6","li"];function Bt(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function Un(e){return Bt(e,"text")||Bt(e,Symbol.for("v-txt"))}function Fl(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=Fl(e);return Array.isArray(n)?n.map(Ot).filter(Boolean).join(""):""}function Ul(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>Ul(l,n));let o=e;return n.some(l=>l==="*"||Bt(e,l))&&(o=Fl(e)||e,!Array.isArray(o)&&fg.some(l=>Bt(e,l))&&(o=[o])),o}function Hl(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>Hl(Ul(o,[n[0]]),n.slice(1))).filter(o=>!(Un(o)&&Ot(o).trim()==="")):e}function zl(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?Hl(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 mg(e,n){return n.reduce((o,l)=>{const a=pg(e,l);return a!==void 0&&(o[l]=a),o},{})}function pg(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const yn="default",Gl=/^@|^v-on:/,Wl=/^:|^v-bind:/,gg=/^v-model/,hg=["select","textarea","input"],Eg=["math","svg"],_g=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),kg=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,E,g,h,_,A,v;const n=(E=(u=t.getCurrentInstance())==null?void 0:u.appContext)==null?void 0:E.app,o=n==null?void 0:n.$nuxt,l=(o==null?void 0:o.$route)||(o==null?void 0:o._route),{mdc:a}=((g=o==null?void 0:o.$config)==null?void 0:g.public)||{},r={...(h=a==null?void 0:a.components)!=null&&h.prose&&e.prose!==!1?_g:{},...((_=a==null?void 0:a.components)==null?void 0:_.map)||{},...t.toRaw(((v=(A=e.data)==null?void 0:A.mdc)==null?void 0:v.components)||{}),...e.components},i=t.computed(()=>{var f;const C=(((f=e.body)==null?void 0:f.children)||[]).map(k=>k.tag||k.type).filter(k=>!Fn.includes(k));return Array.from(new Set(C)).sort().join(".")}),s=t.reactive({...e.data});t.watch(()=>e.data,C=>{Object.assign(s,C)}),await Ig(e.body,{tags:r});function c(C,f){const k=C.split(".").length-1;return C.split(".").reduce((b,p,w)=>w==k&&b?(b[p]=f,b[p]):typeof b=="object"?b[p]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(e){var _,A;const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const E={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},g=o!==!1?Cn(o||((_=E.component)==null?void 0:_.name)||E.component||"div"):void 0;return g?t.h(g,{...(A=E.component)==null?void 0:A.props,class:e.class,...this.$attrs,key:r},{default:h}):h==null?void 0:h();function h(){const v=Kl(l,t.h,{documentMeta:E,parentScope:E,resolveComponent:Cn});return v!=null&&v.default?s?zl(v.default(),typeof s=="string"?s.split(" "):["*"]):v.default():null}}});function yg(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const i=e.tag,s=Yl(e,l.tags);if(e.tag==="binding")return Cg(e,n,l,a);const c=jl(s)?g=>g:r;if(s==="script")return n("pre",{class:"script-to-pre"},`<script>
|
|
28
28
|
`+Ot(e)+`
|
|
29
|
-
<\/script>`);const u=c(s);typeof u=="object"&&(u.tag=i);const E=vg(e,l);return n(u,E,Kl(e,n,{documentMeta:l,parentScope:{...a,...E},resolveComponent:c}))}function Kl(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(e.children||[]).reduce((u,E)=>{if(!Tg(E))return u[yn].children.push(E),u;const g=wg(E);return u[g]=u[g]||{props:{},children:[]},E.type==="element"&&(u[g].props=E.props,u[g].children.push(...E.children||[])),u},{[yn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[E,{props:g,children:h}])=>(h.length&&(u[E]=(_={})=>{const A=mg(_,Object.keys(g||{}));let
|
|
29
|
+
<\/script>`);const u=c(s);typeof u=="object"&&(u.tag=i);const E=vg(e,l);return n(u,E,Kl(e,n,{documentMeta:l,parentScope:{...a,...E},resolveComponent:c}))}function Kl(e,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(e.children||[]).reduce((u,E)=>{if(!Tg(E))return u[yn].children.push(E),u;const g=wg(E);return u[g]=u[g]||{props:{},children:[]},E.type==="element"&&(u[g].props=E.props,u[g].children.push(...E.children||[])),u},{[yn]:{props:{},children:[]}});return Object.entries(s).reduce((u,[E,{props:g,children:h}])=>(h.length&&(u[E]=(_={})=>{const A=mg(_,Object.keys(g||{}));let v=h.map(C=>yg(C,n,{documentMeta:l,parentScope:{...a,...A},resolveComponent:r}));return g!=null&&g.unwrap&&(v=zl(v,g.unwrap)),Ag(v)}),u),{})}function Cg(e,n,o,l={}){var u,E;const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=((u=e.props)==null?void 0:u.value.trim().split(r).filter(Boolean)).reduce((g,h)=>{if(g&&h in g)return typeof g[h]=="function"?g[h]():g[h]},a),c=(E=e.props)==null?void 0:E.defaultValue;return n(t.Text,s??c??"")}function vg(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(gg.test(r))return Ng(r,i,a,n,{native:hg.includes(o)});if(r==="v-bind")return Sg(r,i,a,n);if(Gl.test(r))return bg(r,i,a,n);if(Wl.test(r))return Lg(r,i,a,n);const{attribute:s}=sg(dg,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function Ng(e,n,o,l,{native:a}){var c;const r=((c=e.match(/^v-model:([^=]+)/))==null?void 0:c[1])||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=Ft(n,l.runtimeData),o[s]=u=>{var E;l.updateRuntimeData(n,a?(E=u.target)==null?void 0:E.value:u)},o}function Sg(e,n,o,l){const a=Ft(n,l);return o=Object.assign(o,a),o}function bg(e,n,o,l){return e=e.replace(Gl,""),o.on=o.on||{},o.on[e]=()=>Ft(n,l),o}function Lg(e,n,o,l){return e=e.replace(Wl,""),o[e]=Ft(n,l),o}const Cn=e=>{if(typeof e=="string"){if(Fn.includes(e))return e;const n=t.resolveComponent(Vl(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 Ft(e,n){const o=e.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?Z1(e):o}function wg(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||yn}function Tg(e){return e.tag==="template"}function jl(e){return Eg.includes(e)}function Ag(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 Ig(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async a=>{if(a!=null&&a.render||a!=null&&a.ssrRender||a!=null&&a.__ssrInlineRender)return;const r=Cn(a);r!=null&&r.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=Yl(a,r.tags);if(jl(s))return[];const c=[];a.type!=="root"&&!Fn.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function Yl(e,n){var l;const o=e.tag;return!o||typeof((l=e.props)==null?void 0:l.__ignoreMap)<"u"?o:n[o]||n[Vl(o)]||n[ng(e.tag)]||o}const Vg=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(kg,t.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=S.CLUSTER_PREFIX;exports.EVENTS=S.EVENTS;exports.NODE_SIZES=S.NODE_SIZES;exports.SECTIONS=S.SECTIONS;exports.Utils=S.Utils;exports.VueFlowUtils=S.VueFlowUtils;exports.editorViewTypes=S.editorViewTypes;exports.executeFlowBehaviours=S.executeFlowBehaviours;exports.logDisplayTypes=S.logDisplayTypes;exports.stateDisplayValues=S.stateDisplayValues;exports.stateGlobalChartTypes=S.stateGlobalChartTypes;exports.storageKeys=S.storageKeys;exports.DependenciesNode=ic;exports.MDCRenderer=Vg;exports.PluginIndex=W1;exports.RotatingDotsIcon=Mo;exports.STATES=G;exports.SchemaToHtml=I1;exports.State=te;exports.TaskIcon=Vn;exports.Topology=nm;exports.YamlUtils=rr;exports.cssVariable=ve;exports.getMDCParser=ba;exports.isEntryAPluginElementPredicate=Ro;exports.slugify=Ke;exports.subGroupName=Je;
|
|
30
30
|
//# sourceMappingURL=kestra-index.cjs.js.map
|