@kestra-io/ui-libs 0.0.282 → 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.
@@ -12,9 +12,9 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
12
12
  stroke-width: ${y.strokeWidth};
13
13
  stroke-dasharray: ${y.strokeDasharray};
14
14
  fill: none;
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-e4a617c8"]]),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-1fe47a0f"]]),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;
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