@kestra-io/ui-libs 0.0.281 → 0.0.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/plugins/CollapsibleProperties.vue.d.ts +3 -1
- package/dist/components/plugins/CollapsibleProperties.vue.d.ts.map +1 -1
- package/dist/components/plugins/SchemaToHtml.vue.d.ts.map +1 -1
- package/dist/components/plugins_v2/CollapsiblePropertiesV2.vue.d.ts +1 -1
- package/dist/components/plugins_v2/CollapsiblePropertiesV2.vue.d.ts.map +1 -1
- package/dist/components/plugins_v2/PropertyDetailV2.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +17 -17
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +3306 -3293
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/dist/utils/schemaUtils.d.ts +2 -0
- package/dist/utils/schemaUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/plugins/CollapsibleProperties.vue +11 -2
- package/src/components/plugins/SchemaToHtml.vue +14 -5
- package/src/components/plugins_v2/PropertyDetailV2.vue +2 -1
- package/src/components/plugins_v2/SchemaToHtmlV2.vue +2 -2
- package/src/utils/schemaUtils.ts +16 -9
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";var Br=Object.create;var ro=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var Ir=Object.getOwnPropertyNames;var Ar=Object.getPrototypeOf,Dr=Object.prototype.hasOwnProperty;var $r=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ir(n))!Dr.call(e,r)&&r!==o&&ro(e,r,{get:()=>n[r],enumerable:!(l=Vr(n,r))||l.enumerable});return e};var Or=(e,n,o)=>(o=e!=null?Br(Ar(e)):{},$r(n||!e||!e.__esModule?ro(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ge=require("yaml"),S=require("./VueFlowUtils-CAqlzP8f.cjs"),W=require("./FlowYamlUtils-BR3BpHdP.cjs"),t=require("vue"),oe=require("@vue-flow/core"),an=require("@vue-flow/controls"),sn=require("moment"),Pr=require("@popperjs/core");function xr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const cn=xr(t),Rr={lineWidth:0},ao=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Mr={stringify:W.stringify,parse:W.parse,pairsToMap:W.pairsToMap,extractTask(e,n){for(const o of ao){const l=W.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(i){if(i){if(i instanceof Ge.YAMLMap&&i.get("type")!==void 0&&n===i.get("id"))return o?o(i):i;if(i.items)for(const[a,s]of i.items.entries()){let c;if(s instanceof Ge.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(i instanceof Ge.YAMLMap?i.set(s.key.value,c):i.items[a]=c),!o&&c))return c}}}const r=l(e.contents);if(r!==void 0)return o?new Ge.Document(r):new Ge.Document(r)},replaceTaskInDocument(e,n,o,l="tasks",r="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:r,key:n,newContent:o})},sort:W.sort,getAllCharts:W.getAllCharts,getChartAtPosition:W.getChartAtPosition,localizeElementAtIndex:W.localizeElementAtIndex,getTaskType:W.getTypeAtPosition,swapTasks(e,n,o){const l=Ge.parseDocument(e),r=this._extractTask(l,n),i=this._extractTask(l,o);return Ge.visit(l,{Pair(a,s){if(s.key.value==="dependsOn"&&s.value.items.map(c=>c.value).includes(o))throw{message:"dependency task",messageOptions:{taskId:o}}}}),this._extractTask(l,n,()=>i),this._extractTask(l,o,()=>r),l.toString(Rr)},insertTask(e,n,o,l,r){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:r})},insertSection(e,n,o){return W.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:W.insertErrorInFlowable,deleteSection(e,n,o){return W.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===S.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((r,i)=>W.deleteBlock({source:r,section:i,key:n}),e)},getLastTask(e,n){return W.getLastBlock({source:e,section:"tasks",parentKey:n})},checkTaskAlreadyExist(e,n){return W.checkBlockAlreadyExists({source:e,section:"tasks",newContent:n,keyName:"id"})},isParentChildrenRelation(e,n,o){return W.isParentChildrenRelation({source:e,sections:ao,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},_e=e=>{const n=document.querySelector(":root");return(n?getComputedStyle(n):null)?.getPropertyValue(e)};var Fr=S.requireMapValues();const Nt=W.getDefaultExportFromCjs(Fr),D=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Ur={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hr=["aria-hidden","aria-label"],zr=["fill","width","height"],Wr={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"},jr={key:0};function Gr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pause-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wr,[o.title?(t.openBlock(),t.createElementBlock("title",jr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zr))],16,Hr)}const io=D(Ur,[["render",Gr]]),Kr={name:"CheckCircleIcon",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:"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"},Zr={key:0};function Jr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xr,[o.title?(t.openBlock(),t.createElementBlock("title",Zr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qr))],16,Yr)}const Qr=D(Kr,[["render",Jr]]),ea={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ta=["aria-hidden","aria-label"],na=["fill","width","height"],oa={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"},la={key:0};function ra(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",oa,[o.title?(t.openBlock(),t.createElementBlock("title",la,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,na))],16,ta)}const aa=D(ea,[["render",ra]]),ia={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sa=["aria-hidden","aria-label"],ca=["fill","width","height"],ua={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"},da={key:0};function ma(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon close-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ua,[o.title?(t.openBlock(),t.createElementBlock("title",da,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ca))],16,sa)}const hn=D(ia,[["render",ma]]),fa={name:"StopCircleIcon",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:"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"},Ea={key:0};function ya(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon stop-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ha,[o.title?(t.openBlock(),t.createElementBlock("title",Ea,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ga))],16,pa)}const ka=D(fa,[["render",ya]]),va={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ca=["aria-hidden","aria-label"],_a=["fill","width","height"],Na={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"},Sa={key:0};function ba(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-previous-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Na,[o.title?(t.openBlock(),t.createElementBlock("title",Sa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_a))],16,Ca)}const wa=D(va,[["render",ba]]),La={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ta=["aria-hidden","aria-label"],Ba=["fill","width","height"],Va={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"},Ia={key:0};function Aa(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Va,[o.title?(t.openBlock(),t.createElementBlock("title",Ia,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ba))],16,Ta)}const At=D(La,[["render",Aa]]),Da={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$a=["aria-hidden","aria-label"],Oa=["fill","width","height"],Pa={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"},xa={key:0};function Ra(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon dots-vertical-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Pa,[o.title?(t.openBlock(),t.createElementBlock("title",xa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Oa))],16,$a)}const Ma=D(Da,[["render",Ra]]),Fa={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ua=["aria-hidden","aria-label"],Ha=["fill","width","height"],za={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"},Wa={key:0};function ja(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon motion-pause-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",za,[o.title?(t.openBlock(),t.createElementBlock("title",Wa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Ha))],16,Ua)}const Ga=D(Fa,[["render",ja]]),Ka={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ya=["aria-hidden","aria-label"],qa=["fill","width","height"],Xa={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"},Za={key:0};function Ja(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon refresh-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xa,[o.title?(t.openBlock(),t.createElementBlock("title",Za,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qa))],16,Ya)}const so=D(Ka,[["render",Ja]]),Qa={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ei=["aria-hidden","aria-label"],ti=["fill","width","height"],ni={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"},oi={key:0};function li(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon cancel-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ni,[o.title?(t.openBlock(),t.createElementBlock("title",oi,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ti))],16,ei)}const co=D(Qa,[["render",li]]),ri=["ERROR","WARN","INFO","DEBUG","TRACE"],z=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:Ma,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:wa,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:Qr,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:aa,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:hn,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:ka,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:At,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:hn,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:io,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:co,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:co,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:Ga,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:so,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:so,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:io,isRunning:!1,isKillable:!1,isFailed:!1}});class ne{static get CREATED(){return z.CREATED.name}static get RESTARTED(){return z.RESTARTED.name}static get SUCCESS(){return z.SUCCESS.name}static get RUNNING(){return z.RUNNING.name}static get KILLING(){return z.KILLING.name}static get KILLED(){return z.KILLED.name}static get FAILED(){return z.FAILED.name}static get WARNING(){return z.WARNING.name}static get PAUSED(){return z.PAUSED.name}static get CANCELLED(){return z.CANCELLED.name}static get SKIPPED(){return z.SKIPPED.name}static get QUEUED(){return z.QUEUED.name}static get RETRYING(){return z.RETRYING.name}static get RETRIED(){return z.RETRIED.name}static get BREAKPOINT(){return z.BREAKPOINT.name}static isRunning(n){return z[n]&&z[n].isRunning}static isKillable(n){return z[n]&&z[n].isKillable}static isPaused(n){return z[n]&&z[n]===z.PAUSED}static isFailed(n){return z[n]&&z[n].isFailed}static isQueued(n){return z[n]&&z[n]===z.QUEUED}static allStates(){return Nt(z,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(z)}static colorClass(){return Nt(z,n=>n.colorClass)}static color(){return Nt(z,n=>_e("--bs-"+n.colorClass))}static getStateColor(n){return z[n].color}static icon(){return Nt(z,n=>n.icon)}static getTerminatedStates(){return Object.values(z).filter(n=>!n.isRunning).map(n=>n.name)}}let St;async function ai(){if(St)return St;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-cPr4eWCu.cjs"));return St=await(e.default??e)(),St}var Vt={exports:{}},ii=Vt.exports,uo;function si(){return uo||(uo=1,(function(e,n){(function(o,l,r){e.exports=r(),e.exports.default=r()})("slugify",ii,function(){var o=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),l=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(i,a){if(typeof i!="string")throw new Error("slugify: string argument expected");a=typeof a=="string"?{replacement:a}:a||{};var s=l[a.locale]||{},c=a.replacement===void 0?"-":a.replacement,u=a.trim===void 0?!0:a.trim,d=i.normalize().split("").reduce(function(p,h){var y=s[h];return y===void 0&&(y=o[h]),y===void 0&&(y=h),y===c&&(y=" "),p+y.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,c),a.lower&&(d=d.toLowerCase()),d}return r.extend=function(i){Object.assign(o,i)},r})})(Vt)),Vt.exports}var ci=si();const el=W.getDefaultExportFromCjs(ci);el.extend({"(":"-",")":""});function Ce(e){return el(e,{lower:!0,locale:"en"})}function $n(e,n){return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||n[0]?.cls!==void 0)}function De(e){const o=(e.title??"").replace(/\.([a-zA-Z])/g,(l,r)=>` ${r.toUpperCase()}`);return o.charAt(0).toUpperCase()+o.slice(1)}function Ht(e){return Object.fromEntries(Object.entries(e).filter(([n,o])=>$n(n,o)).map(([n,o])=>[n.replace(/[A-Z]/g,l=>` ${l}`),o.filter(({deprecated:l})=>!l).map(({cls:l})=>l)]))}function ui(e){return e.flatMap(n=>{const o=Object.entries(n).filter(([l,r])=>$n(l,r)).map(([l,r])=>[l,r.filter(i=>!i.deprecated)]).filter(([,l])=>l.length>0);return o.length>0?[{...n,...Object.fromEntries(o)}]:[]})}function di(e){const n={clsToSubgroup:{},clsToPlugin:{},shortNameToCls:{}};for(const o of e??[]){const l=Ht(o),r=o.group??o.name??"",i=Ce(r),a=o.subGroup?Ce(De(o)):void 0;Object.values(l).forEach(s=>{s.forEach(c=>{a&&(n.clsToSubgroup[c]=a),n.clsToPlugin[c]={slug:i,raw:r};const u=(c.split(".").pop()??c).toLowerCase();n.shortNameToCls[u]=n.shortNameToCls[u]??[],n.shortNameToCls[u].includes(c)||n.shortNameToCls[u].push(c)})})}return n}function tl(e){const n=t.computed(()=>{const l=t.isRef(e)?e.value:e;return l?Ht(l):{}}),o=t.computed(()=>Object.values(n.value).reduce((l,r)=>l+r.length,0));return{elementsByType:n,total:o}}const mi={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fi=["aria-hidden","aria-label"],pi=["fill","width","height"],gi={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"},hi={key:0};function Ei(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon dots-circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",gi,[o.title?(t.openBlock(),t.createElementBlock("title",hi,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,pi))],16,fi)}const yi=D(mi,[["render",Ei]]),ki=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(yi,{class:"loading-dots-circle",alt:e.alt},null,8,["alt"]))}}),nl=D(ki,[["__scopeId","data-v-a7ad4137"]]);function Ve(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const mo={};function vi(e){mo[e]||(mo[e]=!0,Ve(e))}const Pe=typeof window<"u";let Ne,qe;if(process.env.NODE_ENV!=="production"){const e=Pe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ne=n=>{e.mark(n)},qe=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const Ci=/\{([0-9a-zA-Z]+)\}/g;function zt(e,...n){return n.length===1&&Y(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(Ci,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const xe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),_i=(e,n,o)=>Ni({l:e,k:n,s:o}),Ni=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ce=e=>typeof e=="number"&&isFinite(e),Si=e=>On(e)==="[object Date]",Dt=e=>On(e)==="[object RegExp]",Wt=e=>K(e)&&Object.keys(e).length===0,ue=Object.assign,bi=Object.create,X=(e=null)=>bi(e);let fo;const Ke=()=>fo||(fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:X());function po(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function go(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wi(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(l,r,i)=>`${r}="${go(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(l,r,i)=>`${r}='${go(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Ve("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(l=>{e=e.replace(l,"$1javascript:")}),e}const Li=Object.prototype.hasOwnProperty;function be(e,n){return Li.call(e,n)}const ie=Array.isArray,te=e=>typeof e=="function",$=e=>typeof e=="string",ae=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",Ti=e=>Y(e)&&te(e.then)&&te(e.catch),ol=Object.prototype.toString,On=e=>ol.call(e),K=e=>On(e)==="[object Object]",Bi=e=>e==null?"":ie(e)||K(e)&&e.toString===ol?JSON.stringify(e,null,2):String(e);function Pn(e,n=""){return e.reduce((o,l,r)=>r===0?o+l:o+n+l,"")}const ho=2;function Vi(e,n=0,o=e.length){const l=e.split(/\r?\n/);let r=0;const i=[];for(let a=0;a<l.length;a++)if(r+=l[a].length+1,r>=n){for(let s=a-ho;s<=a+ho||o>r;s++){if(s<0||s>=l.length)continue;const c=s+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${l[s]}`);const u=l[s].length;if(s===a){const d=n-(r-u)+1,p=Math.max(1,o>r?u-d:o-n);i.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(s>a){if(o>r){const d=Math.max(Math.min(o-r,u),1);i.push(" | "+"^".repeat(d))}r+=u+1}}break}return i.join(`
|
|
2
|
-
`)}function
|
|
3
|
-
`,Mi="\u2028",Fi="\u2029";function Ui(e){const n=e;let o=0,l=1,r=1,i=0;const a=_=>n[_]===Ri&&n[_+1]===fe,s=_=>n[_]===fe,c=_=>n[_]===Fi,u=_=>n[_]===Mi,d=_=>a(_)||s(_)||c(_)||u(_),p=()=>o,h=()=>l,y=()=>r,w=()=>i,k=_=>a(_)||c(_)||u(_)?fe:n[_],v=()=>k(o),f=()=>k(o+i);function E(){return i=0,d(o)&&(l++,r=0),a(o)&&o++,o++,r++,n[o]}function L(){return a(o+i)&&i++,i++,n[o+i]}function N(){o=0,l=1,r=1,i=0}function T(_=0){i=_}function I(){const _=o+i;for(;_!==o;)E();i=0}return{index:p,line:h,column:y,peekOffset:w,charAt:k,currentChar:v,currentPeek:f,next:E,peek:L,reset:N,resetPeek:T,skipToPeek:I}}const Ae=void 0,Hi=".",Eo="'",zi="tokenizer";function Wi(e,n={}){const o=n.location!==!1,l=Ui(e),r=()=>l.index(),i=()=>Ai(l.line(),l.column(),l.index()),a=i(),s=r(),c={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=n;function p(m,g,b,...O){const ee=u();if(g.column+=b,g.offset+=b,d){const le=o?En(ee.startLoc,g):null,G=rt(m,le,{domain:zi,args:O});d(G)}}function h(m,g,b){m.endLoc=i(),m.currentType=g;const O={type:g};return o&&(O.loc=En(m.startLoc,m.endLoc)),b!=null&&(O.value=b),O}const y=m=>h(m,13);function w(m,g){return m.currentChar()===g?(m.next(),g):(p(M.EXPECTED_TOKEN,i(),0,g),"")}function k(m){let g="";for(;m.currentPeek()===Le||m.currentPeek()===fe;)g+=m.currentPeek(),m.peek();return g}function v(m){const g=k(m);return m.skipToPeek(),g}function f(m){if(m===Ae)return!1;const g=m.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function E(m){if(m===Ae)return!1;const g=m.charCodeAt(0);return g>=48&&g<=57}function L(m,g){const{currentType:b}=g;if(b!==2)return!1;k(m);const O=f(m.currentPeek());return m.resetPeek(),O}function N(m,g){const{currentType:b}=g;if(b!==2)return!1;k(m);const O=m.currentPeek()==="-"?m.peek():m.currentPeek(),ee=E(O);return m.resetPeek(),ee}function T(m,g){const{currentType:b}=g;if(b!==2)return!1;k(m);const O=m.currentPeek()===Eo;return m.resetPeek(),O}function I(m,g){const{currentType:b}=g;if(b!==7)return!1;k(m);const O=m.currentPeek()===".";return m.resetPeek(),O}function _(m,g){const{currentType:b}=g;if(b!==8)return!1;k(m);const O=f(m.currentPeek());return m.resetPeek(),O}function R(m,g){const{currentType:b}=g;if(!(b===7||b===11))return!1;k(m);const O=m.currentPeek()===":";return m.resetPeek(),O}function U(m,g){const{currentType:b}=g;if(b!==9)return!1;const O=()=>{const le=m.currentPeek();return le==="{"?f(m.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Le||!le?!1:le===fe?(m.peek(),O()):ge(m,!1)},ee=O();return m.resetPeek(),ee}function Q(m){k(m);const g=m.currentPeek()==="|";return m.resetPeek(),g}function ge(m,g=!0){const b=(ee=!1,le="")=>{const G=m.currentPeek();return G==="{"||G==="@"||!G?ee:G==="|"?!(le===Le||le===fe):G===Le?(m.peek(),b(!0,Le)):G===fe?(m.peek(),b(!0,fe)):!0},O=b();return g&&m.resetPeek(),O}function Z(m,g){const b=m.currentChar();return b===Ae?Ae:g(b)?(m.next(),b):null}function Re(m){const g=m.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36}function Je(m){return Z(m,Re)}function P(m){const g=m.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36||g===45}function A(m){return Z(m,P)}function H(m){const g=m.charCodeAt(0);return g>=48&&g<=57}function x(m){return Z(m,H)}function Ie(m){const g=m.charCodeAt(0);return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102}function me(m){return Z(m,Ie)}function He(m){let g="",b="";for(;g=x(m);)b+=g;return b}function Zt(m){let g="";for(;;){const b=m.currentChar();if(b==="{"||b==="}"||b==="@"||b==="|"||!b)break;if(b===Le||b===fe)if(ge(m))g+=b,m.next();else{if(Q(m))break;g+=b,m.next()}else g+=b,m.next()}return g}function Jt(m){v(m);let g="",b="";for(;g=A(m);)b+=g;const O=m.currentChar();if(O&&O!=="}"&&O!==Ae&&O!==Le&&O!==fe&&O!==" "){const ee=Ct(m);return p(M.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,b+ee),b+ee}return m.currentChar()===Ae&&p(M.UNTERMINATED_CLOSING_BRACE,i(),0),b}function Qt(m){v(m);let g="";return m.currentChar()==="-"?(m.next(),g+=`-${He(m)}`):g+=He(m),m.currentChar()===Ae&&p(M.UNTERMINATED_CLOSING_BRACE,i(),0),g}function en(m){return m!==Eo&&m!==fe}function oo(m){v(m),w(m,"'");let g="",b="";for(;g=Z(m,en);)g==="\\"?b+=tn(m):b+=g;const O=m.currentChar();return O===fe||O===Ae?(p(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===fe&&(m.next(),w(m,"'")),b):(w(m,"'"),b)}function tn(m){const g=m.currentChar();switch(g){case"\\":case"'":return m.next(),`\\${g}`;case"u":return vt(m,g,4);case"U":return vt(m,g,6);default:return p(M.UNKNOWN_ESCAPE_SEQUENCE,i(),0,g),""}}function vt(m,g,b){w(m,g);let O="";for(let ee=0;ee<b;ee++){const le=me(m);if(!le){p(M.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${g}${O}${m.currentChar()}`);break}O+=le}return`\\${g}${O}`}function nn(m){return m!=="{"&&m!=="}"&&m!==Le&&m!==fe}function Ct(m){v(m);let g="",b="";for(;g=Z(m,nn);)b+=g;return b}function on(m){let g="",b="";for(;g=Je(m);)b+=g;return b}function ln(m){const g=b=>{const O=m.currentChar();return O==="{"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Le?b:(b+=O,m.next(),g(b))};return g("")}function st(m){v(m);const g=w(m,"|");return v(m),g}function ct(m,g){let b=null;switch(m.currentChar()){case"{":return g.braceNest>=1&&p(M.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),m.next(),b=h(g,2,"{"),v(m),g.braceNest++,b;case"}":return g.braceNest>0&&g.currentType===2&&p(M.EMPTY_PLACEHOLDER,i(),0),m.next(),b=h(g,3,"}"),g.braceNest--,g.braceNest>0&&v(m),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),b;case"@":return g.braceNest>0&&p(M.UNTERMINATED_CLOSING_BRACE,i(),0),b=ze(m,g)||y(g),g.braceNest=0,b;default:{let ee=!0,le=!0,G=!0;if(Q(m))return g.braceNest>0&&p(M.UNTERMINATED_CLOSING_BRACE,i(),0),b=h(g,1,st(m)),g.braceNest=0,g.inLinked=!1,b;if(g.braceNest>0&&(g.currentType===4||g.currentType===5||g.currentType===6))return p(M.UNTERMINATED_CLOSING_BRACE,i(),0),g.braceNest=0,ut(m,g);if(ee=L(m,g))return b=h(g,4,Jt(m)),v(m),b;if(le=N(m,g))return b=h(g,5,Qt(m)),v(m),b;if(G=T(m,g))return b=h(g,6,oo(m)),v(m),b;if(!ee&&!le&&!G)return b=h(g,12,Ct(m)),p(M.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,b.value),v(m),b;break}}return b}function ze(m,g){const{currentType:b}=g;let O=null;const ee=m.currentChar();switch((b===7||b===8||b===11||b===9)&&(ee===fe||ee===Le)&&p(M.INVALID_LINKED_FORMAT,i(),0),ee){case"@":return m.next(),O=h(g,7,"@"),g.inLinked=!0,O;case".":return v(m),m.next(),h(g,8,".");case":":return v(m),m.next(),h(g,9,":");default:return Q(m)?(O=h(g,1,st(m)),g.braceNest=0,g.inLinked=!1,O):I(m,g)||R(m,g)?(v(m),ze(m,g)):_(m,g)?(v(m),h(g,11,on(m))):U(m,g)?(v(m),ee==="{"?ct(m,g)||O:h(g,10,ln(m))):(b===7&&p(M.INVALID_LINKED_FORMAT,i(),0),g.braceNest=0,g.inLinked=!1,ut(m,g))}}function ut(m,g){let b={type:13};if(g.braceNest>0)return ct(m,g)||y(g);if(g.inLinked)return ze(m,g)||y(g);switch(m.currentChar()){case"{":return ct(m,g)||y(g);case"}":return p(M.UNBALANCED_CLOSING_BRACE,i(),0),m.next(),h(g,3,"}");case"@":return ze(m,g)||y(g);default:{if(Q(m))return b=h(g,1,st(m)),g.braceNest=0,g.inLinked=!1,b;if(ge(m))return h(g,0,Zt(m));break}}return b}function rn(){const{currentType:m,offset:g,startLoc:b,endLoc:O}=c;return c.lastType=m,c.lastOffset=g,c.lastStartLoc=b,c.lastEndLoc=O,c.offset=r(),c.startLoc=i(),l.currentChar()===Ae?h(c,13):ut(l,c)}return{nextToken:rn,currentOffset:r,currentPosition:i,context:u}}const ji="parser",Gi=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ki(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 Yi(e={}){const n=e.location!==!1,{onError:o}=e;function l(f,E,L,N,...T){const I=f.currentPosition();if(I.offset+=N,I.column+=N,o){const _=n?En(L,I):null,R=rt(E,_,{domain:ji,args:T});o(R)}}function r(f,E,L){const N={type:f};return n&&(N.start=E,N.end=E,N.loc={start:L,end:L}),N}function i(f,E,L,N){n&&(f.end=E,f.loc&&(f.loc.end=L))}function a(f,E){const L=f.context(),N=r(3,L.offset,L.startLoc);return N.value=E,i(N,f.currentOffset(),f.currentPosition()),N}function s(f,E){const L=f.context(),{lastOffset:N,lastStartLoc:T}=L,I=r(5,N,T);return I.index=parseInt(E,10),f.nextToken(),i(I,f.currentOffset(),f.currentPosition()),I}function c(f,E){const L=f.context(),{lastOffset:N,lastStartLoc:T}=L,I=r(4,N,T);return I.key=E,f.nextToken(),i(I,f.currentOffset(),f.currentPosition()),I}function u(f,E){const L=f.context(),{lastOffset:N,lastStartLoc:T}=L,I=r(9,N,T);return I.value=E.replace(Gi,Ki),f.nextToken(),i(I,f.currentOffset(),f.currentPosition()),I}function d(f){const E=f.nextToken(),L=f.context(),{lastOffset:N,lastStartLoc:T}=L,I=r(8,N,T);return E.type!==11?(l(f,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),I.value="",i(I,N,T),{nextConsumeToken:E,node:I}):(E.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,Te(E)),I.value=E.value||"",i(I,f.currentOffset(),f.currentPosition()),{node:I})}function p(f,E){const L=f.context(),N=r(7,L.offset,L.startLoc);return N.value=E,i(N,f.currentOffset(),f.currentPosition()),N}function h(f){const E=f.context(),L=r(6,E.offset,E.startLoc);let N=f.nextToken();if(N.type===8){const T=d(f);L.modifier=T.node,N=T.nextConsumeToken||f.nextToken()}switch(N.type!==9&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(N)),N=f.nextToken(),N.type===2&&(N=f.nextToken()),N.type){case 10:N.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(N)),L.key=p(f,N.value||"");break;case 4:N.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(N)),L.key=c(f,N.value||"");break;case 5:N.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(N)),L.key=s(f,N.value||"");break;case 6:N.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(N)),L.key=u(f,N.value||"");break;default:{l(f,M.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const T=f.context(),I=r(7,T.offset,T.startLoc);return I.value="",i(I,T.offset,T.startLoc),L.key=I,i(L,T.offset,T.startLoc),{nextConsumeToken:N,node:L}}}return i(L,f.currentOffset(),f.currentPosition()),{node:L}}function y(f){const E=f.context(),L=E.currentType===1?f.currentOffset():E.offset,N=E.currentType===1?E.endLoc:E.startLoc,T=r(2,L,N);T.items=[];let I=null;do{const U=I||f.nextToken();switch(I=null,U.type){case 0:U.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),T.items.push(a(f,U.value||""));break;case 5:U.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),T.items.push(s(f,U.value||""));break;case 4:U.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),T.items.push(c(f,U.value||""));break;case 6:U.value==null&&l(f,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),T.items.push(u(f,U.value||""));break;case 7:{const Q=h(f);T.items.push(Q.node),I=Q.nextConsumeToken||null;break}}}while(E.currentType!==13&&E.currentType!==1);const _=E.currentType===1?E.lastOffset:f.currentOffset(),R=E.currentType===1?E.lastEndLoc:f.currentPosition();return i(T,_,R),T}function w(f,E,L,N){const T=f.context();let I=N.items.length===0;const _=r(1,E,L);_.cases=[],_.cases.push(N);do{const R=y(f);I||(I=R.items.length===0),_.cases.push(R)}while(T.currentType!==13);return I&&l(f,M.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),i(_,f.currentOffset(),f.currentPosition()),_}function k(f){const E=f.context(),{offset:L,startLoc:N}=E,T=y(f);return E.currentType===13?T:w(f,L,N,T)}function v(f){const E=Wi(f,ue({},e)),L=E.context(),N=r(0,L.offset,L.startLoc);return n&&N.loc&&(N.loc.source=f),N.body=k(E),e.onCacheKey&&(N.cacheKey=e.onCacheKey(f)),L.currentType!==13&&l(E,M.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,f[L.offset]||""),i(N,E.currentOffset(),E.currentPosition()),N}return{parse:v}}function Te(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function qi(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:i=>(o.helpers.add(i),i)}}function yo(e,n){for(let o=0;o<e.length;o++)xn(e[o],n)}function xn(e,n){switch(e.type){case 1:yo(e.cases,n),n.helper("plural");break;case 2:yo(e.items,n);break;case 6:{xn(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 Xi(e,n={}){const o=qi(e);o.helper("normalize"),e.body&&xn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function Zi(e){const n=e.body;return n.type===2?ko(n):n.cases.forEach(o=>ko(o)),e}function ko(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=Pn(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 Ji="minifier";function nt(e){switch(e.t=e.type,e.type){case 0:{const n=e;nt(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++)nt(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++)nt(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;nt(n.key),n.k=n.key,delete n.key,n.modifier&&(nt(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 rt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ji,args:[e.type]})}delete e.type}const Qi="parser";function es(e,n){const{filename:o,breakLineCode:l,needIndent:r}=n,i=n.location!==!1,a={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const s=()=>a;function c(k,v){a.code+=k}function u(k,v=!0){const f=v?l:"";c(r?f+" ".repeat(k):f)}function d(k=!0){const v=++a.indentLevel;k&&u(v)}function p(k=!0){const v=--a.indentLevel;k&&u(v)}function h(){u(a.indentLevel)}return{context:s,push:c,indent:d,deindent:p,newline:h,helper:k=>`_${k}`,needIndent:()=>a.needIndent}}function ts(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),lt(e,n.key),n.modifier?(e.push(", "),lt(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ns(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const r=n.items.length;for(let i=0;i<r&&(lt(e,n.items[i]),i!==r-1);i++)e.push(", ");e.deindent(l()),e.push("])")}function os(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const r=n.cases.length;for(let i=0;i<r&&(lt(e,n.cases[i]),i!==r-1);i++)e.push(", ");e.deindent(l()),e.push("])")}}function ls(e,n){n.body?lt(e,n.body):e.push("null")}function lt(e,n){const{helper:o}=e;switch(n.type){case 0:ls(e,n);break;case 1:os(e,n);break;case 2:ns(e,n);break;case 6:ts(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 rt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Qi,args:[n.type]})}}const rs=(e,n={})=>{const o=$(n.mode)?n.mode:"normal",l=$(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
4
|
-
`,i=n.needIndent?n.needIndent:o!=="arrow",a=e.helpers||[],s=es(e,{filename:l,breakLineCode:r,needIndent:i});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),a.length>0&&(s.push(`const { ${Pn(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),lt(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function as(e,n={}){const o=ue({},n),l=!!o.jit,r=!!o.minify,i=o.optimize==null?!0:o.optimize,s=Yi(o).parse(e);return l?(i&&Zi(s),r&&nt(s),{ast:s,code:""}):(Xi(s,o),rs(s,o))}function is(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function we(e){return Y(e)&&Rn(e)===0&&(be(e,"b")||be(e,"body"))}const ll=["b","body"];function ss(e){return Fe(e,ll)}const rl=["c","cases"];function cs(e){return Fe(e,rl,[])}const al=["s","static"];function us(e){return Fe(e,al)}const il=["i","items"];function ds(e){return Fe(e,il,[])}const sl=["t","type"];function Rn(e){return Fe(e,sl)}const cl=["v","value"];function wt(e,n){const o=Fe(e,cl);if(o!=null)return o;throw mt(n)}const ul=["m","modifier"];function ms(e){return Fe(e,ul)}const dl=["k","key"];function fs(e){const n=Fe(e,dl);if(n)return n;throw mt(6)}function Fe(e,n,o){for(let l=0;l<n.length;l++){const r=n[l];if(be(e,r)&&e[r]!=null)return e[r]}return o}const ml=[...ll,...rl,...al,...il,...dl,...ul,...cl,...sl];function mt(e){return new Error(`unhandled node type: ${e}`)}function un(e){return o=>ps(o,e)}function ps(e,n){const o=ss(n);if(o==null)throw mt(0);if(Rn(o)===1){const i=cs(o);return e.plural(i.reduce((a,s)=>[...a,vo(e,s)],[]))}else return vo(e,o)}function vo(e,n){const o=us(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=ds(n).reduce((r,i)=>[...r,yn(e,i)],[]);return e.normalize(l)}}function yn(e,n){const o=Rn(n);switch(o){case 3:return wt(n,o);case 9:return wt(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 mt(o)}case 5:{const l=n;if(be(l,"i")&&ce(l.i))return e.interpolate(e.list(l.i));if(be(l,"index")&&ce(l.index))return e.interpolate(e.list(l.index));throw mt(o)}case 6:{const l=n,r=ms(l),i=fs(l);return e.linked(yn(e,i),r?yn(e,r):void 0,e.type)}case 7:return wt(n,o);case 8:return wt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const gs="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function hs(e,n){n&&xi(e)&&Ve(zt(gs,{source:e}))}const Es=e=>e;let Lt=X();function ys(e,n={}){let o=!1;const l=n.onError||Oi;return n.onError=r=>{o=!0,l(r)},{...as(e,n),detectError:o}}function ks(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&hs(e,o);const r=(n.onCacheKey||Es)(e),i=Lt[r];if(i)return i;const{ast:a,detectError:s}=ys(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=un(a);return s?c:Lt[r]=c}else{if(process.env.NODE_ENV!=="production"&&!we(e))return Ve(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),(()=>e);const o=e.cacheKey;if(o){const l=Lt[o];return l||(Lt[o]=un(e))}else return un(e)}}let ft=null;function vs(e){ft=e}function Cs(e,n,o){ft&&ft.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const _s=Ns("function:translate");function Ns(e){return n=>ft&&ft.emit(e,n)}const pe={INVALID_ARGUMENT:Di,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},Ss=24;function $e(e){return rt(e,null,process.env.NODE_ENV!=="production"?{messages:bs}:void 0)}const bs={[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 Mn(e,n){return n.locale!=null?Co(n.locale):Co(e.locale)}let dn;function Co(e){if($(e))return e;if(te(e)){if(e.resolvedOnce&&dn!=null)return dn;if(e.constructor.name==="Function"){const n=e();if(Ti(n))throw $e(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return dn=n}else throw $e(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw $e(pe.NOT_SUPPORT_LOCALE_TYPE)}function ws(e,n,o){return[...new Set([o,...ie(n)?n:Y(n)?Object.keys(n):$(n)?[n]:[o]])]}function fl(e,n,o){const l=$(o)?o:$t,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(l);if(!i){i=[];let a=[o];for(;ie(a);)a=_o(i,a,n);const s=ie(n)||!K(n)?n:n.default?n.default:null;a=$(s)?[s]:s,ie(a)&&_o(i,a,!1),r.__localeChainCache.set(l,i)}return i}function _o(e,n,o){let l=!0;for(let r=0;r<n.length&&ae(l);r++){const i=n[r];$(i)&&(l=Ls(e,n[r],o))}return l}function Ls(e,n,o){let l;const r=n.split("-");do{const i=r.join("-");l=Ts(e,i,o),r.splice(-1,1)}while(r.length&&l===!0);return l}function Ts(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(ie(o)||K(o))&&o[r]&&(l=o[r])}return l}const Ue=[];Ue[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ue[1]={w:[1],".":[2],"[":[4],o:[7]};Ue[2]={w:[2],i:[3,0],0:[3,0]};Ue[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ue[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ue[5]={"'":[4,0],o:8,l:[5,0]};Ue[6]={'"':[4,0],o:8,l:[6,0]};const Bs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Vs(e){return Bs.test(e)}function Is(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 As(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 Ds(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Vs(n)?Is(n):"*"+n}function $s(e){const n=[];let o=-1,l=0,r=0,i,a,s,c,u,d,p;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(n.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,l=4,h[0]();else{if(r=0,a===void 0||(a=Ds(a),a===!1))return!1;h[1]()}};function y(){const w=e[o+1];if(l===5&&w==="'"||l===6&&w==='"')return o++,s="\\"+w,h[0](),!0}for(;l!==null;)if(o++,i=e[o],!(i==="\\"&&y())){if(c=As(i),p=Ue[l],u=p[c]||p.l||8,u===8||(l=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(s=i,d()===!1))))return;if(l===7)return n}}const No=new Map;function Os(e,n){return Y(e)?e[n]:null}function Ps(e,n){if(!Y(e))return null;let o=No.get(n);if(o||(o=$s(n),o&&No.set(n,o)),!o)return null;const l=o.length;let r=e,i=0;for(;i<l;){const a=o[i];if(ml.includes(a)&&we(r))return null;const s=r[a];if(s===void 0||te(r))return null;r=s,i++}return r}const he={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},xs=8,Rs={[he.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[he.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[he.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[he.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[he.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 Xe(e,...n){return zt(Rs[e],...n)}const Ms="11.2.8",jt=-1,$t="en-US",Ot="",So=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Fs(){return{upper:(e,n)=>n==="text"&&$(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&$(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&$(e)?So(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?So(e.children):e}}let pl;function Us(e){pl=e}let gl;function Hs(e){gl=e}let hl;function zs(e){hl=e}let El=null;const Ws=e=>{El=e},js=()=>El;let yl=null;const bo=e=>{yl=e},Gs=()=>yl;let wo=0;function Ks(e={}){const n=te(e.onWarn)?e.onWarn:Ve,o=$(e.version)?e.version:Ms,l=$(e.locale)||te(e.locale)?e.locale:$t,r=te(l)?$t:l,i=ie(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=K(e.messages)?e.messages:mn(r),s=K(e.datetimeFormats)?e.datetimeFormats:mn(r),c=K(e.numberFormats)?e.numberFormats:mn(r),u=ue(X(),e.modifiers,Fs()),d=e.pluralRules||X(),p=te(e.missing)?e.missing:null,h=ae(e.missingWarn)||Dt(e.missingWarn)?e.missingWarn:!0,y=ae(e.fallbackWarn)||Dt(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,k=!!e.unresolving,v=te(e.postTranslation)?e.postTranslation:null,f=K(e.processor)?e.processor:null,E=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,N=te(e.messageCompiler)?e.messageCompiler:pl;process.env.NODE_ENV!=="production"&&te(e.messageCompiler)&&vi(Xe(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const T=te(e.messageResolver)?e.messageResolver:gl||Os,I=te(e.localeFallbacker)?e.localeFallbacker:hl||ws,_=Y(e.fallbackContext)?e.fallbackContext:void 0,R=e,U=Y(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,Q=Y(R.__numberFormatters)?R.__numberFormatters:new Map,ge=Y(R.__meta)?R.__meta:{};wo++;const Z={version:o,cid:wo,locale:l,fallbackLocale:i,messages:a,modifiers:u,pluralRules:d,missing:p,missingWarn:h,fallbackWarn:y,fallbackFormat:w,unresolving:k,postTranslation:v,processor:f,warnHtmlMessage:E,escapeParameter:L,messageCompiler:N,messageResolver:T,localeFallbacker:I,fallbackContext:_,onWarn:n,__meta:ge};return Z.datetimeFormats=s,Z.numberFormats=c,Z.__datetimeFormatters=U,Z.__numberFormatters=Q,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Cs(Z,o,ge),Z}const mn=e=>({[e]:X()});function Gt(e,n){return e instanceof RegExp?e.test(n):e}function kl(e,n){return e instanceof RegExp?e.test(n):e}function Fn(e,n,o,l,r){const{missing:i,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:r,groupId:`${r}:${n}`})}if(i!==null){const s=i(e,o,n,r);return $(s)?s:n}else return process.env.NODE_ENV!=="production"&&kl(l,n)&&a(Xe(he.NOT_FOUND_KEY,{key:n,locale:o})),n}function dt(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function vl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function Ys(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(vl(e,n[l]))return!0;return!1}const Lo=typeof Intl<"u",Cl={dateTimeFormat:Lo&&typeof Intl.DateTimeFormat<"u",numberFormat:Lo&&typeof Intl.NumberFormat<"u"};function To(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Cl.dateTimeFormat)return i(Xe(he.CANNOT_FORMAT_DATE)),Ot;const[c,u,d,p]=kn(...n),h=ae(d.missingWarn)?d.missingWarn:e.missingWarn,y=ae(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,w=!!d.part,k=Mn(e,d),v=a(e,r,k);if(!$(c)||c==="")return new Intl.DateTimeFormat(k,p).format(u);let f={},E,L=null,N=k,T=null;const I="datetime format";for(let U=0;U<v.length;U++){if(E=T=v[U],process.env.NODE_ENV!=="production"&&k!==E&&Gt(y,c)&&i(Xe(he.FALLBACK_TO_DATE_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&k!==E){const Q=e.__v_emitter;Q&&Q.emit("fallback",{type:I,key:c,from:N,to:T,groupId:`${I}:${c}`})}if(f=o[E]||{},L=f[c],K(L))break;Fn(e,c,E,h,I),N=T}if(!K(L)||!$(E))return l?jt:c;let _=`${E}__${c}`;Wt(p)||(_=`${_}__${JSON.stringify(p)}`);let R=s.get(_);return R||(R=new Intl.DateTimeFormat(E,ue({},L,p)),s.set(_,R)),w?R.formatToParts(u):R.format(u)}const _l=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function kn(...e){const[n,o,l,r]=e,i=X();let a=X(),s;if($(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw $e(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 $e(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Si(n)){if(isNaN(n.getTime()))throw $e(pe.INVALID_DATE_ARGUMENT);s=n}else if(ce(n))s=n;else throw $e(pe.INVALID_ARGUMENT);return $(o)?i.key=o:K(o)&&Object.keys(o).forEach(c=>{_l.includes(c)?a[c]=o[c]:i[c]=o[c]}),$(l)?i.locale=l:K(l)&&(a=l),K(r)&&(a=r),[i.key||"",s,i,a]}function Bo(e,n,o){const l=e;for(const r in o){const i=`${n}__${r}`;l.__datetimeFormatters.has(i)&&l.__datetimeFormatters.delete(i)}}function Vo(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Cl.numberFormat)return i(Xe(he.CANNOT_FORMAT_NUMBER)),Ot;const[c,u,d,p]=vn(...n),h=ae(d.missingWarn)?d.missingWarn:e.missingWarn,y=ae(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,w=!!d.part,k=Mn(e,d),v=a(e,r,k);if(!$(c)||c==="")return new Intl.NumberFormat(k,p).format(u);let f={},E,L=null,N=k,T=null;const I="number format";for(let U=0;U<v.length;U++){if(E=T=v[U],process.env.NODE_ENV!=="production"&&k!==E&&Gt(y,c)&&i(Xe(he.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&k!==E){const Q=e.__v_emitter;Q&&Q.emit("fallback",{type:I,key:c,from:N,to:T,groupId:`${I}:${c}`})}if(f=o[E]||{},L=f[c],K(L))break;Fn(e,c,E,h,I),N=T}if(!K(L)||!$(E))return l?jt:c;let _=`${E}__${c}`;Wt(p)||(_=`${_}__${JSON.stringify(p)}`);let R=s.get(_);return R||(R=new Intl.NumberFormat(E,ue({},L,p)),s.set(_,R)),w?R.formatToParts(u):R.format(u)}const Nl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function vn(...e){const[n,o,l,r]=e,i=X();let a=X();if(!ce(n))throw $e(pe.INVALID_ARGUMENT);const s=n;return $(o)?i.key=o:K(o)&&Object.keys(o).forEach(c=>{Nl.includes(c)?a[c]=o[c]:i[c]=o[c]}),$(l)?i.locale=l:K(l)&&(a=l),K(r)&&(a=r),[i.key||"",s,i,a]}function Io(e,n,o){const l=e;for(const r in o){const i=`${n}__${r}`;l.__numberFormatters.has(i)&&l.__numberFormatters.delete(i)}}const qs=e=>e,Xs=e=>"",Zs="text",Js=e=>e.length===0?"":Pn(e),Qs=Bi;function Ao(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ec(e){const n=ce(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ce(e.named.count)||ce(e.named.n))?ce(e.named.count)?e.named.count:ce(e.named.n)?e.named.n:n:n}function tc(e,n){n.count||(n.count=e),n.n||(n.n=e)}function nc(e={}){const n=e.locale,o=ec(e),l=Y(e.pluralRules)&&$(n)&&te(e.pluralRules[n])?e.pluralRules[n]:Ao,r=Y(e.pluralRules)&&$(n)&&te(e.pluralRules[n])?Ao:void 0,i=f=>f[l(o,f.length,r)],a=e.list||[],s=f=>a[f],c=e.named||X();ce(e.pluralIndex)&&tc(o,c);const u=f=>c[f];function d(f,E){const L=te(e.messages)?e.messages(f,!!E):Y(e.messages)?e.messages[f]:!1;return L||(e.parent?e.parent.message(f):Xs)}const p=f=>e.modifiers?e.modifiers[f]:qs,h=K(e.processor)&&te(e.processor.normalize)?e.processor.normalize:Js,y=K(e.processor)&&te(e.processor.interpolate)?e.processor.interpolate:Qs,w=K(e.processor)&&$(e.processor.type)?e.processor.type:Zs,v={list:s,named:u,plural:i,linked:(f,...E)=>{const[L,N]=E;let T="text",I="";E.length===1?Y(L)?(I=L.modifier||I,T=L.type||T):$(L)&&(I=L||I):E.length===2&&($(L)&&(I=L||I),$(N)&&(T=N||T));const _=d(f,!0)(v),R=T==="vnode"&&ie(_)&&I?_[0]:_;return I?p(I)(R,T):R},message:d,type:w,interpolate:y,normalize:h,values:ue(X(),a,c)};return v}const Do=()=>"",Se=e=>te(e);function $o(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[c,u]=Cn(...n),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn,p=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,y=!!u.resolvedMessage,w=$(u.default)||ae(u.default)?ae(u.default)?i?c:()=>c:u.default:o?i?c:()=>c:null,k=o||w!=null&&($(w)||te(w)),v=Mn(e,u);h&&oc(u);let[f,E,L]=y?[c,v,s[v]||X()]:Sl(e,c,v,a,p,d),N=f,T=c;if(!y&&!($(N)||we(N)||Se(N))&&k&&(N=w,T=N),!y&&(!($(N)||we(N)||Se(N))||!$(E)))return r?jt:c;if(process.env.NODE_ENV!=="production"&&$(N)&&e.messageCompiler==null)return Ve(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let I=!1;const _=()=>{I=!0},R=Se(N)?N:bl(e,c,E,N,T,_);if(I)return N;const U=ic(e,E,L,u),Q=nc(U),ge=lc(e,R,Q);let Z=l?l(ge,c):ge;if(h&&$(Z)&&(Z=wi(Z)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Re={timestamp:Date.now(),key:$(c)?c:Se(N)?N.key:"",locale:E||(Se(N)?N.locale:""),format:$(N)?N:Se(N)?N.source:"",message:Z};Re.meta=ue({},e.__meta,js()||{}),_s(Re)}return Z}function oc(e){ie(e.list)?e.list=e.list.map(n=>$(n)?po(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{$(e.named[n])&&(e.named[n]=po(e.named[n]))})}function Sl(e,n,o,l,r,i){const{messages:a,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,l,o);let p=X(),h,y=null,w=o,k=null;const v="translate";for(let f=0;f<d.length;f++){if(h=k=d[f],process.env.NODE_ENV!=="production"&&o!==h&&!vl(o,h)&&Gt(r,n)&&s(Xe(he.FALLBACK_TO_TRANSLATE,{key:n,target:h})),process.env.NODE_ENV!=="production"&&o!==h){const T=e.__v_emitter;T&&T.emit("fallback",{type:v,key:n,from:w,to:k,groupId:`${v}:${n}`})}p=a[h]||X();let E=null,L,N;if(process.env.NODE_ENV!=="production"&&Pe&&(E=window.performance.now(),L="intlify-message-resolve-start",N="intlify-message-resolve-end",Ne&&Ne(L)),(y=c(p,n))===null&&(y=p[n]),process.env.NODE_ENV!=="production"&&Pe){const T=window.performance.now(),I=e.__v_emitter;I&&E&&y&&I.emit("message-resolve",{type:"message-resolve",key:n,message:y,time:T-E,groupId:`${v}:${n}`}),L&&N&&Ne&&qe&&(Ne(N),qe("intlify message resolve",L,N))}if($(y)||we(y)||Se(y))break;if(!Ys(h,d)){const T=Fn(e,n,h,i,v);T!==n&&(y=T)}w=k}return[y,h,p]}function bl(e,n,o,l,r,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Se(l)){const h=l;return h.locale=h.locale||o,h.key=h.key||n,h}if(a==null){const h=(()=>l);return h.locale=o,h.key=n,h}let c=null,u,d;process.env.NODE_ENV!=="production"&&Pe&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Ne&&Ne(u));const p=a(l,rc(e,o,r,l,s,i));if(process.env.NODE_ENV!=="production"&&Pe){const h=window.performance.now(),y=e.__v_emitter;y&&c&&y.emit("message-compilation",{type:"message-compilation",message:l,time:h-c,groupId:`translate:${n}`}),u&&d&&Ne&&qe&&(Ne(d),qe("intlify message compilation",u,d))}return p.locale=o,p.key=n,p.source=l,p}function lc(e,n,o){let l=null,r,i;process.env.NODE_ENV!=="production"&&Pe&&(l=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Ne&&Ne(r));const a=n(o);if(process.env.NODE_ENV!=="production"&&Pe){const s=window.performance.now(),c=e.__v_emitter;c&&l&&c.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-l,groupId:`translate:${n.key}`}),r&&i&&Ne&&qe&&(Ne(i),qe("intlify message evaluation",r,i))}return a}function Cn(...e){const[n,o,l]=e,r=X();if(!$(n)&&!ce(n)&&!Se(n)&&!we(n))throw $e(pe.INVALID_ARGUMENT);const i=ce(n)?String(n):(Se(n),n);return ce(o)?r.plural=o:$(o)?r.default=o:K(o)&&!Wt(o)?r.named=o:ie(o)&&(r.list=o),ce(l)?r.plural=l:$(l)?r.default=l:K(l)&&ue(r,l),[i,r]}function rc(e,n,o,l,r,i){return{locale:n,key:o,warnHtmlMessage:r,onError:a=>{if(i&&i(a),process.env.NODE_ENV!=="production"){const s=ac(l),c=`Message compilation error: ${a.message}`,u=a.location&&s&&Vi(s,a.location.start.offset,a.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${o}`}),console.error(u?`${c}
|
|
5
|
-
${u}`:c)}else throw
|
|
6
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Be.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Be.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Pt(e,...n){return zt(mc[e],...n)}function gt(e){if(!Y(e)||we(e))return e;for(const n in e)if(be(e,n))if(!n.includes("."))Y(e[n])&>(e[n]);else{const o=n.split("."),l=o.length-1;let r=e,i=!1;for(let a=0;a<l;a++){if(o[a]==="__proto__")throw new Error(`unsafe key: ${o[a]}`);if(o[a]in r||(r[o[a]]=X()),!Y(r[o[a]])){process.env.NODE_ENV!=="production"&&Ve(Pt(Be.IGNORE_OBJ_FLATTEN,{key:o[a]})),i=!0;break}r=r[o[a]]}if(i||(we(r)?ml.includes(o[l])||delete e[n]:(r[o[l]]=e[n],delete e[n])),!we(r)){const a=r[o[l]];Y(a)&>(a)}}return e}function Ll(e,n){const{messages:o,__i18n:l,messageResolver:r,flatJson:i}=n,a=K(o)?o:ie(l)?X():{[e]:X()};if(ie(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(a[c]=a[c]||X(),It(u,a[c])):It(u,a)}else $(s)&&It(JSON.parse(s),a)}),r==null&&i)for(const s in a)be(a,s)&>(a[s]);return a}function Tl(e){return e.type}function fc(e,n,o){let l=Y(n.messages)?n.messages:X();"__i18nGlobal"in o&&(l=Ll(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const r=Object.keys(l);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,l[i])});{if(Y(n.datetimeFormats)){const i=Object.keys(n.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,n.datetimeFormats[a])})}if(Y(n.numberFormats)){const i=Object.keys(n.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,n.numberFormats[a])})}}}function Oo(e){return t.createVNode(t.Text,null,e,0)}function Un(){const e="currentInstance";return e in cn?cn[e]:cn.getCurrentInstance()}const Po="__INTLIFY_META__",xo=()=>[],pc=()=>!1;let Ro=0;function Mo(e){return((n,o,l,r)=>e(o,l,Un()||void 0,r))}const gc=()=>{const e=Un();let n=null;return e&&(n=Tl(e)[Po])?{[Po]:n}:null};function hc(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,r=e.flatJson,i=Pe?t.ref:t.shallowRef;let a=ae(e.inheritLocale)?e.inheritLocale:!0;const s=i(n&&a?n.locale.value:$(e.locale)?e.locale:$t),c=i(n&&a?n.fallbackLocale.value:$(e.fallbackLocale)||ie(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=i(Ll(s.value,e)),d=i(K(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),p=i(K(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=n?n.missingWarn:ae(e.missingWarn)||Dt(e.missingWarn)?e.missingWarn:!0,y=n?n.fallbackWarn:ae(e.fallbackWarn)||Dt(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,k=!!e.fallbackFormat,v=te(e.missing)?e.missing:null,f=te(e.missing)?Mo(e.missing):null,E=te(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const T=n?n.modifiers:K(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,_;_=(()=>{l&&bo(null);const C={version:sc,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:T,pluralRules:I,missing:f===null?void 0:f,missingWarn:h,fallbackWarn:y,fallbackFormat:k,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:L,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=d.value,C.numberFormats=p.value,C.__datetimeFormatters=K(_)?_.__datetimeFormatters:void 0,C.__numberFormatters=K(_)?_.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(C.__v_emitter=K(_)?_.__v_emitter:void 0);const B=Ks(C);return l&&bo(B),B})(),dt(_,s.value,c.value);function U(){return[s.value,c.value,u.value,d.value,p.value]}const Q=t.computed({get:()=>s.value,set:C=>{_.locale=C,s.value=C}}),ge=t.computed({get:()=>c.value,set:C=>{_.fallbackLocale=C,c.value=C,dt(_,s.value,C)}}),Z=t.computed(()=>u.value),Re=t.computed(()=>d.value),Je=t.computed(()=>p.value);function P(){return te(E)?E:null}function A(C){E=C,_.postTranslation=C}function H(){return v}function x(C){C!==null&&(f=Mo(C)),v=C,_.missing=f}function Ie(C,B){return C!=="translate"||!B.resolvedMessage}const me=(C,B,q,re,We,_t)=>{U();let Qe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(_.fallbackContext=n?Gs():void 0),Qe=C(_)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(_.fallbackContext=void 0)}if(q!=="translate exists"&&ce(Qe)&&Qe===jt||q==="translate exists"&&!Qe){const[je,Tr]=B();if(process.env.NODE_ENV!=="production"&&n&&$(je)&&Ie(q,Tr)&&(w&&(Gt(y,je)||kl(h,je))&&Ve(Pt(Be.FALLBACK_TO_ROOT,{key:je,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:lo}=_;lo&&w&&lo.emit("fallback",{type:q,key:je,to:"global",groupId:`${q}:${je}`})}return n&&w?re(n):We(je)}else{if(_t(Qe))return Qe;throw pt(de.UNEXPECTED_RETURN_TYPE)}};function He(...C){return me(B=>Reflect.apply($o,null,[B,...C]),()=>Cn(...C),"translate",B=>Reflect.apply(B.t,B,[...C]),B=>B,B=>$(B))}function Zt(...C){const[B,q,re]=C;if(re&&!Y(re))throw pt(de.INVALID_ARGUMENT);return He(B,q,ue({resolvedMessage:!0},re||{}))}function Jt(...C){return me(B=>Reflect.apply(To,null,[B,...C]),()=>kn(...C),"datetime format",B=>Reflect.apply(B.d,B,[...C]),()=>Ot,B=>$(B)||ie(B))}function Qt(...C){return me(B=>Reflect.apply(Vo,null,[B,...C]),()=>vn(...C),"number format",B=>Reflect.apply(B.n,B,[...C]),()=>Ot,B=>$(B)||ie(B))}function en(C){return C.map(B=>$(B)||ce(B)||ae(B)?Oo(String(B)):B)}const tn={normalize:en,interpolate:C=>C,type:"vnode"};function vt(...C){return me(B=>{let q;const re=B;try{re.processor=tn,q=Reflect.apply($o,null,[re,...C])}finally{re.processor=null}return q},()=>Cn(...C),"translate",B=>B[_n](...C),B=>[Oo(B)],B=>ie(B))}function nn(...C){return me(B=>Reflect.apply(Vo,null,[B,...C]),()=>vn(...C),"number format",B=>B[Sn](...C),xo,B=>$(B)||ie(B))}function Ct(...C){return me(B=>Reflect.apply(To,null,[B,...C]),()=>kn(...C),"datetime format",B=>B[Nn](...C),xo,B=>$(B)||ie(B))}function on(C){I=C,_.pluralRules=I}function ln(C,B){return me(()=>{if(!C)return!1;const q=$(B)?B:s.value,re=ze(q),We=_.messageResolver(re,C);return we(We)||Se(We)||$(We)},()=>[C],"translate exists",q=>Reflect.apply(q.te,q,[C,B]),pc,q=>ae(q))}function st(C){let B=null;const q=fl(_,c.value,s.value);for(let re=0;re<q.length;re++){const We=u.value[q[re]]||{},_t=_.messageResolver(We,C);if(_t!=null){B=_t;break}}return B}function ct(C){const B=st(C);return B??(n?n.tm(C)||{}:{})}function ze(C){return u.value[C]||{}}function ut(C,B){if(r){const q={[C]:B};for(const re in q)be(q,re)&>(q[re]);B=q[C]}u.value[C]=B,_.messages=u.value}function rn(C,B){u.value[C]=u.value[C]||{};const q={[C]:B};if(r)for(const re in q)be(q,re)&>(q[re]);B=q[C],It(B,u.value[C]),_.messages=u.value}function m(C){return d.value[C]||{}}function g(C,B){d.value[C]=B,_.datetimeFormats=d.value,Bo(_,C,B)}function b(C,B){d.value[C]=ue(d.value[C]||{},B),_.datetimeFormats=d.value,Bo(_,C,B)}function O(C){return p.value[C]||{}}function ee(C,B){p.value[C]=B,_.numberFormats=p.value,Io(_,C,B)}function le(C,B){p.value[C]=ue(p.value[C]||{},B),_.numberFormats=p.value,Io(_,C,B)}Ro++,n&&Pe&&(t.watch(n.locale,C=>{a&&(s.value=C,_.locale=C,dt(_,s.value,c.value))}),t.watch(n.fallbackLocale,C=>{a&&(c.value=C,_.fallbackLocale=C,dt(_,s.value,c.value))}));const G={id:Ro,locale:Q,fallbackLocale:ge,get inheritLocale(){return a},set inheritLocale(C){a=C,C&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,dt(_,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return T},get pluralRules(){return I||{}},get isGlobal(){return l},get missingWarn(){return h},set missingWarn(C){h=C,_.missingWarn=h},get fallbackWarn(){return y},set fallbackWarn(C){y=C,_.fallbackWarn=y},get fallbackRoot(){return w},set fallbackRoot(C){w=C},get fallbackFormat(){return k},set fallbackFormat(C){k=C,_.fallbackFormat=k},get warnHtmlMessage(){return L},set warnHtmlMessage(C){L=C,_.warnHtmlMessage=C},get escapeParameter(){return N},set escapeParameter(C){N=C,_.escapeParameter=C},t:He,getLocaleMessage:ze,setLocaleMessage:ut,mergeLocaleMessage:rn,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:H,setMissingHandler:x,[dc]:on};return G.datetimeFormats=Re,G.numberFormats=Je,G.rt=Zt,G.te=ln,G.tm=ct,G.d=Jt,G.n=Qt,G.getDateTimeFormat=m,G.setDateTimeFormat=g,G.mergeDateTimeFormat=b,G.getNumberFormat=O,G.setNumberFormat=ee,G.mergeNumberFormat=le,G[wl]=o,G[_n]=vt,G[Nn]=Ct,G[Sn]=nn,process.env.NODE_ENV!=="production"&&(G[bn]=C=>{_.__v_emitter=C},G[wn]=()=>{_.__v_emitter=void 0}),G}function Fo(e,n){}const Hn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ec({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,r)=>[...l,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((o,l)=>{const r=e[l];return r&&(o[l]=r()),o},X())}function Bl(){return t.Fragment}ue({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ce(e)||!isNaN(e)}},Hn);function yc(e){return ie(e)&&!$(e[0])}function Vl(e,n,o,l){const{slots:r,attrs:i}=n;return()=>{const a={part:!0};let s=X();e.locale&&(a.locale=e.locale),$(e.format)?a.key=e.format:Y(e.format)&&($(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,y)=>o.includes(y)?ue(X(),h,{[y]:e.format[y]}):h,X()));const c=l(e.value,a,s);let u=[a.key];ie(c)?u=c.map((h,y)=>{const w=r[h.type],k=w?w({[h.type]:h.value,index:y,parts:c}):[h.value];return yc(k)&&(k[0].key=`${h.type}-${y}`),k}):$(c)&&(u=[c]);const d=ue(X(),i),p=$(e.tag)||Y(e.tag)?e.tag:Bl();return t.h(p,d,u)}}ue({value:{type:Number,required:!0},format:{type:[String,Object]}},Hn);const kc=xe("global-vue-i18n");function yt(e={}){const n=Un();if(n==null)throw pt(de.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw pt(de.NOT_INSTALLED);const o=vc(n),l=_c(o),r=Tl(n),i=Cc(e,r);if(i==="global")return fc(l,e,r),l;if(i==="parent"){let c=Nc(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ve(Pt(Be.NOT_FOUND_PARENT_SCOPE)),c=l),c}const a=o;let s=a.__getInstance(n);if(s==null){const c=ue({},e);"__i18n"in r&&(c.__i18n=r.__i18n),l&&(c.__root=l),s=hc(c),a.__composerExtend&&(s[Ln]=a.__composerExtend(s)),bc(a,n,s),a.__setInstance(n,s)}else process.env.NODE_ENV!=="production"&&i==="local"&&Ve(Pt(Be.DUPLICATE_USE_I18N_CALLING));return s}function vc(e){const n=t.inject(e.isCE?kc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw pt(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return n}function Cc(e,n){return Wt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function _c(e){return e.mode==="composition"?e.global:e.global.__composer}function Nc(e,n,o=!1){let l=null;const r=n.root;let i=Sc(n,o);for(;i!=null;){const a=e;if(e.mode==="composition")l=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(l=s.__composer,o&&l&&!l[wl]&&(l=null))}if(l!=null||r===i)break;i=i.parent}return l}function Sc(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function bc(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"){n.__VUE_I18N__=o,l=Ii();const r=o;r[bn]&&r[bn](l),l.on("*",Fo)}},n),t.onUnmounted(()=>{const r=o;process.env.NODE_ENV!=="production"&&(l&&l.off("*",Fo),r[wn]&&r[wn](),delete n.__VUE_I18N__),e.__deleteInstance(n);const i=r[Ln];i&&(i(),delete r[Ln])},n)}ue({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Hn);cc();Us(ks);Hs(Ps);zs(fl);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ke();e.__INTLIFY__=!0,vs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const j=t.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let n;typeof document<"u"&&(n=import("bootstrap"));const o=e,l=t.ref(),r=t.ref(),i=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const a=await n;typeof document<"u"&&r.value&&i.value&&(l.value=new a.Tooltip(r.value,{trigger:"hover",html:!0,placement:o.placement,title:i.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{l.value?.dispose()}),(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:r},a.$attrs),[t.renderSlot(a.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:i},[t.renderSlot(a.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],512)],64))}}),wc=t.defineComponent({name:"TaskIcon",__name:"TaskIcon",props:{customIcon:{},cls:{},theme:{},icons:{},onlyIcon:{type:Boolean},variable:{}},setup(e){const n=e,o=t.computed(()=>`data:image/svg+xml;base64,${i.value}`),l=t.computed(()=>({flowable:a.value?a.value.flowable:!1})),r=t.computed(()=>({backgroundImage:`url(${o.value})`})),i=t.computed(()=>{let c=a.value&&a.value.icon?window.atob(a.value.icon):void 0;c||(c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');const u=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0;let d=_e(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(d=(n.theme==="dark"?_e("--bs-gray-900"):_e("--bs-black"))??d),n.variable&&(d=_e(n.variable)??d),c=c.replace(/currentColor/g,d),window.btoa(c)}),a=t.computed(()=>n.cls?(n.icons||{})[s(n.cls)]:n.customIcon);function s(c){return c.includes("$")?c.substring(0,c.indexOf("$")):c}return(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([l.value,"wrapper"])},[e.onlyIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"icon",style:t.normalizeStyle(r.value)},null,4)):(t.openBlock(),t.createBlock(j,{key:0,title:e.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(r.value)},null,4)]),_:1},8,["title"]))],2))}}),zn=D(wc,[["__scopeId","data-v-23f8d853"]]),Lc={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tc=["aria-hidden","aria-label"],Bc=["fill","width","height"],Vc={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"},Ic={key:0};function Ac(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon open-in-new-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vc,[o.title?(t.openBlock(),t.createElementBlock("title",Ic,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Bc))],16,Tc)}const Il=D(Lc,[["render",Ac]]),Dc={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$c=["aria-hidden","aria-label"],Oc=["fill","width","height"],Pc={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"},xc={key:0};function Rc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-all-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Pc,[o.title?(t.openBlock(),t.createElementBlock("title",xc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Oc))],16,$c)}const Mc=D(Dc,[["render",Rc]]),Fc={class:"dependency-text d-flex flex-column flex-grow-1"},Uc={class:"dependency-flow-text text-truncate"},Hc={class:"dependency-namespace-text text-truncate"},zc={class:"text-white top-button-div"},Wc=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}=yt(),r=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
1
|
+
"use strict";var Vr=Object.create;var ao=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Dr=Object.getPrototypeOf,$r=Object.prototype.hasOwnProperty;var Or=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ar(n))!$r.call(e,r)&&r!==o&&ao(e,r,{get:()=>n[r],enumerable:!(l=Ir(n,r))||l.enumerable});return e};var Pr=(e,n,o)=>(o=e!=null?Vr(Dr(e)):{},Or(n||!e||!e.__esModule?ao(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ge=require("yaml"),S=require("./VueFlowUtils-CAqlzP8f.cjs"),W=require("./FlowYamlUtils-BR3BpHdP.cjs"),t=require("vue"),oe=require("@vue-flow/core"),an=require("@vue-flow/controls"),sn=require("moment"),xr=require("@popperjs/core");function Rr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,l.get?l:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const cn=Rr(t),Mr={lineWidth:0},io=["tasks","triggers","errors","finally","afterExecution","pluginDefaults"],Fr={stringify:W.stringify,parse:W.parse,pairsToMap:W.pairsToMap,extractTask(e,n){for(const o of io){const l=W.extractBlock({source:e,section:o,key:n});if(l)return l}},_extractTask(e,n,o){function l(a){if(a){if(a instanceof Ge.YAMLMap&&a.get("type")!==void 0&&n===a.get("id"))return o?o(a):a;if(a.items)for(const[i,s]of a.items.entries()){let c;if(s instanceof Ge.YAMLMap?c=l(s):c=l(s.value),c&&(o&&(a instanceof Ge.YAMLMap?a.set(s.key.value,c):a.items[i]=c),!o&&c))return c}}}const r=l(e.contents);if(r!==void 0)return o?new Ge.Document(r):new Ge.Document(r)},replaceTaskInDocument(e,n,o,l="tasks",r="id"){return W.replaceBlockInDocument({source:e,section:l,keyName:r,key:n,newContent:o})},sort:W.sort,getAllCharts:W.getAllCharts,getChartAtPosition:W.getChartAtPosition,localizeElementAtIndex:W.localizeElementAtIndex,getTaskType:W.getTypeAtPosition,swapTasks(e,n,o){const l=Ge.parseDocument(e),r=this._extractTask(l,n),a=this._extractTask(l,o);return Ge.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,()=>a),this._extractTask(l,o,()=>r),l.toString(Mr)},insertTask(e,n,o,l,r){return W.insertBlock({source:e,section:"tasks",newBlock:o,refKey:n,position:l,parentKey:r})},insertSection(e,n,o){return W.insertBlock({source:n,section:e,newBlock:o})},insertErrorInFlowable:W.insertErrorInFlowable,deleteSection(e,n,o){return W.deleteBlock({source:e,section:n,key:o})},deleteTask(e,n,o){return(o===S.SECTIONS.TASKS?["tasks","errors"]:["triggers"]).reduce((r,a)=>W.deleteBlock({source:r,section:a,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:io,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},_e=e=>{const n=document.querySelector(":root");return(n?getComputedStyle(n):null)?.getPropertyValue(e)};var Ur=S.requireMapValues();const Nt=W.getDefaultExportFromCjs(Ur),D=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Hr={name:"PauseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zr=["aria-hidden","aria-label"],Wr=["fill","width","height"],jr={d:"M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Gr={key:0};function Kr(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",jr,[o.title?(t.openBlock(),t.createElementBlock("title",Gr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Wr))],16,zr)}const so=D(Hr,[["render",Kr]]),Yr={name:"CheckCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qr=["aria-hidden","aria-label"],Xr=["fill","width","height"],Zr={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"},Jr={key:0};function Qr(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-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",Jr,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xr))],16,qr)}const ea=D(Yr,[["render",Qr]]),ta={name:"PlayCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},na=["aria-hidden","aria-label"],oa=["fill","width","height"],la={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"},ra={key:0};function aa(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-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",la,[o.title?(t.openBlock(),t.createElementBlock("title",ra,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,oa))],16,na)}const ia=D(ta,[["render",aa]]),sa={name:"CloseCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ca=["aria-hidden","aria-label"],ua=["fill","width","height"],da={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"},ma={key:0};function fa(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",da,[o.title?(t.openBlock(),t.createElementBlock("title",ma,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ua))],16,ca)}const hn=D(sa,[["render",fa]]),pa={name:"StopCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ga=["aria-hidden","aria-label"],ha=["fill","width","height"],Ea={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"},ya={key:0};function ka(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",Ea,[o.title?(t.openBlock(),t.createElementBlock("title",ya,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ha))],16,ga)}const va=D(pa,[["render",ka]]),Ca={name:"SkipPreviousCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_a=["aria-hidden","aria-label"],Na=["fill","width","height"],Sa={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"},ba={key:0};function wa(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-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",Sa,[o.title?(t.openBlock(),t.createElementBlock("title",ba,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Na))],16,_a)}const La=D(Ca,[["render",wa]]),Ta={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ba=["aria-hidden","aria-label"],Va=["fill","width","height"],Ia={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"},Aa={key:0};function Da(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-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",Ia,[o.title?(t.openBlock(),t.createElementBlock("title",Aa,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Va))],16,Ba)}const At=D(Ta,[["render",Da]]),$a={name:"DotsVerticalCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oa=["aria-hidden","aria-label"],Pa=["fill","width","height"],xa={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"},Ra={key:0};function Ma(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",xa,[o.title?(t.openBlock(),t.createElementBlock("title",Ra,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pa))],16,Oa)}const Fa=D($a,[["render",Ma]]),Ua={name:"MotionPauseOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ha=["aria-hidden","aria-label"],za=["fill","width","height"],Wa={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"},ja={key:0};function Ga(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",Wa,[o.title?(t.openBlock(),t.createElementBlock("title",ja,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,za))],16,Ha)}const Ka=D(Ua,[["render",Ga]]),Ya={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qa=["aria-hidden","aria-label"],Xa=["fill","width","height"],Za={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"},Ja={key:0};function Qa(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",Za,[o.title?(t.openBlock(),t.createElementBlock("title",Ja,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xa))],16,qa)}const co=D(Ya,[["render",Qa]]),ei={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ti=["aria-hidden","aria-label"],ni=["fill","width","height"],oi={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"},li={key:0};function ri(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",oi,[o.title?(t.openBlock(),t.createElementBlock("title",li,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ni))],16,ti)}const uo=D(ei,[["render",ri]]),ai=["ERROR","WARN","INFO","DEBUG","TRACE"],z=Object.freeze({CREATED:{name:"CREATED",color:"#1761FD",colorClass:"cyan",icon:Fa,isRunning:!0,isKillable:!0,isFailed:!1},RESTARTED:{name:"RESTARTED",color:"#1761FD",colorClass:"cyan",icon:La,isRunning:!1,isKillable:!0,isFailed:!1},SUCCESS:{name:"SUCCESS",color:"#029E73",colorClass:"green",icon:ea,isRunning:!1,isKillable:!1,isFailed:!1},RUNNING:{name:"RUNNING",color:"#8405FF",colorClass:"purple",icon:ia,isRunning:!0,isKillable:!0,isFailed:!1},KILLING:{name:"KILLING",color:"#FCE07C",colorClass:"yellow",icon:hn,isRunning:!0,isKillable:!0,isFailed:!0},KILLED:{name:"KILLED",color:"#FCE07C",colorClass:"yellow",icon:va,isRunning:!1,isKillable:!1,isFailed:!0},WARNING:{name:"WARNING",color:"#DD5F00",colorClass:"orange",icon:At,isRunning:!1,isKillable:!1,isFailed:!0},FAILED:{name:"FAILED",color:"#AB0009",colorClass:"red",icon:hn,isRunning:!1,isKillable:!1,isFailed:!0},PAUSED:{name:"PAUSED",color:"#918BA9",colorClass:"indigo",icon:so,isRunning:!0,isKillable:!0,isFailed:!1},CANCELLED:{name:"CANCELLED",color:"#918BA9",colorClass:"gray",icon:uo,isRunning:!1,isKillable:!1,isFailed:!0},SKIPPED:{name:"SKIPPED",color:"#918BA9",colorClass:"gray",icon:uo,isRunning:!1,isKillable:!1,isFailed:!0},QUEUED:{name:"QUEUED",color:"#918BA9",colorClass:"gray",icon:Ka,isRunning:!1,isKillable:!1,isFailed:!1},RETRYING:{name:"RETRYING",color:"#918BA9",colorClass:"gray",icon:co,isRunning:!1,isKillable:!0,isFailed:!1},RETRIED:{name:"RETRIED",color:"#918BA9",colorClass:"gray",icon:co,isRunning:!1,isKillable:!1,isFailed:!1},BREAKPOINT:{name:"BREAKPOINT",color:"#918BA9",colorClass:"gray",icon:so,isRunning:!1,isKillable:!1,isFailed:!1}});class ne{static get CREATED(){return z.CREATED.name}static get RESTARTED(){return z.RESTARTED.name}static get SUCCESS(){return z.SUCCESS.name}static get RUNNING(){return z.RUNNING.name}static get KILLING(){return z.KILLING.name}static get KILLED(){return z.KILLED.name}static get FAILED(){return z.FAILED.name}static get WARNING(){return z.WARNING.name}static get PAUSED(){return z.PAUSED.name}static get CANCELLED(){return z.CANCELLED.name}static get SKIPPED(){return z.SKIPPED.name}static get QUEUED(){return z.QUEUED.name}static get RETRYING(){return z.RETRYING.name}static get RETRIED(){return z.RETRIED.name}static get BREAKPOINT(){return z.BREAKPOINT.name}static isRunning(n){return z[n]&&z[n].isRunning}static isKillable(n){return z[n]&&z[n].isKillable}static isPaused(n){return z[n]&&z[n]===z.PAUSED}static isFailed(n){return z[n]&&z[n].isFailed}static isQueued(n){return z[n]&&z[n]===z.QUEUED}static allStates(){return Nt(z,n=>({key:n.name,icon:n.icon,color:""}))}static arrayAllStates(){return Object.values(z)}static colorClass(){return Nt(z,n=>n.colorClass)}static color(){return Nt(z,n=>_e("--bs-"+n.colorClass))}static getStateColor(n){return z[n].color}static icon(){return Nt(z,n=>n.icon)}static getTerminatedStates(){return Object.values(z).filter(n=>!n.isRunning).map(n=>n.name)}}let St;async function ii(){if(St)return St;const e=await Promise.resolve().then(()=>require("./useMarkdownParser-cPr4eWCu.cjs"));return St=await(e.default??e)(),St}var Vt={exports:{}},si=Vt.exports,mo;function ci(){return mo||(mo=1,(function(e,n){(function(o,l,r){e.exports=r(),e.exports.default=r()})("slugify",si,function(){var o=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),l=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(a,i){if(typeof a!="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,d=a.normalize().split("").reduce(function(h,p){var k=s[p];return k===void 0&&(k=o[p]),k===void 0&&(k=p),k===c&&(k=" "),h+k.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,c),i.lower&&(d=d.toLowerCase()),d}return r.extend=function(a){Object.assign(o,a)},r})})(Vt)),Vt.exports}var ui=ci();const tl=W.getDefaultExportFromCjs(ui);tl.extend({"(":"-",")":""});function Ce(e){return tl(e,{lower:!0,locale:"en"})}function $n(e,n){return Array.isArray(n)&&!["categories","controllers","storages","aliases","guides"].includes(e)&&(n.length===0||n[0]?.cls!==void 0)}function De(e){const o=(e.title??"").replace(/\.([a-zA-Z])/g,(l,r)=>` ${r.toUpperCase()}`);return o.charAt(0).toUpperCase()+o.slice(1)}function Ht(e){return Object.fromEntries(Object.entries(e).filter(([n,o])=>$n(n,o)).map(([n,o])=>[n.replace(/[A-Z]/g,l=>` ${l}`),o.filter(({deprecated:l})=>!l).map(({cls:l})=>l)]))}function di(e){return e.flatMap(n=>{const o=Object.entries(n).filter(([l,r])=>$n(l,r)).map(([l,r])=>[l,r.filter(a=>!a.deprecated)]).filter(([,l])=>l.length>0);return o.length>0?[{...n,...Object.fromEntries(o)}]:[]})}function mi(e){const n={clsToSubgroup:{},clsToPlugin:{},shortNameToCls:{}};for(const o of e??[]){const l=Ht(o),r=o.group??o.name??"",a=Ce(r),i=o.subGroup?Ce(De(o)):void 0;Object.values(l).forEach(s=>{s.forEach(c=>{i&&(n.clsToSubgroup[c]=i),n.clsToPlugin[c]={slug:a,raw:r};const u=(c.split(".").pop()??c).toLowerCase();n.shortNameToCls[u]=n.shortNameToCls[u]??[],n.shortNameToCls[u].includes(c)||n.shortNameToCls[u].push(c)})})}return n}function nl(e){const n=t.computed(()=>{const l=t.isRef(e)?e.value:e;return l?Ht(l):{}}),o=t.computed(()=>Object.values(n.value).reduce((l,r)=>l+r.length,0));return{elementsByType:n,total:o}}const fi={name:"DotsCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pi=["aria-hidden","aria-label"],gi=["fill","width","height"],hi={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"},Ei={key:0};function yi(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",hi,[o.title?(t.openBlock(),t.createElementBlock("title",Ei,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gi))],16,pi)}const ki=D(fi,[["render",yi]]),vi=t.defineComponent({__name:"RotatingDots",props:{alt:{}},setup(e){return(n,o)=>(t.openBlock(),t.createBlock(ki,{class:"loading-dots-circle",alt:e.alt},null,8,["alt"]))}}),ol=D(vi,[["__scopeId","data-v-a7ad4137"]]);function Ve(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const fo={};function Ci(e){fo[e]||(fo[e]=!0,Ve(e))}const Pe=typeof window<"u";let Ne,qe;if(process.env.NODE_ENV!=="production"){const e=Pe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ne=n=>{e.mark(n)},qe=(n,o,l)=>{e.measure(n,o,l),e.clearMarks(o),e.clearMarks(l)})}const _i=/\{([0-9a-zA-Z]+)\}/g;function zt(e,...n){return n.length===1&&Y(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(_i,(o,l)=>n.hasOwnProperty(l)?n[l]:"")}const xe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),Ni=(e,n,o)=>Si({l:e,k:n,s:o}),Si=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ce=e=>typeof e=="number"&&isFinite(e),bi=e=>On(e)==="[object Date]",Dt=e=>On(e)==="[object RegExp]",Wt=e=>K(e)&&Object.keys(e).length===0,ue=Object.assign,wi=Object.create,X=(e=null)=>wi(e);let po;const Ke=()=>po||(po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:X());function go(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function ho(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Li(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(l,r,a)=>`${r}="${ho(a)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(l,r,a)=>`${r}='${ho(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Ve("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(l=>{e=e.replace(l,"$1javascript:")}),e}const Ti=Object.prototype.hasOwnProperty;function be(e,n){return Ti.call(e,n)}const ie=Array.isArray,te=e=>typeof e=="function",$=e=>typeof e=="string",ae=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",Bi=e=>Y(e)&&te(e.then)&&te(e.catch),ll=Object.prototype.toString,On=e=>ll.call(e),K=e=>On(e)==="[object Object]",Vi=e=>e==null?"":ie(e)||K(e)&&e.toString===ll?JSON.stringify(e,null,2):String(e);function Pn(e,n=""){return e.reduce((o,l,r)=>r===0?o+l:o+n+l,"")}const Eo=2;function Ii(e,n=0,o=e.length){const l=e.split(/\r?\n/);let r=0;const a=[];for(let i=0;i<l.length;i++)if(r+=l[i].length+1,r>=n){for(let s=i-Eo;s<=i+Eo||o>r;s++){if(s<0||s>=l.length)continue;const c=s+1;a.push(`${c}${" ".repeat(3-String(c).length)}| ${l[s]}`);const u=l[s].length;if(s===i){const d=n-(r-u)+1,h=Math.max(1,o>r?u-d:o-n);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(s>i){if(o>r){const d=Math.max(Math.min(o-r,u),1);a.push(" | "+"^".repeat(d))}r+=u+1}}break}return a.join(`
|
|
2
|
+
`)}function Ai(){const e=new Map;return{events:e,on(o,l){const r=e.get(o);r&&r.push(l)||e.set(o,[l])},off(o,l){const r=e.get(o);r&&r.splice(r.indexOf(l)>>>0,1)},emit(o,l){(e.get(o)||[]).slice().map(r=>r(l)),(e.get("*")||[]).slice().map(r=>r(o,l))}}}const bt=e=>!Y(e)||ie(e);function It(e,n){if(bt(e)||bt(n))throw new Error("Invalid value");const o=[{src:e,des:n}];for(;o.length;){const{src:l,des:r}=o.pop();Object.keys(l).forEach(a=>{a!=="__proto__"&&(Y(l[a])&&!Y(r[a])&&(r[a]=Array.isArray(l[a])?[]:X()),bt(r[a])||bt(l[a])?r[a]=l[a]:o.push({src:l[a],des:r[a]}))})}}function Di(e,n,o){return{line:e,column:n,offset:o}}function En(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},$i=17,Oi={[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 rt(e,n,o={}){const{domain:l,messages:r,args:a}=o,i=process.env.NODE_ENV!=="production"?zt((r||Oi)[e]||"",...a||[]):e,s=new SyntaxError(String(i));return s.code=e,n&&(s.location=n),s.domain=l,s}function Pi(e){throw e}const xi=/<\/?[\w\s="/.':;#-\/]+>/,Ri=e=>xi.test(e),Le=" ",Mi="\r",fe=`
|
|
3
|
+
`,Fi="\u2028",Ui="\u2029";function Hi(e){const n=e;let o=0,l=1,r=1,a=0;const i=C=>n[C]===Mi&&n[C+1]===fe,s=C=>n[C]===fe,c=C=>n[C]===Ui,u=C=>n[C]===Fi,d=C=>i(C)||s(C)||c(C)||u(C),h=()=>o,p=()=>l,k=()=>r,I=()=>a,y=C=>i(C)||c(C)||u(C)?fe:n[C],N=()=>y(o),m=()=>y(o+a);function E(){return a=0,d(o)&&(l++,r=0),i(o)&&o++,o++,r++,n[o]}function w(){return i(o+a)&&a++,a++,n[o+a]}function _(){o=0,l=1,r=1,a=0}function b(C=0){a=C}function V(){const C=o+a;for(;C!==o;)E();a=0}return{index:h,line:p,column:k,peekOffset:I,charAt:y,currentChar:N,currentPeek:m,next:E,peek:w,reset:_,resetPeek:b,skipToPeek:V}}const Ae=void 0,zi=".",yo="'",Wi="tokenizer";function ji(e,n={}){const o=n.location!==!1,l=Hi(e),r=()=>l.index(),a=()=>Di(l.line(),l.column(),l.index()),i=a(),s=r(),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:d}=n;function h(f,g,L,...O){const ee=u();if(g.column+=L,g.offset+=L,d){const le=o?En(ee.startLoc,g):null,G=rt(f,le,{domain:Wi,args:O});d(G)}}function p(f,g,L){f.endLoc=a(),f.currentType=g;const O={type:g};return o&&(O.loc=En(f.startLoc,f.endLoc)),L!=null&&(O.value=L),O}const k=f=>p(f,13);function I(f,g){return f.currentChar()===g?(f.next(),g):(h(M.EXPECTED_TOKEN,a(),0,g),"")}function y(f){let g="";for(;f.currentPeek()===Le||f.currentPeek()===fe;)g+=f.currentPeek(),f.peek();return g}function N(f){const g=y(f);return f.skipToPeek(),g}function m(f){if(f===Ae)return!1;const g=f.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g===95}function E(f){if(f===Ae)return!1;const g=f.charCodeAt(0);return g>=48&&g<=57}function w(f,g){const{currentType:L}=g;if(L!==2)return!1;y(f);const O=m(f.currentPeek());return f.resetPeek(),O}function _(f,g){const{currentType:L}=g;if(L!==2)return!1;y(f);const O=f.currentPeek()==="-"?f.peek():f.currentPeek(),ee=E(O);return f.resetPeek(),ee}function b(f,g){const{currentType:L}=g;if(L!==2)return!1;y(f);const O=f.currentPeek()===yo;return f.resetPeek(),O}function V(f,g){const{currentType:L}=g;if(L!==7)return!1;y(f);const O=f.currentPeek()===".";return f.resetPeek(),O}function C(f,g){const{currentType:L}=g;if(L!==8)return!1;y(f);const O=m(f.currentPeek());return f.resetPeek(),O}function R(f,g){const{currentType:L}=g;if(!(L===7||L===11))return!1;y(f);const O=f.currentPeek()===":";return f.resetPeek(),O}function U(f,g){const{currentType:L}=g;if(L!==9)return!1;const O=()=>{const le=f.currentPeek();return le==="{"?m(f.peek()):le==="@"||le==="|"||le===":"||le==="."||le===Le||!le?!1:le===fe?(f.peek(),O()):ge(f,!1)},ee=O();return f.resetPeek(),ee}function Q(f){y(f);const g=f.currentPeek()==="|";return f.resetPeek(),g}function ge(f,g=!0){const L=(ee=!1,le="")=>{const G=f.currentPeek();return G==="{"||G==="@"||!G?ee:G==="|"?!(le===Le||le===fe):G===Le?(f.peek(),L(!0,Le)):G===fe?(f.peek(),L(!0,fe)):!0},O=L();return g&&f.resetPeek(),O}function Z(f,g){const L=f.currentChar();return L===Ae?Ae:g(L)?(f.next(),L):null}function Re(f){const g=f.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36}function Je(f){return Z(f,Re)}function P(f){const g=f.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36||g===45}function A(f){return Z(f,P)}function H(f){const g=f.charCodeAt(0);return g>=48&&g<=57}function x(f){return Z(f,H)}function Ie(f){const g=f.charCodeAt(0);return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102}function me(f){return Z(f,Ie)}function He(f){let g="",L="";for(;g=x(f);)L+=g;return L}function Zt(f){let g="";for(;;){const L=f.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===Le||L===fe)if(ge(f))g+=L,f.next();else{if(Q(f))break;g+=L,f.next()}else g+=L,f.next()}return g}function Jt(f){N(f);let g="",L="";for(;g=A(f);)L+=g;const O=f.currentChar();if(O&&O!=="}"&&O!==Ae&&O!==Le&&O!==fe&&O!==" "){const ee=Ct(f);return h(M.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,L+ee),L+ee}return f.currentChar()===Ae&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),L}function Qt(f){N(f);let g="";return f.currentChar()==="-"?(f.next(),g+=`-${He(f)}`):g+=He(f),f.currentChar()===Ae&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),g}function en(f){return f!==yo&&f!==fe}function lo(f){N(f),I(f,"'");let g="",L="";for(;g=Z(f,en);)g==="\\"?L+=tn(f):L+=g;const O=f.currentChar();return O===fe||O===Ae?(h(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),O===fe&&(f.next(),I(f,"'")),L):(I(f,"'"),L)}function tn(f){const g=f.currentChar();switch(g){case"\\":case"'":return f.next(),`\\${g}`;case"u":return vt(f,g,4);case"U":return vt(f,g,6);default:return h(M.UNKNOWN_ESCAPE_SEQUENCE,a(),0,g),""}}function vt(f,g,L){I(f,g);let O="";for(let ee=0;ee<L;ee++){const le=me(f);if(!le){h(M.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${g}${O}${f.currentChar()}`);break}O+=le}return`\\${g}${O}`}function nn(f){return f!=="{"&&f!=="}"&&f!==Le&&f!==fe}function Ct(f){N(f);let g="",L="";for(;g=Z(f,nn);)L+=g;return L}function on(f){let g="",L="";for(;g=Je(f);)L+=g;return L}function ln(f){const g=L=>{const O=f.currentChar();return O==="{"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Le?L:(L+=O,f.next(),g(L))};return g("")}function st(f){N(f);const g=I(f,"|");return N(f),g}function ct(f,g){let L=null;switch(f.currentChar()){case"{":return g.braceNest>=1&&h(M.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),f.next(),L=p(g,2,"{"),N(f),g.braceNest++,L;case"}":return g.braceNest>0&&g.currentType===2&&h(M.EMPTY_PLACEHOLDER,a(),0),f.next(),L=p(g,3,"}"),g.braceNest--,g.braceNest>0&&N(f),g.inLinked&&g.braceNest===0&&(g.inLinked=!1),L;case"@":return g.braceNest>0&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),L=ze(f,g)||k(g),g.braceNest=0,L;default:{let ee=!0,le=!0,G=!0;if(Q(f))return g.braceNest>0&&h(M.UNTERMINATED_CLOSING_BRACE,a(),0),L=p(g,1,st(f)),g.braceNest=0,g.inLinked=!1,L;if(g.braceNest>0&&(g.currentType===4||g.currentType===5||g.currentType===6))return h(M.UNTERMINATED_CLOSING_BRACE,a(),0),g.braceNest=0,ut(f,g);if(ee=w(f,g))return L=p(g,4,Jt(f)),N(f),L;if(le=_(f,g))return L=p(g,5,Qt(f)),N(f),L;if(G=b(f,g))return L=p(g,6,lo(f)),N(f),L;if(!ee&&!le&&!G)return L=p(g,12,Ct(f)),h(M.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,L.value),N(f),L;break}}return L}function ze(f,g){const{currentType:L}=g;let O=null;const ee=f.currentChar();switch((L===7||L===8||L===11||L===9)&&(ee===fe||ee===Le)&&h(M.INVALID_LINKED_FORMAT,a(),0),ee){case"@":return f.next(),O=p(g,7,"@"),g.inLinked=!0,O;case".":return N(f),f.next(),p(g,8,".");case":":return N(f),f.next(),p(g,9,":");default:return Q(f)?(O=p(g,1,st(f)),g.braceNest=0,g.inLinked=!1,O):V(f,g)||R(f,g)?(N(f),ze(f,g)):C(f,g)?(N(f),p(g,11,on(f))):U(f,g)?(N(f),ee==="{"?ct(f,g)||O:p(g,10,ln(f))):(L===7&&h(M.INVALID_LINKED_FORMAT,a(),0),g.braceNest=0,g.inLinked=!1,ut(f,g))}}function ut(f,g){let L={type:13};if(g.braceNest>0)return ct(f,g)||k(g);if(g.inLinked)return ze(f,g)||k(g);switch(f.currentChar()){case"{":return ct(f,g)||k(g);case"}":return h(M.UNBALANCED_CLOSING_BRACE,a(),0),f.next(),p(g,3,"}");case"@":return ze(f,g)||k(g);default:{if(Q(f))return L=p(g,1,st(f)),g.braceNest=0,g.inLinked=!1,L;if(ge(f))return p(g,0,Zt(f));break}}return L}function rn(){const{currentType:f,offset:g,startLoc:L,endLoc:O}=c;return c.lastType=f,c.lastOffset=g,c.lastStartLoc=L,c.lastEndLoc=O,c.offset=r(),c.startLoc=a(),l.currentChar()===Ae?p(c,13):ut(l,c)}return{nextToken:rn,currentOffset:r,currentPosition:a,context:u}}const Gi="parser",Ki=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Yi(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 qi(e={}){const n=e.location!==!1,{onError:o}=e;function l(m,E,w,_,...b){const V=m.currentPosition();if(V.offset+=_,V.column+=_,o){const C=n?En(w,V):null,R=rt(E,C,{domain:Gi,args:b});o(R)}}function r(m,E,w){const _={type:m};return n&&(_.start=E,_.end=E,_.loc={start:w,end:w}),_}function a(m,E,w,_){n&&(m.end=E,m.loc&&(m.loc.end=w))}function i(m,E){const w=m.context(),_=r(3,w.offset,w.startLoc);return _.value=E,a(_,m.currentOffset(),m.currentPosition()),_}function s(m,E){const w=m.context(),{lastOffset:_,lastStartLoc:b}=w,V=r(5,_,b);return V.index=parseInt(E,10),m.nextToken(),a(V,m.currentOffset(),m.currentPosition()),V}function c(m,E){const w=m.context(),{lastOffset:_,lastStartLoc:b}=w,V=r(4,_,b);return V.key=E,m.nextToken(),a(V,m.currentOffset(),m.currentPosition()),V}function u(m,E){const w=m.context(),{lastOffset:_,lastStartLoc:b}=w,V=r(9,_,b);return V.value=E.replace(Ki,Yi),m.nextToken(),a(V,m.currentOffset(),m.currentPosition()),V}function d(m){const E=m.nextToken(),w=m.context(),{lastOffset:_,lastStartLoc:b}=w,V=r(8,_,b);return E.type!==11?(l(m,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),V.value="",a(V,_,b),{nextConsumeToken:E,node:V}):(E.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Te(E)),V.value=E.value||"",a(V,m.currentOffset(),m.currentPosition()),{node:V})}function h(m,E){const w=m.context(),_=r(7,w.offset,w.startLoc);return _.value=E,a(_,m.currentOffset(),m.currentPosition()),_}function p(m){const E=m.context(),w=r(6,E.offset,E.startLoc);let _=m.nextToken();if(_.type===8){const b=d(m);w.modifier=b.node,_=b.nextConsumeToken||m.nextToken()}switch(_.type!==9&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),_=m.nextToken(),_.type===2&&(_=m.nextToken()),_.type){case 10:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=h(m,_.value||"");break;case 4:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=c(m,_.value||"");break;case 5:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=s(m,_.value||"");break;case 6:_.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(_)),w.key=u(m,_.value||"");break;default:{l(m,M.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const b=m.context(),V=r(7,b.offset,b.startLoc);return V.value="",a(V,b.offset,b.startLoc),w.key=V,a(w,b.offset,b.startLoc),{nextConsumeToken:_,node:w}}}return a(w,m.currentOffset(),m.currentPosition()),{node:w}}function k(m){const E=m.context(),w=E.currentType===1?m.currentOffset():E.offset,_=E.currentType===1?E.endLoc:E.startLoc,b=r(2,w,_);b.items=[];let V=null;do{const U=V||m.nextToken();switch(V=null,U.type){case 0:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(i(m,U.value||""));break;case 5:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(s(m,U.value||""));break;case 4:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(c(m,U.value||""));break;case 6:U.value==null&&l(m,M.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Te(U)),b.items.push(u(m,U.value||""));break;case 7:{const Q=p(m);b.items.push(Q.node),V=Q.nextConsumeToken||null;break}}}while(E.currentType!==13&&E.currentType!==1);const C=E.currentType===1?E.lastOffset:m.currentOffset(),R=E.currentType===1?E.lastEndLoc:m.currentPosition();return a(b,C,R),b}function I(m,E,w,_){const b=m.context();let V=_.items.length===0;const C=r(1,E,w);C.cases=[],C.cases.push(_);do{const R=k(m);V||(V=R.items.length===0),C.cases.push(R)}while(b.currentType!==13);return V&&l(m,M.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(C,m.currentOffset(),m.currentPosition()),C}function y(m){const E=m.context(),{offset:w,startLoc:_}=E,b=k(m);return E.currentType===13?b:I(m,w,_,b)}function N(m){const E=ji(m,ue({},e)),w=E.context(),_=r(0,w.offset,w.startLoc);return n&&_.loc&&(_.loc.source=m),_.body=y(E),e.onCacheKey&&(_.cacheKey=e.onCacheKey(m)),w.currentType!==13&&l(E,M.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,m[w.offset]||""),a(_,E.currentOffset(),E.currentPosition()),_}return{parse:N}}function Te(e){if(e.type===13)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function Xi(e,n={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:a=>(o.helpers.add(a),a)}}function ko(e,n){for(let o=0;o<e.length;o++)xn(e[o],n)}function xn(e,n){switch(e.type){case 1:ko(e.cases,n),n.helper("plural");break;case 2:ko(e.items,n);break;case 6:{xn(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 Zi(e,n={}){const o=Xi(e);o.helper("normalize"),e.body&&xn(e.body,o);const l=o.context();e.helpers=Array.from(l.helpers)}function Ji(e){const n=e.body;return n.type===2?vo(n):n.cases.forEach(o=>vo(o)),e}function vo(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=Pn(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 Qi="minifier";function nt(e){switch(e.t=e.type,e.type){case 0:{const n=e;nt(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++)nt(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++)nt(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;nt(n.key),n.k=n.key,delete n.key,n.modifier&&(nt(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 rt(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Qi,args:[e.type]})}delete e.type}const es="parser";function ts(e,n){const{filename:o,breakLineCode:l,needIndent:r}=n,a=n.location!==!1,i={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:r,indentLevel:0};a&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(y,N){i.code+=y}function u(y,N=!0){const m=N?l:"";c(r?m+" ".repeat(y):m)}function d(y=!0){const N=++i.indentLevel;y&&u(N)}function h(y=!0){const N=--i.indentLevel;y&&u(N)}function p(){u(i.indentLevel)}return{context:s,push:c,indent:d,deindent:h,newline:p,helper:y=>`_${y}`,needIndent:()=>i.needIndent}}function ns(e,n){const{helper:o}=e;e.push(`${o("linked")}(`),lt(e,n.key),n.modifier?(e.push(", "),lt(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function os(e,n){const{helper:o,needIndent:l}=e;e.push(`${o("normalize")}([`),e.indent(l());const r=n.items.length;for(let a=0;a<r&&(lt(e,n.items[a]),a!==r-1);a++)e.push(", ");e.deindent(l()),e.push("])")}function ls(e,n){const{helper:o,needIndent:l}=e;if(n.cases.length>1){e.push(`${o("plural")}([`),e.indent(l());const r=n.cases.length;for(let a=0;a<r&&(lt(e,n.cases[a]),a!==r-1);a++)e.push(", ");e.deindent(l()),e.push("])")}}function rs(e,n){n.body?lt(e,n.body):e.push("null")}function lt(e,n){const{helper:o}=e;switch(n.type){case 0:rs(e,n);break;case 1:ls(e,n);break;case 2:os(e,n);break;case 6:ns(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 rt(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:es,args:[n.type]})}}const as=(e,n={})=>{const o=$(n.mode)?n.mode:"normal",l=$(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:o==="arrow"?";":`
|
|
4
|
+
`,a=n.needIndent?n.needIndent:o!=="arrow",i=e.helpers||[],s=ts(e,{filename:l,breakLineCode:r,needIndent:a});s.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(a),i.length>0&&(s.push(`const { ${Pn(i.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),lt(s,e),s.deindent(a),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function is(e,n={}){const o=ue({},n),l=!!o.jit,r=!!o.minify,a=o.optimize==null?!0:o.optimize,s=qi(o).parse(e);return l?(a&&Ji(s),r&&nt(s),{ast:s,code:""}):(Zi(s,o),as(s,o))}function ss(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function we(e){return Y(e)&&Rn(e)===0&&(be(e,"b")||be(e,"body"))}const rl=["b","body"];function cs(e){return Fe(e,rl)}const al=["c","cases"];function us(e){return Fe(e,al,[])}const il=["s","static"];function ds(e){return Fe(e,il)}const sl=["i","items"];function ms(e){return Fe(e,sl,[])}const cl=["t","type"];function Rn(e){return Fe(e,cl)}const ul=["v","value"];function wt(e,n){const o=Fe(e,ul);if(o!=null)return o;throw mt(n)}const dl=["m","modifier"];function fs(e){return Fe(e,dl)}const ml=["k","key"];function ps(e){const n=Fe(e,ml);if(n)return n;throw mt(6)}function Fe(e,n,o){for(let l=0;l<n.length;l++){const r=n[l];if(be(e,r)&&e[r]!=null)return e[r]}return o}const fl=[...rl,...al,...il,...sl,...ml,...dl,...ul,...cl];function mt(e){return new Error(`unhandled node type: ${e}`)}function un(e){return o=>gs(o,e)}function gs(e,n){const o=cs(n);if(o==null)throw mt(0);if(Rn(o)===1){const a=us(o);return e.plural(a.reduce((i,s)=>[...i,Co(e,s)],[]))}else return Co(e,o)}function Co(e,n){const o=ds(n);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const l=ms(n).reduce((r,a)=>[...r,yn(e,a)],[]);return e.normalize(l)}}function yn(e,n){const o=Rn(n);switch(o){case 3:return wt(n,o);case 9:return wt(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 mt(o)}case 5:{const l=n;if(be(l,"i")&&ce(l.i))return e.interpolate(e.list(l.i));if(be(l,"index")&&ce(l.index))return e.interpolate(e.list(l.index));throw mt(o)}case 6:{const l=n,r=fs(l),a=ps(l);return e.linked(yn(e,a),r?yn(e,r):void 0,e.type)}case 7:return wt(n,o);case 8:return wt(n,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const hs="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Es(e,n){n&&Ri(e)&&Ve(zt(hs,{source:e}))}const ys=e=>e;let Lt=X();function ks(e,n={}){let o=!1;const l=n.onError||Pi;return n.onError=r=>{o=!0,l(r)},{...is(e,n),detectError:o}}function vs(e,n){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){const o=ae(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Es(e,o);const r=(n.onCacheKey||ys)(e),a=Lt[r];if(a)return a;const{ast:i,detectError:s}=ks(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),c=un(i);return s?c:Lt[r]=c}else{if(process.env.NODE_ENV!=="production"&&!we(e))return Ve(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),(()=>e);const o=e.cacheKey;if(o){const l=Lt[o];return l||(Lt[o]=un(e))}else return un(e)}}let ft=null;function Cs(e){ft=e}function _s(e,n,o){ft&&ft.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:o})}const Ns=Ss("function:translate");function Ss(e){return n=>ft&&ft.emit(e,n)}const pe={INVALID_ARGUMENT:$i,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},bs=24;function $e(e){return rt(e,null,process.env.NODE_ENV!=="production"?{messages:ws}:void 0)}const ws={[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 Mn(e,n){return n.locale!=null?_o(n.locale):_o(e.locale)}let dn;function _o(e){if($(e))return e;if(te(e)){if(e.resolvedOnce&&dn!=null)return dn;if(e.constructor.name==="Function"){const n=e();if(Bi(n))throw $e(pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return dn=n}else throw $e(pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw $e(pe.NOT_SUPPORT_LOCALE_TYPE)}function Ls(e,n,o){return[...new Set([o,...ie(n)?n:Y(n)?Object.keys(n):$(n)?[n]:[o]])]}function pl(e,n,o){const l=$(o)?o:$t,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(l);if(!a){a=[];let i=[o];for(;ie(i);)i=No(a,i,n);const s=ie(n)||!K(n)?n:n.default?n.default:null;i=$(s)?[s]:s,ie(i)&&No(a,i,!1),r.__localeChainCache.set(l,a)}return a}function No(e,n,o){let l=!0;for(let r=0;r<n.length&&ae(l);r++){const a=n[r];$(a)&&(l=Ts(e,n[r],o))}return l}function Ts(e,n,o){let l;const r=n.split("-");do{const a=r.join("-");l=Bs(e,a,o),r.splice(-1,1)}while(r.length&&l===!0);return l}function Bs(e,n,o){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(ie(o)||K(o))&&o[r]&&(l=o[r])}return l}const Ue=[];Ue[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ue[1]={w:[1],".":[2],"[":[4],o:[7]};Ue[2]={w:[2],i:[3,0],0:[3,0]};Ue[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ue[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ue[5]={"'":[4,0],o:8,l:[5,0]};Ue[6]={'"':[4,0],o:8,l:[6,0]};const Vs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Is(e){return Vs.test(e)}function As(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 Ds(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 $s(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Is(n)?As(n):"*"+n}function Os(e){const n=[];let o=-1,l=0,r=0,a,i,s,c,u,d,h;const p=[];p[0]=()=>{i===void 0?i=s:i+=s},p[1]=()=>{i!==void 0&&(n.push(i),i=void 0)},p[2]=()=>{p[0](),r++},p[3]=()=>{if(r>0)r--,l=4,p[0]();else{if(r=0,i===void 0||(i=$s(i),i===!1))return!1;p[1]()}};function k(){const I=e[o+1];if(l===5&&I==="'"||l===6&&I==='"')return o++,s="\\"+I,p[0](),!0}for(;l!==null;)if(o++,a=e[o],!(a==="\\"&&k())){if(c=Ds(a),h=Ue[l],u=h[c]||h.l||8,u===8||(l=u[0],u[1]!==void 0&&(d=p[u[1]],d&&(s=a,d()===!1))))return;if(l===7)return n}}const So=new Map;function Ps(e,n){return Y(e)?e[n]:null}function xs(e,n){if(!Y(e))return null;let o=So.get(n);if(o||(o=Os(n),o&&So.set(n,o)),!o)return null;const l=o.length;let r=e,a=0;for(;a<l;){const i=o[a];if(fl.includes(i)&&we(r))return null;const s=r[i];if(s===void 0||te(r))return null;r=s,a++}return r}const he={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},Rs=8,Ms={[he.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[he.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[he.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[he.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[he.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[he.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 Xe(e,...n){return zt(Ms[e],...n)}const Fs="11.2.8",jt=-1,$t="en-US",Ot="",bo=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Us(){return{upper:(e,n)=>n==="text"&&$(e)?e.toUpperCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&$(e)?e.toLowerCase():n==="vnode"&&Y(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&$(e)?bo(e):n==="vnode"&&Y(e)&&"__v_isVNode"in e?bo(e.children):e}}let gl;function Hs(e){gl=e}let hl;function zs(e){hl=e}let El;function Ws(e){El=e}let yl=null;const js=e=>{yl=e},Gs=()=>yl;let kl=null;const wo=e=>{kl=e},Ks=()=>kl;let Lo=0;function Ys(e={}){const n=te(e.onWarn)?e.onWarn:Ve,o=$(e.version)?e.version:Fs,l=$(e.locale)||te(e.locale)?e.locale:$t,r=te(l)?$t:l,a=ie(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,i=K(e.messages)?e.messages:mn(r),s=K(e.datetimeFormats)?e.datetimeFormats:mn(r),c=K(e.numberFormats)?e.numberFormats:mn(r),u=ue(X(),e.modifiers,Us()),d=e.pluralRules||X(),h=te(e.missing)?e.missing:null,p=ae(e.missingWarn)||Dt(e.missingWarn)?e.missingWarn:!0,k=ae(e.fallbackWarn)||Dt(e.fallbackWarn)?e.fallbackWarn:!0,I=!!e.fallbackFormat,y=!!e.unresolving,N=te(e.postTranslation)?e.postTranslation:null,m=K(e.processor)?e.processor:null,E=ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,_=te(e.messageCompiler)?e.messageCompiler:gl;process.env.NODE_ENV!=="production"&&te(e.messageCompiler)&&Ci(Xe(he.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const b=te(e.messageResolver)?e.messageResolver:hl||Ps,V=te(e.localeFallbacker)?e.localeFallbacker:El||Ls,C=Y(e.fallbackContext)?e.fallbackContext:void 0,R=e,U=Y(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,Q=Y(R.__numberFormatters)?R.__numberFormatters:new Map,ge=Y(R.__meta)?R.__meta:{};Lo++;const Z={version:o,cid:Lo,locale:l,fallbackLocale:a,messages:i,modifiers:u,pluralRules:d,missing:h,missingWarn:p,fallbackWarn:k,fallbackFormat:I,unresolving:y,postTranslation:N,processor:m,warnHtmlMessage:E,escapeParameter:w,messageCompiler:_,messageResolver:b,localeFallbacker:V,fallbackContext:C,onWarn:n,__meta:ge};return Z.datetimeFormats=s,Z.numberFormats=c,Z.__datetimeFormatters=U,Z.__numberFormatters=Q,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_s(Z,o,ge),Z}const mn=e=>({[e]:X()});function Gt(e,n){return e instanceof RegExp?e.test(n):e}function vl(e,n){return e instanceof RegExp?e.test(n):e}function Fn(e,n,o,l,r){const{missing:a,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:o,key:n,type:r,groupId:`${r}:${n}`})}if(a!==null){const s=a(e,o,n,r);return $(s)?s:n}else return process.env.NODE_ENV!=="production"&&vl(l,n)&&i(Xe(he.NOT_FOUND_KEY,{key:n,locale:o})),n}function dt(e,n,o){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,o,n)}function Cl(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function qs(e,n){const o=n.indexOf(e);if(o===-1)return!1;for(let l=o+1;l<n.length;l++)if(Cl(e,n[l]))return!0;return!1}const To=typeof Intl<"u",_l={dateTimeFormat:To&&typeof Intl.DateTimeFormat<"u",numberFormat:To&&typeof Intl.NumberFormat<"u"};function Bo(e,...n){const{datetimeFormats:o,unresolving:l,fallbackLocale:r,onWarn:a,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!_l.dateTimeFormat)return a(Xe(he.CANNOT_FORMAT_DATE)),Ot;const[c,u,d,h]=kn(...n),p=ae(d.missingWarn)?d.missingWarn:e.missingWarn,k=ae(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,I=!!d.part,y=Mn(e,d),N=i(e,r,y);if(!$(c)||c==="")return new Intl.DateTimeFormat(y,h).format(u);let m={},E,w=null,_=y,b=null;const V="datetime format";for(let U=0;U<N.length;U++){if(E=b=N[U],process.env.NODE_ENV!=="production"&&y!==E&&Gt(k,c)&&a(Xe(he.FALLBACK_TO_DATE_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&y!==E){const Q=e.__v_emitter;Q&&Q.emit("fallback",{type:V,key:c,from:_,to:b,groupId:`${V}:${c}`})}if(m=o[E]||{},w=m[c],K(w))break;Fn(e,c,E,p,V),_=b}if(!K(w)||!$(E))return l?jt:c;let C=`${E}__${c}`;Wt(h)||(C=`${C}__${JSON.stringify(h)}`);let R=s.get(C);return R||(R=new Intl.DateTimeFormat(E,ue({},w,h)),s.set(C,R)),I?R.formatToParts(u):R.format(u)}const Nl=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function kn(...e){const[n,o,l,r]=e,a=X();let i=X(),s;if($(n)){const c=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw $e(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 $e(pe.INVALID_ISO_DATE_ARGUMENT)}}else if(bi(n)){if(isNaN(n.getTime()))throw $e(pe.INVALID_DATE_ARGUMENT);s=n}else if(ce(n))s=n;else throw $e(pe.INVALID_ARGUMENT);return $(o)?a.key=o:K(o)&&Object.keys(o).forEach(c=>{Nl.includes(c)?i[c]=o[c]:a[c]=o[c]}),$(l)?a.locale=l:K(l)&&(i=l),K(r)&&(i=r),[a.key||"",s,a,i]}function Vo(e,n,o){const l=e;for(const r in o){const a=`${n}__${r}`;l.__datetimeFormatters.has(a)&&l.__datetimeFormatters.delete(a)}}function Io(e,...n){const{numberFormats:o,unresolving:l,fallbackLocale:r,onWarn:a,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!_l.numberFormat)return a(Xe(he.CANNOT_FORMAT_NUMBER)),Ot;const[c,u,d,h]=vn(...n),p=ae(d.missingWarn)?d.missingWarn:e.missingWarn,k=ae(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,I=!!d.part,y=Mn(e,d),N=i(e,r,y);if(!$(c)||c==="")return new Intl.NumberFormat(y,h).format(u);let m={},E,w=null,_=y,b=null;const V="number format";for(let U=0;U<N.length;U++){if(E=b=N[U],process.env.NODE_ENV!=="production"&&y!==E&&Gt(k,c)&&a(Xe(he.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&y!==E){const Q=e.__v_emitter;Q&&Q.emit("fallback",{type:V,key:c,from:_,to:b,groupId:`${V}:${c}`})}if(m=o[E]||{},w=m[c],K(w))break;Fn(e,c,E,p,V),_=b}if(!K(w)||!$(E))return l?jt:c;let C=`${E}__${c}`;Wt(h)||(C=`${C}__${JSON.stringify(h)}`);let R=s.get(C);return R||(R=new Intl.NumberFormat(E,ue({},w,h)),s.set(C,R)),I?R.formatToParts(u):R.format(u)}const Sl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function vn(...e){const[n,o,l,r]=e,a=X();let i=X();if(!ce(n))throw $e(pe.INVALID_ARGUMENT);const s=n;return $(o)?a.key=o:K(o)&&Object.keys(o).forEach(c=>{Sl.includes(c)?i[c]=o[c]:a[c]=o[c]}),$(l)?a.locale=l:K(l)&&(i=l),K(r)&&(i=r),[a.key||"",s,a,i]}function Ao(e,n,o){const l=e;for(const r in o){const a=`${n}__${r}`;l.__numberFormatters.has(a)&&l.__numberFormatters.delete(a)}}const Xs=e=>e,Zs=e=>"",Js="text",Qs=e=>e.length===0?"":Pn(e),ec=Vi;function Do(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function tc(e){const n=ce(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ce(e.named.count)||ce(e.named.n))?ce(e.named.count)?e.named.count:ce(e.named.n)?e.named.n:n:n}function nc(e,n){n.count||(n.count=e),n.n||(n.n=e)}function oc(e={}){const n=e.locale,o=tc(e),l=Y(e.pluralRules)&&$(n)&&te(e.pluralRules[n])?e.pluralRules[n]:Do,r=Y(e.pluralRules)&&$(n)&&te(e.pluralRules[n])?Do:void 0,a=m=>m[l(o,m.length,r)],i=e.list||[],s=m=>i[m],c=e.named||X();ce(e.pluralIndex)&&nc(o,c);const u=m=>c[m];function d(m,E){const w=te(e.messages)?e.messages(m,!!E):Y(e.messages)?e.messages[m]:!1;return w||(e.parent?e.parent.message(m):Zs)}const h=m=>e.modifiers?e.modifiers[m]:Xs,p=K(e.processor)&&te(e.processor.normalize)?e.processor.normalize:Qs,k=K(e.processor)&&te(e.processor.interpolate)?e.processor.interpolate:ec,I=K(e.processor)&&$(e.processor.type)?e.processor.type:Js,N={list:s,named:u,plural:a,linked:(m,...E)=>{const[w,_]=E;let b="text",V="";E.length===1?Y(w)?(V=w.modifier||V,b=w.type||b):$(w)&&(V=w||V):E.length===2&&($(w)&&(V=w||V),$(_)&&(b=_||b));const C=d(m,!0)(N),R=b==="vnode"&&ie(C)&&V?C[0]:C;return V?h(V)(R,b):R},message:d,type:I,interpolate:k,normalize:p,values:ue(X(),i,c)};return N}const $o=()=>"",Se=e=>te(e);function Oo(e,...n){const{fallbackFormat:o,postTranslation:l,unresolving:r,messageCompiler:a,fallbackLocale:i,messages:s}=e,[c,u]=Cn(...n),d=ae(u.missingWarn)?u.missingWarn:e.missingWarn,h=ae(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=ae(u.escapeParameter)?u.escapeParameter:e.escapeParameter,k=!!u.resolvedMessage,I=$(u.default)||ae(u.default)?ae(u.default)?a?c:()=>c:u.default:o?a?c:()=>c:null,y=o||I!=null&&($(I)||te(I)),N=Mn(e,u);p&&lc(u);let[m,E,w]=k?[c,N,s[N]||X()]:bl(e,c,N,i,h,d),_=m,b=c;if(!k&&!($(_)||we(_)||Se(_))&&y&&(_=I,b=_),!k&&(!($(_)||we(_)||Se(_))||!$(E)))return r?jt:c;if(process.env.NODE_ENV!=="production"&&$(_)&&e.messageCompiler==null)return Ve(`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 C=()=>{V=!0},R=Se(_)?_:wl(e,c,E,_,b,C);if(V)return _;const U=sc(e,E,w,u),Q=oc(U),ge=rc(e,R,Q);let Z=l?l(ge,c):ge;if(p&&$(Z)&&(Z=Li(Z)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const Re={timestamp:Date.now(),key:$(c)?c:Se(_)?_.key:"",locale:E||(Se(_)?_.locale:""),format:$(_)?_:Se(_)?_.source:"",message:Z};Re.meta=ue({},e.__meta,Gs()||{}),Ns(Re)}return Z}function lc(e){ie(e.list)?e.list=e.list.map(n=>$(n)?go(n):n):Y(e.named)&&Object.keys(e.named).forEach(n=>{$(e.named[n])&&(e.named[n]=go(e.named[n]))})}function bl(e,n,o,l,r,a){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,l,o);let h=X(),p,k=null,I=o,y=null;const N="translate";for(let m=0;m<d.length;m++){if(p=y=d[m],process.env.NODE_ENV!=="production"&&o!==p&&!Cl(o,p)&&Gt(r,n)&&s(Xe(he.FALLBACK_TO_TRANSLATE,{key:n,target:p})),process.env.NODE_ENV!=="production"&&o!==p){const b=e.__v_emitter;b&&b.emit("fallback",{type:N,key:n,from:I,to:y,groupId:`${N}:${n}`})}h=i[p]||X();let E=null,w,_;if(process.env.NODE_ENV!=="production"&&Pe&&(E=window.performance.now(),w="intlify-message-resolve-start",_="intlify-message-resolve-end",Ne&&Ne(w)),(k=c(h,n))===null&&(k=h[n]),process.env.NODE_ENV!=="production"&&Pe){const b=window.performance.now(),V=e.__v_emitter;V&&E&&k&&V.emit("message-resolve",{type:"message-resolve",key:n,message:k,time:b-E,groupId:`${N}:${n}`}),w&&_&&Ne&&qe&&(Ne(_),qe("intlify message resolve",w,_))}if($(k)||we(k)||Se(k))break;if(!qs(p,d)){const b=Fn(e,n,p,a,N);b!==n&&(k=b)}I=y}return[k,p,h]}function wl(e,n,o,l,r,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Se(l)){const p=l;return p.locale=p.locale||o,p.key=p.key||n,p}if(i==null){const p=(()=>l);return p.locale=o,p.key=n,p}let c=null,u,d;process.env.NODE_ENV!=="production"&&Pe&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Ne&&Ne(u));const h=i(l,ac(e,o,r,l,s,a));if(process.env.NODE_ENV!=="production"&&Pe){const p=window.performance.now(),k=e.__v_emitter;k&&c&&k.emit("message-compilation",{type:"message-compilation",message:l,time:p-c,groupId:`translate:${n}`}),u&&d&&Ne&&qe&&(Ne(d),qe("intlify message compilation",u,d))}return h.locale=o,h.key=n,h.source=l,h}function rc(e,n,o){let l=null,r,a;process.env.NODE_ENV!=="production"&&Pe&&(l=window.performance.now(),r="intlify-message-evaluation-start",a="intlify-message-evaluation-end",Ne&&Ne(r));const i=n(o);if(process.env.NODE_ENV!=="production"&&Pe){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}`}),r&&a&&Ne&&qe&&(Ne(a),qe("intlify message evaluation",r,a))}return i}function Cn(...e){const[n,o,l]=e,r=X();if(!$(n)&&!ce(n)&&!Se(n)&&!we(n))throw $e(pe.INVALID_ARGUMENT);const a=ce(n)?String(n):(Se(n),n);return ce(o)?r.plural=o:$(o)?r.default=o:K(o)&&!Wt(o)?r.named=o:ie(o)&&(r.list=o),ce(l)?r.plural=l:$(l)?r.default=l:K(l)&&ue(r,l),[a,r]}function ac(e,n,o,l,r,a){return{locale:n,key:o,warnHtmlMessage:r,onError:i=>{if(a&&a(i),process.env.NODE_ENV!=="production"){const s=ic(l),c=`Message compilation error: ${i.message}`,u=i.location&&s&&Ii(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.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}
|
|
5
|
+
${u}`:c)}else throw i},onCacheKey:i=>Ni(n,o,i)}}function ic(e){if($(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function sc(e,n,o,l){const{modifiers:r,pluralRules:a,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,p={locale:n,modifiers:r,pluralRules:a,messages:(k,I)=>{let y=i(o,k);if(y==null&&(d||I)){const[,,N]=bl(d||e,k,n,s,c,u);y=i(N,k)}if($(y)||we(y)){let N=!1;const E=wl(e,k,n,y,k,()=>{N=!0});return N?$o:E}else return Se(y)?y:$o}};return e.processor&&(p.processor=e.processor),l.list&&(p.list=l.list),l.named&&(p.named=l.named),ce(l.plural)&&(p.pluralIndex=l.plural),p}ss();const cc="11.2.8";function uc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ke().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ke().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ke().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ke().__INTLIFY_PROD_DEVTOOLS__=!1)}const de={UNEXPECTED_RETURN_TYPE:bs,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 pt(e,...n){return rt(e,null,process.env.NODE_ENV!=="production"?{messages:dc,args:n}:void 0)}const dc={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},_n=xe("__translateVNode"),Nn=xe("__datetimeParts"),Sn=xe("__numberParts"),bn=xe("__enableEmitter"),wn=xe("__disableEmitter"),mc=xe("__setPluralRules"),Ll=xe("__injectWithOption"),Ln=xe("__dispose"),Be={FALLBACK_TO_ROOT:Rs,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},fc={[Be.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Be.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Be.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Be.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
6
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Be.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Be.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Pt(e,...n){return zt(fc[e],...n)}function gt(e){if(!Y(e)||we(e))return e;for(const n in e)if(be(e,n))if(!n.includes("."))Y(e[n])&>(e[n]);else{const o=n.split("."),l=o.length-1;let r=e,a=!1;for(let i=0;i<l;i++){if(o[i]==="__proto__")throw new Error(`unsafe key: ${o[i]}`);if(o[i]in r||(r[o[i]]=X()),!Y(r[o[i]])){process.env.NODE_ENV!=="production"&&Ve(Pt(Be.IGNORE_OBJ_FLATTEN,{key:o[i]})),a=!0;break}r=r[o[i]]}if(a||(we(r)?fl.includes(o[l])||delete e[n]:(r[o[l]]=e[n],delete e[n])),!we(r)){const i=r[o[l]];Y(i)&>(i)}}return e}function Tl(e,n){const{messages:o,__i18n:l,messageResolver:r,flatJson:a}=n,i=K(o)?o:ie(l)?X():{[e]:X()};if(ie(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(i[c]=i[c]||X(),It(u,i[c])):It(u,i)}else $(s)&&It(JSON.parse(s),i)}),r==null&&a)for(const s in i)be(i,s)&>(i[s]);return i}function Bl(e){return e.type}function pc(e,n,o){let l=Y(n.messages)?n.messages:X();"__i18nGlobal"in o&&(l=Tl(e.locale.value,{messages:l,__i18n:o.__i18nGlobal}));const r=Object.keys(l);r.length&&r.forEach(a=>{e.mergeLocaleMessage(a,l[a])});{if(Y(n.datetimeFormats)){const a=Object.keys(n.datetimeFormats);a.length&&a.forEach(i=>{e.mergeDateTimeFormat(i,n.datetimeFormats[i])})}if(Y(n.numberFormats)){const a=Object.keys(n.numberFormats);a.length&&a.forEach(i=>{e.mergeNumberFormat(i,n.numberFormats[i])})}}}function Po(e){return t.createVNode(t.Text,null,e,0)}function Un(){const e="currentInstance";return e in cn?cn[e]:cn.getCurrentInstance()}const xo="__INTLIFY_META__",Ro=()=>[],gc=()=>!1;let Mo=0;function Fo(e){return((n,o,l,r)=>e(o,l,Un()||void 0,r))}const hc=()=>{const e=Un();let n=null;return e&&(n=Bl(e)[xo])?{[xo]:n}:null};function Ec(e={}){const{__root:n,__injectWithOption:o}=e,l=n===void 0,r=e.flatJson,a=Pe?t.ref:t.shallowRef;let i=ae(e.inheritLocale)?e.inheritLocale:!0;const s=a(n&&i?n.locale.value:$(e.locale)?e.locale:$t),c=a(n&&i?n.fallbackLocale.value:$(e.fallbackLocale)||ie(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(Tl(s.value,e)),d=a(K(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),h=a(K(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=n?n.missingWarn:ae(e.missingWarn)||Dt(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:ae(e.fallbackWarn)||Dt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:ae(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,N=te(e.missing)?e.missing:null,m=te(e.missing)?Fo(e.missing):null,E=te(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:ae(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const b=n?n.modifiers:K(e.modifiers)?e.modifiers:{};let V=e.pluralRules||n&&n.pluralRules,C;C=(()=>{l&&wo(null);const v={version:cc,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:b,pluralRules:V,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:k,fallbackFormat:y,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:w,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=d.value,v.numberFormats=h.value,v.__datetimeFormatters=K(C)?C.__datetimeFormatters:void 0,v.__numberFormatters=K(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(v.__v_emitter=K(C)?C.__v_emitter:void 0);const T=Ys(v);return l&&wo(T),T})(),dt(C,s.value,c.value);function U(){return[s.value,c.value,u.value,d.value,h.value]}const Q=t.computed({get:()=>s.value,set:v=>{C.locale=v,s.value=v}}),ge=t.computed({get:()=>c.value,set:v=>{C.fallbackLocale=v,c.value=v,dt(C,s.value,v)}}),Z=t.computed(()=>u.value),Re=t.computed(()=>d.value),Je=t.computed(()=>h.value);function P(){return te(E)?E:null}function A(v){E=v,C.postTranslation=v}function H(){return N}function x(v){v!==null&&(m=Fo(v)),N=v,C.missing=m}function Ie(v,T){return v!=="translate"||!T.resolvedMessage}const me=(v,T,q,re,We,_t)=>{U();let Qe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=n?Ks():void 0),Qe=v(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=void 0)}if(q!=="translate exists"&&ce(Qe)&&Qe===jt||q==="translate exists"&&!Qe){const[je,Br]=T();if(process.env.NODE_ENV!=="production"&&n&&$(je)&&Ie(q,Br)&&(I&&(Gt(k,je)||vl(p,je))&&Ve(Pt(Be.FALLBACK_TO_ROOT,{key:je,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:ro}=C;ro&&I&&ro.emit("fallback",{type:q,key:je,to:"global",groupId:`${q}:${je}`})}return n&&I?re(n):We(je)}else{if(_t(Qe))return Qe;throw pt(de.UNEXPECTED_RETURN_TYPE)}};function He(...v){return me(T=>Reflect.apply(Oo,null,[T,...v]),()=>Cn(...v),"translate",T=>Reflect.apply(T.t,T,[...v]),T=>T,T=>$(T))}function Zt(...v){const[T,q,re]=v;if(re&&!Y(re))throw pt(de.INVALID_ARGUMENT);return He(T,q,ue({resolvedMessage:!0},re||{}))}function Jt(...v){return me(T=>Reflect.apply(Bo,null,[T,...v]),()=>kn(...v),"datetime format",T=>Reflect.apply(T.d,T,[...v]),()=>Ot,T=>$(T)||ie(T))}function Qt(...v){return me(T=>Reflect.apply(Io,null,[T,...v]),()=>vn(...v),"number format",T=>Reflect.apply(T.n,T,[...v]),()=>Ot,T=>$(T)||ie(T))}function en(v){return v.map(T=>$(T)||ce(T)||ae(T)?Po(String(T)):T)}const tn={normalize:en,interpolate:v=>v,type:"vnode"};function vt(...v){return me(T=>{let q;const re=T;try{re.processor=tn,q=Reflect.apply(Oo,null,[re,...v])}finally{re.processor=null}return q},()=>Cn(...v),"translate",T=>T[_n](...v),T=>[Po(T)],T=>ie(T))}function nn(...v){return me(T=>Reflect.apply(Io,null,[T,...v]),()=>vn(...v),"number format",T=>T[Sn](...v),Ro,T=>$(T)||ie(T))}function Ct(...v){return me(T=>Reflect.apply(Bo,null,[T,...v]),()=>kn(...v),"datetime format",T=>T[Nn](...v),Ro,T=>$(T)||ie(T))}function on(v){V=v,C.pluralRules=V}function ln(v,T){return me(()=>{if(!v)return!1;const q=$(T)?T:s.value,re=ze(q),We=C.messageResolver(re,v);return we(We)||Se(We)||$(We)},()=>[v],"translate exists",q=>Reflect.apply(q.te,q,[v,T]),gc,q=>ae(q))}function st(v){let T=null;const q=pl(C,c.value,s.value);for(let re=0;re<q.length;re++){const We=u.value[q[re]]||{},_t=C.messageResolver(We,v);if(_t!=null){T=_t;break}}return T}function ct(v){const T=st(v);return T??(n?n.tm(v)||{}:{})}function ze(v){return u.value[v]||{}}function ut(v,T){if(r){const q={[v]:T};for(const re in q)be(q,re)&>(q[re]);T=q[v]}u.value[v]=T,C.messages=u.value}function rn(v,T){u.value[v]=u.value[v]||{};const q={[v]:T};if(r)for(const re in q)be(q,re)&>(q[re]);T=q[v],It(T,u.value[v]),C.messages=u.value}function f(v){return d.value[v]||{}}function g(v,T){d.value[v]=T,C.datetimeFormats=d.value,Vo(C,v,T)}function L(v,T){d.value[v]=ue(d.value[v]||{},T),C.datetimeFormats=d.value,Vo(C,v,T)}function O(v){return h.value[v]||{}}function ee(v,T){h.value[v]=T,C.numberFormats=h.value,Ao(C,v,T)}function le(v,T){h.value[v]=ue(h.value[v]||{},T),C.numberFormats=h.value,Ao(C,v,T)}Mo++,n&&Pe&&(t.watch(n.locale,v=>{i&&(s.value=v,C.locale=v,dt(C,s.value,c.value))}),t.watch(n.fallbackLocale,v=>{i&&(c.value=v,C.fallbackLocale=v,dt(C,s.value,c.value))}));const G={id:Mo,locale:Q,fallbackLocale:ge,get inheritLocale(){return i},set inheritLocale(v){i=v,v&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,dt(C,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return b},get pluralRules(){return V||{}},get isGlobal(){return l},get missingWarn(){return p},set missingWarn(v){p=v,C.missingWarn=p},get fallbackWarn(){return k},set fallbackWarn(v){k=v,C.fallbackWarn=k},get fallbackRoot(){return I},set fallbackRoot(v){I=v},get fallbackFormat(){return y},set fallbackFormat(v){y=v,C.fallbackFormat=y},get warnHtmlMessage(){return w},set warnHtmlMessage(v){w=v,C.warnHtmlMessage=v},get escapeParameter(){return _},set escapeParameter(v){_=v,C.escapeParameter=v},t:He,getLocaleMessage:ze,setLocaleMessage:ut,mergeLocaleMessage:rn,getPostTranslationHandler:P,setPostTranslationHandler:A,getMissingHandler:H,setMissingHandler:x,[mc]:on};return G.datetimeFormats=Re,G.numberFormats=Je,G.rt=Zt,G.te=ln,G.tm=ct,G.d=Jt,G.n=Qt,G.getDateTimeFormat=f,G.setDateTimeFormat=g,G.mergeDateTimeFormat=L,G.getNumberFormat=O,G.setNumberFormat=ee,G.mergeNumberFormat=le,G[Ll]=o,G[_n]=vt,G[Nn]=Ct,G[Sn]=nn,process.env.NODE_ENV!=="production"&&(G[bn]=v=>{C.__v_emitter=v},G[wn]=()=>{C.__v_emitter=void 0}),G}function Uo(e,n){}const Hn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yc({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,r)=>[...l,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((o,l)=>{const r=e[l];return r&&(o[l]=r()),o},X())}function Vl(){return t.Fragment}ue({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ce(e)||!isNaN(e)}},Hn);function kc(e){return ie(e)&&!$(e[0])}function Il(e,n,o,l){const{slots:r,attrs:a}=n;return()=>{const i={part:!0};let s=X();e.locale&&(i.locale=e.locale),$(e.format)?i.key=e.format:Y(e.format)&&($(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((p,k)=>o.includes(k)?ue(X(),p,{[k]:e.format[k]}):p,X()));const c=l(e.value,i,s);let u=[i.key];ie(c)?u=c.map((p,k)=>{const I=r[p.type],y=I?I({[p.type]:p.value,index:k,parts:c}):[p.value];return kc(y)&&(y[0].key=`${p.type}-${k}`),y}):$(c)&&(u=[c]);const d=ue(X(),a),h=$(e.tag)||Y(e.tag)?e.tag:Vl();return t.h(h,d,u)}}ue({value:{type:Number,required:!0},format:{type:[String,Object]}},Hn);const vc=xe("global-vue-i18n");function yt(e={}){const n=Un();if(n==null)throw pt(de.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw pt(de.NOT_INSTALLED);const o=Cc(n),l=Nc(o),r=Bl(n),a=_c(e,r);if(a==="global")return pc(l,e,r),l;if(a==="parent"){let c=Sc(o,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ve(Pt(Be.NOT_FOUND_PARENT_SCOPE)),c=l),c}const i=o;let s=i.__getInstance(n);if(s==null){const c=ue({},e);"__i18n"in r&&(c.__i18n=r.__i18n),l&&(c.__root=l),s=Ec(c),i.__composerExtend&&(s[Ln]=i.__composerExtend(s)),wc(i,n,s),i.__setInstance(n,s)}else process.env.NODE_ENV!=="production"&&a==="local"&&Ve(Pt(Be.DUPLICATE_USE_I18N_CALLING));return s}function Cc(e){const n=t.inject(e.isCE?vc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw pt(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return n}function _c(e,n){return Wt(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function Nc(e){return e.mode==="composition"?e.global:e.global.__composer}function Sc(e,n,o=!1){let l=null;const r=n.root;let a=bc(n,o);for(;a!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(a);s!=null&&(l=s.__composer,o&&l&&!l[Ll]&&(l=null))}if(l!=null||r===a)break;a=a.parent}return l}function bc(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function wc(e,n,o){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"){n.__VUE_I18N__=o,l=Ai();const r=o;r[bn]&&r[bn](l),l.on("*",Uo)}},n),t.onUnmounted(()=>{const r=o;process.env.NODE_ENV!=="production"&&(l&&l.off("*",Uo),r[wn]&&r[wn](),delete n.__VUE_I18N__),e.__deleteInstance(n);const a=r[Ln];a&&(a(),delete r[Ln])},n)}ue({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Hn);uc();Hs(vs);zs(xs);Ws(pl);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ke();e.__INTLIFY__=!0,Cs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const j=t.defineComponent({__name:"Tooltip",props:{title:{default:void 0},placement:{default:"top"}},setup(e){let n;typeof document<"u"&&(n=import("bootstrap"));const o=e,l=t.ref(),r=t.ref(),a=t.ref();return t.onMounted(async()=>{t.nextTick(async()=>{const i=await n;typeof document<"u"&&r.value&&a.value&&(l.value=new i.Tooltip(r.value,{trigger:"hover",html:!0,placement:o.placement,title:a.value.innerHTML,customClass:"tooltip-custom"}))})}),t.onBeforeUnmount(async()=>{l.value?.dispose()}),(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",t.mergeProps({ref_key:"$tooltip",ref:r},i.$attrs),[t.renderSlot(i.$slots,"default")],16),t.createElementVNode("span",{class:"d-none",ref_key:"$tooltipContent",ref:a},[t.renderSlot(i.$slots,"content",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],512)],64))}}),Lc=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,${a.value}`),l=t.computed(()=>({flowable:i.value?i.value.flowable:!1})),r=t.computed(()=>({backgroundImage:`url(${o.value})`})),a=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 d=_e(u?"--bs-gray-900":"--bs-black")??"#FFFFFF";return n.theme&&(d=(n.theme==="dark"?_e("--bs-gray-900"):_e("--bs-black"))??d),n.variable&&(d=_e(n.variable)??d),c=c.replace(/currentColor/g,d),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"])},[e.onlyIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"icon",style:t.normalizeStyle(r.value)},null,4)):(t.openBlock(),t.createBlock(j,{key:0,title:e.cls},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle(r.value)},null,4)]),_:1},8,["title"]))],2))}}),zn=D(Lc,[["__scopeId","data-v-23f8d853"]]),Tc={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bc=["aria-hidden","aria-label"],Vc=["fill","width","height"],Ic={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"},Ac={key:0};function Dc(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","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",Ic,[o.title?(t.openBlock(),t.createElementBlock("title",Ac,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Vc))],16,Bc)}const Al=D(Tc,[["render",Dc]]),$c={name:"ArrowExpandAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Oc=["aria-hidden","aria-label"],Pc=["fill","width","height"],xc={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"},Rc={key:0};function Mc(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-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",xc,[o.title?(t.openBlock(),t.createElementBlock("title",Rc,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pc))],16,Oc)}const Fc=D($c,[["render",Mc]]),Uc={class:"dependency-text d-flex flex-column flex-grow-1"},Hc={class:"dependency-flow-text text-truncate"},zc={class:"dependency-namespace-text text-truncate"},Wc={class:"text-white top-button-div"},jc=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}=yt(),r=t.computed(()=>window.btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none">
|
|
7
7
|
<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"/>
|
|
8
|
-
</svg>`));return(i,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.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(zn,{"custom-icon":{icon:r.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",Fc,[t.createElementVNode("div",Uc,[t.createVNode(j,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",Hc,[t.createVNode(j,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",zc,[t.renderSlot(i.$slots,"badge-button-before",{},void 0,!0),e.data.link?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:a[0]||(a[0]=s=>i.$emit(t.unref(S.EVENTS).OPEN_LINK,e.data))},[t.createVNode(j,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(Il,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),e.data.expandEnabled?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:a[1]||(a[1]=s=>o(t.unref(S.EVENTS).EXPAND_DEPENDENCIES,e.data))},[t.createVNode(j,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(Mc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),jc=D(Wc,[["__scopeId","data-v-2271d5b0"]]);var Oe=(e=>(e.Lines="lines",e.Dots="dots",e))(Oe||{});const Al=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]}`})},Dl=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Oe.Lines+"",Oe.Dots+"";const Gc={[Oe.Dots]:"#81818a",[Oe.Lines]:"#eee"},Kc=["id","x","y","width","height","patternTransform"],Yc={key:2,height:"100",width:"100"},qc=["fill"],Xc=["x","y","fill"],Zc={name:"Background",compatConfig:{MODE:3}},Jc=t.defineComponent({...Zc,props:{id:{},variant:{default:()=>Oe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:n,viewport:o}=oe.useVueFlow(),l=t.computed(()=>{const a=o.value.zoom,[s,c]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*a||1,c*a||1],d=e.size*a,[p,h]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],y=[p*a||1+u[0]/2,h*a||1+u[1]/2];return{scaledGap:u,offset:y,size:d}}),r=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),i=t.toRef(()=>e.color||e.patternColor||Gc[e.variant||Oe.Dots]);return(a,s)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-flow__background vue-flow__container",style:t.normalizeStyle({height:`${a.height>100?100:a.height}%`,width:`${a.width>100?100:a.width}%`})},[t.renderSlot(a.$slots,"pattern-container",{id:r.value},()=>[t.createElementVNode("pattern",{id:r.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(a.$slots,"pattern",{},()=>[a.variant===t.unref(Oe).Lines?(t.openBlock(),t.createBlock(t.unref(Al),{key:0,size:a.lineWidth,color:i.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):a.variant===t.unref(Oe).Dots?(t.openBlock(),t.createBlock(t.unref(Dl),{key:1,color:i.value,radius:l.value.size/2},null,8,["color","radius"])):t.createCommentVNode("",!0),a.bgColor?(t.openBlock(),t.createElementBlock("svg",Yc,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:a.bgColor},null,8,qc)])):t.createCommentVNode("",!0)])],8,Kc)]),t.createElementVNode("rect",{x:a.x,y:a.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,Xc),t.renderSlot(a.$slots,"default",{id:r.value})],4))}}),Qc={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},eu=["aria-hidden","aria-label"],tu=["fill","width","height"],nu={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},ou={key:0};function lu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",nu,[o.title?(t.openBlock(),t.createElementBlock("title",ou,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,tu))],16,eu)}const ru=D(Qc,[["render",lu]]),au={class:"top-button-div text-white d-flex"},iu={inheritAttrs:!1,components:{Tooltip:j},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const e=this.data.taskNode;if(e?.type?.endsWith("SubflowGraphTask")){const n=e.task.subflowId??e.task;return n.namespace+" "+n.flowId}return S.Utils.afterLastDot(this.id)}}},su=Object.assign(iu,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:oe.Position,default:void 0},targetPosition:{type:oe.Position,default:void 0},id:{type:String,default:void 0}},emits:[S.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,r=()=>{l(S.EVENTS.COLLAPSE,o.id)};return(i,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(i.clusterName),3),t.createElementVNode("div",au,[e.data.collapsable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:a[0]||(a[0]=s=>r())},[t.createVNode(j,{title:i.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(ru,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),cu=D(su,[["__scopeId","data-v-0c251e77"]]),uu={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},du=["aria-hidden","aria-label"],mu=["fill","width","height"],fu={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"},pu={key:0};function gu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",fu,[o.title?(t.openBlock(),t.createElementBlock("title",pu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,mu))],16,du)}const $l=D(uu,[["render",gu]]),hu={name:"Dot",components:{Handle:oe.Handle,CircleIcon:$l},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}}}},Eu=Object.assign(hu,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(oe.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode($l,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(oe.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),yu=D(Eu,[["__scopeId","data-v-666f472b"]]),ku={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vu=["aria-hidden","aria-label"],Cu=["fill","width","height"],_u={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Nu={key:0};function Su(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",_u,[o.title?(t.openBlock(),t.createElementBlock("title",Nu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Cu))],16,vu)}const bu=D(ku,[["render",Su]]),wu={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Lu=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",wu,[e.addTask?(t.openBlock(),t.createBlock(bu,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Tu=D(Lu,[["__scopeId","data-v-536dd646"]]),Bu=["id","d","marker-end"],Uo=14,Vu=t.defineComponent({inheritAttrs:!1,__name:"EdgeNode",props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},setup(e){const n=e,o=t.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=u=>u;try{const{t:u}=yt();l=u}catch{}const r=t.computed(()=>{const{haveAdd:u}=n.data??{};return`${l("add task")} ${u?.length===2?`${l(u[1])} ${u[0]}`:""}`.trim()}),i=t.computed(()=>oe.getSmoothStepPath(n)),a=t.computed(()=>{const u=(n.targetX??0)-(n.sourceX??0),d=(n.targetY??0)-(n.sourceY??0);return Math.abs(d)>=Math.abs(u)}),s=t.computed(()=>{if(!a.value)return 0;const u=n.data?.edgeBoundary;return u==="top"?-Uo:u==="bottom"?Uo:0}),c=t.computed(()=>0);return(u,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[i.value?.length?(t.openBlock(),t.createElementBlock("path",{key:0,id:e.id,class:t.normalizeClass(o.value),style:t.normalizeStyle(e.data.haveDashArray?{strokeDasharray:"2"}:{}),d:i.value[0],"marker-end":e.markerEnd},null,14,Bu)):t.createCommentVNode("",!0),i.value?.length?(t.openBlock(),t.createBlock(t.unref(oe.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${i.value[1]+c.value}px,${i.value[2]+s.value}px)`})},[t.createVNode(j,{title:r.value},{default:t.withCtx(()=>[e.data.haveAdd?(t.openBlock(),t.createBlock(Tu,{key:0,"add-task":!0,onClick:d[0]||(d[0]=p=>u.$emit(t.unref(S.EVENTS).ADD_TASK,e.data.haveAdd)),class:t.normalizeClass({"text-danger":e.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):t.createCommentVNode("",!0)],64))}}),Iu=D(Vu,[["__scopeId","data-v-575e9f2a"]]),Au=["innerHTML"],Du=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(y,w)=>{w[0].date!==y[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const r=t.computed(()=>n.histories?.length&&new Date(n.histories[0].date.toString()).getTime()),i=t.computed(()=>n.histories[n.histories.length-1]),a=t.computed(()=>n.histories.filter(y=>y.date.isValid()&&y.date&&y.state));function s(){l.value||(l.value=setInterval(()=>{p(),n.histories&&!ne.isRunning(i.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return d()-r.value}function d(){return!n.histories||ne.isRunning(i.value.state)?+new Date:new Date(i.value.date.toString()).getTime()}function p(){o.value=a.value.length===0?" ":S.humanDuration(u()/1e3)}function h(y){return"ks-duration-tt-square-"+y.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(y,w)=>(t.openBlock(),t.createBlock(j,{key:i.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(k,v)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+v,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",h(k.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(k.state)+": ",1),t.createTextVNode(t.toDisplayString(S.dateFilter(k.date.toISOString(),"iso"))+" ",1),w[0]||(w[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,Au)]),_:1}))}}),$u={class:"btn-group content rounded-1 content-children text-truncate"},Ou={key:0,class:"taskRunCount"},Pu={key:1},xu={key:2},Ru=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=t.computed(()=>o.value.filter(i=>i.taskId===S.afterLastDot(n.uid??""))),r=t.computed(()=>{if(!l.value)return;const i=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())),a=Math.max(...l.value.map(s=>sn.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:sn(i).subtract(a,"second"),state:"CREATED"},{date:sn(i),state:n.state}]});return(i,a)=>(t.openBlock(),t.createElementBlock("div",$u,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",Ou,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",Pu," | ")):t.createCommentVNode("",!0),r.value?(t.openBlock(),t.createElementBlock("span",xu,[t.createVNode(Du,{histories:r.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),Mu=D(Ru,[["__scopeId","data-v-96fa5d6e"]]),Fu={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Uu=["aria-hidden","aria-label"],Hu=["fill","width","height"],zu={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"},Wu={key:0};function ju(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zu,[o.title?(t.openBlock(),t.createElementBlock("title",Wu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hu))],16,Uu)}const Gu=D(Fu,[["render",ju]]),Ku={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yu=["aria-hidden","aria-label"],qu=["fill","width","height"],Xu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Zu={key:0};function Ju(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xu,[o.title?(t.openBlock(),t.createElementBlock("title",Zu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qu))],16,Yu)}const Wn=D(Ku,[["render",Ju]]),Qu={class:"main-content"},ed={class:"icon rounded"},td={class:"node-content"},nd={class:"d-flex node-title"},od={class:"text-truncate task-title"},ld={key:0,class:"d-flex"},rd={class:"text-white top-button-div"},ad=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 r(){o(S.EVENTS.MOUSE_OVER,l.data.node)}function i(){o(S.EVENTS.MOUSE_LEAVE)}const a=t.computed(()=>l.data?.expandable||!1),s=t.computed(()=>l.data.node?.plugin??l.data.node?.task??l.data.node?.trigger??null),c=t.computed(()=>s.value?.description??null),u=t.computed(()=>S.Utils.afterLastDot(l.id??"")),d=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),p=t.computed(()=>[{"unused-path":l.data.unused,disabled:s.value?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),h=t.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(s.value)return s.value?.type}),y=t.computed(()=>{if(s.value?.type?.endsWith("SubflowGraphTask")){const k=s.value.subflowId??s.value;return k.namespace+" "+k.flowId}return u.value}),w=t.computed(()=>l.title??u.value);return(k,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...p.value,"running-border-animation":e.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:e.state?`var(--ks-border-${e.state.toLowerCase()})`:void 0}),onMouseover:r,onMouseleave:i},[t.createElementVNode("div",Qu,[t.createElementVNode("div",ed,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.iconComponent||zn),{cls:h.value,class:t.normalizeClass([d.value,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",td,[t.createElementVNode("div",nd,[t.createElementVNode("div",od,[t.createVNode(j,{title:y.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(w.value),1)]),_:1},8,["title"])]),c.value?(t.openBlock(),t.createElementBlock("span",ld,[t.createVNode(j,{title:k.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(Gu,{onClick:v[0]||(v[0]=f=>k.$emit(t.unref(S.EVENTS).SHOW_DESCRIPTION,{id:u.value,description:c.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(k.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",rd,[t.renderSlot(k.$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:v[1]||(v[1]=f=>k.$emit(t.unref(S.EVENTS).OPEN_LINK,{link:e.data.link}))},[t.createVNode(j,{title:k.$t("open")},{default:t.withCtx(()=>[t.createVNode(Il,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:v[2]||(v[2]=f=>k.$emit(t.unref(S.EVENTS).EXPAND))},[t.createVNode(j,{title:k.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Wn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(k.$slots,"badge-button-after",{},void 0,!0)])]),t.renderSlot(k.$slots,"details",{},void 0,!0)],38))}}),jn=D(ad,[["__scopeId","data-v-bf40c998"]]),Gn=Symbol("execution-injection-key"),Ol=Symbol("subflows-executions-injection-key"),id={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sd=["aria-hidden","aria-label"],cd=["fill","width","height"],ud={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"},dd={key:0};function md(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ud,[o.title?(t.openBlock(),t.createElementBlock("title",dd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,cd))],16,sd)}const Kn=D(id,[["render",md]]),fd={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pd=["aria-hidden","aria-label"],gd=["fill","width","height"],hd={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},Ed={key:0};function yd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",hd,[o.title?(t.openBlock(),t.createElementBlock("title",Ed,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gd))],16,pd)}const Yn=D(fd,[["render",yd]]),kd={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vd=["aria-hidden","aria-label"],Cd=["fill","width","height"],_d={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"},Nd={key:0};function Sd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",_d,[o.title?(t.openBlock(),t.createElementBlock("title",Nd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Cd))],16,vd)}const bd=D(kd,[["render",Sd]]),wd={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ld=["aria-hidden","aria-label"],Td=["fill","width","height"],Bd={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Vd={key:0};function Id(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Bd,[o.title?(t.openBlock(),t.createElementBlock("title",Vd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Td))],16,Ld)}const Ad=D(wd,[["render",Id]]),Dd={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$d=["aria-hidden","aria-label"],Od=["fill","width","height"],Pd={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"},xd={key:0};function Rd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Pd,[o.title?(t.openBlock(),t.createElementBlock("title",xd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Od))],16,$d)}const Md=D(Dd,[["render",Rd]]),Fd={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ud=["aria-hidden","aria-label"],Hd=["fill","width","height"],zd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},Wd={key:0};function jd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",zd,[o.title?(t.openBlock(),t.createElementBlock("title",Wd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Hd))],16,Ud)}const Gd=D(Fd,[["render",jd]]),Kd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yd=["aria-hidden","aria-label"],qd=["fill","width","height"],Xd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Zd={key:0};function Jd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Xd,[o.title?(t.openBlock(),t.createElementBlock("title",Zd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,qd))],16,Yd)}const Pl=D(Kd,[["render",Jd]]),Qd={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},em=["aria-hidden","aria-label"],tm=["fill","width","height"],nm={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},om={key:0};function lm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",nm,[o.title?(t.openBlock(),t.createElementBlock("title",om,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,tm))],16,em)}const Kt=D(Qd,[["render",lm]]),rm={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},am=["aria-hidden","aria-label"],im=["fill","width","height"],sm={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},cm={key:0};function um(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",sm,[o.title?(t.openBlock(),t.createElementBlock("title",cm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,im))],16,am)}const dm=D(rm,[["render",um]]),mm=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:oe.Position.Right},targetPosition:{default:oe.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,r=t.inject(Gn),i=t.inject(Ol),a=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>S.Utils.afterLastDot(o.id)),c=t.computed(()=>{const v=o.data.executionId;if(v)return v===r?.value?.id?r?.value:Object.values(i?.value||{}).find(f=>f.id===v)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),d=t.computed(()=>u.value.filter(v=>v.taskId===S.Utils.afterLastDot(o.data.node.uid))),p=t.computed(()=>{if(!d.value?.length)return null;if(d.value.length===1)return d.value[0].state.current;const v=d.value.map(L=>L.state.current),f=[ne.FAILED,ne.KILLED,ne.WARNING,ne.SKIPPED,ne.KILLING,ne.RUNNING,ne.SUCCESS,ne.RESTARTED,ne.CREATED];return v.map(L=>[f.indexOf(L[1]),L]).sort().map(L=>L[1])[0]}),h=t.computed(()=>({"execution-no-taskrun":!!(c.value&&d.value&&d.value.length===0)})),y=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),w=t.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const v=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:v.namespace,id:v.flowId,executionId:c.value?.taskRunList.filter(f=>f.id===o.data.node.taskRun.id&&f.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),k=t.computed(()=>{if(p.value===ne.RUNNING)return"task is running";if(p.value===ne.SUCCESS)return"task was successful";if(p.value===ne.WARNING)return"task sent a warning";if(p.value===ne.SKIPPED)return"task was skipped";if(p.value===ne.FAILED)return"task failed"});return(v,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(jn,{id:e.id,data:w.value,state:p.value,class:t.normalizeClass(h.value),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:f[6]||(f[6]=E=>l(t.unref(S.EVENTS).SHOW_DESCRIPTION,E)),onExpand:f[7]||(f[7]=E=>l(t.unref(S.EVENTS).EXPAND,y.value)),onOpenLink:f[8]||(f[8]=E=>l(t.unref(S.EVENTS).OPEN_LINK,E)),onMouseover:f[9]||(f[9]=E=>l(t.unref(S.EVENTS).MOUSE_OVER,E)),onMouseleave:f[10]||(f[10]=E=>l(t.unref(S.EVENTS).MOUSE_LEAVE))},{details:t.withCtx(()=>[t.renderSlot(v.$slots,"details",{},void 0,!0)]),content:t.withCtx(()=>[c.value?(t.openBlock(),t.createBlock(Mu,{key:0,execution:c.value,task:e.data.node.task,color:a.value,uid:e.data.node.uid,state:p.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),e.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.playgroundEnabled&&e.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:f[0]||(f[0]=E=>l(t.unref(S.EVENTS).RUN_TASK,{task:e.data.node.task}))},[t.createVNode(j,{style:{display:"flex"},title:v.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(Gd,{class:"button-play-icon",alt:v.$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-${p.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${p.value?.toLowerCase()})`})},[t.createVNode(j,{style:{display:"flex"},title:k.value?v.$t(k.value):void 0},{default:t.withCtx(()=>[p.value===t.unref(ne).RUNNING?(t.openBlock(),t.createBlock(nl,{key:0,alt:k.value?v.$t(k.value):void 0},null,8,["alt"])):p.value===t.unref(ne).SUCCESS?(t.openBlock(),t.createBlock(Pl,{key:1,alt:k.value?v.$t(k.value):void 0},null,8,["alt"])):p.value===t.unref(ne).WARNING?(t.openBlock(),t.createBlock(Kt,{key:2,alt:k.value?v.$t(k.value):void 0},null,8,["alt"])):p.value===t.unref(ne).SKIPPED?(t.openBlock(),t.createBlock(dm,{key:3,alt:k.value?v.$t(k.value):void 0},null,8,["alt"])):p.value===t.unref(ne).FAILED?(t.openBlock(),t.createBlock(At,{key:4,alt:k.value?v.$t(k.value):void 0},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:f[1]||(f[1]=E=>l(t.unref(S.EVENTS).SHOW_CONDITION,{id:s.value,task:e.data.node.task,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(j,{title:v.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(Md,{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-${a.value}`]]),onClick:f[2]||(f[2]=E=>l(t.unref(S.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:d.value}))},[t.createVNode(j,{title:v.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(bd,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!e.data.isReadOnly&&e.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${a.value}`]]),onClick:f[3]||(f[3]=E=>l(t.unref(S.EVENTS).ADD_ERROR,{task:e.data.node.task}))},[t.createVNode(j,{title:v.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(Ad,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${a.value}`]]),onClick:f[4]||(f[4]=E=>l(t.unref(S.EVENTS).EDIT,{task:e.data.node.task,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(j,{title:v.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Kn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${a.value}`]]),onClick:f[5]||(f[5]=E=>l(t.unref(S.EVENTS).DELETE,{id:s.value,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(j,{title:v.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:3},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),fm=D(mm,[["__scopeId","data-v-459a2e06"]]),pm={name:"Task",inheritAttrs:!1,inject:{execution:{from:Gn}},computed:{SECTIONS(){return S.SECTIONS},EVENTS(){return S.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return S.Utils.afterLastDot(this.id)}},emits:[S.EVENTS.DELETE,S.EVENTS.EDIT,S.EVENTS.SHOW_DESCRIPTION],components:{Delete:Yn,Pencil:Kn,Handle:oe.Handle,Tooltip:j},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)}}},gm=Object.assign(pm,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(jn,{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(j,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Kn,{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(j,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),hm={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Em=["aria-hidden","aria-label"],ym=["fill","width","height"],km={d:"M11 15H6L13 1V9H18L11 23V15Z"},vm={key:0};function Cm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",km,[o.title?(t.openBlock(),t.createElementBlock("title",vm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ym))],16,Em)}const _m=D(hm,[["render",Cm]]),Nm={class:"collapsed-cluster-node d-flex"},Sm={class:"node-text"},bm={class:"text-white top-button-div"},wm={components:{Tooltip:j,Handle:oe.Handle,ArrowExpand:Wn,LightningBolt:_m},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(){return this.data?.expandable||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Lm=Object.assign(wm,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",Nm,[t.createElementVNode("span",Sm,[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",bm,[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(j,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Wn,{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(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Tm=D(Lm,[["__scopeId","data-v-89413b39"]]),Bm={name:"SplitCellsVerticalIcon",emits:["click"]},Vm={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Im(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("svg",Vm,[...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 Am=D(Bm,[["render",Im],["__scopeId","data-v-084c51e6"]]),Dm={name:"SplitCellsHorizontalIcon",emits:["click"]},$m={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Om(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("svg",$m,[...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 Pm=D(Dm,[["render",Om],["__scopeId","data-v-c77c1469"]]),xm={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rm=["aria-hidden","aria-label"],Mm=["fill","width","height"],Fm={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Um={key:0};function Hm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Fm,[o.title?(t.openBlock(),t.createElementBlock("title",Um,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Mm))],16,Rm)}const zm=D(xm,[["render",Hm]]);function Wm(e,n){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const o=document.implementation.createHTMLDocument(),l=o.createElement("base"),r=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(r),n&&(l.href=n),r.href=e,r.href}const jm=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Me(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}let et=null;function xl(e={}){return et||(e.includeStyleProperties?(et=e.includeStyleProperties,et):(et=Me(window.getComputedStyle(document.documentElement)),et))}function xt(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function Gm(e){const n=xt(e,"border-left-width"),o=xt(e,"border-right-width");return e.clientWidth+n+o}function Km(e){const n=xt(e,"border-top-width"),o=xt(e,"border-bottom-width");return e.clientHeight+n+o}function Rl(e,n={}){const o=n.width||Gm(e),l=n.height||Km(e);return{width:o,height:l}}function Ym(){let e,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(e=parseInt(o,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ke=16384;function qm(e){(e.width>ke||e.height>ke)&&(e.width>ke&&e.height>ke?e.width>e.height?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke):e.width>ke?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke))}function Rt(e){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function Xm(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function Zm(e,n,o){const l="http://www.w3.org/2000/svg",r=document.createElementNS(l,"svg"),i=document.createElementNS(l,"foreignObject");return r.setAttribute("width",`${n}`),r.setAttribute("height",`${o}`),r.setAttribute("viewBox",`0 0 ${n} ${o}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),r.appendChild(i),i.appendChild(e),Xm(r)}const Ee=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function Jm(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function Qm(e,n){return xl(n).map(o=>{const l=e.getPropertyValue(o),r=e.getPropertyPriority(o);return`${o}: ${l}${r?" !important":""};`}).join(" ")}function ef(e,n,o,l){const r=`.${e}:${n}`,i=o.cssText?Jm(o):Qm(o,l);return document.createTextNode(`${r}{${i}}`)}function Ho(e,n,o,l){const r=window.getComputedStyle(e,o),i=r.getPropertyValue("content");if(i===""||i==="none")return;const a=jm();try{n.className=`${n.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(ef(a,o,r,l)),n.appendChild(s)}function tf(e,n,o){Ho(e,n,":before",o),Ho(e,n,":after",o)}const zo="application/font-woff",Wo="image/jpeg",nf={woff:zo,woff2:zo,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 of(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function qn(e){const n=of(e).toLowerCase();return nf[n]||""}function lf(e){return e.split(/,/)[1]}function Tn(e){return e.search(/^(data:)/)!==-1}function rf(e,n){return`data:${n};base64,${e}`}async function Ml(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const r=await l.blob();return new Promise((i,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{i(o({res:l,result:s.result}))}catch(c){a(c)}},s.readAsDataURL(r)})}const fn={};function af(e,n,o){let l=e.replace(/\?.*/,"");return o&&(l=e),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function Xn(e,n,o){const l=af(e,n,o.includeQueryParams);if(fn[l]!=null)return fn[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const i=await Ml(e,o.fetchRequestInit,({res:a,result:s})=>(n||(n=a.headers.get("Content-Type")||""),lf(s)));r=rf(i,n)}catch(i){r=o.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return fn[l]=r,r}async function sf(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):Rt(n)}async function cf(e,n){if(e.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,a?.drawImage(e,0,0,i.width,i.height);const s=i.toDataURL();return Rt(s)}const o=e.poster,l=qn(o),r=await Xn(o,l,n);return Rt(r)}async function uf(e,n){var o;try{if(!((o=e?.contentDocument)===null||o===void 0)&&o.body)return await Yt(e.contentDocument.body,n,!0)}catch{}return e.cloneNode(!1)}async function df(e,n){return Ee(e,HTMLCanvasElement)?sf(e):Ee(e,HTMLVideoElement)?cf(e,n):Ee(e,HTMLIFrameElement)?uf(e,n):e.cloneNode(Fl(e))}const mf=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Fl=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function ff(e,n,o){var l,r;if(Fl(n))return n;let i=[];return mf(e)&&e.assignedNodes?i=Me(e.assignedNodes()):Ee(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?i=Me(e.contentDocument.body.childNodes):i=Me(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),i.length===0||Ee(e,HTMLVideoElement)||await i.reduce((a,s)=>a.then(()=>Yt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function pf(e,n,o){const l=n.style;if(!l)return;const r=window.getComputedStyle(e);r.cssText?(l.cssText=r.cssText,l.transformOrigin=r.transformOrigin):xl(o).forEach(i=>{let a=r.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Ee(e,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&n.getAttribute("d")&&(a=`path(${n.getAttribute("d")})`),l.setProperty(i,a,r.getPropertyPriority(i))})}function gf(e,n){Ee(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),Ee(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function hf(e,n){if(Ee(e,HTMLSelectElement)){const l=Array.from(n.children).find(r=>e.value===r.getAttribute("value"));l&&l.setAttribute("selected","")}}function Ef(e,n,o){return Ee(n,Element)&&(pf(e,n,o),tf(e,n,o),gf(e,n),hf(e,n)),n}async function yf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let i=0;i<o.length;i++){const s=o[i].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Yt(u,n,!0))}}const r=Object.values(l);if(r.length){const i="http://www.w3.org/1999/xhtml",a=document.createElementNS(i,"svg");a.setAttribute("xmlns",i),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(i,"defs");a.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);e.appendChild(a)}return e}async function Yt(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>df(l,n)).then(l=>ff(e,l,n)).then(l=>Ef(e,l,n)).then(l=>yf(l,n))}const Ul=/url\((['"]?)([^'"]+?)\1\)/g,kf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,vf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Cf(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function _f(e){const n=[];return e.replace(Ul,(o,l,r)=>(n.push(r),o)),n.filter(o=>!Tn(o))}async function Nf(e,n,o,l,r){try{const i=o?Wm(n,o):n,a=qn(n);let s;return r||(s=await Xn(i,a,l)),e.replace(Cf(n),`$1${s}$3`)}catch{}return e}function Sf(e,{preferredFontFormat:n}){return n?e.replace(vf,o=>{for(;;){const[l,,r]=kf.exec(o)||[];if(!r)return"";if(r===n)return`src: ${l};`}}):e}function Hl(e){return e.search(Ul)!==-1}async function zl(e,n,o){if(!Hl(e))return e;const l=Sf(e,o);return _f(l).reduce((i,a)=>i.then(s=>Nf(s,a,n,o)),Promise.resolve(l))}async function tt(e,n,o){var l;const r=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(r){const i=await zl(r,null,o);return n.style.setProperty(e,i,n.style.getPropertyPriority(e)),!0}return!1}async function bf(e,n){await tt("background",e,n)||await tt("background-image",e,n),await tt("mask",e,n)||await tt("-webkit-mask",e,n)||await tt("mask-image",e,n)||await tt("-webkit-mask-image",e,n)}async function wf(e,n){const o=Ee(e,HTMLImageElement);if(!(o&&!Tn(e.src))&&!(Ee(e,SVGImageElement)&&!Tn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,r=await Xn(l,qn(l),n);await new Promise((i,a)=>{e.onload=i,e.onerror=n.onImageErrorHandler?(...c)=>{try{i(n.onImageErrorHandler(...c))}catch(u){a(u)}}:a;const s=e;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Lf(e,n){const l=Me(e.childNodes).map(r=>Wl(r,n));await Promise.all(l).then(()=>e)}async function Wl(e,n){Ee(e,Element)&&(await bf(e,n),await wf(e,n),await Lf(e,n))}function Tf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(r=>{o[r]=l[r]}),e}const jo={};async function Go(e){let n=jo[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},jo[e]=n,n}async function Ko(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,i=(o.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Ml(s,n.fetchRequestInit,({result:c})=>(o=o.replace(a,`url(${c})`),[a,c]))});return Promise.all(i).then(()=>o)}function Yo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let c=i.exec(l);if(c===null){if(c=s.exec(l),c===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;n.push(c[0])}return n}async function Bf(e,n){const o=[],l=[];return e.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let s=a+1;const c=i.href,u=Go(c).then(d=>Ko(d,n)).then(d=>Yo(d).forEach(p=>{try{r.insertRule(p,p.startsWith("@import")?s+=1:r.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:p,error:h})}})).catch(d=>{console.error("Error loading remote css",d.toString())});l.push(u)}})}catch(i){const a=e.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&l.push(Go(r.href).then(s=>Ko(s,n)).then(s=>Yo(s).forEach(c=>{a.insertRule(c,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(l).then(()=>(e.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach(i=>{o.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${r.href}`,i)}}),o))}function Vf(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Hl(n.style.getPropertyValue("src")))}async function If(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Me(e.ownerDocument.styleSheets),l=await Bf(o,n);return Vf(l)}function jl(e){return e.trim().replace(/["']/g,"")}function Af(e){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(i=>{n.add(jl(i))}),Array.from(l.children).forEach(i=>{i instanceof HTMLElement&&o(i)})}return o(e),n}async function Df(e,n){const o=await If(e,n),l=Af(e);return(await Promise.all(o.filter(i=>l.has(jl(i.style.fontFamily))).map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return zl(i.cssText,a,n)}))).join(`
|
|
9
|
-
`)}async function
|
|
10
|
-
${
|
|
11
|
-
stroke: ${
|
|
12
|
-
stroke-width: ${
|
|
13
|
-
stroke-dasharray: ${
|
|
8
|
+
</svg>`));return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.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(zn,{"custom-icon":{icon:r.value},class:"bg-pink rounded",theme:"light"},null,8,["custom-icon"]),t.createElementVNode("div",Uc,[t.createElementVNode("div",Hc,[t.createVNode(j,{title:e.data.flowId},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.flowId),1)]),_:1},8,["title"])]),t.createElementVNode("div",zc,[t.createVNode(j,{title:e.data.namespace},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.data.namespace),1)]),_:1},8,["title"])])]),t.createElementVNode("div",Wc,[t.renderSlot(a.$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=>a.$emit(t.unref(S.EVENTS).OPEN_LINK,e.data))},[t.createVNode(j,{title:t.unref(l)("open")},{default:t.withCtx(()=>[t.createVNode(Al,{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(j,{title:t.unref(l)("expand")},{default:t.withCtx(()=>[t.createVNode(Fc,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"badge-button-after",{},void 0,!0)])],2),t.createVNode(t.unref(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Gc=D(jc,[["__scopeId","data-v-2271d5b0"]]);var Oe=(e=>(e.Lines="lines",e.Dots="dots",e))(Oe||{});const Dl=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]}`})},$l=function({radius:e,color:n}){return t.h("circle",{cx:e,cy:e,r:e,fill:n})};Oe.Lines+"",Oe.Dots+"";const Kc={[Oe.Dots]:"#81818a",[Oe.Lines]:"#eee"},Yc=["id","x","y","width","height","patternTransform"],qc={key:2,height:"100",width:"100"},Xc=["fill"],Zc=["x","y","fill"],Jc={name:"Background",compatConfig:{MODE:3}},Qc=t.defineComponent({...Jc,props:{id:{},variant:{default:()=>Oe.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:n,viewport:o}=oe.useVueFlow(),l=t.computed(()=>{const i=o.value.zoom,[s,c]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],u=[s*i||1,c*i||1],d=e.size*i,[h,p]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset],k=[h*i||1+u[0]/2,p*i||1+u[1]/2];return{scaledGap:u,offset:k,size:d}}),r=t.toRef(()=>`pattern-${n}${e.id?`-${e.id}`:""}`),a=t.toRef(()=>e.color||e.patternColor||Kc[e.variant||Oe.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:r.value},()=>[t.createElementVNode("pattern",{id:r.value,x:t.unref(o).x%l.value.scaledGap[0],y:t.unref(o).y%l.value.scaledGap[1],width:l.value.scaledGap[0],height:l.value.scaledGap[1],patternTransform:`translate(-${l.value.offset[0]},-${l.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[t.renderSlot(i.$slots,"pattern",{},()=>[i.variant===t.unref(Oe).Lines?(t.openBlock(),t.createBlock(t.unref(Dl),{key:0,size:i.lineWidth,color:a.value,dimensions:l.value.scaledGap},null,8,["size","color","dimensions"])):i.variant===t.unref(Oe).Dots?(t.openBlock(),t.createBlock(t.unref($l),{key:1,color:a.value,radius:l.value.size/2},null,8,["color","radius"])):t.createCommentVNode("",!0),i.bgColor?(t.openBlock(),t.createElementBlock("svg",qc,[t.createElementVNode("rect",{width:"100%",height:"100%",fill:i.bgColor},null,8,Xc)])):t.createCommentVNode("",!0)])],8,Yc)]),t.createElementVNode("rect",{x:i.x,y:i.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,Zc),t.renderSlot(i.$slots,"default",{id:r.value})],4))}}),eu={name:"ArrowCollapseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tu=["aria-hidden","aria-label"],nu=["fill","width","height"],ou={d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"},lu={key:0};function ru(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-collapse-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ou,[o.title?(t.openBlock(),t.createElementBlock("title",lu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,nu))],16,tu)}const au=D(eu,[["render",ru]]),iu={class:"top-button-div text-white d-flex"},su={inheritAttrs:!1,components:{Tooltip:j},data(){return{tooltips:[]}},computed:{classes(){return{"unused-path":this.data.unused}},clusterName(){const e=this.data.taskNode;if(e?.type?.endsWith("SubflowGraphTask")){const n=e.task.subflowId??e.task;return n.namespace+" "+n.flowId}return S.Utils.afterLastDot(this.id)}}},cu=Object.assign(su,{__name:"ClusterNode",props:{data:{type:Object,default:void 0},sourcePosition:{type:oe.Position,default:void 0},targetPosition:{type:oe.Position,default:void 0},id:{type:String,default:void 0}},emits:[S.EVENTS.COLLAPSE],setup(e,{emit:n}){const o=e,l=n,r=()=>{l(S.EVENTS.COLLAPSE,o.id)};return(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.classes)},[t.createElementVNode("span",{class:t.normalizeClass(["badge rounded-pill text-truncate text-color position-reliative",[`bg-${e.data.color}`]])},t.toDisplayString(a.clusterName),3),t.createElementVNode("div",iu,[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=>r())},[t.createVNode(j,{title:a.$t("collapse")},{default:t.withCtx(()=>[t.createVNode(au,{class:"button-icon",alt:"Collapse task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)])],2))}}),uu=D(cu,[["__scopeId","data-v-0c251e77"]]),du={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mu=["aria-hidden","aria-label"],fu=["fill","width","height"],pu={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"},gu={key:0};function hu(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon circle-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",pu,[o.title?(t.openBlock(),t.createElementBlock("title",gu,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,fu))],16,mu)}const Ol=D(du,[["render",hu]]),Eu={name:"Dot",components:{Handle:oe.Handle,CircleIcon:Ol},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}}}},yu=Object.assign(Eu,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.classes)},[t.createVNode(t.unref(oe.Handle),{type:"source",class:"custom-handle",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",{class:t.normalizeClass(["dot",n.classes])},[t.createVNode(Ol,{class:t.normalizeClass([{"text-danger":e.data.node.branchType==="ERROR"},"circle"]),alt:"circle"},null,8,["class"])],2),t.createVNode(t.unref(oe.Handle),{type:"target",class:"custom-handle",position:e.targetPosition},null,8,["position"])],2))}}),ku=D(yu,[["__scopeId","data-v-666f472b"]]),vu={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cu=["aria-hidden","aria-label"],_u=["fill","width","height"],Nu={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Su={key:0};function bu(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon plus-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nu,[o.title?(t.openBlock(),t.createElementBlock("title",Su,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_u))],16,Cu)}const wu=D(vu,[["render",bu]]),Lu={class:"add-task-div rounded d-flex justify-content-center align-items-center"},Tu=t.defineComponent({name:"AddTaskButton",__name:"AddTaskButton",props:{addTask:{type:Boolean}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",Lu,[e.addTask?(t.openBlock(),t.createBlock(wu,{key:0,alt:"add task icon"})):t.createCommentVNode("",!0)]))}}),Bu=D(Tu,[["__scopeId","data-v-536dd646"]]),Vu=["id","d","marker-end"],Ho=14,Iu=t.defineComponent({inheritAttrs:!1,__name:"EdgeNode",props:{id:{type:String,default:void 0},data:{type:Object,default:void 0},sourceX:{type:Number,default:void 0},sourceY:{type:Number,default:void 0},targetX:{type:Number,default:void 0},targetY:{type:Number,default:void 0},markerEnd:{type:String,default:void 0},sourcePosition:{type:String,default:void 0},targetPosition:{type:String,default:void 0}},setup(e){const n=e,o=t.computed(()=>n.data?{"vue-flow__edge-path":!0,["stroke-"+n.data.color]:n.data.color,"unused-path":n.data.unused}:{});let l=u=>u;try{const{t:u}=yt();l=u}catch{}const r=t.computed(()=>{const{haveAdd:u}=n.data??{};return`${l("add task")} ${u?.length===2?`${l(u[1])} ${u[0]}`:""}`.trim()}),a=t.computed(()=>oe.getSmoothStepPath(n)),i=t.computed(()=>{const u=(n.targetX??0)-(n.sourceX??0),d=(n.targetY??0)-(n.sourceY??0);return Math.abs(d)>=Math.abs(u)}),s=t.computed(()=>{if(!i.value)return 0;const u=n.data?.edgeBoundary;return u==="top"?-Ho:u==="bottom"?Ho:0}),c=t.computed(()=>0);return(u,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[a.value?.length?(t.openBlock(),t.createElementBlock("path",{key:0,id:e.id,class:t.normalizeClass(o.value),style:t.normalizeStyle(e.data.haveDashArray?{strokeDasharray:"2"}:{}),d:a.value[0],"marker-end":e.markerEnd},null,14,Vu)):t.createCommentVNode("",!0),a.value?.length?(t.openBlock(),t.createBlock(t.unref(oe.EdgeLabelRenderer),{key:1,style:{"z-index":"10"}},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${a.value[1]+c.value}px,${a.value[2]+s.value}px)`})},[t.createVNode(j,{title:r.value},{default:t.withCtx(()=>[e.data.haveAdd?(t.openBlock(),t.createBlock(Bu,{key:0,"add-task":!0,onClick:d[0]||(d[0]=h=>u.$emit(t.unref(S.EVENTS).ADD_TASK,e.data.haveAdd)),class:t.normalizeClass({"text-danger":e.data.color})},null,8,["class"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4)]),_:1})):t.createCommentVNode("",!0)],64))}}),Au=D(Iu,[["__scopeId","data-v-575e9f2a"]]),Du=["innerHTML"],$u=t.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const n=e;t.watch(()=>n.histories,(k,I)=>{I[0].date!==k[0].date&&s()});const o=t.ref(""),l=t.ref();t.onMounted(()=>{s()});const r=t.computed(()=>n.histories?.length&&new Date(n.histories[0].date.toString()).getTime()),a=t.computed(()=>n.histories[n.histories.length-1]),i=t.computed(()=>n.histories.filter(k=>k.date.isValid()&&k.date&&k.state));function s(){l.value||(l.value=setInterval(()=>{h(),n.histories&&!ne.isRunning(a.value.state)&&c()},100))}function c(){l.value&&(clearInterval(l.value),l.value=void 0)}function u(){return d()-r.value}function d(){return!n.histories||ne.isRunning(a.value.state)?+new Date:new Date(a.value.date.toString()).getTime()}function h(){o.value=i.value.length===0?" ":S.humanDuration(u()/1e3)}function p(k){return"ks-duration-tt-square-"+k.toLowerCase()}return t.onBeforeUnmount(()=>{c()}),(k,I)=>(t.openBlock(),t.createBlock(j,{key:a.value.date.toString()},{content:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(y,N)=>(t.openBlock(),t.createElementBlock("span",{key:"tt-"+N,class:"ks-duration-tt"},[t.createElementVNode("span",{class:t.normalizeClass(["ks-duration-tt-square",p(y.state)])},null,2),t.createElementVNode("strong",null,t.toDisplayString(y.state)+": ",1),t.createTextVNode(t.toDisplayString(S.dateFilter(y.date.toISOString(),"iso"))+" ",1),I[0]||(I[0]=t.createElementVNode("br",null,null,-1))]))),128))]),default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:o.value},null,8,Du)]),_:1}))}}),Ou={class:"btn-group content rounded-1 content-children text-truncate"},Pu={key:0,class:"taskRunCount"},xu={key:1},Ru={key:2},Mu=t.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{},state:{}},setup(e){const n=e,o=t.computed(()=>n.execution?.taskRunList?n.execution.taskRunList:[]),l=t.computed(()=>o.value.filter(a=>a.taskId===S.afterLastDot(n.uid??""))),r=t.computed(()=>{if(!l.value)return;const a=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=>sn.duration(s.state.duration).asMilliseconds()/1e3,0));return[{date:sn(a).subtract(i,"second"),state:"CREATED"},{date:sn(a),state:n.state}]});return(a,i)=>(t.openBlock(),t.createElementBlock("div",Ou,[l.value.length>0?(t.openBlock(),t.createElementBlock("span",Pu,t.toDisplayString(l.value.length)+" task runs",1)):t.createCommentVNode("",!0),l.value.length>0?(t.openBlock(),t.createElementBlock("span",xu," | ")):t.createCommentVNode("",!0),r.value?(t.openBlock(),t.createElementBlock("span",Ru,[t.createVNode($u,{histories:r.value},null,8,["histories"])])):t.createCommentVNode("",!0)]))}}),Fu=D(Mu,[["__scopeId","data-v-96fa5d6e"]]),Uu={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hu=["aria-hidden","aria-label"],zu=["fill","width","height"],Wu={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"},ju={key:0};function Gu(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon information-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wu,[o.title?(t.openBlock(),t.createElementBlock("title",ju,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zu))],16,Hu)}const Ku=D(Uu,[["render",Gu]]),Yu={name:"ArrowExpandIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qu=["aria-hidden","aria-label"],Xu=["fill","width","height"],Zu={d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"},Ju={key:0};function Qu(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon arrow-expand-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Zu,[o.title?(t.openBlock(),t.createElementBlock("title",Ju,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xu))],16,qu)}const Wn=D(Yu,[["render",Qu]]),ed={class:"main-content"},td={class:"icon rounded"},nd={class:"node-content"},od={class:"d-flex node-title"},ld={class:"text-truncate task-title"},rd={key:0,class:"d-flex"},ad={class:"text-white top-button-div"},id=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 r(){o(S.EVENTS.MOUSE_OVER,l.data.node)}function a(){o(S.EVENTS.MOUSE_LEAVE)}const i=t.computed(()=>l.data?.expandable||!1),s=t.computed(()=>l.data.node?.plugin??l.data.node?.task??l.data.node?.trigger??null),c=t.computed(()=>s.value?.description??null),u=t.computed(()=>S.Utils.afterLastDot(l.id??"")),d=t.computed(()=>["default","danger"].includes(l.data.color)?"":l.data.color),h=t.computed(()=>[{"unused-path":l.data.unused,disabled:s.value?.disabled||l.data.parent?.taskNode?.task?.disabled},l.class]),p=t.computed(()=>{if(l.data.node.triggerDeclaration)return l.data.node.triggerDeclaration.type;if(s.value)return s.value?.type}),k=t.computed(()=>{if(s.value?.type?.endsWith("SubflowGraphTask")){const y=s.value.subflowId??s.value;return y.namespace+" "+y.flowId}return u.value}),I=t.computed(()=>l.title??u.value);return(y,N)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["node-wrapper rounded-3",{...h.value,"running-border-animation":e.state==="RUNNING"}]),style:t.normalizeStyle({borderColor:e.state?`var(--ks-border-${e.state.toLowerCase()})`:void 0}),onMouseover:r,onMouseleave:a},[t.createElementVNode("div",ed,[t.createElementVNode("div",td,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.iconComponent||zn),{cls:p.value,class:t.normalizeClass([d.value,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),t.createElementVNode("div",nd,[t.createElementVNode("div",od,[t.createElementVNode("div",ld,[t.createVNode(j,{title:k.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(I.value),1)]),_:1},8,["title"])]),c.value?(t.openBlock(),t.createElementBlock("span",rd,[t.createVNode(j,{title:y.$t("show description"),class:"d-flex align-items-center"},{default:t.withCtx(()=>[t.createVNode(Ku,{onClick:N[0]||(N[0]=m=>y.$emit(t.unref(S.EVENTS).SHOW_DESCRIPTION,{id:u.value,description:c.value})),class:"description-button ms-2"})]),_:1},8,["title"])])):t.createCommentVNode("",!0)]),t.renderSlot(y.$slots,"content",{},void 0,!0)]),t.createElementVNode("div",ad,[t.renderSlot(y.$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:N[1]||(N[1]=m=>y.$emit(t.unref(S.EVENTS).OPEN_LINK,{link:e.data.link}))},[t.createVNode(j,{title:y.$t("open")},{default:t.withCtx(()=>[t.createVNode(Al,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),i.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:N[2]||(N[2]=m=>y.$emit(t.unref(S.EVENTS).EXPAND))},[t.createVNode(j,{title:y.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Wn,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),t.renderSlot(y.$slots,"badge-button-after",{},void 0,!0)])]),t.renderSlot(y.$slots,"details",{},void 0,!0)],38))}}),jn=D(id,[["__scopeId","data-v-bf40c998"]]),Gn=Symbol("execution-injection-key"),Pl=Symbol("subflows-executions-injection-key"),sd={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cd=["aria-hidden","aria-label"],ud=["fill","width","height"],dd={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"},md={key:0};function fd(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",dd,[o.title?(t.openBlock(),t.createElementBlock("title",md,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ud))],16,cd)}const Kn=D(sd,[["render",fd]]),pd={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gd=["aria-hidden","aria-label"],hd=["fill","width","height"],Ed={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},yd={key:0};function kd(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon delete-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Ed,[o.title?(t.openBlock(),t.createElementBlock("title",yd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,hd))],16,gd)}const Yn=D(pd,[["render",kd]]),vd={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cd=["aria-hidden","aria-label"],_d=["fill","width","height"],Nd={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"},Sd={key:0};function bd(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Nd,[o.title?(t.openBlock(),t.createElementBlock("title",Sd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_d))],16,Cd)}const wd=D(vd,[["render",bd]]),Ld={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Td=["aria-hidden","aria-label"],Bd=["fill","width","height"],Vd={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Id={key:0};function Ad(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vd,[o.title?(t.openBlock(),t.createElementBlock("title",Id,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Bd))],16,Td)}const Dd=D(Ld,[["render",Ad]]),$d={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Od=["aria-hidden","aria-label"],Pd=["fill","width","height"],xd={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"},Rd={key:0};function Md(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon send-lock-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",xd,[o.title?(t.openBlock(),t.createElementBlock("title",Rd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Pd))],16,Od)}const Fd=D($d,[["render",Md]]),Ud={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hd=["aria-hidden","aria-label"],zd=["fill","width","height"],Wd={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},jd={key:0};function Gd(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon play-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Wd,[o.title?(t.openBlock(),t.createElementBlock("title",jd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,zd))],16,Hd)}const Kd=D(Ud,[["render",Gd]]),Yd={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qd=["aria-hidden","aria-label"],Xd=["fill","width","height"],Zd={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},Jd={key:0};function Qd(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon check-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Zd,[o.title?(t.openBlock(),t.createElementBlock("title",Jd,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Xd))],16,qd)}const xl=D(Yd,[["render",Qd]]),em={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},tm=["aria-hidden","aria-label"],nm=["fill","width","height"],om={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},lm={key:0};function rm(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alert-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",om,[o.title?(t.openBlock(),t.createElementBlock("title",lm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,nm))],16,tm)}const Kt=D(em,[["render",rm]]),am={name:"SkipForwardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},im=["aria-hidden","aria-label"],sm=["fill","width","height"],cm={d:"M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12"},um={key:0};function dm(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon skip-forward-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",cm,[o.title?(t.openBlock(),t.createElementBlock("title",um,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,sm))],16,im)}const mm=D(am,[["render",dm]]),fm=t.defineComponent({name:"TaskNode",inheritAttrs:!1,__name:"TaskNode",props:{data:{},sourcePosition:{default:oe.Position.Right},targetPosition:{default:oe.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,r=t.inject(Gn),a=t.inject(Pl),i=t.computed(()=>o.data.color??"primary"),s=t.computed(()=>S.Utils.afterLastDot(o.id)),c=t.computed(()=>{const N=o.data.executionId;if(N)return N===r?.value?.id?r?.value:Object.values(a?.value||{}).find(m=>m.id===N)}),u=t.computed(()=>c.value&&c.value.taskRunList?c.value.taskRunList:[]),d=t.computed(()=>u.value.filter(N=>N.taskId===S.Utils.afterLastDot(o.data.node.uid))),h=t.computed(()=>{if(!d.value?.length)return null;if(d.value.length===1)return d.value[0].state.current;const N=d.value.map(w=>w.state.current),m=[ne.FAILED,ne.KILLED,ne.WARNING,ne.SKIPPED,ne.KILLING,ne.RUNNING,ne.SUCCESS,ne.RESTARTED,ne.CREATED];return N.map(w=>[m.indexOf(w[1]),w]).sort().map(w=>w[1])[0]}),p=t.computed(()=>({"execution-no-taskrun":!!(c.value&&d.value&&d.value.length===0)})),k=t.computed(()=>({id:o.id,type:String(o.data.node.task.type)})),I=t.computed(()=>{if(o.data.node.type?.endsWith("SubflowGraphTask")&&o.enableSubflowInteraction){const N=o.data.node.task.subflowId??o.data.node.task;return{...o.data,link:{namespace:N.namespace,id:N.flowId,executionId:c.value?.taskRunList.filter(m=>m.id===o.data.node.taskRun.id&&m.outputs?.executionId)?.[0]?.outputs?.executionId}}}return o.data}),y=t.computed(()=>{if(h.value===ne.RUNNING)return"task is running";if(h.value===ne.SUCCESS)return"task was successful";if(h.value===ne.WARNING)return"task sent a warning";if(h.value===ne.SKIPPED)return"task was skipped";if(h.value===ne.FAILED)return"task failed"});return(N,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(jn,{id:e.id,data:I.value,state:h.value,class:t.normalizeClass(p.value),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:m[6]||(m[6]=E=>l(t.unref(S.EVENTS).SHOW_DESCRIPTION,E)),onExpand:m[7]||(m[7]=E=>l(t.unref(S.EVENTS).EXPAND,k.value)),onOpenLink:m[8]||(m[8]=E=>l(t.unref(S.EVENTS).OPEN_LINK,E)),onMouseover:m[9]||(m[9]=E=>l(t.unref(S.EVENTS).MOUSE_OVER,E)),onMouseleave:m[10]||(m[10]=E=>l(t.unref(S.EVENTS).MOUSE_LEAVE))},{details:t.withCtx(()=>[t.renderSlot(N.$slots,"details",{},void 0,!0)]),content:t.withCtx(()=>[c.value?(t.openBlock(),t.createBlock(Fu,{key:0,execution:c.value,task:e.data.node.task,color:i.value,uid:e.data.node.uid,state:h.value},null,8,["execution","task","color","uid","state"])):t.createCommentVNode("",!0),e.data.node.task?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.playgroundEnabled&&e.playgroundReadyToStart?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"playground-button",onClick:m[0]||(m[0]=E=>l(t.unref(S.EVENTS).RUN_TASK,{task:e.data.node.task}))},[t.createVNode(j,{style:{display:"flex"},title:N.$t("run task in playground")},{default:t.withCtx(()=>[t.createVNode(Kd,{class:"button-play-icon",alt:N.$t("run task in playground")},null,8,["alt"])]),_:1},8,["title"])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"playground-button",style:t.normalizeStyle({color:`var(--ks-content-${h.value?.toLowerCase()})`,backgroundColor:`var(--ks-background-${h.value?.toLowerCase()})`})},[t.createVNode(j,{style:{display:"flex"},title:y.value?N.$t(y.value):void 0},{default:t.withCtx(()=>[h.value===t.unref(ne).RUNNING?(t.openBlock(),t.createBlock(ol,{key:0,alt:y.value?N.$t(y.value):void 0},null,8,["alt"])):h.value===t.unref(ne).SUCCESS?(t.openBlock(),t.createBlock(xl,{key:1,alt:y.value?N.$t(y.value):void 0},null,8,["alt"])):h.value===t.unref(ne).WARNING?(t.openBlock(),t.createBlock(Kt,{key:2,alt:y.value?N.$t(y.value):void 0},null,8,["alt"])):h.value===t.unref(ne).SKIPPED?(t.openBlock(),t.createBlock(mm,{key:3,alt:y.value?N.$t(y.value):void 0},null,8,["alt"])):h.value===t.unref(ne).FAILED?(t.openBlock(),t.createBlock(At,{key:4,alt:y.value?N.$t(y.value):void 0},null,8,["alt"])):t.createCommentVNode("",!0)]),_:1},8,["title"])],4))],64)):t.createCommentVNode("",!0)]),"badge-button-before":t.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["circle-button",["bg-warning"]]),onClick:m[1]||(m[1]=E=>l(t.unref(S.EVENTS).SHOW_CONDITION,{id:s.value,task:e.data.node.task,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(j,{title:N.$t("show task condition")},{default:t.withCtx(()=>[t.createVNode(Fd,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[2]||(m[2]=E=>l(t.unref(S.EVENTS).SHOW_LOGS,{id:s.value,execution:c.value,taskRuns:d.value}))},[t.createVNode(j,{title:N.$t("show task logs")},{default:t.withCtx(()=>[t.createVNode(wd,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!e.data.isReadOnly&&e.data.isFlowable?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[3]||(m[3]=E=>l(t.unref(S.EVENTS).ADD_ERROR,{task:e.data.node.task}))},[t.createVNode(j,{title:N.$t("add error handler")},{default:t.withCtx(()=>[t.createVNode(Dd,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[4]||(m[4]=E=>l(t.unref(S.EVENTS).EDIT,{task:e.data.node.task,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(j,{title:N.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Kn,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0),!c.value&&!e.data.isReadOnly?(t.openBlock(),t.createElementBlock("span",{key:4,class:t.normalizeClass(["circle-button",[`bg-${i.value}`]]),onClick:m[5]||(m[5]=E=>l(t.unref(S.EVENTS).DELETE,{id:s.value,section:t.unref(S.SECTIONS).TASKS}))},[t.createVNode(j,{title:N.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):t.createCommentVNode("",!0)]),_:3},8,["id","data","state","class","icons","icon-component"]),t.createVNode(t.unref(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),pm=D(fm,[["__scopeId","data-v-459a2e06"]]),gm={name:"Task",inheritAttrs:!1,inject:{execution:{from:Gn}},computed:{SECTIONS(){return S.SECTIONS},EVENTS(){return S.EVENTS},color(){return this.data.color??"primary"},formattedData(){return{...this.data,unused:this.data.node?.triggerDeclaration?.disabled||this.data.node?.trigger?.disabled}},triggerId(){return S.Utils.afterLastDot(this.id)}},emits:[S.EVENTS.DELETE,S.EVENTS.EDIT,S.EVENTS.SHOW_DESCRIPTION],components:{Delete:Yn,Pencil:Kn,Handle:oe.Handle,Tooltip:j},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)}}},hm=Object.assign(gm,{setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createVNode(jn,{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(j,{title:n.$t("edit")},{default:t.withCtx(()=>[t.createVNode(Kn,{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(j,{title:n.$t("delete")},{default:t.withCtx(()=>[t.createVNode(Yn,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),t.createVNode(t.unref(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Em={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ym=["aria-hidden","aria-label"],km=["fill","width","height"],vm={d:"M11 15H6L13 1V9H18L11 23V15Z"},Cm={key:0};function _m(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",vm,[o.title?(t.openBlock(),t.createElementBlock("title",Cm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,km))],16,ym)}const Nm=D(Em,[["render",_m]]),Sm={class:"collapsed-cluster-node d-flex"},bm={class:"node-text"},wm={class:"text-white top-button-div"},Lm={components:{Tooltip:j,Handle:oe.Handle,ArrowExpand:Wn,LightningBolt:Nm},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(){return this.data?.expandable||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Tm=Object.assign(Lm,{__name:"CollapsedClusterNode",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(oe.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),t.createElementVNode("div",Sm,[t.createElementVNode("span",bm,[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",wm,[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(j,{title:n.$t("expand")},{default:t.withCtx(()=>[t.createVNode(Wn,{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(oe.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Bm=D(Tm,[["__scopeId","data-v-89413b39"]]),Vm={name:"SplitCellsVerticalIcon",emits:["click"]},Im={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Am(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("svg",Im,[...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 Dm=D(Vm,[["render",Am],["__scopeId","data-v-084c51e6"]]),$m={name:"SplitCellsHorizontalIcon",emits:["click"]},Om={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pm(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("svg",Om,[...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 xm=D($m,[["render",Pm],["__scopeId","data-v-c77c1469"]]),Rm={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Mm=["aria-hidden","aria-label"],Fm=["fill","width","height"],Um={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},Hm={key:0};function zm(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon download-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Um,[o.title?(t.openBlock(),t.createElementBlock("title",Hm,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Fm))],16,Mm)}const Wm=D(Rm,[["render",zm]]);function jm(e,n){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const o=document.implementation.createHTMLDocument(),l=o.createElement("base"),r=o.createElement("a");return o.head.appendChild(l),o.body.appendChild(r),n&&(l.href=n),r.href=e,r.href}const Gm=(()=>{let e=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${n()}${e}`)})();function Me(e){const n=[];for(let o=0,l=e.length;o<l;o++)n.push(e[o]);return n}let et=null;function Rl(e={}){return et||(e.includeStyleProperties?(et=e.includeStyleProperties,et):(et=Me(window.getComputedStyle(document.documentElement)),et))}function xt(e,n){const l=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(n);return l?parseFloat(l.replace("px","")):0}function Km(e){const n=xt(e,"border-left-width"),o=xt(e,"border-right-width");return e.clientWidth+n+o}function Ym(e){const n=xt(e,"border-top-width"),o=xt(e,"border-bottom-width");return e.clientHeight+n+o}function Ml(e,n={}){const o=n.width||Km(e),l=n.height||Ym(e);return{width:o,height:l}}function qm(){let e,n;try{n=process}catch{}const o=n&&n.env?n.env.devicePixelRatio:null;return o&&(e=parseInt(o,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ke=16384;function Xm(e){(e.width>ke||e.height>ke)&&(e.width>ke&&e.height>ke?e.width>e.height?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke):e.width>ke?(e.height*=ke/e.width,e.width=ke):(e.width*=ke/e.height,e.height=ke))}function Rt(e){return new Promise((n,o)=>{const l=new Image;l.onload=()=>{l.decode().then(()=>{requestAnimationFrame(()=>n(l))})},l.onerror=o,l.crossOrigin="anonymous",l.decoding="async",l.src=e})}async function Zm(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function Jm(e,n,o){const l="http://www.w3.org/2000/svg",r=document.createElementNS(l,"svg"),a=document.createElementNS(l,"foreignObject");return r.setAttribute("width",`${n}`),r.setAttribute("height",`${o}`),r.setAttribute("viewBox",`0 0 ${n} ${o}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),r.appendChild(a),a.appendChild(e),Zm(r)}const Ee=(e,n)=>{if(e instanceof n)return!0;const o=Object.getPrototypeOf(e);return o===null?!1:o.constructor.name===n.name||Ee(o,n)};function Qm(e){const n=e.getPropertyValue("content");return`${e.cssText} content: '${n.replace(/'|"/g,"")}';`}function ef(e,n){return Rl(n).map(o=>{const l=e.getPropertyValue(o),r=e.getPropertyPriority(o);return`${o}: ${l}${r?" !important":""};`}).join(" ")}function tf(e,n,o,l){const r=`.${e}:${n}`,a=o.cssText?Qm(o):ef(o,l);return document.createTextNode(`${r}{${a}}`)}function zo(e,n,o,l){const r=window.getComputedStyle(e,o),a=r.getPropertyValue("content");if(a===""||a==="none")return;const i=Gm();try{n.className=`${n.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(tf(i,o,r,l)),n.appendChild(s)}function nf(e,n,o){zo(e,n,":before",o),zo(e,n,":after",o)}const Wo="application/font-woff",jo="image/jpeg",of={woff:Wo,woff2:Wo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:jo,jpeg:jo,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function lf(e){const n=/\.([^./]*?)$/g.exec(e);return n?n[1]:""}function qn(e){const n=lf(e).toLowerCase();return of[n]||""}function rf(e){return e.split(/,/)[1]}function Tn(e){return e.search(/^(data:)/)!==-1}function af(e,n){return`data:${n};base64,${e}`}async function Fl(e,n,o){const l=await fetch(e,n);if(l.status===404)throw new Error(`Resource "${l.url}" not found`);const r=await l.blob();return new Promise((a,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{a(o({res:l,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(r)})}const fn={};function sf(e,n,o){let l=e.replace(/\?.*/,"");return o&&(l=e),/ttf|otf|eot|woff2?/i.test(l)&&(l=l.replace(/.*\//,"")),n?`[${n}]${l}`:l}async function Xn(e,n,o){const l=sf(e,n,o.includeQueryParams);if(fn[l]!=null)return fn[l];o.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const a=await Fl(e,o.fetchRequestInit,({res:i,result:s})=>(n||(n=i.headers.get("Content-Type")||""),rf(s)));r=af(a,n)}catch(a){r=o.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;a&&(i=typeof a=="string"?a:a.message),i&&console.warn(i)}return fn[l]=r,r}async function cf(e){const n=e.toDataURL();return n==="data:,"?e.cloneNode(!1):Rt(n)}async function uf(e,n){if(e.currentSrc){const a=document.createElement("canvas"),i=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,i?.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return Rt(s)}const o=e.poster,l=qn(o),r=await Xn(o,l,n);return Rt(r)}async function df(e,n){var o;try{if(!((o=e?.contentDocument)===null||o===void 0)&&o.body)return await Yt(e.contentDocument.body,n,!0)}catch{}return e.cloneNode(!1)}async function mf(e,n){return Ee(e,HTMLCanvasElement)?cf(e):Ee(e,HTMLVideoElement)?uf(e,n):Ee(e,HTMLIFrameElement)?df(e,n):e.cloneNode(Ul(e))}const ff=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ul=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function pf(e,n,o){var l,r;if(Ul(n))return n;let a=[];return ff(e)&&e.assignedNodes?a=Me(e.assignedNodes()):Ee(e,HTMLIFrameElement)&&(!((l=e.contentDocument)===null||l===void 0)&&l.body)?a=Me(e.contentDocument.body.childNodes):a=Me(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),a.length===0||Ee(e,HTMLVideoElement)||await a.reduce((i,s)=>i.then(()=>Yt(s,o)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function gf(e,n,o){const l=n.style;if(!l)return;const r=window.getComputedStyle(e);r.cssText?(l.cssText=r.cssText,l.transformOrigin=r.transformOrigin):Rl(o).forEach(a=>{let i=r.getPropertyValue(a);a==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Ee(e,HTMLIFrameElement)&&a==="display"&&i==="inline"&&(i="block"),a==="d"&&n.getAttribute("d")&&(i=`path(${n.getAttribute("d")})`),l.setProperty(a,i,r.getPropertyPriority(a))})}function hf(e,n){Ee(e,HTMLTextAreaElement)&&(n.innerHTML=e.value),Ee(e,HTMLInputElement)&&n.setAttribute("value",e.value)}function Ef(e,n){if(Ee(e,HTMLSelectElement)){const l=Array.from(n.children).find(r=>e.value===r.getAttribute("value"));l&&l.setAttribute("selected","")}}function yf(e,n,o){return Ee(n,Element)&&(gf(e,n,o),nf(e,n,o),hf(e,n),Ef(e,n)),n}async function kf(e,n){const o=e.querySelectorAll?e.querySelectorAll("use"):[];if(o.length===0)return e;const l={};for(let a=0;a<o.length;a++){const s=o[a].getAttribute("xlink:href");if(s){const c=e.querySelector(s),u=document.querySelector(s);!c&&u&&!l[s]&&(l[s]=await Yt(u,n,!0))}}const r=Object.values(l);if(r.length){const a="http://www.w3.org/1999/xhtml",i=document.createElementNS(a,"svg");i.setAttribute("xmlns",a),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(a,"defs");i.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);e.appendChild(i)}return e}async function Yt(e,n,o){return!o&&n.filter&&!n.filter(e)?null:Promise.resolve(e).then(l=>mf(l,n)).then(l=>pf(e,l,n)).then(l=>yf(e,l,n)).then(l=>kf(l,n))}const Hl=/url\((['"]?)([^'"]+?)\1\)/g,vf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Cf=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function _f(e){const n=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function Nf(e){const n=[];return e.replace(Hl,(o,l,r)=>(n.push(r),o)),n.filter(o=>!Tn(o))}async function Sf(e,n,o,l,r){try{const a=o?jm(n,o):n,i=qn(n);let s;return r||(s=await Xn(a,i,l)),e.replace(_f(n),`$1${s}$3`)}catch{}return e}function bf(e,{preferredFontFormat:n}){return n?e.replace(Cf,o=>{for(;;){const[l,,r]=vf.exec(o)||[];if(!r)return"";if(r===n)return`src: ${l};`}}):e}function zl(e){return e.search(Hl)!==-1}async function Wl(e,n,o){if(!zl(e))return e;const l=bf(e,o);return Nf(l).reduce((a,i)=>a.then(s=>Sf(s,i,n,o)),Promise.resolve(l))}async function tt(e,n,o){var l;const r=(l=n.style)===null||l===void 0?void 0:l.getPropertyValue(e);if(r){const a=await Wl(r,null,o);return n.style.setProperty(e,a,n.style.getPropertyPriority(e)),!0}return!1}async function wf(e,n){await tt("background",e,n)||await tt("background-image",e,n),await tt("mask",e,n)||await tt("-webkit-mask",e,n)||await tt("mask-image",e,n)||await tt("-webkit-mask-image",e,n)}async function Lf(e,n){const o=Ee(e,HTMLImageElement);if(!(o&&!Tn(e.src))&&!(Ee(e,SVGImageElement)&&!Tn(e.href.baseVal)))return;const l=o?e.src:e.href.baseVal,r=await Xn(l,qn(l),n);await new Promise((a,i)=>{e.onload=a,e.onerror=n.onImageErrorHandler?(...c)=>{try{a(n.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),o?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Tf(e,n){const l=Me(e.childNodes).map(r=>jl(r,n));await Promise.all(l).then(()=>e)}async function jl(e,n){Ee(e,Element)&&(await wf(e,n),await Lf(e,n),await Tf(e,n))}function Bf(e,n){const{style:o}=e;n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.width&&(o.width=`${n.width}px`),n.height&&(o.height=`${n.height}px`);const l=n.style;return l!=null&&Object.keys(l).forEach(r=>{o[r]=l[r]}),e}const Go={};async function Ko(e){let n=Go[e];if(n!=null)return n;const l=await(await fetch(e)).text();return n={url:e,cssText:l},Go[e]=n,n}async function Yo(e,n){let o=e.cssText;const l=/url\(["']?([^"')]+)["']?\)/g,a=(o.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(l,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Fl(s,n.fetchRequestInit,({result:c})=>(o=o.replace(i,`url(${c})`),[i,c]))});return Promise.all(a).then(()=>o)}function qo(e){if(e==null)return[];const n=[],o=/(\/\*[\s\S]*?\*\/)/gi;let l=e.replace(o,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(l);if(c===null)break;n.push(c[0])}l=l.replace(r,"");const a=/@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=a.exec(l);if(c===null){if(c=s.exec(l),c===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;n.push(c[0])}return n}async function Vf(e,n){const o=[],l=[];return e.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach((a,i)=>{if(a.type===CSSRule.IMPORT_RULE){let s=i+1;const c=a.href,u=Ko(c).then(d=>Yo(d,n)).then(d=>qo(d).forEach(h=>{try{r.insertRule(h,h.startsWith("@import")?s+=1:r.cssRules.length)}catch(p){console.error("Error inserting rule from remote css",{rule:h,error:p})}})).catch(d=>{console.error("Error loading remote css",d.toString())});l.push(u)}})}catch(a){const i=e.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&l.push(Ko(r.href).then(s=>Yo(s,n)).then(s=>qo(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(l).then(()=>(e.forEach(r=>{if("cssRules"in r)try{Me(r.cssRules||[]).forEach(a=>{o.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${r.href}`,a)}}),o))}function If(e){return e.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>zl(n.style.getPropertyValue("src")))}async function Af(e,n){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const o=Me(e.ownerDocument.styleSheets),l=await Vf(o,n);return If(l)}function Gl(e){return e.trim().replace(/["']/g,"")}function Df(e){const n=new Set;function o(l){(l.style.fontFamily||getComputedStyle(l).fontFamily).split(",").forEach(a=>{n.add(Gl(a))}),Array.from(l.children).forEach(a=>{a instanceof HTMLElement&&o(a)})}return o(e),n}async function $f(e,n){const o=await Af(e,n),l=Df(e);return(await Promise.all(o.filter(a=>l.has(Gl(a.style.fontFamily))).map(a=>{const i=a.parentStyleSheet?a.parentStyleSheet.href:null;return Wl(a.cssText,i,n)}))).join(`
|
|
9
|
+
`)}async function Of(e,n){const o=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await $f(e,n);if(o){const l=document.createElement("style"),r=document.createTextNode(o);l.appendChild(r),e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}}async function Pf(e,n={}){const{width:o,height:l}=Ml(e,n),r=await Yt(e,n,!0);return await Of(r,n),await jl(r,n),Bf(r,n),await Jm(r,o,l)}async function Kl(e,n={}){const{width:o,height:l}=Ml(e,n),r=await Pf(e,n),a=await Rt(r),i=document.createElement("canvas"),s=i.getContext("2d"),c=n.pixelRatio||qm(),u=n.canvasWidth||o,d=n.canvasHeight||l;return i.width=u*c,i.height=d*c,n.skipAutoScale||Xm(i),i.style.width=`${u}`,i.style.height=`${d}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,i.width,i.height),i}async function xf(e,n={}){return(await Kl(e,n)).toDataURL()}async function Rf(e,n={}){return(await Kl(e,n)).toDataURL("image/jpeg",n.quality||1)}function Mf(){const e=t.ref(""),n=t.ref("png"),o=t.ref();async function l(s,c={}){const u=c.fileName??`flow-graph-${Date.now()}`;s.classList.add("is-exporting");const d=s.querySelectorAll(".vue-flow__edge-path"),h=Array.from(d).map(p=>{const k=p,I=k.getAttribute("style")||"",y=window.getComputedStyle(k);return k.setAttribute("style",`
|
|
10
|
+
${I};
|
|
11
|
+
stroke: ${y.stroke};
|
|
12
|
+
stroke-width: ${y.strokeWidth};
|
|
13
|
+
stroke-dasharray: ${y.strokeDasharray};
|
|
14
14
|
fill: none;
|
|
15
|
-
`),{element:y,original:w}});try{const h=c.type==="jpeg"?await r(s,c):await i(s,c);return c.shouldDownload&&u&&a(u),h}finally{p.forEach(({element:h,original:y})=>y?h.setAttribute("style",y):h.removeAttribute("style")),s.classList.remove("is-exporting")}}function r(s,c={quality:.95}){return o.value=null,xf(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s,c={quality:.95}){return o.value=null,Pf(s,c).then(u=>(e.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function a(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=e.value,c.click()}return{capture:l,download:a,dataUrl:e,error:o}}const Mf={key:1,class:"exporting"},Ff=t.defineComponent({__name:"Topology",props:{id:{},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{},flowId:{default:void 0},namespace:{default:void 0},expandedSubflows:{default:()=>[]},icons:{default:()=>({})},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{default:void 0},subflowsExecutions:{default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1},getNodeDimensions:{type:Function,default:void 0}},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),r=t.ref(),{getNodes:i,onNodeDrag:a,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:d,vueFlowRef:p}=oe.useVueFlow(o.id),h=t.ref({}),y=t.ref([]),w=t.ref(new Set),k=t.ref([]),{capture:v}=Rf();t.provide(Gn,t.computed(()=>o.execution)),t.provide(Ol,t.computed(()=>o.subflowsExecutions));const f=n;t.onMounted(()=>{E()}),t.watch(()=>o.flowGraph,()=>{E()}),t.watch(()=>o.isHorizontal,()=>{E()});const E=()=>{S.cleanGraph(o.id),t.nextTick(()=>{f("loading",!0);const P=w.value;w.value=new Set,y.value=[],h.value={},P.forEach(H=>R(S.CLUSTER_PREFIX+H,!1,!1));const A=S.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,y.value,o.isHorizontal,h.value,w.value,k.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction,o.getNodeDimensions);A&&(d(A),u(),f("loading",!1))})},L=P=>{l.value||S.linkedElements(o.id,P.uid).forEach(A=>{A?.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+_e("--bs-gray-900")},A.class="rounded-3")})},N=()=>{T()},T=()=>{i.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{l.value=!0,T(),P.node.style={...P.node.style,zIndex:1976},r.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&_(P.intersections,P.node)===null){const A=P.node,H=P.intersections.find(x=>x.type==="task");if(H)try{o.source&&f("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:S.Utils.afterLastDot(A.id)??"",key2:S.Utils.afterLastDot(H.id)??""}),swappedTasks:[A.id,H.id]})}catch(x){f("message",{variant:"error",title:"cannot swap tasks",message:`${x.message}, ${x.messageOptions}`}),A.position=r.value}else A.position=r.value}else P.node.position=r.value;T(),P.node.style={...P.node.style,zIndex:5},r.value=null});const I=t.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter(P=>P.cluster.type.endsWith("SubflowGraphCluster")).map(P=>P.cluster.taskNode.uid+"."):[]);a(P=>{T(),i.value.filter(A=>A.id!==P.node.id).forEach(A=>{A.type==="trigger"||A.type==="task"&&(A.id.startsWith(P.node.id+".")||P.node.id.startsWith(A.id+"."))||I?.value?.some(H=>A.id.startsWith(H))?A.style={...A.style,opacity:"0.5"}:A.style={...A.style,opacity:"1"}}),P.intersections&&!_(P.intersections,P.node)&&P.intersections.filter(A=>A.type==="task").length===1&&(P.intersections.forEach(A=>{A.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+_e("--bs-primary")},A.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+_e("--bs-primary")},P.node.class="rounded-3")});const _=(P,A)=>{const H=P.filter(x=>x.type==="task").map(x=>S.Utils.afterLastDot(x.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:S.Utils.afterLastDot(H[0])??"",key2:S.Utils.afterLastDot(A.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(x=>x.type==="trigger").length>0?"triggererror":null},R=(P,A,H=!1)=>{const x=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(S.CLUSTER_PREFIX,"");w.value.add(Ie),y.value=y.value.concat(x.nodes.filter(me=>me!==Ie||H)),y.value=y.value.concat([x.cluster.uid]),h.value={...h.value,[x.cluster.uid]:Ie,[x.start]:Ie,[x.end]:Ie};for(let me of x.nodes)o.flowGraph.clusters.map(He=>He.cluster.uid).includes(me)&&R(me,!1,!0);A&&E()},U=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={},y.value=[],k.value=[],w.value.delete(P.id),w.value.forEach(H=>R(H,!1,!1)),E()},Q=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=t.ref(!0),Z=t.ref(!1),Re=()=>Z.value=!Z.value;function Je(P){if(!p.value){console.warn("Flow not found");return}ge.value=!1,v(p.value,{type:P,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return(P,A)=>(t.openBlock(),t.createBlock(t.unref(oe.VueFlow),{id:e.id,"default-marker-color":t.unref(_e)("--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(H=>[t.createVNode(cu,t.mergeProps(H,{onCollapse:A[0]||(A[0]=x=>R(x,!0))}),null,16)]),"node-dot":t.withCtx(H=>[t.createVNode(yu,t.normalizeProps(t.guardReactiveProps(H)),null,16)]),"node-task":t.withCtx(H=>[t.createVNode(fm,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:A[1]||(A[1]=x=>f(t.unref(S.EVENTS).EDIT,x)),onDelete:A[2]||(A[2]=x=>f(t.unref(S.EVENTS).DELETE,x)),onRunTask:A[3]||(A[3]=x=>f(t.unref(S.EVENTS).RUN_TASK,x)),onExpand:A[4]||(A[4]=x=>U(x)),onOpenLink:A[5]||(A[5]=x=>f(t.unref(S.EVENTS).OPEN_LINK,x)),onShowLogs:A[6]||(A[6]=x=>f(t.unref(S.EVENTS).SHOW_LOGS,x)),onShowDescription:A[7]||(A[7]=x=>f(t.unref(S.EVENTS).SHOW_DESCRIPTION,x)),onShowCondition:A[8]||(A[8]=x=>f(t.unref(S.EVENTS).SHOW_CONDITION,x)),onMouseover:A[9]||(A[9]=x=>L(x)),onMouseleave:A[10]||(A[10]=x=>N()),onAddError:A[11]||(A[11]=x=>f("on-add-flowable-error",x)),"enable-subflow-interaction":e.enableSubflowInteraction}),{details:t.withCtx(()=>[t.renderSlot(P.$slots,"taskDetails",t.normalizeProps(t.guardReactiveProps(H)),void 0,!0)]),_:2},1040,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-custom":t.withCtx(H=>[t.createVNode(jn,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent}),null,16,["icons","icon-component"])]),"node-trigger":t.withCtx(H=>[t.createVNode(gm,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:A[12]||(A[12]=x=>f(t.unref(S.EVENTS).DELETE,x)),onEdit:A[13]||(A[13]=x=>f(t.unref(S.EVENTS).EDIT,x)),onShowDescription:A[14]||(A[14]=x=>f(t.unref(S.EVENTS).SHOW_DESCRIPTION,x))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(H=>[t.createVNode(Tm,t.mergeProps(H,{onExpand:A[15]||(A[15]=x=>U(x))}),null,16)]),"edge-edge":t.withCtx(H=>[t.createVNode(Iu,t.mergeProps(H,{"yaml-source":e.source,onAddTask:A[16]||(A[16]=x=>f(t.unref(S.EVENTS).ADD_TASK,x)),"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(Jc),{"pattern-color":Q?t.unref(_e)("--bs-grey-500"):t.unref(_e)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(t.openBlock(),t.createBlock(t.unref(an.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(an.ControlButton),{key:0,onClick:A[17]||(A[17]=H=>f("toggle-orientation",H))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?Pm:Am)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(an.ControlButton),{onClick:Re},{default:t.withCtx(()=>[t.createVNode(zm)]),_:1}),Z.value?(t.openBlock(),t.createElementBlock("ul",Mf,[t.createElementVNode("li",{onClick:A[18]||(A[18]=H=>Je("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:A[19]||(A[19]=H=>Je("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:3},8,["id","default-marker-color"]))}}),Uf=D(Ff,[["__scopeId","data-v-6f358b88"]]),Hf={class:"text"},zf=t.defineComponent({__name:"Status",props:{status:{},title:{default:void 0},icon:{type:Boolean,default:!1},size:{default:"default"}},setup(e){const n=e,o=t.computed(()=>n.icon?ne.icon()[n.status?.toUpperCase()]:void 0),l=t.computed(()=>n.title??n.status),r=t.computed(()=>["status-button",n.status?.toLowerCase()&&`status-button--${n.status.toLowerCase()}`,n.size!=="default"&&`status-button--${n.size}`].filter(Boolean));return(i,a)=>(t.openBlock(),t.createElementBlock("button",{type:"button",class:t.normalizeClass(r.value)},[e.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:"icon"})):t.createCommentVNode("",!0),t.createElementVNode("span",Hf,t.toDisplayString(l.value),1)],2))}}),Wf=D(zf,[["__scopeId","data-v-ce6b0e30"]]),jf={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Gf=["aria-hidden","aria-label"],Kf=["fill","width","height"],Yf={d:"M10,17L15,12L10,7V17Z"},qf={key:0};function Xf(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Yf,[o.title?(t.openBlock(),t.createElementBlock("title",qf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Kf))],16,Gf)}const Zf=D(jf,[["render",Xf]]),Jf={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qf=["aria-hidden","aria-label"],ep=["fill","width","height"],tp={d:"M7,10L12,15L17,10H7Z"},np={key:0};function op(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",tp,[o.title?(t.openBlock(),t.createElementBlock("title",np,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,ep))],16,Qf)}const lp=D(Jf,[["render",op]]);function Kl(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Yl(e){return typeof e=="function"?e():t.unref(e)}const rp=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ap=Object.prototype.toString,ip=e=>ap.call(e)==="[object Object]",sp=()=>{};function cp(e){return Object.entries(e)}function up(e){return t.getCurrentInstance()}function dp(e,n=!0,o){up()?t.onMounted(e,o):n?e():t.nextTick(e)}function Ye(e){var n;const o=Yl(e);return(n=o?.$el)!=null?n:o}const qt=rp?window:void 0;function qo(...e){let n,o,l,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,l,r]=e,n=qt):[n,o,l,r]=e,!n)return sp;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],a=()=>{i.forEach(d=>d()),i.length=0},s=(d,p,h,y)=>(d.addEventListener(p,h,y),()=>d.removeEventListener(p,h,y)),c=t.watch(()=>[Ye(n),Yl(r)],([d,p])=>{if(a(),!d)return;const h=ip(p)?{...p}:p;i.push(...o.flatMap(y=>l.map(w=>s(d,y,w,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return Kl(u),u}function mp(){const e=t.ref(!1),n=t.getCurrentInstance();return n&&t.onMounted(()=>{e.value=!0},n),e}function fp(e){const n=mp();return t.computed(()=>(n.value,!!e()))}const Xo=["hash","host","hostname","href","pathname","port","protocol","search"];function ql(e={}){const{window:n=qt}=e,o=Object.fromEntries(Xo.map(i=>[i,t.ref()]));for(const[i,a]of cp(o))t.watch(a,s=>{!n?.location||n.location[i]===s||(n.location[i]=s)});const l=i=>{var a;const{state:s,length:c}=n?.history||{},{origin:u}=n?.location||{};for(const d of Xo)o[d].value=(a=n?.location)==null?void 0:a[d];return t.reactive({trigger:i,state:s,length:c,origin:u,...o})},r=t.ref(l("load"));return n&&(qo(n,"popstate",()=>r.value=l("popstate"),{passive:!0}),qo(n,"hashchange",()=>r.value=l("hashchange"),{passive:!0})),r}function pp(e,n,o={}){const{window:l=qt,...r}=o;let i;const a=fp(()=>l&&"ResizeObserver"in l),s=()=>{i&&(i.disconnect(),i=void 0)},c=t.computed(()=>Array.isArray(e)?e.map(p=>Ye(p)):[Ye(e)]),u=t.watch(c,p=>{if(s(),a.value&&l){i=new ResizeObserver(n);for(const h of p)h&&i.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Kl(d),{isSupported:a,stop:d}}function Zo(e,n={width:0,height:0},o={}){const{window:l=qt,box:r="content-box"}=o,i=t.computed(()=>{var p,h;return(h=(p=Ye(e))==null?void 0:p.namespaceURI)==null?void 0:h.includes("svg")}),a=t.ref(n.width),s=t.ref(n.height),{stop:c}=pp(e,([p])=>{const h=r==="border-box"?p.borderBoxSize:r==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(l&&i.value){const y=Ye(e);if(y){const w=y.getBoundingClientRect();a.value=w.width,s.value=w.height}}else if(h){const y=Array.isArray(h)?h:[h];a.value=y.reduce((w,{inlineSize:k})=>w+k,0),s.value=y.reduce((w,{blockSize:k})=>w+k,0)}else a.value=p.contentRect.width,s.value=p.contentRect.height},o);dp(()=>{const p=Ye(e);p&&(a.value="offsetWidth"in p?p.offsetWidth:n.width,s.value="offsetHeight"in p?p.offsetHeight:n.height)});const u=t.watch(()=>Ye(e),p=>{a.value=p?n.width:0,s.value=p?n.height:0});function d(){c(),u()}return{width:a,height:s,stop:d}}const gp=["id","open"],hp={class:"d-flex gap-2 align-items-center"},Ep={key:0,class:"d-flex flex-grow-1"},yp=["id"],kp=t.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),r=ql(),i=n,a=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),u.stopPropagation(),l.value=!l.value,c.value=!l.value,l.value||i("expand"),!o.noUrlChange&&(l.value?history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=a.value)},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>r.value.hash,u=>{u===a.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(t.openBlock(),t.createElementBlock("details",{id:e.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",hp,[e.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?Zf:lp),{key:0,class:"arrow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.clickableText)+" ",1),t.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(t.openBlock(),t.createElementBlock("span",Ep,[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:e.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,yp)):t.createCommentVNode("",!0)],8,gp))}}),ht=D(kp,[["__scopeId","data-v-6b6ffd9a"]]),vp={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cp=["aria-hidden","aria-label"],_p=["fill","width","height"],Np={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},Sp={key:0};function bp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Np,[o.title?(t.openBlock(),t.createElementBlock("title",Sp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,_p))],16,Cp)}const Zn=D(vp,[["render",bp]]),wp={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Lp=["aria-hidden","aria-label"],Tp=["fill","width","height"],Bp={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Vp={key:0};function Ip(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Bp,[o.title?(t.openBlock(),t.createElementBlock("title",Vp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Tp))],16,Lp)}const Jn=D(wp,[["render",Ip]]),Ap=["id","open"],Dp={key:0,class:"chevron"},$p=["id"],Op=t.defineComponent({__name:"CollapsibleV2",props:{href:{default:Math.random().toString(36).substring(2,5)},title:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),r=ql(),i=n,a=t.computed(()=>`#${o.href}-body`),s=u=>{if(u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||i("expand"),o.noUrlChange)return;const d=window.location.pathname+window.location.search+(l.value?"":a.value);try{window.history.pushState(null,"",d)}catch{try{l.value?window.history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=a.value}catch{}}},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>r.value.hash,u=>{u===a.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(t.openBlock(),t.createElementBlock("details",{id:e.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",null,[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.renderSlot(u.$slots,"additional",{},void 0,!0)]),t.renderSlot(u.$slots,"right",{},void 0,!0),e.arrow?(t.openBlock(),t.createElementBlock("span",Dp,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?Zn:Jn)))])):t.createCommentVNode("",!0)],2),u.$slots.content?(t.openBlock(),t.createElementBlock("div",{key:0,id:e.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,$p)):t.createCommentVNode("",!0)],8,Ap))}}),Et=D(Op,[["__scopeId","data-v-d0f1d871"]]),Pp=["href"],xp={class:"top-row"},Rp={class:"icon-content"},Mp=["src","alt"],Fp={class:"text-content"},Up={key:0,class:"description"},Hp={class:"footer"},zp={class:"bottom-row"},Wp={class:"left"},jp={key:0},Gp={key:1},Kp=t.defineComponent({__name:"SubgroupCard",props:{iconB64Svg:{},text:{},routePath:{},totalCount:{default:0},description:{default:""},href:{default:void 0},isActive:{type:Boolean,default:!1},blueprintsCount:{default:0}},emits:["navigate"],setup(e,{emit:n}){const o=e,l=n,r=t.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(i,a)=>(t.openBlock(),t.createElementBlock("a",{href:r.value,onClick:a[0]||(a[0]=t.withModifiers(s=>l("navigate",r.value),["prevent"]))},[t.createElementVNode("div",{class:t.normalizeClass(["plugin",{"is-active":e.isActive}])},[t.createElementVNode("div",xp,[t.createElementVNode("div",Rp,[t.createElementVNode("img",{src:e.iconB64Svg,alt:`${e.text} icon`},null,8,Mp)]),t.createElementVNode("div",Fp,[t.createElementVNode("h6",null,t.toDisplayString(e.text),1),e.description?(t.openBlock(),t.createElementBlock("p",Up,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hp,[a[3]||(a[3]=t.createElementVNode("hr",null,null,-1)),t.createElementVNode("div",zp,[t.createElementVNode("div",Wp,[o.totalCount?(t.openBlock(),t.createElementBlock("p",jp,[t.createTextVNode(t.toDisplayString(o.totalCount??0)+" ",1),a[1]||(a[1]=t.createElementVNode("span",null,"Tasks",-1))])):t.createCommentVNode("",!0),o.blueprintsCount?(t.openBlock(),t.createElementBlock("p",Gp,[t.createTextVNode(t.toDisplayString(o.blueprintsCount??0)+" ",1),a[2]||(a[2]=t.createElementVNode("span",null,"Blueprints",-1))])):t.createCommentVNode("",!0)]),t.createVNode(Zn)])])],2)],8,Pp))}}),Xl=D(Kp,[["__scopeId","data-v-5d4d2b8b"]]),Yp=["href"],qp={class:"element-card"},Xp={class:"top-row"},Zp={class:"text-capitalize"},Jp={key:0},Qp={class:"plugin-info"},eg={class:"plugin-class"},tg=t.defineComponent({__name:"ElementCard",props:{iconB64Svg:{},text:{},routePath:{},pluginClass:{},href:{},title:{}},emits:["navigate"],setup(e,{emit:n}){const o=e,l=n,r=t.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(i,a)=>(t.openBlock(),t.createElementBlock("a",{href:r.value,onClick:a[0]||(a[0]=t.withModifiers(s=>l("navigate",r.value),["prevent"]))},[t.createElementVNode("div",qp,[t.createElementVNode("div",Xp,[t.createElementVNode("h6",Zp,t.toDisplayString(e.text),1),t.createVNode(Zn)]),e.title?(t.openBlock(),t.createElementBlock("div",Jp,[t.renderSlot(i.$slots,"markdown",{content:e.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Qp,[t.createElementVNode("code",eg,t.toDisplayString(e.pluginClass),1)])])],8,Yp))}}),Zl=D(tg,[["__scopeId","data-v-a3504373"]]),ng={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},og=["aria-hidden","aria-label"],lg=["fill","width","height"],rg={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"},ag={key:0};function ig(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",rg,[o.title?(t.openBlock(),t.createElementBlock("title",ag,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,lg))],16,og)}const sg=D(ng,[["render",ig]]),cg={key:0,class:"language"},ug=["innerHTML"],dg=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(sg),Check:t.shallowRef(Pl)},o=e,l=t.ref(!1),r=t.ref(),i=t.shallowRef(n.ContentCopy.value),a=t.ref(),s=t.ref(),c=t.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,r.value&&t.nextTick(()=>{a.value&&s.value&&Pr.createPopper(a.value,s.value,{placement:"left"})})}function d(){clearTimeout(r.value),navigator.clipboard.writeText(o.code.trimEnd()),i.value=n.Check.value,r.value=setTimeout(()=>{i.value=n.ContentCopy.value,r.value=void 0},2e3)}return(p,h)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:h[0]||(h[0]=y=>l.value=!1)},[e.language&&!l.value?(t.openBlock(),t.createElementBlock("div",cg,t.toDisplayString(e.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:a,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value),{onClick:d}))],512),r.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...h[1]||(h[1]=[t.createTextVNode(" Copied! ",-1),t.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{innerHTML:c.value},null,8,ug)],32))}}),Mt=D(dg,[["__scopeId","data-v-a899f6a1"]]);function Tt(e){if(e.type)return Array.isArray(e.type)?e.type:[e.type];if(e.$ref){const o=e.$ref.split("/");return["#"+o[o.length-1]]}}function Jl(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Qn(e){if(e.enum)return e.enum;if(e.items?.enum)return e.items.enum;if(e.additionalProperties?.enum)return e.additionalProperties.enum}function Ql(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function at(e){const n={},o=r=>{const i=Tt(r);if(i&&i.length>0)return i;if(r.anyOf)return r.anyOf.flatMap(Tt).filter(a=>a!==void 0).filter(S.Utils.distinctFilter)},l=o(e);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&e.items){const r=o(e.items);r&&e.items.anyOf&&(n.types=n.types.filter(i=>i!=="array").concat(r))}return e.additionalProperties?n.subType=Tt(e.additionalProperties)?.[0]:e.items&&(n.subType=Tt(e.items)?.[0]),n}function er(e,n,o=new Set){if(!n)return[];const l=at(e),r=[];if(l.types.forEach(i=>{if(i.startsWith("#")){const a=i.slice(1);n[a]&&!o.has(a)&&!r.includes(a)&&r.push(a)}}),l.subType?.startsWith("#")){const i=l.subType.slice(1);n[i]&&!o.has(i)&&!r.includes(i)&&r.push(i)}return r.map(i=>{const a=n[i];return{key:i,title:a?.title??i.split("_")[0],properties:a?.properties??{}}})}function tr(e){return e.$dynamic===!0?!0:e.$dynamic===!1?!1:e.anyOf?.some(n=>n.$dynamic===!0)??!1}const mg={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fg=["aria-hidden","aria-label"],pg=["fill","width","height"],gg={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"},hg={key:0};function Eg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",gg,[o.title?(t.openBlock(),t.createElementBlock("title",hg,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,pg))],16,fg)}const yg=D(mg,[["render",Eg]]),kg={class:"me-3"},vg={class:"d-flex flex-column"},Cg=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return yg;case"info":return At;case"warning":return Kt;case"danger":return hn;default:return At}});return(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+e.type),role:"alert"},[t.createElementVNode("div",kg,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",vg,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),nr=D(Cg,[["__scopeId","data-v-f7fd8bc1"]]),_g={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ng=["aria-hidden","aria-label"],Sg=["fill","width","height"],bg={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"},wg={key:0};function Lg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",bg,[o.title?(t.openBlock(),t.createElementBlock("title",wg,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Sg))],16,Ng)}const or=D(_g,[["render",Lg]]),Tg={class:"property-detail"},Bg={key:0},Vg=["href"],Ig={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},Ag={class:"ref-type"},Dg={key:1,class:"type-box rounded fs-7 px-2 py-1"},$g={key:1},Og={class:"border rounded px-2 py-1"},Pg={key:2},xg={class:"border rounded px-2 py-1"},Rg={key:3},Mg={class:"border rounded px-2 py-1"},Fg={key:4},Ug={class:"border rounded px-2 py-1"},Hg={key:5},zg={class:"border rounded px-2 py-1"},Wg={key:6},jg={class:"border rounded px-2 py-1"},Gg={key:7},Kg={class:"border rounded px-2 py-1"},Yg={key:8},qg={class:"border rounded px-2 py-1"},Xg={key:9},Zg={class:"border rounded px-2 py-1"},Jg={key:10},Qg={class:"border rounded px-2 py-1"},e1={key:11},t1={class:"border rounded px-2 py-1"},n1={key:12},o1={class:"border rounded px-2 py-1"},l1={key:13},r1={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},a1={key:14},i1={class:"property-description markdown"},s1={key:2},c1=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(at(n.property).subType),l=t.ref(Qn(n.property)),r=S.sanitizeForMarkdown;return(i,a)=>(t.openBlock(),t.createElementBlock("div",Tg,[o.value?(t.openBlock(),t.createElementBlock("div",Bg,[a[1]||(a[1]=t.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,href:o.value,onClick:a[0]||(a[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("button",Ig,[t.createElementVNode("span",Ag,t.toDisplayString(t.unref(Jl)(o.value)),1),t.createVNode(or)])],8,Vg)):(t.openBlock(),t.createElementBlock("span",Dg,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),e.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",$g,[a[2]||(a[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",Og,t.toDisplayString(e.property.default),1)])):t.createCommentVNode("",!0),e.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",Pg,[a[3]||(a[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",xg,t.toDisplayString(e.property.pattern),1)])):t.createCommentVNode("",!0),e.property.unit!==void 0&&e.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",Rg,[a[4]||(a[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",Mg,t.toDisplayString(e.property.unit),1)])):t.createCommentVNode("",!0),e.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",Fg,[a[5]||(a[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",Ug,t.toDisplayString(e.property.minLength),1)])):t.createCommentVNode("",!0),e.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",Hg,[a[6]||(a[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",zg,t.toDisplayString(e.property.maxLength),1)])):t.createCommentVNode("",!0),e.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",Wg,[a[7]||(a[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",jg,t.toDisplayString(e.property.minItems),1)])):t.createCommentVNode("",!0),e.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",Gg,[a[8]||(a[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Kg,t.toDisplayString(e.property.maxItems),1)])):t.createCommentVNode("",!0),e.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",Yg,[a[9]||(a[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",qg," >= "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Xg,[a[10]||(a[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Zg," > "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",Jg,[a[11]||(a[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",Qg," <= "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",e1,[a[12]||(a[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",t1," < "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",n1,[a[13]||(a[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",o1,t.toDisplayString(e.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",l1,[a[14]||(a[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",r1,[(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),e.property.title!==void 0||e.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",a1,[t.createElementVNode("div",i1,[e.property.title!==void 0?t.renderSlot(i.$slots,"markdown",{key:0,content:t.unref(r)(e.property.title)},void 0,!0):t.createCommentVNode("",!0),e.property.description!==void 0?t.renderSlot(i.$slots,"markdown",{key:1,content:t.unref(r)(e.property.description)},void 0,!0):t.createCommentVNode("",!0),e.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",s1,[t.createVNode(nr,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),u1=D(c1,[["__scopeId","data-v-e4c1ea43"]]),d1={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},m1=["aria-hidden","aria-label"],f1=["fill","width","height"],p1={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},g1={key:0};function h1(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",p1,[o.title?(t.openBlock(),t.createElementBlock("title",g1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,f1))],16,m1)}const lr=D(d1,[["render",h1]]),E1={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},y1=["aria-hidden","aria-label"],k1=["fill","width","height"],v1={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"},C1={key:0};function _1(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",v1,[o.title?(t.openBlock(),t.createElementBlock("title",C1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,k1))],16,y1)}const rr=D(E1,[["render",_1]]),N1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},S1=["aria-hidden","aria-label"],b1=["fill","width","height"],w1={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"},L1={key:0};function T1(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=a=>e.$emit("click",a))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",w1,[o.title?(t.openBlock(),t.createElementBlock("title",L1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,b1))],16,S1)}const ar=D(N1,[["render",T1]]),B1={class:"border overflow-hidden"},V1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},I1={class:"d-flex gap-2"},A1={class:"d-flex flex-wrap justify-content-end gap-2"},D1=["href"],$1={class:"ref-type"},O1={key:1,class:"type-box rounded fs-7 px-2 py-1"},P1=t.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,r=t.ref(!1);t.watch(r,a=>{a&&l("expand")});function i(a){a=a??{};const s=[],c=[];for(const p in a)typeof a[p]=="object"&&(a[p]=Ql(a[p]),a[p].$required?s.push(p):c.push(p));const u=[...s.sort(),...c.sort()],d={};return u.forEach(p=>{(!a[p].$deprecated||o.forceInclude?.includes(p))&&(d[p]=a[p])}),d}return(a,s)=>(t.openBlock(),t.createBlock(ht,{class:"section-collapsible","clickable-text":e.sectionName,href:e.href,onExpand:s[2]||(s[2]=c=>l("expand")),"initially-expanded":e.initiallyExpanded||r.value,"no-url-change":e.noUrlChange},t.createSlots({_:2},[Object.keys(e.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",B1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(e.properties),(c,u)=>(t.openBlock(),t.createBlock(ht,{class:"property",key:u,arrow:!1,"clickable-text":u,href:e.href+"_"+u,onExpand:s[1]||(s[1]=d=>r.value=!0),"no-url-change":e.noUrlChange},{additionalButtonText:t.withCtx(()=>[c.$required?(t.openBlock(),t.createBlock(j,{key:0,class:"d-flex",title:"Required"},{default:t.withCtx(()=>[...s[3]||(s[3]=[t.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):t.createCommentVNode("",!0)]),buttonRight:t.withCtx(({collapsed:d})=>[t.createElementVNode("span",V1,[t.createElementVNode("span",I1,[e.showDynamic&&!t.unref(tr)(c)?(t.openBlock(),t.createBlock(j,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(rr,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),c.$beta?(t.openBlock(),t.createBlock(j,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(ar,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),c.$deprecated?(t.openBlock(),t.createBlock(j,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Kt,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",A1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(at)(c).types,p=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[p.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,class:"d-flex fw-bold ref-type-box rounded fs-7 px-2 py-1",href:p,onClick:s[0]||(s[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("span",$1,t.toDisplayString(t.unref(Jl)(p)),1),t.createVNode(or)],8,D1)):(t.openBlock(),t.createElementBlock("span",O1,t.toDisplayString(p),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d?Jn:lr),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(u1,{property:c},{markdown:t.withCtx(({content:d})=>[t.renderSlot(a.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded","no-url-change"]))}}),Bt=D(P1,[["__scopeId","data-v-58cb0b29"]]),x1={class:"d-flex flex-column gap-6"},R1={class:"d-flex flex-column gap-3"},M1={key:0,class:"alert alert-info mb-2",role:"alert"},F1={key:1,class:"plugin-title markdown"},U1={key:2,class:"markdown"},H1={class:"d-flex flex-column gap-4"},z1={class:"d-flex flex-column gap-3"},W1={class:"markdown"},j1={key:0,class:"w-100 align-self-center"},G1={class:"markdown"},K1={class:"markdown"},Y1={class:"markdown"},q1={class:"d-flex flex-column gap-7 ps-3"},X1={class:"markdown"},Z1=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,r=t.ref(!1),i=t.ref(new Set),a=t.ref(0),s=async()=>{const w=window.location.hash.slice(1);if(!w||!l.schema.definitions){i.value.clear();return}const k=w.replace(/-body$/,""),v=Object.keys(l.schema.definitions).find(f=>k===f||k.startsWith(f+"_"));if(v){r.value=!0,a.value+=1,i.value.clear(),i.value.add(v),await t.nextTick();let f=0;const E=30,L=()=>{const N=document.getElementById(k);N?N.scrollIntoView({behavior:"smooth",block:"start"}):f<E&&(f++,requestAnimationFrame(L))};requestAnimationFrame(L)}else i.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([w,k],[v,f])=>{(w!==v||k!==f)&&l.schema.definitions&&s()});const c=w=>w?.full?w.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
16
|
-
type:
|
|
17
|
-
`.concat(w.code),u=t.ref(),d=t.computed(()=>l.schema.properties?.$examples),p=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(w=>[w.name,{...w,name:void 0}]))),{getHighlighterCore:h}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);u.value=([n,o]=t.withAsyncContext(()=>h()),n=await n,o(),n);const y="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),t.onUnmounted(()=>{window.removeEventListener("hashchange",s)}),(w,k)=>(t.openBlock(),t.createElementBlock("div",x1,[t.createElementVNode("div",R1,[e.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",M1,[...k[0]||(k[0]=[t.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):t.createCommentVNode("",!0),e.schema.properties?.title?(t.openBlock(),t.createElementBlock("div",F1,[t.renderSlot(w.$slots,"markdown",{content:e.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),e.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",U1,[t.renderSlot(w.$slots,"markdown",{content:e.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Mt,{highlighter:u.value,language:"yaml",theme:y,code:`type: "${e.pluginType}"`,key:e.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:e.pluginType},[d.value?(t.openBlock(),t.createBlock(ht,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":e.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",H1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,(v,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.pluginType+"-"+f},[t.createElementVNode("div",z1,[t.createElementVNode("div",W1,[v.title?t.renderSlot(w.$slots,"markdown",{key:0,content:v.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),v.code?(t.openBlock(),t.createBlock(Mt,{key:0,highlighter:u.value,language:v.lang??"yaml",theme:y,code:c(v)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),f<d.value.length-1?(t.openBlock(),t.createElementBlock("hr",j1)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.properties?(t.openBlock(),t.createBlock(Bt,{key:1,class:"plugin-section",properties:e.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":e.propsInitiallyExpanded,"force-include":e.forceIncludeProperties,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:v})=>[t.createElementVNode("div",G1,[t.renderSlot(w.$slots,"markdown",{content:v},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):t.createCommentVNode("",!0),e.schema.outputs?.properties&&Object.keys(e.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(Bt,{key:2,class:"plugin-section",properties:e.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:v})=>[t.createElementVNode("div",K1,[t.renderSlot(w.$slots,"markdown",{content:v},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.$metrics?(t.openBlock(),t.createBlock(Bt,{key:3,class:"plugin-section",properties:p.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:v})=>[t.createElementVNode("div",Y1,[t.renderSlot(w.$slots,"markdown",{content:v},void 0,!0)])]),_:3},8,["properties","no-url-change"])):t.createCommentVNode("",!0),e.schema.definitions&&Object.keys(e.schema.definitions).length>0?(t.openBlock(),t.createBlock(ht,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":r.value,key:`definitions-${e.pluginType}-${a.value}`,"no-url-change":e.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",q1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.entries(e.schema.definitions),([v,f])=>(t.openBlock(),t.createBlock(Bt,{properties:f.properties,"section-name":f.title??v.split("_")[0],href:v,"show-dynamic":!1,"initially-expanded":i.value.has(v),key:e.pluginType+"-"+v,class:"plugin-section nested-button-py-2",onExpand:E=>{r.value=!0,i.value.add(v)},"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:E})=>[t.createElementVNode("div",X1,[t.renderSlot(w.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),J1=D(Z1,[["__scopeId","data-v-af023a1d"]]),Q1={key:0},eh={class:"type-box rounded fs-7 px-2 py-1"},th={key:1},nh={class:"border rounded px-2 py-1"},oh={key:2},lh={class:"border rounded px-2 py-1"},rh={key:3},ah={class:"border rounded px-2 py-1"},ih={key:4},sh={class:"border rounded px-2 py-1"},ch={key:5},uh={class:"border rounded px-2 py-1"},dh={key:6},mh={class:"border rounded px-2 py-1"},fh={key:7},ph={class:"border rounded px-2 py-1"},gh={key:8},hh={class:"border rounded px-2 py-1"},Eh={key:9},yh={class:"border rounded px-2 py-1"},kh={key:10},vh={class:"border rounded px-2 py-1"},Ch={key:11},_h={class:"border rounded px-2 py-1"},Nh={key:12},Sh={class:"border rounded px-2 py-1"},bh={key:13},wh={class:"values-wrapper d-flex flex-wrap justify-content-end gap-7 p-0"},Lh=t.defineComponent({__name:"PropertyMeta",props:{property:{},subtype:{},enumValues:{}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.subtype&&!e.subtype.startsWith("#")?(t.openBlock(),t.createElementBlock("div",Q1,[o[0]||(o[0]=t.createElementVNode("span",null,"SubType",-1)),t.createElementVNode("span",eh,t.toDisplayString(e.subtype),1)])):t.createCommentVNode("",!0),e.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",th,[o[1]||(o[1]=t.createElementVNode("span",null,"Default",-1)),t.createElementVNode("code",nh,t.toDisplayString(e.property.default),1)])):t.createCommentVNode("",!0),e.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",oh,[o[2]||(o[2]=t.createElementVNode("span",null,"Validation RegExp",-1)),t.createElementVNode("code",lh,t.toDisplayString(e.property.pattern),1)])):t.createCommentVNode("",!0),e.property.unit!==void 0&&e.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",rh,[o[3]||(o[3]=t.createElementVNode("span",null,"Unit",-1)),t.createElementVNode("code",ah,t.toDisplayString(e.property.unit),1)])):t.createCommentVNode("",!0),e.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",ih,[o[4]||(o[4]=t.createElementVNode("span",null,"Min length",-1)),t.createElementVNode("code",sh,t.toDisplayString(e.property.minLength),1)])):t.createCommentVNode("",!0),e.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",ch,[o[5]||(o[5]=t.createElementVNode("span",null,"Max length",-1)),t.createElementVNode("code",uh,t.toDisplayString(e.property.maxLength),1)])):t.createCommentVNode("",!0),e.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",dh,[o[6]||(o[6]=t.createElementVNode("span",null,"Min items",-1)),t.createElementVNode("code",mh,t.toDisplayString(e.property.minItems),1)])):t.createCommentVNode("",!0),e.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",fh,[o[7]||(o[7]=t.createElementVNode("span",null,"Max items",-1)),t.createElementVNode("code",ph,t.toDisplayString(e.property.maxItems),1)])):t.createCommentVNode("",!0),e.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",gh,[o[8]||(o[8]=t.createElementVNode("span",null,"Minimum",-1)),t.createElementVNode("code",hh,">= "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Eh,[o[9]||(o[9]=t.createElementVNode("span",null,"Minimum",-1)),t.createElementVNode("code",yh,"> "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",kh,[o[10]||(o[10]=t.createElementVNode("span",null,"Maximum",-1)),t.createElementVNode("code",vh,"<= "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",Ch,[o[11]||(o[11]=t.createElementVNode("span",null,"Maximum",-1)),t.createElementVNode("code",_h,"< "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",Nh,[o[12]||(o[12]=t.createElementVNode("span",null,"Format",-1)),t.createElementVNode("code",Sh,t.toDisplayString(e.property.format),1)])):t.createCommentVNode("",!0),e.enumValues!==void 0?(t.openBlock(),t.createElementBlock("div",bh,[o[13]||(o[13]=t.createElementVNode("span",null,"Possible Values",-1)),t.createElementVNode("div",wh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.enumValues,(l,r)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:r},t.toDisplayString(l),1))),128))])])):t.createCommentVNode("",!0)],64))}}),ir=D(Lh,[["__scopeId","data-v-2d5ac2ae"]]),Th={class:"d-flex flex-grow-1 align-items-center"},Bh=t.defineComponent({__name:"PropertyBadges",props:{property:{},showDynamic:{type:Boolean,default:!0},sectionClass:{default:""}},setup(e){function n(o){return at(o).types.filter(r=>!r.startsWith("#"))}return(o,l)=>(t.openBlock(),t.createElementBlock("span",Th,[t.createElementVNode("span",{class:t.normalizeClass(["d-flex gap-2 flex-wrap align-items-center",e.sectionClass])},[e.property&&e.property.$required?(t.openBlock(),t.createBlock(j,{key:0,class:"d-flex align-items-center",title:"Required"},{default:t.withCtx(()=>[...l[0]||(l[0]=[t.createElementVNode("span",{class:"text-danger"},"*",-1)])]),_:1})):t.createCommentVNode("",!0),e.showDynamic&&e.property&&!t.unref(tr)(e.property)?(t.openBlock(),t.createBlock(j,{key:1,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(rr,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),e.property&&e.property.$beta?(t.openBlock(),t.createBlock(j,{key:2,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(ar,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),e.property&&e.property.$deprecated?(t.openBlock(),t.createBlock(j,{key:3,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Kt,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),e.property?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:4},t.renderList(n(e.property),r=>(t.openBlock(),t.createElementBlock("span",{key:r,class:"type-box rounded fs-7 px-2 py-1"},t.toDisplayString(r),1))),128)):t.createCommentVNode("",!0)],2)]))}}),sr=D(Bh,[["__scopeId","data-v-f088032b"]]),Vh={class:"def-content"},Ih={class:"d-flex align-items-center justify-content-between gap-2"},Ah={key:0,class:"property-desc mt-2"},Dh={key:1,class:"mt-3 nested-defs"},$h=t.defineComponent({__name:"DefinitionCollapsible",props:{definition:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(e){const n=e,o=S.sanitizeForMarkdown,l=s=>{const c=at(s).subType;return c&&!c.startsWith("#")?c:void 0},r=s=>Qn(s),i=s=>{const c=n.definitions,u=n.depth,d=n.maxDepth,p=n.visitedKeys;return!c||u>=d?[]:er(s,c,p)},a=t.computed(()=>{const s=new Set(n.visitedKeys);return s.add(n.definition.key),s});return(s,c)=>{const u=t.resolveComponent("DefinitionCollapsible",!0);return t.openBlock(),t.createBlock(Et,{title:e.definition.title,href:`def-${e.definition.key}`,class:t.normalizeClass(["def-collapsible",`section-${e.section}`]),arrow:"","no-url-change":""},{content:t.withCtx(()=>[t.createElementVNode("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.definition.properties,(d,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"def-property"},[t.createElementVNode("div",Ih,[t.createElementVNode("span",null,t.toDisplayString(p),1),t.createVNode(sr,{property:d,"show-dynamic":!1,"section-class":"section-properties"},null,8,["property"])]),t.createVNode(ir,{property:d,subtype:l(d),"enum-values":r(d)},null,8,["property","subtype","enum-values"]),d.title!==void 0||d.description!==void 0?(t.openBlock(),t.createElementBlock("div",Ah,[d.title?t.renderSlot(s.$slots,"markdown",{key:0,content:t.unref(o)(d.title)},void 0,!0):t.createCommentVNode("",!0),d.description?t.renderSlot(s.$slots,"markdown",{key:1,content:t.unref(o)(d.description)},void 0,!0):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.depth<e.maxDepth&&i(d).length?(t.openBlock(),t.createElementBlock("div",Dh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(d),h=>(t.openBlock(),t.createBlock(u,{key:`${e.definition.key}-${h.key}`,definition:h,definitions:e.definitions,"visited-keys":a.value,depth:e.depth+1,"max-depth":e.maxDepth},{markdown:t.withCtx(({content:y})=>[t.renderSlot(s.$slots,"markdown",{content:y},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth"]))),128))])):t.createCommentVNode("",!0)]))),128))])]),_:3},8,["title","href","class"])}}}),Oh=D($h,[["__scopeId","data-v-577c29ff"]]),Ph={class:"property-detail"},xh={key:0},Rh={class:"property-description markdown"},Mh={key:2},Fh={key:3,class:"mt-3"},Uh=t.defineComponent({__name:"PropertyDetailV2",props:{property:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(e){const n=e,o=t.computed(()=>at(n.property).subType),l=t.computed(()=>Qn(n.property)),r=t.computed(()=>{const s=n.definitions,c=n.depth,u=n.maxDepth,d=n.property,p=n.visitedKeys;return!s||c>=u?[]:er(d,s,p)}),i=t.computed(()=>{const s=new Set(n.visitedKeys);return r.value.forEach(c=>s.add(c.key)),s}),a=S.sanitizeForMarkdown;return(s,c)=>(t.openBlock(),t.createElementBlock("div",Ph,[t.createVNode(ir,{property:e.property,subtype:o.value,"enum-values":l.value},null,8,["property","subtype","enum-values"]),e.property.title!==void 0||e.property.description!==void 0||e.depth<e.maxDepth&&r.value.length>0?(t.openBlock(),t.createElementBlock("div",xh,[t.createElementVNode("div",Rh,[e.property.title!==void 0?t.renderSlot(s.$slots,"markdown",{key:0,content:t.unref(a)(e.property.title)},void 0,!0):t.createCommentVNode("",!0),e.property.description!==void 0?t.renderSlot(s.$slots,"markdown",{key:1,content:t.unref(a)(e.property.description)},void 0,!0):t.createCommentVNode("",!0),e.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",Mh,[t.createVNode(nr,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0),e.depth<e.maxDepth&&r.value.length>0?(t.openBlock(),t.createElementBlock("div",Fh,[c[0]||(c[0]=t.createElementVNode("div",{class:"definitions-header"}," Definitions ",-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,u=>(t.openBlock(),t.createBlock(Oh,{key:`${u.key}-${e.depth}`,definition:u,definitions:e.definitions,"visited-keys":i.value,depth:e.depth+1,"max-depth":e.maxDepth,section:e.section},{markdown:t.withCtx(({content:d})=>[t.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth","section"]))),128))])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Hh=D(Uh,[["__scopeId","data-v-023aa8d8"]]),zh={class:"border overflow-hidden"},Wh=t.defineComponent({__name:"CollapsiblePropertiesV2",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},definitions:{default:void 0}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,r=t.computed(()=>{const s=o.sectionName.toLowerCase();return s==="properties"?"section-properties":s==="outputs"?"section-outputs":s==="metrics"?"section-metrics":""}),i=t.ref(!1);t.watch(i,s=>{s&&l("expand")});function a(s){s=s??{};const c=[],u=[];for(const h in s)typeof s[h]=="object"&&(s[h]=Ql(s[h]),s[h].$required?c.push(h):u.push(h));const d=[...c.sort(),...u.sort()],p={};return d.forEach(h=>{(!s[h].$deprecated||o.forceInclude?.includes(h))&&(p[h]=s[h])}),p}return(s,c)=>(t.openBlock(),t.createBlock(Et,{class:"section-collapsible",title:e.sectionName,href:e.href,onExpand:c[1]||(c[1]=u=>l("expand")),"initially-expanded":e.initiallyExpanded||i.value,"no-url-change":e.noUrlChange},t.createSlots({_:2},[Object.keys(e.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",zh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(e.properties),(u,d)=>(t.openBlock(),t.createBlock(Et,{class:t.normalizeClass(["property",r.value]),key:d,title:d,href:e.href+"_"+d,onExpand:c[0]||(c[0]=p=>i.value=!0),"no-url-change":e.noUrlChange},{right:t.withCtx(()=>[t.createVNode(sr,{property:u,"show-dynamic":e.showDynamic},null,8,["property","show-dynamic"])]),content:t.withCtx(()=>[t.createVNode(Hh,{property:u,definitions:e.definitions,section:e.sectionName.toLowerCase()},{markdown:t.withCtx(({content:p})=>[t.renderSlot(s.$slots,"markdown",{content:p},void 0,!0)]),_:3},8,["property","definitions","section"])]),_:2},1032,["title","href","no-url-change","class"]))),128))])]),key:"0"}:void 0]),1032,["title","href","initially-expanded","no-url-change"]))}}),pn=D(Wh,[["__scopeId","data-v-e31e75cd"]]),jh={class:"d-flex flex-column gap-6"},Gh={class:"d-flex flex-column"},Kh={key:0,class:"alert alert-info mb-2",role:"alert"},Yh={key:1,class:"markdown"},qh={class:"d-flex flex-column gap-4"},Xh={class:"d-flex flex-column"},Zh={class:"markdown"},Jh={key:0,class:"w-100 align-self-center"},Qh={class:"markdown"},eE={class:"markdown"},tE={class:"markdown"},nE=t.defineComponent({__name:"SchemaToHtmlV2",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,r=d=>d?.full?d.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
18
|
-
type:
|
|
19
|
-
`.concat(d.code),i=t.ref(),a=t.computed(()=>l.schema.properties?.$examples),s=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(d=>[d.name,{...d,name:void 0}]))),{getHighlighterCore:c}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);i.value=([n,o]=t.withAsyncContext(()=>c()),n=await n,o(),n);const u="github-"+(l.darkMode?"dark":"light");return(d,p)=>(t.openBlock(),t.createElementBlock("div",jh,[t.createElementVNode("div",Gh,[e.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",Kh,[...p[0]||(p[0]=[t.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):t.createCommentVNode("",!0),e.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",Yh,[t.renderSlot(d.$slots,"markdown",{content:e.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Mt,{highlighter:i.value,language:"yaml",theme:u,code:`type: "${e.pluginType}"`,key:e.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column",key:e.pluginType},[a.value?(t.openBlock(),t.createBlock(Et,{key:0,class:"plugin-section",title:"Examples",href:"examples","no-url-change":e.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",qh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(h,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.pluginType+"-"+y},[t.createElementVNode("div",Xh,[t.createElementVNode("div",Zh,[h.title?t.renderSlot(d.$slots,"markdown",{key:0,content:h.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),h.code?(t.openBlock(),t.createBlock(Mt,{key:0,highlighter:i.value,language:h.lang??"yaml",theme:u,code:r(h)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),y<a.value.length-1?(t.openBlock(),t.createElementBlock("hr",Jh)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.properties?(t.openBlock(),t.createBlock(pn,{key:1,class:"plugin-section",properties:e.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":e.propsInitiallyExpanded,"force-include":e.forceIncludeProperties,definitions:e.schema.definitions,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:h})=>[t.createElementVNode("div",Qh,[t.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","definitions","no-url-change"])):t.createCommentVNode("",!0),e.schema.outputs?.properties&&Object.keys(e.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(pn,{key:2,class:"plugin-section",properties:e.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,definitions:e.schema.definitions,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:h})=>[t.createElementVNode("div",eE,[t.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.$metrics?(t.openBlock(),t.createBlock(pn,{key:3,class:"plugin-section",properties:s.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,definitions:e.schema.definitions,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:h})=>[t.createElementVNode("div",tE,[t.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),oE=D(nE,[["__scopeId","data-v-1fe47a0f"]]),lE={class:"d-flex flex-column gap-4"},rE={key:0,class:"pb-2"},aE={class:"row g-4 last"},iE=["id"],sE={class:"row g-4 last"},cE={key:2,class:"description"},uE={key:0,class:"gradient-overlay"},dE={key:0,class:"more-wrap text-center"},mE=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},routePath:{},icons:{},subGroup:{},activeId:{},subgroupBlueprintCounts:{},metadataMap:{},schemas:{}},emits:["navigate"],setup(e,{emit:n}){const o=e,l=T=>o.metadataMap?.[T.subGroup??T.group],r=T=>l(T)?.description??T.description,i=T=>l(T)?.title??T.title??De(T),a=t.computed(()=>o.plugins.find(T=>o.subGroup===void 0?!0:Ce(De(T))===o.subGroup)),s=t.computed(()=>a.value?.longDescription??a.value?.description),c=t.computed(()=>o.plugins.filter(T=>T.name.toLowerCase()===o.pluginName.toLowerCase()&&T.subGroup!==void 0)),u=T=>{let I=T.split(".");return I?.[I.length-1]},d=T=>`${o.routePath}/${T}`;function p(T){const I=Ht(T);return Object.values(I).reduce((_,R)=>_+R.length,0)}const{elementsByType:h}=tl(a),y=t.ref(null),w=t.ref(null),k=t.ref(!1),{height:v}=Zo(y),{height:f}=Zo(w),E=t.computed(()=>f.value>v.value+2),L=()=>{k.value=!k.value},N=n;return(T,I)=>(t.openBlock(),t.createElementBlock("div",lE,[e.subGroup===void 0&&e.plugins.length>1?(t.openBlock(),t.createElementBlock("div",rE,[t.createElementVNode("div",aE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,_=>(t.openBlock(),t.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:t.unref(De)(_)},[t.createVNode(Xl,{id:t.unref(Ce)(t.unref(De)(_)),"icon-b64-svg":"data:image/svg+xml;base64,"+(e.icons[_.subGroup]??e.icons[_.group]),text:i(_),description:r(_),href:`${e.routePath}/${t.unref(Ce)(t.unref(De)(_))}`,"route-path":e.routePath,"plugin-group":_.group??_.name,"total-count":p(_),"blueprints-count":o.subgroupBlueprintCounts?.[`${t.unref(Ce)(_.group??_.name)}-${t.unref(Ce)(t.unref(De)(_))}`]??0,"is-active":e.activeId?.toLowerCase()===t.unref(Ce)(t.unref(De)(_)),class:"text-capitalize h-100",onNavigate:I[0]||(I[0]=R=>N("navigate",R))},null,8,["id","icon-b64-svg","text","description","href","route-path","plugin-group","total-count","blueprints-count","is-active"])]))),128))])])):a.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(h),(_,R)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section pb-3",key:R},[t.createElementVNode("h4",{id:`section-${t.unref(Ce)(R)}`,class:"text-capitalize"},t.toDisplayString(R),9,iE),t.createElementVNode("div",sE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,U=>(t.openBlock(),t.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:U},[t.createVNode(Zl,{id:t.unref(Ce)(U),"icon-b64-svg":"data:image/svg+xml;base64,"+(e.icons[U]??e.icons[a.value.subGroup??a.value.group]??e.icons[a.value.group]),text:u(U),"plugin-class":U,href:d(U),"route-path":e.routePath,title:e.schemas?.[U]?.title,class:"h-100",onNavigate:I[1]||(I[1]=Q=>N("navigate",Q))},{markdown:t.withCtx(({content:Q})=>[t.renderSlot(T.$slots,"markdown",{content:Q},void 0,!0)]),_:3},8,["id","icon-b64-svg","text","plugin-class","href","route-path","title"])]))),128))])]))),128)):t.createCommentVNode("",!0),s.value!==void 0&&a.value?.longDescription?(t.openBlock(),t.createElementBlock("div",cE,[I[2]||(I[2]=t.createElementVNode("h4",{id:"how-to-use-this-plugin"}," How to use this plugin ",-1)),t.createElementVNode("div",{ref_key:"contentWrap",ref:y,class:t.normalizeClass(["markdown-container",{expanded:k.value}])},[t.createElementVNode("div",{ref_key:"contentInner",ref:w,class:"markdown-inner"},[t.renderSlot(T.$slots,"markdown",{content:s.value.replace(/ *:(?![ /])/g,": ")},void 0,!0)],512),E.value&&!k.value?(t.openBlock(),t.createElementBlock("div",uE)):t.createCommentVNode("",!0)],2),E.value||k.value?(t.openBlock(),t.createElementBlock("div",dE,[t.createElementVNode("button",{class:"more-btn",onClick:L},[t.createTextVNode(t.toDisplayString(k.value?"See less":"See more")+" ",1),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(k.value?lr:Jn)))])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))}}),fE=D(mE,[["__scopeId","data-v-535305bd"]]),pE=/"(?:_|\\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*:/,gE=/"(?: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*:/,hE=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function EE(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){yE(e);return}return n}function yE(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function kE(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(!hE.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(pE.test(e)||gE.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,EE)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const vE=/\d/,CE=["-","_","/","."];function _E(e=""){if(!vE.test(e))return e!==e.toLowerCase()}function cr(e,n){const o=CE,l=[];if(!e||typeof e!="string")return l;let r="",i,a;for(const s of e){const c=o.includes(s);if(c===!0){l.push(r),r="",i=void 0;continue}const u=_E(s);if(a===!1){if(i===!1&&u===!0){l.push(r),r=s,i=u;continue}if(i===!0&&u===!1&&r.length>1){const d=r.at(-1);l.push(r.slice(0,Math.max(0,r.length-1))),r=d+s,i=u;continue}}r+=s,i=u,a=c}return l.push(r),l}function NE(e){return e?e[0].toUpperCase()+e.slice(1):""}function ur(e,n){return e?(Array.isArray(e)?e:cr(e)).map(o=>NE(o)).join(""):""}function SE(e,n){return e?(Array.isArray(e)?e:cr(e)).map(o=>o.toLowerCase()).join("-"):""}class kt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}kt.prototype.normal={};kt.prototype.property={};kt.prototype.space=void 0;function dr(e,n){const o={},l={};for(const r of e)Object.assign(o,r.property),Object.assign(l,r.normal);return new kt(o,l,n)}function Bn(e){return e.toLowerCase()}class ye{constructor(n,o){this.attribute=o,this.property=n}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let bE=0;const F=Ze(),se=Ze(),Vn=Ze(),V=Ze(),J=Ze(),ot=Ze(),ve=Ze();function Ze(){return 2**++bE}const In=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:se,commaOrSpaceSeparated:ve,commaSeparated:ot,number:V,overloadedBoolean:Vn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),gn=Object.keys(In);class eo extends ye{constructor(n,o,l,r){let i=-1;if(super(n,o),Jo(this,"space",r),typeof l=="number")for(;++i<gn.length;){const a=gn[i];Jo(this,gn[i],(l&In[a])===In[a])}}}eo.prototype.defined=!0;function Jo(e,n,o){o&&(e[n]=o)}function it(e){const n={},o={};for(const[l,r]of Object.entries(e.properties)){const i=new eo(l,e.transform(e.attributes||{},l),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(i.mustUseProperty=!0),n[l]=i,o[Bn(l)]=l,o[Bn(i.attribute)]=l}return new kt(n,o,e.space)}const mr=it({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:V,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:se,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function fr(e,n){return n in e?e[n]:n}function pr(e,n){return fr(e,n.toLowerCase())}const wE=it({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ot,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:J,autoFocus:F,autoPlay:F,blocking:J,capture:null,charSet:null,checked:F,cite:null,className:J,cols:V,colSpan:null,content:null,contentEditable:se,controls:F,controlsList:J,coords:V|ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Vn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:J,height:V,hidden:Vn,high:V,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:J,itemRef:J,itemScope:F,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:V,pattern:null,ping:J,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:J,required:F,reversed:F,rows:V,rowSpan:V,sandbox:J,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:se,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:pr}),LE=it({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:ve,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:ot,g2:ot,glyphName:ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,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:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ve,rev:ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ve,requiredFeatures:ve,requiredFonts:ve,requiredFormats:ve,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ve,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fr}),gr=it({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()}}),hr=it({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pr}),Er=it({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),TE=/[A-Z]/g,Qo=/-[a-z]/g,BE=/^data[-\w.:]+$/i;function VE(e,n){const o=Bn(n);let l=n,r=ye;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&BE.test(n)){if(n.charAt(4)==="-"){const i=n.slice(5).replace(Qo,AE);l="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=n.slice(4);if(!Qo.test(i)){let a=i.replace(TE,IE);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}r=eo}return new r(l,n)}function IE(e){return"-"+e.toLowerCase()}function AE(e){return e.charAt(1).toUpperCase()}const DE=dr([mr,wE,gr,hr,Er],"html");dr([mr,LE,gr,hr,Er],"svg");const $E=new Set(["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"]),OE=["p","h1","h2","h3","h4","h5","h6","li"];function Ft(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function to(e){return Ft(e,"text")||Ft(e,Symbol.for("v-txt"))}function yr(e){return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof e.children?.default=="function"?e.children.default():[]}function Ut(e){if(!e)return"";if(Array.isArray(e))return e.map(Ut).join("");if(to(e))return e.value||e.children||"";const n=yr(e);return Array.isArray(n)?n.map(Ut).filter(Boolean).join(""):""}function kr(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>kr(l,n));let o=e;return n.some(l=>l==="*"||Ft(e,l))&&(o=yr(e)||e,!Array.isArray(o)&&OE.some(l=>Ft(e,l))&&(o=[o])),o}function vr(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>vr(kr(o,[n[0]]),n.slice(1))).filter(o=>!(to(o)&&Ut(o).trim()==="")):e}function Cr(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?vr(e,n).reduce((o,l)=>(to(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function PE(e,n){return n.reduce((o,l)=>{const r=xE(e,l);return r!==void 0&&(o[l]=r),o},{})}function xE(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const An="default",_r=/^@|^v-on:/,Nr=/^:|^v-bind:/,RE=/^v-model/,ME=["select","textarea","input"],FE=new Set(["math","svg"]),Sr=new Set,UE=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}`])),HE=["script","base"],zE=t.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){const o=t.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:r}=o?.$config?.public||{},i=r?.components?.customElements||r?.components?.custom;i&&i.forEach(d=>Sr.add(d));const a=t.computed(()=>({...r?.components?.prose&&e.prose!==!1?UE:{},...r?.components?.map||{},...t.toRaw(e.data?.mdc?.components||{}),...e.components})),s=t.computed(()=>{const d=(e.body?.children||[]).map(p=>p.tag||p.type).filter(p=>!no(p));return Array.from(new Set(d)).sort().join(".")}),c=t.reactive({...e.data});t.watch(()=>e.data,d=>{Object.assign(c,d)}),await ey(e.body,{tags:a.value});function u(d,p){const h=d.split(".").length-1;return d.split(".").reduce((y,w,k)=>k==h&&y?(y[w]=p,y[w]):typeof y=="object"?y[w]:void 0,c)}return{tags:a,contentKey:s,route:l,runtimeData:c,updateRuntimeData:u}},render(e){const{tags:n,tag:o,body:l,data:r,contentKey:i,route:a,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const d={...r,tags:n,$route:a,runtimeData:c,updateRuntimeData:u},p=o!==!1?Dn(o||d.component?.name||d.component||"div"):void 0;return p?t.h(p,{...d.component?.props,class:e.class,...this.$attrs,key:i},{default:h}):h?.();function h(){const y=br(l,t.h,{documentMeta:d,parentScope:d,resolveComponent:Dn});return y?.default?s?Cr(y.default(),typeof s=="string"?s.split(" "):["*"]):y.default():null}}});function WE(e,n,o,l){const{documentMeta:r,parentScope:i,resolveComponent:a}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const s=e.tag,c=Lr(e,r.tags);if(e.tag==="binding")return jE(e,n,r,i);const u=wr(c)?h=>h:a;if(HE.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Ut(e)+"</"+c+">");const d=u(c);typeof d=="object"&&(d.tag=s);const p=GE(e,r);return l&&(p.key=l),n(d,p,br(e,n,{documentMeta:r,parentScope:{...i,...p},resolveComponent:u}))}function br(e,n,o){const{documentMeta:l,parentScope:r,resolveComponent:i}=o,s=(e.children||[]).reduce((u,d)=>{if(!JE(d))return u[An].children.push(d),u;const p=ZE(d);return u[p]=u[p]||{props:{},children:[]},d.type==="element"&&(u[p].props=d.props,u[p].children.push(...d.children||[])),u},{[An]:{props:{},children:[]}});return Object.entries(s).reduce((u,[d,{props:p,children:h}])=>(h.length&&(u[d]=(y={})=>{const w=PE(y,Object.keys(p||{}));let k=h.map((v,f)=>WE(v,n,{documentMeta:l,parentScope:{...r,...w},resolveComponent:i},String(v.props?.key||f)));return p?.unwrap&&(k=Cr(k,p.unwrap)),QE(k)}),u),{})}function jE(e,n,o,l={}){const r={...o.runtimeData,...l,$document:o,$doc:o},i=/\.|\[(\d+)\]/,s=(e.props?.value.trim().split(i).filter(Boolean)).reduce((u,d)=>{if(u&&d in u)return typeof u[d]=="function"?u[d]():u[d]},r),c=e.props?.defaultValue;return n(t.Text,s??c??"")}function GE(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(r,i){if(i==="__ignoreMap")return r;const a=l[i];if(RE.test(i))return KE(i,a,r,n,{native:ME.includes(o)});if(i==="v-bind")return YE(i,a,r,n);if(_r.test(i))return qE(i,a,r,n);if(Nr.test(i))return XE(i,a,r,n);const{attribute:s}=VE(DE,i);return Array.isArray(a)&&a.every(c=>typeof c=="string")?(r[s]=a.join(" "),r):(r[s]=a,r)},{})}function KE(e,n,o,l,{native:r}){const i=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",a=r?"value":i,s=r?"onInput":`onUpdate:${i}`;return o[a]=Xt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,r?c.target?.value:c)},o}function YE(e,n,o,l){const r=Xt(n,l);return o=Object.assign(o,r),o}function qE(e,n,o,l){return e=e.replace(_r,""),o.on=o.on||{},o.on[e]=()=>Xt(n,l),o}function XE(e,n,o,l){return e=e.replace(Nr,""),o[e]=Xt(n,l),o}const Dn=e=>{if(typeof e=="string"){if(no(e))return e;const n=t.resolveComponent(ur(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?t.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return e};function Xt(e,n){const o=e.split(".").reduce((l,r)=>typeof l=="object"?l[r]:void 0,n);return typeof o>"u"?kE(e):o}function ZE(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||An}function JE(e){return e.tag==="template"}function wr(e){return FE.has(e)}function QE(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&l?.type===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function ey(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async r=>{if(r?.render||r?.ssrRender||r?.__ssrInlineRender)return;const i=Dn(r);i?.__asyncLoader&&!i.__asyncResolved&&await i.__asyncLoader()}));function l(r,i){const a=r.tag;if(r.type==="text"||a==="binding"||r.type==="comment")return[];const s=Lr(r,i.tags);if(wr(s))return[];const c=[];r.type!=="root"&&!no(s)&&c.push(s);for(const u of r.children||[])c.push(...l(u,i));return c}}function Lr(e,n){const o=e.tag;return!o||typeof e.props?.__ignoreMap<"u"?o:n[o]||n[ur(o)]||n[SE(e.tag)]||o}function no(e){return(typeof e=="string"?Sr.has(e):!1)||$E.has(e)}const ty=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(zE,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.Collapsible=ht;exports.CollapsibleV2=Et;exports.DependenciesNode=jc;exports.ElementCard=Zl;exports.LOG_LEVELS=ri;exports.MDCRenderer=ty;exports.PluginIndex=fE;exports.RotatingDotsIcon=nl;exports.STATES=z;exports.SchemaToHtml=J1;exports.SchemaToHtmlV2=oE;exports.State=ne;exports.Status=Wf;exports.SubgroupCard=Xl;exports.TaskIcon=zn;exports.Topology=Uf;exports.YamlUtils=Mr;exports.buildPluginMappings=di;exports.cssVariable=_e;exports.extractPluginElements=Ht;exports.filterPluginsWithoutDeprecated=ui;exports.getMDCParser=ai;exports.isEntryAPluginElementPredicate=$n;exports.slugify=Ce;exports.subGroupName=De;exports.usePluginElementCounts=tl;
|
|
15
|
+
`),{element:k,original:I}});try{const p=c.type==="jpeg"?await r(s,c):await a(s,c);return c.shouldDownload&&u&&i(u),p}finally{h.forEach(({element:p,original:k})=>k?p.setAttribute("style",k):p.removeAttribute("style")),s.classList.remove("is-exporting")}}function r(s,c={quality:.95}){return o.value=null,Rf(s,c).then(u=>(e.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function a(s,c={quality:.95}){return o.value=null,xf(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 Ff={key:1,class:"exporting"},Uf=t.defineComponent({__name:"Topology",props:{id:{},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{},flowId:{default:void 0},namespace:{default:void 0},expandedSubflows:{default:()=>[]},icons:{default:()=>({})},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{default:void 0},subflowsExecutions:{default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1},getNodeDimensions:{type:Function,default:void 0}},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),r=t.ref(),{getNodes:a,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:d,vueFlowRef:h}=oe.useVueFlow(o.id),p=t.ref({}),k=t.ref([]),I=t.ref(new Set),y=t.ref([]),{capture:N}=Mf();t.provide(Gn,t.computed(()=>o.execution)),t.provide(Pl,t.computed(()=>o.subflowsExecutions));const m=n;t.onMounted(()=>{E()}),t.watch(()=>o.flowGraph,()=>{E()}),t.watch(()=>o.isHorizontal,()=>{E()});const E=()=>{S.cleanGraph(o.id),t.nextTick(()=>{m("loading",!0);const P=I.value;I.value=new Set,k.value=[],p.value={},P.forEach(H=>R(S.CLUSTER_PREFIX+H,!1,!1));const A=S.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,k.value,o.isHorizontal,p.value,I.value,y.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction,o.getNodeDimensions);A&&(d(A),u(),m("loading",!1))})},w=P=>{l.value||S.linkedElements(o.id,P.uid).forEach(A=>{A?.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+_e("--bs-gray-900")},A.class="rounded-3")})},_=()=>{b()},b=()=>{a.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{l.value=!0,b(),P.node.style={...P.node.style,zIndex:1976},r.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&C(P.intersections,P.node)===null){const A=P.node,H=P.intersections.find(x=>x.type==="task");if(H)try{o.source&&m("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:S.Utils.afterLastDot(A.id)??"",key2:S.Utils.afterLastDot(H.id)??""}),swappedTasks:[A.id,H.id]})}catch(x){m("message",{variant:"error",title:"cannot swap tasks",message:`${x.message}, ${x.messageOptions}`}),A.position=r.value}else A.position=r.value}else P.node.position=r.value;b(),P.node.style={...P.node.style,zIndex:5},r.value=null});const V=t.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter(P=>P.cluster.type.endsWith("SubflowGraphCluster")).map(P=>P.cluster.taskNode.uid+"."):[]);i(P=>{b(),a.value.filter(A=>A.id!==P.node.id).forEach(A=>{A.type==="trigger"||A.type==="task"&&(A.id.startsWith(P.node.id+".")||P.node.id.startsWith(A.id+"."))||V?.value?.some(H=>A.id.startsWith(H))?A.style={...A.style,opacity:"0.5"}:A.style={...A.style,opacity:"1"}}),P.intersections&&!C(P.intersections,P.node)&&P.intersections.filter(A=>A.type==="task").length===1&&(P.intersections.forEach(A=>{A.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+_e("--bs-primary")},A.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+_e("--bs-primary")},P.node.class="rounded-3")});const C=(P,A)=>{const H=P.filter(x=>x.type==="task").map(x=>S.Utils.afterLastDot(x.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:S.Utils.afterLastDot(H[0])??"",key2:S.Utils.afterLastDot(A.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(x=>x.type==="trigger").length>0?"triggererror":null},R=(P,A,H=!1)=>{const x=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(S.CLUSTER_PREFIX,"");I.value.add(Ie),k.value=k.value.concat(x.nodes.filter(me=>me!==Ie||H)),k.value=k.value.concat([x.cluster.uid]),p.value={...p.value,[x.cluster.uid]:Ie,[x.start]:Ie,[x.end]:Ie};for(let me of x.nodes)o.flowGraph.clusters.map(He=>He.cluster.uid).includes(me)&&R(me,!1,!0);A&&E()},U=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)){m("expand-subflow",[...o.expandedSubflows,P.id]);return}p.value={},k.value=[],y.value=[],I.value.delete(P.id),I.value.forEach(H=>R(H,!1,!1)),E()},Q=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=t.ref(!0),Z=t.ref(!1),Re=()=>Z.value=!Z.value;function Je(P){if(!h.value){console.warn("Flow not found");return}ge.value=!1,N(h.value,{type:P,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return(P,A)=>(t.openBlock(),t.createBlock(t.unref(oe.VueFlow),{id:e.id,"default-marker-color":t.unref(_e)("--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(H=>[t.createVNode(uu,t.mergeProps(H,{onCollapse:A[0]||(A[0]=x=>R(x,!0))}),null,16)]),"node-dot":t.withCtx(H=>[t.createVNode(ku,t.normalizeProps(t.guardReactiveProps(H)),null,16)]),"node-task":t.withCtx(H=>[t.createVNode(pm,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"playground-enabled":e.playgroundEnabled,"playground-ready-to-start":e.playgroundReadyToStart,onEdit:A[1]||(A[1]=x=>m(t.unref(S.EVENTS).EDIT,x)),onDelete:A[2]||(A[2]=x=>m(t.unref(S.EVENTS).DELETE,x)),onRunTask:A[3]||(A[3]=x=>m(t.unref(S.EVENTS).RUN_TASK,x)),onExpand:A[4]||(A[4]=x=>U(x)),onOpenLink:A[5]||(A[5]=x=>m(t.unref(S.EVENTS).OPEN_LINK,x)),onShowLogs:A[6]||(A[6]=x=>m(t.unref(S.EVENTS).SHOW_LOGS,x)),onShowDescription:A[7]||(A[7]=x=>m(t.unref(S.EVENTS).SHOW_DESCRIPTION,x)),onShowCondition:A[8]||(A[8]=x=>m(t.unref(S.EVENTS).SHOW_CONDITION,x)),onMouseover:A[9]||(A[9]=x=>w(x)),onMouseleave:A[10]||(A[10]=x=>_()),onAddError:A[11]||(A[11]=x=>m("on-add-flowable-error",x)),"enable-subflow-interaction":e.enableSubflowInteraction}),{details:t.withCtx(()=>[t.renderSlot(P.$slots,"taskDetails",t.normalizeProps(t.guardReactiveProps(H)),void 0,!0)]),_:2},1040,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-custom":t.withCtx(H=>[t.createVNode(jn,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent}),null,16,["icons","icon-component"])]),"node-trigger":t.withCtx(H=>[t.createVNode(hm,t.mergeProps(H,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:A[12]||(A[12]=x=>m(t.unref(S.EVENTS).DELETE,x)),onEdit:A[13]||(A[13]=x=>m(t.unref(S.EVENTS).EDIT,x)),onShowDescription:A[14]||(A[14]=x=>m(t.unref(S.EVENTS).SHOW_DESCRIPTION,x))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":t.withCtx(H=>[t.createVNode(Bm,t.mergeProps(H,{onExpand:A[15]||(A[15]=x=>U(x))}),null,16)]),"edge-edge":t.withCtx(H=>[t.createVNode(Au,t.mergeProps(H,{"yaml-source":e.source,onAddTask:A[16]||(A[16]=x=>m(t.unref(S.EVENTS).ADD_TASK,x)),"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(Qc),{"pattern-color":Q?t.unref(_e)("--bs-grey-500"):t.unref(_e)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(t.openBlock(),t.createBlock(t.unref(an.Controls),{key:0,"show-interactive":!1},{default:t.withCtx(()=>[e.toggleOrientationButton?(t.openBlock(),t.createBlock(t.unref(an.ControlButton),{key:0,onClick:A[17]||(A[17]=H=>m("toggle-orientation",H))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isHorizontal?xm:Dm)))]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(an.ControlButton),{onClick:Re},{default:t.withCtx(()=>[t.createVNode(Wm)]),_:1}),Z.value?(t.openBlock(),t.createElementBlock("ul",Ff,[t.createElementVNode("li",{onClick:A[18]||(A[18]=H=>Je("jpeg")),class:"item"}," Export as .JPEG "),t.createElementVNode("li",{onClick:A[19]||(A[19]=H=>Je("png")),class:"item"}," Export as .PNG ")])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)]),_:3},8,["id","default-marker-color"]))}}),Hf=D(Uf,[["__scopeId","data-v-6f358b88"]]),zf={class:"text"},Wf=t.defineComponent({__name:"Status",props:{status:{},title:{default:void 0},icon:{type:Boolean,default:!1},size:{default:"default"}},setup(e){const n=e,o=t.computed(()=>n.icon?ne.icon()[n.status?.toUpperCase()]:void 0),l=t.computed(()=>n.title??n.status),r=t.computed(()=>["status-button",n.status?.toLowerCase()&&`status-button--${n.status.toLowerCase()}`,n.size!=="default"&&`status-button--${n.size}`].filter(Boolean));return(a,i)=>(t.openBlock(),t.createElementBlock("button",{type:"button",class:t.normalizeClass(r.value)},[e.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{key:0,class:"icon"})):t.createCommentVNode("",!0),t.createElementVNode("span",zf,t.toDisplayString(l.value),1)],2))}}),jf=D(Wf,[["__scopeId","data-v-ce6b0e30"]]),Gf={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kf=["aria-hidden","aria-label"],Yf=["fill","width","height"],qf={d:"M10,17L15,12L10,7V17Z"},Xf={key:0};function Zf(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",qf,[o.title?(t.openBlock(),t.createElementBlock("title",Xf,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Yf))],16,Kf)}const Jf=D(Gf,[["render",Zf]]),Qf={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ep=["aria-hidden","aria-label"],tp=["fill","width","height"],np={d:"M7,10L12,15L17,10H7Z"},op={key:0};function lp(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",np,[o.title?(t.openBlock(),t.createElementBlock("title",op,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,tp))],16,ep)}const rp=D(Qf,[["render",lp]]);function Yl(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function ql(e){return typeof e=="function"?e():t.unref(e)}const ap=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ip=Object.prototype.toString,sp=e=>ip.call(e)==="[object Object]",cp=()=>{};function up(e){return Object.entries(e)}function dp(e){return t.getCurrentInstance()}function mp(e,n=!0,o){dp()?t.onMounted(e,o):n?e():t.nextTick(e)}function Ye(e){var n;const o=ql(e);return(n=o?.$el)!=null?n:o}const qt=ap?window:void 0;function Xo(...e){let n,o,l,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,l,r]=e,n=qt):[n,o,l,r]=e,!n)return cp;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},s=(d,h,p,k)=>(d.addEventListener(h,p,k),()=>d.removeEventListener(h,p,k)),c=t.watch(()=>[Ye(n),ql(r)],([d,h])=>{if(i(),!d)return;const p=sp(h)?{...h}:h;a.push(...o.flatMap(k=>l.map(I=>s(d,k,I,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Yl(u),u}function fp(){const e=t.ref(!1),n=t.getCurrentInstance();return n&&t.onMounted(()=>{e.value=!0},n),e}function pp(e){const n=fp();return t.computed(()=>(n.value,!!e()))}const Zo=["hash","host","hostname","href","pathname","port","protocol","search"];function Xl(e={}){const{window:n=qt}=e,o=Object.fromEntries(Zo.map(a=>[a,t.ref()]));for(const[a,i]of up(o))t.watch(i,s=>{!n?.location||n.location[a]===s||(n.location[a]=s)});const l=a=>{var i;const{state:s,length:c}=n?.history||{},{origin:u}=n?.location||{};for(const d of Zo)o[d].value=(i=n?.location)==null?void 0:i[d];return t.reactive({trigger:a,state:s,length:c,origin:u,...o})},r=t.ref(l("load"));return n&&(Xo(n,"popstate",()=>r.value=l("popstate"),{passive:!0}),Xo(n,"hashchange",()=>r.value=l("hashchange"),{passive:!0})),r}function gp(e,n,o={}){const{window:l=qt,...r}=o;let a;const i=pp(()=>l&&"ResizeObserver"in l),s=()=>{a&&(a.disconnect(),a=void 0)},c=t.computed(()=>Array.isArray(e)?e.map(h=>Ye(h)):[Ye(e)]),u=t.watch(c,h=>{if(s(),i.value&&l){a=new ResizeObserver(n);for(const p of h)p&&a.observe(p,r)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Yl(d),{isSupported:i,stop:d}}function Jo(e,n={width:0,height:0},o={}){const{window:l=qt,box:r="content-box"}=o,a=t.computed(()=>{var h,p;return(p=(h=Ye(e))==null?void 0:h.namespaceURI)==null?void 0:p.includes("svg")}),i=t.ref(n.width),s=t.ref(n.height),{stop:c}=gp(e,([h])=>{const p=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(l&&a.value){const k=Ye(e);if(k){const I=k.getBoundingClientRect();i.value=I.width,s.value=I.height}}else if(p){const k=Array.isArray(p)?p:[p];i.value=k.reduce((I,{inlineSize:y})=>I+y,0),s.value=k.reduce((I,{blockSize:y})=>I+y,0)}else i.value=h.contentRect.width,s.value=h.contentRect.height},o);mp(()=>{const h=Ye(e);h&&(i.value="offsetWidth"in h?h.offsetWidth:n.width,s.value="offsetHeight"in h?h.offsetHeight:n.height)});const u=t.watch(()=>Ye(e),h=>{i.value=h?n.width:0,s.value=h?n.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}const hp=["id","open"],Ep={class:"d-flex gap-2 align-items-center"},yp={key:0,class:"d-flex flex-grow-1"},kp=["id"],vp=t.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),r=Xl(),a=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),u.stopPropagation(),l.value=!l.value,c.value=!l.value,l.value||a("expand"),!o.noUrlChange&&(l.value?history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=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(()=>r.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(t.openBlock(),t.createElementBlock("details",{id:e.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",Ep,[e.arrow?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?Jf:rp),{key:0,class:"arrow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.clickableText)+" ",1),t.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(t.openBlock(),t.createElementBlock("span",yp,[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:e.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,kp)):t.createCommentVNode("",!0)],8,hp))}}),ht=D(vp,[["__scopeId","data-v-6b6ffd9a"]]),Cp={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Np=["fill","width","height"],Sp={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},bp={key:0};function wp(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Sp,[o.title?(t.openBlock(),t.createElementBlock("title",bp,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Np))],16,_p)}const Zn=D(Cp,[["render",wp]]),Lp={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tp=["aria-hidden","aria-label"],Bp=["fill","width","height"],Vp={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Ip={key:0};function Ap(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",Vp,[o.title?(t.openBlock(),t.createElementBlock("title",Ip,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,Bp))],16,Tp)}const Jn=D(Lp,[["render",Ap]]),Dp=["id","open"],$p={key:0,class:"chevron"},Op=["id"],Pp=t.defineComponent({__name:"CollapsibleV2",props:{href:{default:Math.random().toString(36).substring(2,5)},title:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=t.ref(!0),r=Xl(),a=n,i=t.computed(()=>`#${o.href}-body`),s=u=>{if(u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||a("expand"),o.noUrlChange)return;const d=window.location.pathname+window.location.search+(l.value?"":i.value);try{window.history.pushState(null,"",d)}catch{try{l.value?window.history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value}catch{}}},c=t.ref(!1);return t.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),t.watch(()=>r.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(t.openBlock(),t.createElementBlock("details",{id:e.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",null,[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.renderSlot(u.$slots,"additional",{},void 0,!0)]),t.renderSlot(u.$slots,"right",{},void 0,!0),e.arrow?(t.openBlock(),t.createElementBlock("span",$p,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value?Zn:Jn)))])):t.createCommentVNode("",!0)],2),u.$slots.content?(t.openBlock(),t.createElementBlock("div",{key:0,id:e.href+"-body"},[t.createElementVNode("div",null,[t.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Op)):t.createCommentVNode("",!0)],8,Dp))}}),Et=D(Pp,[["__scopeId","data-v-d0f1d871"]]),xp=["href"],Rp={class:"top-row"},Mp={class:"icon-content"},Fp=["src","alt"],Up={class:"text-content"},Hp={key:0,class:"description"},zp={class:"footer"},Wp={class:"bottom-row"},jp={class:"left"},Gp={key:0},Kp={key:1},Yp=t.defineComponent({__name:"SubgroupCard",props:{iconB64Svg:{},text:{},routePath:{},totalCount:{default:0},description:{default:""},href:{default:void 0},isActive:{type:Boolean,default:!1},blueprintsCount:{default:0}},emits:["navigate"],setup(e,{emit:n}){const o=e,l=n,r=t.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(a,i)=>(t.openBlock(),t.createElementBlock("a",{href:r.value,onClick:i[0]||(i[0]=t.withModifiers(s=>l("navigate",r.value),["prevent"]))},[t.createElementVNode("div",{class:t.normalizeClass(["plugin",{"is-active":e.isActive}])},[t.createElementVNode("div",Rp,[t.createElementVNode("div",Mp,[t.createElementVNode("img",{src:e.iconB64Svg,alt:`${e.text} icon`},null,8,Fp)]),t.createElementVNode("div",Up,[t.createElementVNode("h6",null,t.toDisplayString(e.text),1),e.description?(t.openBlock(),t.createElementBlock("p",Hp,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",zp,[i[3]||(i[3]=t.createElementVNode("hr",null,null,-1)),t.createElementVNode("div",Wp,[t.createElementVNode("div",jp,[o.totalCount?(t.openBlock(),t.createElementBlock("p",Gp,[t.createTextVNode(t.toDisplayString(o.totalCount??0)+" ",1),i[1]||(i[1]=t.createElementVNode("span",null,"Tasks",-1))])):t.createCommentVNode("",!0),o.blueprintsCount?(t.openBlock(),t.createElementBlock("p",Kp,[t.createTextVNode(t.toDisplayString(o.blueprintsCount??0)+" ",1),i[2]||(i[2]=t.createElementVNode("span",null,"Blueprints",-1))])):t.createCommentVNode("",!0)]),t.createVNode(Zn)])])],2)],8,xp))}}),Zl=D(Yp,[["__scopeId","data-v-5d4d2b8b"]]),qp=["href"],Xp={class:"element-card"},Zp={class:"top-row"},Jp={class:"text-capitalize"},Qp={key:0},eg={class:"plugin-info"},tg={class:"plugin-class"},ng=t.defineComponent({__name:"ElementCard",props:{iconB64Svg:{},text:{},routePath:{},pluginClass:{},href:{},title:{}},emits:["navigate"],setup(e,{emit:n}){const o=e,l=n,r=t.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(a,i)=>(t.openBlock(),t.createElementBlock("a",{href:r.value,onClick:i[0]||(i[0]=t.withModifiers(s=>l("navigate",r.value),["prevent"]))},[t.createElementVNode("div",Xp,[t.createElementVNode("div",Zp,[t.createElementVNode("h6",Jp,t.toDisplayString(e.text),1),t.createVNode(Zn)]),e.title?(t.openBlock(),t.createElementBlock("div",Qp,[t.renderSlot(a.$slots,"markdown",{content:e.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",eg,[t.createElementVNode("code",tg,t.toDisplayString(e.pluginClass),1)])])],8,qp))}}),Jl=D(ng,[["__scopeId","data-v-a3504373"]]),og={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lg=["aria-hidden","aria-label"],rg=["fill","width","height"],ag={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"},ig={key:0};function sg(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",ag,[o.title?(t.openBlock(),t.createElementBlock("title",ig,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,rg))],16,lg)}const cg=D(og,[["render",sg]]),ug={key:0,class:"language"},dg=["innerHTML"],mg=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(cg),Check:t.shallowRef(xl)},o=e,l=t.ref(!1),r=t.ref(),a=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,r.value&&t.nextTick(()=>{i.value&&s.value&&xr.createPopper(i.value,s.value,{placement:"left"})})}function d(){clearTimeout(r.value),navigator.clipboard.writeText(o.code.trimEnd()),a.value=n.Check.value,r.value=setTimeout(()=>{a.value=n.ContentCopy.value,r.value=void 0},2e3)}return(h,p)=>(t.openBlock(),t.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:p[0]||(p[0]=k=>l.value=!1)},[e.language&&!l.value?(t.openBlock(),t.createElementBlock("div",ug,t.toDisplayString(e.language),1)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.value),{onClick:d}))],512),r.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...p[1]||(p[1]=[t.createTextVNode(" Copied! ",-1),t.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{innerHTML:c.value},null,8,dg)],32))}}),Mt=D(mg,[["__scopeId","data-v-a899f6a1"]]);function Tt(e){if(e.type)return Array.isArray(e.type)?e.type:[e.type];if(e.$ref){const o=e.$ref.split("/");return["#"+o[o.length-1]]}}function Ql(e){const n=e.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Qn(e){if(e.enum)return e.enum;if(e.items?.enum)return e.items.enum;if(e.additionalProperties?.enum)return e.additionalProperties.enum}function er(e){return e.allOf&&(e=e.allOf.reduce((n,o)=>({...n,...o}),{...e}),delete e.allOf),e}function at(e){const n={},o=r=>{const a=Tt(r);if(a&&a.length>0)return a;if(r.anyOf)return r.anyOf.flatMap(Tt).filter(i=>i!==void 0).filter(S.Utils.distinctFilter)},l=o(e);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&e.items){const r=o(e.items);r&&e.items.anyOf&&(n.types=n.types.filter(a=>a!=="array").concat(r))}return e.additionalProperties?n.subType=Tt(e.additionalProperties)?.[0]:e.items&&(n.subType=Tt(e.items)?.[0]),n}function eo(e){return e?.$deprecated===!0||e?.$deprecated==="true"}function tr(e,n,o=new Set){if(!n)return[];const l=at(e),r=[];if(l.types.forEach(a=>{if(a.startsWith("#")){const i=a.slice(1);n[i]&&!o.has(i)&&!r.includes(i)&&r.push(i)}}),l.subType?.startsWith("#")){const a=l.subType.slice(1);n[a]&&!o.has(a)&&!r.includes(a)&&r.push(a)}return r.filter(a=>!eo(n[a])).map(a=>{const i=n[a];return{key:a,title:i?.title??a.split("_")[0],properties:i?.properties??{}}})}function nr(e){return e.$dynamic===!0?!0:e.$dynamic===!1?!1:e.anyOf?.some(n=>n.$dynamic===!0)??!1}const fg={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pg=["aria-hidden","aria-label"],gg=["fill","width","height"],hg={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"},Eg={key:0};function yg(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",hg,[o.title?(t.openBlock(),t.createElementBlock("title",Eg,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,gg))],16,pg)}const kg=D(fg,[["render",yg]]),vg={class:"me-3"},Cg={class:"d-flex flex-column"},_g=t.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"success":return kg;case"info":return At;case"warning":return Kt;case"danger":return hn;default:return At}});return(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass("doc-alert alert alert-"+e.type),role:"alert"},[t.createElementVNode("div",vg,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),t.createElementVNode("div",Cg,[t.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),or=D(_g,[["__scopeId","data-v-f7fd8bc1"]]),Ng={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sg=["aria-hidden","aria-label"],bg=["fill","width","height"],wg={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"},Lg={key:0};function Tg(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",wg,[o.title?(t.openBlock(),t.createElementBlock("title",Lg,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,bg))],16,Sg)}const lr=D(Ng,[["render",Tg]]),Bg={class:"property-detail"},Vg={key:0},Ig=["href"],Ag={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},Dg={class:"ref-type"},$g={key:1,class:"type-box rounded fs-7 px-2 py-1"},Og={key:1},Pg={class:"border rounded px-2 py-1"},xg={key:2},Rg={class:"border rounded px-2 py-1"},Mg={key:3},Fg={class:"border rounded px-2 py-1"},Ug={key:4},Hg={class:"border rounded px-2 py-1"},zg={key:5},Wg={class:"border rounded px-2 py-1"},jg={key:6},Gg={class:"border rounded px-2 py-1"},Kg={key:7},Yg={class:"border rounded px-2 py-1"},qg={key:8},Xg={class:"border rounded px-2 py-1"},Zg={key:9},Jg={class:"border rounded px-2 py-1"},Qg={key:10},e1={class:"border rounded px-2 py-1"},t1={key:11},n1={class:"border rounded px-2 py-1"},o1={key:12},l1={class:"border rounded px-2 py-1"},r1={key:13},a1={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},i1={key:14},s1={class:"property-description markdown"},c1={key:2},u1=t.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const n=e,o=t.ref(at(n.property).subType),l=t.ref(Qn(n.property)),r=S.sanitizeForMarkdown;return(a,i)=>(t.openBlock(),t.createElementBlock("div",Bg,[o.value?(t.openBlock(),t.createElementBlock("div",Vg,[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",Ag,[t.createElementVNode("span",Dg,t.toDisplayString(t.unref(Ql)(o.value)),1),t.createVNode(lr)])],8,Ig)):(t.openBlock(),t.createElementBlock("span",$g,t.toDisplayString(o.value),1))])):t.createCommentVNode("",!0),e.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",Og,[i[2]||(i[2]=t.createElementVNode("span",null," Default ",-1)),t.createElementVNode("code",Pg,t.toDisplayString(e.property.default),1)])):t.createCommentVNode("",!0),e.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",xg,[i[3]||(i[3]=t.createElementVNode("span",null," Validation RegExp ",-1)),t.createElementVNode("code",Rg,t.toDisplayString(e.property.pattern),1)])):t.createCommentVNode("",!0),e.property.unit!==void 0&&e.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",Mg,[i[4]||(i[4]=t.createElementVNode("span",null," Unit ",-1)),t.createElementVNode("code",Fg,t.toDisplayString(e.property.unit),1)])):t.createCommentVNode("",!0),e.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",Ug,[i[5]||(i[5]=t.createElementVNode("span",null," Min length ",-1)),t.createElementVNode("code",Hg,t.toDisplayString(e.property.minLength),1)])):t.createCommentVNode("",!0),e.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",zg,[i[6]||(i[6]=t.createElementVNode("span",null," Max length ",-1)),t.createElementVNode("code",Wg,t.toDisplayString(e.property.maxLength),1)])):t.createCommentVNode("",!0),e.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",jg,[i[7]||(i[7]=t.createElementVNode("span",null," Min items ",-1)),t.createElementVNode("code",Gg,t.toDisplayString(e.property.minItems),1)])):t.createCommentVNode("",!0),e.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",Kg,[i[8]||(i[8]=t.createElementVNode("span",null," Max items ",-1)),t.createElementVNode("code",Yg,t.toDisplayString(e.property.maxItems),1)])):t.createCommentVNode("",!0),e.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",qg,[i[9]||(i[9]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Xg," >= "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",Zg,[i[10]||(i[10]=t.createElementVNode("span",null," Minimum ",-1)),t.createElementVNode("code",Jg," > "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",Qg,[i[11]||(i[11]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",e1," <= "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",t1,[i[12]||(i[12]=t.createElementVNode("span",null," Maximum ",-1)),t.createElementVNode("code",n1," < "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",o1,[i[13]||(i[13]=t.createElementVNode("span",null," Format ",-1)),t.createElementVNode("code",l1,t.toDisplayString(e.property.format),1)])):t.createCommentVNode("",!0),l.value!==void 0?(t.openBlock(),t.createElementBlock("div",r1,[i[14]||(i[14]=t.createElementVNode("span",null," Possible Values ",-1)),t.createElementVNode("div",a1,[(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),e.property.title!==void 0||e.property.description!==void 0?(t.openBlock(),t.createElementBlock("div",i1,[t.createElementVNode("div",s1,[e.property.title!==void 0?t.renderSlot(a.$slots,"markdown",{key:0,content:t.unref(r)(e.property.title)},void 0,!0):t.createCommentVNode("",!0),e.property.description!==void 0?t.renderSlot(a.$slots,"markdown",{key:1,content:t.unref(r)(e.property.description)},void 0,!0):t.createCommentVNode("",!0),e.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",c1,[t.createVNode(or,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(a.$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)]))}}),d1=D(u1,[["__scopeId","data-v-e4c1ea43"]]),m1={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},f1=["aria-hidden","aria-label"],p1=["fill","width","height"],g1={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},h1={key:0};function E1(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",g1,[o.title?(t.openBlock(),t.createElementBlock("title",h1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,p1))],16,f1)}const rr=D(m1,[["render",E1]]),y1={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},k1=["aria-hidden","aria-label"],v1=["fill","width","height"],C1={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"},_1={key:0};function N1(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",C1,[o.title?(t.openBlock(),t.createElementBlock("title",_1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,v1))],16,k1)}const ar=D(y1,[["render",N1]]),S1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},b1=["aria-hidden","aria-label"],w1=["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"},T1={key:0};function B1(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps(e.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>e.$emit("click",i))}),[(t.openBlock(),t.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[t.createElementVNode("path",L1,[o.title?(t.openBlock(),t.createElementBlock("title",T1,t.toDisplayString(o.title),1)):t.createCommentVNode("",!0)])],8,w1))],16,b1)}const ir=D(S1,[["render",B1]]),V1={class:"border overflow-hidden"},I1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},A1={class:"d-flex gap-2"},D1={class:"d-flex flex-wrap justify-content-end gap-2"},$1=["href"],O1={class:"ref-type"},P1={key:1,class:"type-box rounded fs-7 px-2 py-1"},x1=t.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},definitions:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,r=t.ref(!1);t.watch(r,s=>{s&&l("expand")});const a=s=>s.filter(c=>!c.startsWith("#")||!eo(o.definitions?.[c.slice(1)]));function i(s){s=s??{};const c=[],u=[];for(const p in s)typeof s[p]=="object"&&(s[p]=er(s[p]),s[p].$required?c.push(p):u.push(p));const d=[...c.sort(),...u.sort()],h={};return d.forEach(p=>{(!s[p].$deprecated||o.forceInclude?.includes(p))&&(h[p]=s[p])}),h}return(s,c)=>(t.openBlock(),t.createBlock(ht,{class:"section-collapsible","clickable-text":e.sectionName,href:e.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":e.initiallyExpanded||r.value,"no-url-change":e.noUrlChange},t.createSlots({_:2},[Object.keys(e.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",V1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(e.properties),(u,d)=>(t.openBlock(),t.createBlock(ht,{class:"property",key:d,arrow:!1,"clickable-text":d,href:e.href+"_"+d,onExpand:c[1]||(c[1]=h=>r.value=!0),"no-url-change":e.noUrlChange},{additionalButtonText:t.withCtx(()=>[u.$required?(t.openBlock(),t.createBlock(j,{key:0,class:"d-flex",title:"Required"},{default:t.withCtx(()=>[...c[3]||(c[3]=[t.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):t.createCommentVNode("",!0)]),buttonRight:t.withCtx(({collapsed:h})=>[t.createElementVNode("span",I1,[t.createElementVNode("span",A1,[e.showDynamic&&!t.unref(nr)(u)?(t.openBlock(),t.createBlock(j,{key:0,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(ar,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),u.$beta?(t.openBlock(),t.createBlock(j,{key:1,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(ir,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),u.$deprecated?(t.openBlock(),t.createBlock(j,{key:2,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Kt,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0)]),t.createElementVNode("span",D1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(t.unref(at)(u).types),p=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[p.startsWith("#")?(t.openBlock(),t.createElementBlock("a",{key:0,class:"d-flex fw-bold ref-type-box rounded fs-7 px-2 py-1",href:p,onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("span",O1,t.toDisplayString(t.unref(Ql)(p)),1),t.createVNode(lr)],8,$1)):(t.openBlock(),t.createElementBlock("span",P1,t.toDisplayString(p),1))],64))),128)),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h?Jn:rr),{class:"arrow"}))])])]),content:t.withCtx(()=>[t.createVNode(d1,{property:u},{markdown:t.withCtx(({content:h})=>[t.renderSlot(s.$slots,"markdown",{content:h},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded","no-url-change"]))}}),Bt=D(x1,[["__scopeId","data-v-27ce4d4b"]]),R1={class:"d-flex flex-column gap-6"},M1={class:"d-flex flex-column gap-3"},F1={key:0,class:"alert alert-info mb-2",role:"alert"},U1={key:1,class:"plugin-title markdown"},H1={key:2,class:"markdown"},z1={class:"d-flex flex-column gap-4"},W1={class:"d-flex flex-column gap-3"},j1={class:"markdown"},G1={key:0,class:"w-100 align-self-center"},K1={class:"markdown"},Y1={class:"markdown"},q1={class:"markdown"},X1={class:"d-flex flex-column gap-7 ps-3"},Z1={class:"markdown"},J1=t.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,r=t.ref(!1),a=t.ref(new Set),i=t.ref(0),s=t.computed(()=>Object.entries(l.schema.definitions??{}).filter(([,y])=>!eo(y))),c=async()=>{const y=window.location.hash.slice(1);if(!y||!l.schema.definitions){a.value.clear();return}const N=y.replace(/-body$/,""),m=Object.keys(l.schema.definitions).find(E=>N===E||N.startsWith(E+"_"));if(m){r.value=!0,i.value+=1,a.value.clear(),a.value.add(m),await t.nextTick();let E=0;const w=30,_=()=>{const b=document.getElementById(N);b?b.scrollIntoView({behavior:"smooth",block:"start"}):E<w&&(E++,requestAnimationFrame(_))};requestAnimationFrame(_)}else a.value.clear()};t.watch([()=>l.schema,()=>l.pluginType],([y,N],[m,E])=>{(y!==m||N!==E)&&l.schema.definitions&&c()});const u=y=>y?.full?y.code:`id: ${l.pluginType.split(".").reverse()[0]?.toLowerCase()}
|
|
16
|
+
type: ${l.pluginType}
|
|
17
|
+
`.concat(y.code),d=t.ref(),h=t.computed(()=>l.schema.properties?.$examples),p=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(y=>[y.name,{...y,name:void 0}]))),{getHighlighterCore:k}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);d.value=([n,o]=t.withAsyncContext(()=>k()),n=await n,o(),n);const I="github-"+(l.darkMode?"dark":"light");return t.onMounted(()=>{c(),window.addEventListener("hashchange",c)}),t.onUnmounted(()=>{window.removeEventListener("hashchange",c)}),(y,N)=>(t.openBlock(),t.createElementBlock("div",R1,[t.createElementVNode("div",M1,[e.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",F1,[...N[0]||(N[0]=[t.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):t.createCommentVNode("",!0),e.schema.properties?.title?(t.openBlock(),t.createElementBlock("div",U1,[t.renderSlot(y.$slots,"markdown",{content:e.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),e.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",H1,[t.renderSlot(y.$slots,"markdown",{content:e.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Mt,{highlighter:d.value,language:"yaml",theme:I,code:`type: ${e.pluginType}`,key:e.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column gap-3",key:e.pluginType},[h.value?(t.openBlock(),t.createBlock(ht,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":e.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",z1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,(m,E)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.pluginType+"-"+E},[t.createElementVNode("div",W1,[t.createElementVNode("div",j1,[m.title?t.renderSlot(y.$slots,"markdown",{key:0,content:m.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),m.code?(t.openBlock(),t.createBlock(Mt,{key:0,highlighter:d.value,language:m.lang??"yaml",theme:I,code:u(m)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),E<h.value.length-1?(t.openBlock(),t.createElementBlock("hr",G1)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.properties?(t.openBlock(),t.createBlock(Bt,{key:1,class:"plugin-section",properties:e.schema.properties.properties,definitions:e.schema.definitions,"section-name":"Properties",href:"properties","initially-expanded":e.propsInitiallyExpanded,"force-include":e.forceIncludeProperties,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:m})=>[t.createElementVNode("div",K1,[t.renderSlot(y.$slots,"markdown",{content:m},void 0,!0)])]),_:3},8,["properties","definitions","initially-expanded","force-include","no-url-change"])):t.createCommentVNode("",!0),e.schema.outputs?.properties&&Object.keys(e.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(Bt,{key:2,class:"plugin-section",properties:e.schema.outputs.properties,definitions:e.schema.definitions,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:m})=>[t.createElementVNode("div",Y1,[t.renderSlot(y.$slots,"markdown",{content:m},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.$metrics?(t.openBlock(),t.createBlock(Bt,{key:3,class:"plugin-section",properties:p.value,definitions:e.schema.definitions,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:m})=>[t.createElementVNode("div",q1,[t.renderSlot(y.$slots,"markdown",{content:m},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):t.createCommentVNode("",!0),s.value.length>0?(t.openBlock(),t.createBlock(ht,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":r.value,key:`definitions-${e.pluginType}-${i.value}`,"no-url-change":e.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",X1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,([m,E])=>(t.openBlock(),t.createBlock(Bt,{properties:E.properties,definitions:e.schema.definitions,"section-name":E.title??m.split("_")[0],href:m,"show-dynamic":!1,"initially-expanded":a.value.has(m),key:e.pluginType+"-"+m,class:"plugin-section nested-button-py-2",onExpand:w=>{r.value=!0,a.value.add(m)},"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:w})=>[t.createElementVNode("div",Z1,[t.renderSlot(y.$slots,"markdown",{content:w},void 0,!0)])]),_:3},8,["properties","definitions","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),Q1=D(J1,[["__scopeId","data-v-9c18bd6d"]]),eh={key:0},th={class:"type-box rounded fs-7 px-2 py-1"},nh={key:1},oh={class:"border rounded px-2 py-1"},lh={key:2},rh={class:"border rounded px-2 py-1"},ah={key:3},ih={class:"border rounded px-2 py-1"},sh={key:4},ch={class:"border rounded px-2 py-1"},uh={key:5},dh={class:"border rounded px-2 py-1"},mh={key:6},fh={class:"border rounded px-2 py-1"},ph={key:7},gh={class:"border rounded px-2 py-1"},hh={key:8},Eh={class:"border rounded px-2 py-1"},yh={key:9},kh={class:"border rounded px-2 py-1"},vh={key:10},Ch={class:"border rounded px-2 py-1"},_h={key:11},Nh={class:"border rounded px-2 py-1"},Sh={key:12},bh={class:"border rounded px-2 py-1"},wh={key:13},Lh={class:"values-wrapper d-flex flex-wrap justify-content-end gap-7 p-0"},Th=t.defineComponent({__name:"PropertyMeta",props:{property:{},subtype:{},enumValues:{}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.subtype&&!e.subtype.startsWith("#")?(t.openBlock(),t.createElementBlock("div",eh,[o[0]||(o[0]=t.createElementVNode("span",null,"SubType",-1)),t.createElementVNode("span",th,t.toDisplayString(e.subtype),1)])):t.createCommentVNode("",!0),e.property.default!==void 0?(t.openBlock(),t.createElementBlock("div",nh,[o[1]||(o[1]=t.createElementVNode("span",null,"Default",-1)),t.createElementVNode("code",oh,t.toDisplayString(e.property.default),1)])):t.createCommentVNode("",!0),e.property.pattern!==void 0?(t.openBlock(),t.createElementBlock("div",lh,[o[2]||(o[2]=t.createElementVNode("span",null,"Validation RegExp",-1)),t.createElementVNode("code",rh,t.toDisplayString(e.property.pattern),1)])):t.createCommentVNode("",!0),e.property.unit!==void 0&&e.property.unit.trim().length>0?(t.openBlock(),t.createElementBlock("div",ah,[o[3]||(o[3]=t.createElementVNode("span",null,"Unit",-1)),t.createElementVNode("code",ih,t.toDisplayString(e.property.unit),1)])):t.createCommentVNode("",!0),e.property.minLength!==void 0?(t.openBlock(),t.createElementBlock("div",sh,[o[4]||(o[4]=t.createElementVNode("span",null,"Min length",-1)),t.createElementVNode("code",ch,t.toDisplayString(e.property.minLength),1)])):t.createCommentVNode("",!0),e.property.maxLength!==void 0?(t.openBlock(),t.createElementBlock("div",uh,[o[5]||(o[5]=t.createElementVNode("span",null,"Max length",-1)),t.createElementVNode("code",dh,t.toDisplayString(e.property.maxLength),1)])):t.createCommentVNode("",!0),e.property.minItems!==void 0?(t.openBlock(),t.createElementBlock("div",mh,[o[6]||(o[6]=t.createElementVNode("span",null,"Min items",-1)),t.createElementVNode("code",fh,t.toDisplayString(e.property.minItems),1)])):t.createCommentVNode("",!0),e.property.maxItems!==void 0?(t.openBlock(),t.createElementBlock("div",ph,[o[7]||(o[7]=t.createElementVNode("span",null,"Max items",-1)),t.createElementVNode("code",gh,t.toDisplayString(e.property.maxItems),1)])):t.createCommentVNode("",!0),e.property.minimum!==void 0?(t.openBlock(),t.createElementBlock("div",hh,[o[8]||(o[8]=t.createElementVNode("span",null,"Minimum",-1)),t.createElementVNode("code",Eh,">= "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMinimum!==void 0?(t.openBlock(),t.createElementBlock("div",yh,[o[9]||(o[9]=t.createElementVNode("span",null,"Minimum",-1)),t.createElementVNode("code",kh,"> "+t.toDisplayString(e.property.minimum),1)])):t.createCommentVNode("",!0),e.property.maximum!==void 0?(t.openBlock(),t.createElementBlock("div",vh,[o[10]||(o[10]=t.createElementVNode("span",null,"Maximum",-1)),t.createElementVNode("code",Ch,"<= "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.exclusiveMaximum!==void 0?(t.openBlock(),t.createElementBlock("div",_h,[o[11]||(o[11]=t.createElementVNode("span",null,"Maximum",-1)),t.createElementVNode("code",Nh,"< "+t.toDisplayString(e.property.maximum),1)])):t.createCommentVNode("",!0),e.property.format!==void 0?(t.openBlock(),t.createElementBlock("div",Sh,[o[12]||(o[12]=t.createElementVNode("span",null,"Format",-1)),t.createElementVNode("code",bh,t.toDisplayString(e.property.format),1)])):t.createCommentVNode("",!0),e.enumValues!==void 0?(t.openBlock(),t.createElementBlock("div",wh,[o[13]||(o[13]=t.createElementVNode("span",null,"Possible Values",-1)),t.createElementVNode("div",Lh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.enumValues,(l,r)=>(t.openBlock(),t.createElementBlock("code",{class:"border rounded px-2 py-1",key:r},t.toDisplayString(l),1))),128))])])):t.createCommentVNode("",!0)],64))}}),sr=D(Th,[["__scopeId","data-v-2d5ac2ae"]]),Bh={class:"d-flex flex-grow-1 align-items-center"},Vh=t.defineComponent({__name:"PropertyBadges",props:{property:{},showDynamic:{type:Boolean,default:!0},sectionClass:{default:""}},setup(e){function n(o){return at(o).types.filter(r=>!r.startsWith("#"))}return(o,l)=>(t.openBlock(),t.createElementBlock("span",Bh,[t.createElementVNode("span",{class:t.normalizeClass(["d-flex gap-2 flex-wrap align-items-center",e.sectionClass])},[e.property&&e.property.$required?(t.openBlock(),t.createBlock(j,{key:0,class:"d-flex align-items-center",title:"Required"},{default:t.withCtx(()=>[...l[0]||(l[0]=[t.createElementVNode("span",{class:"text-danger"},"*",-1)])]),_:1})):t.createCommentVNode("",!0),e.showDynamic&&e.property&&!t.unref(nr)(e.property)?(t.openBlock(),t.createBlock(j,{key:1,class:"d-flex",title:"Non-dynamic"},{default:t.withCtx(()=>[t.createVNode(ar,{class:"text-info"})]),_:1})):t.createCommentVNode("",!0),e.property&&e.property.$beta?(t.openBlock(),t.createBlock(j,{key:2,class:"d-flex",title:"Beta"},{default:t.withCtx(()=>[t.createVNode(ir,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),e.property&&e.property.$deprecated?(t.openBlock(),t.createBlock(j,{key:3,class:"d-flex",title:"Deprecated"},{default:t.withCtx(()=>[t.createVNode(Kt,{class:"text-warning"})]),_:1})):t.createCommentVNode("",!0),e.property?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:4},t.renderList(n(e.property),r=>(t.openBlock(),t.createElementBlock("span",{key:r,class:"type-box rounded fs-7 px-2 py-1"},t.toDisplayString(r),1))),128)):t.createCommentVNode("",!0)],2)]))}}),cr=D(Vh,[["__scopeId","data-v-f088032b"]]),Ih={class:"def-content"},Ah={class:"d-flex align-items-center justify-content-between gap-2"},Dh={key:0,class:"property-desc mt-2"},$h={key:1,class:"mt-3 nested-defs"},Oh=t.defineComponent({__name:"DefinitionCollapsible",props:{definition:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(e){const n=e,o=S.sanitizeForMarkdown,l=s=>{const c=at(s).subType;return c&&!c.startsWith("#")?c:void 0},r=s=>Qn(s),a=s=>{const c=n.definitions,u=n.depth,d=n.maxDepth,h=n.visitedKeys;return!c||u>=d?[]:tr(s,c,h)},i=t.computed(()=>{const s=new Set(n.visitedKeys);return s.add(n.definition.key),s});return(s,c)=>{const u=t.resolveComponent("DefinitionCollapsible",!0);return t.openBlock(),t.createBlock(Et,{title:e.definition.title,href:`def-${e.definition.key}`,class:t.normalizeClass(["def-collapsible",`section-${e.section}`]),arrow:"","no-url-change":""},{content:t.withCtx(()=>[t.createElementVNode("div",Ih,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.definition.properties,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"def-property"},[t.createElementVNode("div",Ah,[t.createElementVNode("span",null,t.toDisplayString(h),1),t.createVNode(cr,{property:d,"show-dynamic":!1,"section-class":"section-properties"},null,8,["property"])]),t.createVNode(sr,{property:d,subtype:l(d),"enum-values":r(d)},null,8,["property","subtype","enum-values"]),d.title!==void 0||d.description!==void 0?(t.openBlock(),t.createElementBlock("div",Dh,[d.title?t.renderSlot(s.$slots,"markdown",{key:0,content:t.unref(o)(d.title)},void 0,!0):t.createCommentVNode("",!0),d.description?t.renderSlot(s.$slots,"markdown",{key:1,content:t.unref(o)(d.description)},void 0,!0):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.depth<e.maxDepth&&a(d).length?(t.openBlock(),t.createElementBlock("div",$h,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(d),p=>(t.openBlock(),t.createBlock(u,{key:`${e.definition.key}-${p.key}`,definition:p,definitions:e.definitions,"visited-keys":i.value,depth:e.depth+1,"max-depth":e.maxDepth},{markdown:t.withCtx(({content:k})=>[t.renderSlot(s.$slots,"markdown",{content:k},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth"]))),128))])):t.createCommentVNode("",!0)]))),128))])]),_:3},8,["title","href","class"])}}}),Ph=D(Oh,[["__scopeId","data-v-577c29ff"]]),xh={class:"property-detail"},Rh={key:0},Mh={class:"property-description markdown"},Fh={key:2},Uh={key:3,class:"mt-3"},Hh=t.defineComponent({__name:"PropertyDetailV2",props:{property:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(e){const n=e,o=t.computed(()=>at(n.property).subType),l=t.computed(()=>Qn(n.property)),r=t.computed(()=>{const s=n.definitions,c=n.depth,u=n.maxDepth,d=n.property,h=n.visitedKeys;return!s||c>=u?[]:tr(d,s,h)}),a=t.computed(()=>{const s=new Set(n.visitedKeys);return r.value.forEach(c=>s.add(c.key)),s}),i=S.sanitizeForMarkdown;return(s,c)=>(t.openBlock(),t.createElementBlock("div",xh,[t.createVNode(sr,{property:e.property,subtype:o.value,"enum-values":l.value},null,8,["property","subtype","enum-values"]),e.property.title!==void 0||e.property.description!==void 0||e.depth<e.maxDepth&&r.value.length>0?(t.openBlock(),t.createElementBlock("div",Rh,[t.createElementVNode("div",Mh,[e.property.title!==void 0?t.renderSlot(s.$slots,"markdown",{key:0,content:t.unref(i)(e.property.title)},void 0,!0):t.createCommentVNode("",!0),e.property.description!==void 0?t.renderSlot(s.$slots,"markdown",{key:1,content:t.unref(i)(e.property.description)},void 0,!0):t.createCommentVNode("",!0),e.property.$internalStorageURI?(t.openBlock(),t.createElementBlock("div",Fh,[t.createVNode(or,{type:"info"},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):t.createCommentVNode("",!0),e.depth<e.maxDepth&&r.value.length>0?(t.openBlock(),t.createElementBlock("div",Uh,[c[0]||(c[0]=t.createElementVNode("div",{class:"definitions-header"}," Definitions ",-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,u=>(t.openBlock(),t.createBlock(Ph,{key:`${u.key}-${e.depth}`,definition:u,definitions:e.definitions,"visited-keys":a.value,depth:e.depth+1,"max-depth":e.maxDepth,section:e.section},{markdown:t.withCtx(({content:d})=>[t.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth","section"]))),128))])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),zh=D(Hh,[["__scopeId","data-v-32bc6580"]]),Wh={class:"border overflow-hidden"},jh=t.defineComponent({__name:"CollapsiblePropertiesV2",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},definitions:{default:void 0}},emits:["expand"],setup(e,{emit:n}){const o=e,l=n,r=t.computed(()=>{const s=o.sectionName.toLowerCase();return s==="properties"?"section-properties":s==="outputs"?"section-outputs":s==="metrics"?"section-metrics":""}),a=t.ref(!1);t.watch(a,s=>{s&&l("expand")});function i(s){s=s??{};const c=[],u=[];for(const p in s)typeof s[p]=="object"&&(s[p]=er(s[p]),s[p].$required?c.push(p):u.push(p));const d=[...c.sort(),...u.sort()],h={};return d.forEach(p=>{(!s[p].$deprecated||o.forceInclude?.includes(p))&&(h[p]=s[p])}),h}return(s,c)=>(t.openBlock(),t.createBlock(Et,{class:"section-collapsible",title:e.sectionName,href:e.href,onExpand:c[1]||(c[1]=u=>l("expand")),"initially-expanded":e.initiallyExpanded||a.value,"no-url-change":e.noUrlChange},t.createSlots({_:2},[Object.keys(e.properties??{}).length>0?{name:"content",fn:t.withCtx(()=>[t.createElementVNode("div",Wh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i(e.properties),(u,d)=>(t.openBlock(),t.createBlock(Et,{class:t.normalizeClass(["property",r.value]),key:d,title:d,href:e.href+"_"+d,onExpand:c[0]||(c[0]=h=>a.value=!0),"no-url-change":e.noUrlChange},{right:t.withCtx(()=>[t.createVNode(cr,{property:u,"show-dynamic":e.showDynamic},null,8,["property","show-dynamic"])]),content:t.withCtx(()=>[t.createVNode(zh,{property:u,definitions:e.definitions,section:e.sectionName.toLowerCase()},{markdown:t.withCtx(({content:h})=>[t.renderSlot(s.$slots,"markdown",{content:h},void 0,!0)]),_:3},8,["property","definitions","section"])]),_:2},1032,["title","href","no-url-change","class"]))),128))])]),key:"0"}:void 0]),1032,["title","href","initially-expanded","no-url-change"]))}}),pn=D(jh,[["__scopeId","data-v-e31e75cd"]]),Gh={class:"d-flex flex-column gap-6"},Kh={class:"d-flex flex-column"},Yh={key:0,class:"alert alert-info mb-2",role:"alert"},qh={key:1,class:"markdown"},Xh={class:"d-flex flex-column gap-4"},Zh={class:"d-flex flex-column"},Jh={class:"markdown"},Qh={key:0,class:"w-100 align-self-center"},eE={class:"markdown"},tE={class:"markdown"},nE={class:"markdown"},oE=t.defineComponent({__name:"SchemaToHtmlV2",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(e){let n,o;const l=e,r=d=>d?.full?d.code:`id: ${l.pluginType.split(".").reverse()[0]?.toLowerCase()}
|
|
18
|
+
type: ${l.pluginType}
|
|
19
|
+
`.concat(d.code),a=t.ref(),i=t.computed(()=>l.schema.properties?.$examples),s=t.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(d=>[d.name,{...d,name:void 0}]))),{getHighlighterCore:c}=([n,o]=t.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);a.value=([n,o]=t.withAsyncContext(()=>c()),n=await n,o(),n);const u="github-"+(l.darkMode?"dark":"light");return(d,h)=>(t.openBlock(),t.createElementBlock("div",Gh,[t.createElementVNode("div",Kh,[e.schema.properties?.$beta?(t.openBlock(),t.createElementBlock("div",Yh,[...h[0]||(h[0]=[t.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):t.createCommentVNode("",!0),e.schema.properties?.description?(t.openBlock(),t.createElementBlock("div",qh,[t.renderSlot(d.$slots,"markdown",{content:e.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(Mt,{highlighter:a.value,language:"yaml",theme:u,code:`type: ${e.pluginType}`,key:e.pluginType},null,8,["highlighter","code"]))]),(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column",key:e.pluginType},[i.value?(t.openBlock(),t.createBlock(Et,{key:0,class:"plugin-section",title:"Examples",href:"examples","no-url-change":e.noUrlChange},{content:t.withCtx(()=>[t.createElementVNode("div",Xh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,k)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.pluginType+"-"+k},[t.createElementVNode("div",Zh,[t.createElementVNode("div",Jh,[p.title?t.renderSlot(d.$slots,"markdown",{key:0,content:p.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):t.createCommentVNode("",!0)]),p.code?(t.openBlock(),t.createBlock(Mt,{key:0,highlighter:a.value,language:p.lang??"yaml",theme:u,code:r(p)},null,8,["highlighter","language","code"])):t.createCommentVNode("",!0)]),k<i.value.length-1?(t.openBlock(),t.createElementBlock("hr",Qh)):t.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.properties?(t.openBlock(),t.createBlock(pn,{key:1,class:"plugin-section",properties:e.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":e.propsInitiallyExpanded,"force-include":e.forceIncludeProperties,definitions:e.schema.definitions,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:p})=>[t.createElementVNode("div",eE,[t.renderSlot(d.$slots,"markdown",{content:p},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","definitions","no-url-change"])):t.createCommentVNode("",!0),e.schema.outputs?.properties&&Object.keys(e.schema.outputs.properties).length>0?(t.openBlock(),t.createBlock(pn,{key:2,class:"plugin-section",properties:e.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,definitions:e.schema.definitions,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:p})=>[t.createElementVNode("div",tE,[t.renderSlot(d.$slots,"markdown",{content:p},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):t.createCommentVNode("",!0),e.schema.properties?.$metrics?(t.openBlock(),t.createBlock(pn,{key:3,class:"plugin-section",properties:s.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,definitions:e.schema.definitions,"no-url-change":e.noUrlChange},{markdown:t.withCtx(({content:p})=>[t.createElementVNode("div",nE,[t.renderSlot(d.$slots,"markdown",{content:p},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):t.createCommentVNode("",!0)]))]))}}),lE=D(oE,[["__scopeId","data-v-4d644b07"]]),rE={class:"d-flex flex-column gap-4"},aE={key:0,class:"pb-2"},iE={class:"row g-4 last"},sE=["id"],cE={class:"row g-4 last"},uE={key:2,class:"description"},dE={key:0,class:"gradient-overlay"},mE={key:0,class:"more-wrap text-center"},fE=t.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},routePath:{},icons:{},subGroup:{},activeId:{},subgroupBlueprintCounts:{},metadataMap:{},schemas:{}},emits:["navigate"],setup(e,{emit:n}){const o=e,l=b=>o.metadataMap?.[b.subGroup??b.group],r=b=>l(b)?.description??b.description,a=b=>l(b)?.title??b.title??De(b),i=t.computed(()=>o.plugins.find(b=>o.subGroup===void 0?!0:Ce(De(b))===o.subGroup)),s=t.computed(()=>i.value?.longDescription??i.value?.description),c=t.computed(()=>o.plugins.filter(b=>b.name.toLowerCase()===o.pluginName.toLowerCase()&&b.subGroup!==void 0)),u=b=>{let V=b.split(".");return V?.[V.length-1]},d=b=>`${o.routePath}/${b}`;function h(b){const V=Ht(b);return Object.values(V).reduce((C,R)=>C+R.length,0)}const{elementsByType:p}=nl(i),k=t.ref(null),I=t.ref(null),y=t.ref(!1),{height:N}=Jo(k),{height:m}=Jo(I),E=t.computed(()=>m.value>N.value+2),w=()=>{y.value=!y.value},_=n;return(b,V)=>(t.openBlock(),t.createElementBlock("div",rE,[e.subGroup===void 0&&e.plugins.length>1?(t.openBlock(),t.createElementBlock("div",aE,[t.createElementVNode("div",iE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,C=>(t.openBlock(),t.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:t.unref(De)(C)},[t.createVNode(Zl,{id:t.unref(Ce)(t.unref(De)(C)),"icon-b64-svg":"data:image/svg+xml;base64,"+(e.icons[C.subGroup]??e.icons[C.group]),text:a(C),description:r(C),href:`${e.routePath}/${t.unref(Ce)(t.unref(De)(C))}`,"route-path":e.routePath,"plugin-group":C.group??C.name,"total-count":h(C),"blueprints-count":o.subgroupBlueprintCounts?.[`${t.unref(Ce)(C.group??C.name)}-${t.unref(Ce)(t.unref(De)(C))}`]??0,"is-active":e.activeId?.toLowerCase()===t.unref(Ce)(t.unref(De)(C)),class:"text-capitalize h-100",onNavigate:V[0]||(V[0]=R=>_("navigate",R))},null,8,["id","icon-b64-svg","text","description","href","route-path","plugin-group","total-count","blueprints-count","is-active"])]))),128))])])):i.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(p),(C,R)=>(t.openBlock(),t.createElementBlock("div",{class:"d-flex flex-column elements-section pb-3",key:R},[t.createElementVNode("h4",{id:`section-${t.unref(Ce)(R)}`,class:"text-capitalize"},t.toDisplayString(R),9,sE),t.createElementVNode("div",cE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(C,U=>(t.openBlock(),t.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:U},[t.createVNode(Jl,{id:t.unref(Ce)(U),"icon-b64-svg":"data:image/svg+xml;base64,"+(e.icons[U]??e.icons[i.value.subGroup??i.value.group]??e.icons[i.value.group]),text:u(U),"plugin-class":U,href:d(U),"route-path":e.routePath,title:e.schemas?.[U]?.title,class:"h-100",onNavigate:V[1]||(V[1]=Q=>_("navigate",Q))},{markdown:t.withCtx(({content:Q})=>[t.renderSlot(b.$slots,"markdown",{content:Q},void 0,!0)]),_:3},8,["id","icon-b64-svg","text","plugin-class","href","route-path","title"])]))),128))])]))),128)):t.createCommentVNode("",!0),s.value!==void 0&&i.value?.longDescription?(t.openBlock(),t.createElementBlock("div",uE,[V[2]||(V[2]=t.createElementVNode("h4",{id:"how-to-use-this-plugin"}," How to use this plugin ",-1)),t.createElementVNode("div",{ref_key:"contentWrap",ref:k,class:t.normalizeClass(["markdown-container",{expanded:y.value}])},[t.createElementVNode("div",{ref_key:"contentInner",ref:I,class:"markdown-inner"},[t.renderSlot(b.$slots,"markdown",{content:s.value.replace(/ *:(?![ /])/g,": ")},void 0,!0)],512),E.value&&!y.value?(t.openBlock(),t.createElementBlock("div",dE)):t.createCommentVNode("",!0)],2),E.value||y.value?(t.openBlock(),t.createElementBlock("div",mE,[t.createElementVNode("button",{class:"more-btn",onClick:w},[t.createTextVNode(t.toDisplayString(y.value?"See less":"See more")+" ",1),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value?rr:Jn)))])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))}}),pE=D(fE,[["__scopeId","data-v-535305bd"]]),gE=/"(?:_|\\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*:/,hE=/"(?: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*:/,EE=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function yE(e,n){if(e==="__proto__"||e==="constructor"&&n&&typeof n=="object"&&"prototype"in n){kE(e);return}return n}function kE(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function vE(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(!EE.test(e)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(gE.test(e)||hE.test(e)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,yE)}return JSON.parse(e)}catch(l){if(n.strict)throw l;return e}}const CE=/\d/,_E=["-","_","/","."];function NE(e=""){if(!CE.test(e))return e!==e.toLowerCase()}function ur(e,n){const o=_E,l=[];if(!e||typeof e!="string")return l;let r="",a,i;for(const s of e){const c=o.includes(s);if(c===!0){l.push(r),r="",a=void 0;continue}const u=NE(s);if(i===!1){if(a===!1&&u===!0){l.push(r),r=s,a=u;continue}if(a===!0&&u===!1&&r.length>1){const d=r.at(-1);l.push(r.slice(0,Math.max(0,r.length-1))),r=d+s,a=u;continue}}r+=s,a=u,i=c}return l.push(r),l}function SE(e){return e?e[0].toUpperCase()+e.slice(1):""}function dr(e,n){return e?(Array.isArray(e)?e:ur(e)).map(o=>SE(o)).join(""):""}function bE(e,n){return e?(Array.isArray(e)?e:ur(e)).map(o=>o.toLowerCase()).join("-"):""}class kt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}kt.prototype.normal={};kt.prototype.property={};kt.prototype.space=void 0;function mr(e,n){const o={},l={};for(const r of e)Object.assign(o,r.property),Object.assign(l,r.normal);return new kt(o,l,n)}function Bn(e){return e.toLowerCase()}class ye{constructor(n,o){this.attribute=o,this.property=n}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let wE=0;const F=Ze(),se=Ze(),Vn=Ze(),B=Ze(),J=Ze(),ot=Ze(),ve=Ze();function Ze(){return 2**++wE}const In=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:se,commaOrSpaceSeparated:ve,commaSeparated:ot,number:B,overloadedBoolean:Vn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),gn=Object.keys(In);class to extends ye{constructor(n,o,l,r){let a=-1;if(super(n,o),Qo(this,"space",r),typeof l=="number")for(;++a<gn.length;){const i=gn[a];Qo(this,gn[a],(l&In[i])===In[i])}}}to.prototype.defined=!0;function Qo(e,n,o){o&&(e[n]=o)}function it(e){const n={},o={};for(const[l,r]of Object.entries(e.properties)){const a=new to(l,e.transform(e.attributes||{},l),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(a.mustUseProperty=!0),n[l]=a,o[Bn(l)]=l,o[Bn(a.attribute)]=l}return new kt(n,o,e.space)}const fr=it({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:B,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:se,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function pr(e,n){return n in e?e[n]:n}function gr(e,n){return pr(e,n.toLowerCase())}const LE=it({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ot,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:J,autoFocus:F,autoPlay:F,blocking:J,capture:null,charSet:null,checked:F,cite:null,className:J,cols:B,colSpan:null,content:null,contentEditable:se,controls:F,controlsList:J,coords:B|ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Vn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:J,height:B,hidden:Vn,high:B,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:J,itemRef:J,itemScope:F,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:B,manifest:null,max:null,maxLength:B,media:null,method:null,min:null,minLength:B,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:B,pattern:null,ping:J,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:J,required:F,reversed:F,rows:B,rowSpan:B,sandbox:J,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:B,sizes:null,slot:null,span:B,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:B,step:null,style:null,tabIndex:B,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:se,width:B,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:B,borderColor:null,bottomMargin:B,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:B,leftMargin:B,link:null,longDesc:null,lowSrc:null,marginHeight:B,marginWidth:B,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:B,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:B,valueType:null,version:null,vAlign:null,vLink:null,vSpace:B,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:B,security:null,unselectable:null},space:"html",transform:gr}),TE=it({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:ve,accentHeight:B,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:B,amplitude:B,arabicForm:null,ascent:B,attributeName:null,attributeType:null,azimuth:B,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:B,by:null,calcMode:null,capHeight:B,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:B,diffuseConstant:B,direction:null,display:null,dur:null,divisor:B,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:B,enableBackground:null,end:null,event:null,exponent:B,externalResourcesRequired:null,fill:null,fillOpacity:B,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:ot,g2:ot,glyphName:ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:B,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:B,horizOriginX:B,horizOriginY:B,id:null,ideographic:B,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:B,k:B,k1:B,k2:B,k3:B,k4:B,kernelMatrix:ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:B,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:B,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:B,overlineThickness:B,paintOrder:null,panose1:null,path:null,pathLength:B,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:B,pointsAtY:B,pointsAtZ:B,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ve,rev:ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ve,requiredFeatures:ve,requiredFonts:ve,requiredFormats:ve,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:B,specularExponent:B,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:B,strikethroughThickness:B,string:null,stroke:null,strokeDashArray:ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:B,strokeOpacity:B,strokeWidth:null,style:null,surfaceScale:B,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ve,tabIndex:B,tableValues:null,target:null,targetX:B,targetY:B,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:B,underlineThickness:B,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:B,values:null,vAlphabetic:B,vMathematical:B,vectorEffect:null,vHanging:B,vIdeographic:B,version:null,vertAdvY:B,vertOriginX:B,vertOriginY:B,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:B,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pr}),hr=it({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()}}),Er=it({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gr}),yr=it({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),BE=/[A-Z]/g,el=/-[a-z]/g,VE=/^data[-\w.:]+$/i;function IE(e,n){const o=Bn(n);let l=n,r=ye;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&VE.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(el,DE);l="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!el.test(a)){let i=a.replace(BE,AE);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}r=to}return new r(l,n)}function AE(e){return"-"+e.toLowerCase()}function DE(e){return e.charAt(1).toUpperCase()}const $E=mr([fr,LE,hr,Er,yr],"html");mr([fr,TE,hr,Er,yr],"svg");const OE=new Set(["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"]),PE=["p","h1","h2","h3","h4","h5","h6","li"];function Ft(e,n){return e.type===n||typeof e.type=="object"&&e.type.tag===n||e.tag===n}function no(e){return Ft(e,"text")||Ft(e,Symbol.for("v-txt"))}function kr(e){return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof e.children?.default=="function"?e.children.default():[]}function Ut(e){if(!e)return"";if(Array.isArray(e))return e.map(Ut).join("");if(no(e))return e.value||e.children||"";const n=kr(e);return Array.isArray(n)?n.map(Ut).filter(Boolean).join(""):""}function vr(e,n=[]){if(Array.isArray(e))return e.flatMap(l=>vr(l,n));let o=e;return n.some(l=>l==="*"||Ft(e,l))&&(o=kr(e)||e,!Array.isArray(o)&&PE.some(l=>Ft(e,l))&&(o=[o])),o}function Cr(e,n=[]){return e=Array.isArray(e)?e:[e],n.length?e.flatMap(o=>Cr(vr(o,[n[0]]),n.slice(1))).filter(o=>!(no(o)&&Ut(o).trim()==="")):e}function _r(e,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?Cr(e,n).reduce((o,l)=>(no(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):e}function xE(e,n){return n.reduce((o,l)=>{const r=RE(e,l);return r!==void 0&&(o[l]=r),o},{})}function RE(e,n){return n.split(".").reduce((o,l)=>o&&o[l],e)}const An="default",Nr=/^@|^v-on:/,Sr=/^:|^v-bind:/,ME=/^v-model/,FE=["select","textarea","input"],UE=new Set(["math","svg"]),br=new Set,HE=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}`])),zE=["script","base"],WE=t.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){const o=t.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:r}=o?.$config?.public||{},a=r?.components?.customElements||r?.components?.custom;a&&a.forEach(d=>br.add(d));const i=t.computed(()=>({...r?.components?.prose&&e.prose!==!1?HE:{},...r?.components?.map||{},...t.toRaw(e.data?.mdc?.components||{}),...e.components})),s=t.computed(()=>{const d=(e.body?.children||[]).map(h=>h.tag||h.type).filter(h=>!oo(h));return Array.from(new Set(d)).sort().join(".")}),c=t.reactive({...e.data});t.watch(()=>e.data,d=>{Object.assign(c,d)}),await ty(e.body,{tags:i.value});function u(d,h){const p=d.split(".").length-1;return d.split(".").reduce((k,I,y)=>y==p&&k?(k[I]=h,k[I]):typeof k=="object"?k[I]:void 0,c)}return{tags:i,contentKey:s,route:l,runtimeData:c,updateRuntimeData:u}},render(e){const{tags:n,tag:o,body:l,data:r,contentKey:a,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=e;if(!l)return null;const d={...r,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},h=o!==!1?Dn(o||d.component?.name||d.component||"div"):void 0;return h?t.h(h,{...d.component?.props,class:e.class,...this.$attrs,key:a},{default:p}):p?.();function p(){const k=wr(l,t.h,{documentMeta:d,parentScope:d,resolveComponent:Dn});return k?.default?s?_r(k.default(),typeof s=="string"?s.split(" "):["*"]):k.default():null}}});function jE(e,n,o,l){const{documentMeta:r,parentScope:a,resolveComponent:i}=o;if(e.type==="text")return n(t.Text,e.value);if(e.type==="comment")return n(t.Comment,null,e.value);const s=e.tag,c=Tr(e,r.tags);if(e.tag==="binding")return GE(e,n,r,a);const u=Lr(c)?p=>p:i;if(zE.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Ut(e)+"</"+c+">");const d=u(c);typeof d=="object"&&(d.tag=s);const h=KE(e,r);return l&&(h.key=l),n(d,h,wr(e,n,{documentMeta:r,parentScope:{...a,...h},resolveComponent:u}))}function wr(e,n,o){const{documentMeta:l,parentScope:r,resolveComponent:a}=o,s=(e.children||[]).reduce((u,d)=>{if(!QE(d))return u[An].children.push(d),u;const h=JE(d);return u[h]=u[h]||{props:{},children:[]},d.type==="element"&&(u[h].props=d.props,u[h].children.push(...d.children||[])),u},{[An]:{props:{},children:[]}});return Object.entries(s).reduce((u,[d,{props:h,children:p}])=>(p.length&&(u[d]=(k={})=>{const I=xE(k,Object.keys(h||{}));let y=p.map((N,m)=>jE(N,n,{documentMeta:l,parentScope:{...r,...I},resolveComponent:a},String(N.props?.key||m)));return h?.unwrap&&(y=_r(y,h.unwrap)),ey(y)}),u),{})}function GE(e,n,o,l={}){const r={...o.runtimeData,...l,$document:o,$doc:o},a=/\.|\[(\d+)\]/,s=(e.props?.value.trim().split(a).filter(Boolean)).reduce((u,d)=>{if(u&&d in u)return typeof u[d]=="function"?u[d]():u[d]},r),c=e.props?.defaultValue;return n(t.Text,s??c??"")}function KE(e,n){const{tag:o="",props:l={}}=e;return Object.keys(l).reduce(function(r,a){if(a==="__ignoreMap")return r;const i=l[a];if(ME.test(a))return YE(a,i,r,n,{native:FE.includes(o)});if(a==="v-bind")return qE(a,i,r,n);if(Nr.test(a))return XE(a,i,r,n);if(Sr.test(a))return ZE(a,i,r,n);const{attribute:s}=IE($E,a);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(r[s]=i.join(" "),r):(r[s]=i,r)},{})}function YE(e,n,o,l,{native:r}){const a=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=r?"value":a,s=r?"onInput":`onUpdate:${a}`;return o[i]=Xt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,r?c.target?.value:c)},o}function qE(e,n,o,l){const r=Xt(n,l);return o=Object.assign(o,r),o}function XE(e,n,o,l){return e=e.replace(Nr,""),o.on=o.on||{},o.on[e]=()=>Xt(n,l),o}function ZE(e,n,o,l){return e=e.replace(Sr,""),o[e]=Xt(n,l),o}const Dn=e=>{if(typeof e=="string"){if(oo(e))return e;const n=t.resolveComponent(dr(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?t.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return e};function Xt(e,n){const o=e.split(".").reduce((l,r)=>typeof l=="object"?l[r]:void 0,n);return typeof o>"u"?vE(e):o}function JE(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||An}function QE(e){return e.tag==="template"}function Lr(e){return UE.has(e)}function ey(e){const n=[];for(const o of e){const l=n[n.length-1];o.type===t.Text&&l?.type===t.Text?l.children=l.children+o.children:n.push(o)}return n}async function ty(e,n){if(!e)return;const o=Array.from(new Set(l(e,n)));await Promise.all(o.map(async r=>{if(r?.render||r?.ssrRender||r?.__ssrInlineRender)return;const a=Dn(r);a?.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function l(r,a){const i=r.tag;if(r.type==="text"||i==="binding"||r.type==="comment")return[];const s=Tr(r,a.tags);if(Lr(s))return[];const c=[];r.type!=="root"&&!oo(s)&&c.push(s);for(const u of r.children||[])c.push(...l(u,a));return c}}function Tr(e,n){const o=e.tag;return!o||typeof e.props?.__ignoreMap<"u"?o:n[o]||n[dr(o)]||n[bE(e.tag)]||o}function oo(e){return(typeof e=="string"?br.has(e):!1)||OE.has(e)}const ny=t.defineComponent({__name:"MDCRenderer",setup(e){return(n,o)=>(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[t.createVNode(WE,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.Collapsible=ht;exports.CollapsibleV2=Et;exports.DependenciesNode=Gc;exports.ElementCard=Jl;exports.LOG_LEVELS=ai;exports.MDCRenderer=ny;exports.PluginIndex=pE;exports.RotatingDotsIcon=ol;exports.STATES=z;exports.SchemaToHtml=Q1;exports.SchemaToHtmlV2=lE;exports.State=ne;exports.Status=jf;exports.SubgroupCard=Zl;exports.TaskIcon=zn;exports.Topology=Hf;exports.YamlUtils=Fr;exports.buildPluginMappings=mi;exports.cssVariable=_e;exports.extractPluginElements=Ht;exports.filterPluginsWithoutDeprecated=di;exports.getMDCParser=ii;exports.isEntryAPluginElementPredicate=$n;exports.slugify=Ce;exports.subGroupName=De;exports.usePluginElementCounts=nl;
|
|
20
20
|
//# sourceMappingURL=kestra-index.cjs.js.map
|