redis-smq-web-ui 9.0.0-next.4 → 9.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +74 -72
- package/dist/browser/assets/QueuesView-gKXkgwTk.js +1 -0
- package/dist/browser/assets/index-BooLzpct.css +9 -0
- package/dist/browser/assets/index-C2KJn_-I.js +43 -0
- package/dist/browser/index.html +2 -2
- package/package.json +24 -25
- package/dist/browser/assets/QueuesView-BoC_jjup.js +0 -1
- package/dist/browser/assets/index-Bt_mTIwJ.css +0 -9
- package/dist/browser/assets/index-CRTYBxrI.js +0 -43
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/QueuesView-gKXkgwTk.js","assets/QueuesView-BOytmHBz.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();function i1(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),s}var Da={exports:{}},Wt="top",cs="bottom",ds="right",zt="left",_o="auto",er=[Wt,cs,ds,zt],ai="start",Li="end",Jh="clippingParents",qu="viewport",$i="popper",Xh="reference",Fl=er.reduce(function(e,t){return e.concat([t+"-"+ai,t+"-"+Li])},[]),Lu=[].concat(er,[_o]).reduce(function(e,t){return e.concat([t,t+"-"+ai,t+"-"+Li])},[]),em="beforeRead",tm="read",sm="afterRead",nm="beforeMain",im="main",rm="afterMain",am="beforeWrite",om="write",lm="afterWrite",um=[em,tm,sm,nm,im,rm,am,om,lm];function Us(e){return e?(e.nodeName||"").toLowerCase():null}function fs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oi(e){var t=fs(e).Element;return e instanceof t||e instanceof Element}function Es(e){var t=fs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fu(e){if(typeof ShadowRoot>"u")return!1;var t=fs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r1(e){var t=e.state;Object.keys(t.elements).forEach(function(s){var n=t.styles[s]||{},i=t.attributes[s]||{},r=t.elements[s];!Es(r)||!Us(r)||(Object.assign(r.style,n),Object.keys(i).forEach(function(o){var l=i[o];l===!1?r.removeAttribute(o):r.setAttribute(o,l===!0?"":l)}))})}function a1(e){var t=e.state,s={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,s.popper),t.styles=s,t.elements.arrow&&Object.assign(t.elements.arrow.style,s.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],r=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:s[n]),l=o.reduce(function(u,d){return u[d]="",u},{});!Es(i)||!Us(i)||(Object.assign(i.style,l),Object.keys(r).forEach(function(u){i.removeAttribute(u)}))})}}const Vu={name:"applyStyles",enabled:!0,phase:"write",fn:r1,effect:a1,requires:["computeStyles"]};function Qs(e){return e.split("-")[0]}var ti=Math.max,Ka=Math.min,Fi=Math.round;function Vl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cm(){return!/^((?!chrome|android).)*safari/i.test(Vl())}function Vi(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var n=e.getBoundingClientRect(),i=1,r=1;t&&Es(e)&&(i=e.offsetWidth>0&&Fi(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Fi(n.height)/e.offsetHeight||1);var o=oi(e)?fs(e):window,l=o.visualViewport,u=!cm()&&s,d=(n.left+(u&&l?l.offsetLeft:0))/i,c=(n.top+(u&&l?l.offsetTop:0))/r,h=n.width/i,p=n.height/r;return{width:h,height:p,top:c,right:d+h,bottom:c+p,left:d,x:d,y:c}}function Qu(e){var t=Vi(e),s=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-s)<=1&&(s=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:s,height:n}}function dm(e,t){var s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&Fu(s)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function on(e){return fs(e).getComputedStyle(e)}function o1(e){return["table","td","th"].indexOf(Us(e))>=0}function kn(e){return((oi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eo(e){return Us(e)==="html"?e:e.assignedSlot||e.parentNode||(Fu(e)?e.host:null)||kn(e)}function Td(e){return!Es(e)||on(e).position==="fixed"?null:e.offsetParent}function l1(e){var t=/firefox/i.test(Vl()),s=/Trident/i.test(Vl());if(s&&Es(e)){var n=on(e);if(n.position==="fixed")return null}var i=Eo(e);for(Fu(i)&&(i=i.host);Es(i)&&["html","body"].indexOf(Us(i))<0;){var r=on(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Yr(e){for(var t=fs(e),s=Td(e);s&&o1(s)&&on(s).position==="static";)s=Td(s);return s&&(Us(s)==="html"||Us(s)==="body"&&on(s).position==="static")?t:s||l1(e)||t}function ju(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sr(e,t,s){return ti(e,Ka(t,s))}function u1(e,t,s){var n=Sr(e,t,s);return n>s?s:n}function fm(){return{top:0,right:0,bottom:0,left:0}}function hm(e){return Object.assign({},fm(),e)}function mm(e,t){return t.reduce(function(s,n){return s[n]=e,s},{})}var c1=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,hm(typeof t!="number"?t:mm(t,er))};function d1(e){var t,s=e.state,n=e.name,i=e.options,r=s.elements.arrow,o=s.modifiersData.popperOffsets,l=Qs(s.placement),u=ju(l),d=[zt,ds].indexOf(l)>=0,c=d?"height":"width";if(!(!r||!o)){var h=c1(i.padding,s),p=Qu(r),m=u==="y"?Wt:zt,g=u==="y"?cs:ds,w=s.rects.reference[c]+s.rects.reference[u]-o[u]-s.rects.popper[c],_=o[u]-s.rects.reference[u],S=Yr(r),A=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,x=w/2-_/2,y=h[m],$=A-p[c]-h[g],F=A/2-p[c]/2+x,j=Sr(y,F,$),q=u;s.modifiersData[n]=(t={},t[q]=j,t.centerOffset=j-F,t)}}function f1(e){var t=e.state,s=e.options,n=s.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||dm(t.elements.popper,i)&&(t.elements.arrow=i))}const pm={name:"arrow",enabled:!0,phase:"main",fn:d1,effect:f1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qi(e){return e.split("-")[1]}var h1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m1(e,t){var s=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Fi(s*i)/i||0,y:Fi(n*i)/i||0}}function Od(e){var t,s=e.popper,n=e.popperRect,i=e.placement,r=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,h=e.isFixed,p=o.x,m=p===void 0?0:p,g=o.y,w=g===void 0?0:g,_=typeof c=="function"?c({x:m,y:w}):{x:m,y:w};m=_.x,w=_.y;var S=o.hasOwnProperty("x"),A=o.hasOwnProperty("y"),x=zt,y=Wt,$=window;if(d){var F=Yr(s),j="clientHeight",q="clientWidth";if(F===fs(s)&&(F=kn(s),on(F).position!=="static"&&l==="absolute"&&(j="scrollHeight",q="scrollWidth")),F=F,i===Wt||(i===zt||i===ds)&&r===Li){y=cs;var E=h&&F===$&&$.visualViewport?$.visualViewport.height:F[j];w-=E-n.height,w*=u?1:-1}if(i===zt||(i===Wt||i===cs)&&r===Li){x=ds;var T=h&&F===$&&$.visualViewport?$.visualViewport.width:F[q];m-=T-n.width,m*=u?1:-1}}var C=Object.assign({position:l},d&&h1),B=c===!0?m1({x:m,y:w},fs(s)):{x:m,y:w};if(m=B.x,w=B.y,u){var Z;return Object.assign({},C,(Z={},Z[y]=A?"0":"",Z[x]=S?"0":"",Z.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",Z))}return Object.assign({},C,(t={},t[y]=A?w+"px":"",t[x]=S?m+"px":"",t.transform="",t))}function p1(e){var t=e.state,s=e.options,n=s.gpuAcceleration,i=n===void 0?!0:n,r=s.adaptive,o=r===void 0?!0:r,l=s.roundOffsets,u=l===void 0?!0:l,d={placement:Qs(t.placement),variation:Qi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Od(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Od(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Bu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p1,data:{}};var Ea={passive:!0};function g1(e){var t=e.state,s=e.instance,n=e.options,i=n.scroll,r=i===void 0?!0:i,o=n.resize,l=o===void 0?!0:o,u=fs(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",s.update,Ea)}),l&&u.addEventListener("resize",s.update,Ea),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",s.update,Ea)}),l&&u.removeEventListener("resize",s.update,Ea)}}const Uu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g1,data:{}};var v1={left:"right",right:"left",bottom:"top",top:"bottom"};function Ra(e){return e.replace(/left|right|bottom|top/g,function(t){return v1[t]})}var b1={start:"end",end:"start"};function Nd(e){return e.replace(/start|end/g,function(t){return b1[t]})}function Ku(e){var t=fs(e),s=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:s,scrollTop:n}}function Hu(e){return Vi(kn(e)).left+Ku(e).scrollLeft}function y1(e,t){var s=fs(e),n=kn(e),i=s.visualViewport,r=n.clientWidth,o=n.clientHeight,l=0,u=0;if(i){r=i.width,o=i.height;var d=cm();(d||!d&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:r,height:o,x:l+Hu(e),y:u}}function _1(e){var t,s=kn(e),n=Ku(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=ti(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ti(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+Hu(e),u=-n.scrollTop;return on(i||s).direction==="rtl"&&(l+=ti(s.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:l,y:u}}function Gu(e){var t=on(e),s=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+n)}function gm(e){return["html","body","#document"].indexOf(Us(e))>=0?e.ownerDocument.body:Es(e)&&Gu(e)?e:gm(Eo(e))}function xr(e,t){var s;t===void 0&&(t=[]);var n=gm(e),i=n===((s=e.ownerDocument)==null?void 0:s.body),r=fs(n),o=i?[r].concat(r.visualViewport||[],Gu(n)?n:[]):n,l=t.concat(o);return i?l:l.concat(xr(Eo(o)))}function Ql(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function E1(e,t){var s=Vi(e,!1,t==="fixed");return s.top=s.top+e.clientTop,s.left=s.left+e.clientLeft,s.bottom=s.top+e.clientHeight,s.right=s.left+e.clientWidth,s.width=e.clientWidth,s.height=e.clientHeight,s.x=s.left,s.y=s.top,s}function kd(e,t,s){return t===qu?Ql(y1(e,s)):oi(t)?E1(t,s):Ql(_1(kn(e)))}function w1(e){var t=xr(Eo(e)),s=["absolute","fixed"].indexOf(on(e).position)>=0,n=s&&Es(e)?Yr(e):e;return oi(n)?t.filter(function(i){return oi(i)&&dm(i,n)&&Us(i)!=="body"}):[]}function C1(e,t,s,n){var i=t==="clippingParents"?w1(e):[].concat(t),r=[].concat(i,[s]),o=r[0],l=r.reduce(function(u,d){var c=kd(e,d,n);return u.top=ti(c.top,u.top),u.right=Ka(c.right,u.right),u.bottom=Ka(c.bottom,u.bottom),u.left=ti(c.left,u.left),u},kd(e,o,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function vm(e){var t=e.reference,s=e.element,n=e.placement,i=n?Qs(n):null,r=n?Qi(n):null,o=t.x+t.width/2-s.width/2,l=t.y+t.height/2-s.height/2,u;switch(i){case Wt:u={x:o,y:t.y-s.height};break;case cs:u={x:o,y:t.y+t.height};break;case ds:u={x:t.x+t.width,y:l};break;case zt:u={x:t.x-s.width,y:l};break;default:u={x:t.x,y:t.y}}var d=i?ju(i):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case ai:u[d]=u[d]-(t[c]/2-s[c]/2);break;case Li:u[d]=u[d]+(t[c]/2-s[c]/2);break}}return u}function ji(e,t){t===void 0&&(t={});var s=t,n=s.placement,i=n===void 0?e.placement:n,r=s.strategy,o=r===void 0?e.strategy:r,l=s.boundary,u=l===void 0?Jh:l,d=s.rootBoundary,c=d===void 0?qu:d,h=s.elementContext,p=h===void 0?$i:h,m=s.altBoundary,g=m===void 0?!1:m,w=s.padding,_=w===void 0?0:w,S=hm(typeof _!="number"?_:mm(_,er)),A=p===$i?Xh:$i,x=e.rects.popper,y=e.elements[g?A:p],$=C1(oi(y)?y:y.contextElement||kn(e.elements.popper),u,c,o),F=Vi(e.elements.reference),j=vm({reference:F,element:x,placement:i}),q=Ql(Object.assign({},x,j)),E=p===$i?q:F,T={top:$.top-E.top+S.top,bottom:E.bottom-$.bottom+S.bottom,left:$.left-E.left+S.left,right:E.right-$.right+S.right},C=e.modifiersData.offset;if(p===$i&&C){var B=C[i];Object.keys(T).forEach(function(Z){var z=[ds,cs].indexOf(Z)>=0?1:-1,ie=[Wt,cs].indexOf(Z)>=0?"y":"x";T[Z]+=B[ie]*z})}return T}function A1(e,t){t===void 0&&(t={});var s=t,n=s.placement,i=s.boundary,r=s.rootBoundary,o=s.padding,l=s.flipVariations,u=s.allowedAutoPlacements,d=u===void 0?Lu:u,c=Qi(n),h=c?l?Fl:Fl.filter(function(g){return Qi(g)===c}):er,p=h.filter(function(g){return d.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,w){return g[w]=ji(e,{placement:w,boundary:i,rootBoundary:r,padding:o})[Qs(w)],g},{});return Object.keys(m).sort(function(g,w){return m[g]-m[w]})}function S1(e){if(Qs(e)===_o)return[];var t=Ra(e);return[Nd(e),t,Nd(t)]}function x1(e){var t=e.state,s=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=s.mainAxis,r=i===void 0?!0:i,o=s.altAxis,l=o===void 0?!0:o,u=s.fallbackPlacements,d=s.padding,c=s.boundary,h=s.rootBoundary,p=s.altBoundary,m=s.flipVariations,g=m===void 0?!0:m,w=s.allowedAutoPlacements,_=t.options.placement,S=Qs(_),A=S===_,x=u||(A||!g?[Ra(_)]:S1(_)),y=[_].concat(x).reduce(function($e,Te){return $e.concat(Qs(Te)===_o?A1(t,{placement:Te,boundary:c,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:w}):Te)},[]),$=t.rects.reference,F=t.rects.popper,j=new Map,q=!0,E=y[0],T=0;T<y.length;T++){var C=y[T],B=Qs(C),Z=Qi(C)===ai,z=[Wt,cs].indexOf(B)>=0,ie=z?"width":"height",W=ji(t,{placement:C,boundary:c,rootBoundary:h,altBoundary:p,padding:d}),V=z?Z?ds:zt:Z?cs:Wt;$[ie]>F[ie]&&(V=Ra(V));var ne=Ra(V),de=[];if(r&&de.push(W[B]<=0),l&&de.push(W[V]<=0,W[ne]<=0),de.every(function($e){return $e})){E=C,q=!1;break}j.set(C,de)}if(q)for(var ke=g?3:1,qe=function(Te){var G=y.find(function(P){var Q=j.get(P);if(Q)return Q.slice(0,Te).every(function(te){return te})});if(G)return E=G,"break"},ce=ke;ce>0;ce--){var he=qe(ce);if(he==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const bm={name:"flip",enabled:!0,phase:"main",fn:x1,requiresIfExists:["offset"],data:{_skip:!1}};function Pd(e,t,s){return s===void 0&&(s={x:0,y:0}),{top:e.top-t.height-s.y,right:e.right-t.width+s.x,bottom:e.bottom-t.height+s.y,left:e.left-t.width-s.x}}function Dd(e){return[Wt,ds,cs,zt].some(function(t){return e[t]>=0})}function $1(e){var t=e.state,s=e.name,n=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=ji(t,{elementContext:"reference"}),l=ji(t,{altBoundary:!0}),u=Pd(o,n),d=Pd(l,i,r),c=Dd(u),h=Dd(d);t.modifiersData[s]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const ym={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$1};function T1(e,t,s){var n=Qs(e),i=[zt,Wt].indexOf(n)>=0?-1:1,r=typeof s=="function"?s(Object.assign({},t,{placement:e})):s,o=r[0],l=r[1];return o=o||0,l=(l||0)*i,[zt,ds].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function O1(e){var t=e.state,s=e.options,n=e.name,i=s.offset,r=i===void 0?[0,0]:i,o=Lu.reduce(function(c,h){return c[h]=T1(h,t.rects,r),c},{}),l=o[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=o}const _m={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O1};function N1(e){var t=e.state,s=e.name;t.modifiersData[s]=vm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Wu={name:"popperOffsets",enabled:!0,phase:"read",fn:N1,data:{}};function k1(e){return e==="x"?"y":"x"}function P1(e){var t=e.state,s=e.options,n=e.name,i=s.mainAxis,r=i===void 0?!0:i,o=s.altAxis,l=o===void 0?!1:o,u=s.boundary,d=s.rootBoundary,c=s.altBoundary,h=s.padding,p=s.tether,m=p===void 0?!0:p,g=s.tetherOffset,w=g===void 0?0:g,_=ji(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:c}),S=Qs(t.placement),A=Qi(t.placement),x=!A,y=ju(S),$=k1(y),F=t.modifiersData.popperOffsets,j=t.rects.reference,q=t.rects.popper,E=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,T=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(F){if(r){var Z,z=y==="y"?Wt:zt,ie=y==="y"?cs:ds,W=y==="y"?"height":"width",V=F[y],ne=V+_[z],de=V-_[ie],ke=m?-q[W]/2:0,qe=A===ai?j[W]:q[W],ce=A===ai?-q[W]:-j[W],he=t.elements.arrow,$e=m&&he?Qu(he):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fm(),G=Te[z],P=Te[ie],Q=Sr(0,j[W],$e[W]),te=x?j[W]/2-ke-Q-G-T.mainAxis:qe-Q-G-T.mainAxis,ve=x?-j[W]/2+ke+Q+P+T.mainAxis:ce+Q+P+T.mainAxis,J=t.elements.arrow&&Yr(t.elements.arrow),k=J?y==="y"?J.clientTop||0:J.clientLeft||0:0,M=(Z=C?.[y])!=null?Z:0,U=V+te-M-k,se=V+ve-M,re=Sr(m?Ka(ne,U):ne,V,m?ti(de,se):de);F[y]=re,B[y]=re-V}if(l){var oe,me=y==="x"?Wt:zt,pe=y==="x"?cs:ds,Y=F[$],ue=$==="y"?"height":"width",Me=Y+_[me],Ee=Y-_[pe],Oe=[Wt,zt].indexOf(S)!==-1,Qe=(oe=C?.[$])!=null?oe:0,He=Oe?Me:Y-j[ue]-q[ue]-Qe+T.altAxis,st=Oe?Y+j[ue]+q[ue]-Qe-T.altAxis:Ee,et=m&&Oe?u1(He,Y,st):Sr(m?He:Me,Y,m?st:Ee);F[$]=et,B[$]=et-Y}t.modifiersData[n]=B}}const Em={name:"preventOverflow",enabled:!0,phase:"main",fn:P1,requiresIfExists:["offset"]};function D1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function R1(e){return e===fs(e)||!Es(e)?Ku(e):D1(e)}function M1(e){var t=e.getBoundingClientRect(),s=Fi(t.width)/e.offsetWidth||1,n=Fi(t.height)/e.offsetHeight||1;return s!==1||n!==1}function I1(e,t,s){s===void 0&&(s=!1);var n=Es(t),i=Es(t)&&M1(t),r=kn(t),o=Vi(e,i,s),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!s)&&((Us(t)!=="body"||Gu(r))&&(l=R1(t)),Es(t)?(u=Vi(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Hu(r))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function q1(e){var t=new Map,s=new Set,n=[];e.forEach(function(r){t.set(r.name,r)});function i(r){s.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(l){if(!s.has(l)){var u=t.get(l);u&&i(u)}}),n.push(r)}return e.forEach(function(r){s.has(r.name)||i(r)}),n}function L1(e){var t=q1(e);return um.reduce(function(s,n){return s.concat(t.filter(function(i){return i.phase===n}))},[])}function F1(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function V1(e){var t=e.reduce(function(s,n){var i=s[n.name];return s[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,s},{});return Object.keys(t).map(function(s){return t[s]})}var Rd={placement:"bottom",modifiers:[],strategy:"absolute"};function Md(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function wo(e){e===void 0&&(e={});var t=e,s=t.defaultModifiers,n=s===void 0?[]:s,i=t.defaultOptions,r=i===void 0?Rd:i;return function(l,u,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rd,r),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],p=!1,m={state:c,setOptions:function(S){var A=typeof S=="function"?S(c.options):S;w(),c.options=Object.assign({},r,c.options,A),c.scrollParents={reference:oi(l)?xr(l):l.contextElement?xr(l.contextElement):[],popper:xr(u)};var x=L1(V1([].concat(n,c.options.modifiers)));return c.orderedModifiers=x.filter(function(y){return y.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var S=c.elements,A=S.reference,x=S.popper;if(Md(A,x)){c.rects={reference:I1(A,Yr(x),c.options.strategy==="fixed"),popper:Qu(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(T){return c.modifiersData[T.name]=Object.assign({},T.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var $=c.orderedModifiers[y],F=$.fn,j=$.options,q=j===void 0?{}:j,E=$.name;typeof F=="function"&&(c=F({state:c,options:q,name:E,instance:m})||c)}}}},update:F1(function(){return new Promise(function(_){m.forceUpdate(),_(c)})}),destroy:function(){w(),p=!0}};if(!Md(l,u))return m;m.setOptions(d).then(function(_){!p&&d.onFirstUpdate&&d.onFirstUpdate(_)});function g(){c.orderedModifiers.forEach(function(_){var S=_.name,A=_.options,x=A===void 0?{}:A,y=_.effect;if(typeof y=="function"){var $=y({state:c,name:S,instance:m,options:x}),F=function(){};h.push($||F)}})}function w(){h.forEach(function(_){return _()}),h=[]}return m}}var Q1=wo(),j1=[Uu,Wu,Bu,Vu],B1=wo({defaultModifiers:j1}),U1=[Uu,Wu,Bu,Vu,_m,bm,Em,pm,ym],K1=wo({defaultModifiers:U1});const H1=Object.freeze(Object.defineProperty({__proto__:null,afterMain:rm,afterRead:sm,afterWrite:lm,applyStyles:Vu,arrow:pm,auto:_o,basePlacements:er,beforeMain:nm,beforeRead:em,beforeWrite:am,bottom:cs,clippingParents:Jh,computeStyles:Bu,createPopper:K1,createPopperBase:Q1,createPopperLite:B1,detectOverflow:ji,end:Li,eventListeners:Uu,flip:bm,hide:ym,left:zt,main:im,modifierPhases:um,offset:_m,placements:Lu,popper:$i,popperGenerator:wo,popperOffsets:Wu,preventOverflow:Em,read:tm,reference:Xh,right:ds,start:ai,top:Wt,variationPlacements:Fl,viewport:qu,write:om},Symbol.toStringTag,{value:"Module"})),G1=i1(H1);/*!
|
|
3
|
+
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
4
|
+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
+
*/var W1=Da.exports,Id;function z1(){return Id||(Id=1,(function(e,t){(function(s,n){e.exports=n(G1)})(W1,(function(s){function n(R){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(R){for(const b in R)if(b!=="default"){const I=Object.getOwnPropertyDescriptor(R,b);Object.defineProperty(f,b,I.get?I:{enumerable:!0,get:()=>R[b]})}}return f.default=R,Object.freeze(f)}const i=n(s),r=new Map,o={set(R,f,b){r.has(R)||r.set(R,new Map);const I=r.get(R);if(!I.has(f)&&I.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(I.keys())[0]}.`);return}I.set(f,b)},get(R,f){return r.has(R)&&r.get(R).get(f)||null},remove(R,f){if(!r.has(R))return;const b=r.get(R);b.delete(f),b.size===0&&r.delete(R)}},l=1e6,u=1e3,d="transitionend",c=R=>(R&&window.CSS&&window.CSS.escape&&(R=R.replace(/#([^\s"#']+)/g,(f,b)=>`#${CSS.escape(b)}`)),R),h=R=>R==null?`${R}`:Object.prototype.toString.call(R).match(/\s([a-z]+)/i)[1].toLowerCase(),p=R=>{do R+=Math.floor(Math.random()*l);while(document.getElementById(R));return R},m=R=>{if(!R)return 0;let{transitionDuration:f,transitionDelay:b}=window.getComputedStyle(R);const I=Number.parseFloat(f),ae=Number.parseFloat(b);return!I&&!ae?0:(f=f.split(",")[0],b=b.split(",")[0],(Number.parseFloat(f)+Number.parseFloat(b))*u)},g=R=>{R.dispatchEvent(new Event(d))},w=R=>!R||typeof R!="object"?!1:(typeof R.jquery<"u"&&(R=R[0]),typeof R.nodeType<"u"),_=R=>w(R)?R.jquery?R[0]:R:typeof R=="string"&&R.length>0?document.querySelector(c(R)):null,S=R=>{if(!w(R)||R.getClientRects().length===0)return!1;const f=getComputedStyle(R).getPropertyValue("visibility")==="visible",b=R.closest("details:not([open])");if(!b)return f;if(b!==R){const I=R.closest("summary");if(I&&I.parentNode!==b||I===null)return!1}return f},A=R=>!R||R.nodeType!==Node.ELEMENT_NODE||R.classList.contains("disabled")?!0:typeof R.disabled<"u"?R.disabled:R.hasAttribute("disabled")&&R.getAttribute("disabled")!=="false",x=R=>{if(!document.documentElement.attachShadow)return null;if(typeof R.getRootNode=="function"){const f=R.getRootNode();return f instanceof ShadowRoot?f:null}return R instanceof ShadowRoot?R:R.parentNode?x(R.parentNode):null},y=()=>{},$=R=>{R.offsetHeight},F=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,j=[],q=R=>{document.readyState==="loading"?(j.length||document.addEventListener("DOMContentLoaded",()=>{for(const f of j)f()}),j.push(R)):R()},E=()=>document.documentElement.dir==="rtl",T=R=>{q(()=>{const f=F();if(f){const b=R.NAME,I=f.fn[b];f.fn[b]=R.jQueryInterface,f.fn[b].Constructor=R,f.fn[b].noConflict=()=>(f.fn[b]=I,R.jQueryInterface)}})},C=(R,f=[],b=R)=>typeof R=="function"?R.call(...f):b,B=(R,f,b=!0)=>{if(!b){C(R);return}const ae=m(f)+5;let ye=!1;const be=({target:ze})=>{ze===f&&(ye=!0,f.removeEventListener(d,be),C(R))};f.addEventListener(d,be),setTimeout(()=>{ye||g(f)},ae)},Z=(R,f,b,I)=>{const ae=R.length;let ye=R.indexOf(f);return ye===-1?!b&&I?R[ae-1]:R[0]:(ye+=b?1:-1,I&&(ye=(ye+ae)%ae),R[Math.max(0,Math.min(ye,ae-1))])},z=/[^.]*(?=\..*)\.|.*/,ie=/\..*/,W=/::\d+$/,V={};let ne=1;const de={mouseenter:"mouseover",mouseleave:"mouseout"},ke=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function qe(R,f){return f&&`${f}::${ne++}`||R.uidEvent||ne++}function ce(R){const f=qe(R);return R.uidEvent=f,V[f]=V[f]||{},V[f]}function he(R,f){return function b(I){return k(I,{delegateTarget:R}),b.oneOff&&J.off(R,I.type,f),f.apply(R,[I])}}function $e(R,f,b){return function I(ae){const ye=R.querySelectorAll(f);for(let{target:be}=ae;be&&be!==this;be=be.parentNode)for(const ze of ye)if(ze===be)return k(ae,{delegateTarget:be}),I.oneOff&&J.off(R,ae.type,f,b),b.apply(be,[ae])}}function Te(R,f,b=null){return Object.values(R).find(I=>I.callable===f&&I.delegationSelector===b)}function G(R,f,b){const I=typeof f=="string",ae=I?b:f||b;let ye=ve(R);return ke.has(ye)||(ye=R),[I,ae,ye]}function P(R,f,b,I,ae){if(typeof f!="string"||!R)return;let[ye,be,ze]=G(f,b,I);f in de&&(be=(n1=>function(Ai){if(!Ai.relatedTarget||Ai.relatedTarget!==Ai.delegateTarget&&!Ai.delegateTarget.contains(Ai.relatedTarget))return n1.call(this,Ai)})(be));const ts=ce(R),vs=ts[ze]||(ts[ze]={}),$t=Te(vs,be,ye?b:null);if($t){$t.oneOff=$t.oneOff&&ae;return}const Is=qe(be,f.replace(z,"")),$s=ye?$e(R,b,be):he(R,be);$s.delegationSelector=ye?b:null,$s.callable=be,$s.oneOff=ae,$s.uidEvent=Is,vs[Is]=$s,R.addEventListener(ze,$s,ye)}function Q(R,f,b,I,ae){const ye=Te(f[b],I,ae);ye&&(R.removeEventListener(b,ye,!!ae),delete f[b][ye.uidEvent])}function te(R,f,b,I){const ae=f[b]||{};for(const[ye,be]of Object.entries(ae))ye.includes(I)&&Q(R,f,b,be.callable,be.delegationSelector)}function ve(R){return R=R.replace(ie,""),de[R]||R}const J={on(R,f,b,I){P(R,f,b,I,!1)},one(R,f,b,I){P(R,f,b,I,!0)},off(R,f,b,I){if(typeof f!="string"||!R)return;const[ae,ye,be]=G(f,b,I),ze=be!==f,ts=ce(R),vs=ts[be]||{},$t=f.startsWith(".");if(typeof ye<"u"){if(!Object.keys(vs).length)return;Q(R,ts,be,ye,ae?b:null);return}if($t)for(const Is of Object.keys(ts))te(R,ts,Is,f.slice(1));for(const[Is,$s]of Object.entries(vs)){const _a=Is.replace(W,"");(!ze||f.includes(_a))&&Q(R,ts,be,$s.callable,$s.delegationSelector)}},trigger(R,f,b){if(typeof f!="string"||!R)return null;const I=F(),ae=ve(f),ye=f!==ae;let be=null,ze=!0,ts=!0,vs=!1;ye&&I&&(be=I.Event(f,b),I(R).trigger(be),ze=!be.isPropagationStopped(),ts=!be.isImmediatePropagationStopped(),vs=be.isDefaultPrevented());const $t=k(new Event(f,{bubbles:ze,cancelable:!0}),b);return vs&&$t.preventDefault(),ts&&R.dispatchEvent($t),$t.defaultPrevented&&be&&be.preventDefault(),$t}};function k(R,f={}){for(const[b,I]of Object.entries(f))try{R[b]=I}catch{Object.defineProperty(R,b,{configurable:!0,get(){return I}})}return R}function M(R){if(R==="true")return!0;if(R==="false")return!1;if(R===Number(R).toString())return Number(R);if(R===""||R==="null")return null;if(typeof R!="string")return R;try{return JSON.parse(decodeURIComponent(R))}catch{return R}}function U(R){return R.replace(/[A-Z]/g,f=>`-${f.toLowerCase()}`)}const se={setDataAttribute(R,f,b){R.setAttribute(`data-bs-${U(f)}`,b)},removeDataAttribute(R,f){R.removeAttribute(`data-bs-${U(f)}`)},getDataAttributes(R){if(!R)return{};const f={},b=Object.keys(R.dataset).filter(I=>I.startsWith("bs")&&!I.startsWith("bsConfig"));for(const I of b){let ae=I.replace(/^bs/,"");ae=ae.charAt(0).toLowerCase()+ae.slice(1),f[ae]=M(R.dataset[I])}return f},getDataAttribute(R,f){return M(R.getAttribute(`data-bs-${U(f)}`))}};class re{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(f){return f=this._mergeConfigObj(f),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}_configAfterMerge(f){return f}_mergeConfigObj(f,b){const I=w(b)?se.getDataAttribute(b,"config"):{};return{...this.constructor.Default,...typeof I=="object"?I:{},...w(b)?se.getDataAttributes(b):{},...typeof f=="object"?f:{}}}_typeCheckConfig(f,b=this.constructor.DefaultType){for(const[I,ae]of Object.entries(b)){const ye=f[I],be=w(ye)?"element":h(ye);if(!new RegExp(ae).test(be))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${I}" provided type "${be}" but expected type "${ae}".`)}}}const oe="5.3.8";class me extends re{constructor(f,b){super(),f=_(f),f&&(this._element=f,this._config=this._getConfig(b),o.set(this._element,this.constructor.DATA_KEY,this))}dispose(){o.remove(this._element,this.constructor.DATA_KEY),J.off(this._element,this.constructor.EVENT_KEY);for(const f of Object.getOwnPropertyNames(this))this[f]=null}_queueCallback(f,b,I=!0){B(f,b,I)}_getConfig(f){return f=this._mergeConfigObj(f,this._element),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}static getInstance(f){return o.get(_(f),this.DATA_KEY)}static getOrCreateInstance(f,b={}){return this.getInstance(f)||new this(f,typeof b=="object"?b:null)}static get VERSION(){return oe}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(f){return`${f}${this.EVENT_KEY}`}}const pe=R=>{let f=R.getAttribute("data-bs-target");if(!f||f==="#"){let b=R.getAttribute("href");if(!b||!b.includes("#")&&!b.startsWith("."))return null;b.includes("#")&&!b.startsWith("#")&&(b=`#${b.split("#")[1]}`),f=b&&b!=="#"?b.trim():null}return f?f.split(",").map(b=>c(b)).join(","):null},Y={find(R,f=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(f,R))},findOne(R,f=document.documentElement){return Element.prototype.querySelector.call(f,R)},children(R,f){return[].concat(...R.children).filter(b=>b.matches(f))},parents(R,f){const b=[];let I=R.parentNode.closest(f);for(;I;)b.push(I),I=I.parentNode.closest(f);return b},prev(R,f){let b=R.previousElementSibling;for(;b;){if(b.matches(f))return[b];b=b.previousElementSibling}return[]},next(R,f){let b=R.nextElementSibling;for(;b;){if(b.matches(f))return[b];b=b.nextElementSibling}return[]},focusableChildren(R){const f=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(b=>`${b}:not([tabindex^="-"])`).join(",");return this.find(f,R).filter(b=>!A(b)&&S(b))},getSelectorFromElement(R){const f=pe(R);return f&&Y.findOne(f)?f:null},getElementFromSelector(R){const f=pe(R);return f?Y.findOne(f):null},getMultipleElementsFromSelector(R){const f=pe(R);return f?Y.find(f):[]}},ue=(R,f="hide")=>{const b=`click.dismiss${R.EVENT_KEY}`,I=R.NAME;J.on(document,b,`[data-bs-dismiss="${I}"]`,function(ae){if(["A","AREA"].includes(this.tagName)&&ae.preventDefault(),A(this))return;const ye=Y.getElementFromSelector(this)||this.closest(`.${I}`);R.getOrCreateInstance(ye)[f]()})},Me="alert",Oe=".bs.alert",Qe=`close${Oe}`,He=`closed${Oe}`,st="fade",et="show";class _t extends me{static get NAME(){return Me}close(){if(J.trigger(this._element,Qe).defaultPrevented)return;this._element.classList.remove(et);const b=this._element.classList.contains(st);this._queueCallback(()=>this._destroyElement(),this._element,b)}_destroyElement(){this._element.remove(),J.trigger(this._element,He),this.dispose()}static jQueryInterface(f){return this.each(function(){const b=_t.getOrCreateInstance(this);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f](this)}})}}ue(_t,"close"),T(_t);const Ct="button",K=".bs.button",le=".data-api",Ce="active",xe='[data-bs-toggle="button"]',Le=`click${K}${le}`;class De extends me{static get NAME(){return Ct}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ce))}static jQueryInterface(f){return this.each(function(){const b=De.getOrCreateInstance(this);f==="toggle"&&b[f]()})}}J.on(document,Le,xe,R=>{R.preventDefault();const f=R.target.closest(xe);De.getOrCreateInstance(f).toggle()}),T(De);const dt="swipe",mt=".bs.swipe",St=`touchstart${mt}`,pt=`touchmove${mt}`,xt=`touchend${mt}`,Lt=`pointerdown${mt}`,es=`pointerup${mt}`,Rn="touch",rr="pen",ar="pointer-event",or=40,lr={endCallback:null,leftCallback:null,rightCallback:null},Fv={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ua extends re{constructor(f,b){super(),this._element=f,!(!f||!ua.isSupported())&&(this._config=this._getConfig(b),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return lr}static get DefaultType(){return Fv}static get NAME(){return dt}dispose(){J.off(this._element,mt)}_start(f){if(!this._supportPointerEvents){this._deltaX=f.touches[0].clientX;return}this._eventIsPointerPenTouch(f)&&(this._deltaX=f.clientX)}_end(f){this._eventIsPointerPenTouch(f)&&(this._deltaX=f.clientX-this._deltaX),this._handleSwipe(),C(this._config.endCallback)}_move(f){this._deltaX=f.touches&&f.touches.length>1?0:f.touches[0].clientX-this._deltaX}_handleSwipe(){const f=Math.abs(this._deltaX);if(f<=or)return;const b=f/this._deltaX;this._deltaX=0,b&&C(b>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(J.on(this._element,Lt,f=>this._start(f)),J.on(this._element,es,f=>this._end(f)),this._element.classList.add(ar)):(J.on(this._element,St,f=>this._start(f)),J.on(this._element,pt,f=>this._move(f)),J.on(this._element,xt,f=>this._end(f)))}_eventIsPointerPenTouch(f){return this._supportPointerEvents&&(f.pointerType===rr||f.pointerType===Rn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Vv="carousel",hn=".bs.carousel",Qc=".data-api",Qv="ArrowLeft",jv="ArrowRight",Bv=500,ur="next",vi="prev",bi="left",ca="right",Uv=`slide${hn}`,el=`slid${hn}`,Kv=`keydown${hn}`,Hv=`mouseenter${hn}`,Gv=`mouseleave${hn}`,Wv=`dragstart${hn}`,zv=`load${hn}${Qc}`,Yv=`click${hn}${Qc}`,jc="carousel",da="active",Zv="slide",Jv="carousel-item-end",Xv="carousel-item-start",eb="carousel-item-next",tb="carousel-item-prev",Bc=".active",Uc=".carousel-item",sb=Bc+Uc,nb=".carousel-item img",ib=".carousel-indicators",rb="[data-bs-slide], [data-bs-slide-to]",ab='[data-bs-ride="carousel"]',ob={[Qv]:ca,[jv]:bi},lb={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ub={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class yi extends me{constructor(f,b){super(f,b),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(ib,this._element),this._addEventListeners(),this._config.ride===jc&&this.cycle()}static get Default(){return lb}static get DefaultType(){return ub}static get NAME(){return Vv}next(){this._slide(ur)}nextWhenVisible(){!document.hidden&&S(this._element)&&this.next()}prev(){this._slide(vi)}pause(){this._isSliding&&g(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){J.one(this._element,el,()=>this.cycle());return}this.cycle()}}to(f){const b=this._getItems();if(f>b.length-1||f<0)return;if(this._isSliding){J.one(this._element,el,()=>this.to(f));return}const I=this._getItemIndex(this._getActive());if(I===f)return;const ae=f>I?ur:vi;this._slide(ae,b[f])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(f){return f.defaultInterval=f.interval,f}_addEventListeners(){this._config.keyboard&&J.on(this._element,Kv,f=>this._keydown(f)),this._config.pause==="hover"&&(J.on(this._element,Hv,()=>this.pause()),J.on(this._element,Gv,()=>this._maybeEnableCycle())),this._config.touch&&ua.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const I of Y.find(nb,this._element))J.on(I,Wv,ae=>ae.preventDefault());const b={leftCallback:()=>this._slide(this._directionToOrder(bi)),rightCallback:()=>this._slide(this._directionToOrder(ca)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Bv+this._config.interval))}};this._swipeHelper=new ua(this._element,b)}_keydown(f){if(/input|textarea/i.test(f.target.tagName))return;const b=ob[f.key];b&&(f.preventDefault(),this._slide(this._directionToOrder(b)))}_getItemIndex(f){return this._getItems().indexOf(f)}_setActiveIndicatorElement(f){if(!this._indicatorsElement)return;const b=Y.findOne(Bc,this._indicatorsElement);b.classList.remove(da),b.removeAttribute("aria-current");const I=Y.findOne(`[data-bs-slide-to="${f}"]`,this._indicatorsElement);I&&(I.classList.add(da),I.setAttribute("aria-current","true"))}_updateInterval(){const f=this._activeElement||this._getActive();if(!f)return;const b=Number.parseInt(f.getAttribute("data-bs-interval"),10);this._config.interval=b||this._config.defaultInterval}_slide(f,b=null){if(this._isSliding)return;const I=this._getActive(),ae=f===ur,ye=b||Z(this._getItems(),I,ae,this._config.wrap);if(ye===I)return;const be=this._getItemIndex(ye),ze=_a=>J.trigger(this._element,_a,{relatedTarget:ye,direction:this._orderToDirection(f),from:this._getItemIndex(I),to:be});if(ze(Uv).defaultPrevented||!I||!ye)return;const vs=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(be),this._activeElement=ye;const $t=ae?Xv:Jv,Is=ae?eb:tb;ye.classList.add(Is),$(ye),I.classList.add($t),ye.classList.add($t);const $s=()=>{ye.classList.remove($t,Is),ye.classList.add(da),I.classList.remove(da,Is,$t),this._isSliding=!1,ze(el)};this._queueCallback($s,I,this._isAnimated()),vs&&this.cycle()}_isAnimated(){return this._element.classList.contains(Zv)}_getActive(){return Y.findOne(sb,this._element)}_getItems(){return Y.find(Uc,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(f){return E()?f===bi?vi:ur:f===bi?ur:vi}_orderToDirection(f){return E()?f===vi?bi:ca:f===vi?ca:bi}static jQueryInterface(f){return this.each(function(){const b=yi.getOrCreateInstance(this,f);if(typeof f=="number"){b.to(f);return}if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f]()}})}}J.on(document,Yv,rb,function(R){const f=Y.getElementFromSelector(this);if(!f||!f.classList.contains(jc))return;R.preventDefault();const b=yi.getOrCreateInstance(f),I=this.getAttribute("data-bs-slide-to");if(I){b.to(I),b._maybeEnableCycle();return}if(se.getDataAttribute(this,"slide")==="next"){b.next(),b._maybeEnableCycle();return}b.prev(),b._maybeEnableCycle()}),J.on(window,zv,()=>{const R=Y.find(ab);for(const f of R)yi.getOrCreateInstance(f)}),T(yi);const cb="collapse",cr=".bs.collapse",db=".data-api",fb=`show${cr}`,hb=`shown${cr}`,mb=`hide${cr}`,pb=`hidden${cr}`,gb=`click${cr}${db}`,tl="show",_i="collapse",fa="collapsing",vb="collapsed",bb=`:scope .${_i} .${_i}`,yb="collapse-horizontal",_b="width",Eb="height",wb=".collapse.show, .collapse.collapsing",sl='[data-bs-toggle="collapse"]',Cb={parent:null,toggle:!0},Ab={parent:"(null|element)",toggle:"boolean"};class Ei extends me{constructor(f,b){super(f,b),this._isTransitioning=!1,this._triggerArray=[];const I=Y.find(sl);for(const ae of I){const ye=Y.getSelectorFromElement(ae),be=Y.find(ye).filter(ze=>ze===this._element);ye!==null&&be.length&&this._triggerArray.push(ae)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Cb}static get DefaultType(){return Ab}static get NAME(){return cb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let f=[];if(this._config.parent&&(f=this._getFirstLevelChildren(wb).filter(ze=>ze!==this._element).map(ze=>Ei.getOrCreateInstance(ze,{toggle:!1}))),f.length&&f[0]._isTransitioning||J.trigger(this._element,fb).defaultPrevented)return;for(const ze of f)ze.hide();const I=this._getDimension();this._element.classList.remove(_i),this._element.classList.add(fa),this._element.style[I]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const ae=()=>{this._isTransitioning=!1,this._element.classList.remove(fa),this._element.classList.add(_i,tl),this._element.style[I]="",J.trigger(this._element,hb)},be=`scroll${I[0].toUpperCase()+I.slice(1)}`;this._queueCallback(ae,this._element,!0),this._element.style[I]=`${this._element[be]}px`}hide(){if(this._isTransitioning||!this._isShown()||J.trigger(this._element,mb).defaultPrevented)return;const b=this._getDimension();this._element.style[b]=`${this._element.getBoundingClientRect()[b]}px`,$(this._element),this._element.classList.add(fa),this._element.classList.remove(_i,tl);for(const ae of this._triggerArray){const ye=Y.getElementFromSelector(ae);ye&&!this._isShown(ye)&&this._addAriaAndCollapsedClass([ae],!1)}this._isTransitioning=!0;const I=()=>{this._isTransitioning=!1,this._element.classList.remove(fa),this._element.classList.add(_i),J.trigger(this._element,pb)};this._element.style[b]="",this._queueCallback(I,this._element,!0)}_isShown(f=this._element){return f.classList.contains(tl)}_configAfterMerge(f){return f.toggle=!!f.toggle,f.parent=_(f.parent),f}_getDimension(){return this._element.classList.contains(yb)?_b:Eb}_initializeChildren(){if(!this._config.parent)return;const f=this._getFirstLevelChildren(sl);for(const b of f){const I=Y.getElementFromSelector(b);I&&this._addAriaAndCollapsedClass([b],this._isShown(I))}}_getFirstLevelChildren(f){const b=Y.find(bb,this._config.parent);return Y.find(f,this._config.parent).filter(I=>!b.includes(I))}_addAriaAndCollapsedClass(f,b){if(f.length)for(const I of f)I.classList.toggle(vb,!b),I.setAttribute("aria-expanded",b)}static jQueryInterface(f){const b={};return typeof f=="string"&&/show|hide/.test(f)&&(b.toggle=!1),this.each(function(){const I=Ei.getOrCreateInstance(this,b);if(typeof f=="string"){if(typeof I[f]>"u")throw new TypeError(`No method named "${f}"`);I[f]()}})}}J.on(document,gb,sl,function(R){(R.target.tagName==="A"||R.delegateTarget&&R.delegateTarget.tagName==="A")&&R.preventDefault();for(const f of Y.getMultipleElementsFromSelector(this))Ei.getOrCreateInstance(f,{toggle:!1}).toggle()}),T(Ei);const Kc="dropdown",Mn=".bs.dropdown",nl=".data-api",Sb="Escape",Hc="Tab",xb="ArrowUp",Gc="ArrowDown",$b=2,Tb=`hide${Mn}`,Ob=`hidden${Mn}`,Nb=`show${Mn}`,kb=`shown${Mn}`,Wc=`click${Mn}${nl}`,zc=`keydown${Mn}${nl}`,Pb=`keyup${Mn}${nl}`,wi="show",Db="dropup",Rb="dropend",Mb="dropstart",Ib="dropup-center",qb="dropdown-center",In='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Lb=`${In}.${wi}`,ha=".dropdown-menu",Fb=".navbar",Vb=".navbar-nav",Qb=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",jb=E()?"top-end":"top-start",Bb=E()?"top-start":"top-end",Ub=E()?"bottom-end":"bottom-start",Kb=E()?"bottom-start":"bottom-end",Hb=E()?"left-start":"right-start",Gb=E()?"right-start":"left-start",Wb="top",zb="bottom",Yb={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Zb={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class xs extends me{constructor(f,b){super(f,b),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,ha)[0]||Y.prev(this._element,ha)[0]||Y.findOne(ha,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Yb}static get DefaultType(){return Zb}static get NAME(){return Kc}toggle(){return this._isShown()?this.hide():this.show()}show(){if(A(this._element)||this._isShown())return;const f={relatedTarget:this._element};if(!J.trigger(this._element,Nb,f).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Vb))for(const I of[].concat(...document.body.children))J.on(I,"mouseover",y);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wi),this._element.classList.add(wi),J.trigger(this._element,kb,f)}}hide(){if(A(this._element)||!this._isShown())return;const f={relatedTarget:this._element};this._completeHide(f)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(f){if(!J.trigger(this._element,Tb,f).defaultPrevented){if("ontouchstart"in document.documentElement)for(const I of[].concat(...document.body.children))J.off(I,"mouseover",y);this._popper&&this._popper.destroy(),this._menu.classList.remove(wi),this._element.classList.remove(wi),this._element.setAttribute("aria-expanded","false"),se.removeDataAttribute(this._menu,"popper"),J.trigger(this._element,Ob,f)}}_getConfig(f){if(f=super._getConfig(f),typeof f.reference=="object"&&!w(f.reference)&&typeof f.reference.getBoundingClientRect!="function")throw new TypeError(`${Kc.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return f}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let f=this._element;this._config.reference==="parent"?f=this._parent:w(this._config.reference)?f=_(this._config.reference):typeof this._config.reference=="object"&&(f=this._config.reference);const b=this._getPopperConfig();this._popper=i.createPopper(f,this._menu,b)}_isShown(){return this._menu.classList.contains(wi)}_getPlacement(){const f=this._parent;if(f.classList.contains(Rb))return Hb;if(f.classList.contains(Mb))return Gb;if(f.classList.contains(Ib))return Wb;if(f.classList.contains(qb))return zb;const b=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return f.classList.contains(Db)?b?Bb:jb:b?Kb:Ub}_detectNavbar(){return this._element.closest(Fb)!==null}_getOffset(){const{offset:f}=this._config;return typeof f=="string"?f.split(",").map(b=>Number.parseInt(b,10)):typeof f=="function"?b=>f(b,this._element):f}_getPopperConfig(){const f={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(se.setDataAttribute(this._menu,"popper","static"),f.modifiers=[{name:"applyStyles",enabled:!1}]),{...f,...C(this._config.popperConfig,[void 0,f])}}_selectMenuItem({key:f,target:b}){const I=Y.find(Qb,this._menu).filter(ae=>S(ae));I.length&&Z(I,b,f===Gc,!I.includes(b)).focus()}static jQueryInterface(f){return this.each(function(){const b=xs.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f]()}})}static clearMenus(f){if(f.button===$b||f.type==="keyup"&&f.key!==Hc)return;const b=Y.find(Lb);for(const I of b){const ae=xs.getInstance(I);if(!ae||ae._config.autoClose===!1)continue;const ye=f.composedPath(),be=ye.includes(ae._menu);if(ye.includes(ae._element)||ae._config.autoClose==="inside"&&!be||ae._config.autoClose==="outside"&&be||ae._menu.contains(f.target)&&(f.type==="keyup"&&f.key===Hc||/input|select|option|textarea|form/i.test(f.target.tagName)))continue;const ze={relatedTarget:ae._element};f.type==="click"&&(ze.clickEvent=f),ae._completeHide(ze)}}static dataApiKeydownHandler(f){const b=/input|textarea/i.test(f.target.tagName),I=f.key===Sb,ae=[xb,Gc].includes(f.key);if(!ae&&!I||b&&!I)return;f.preventDefault();const ye=this.matches(In)?this:Y.prev(this,In)[0]||Y.next(this,In)[0]||Y.findOne(In,f.delegateTarget.parentNode),be=xs.getOrCreateInstance(ye);if(ae){f.stopPropagation(),be.show(),be._selectMenuItem(f);return}be._isShown()&&(f.stopPropagation(),be.hide(),ye.focus())}}J.on(document,zc,In,xs.dataApiKeydownHandler),J.on(document,zc,ha,xs.dataApiKeydownHandler),J.on(document,Wc,xs.clearMenus),J.on(document,Pb,xs.clearMenus),J.on(document,Wc,In,function(R){R.preventDefault(),xs.getOrCreateInstance(this).toggle()}),T(xs);const Yc="backdrop",Jb="fade",Zc="show",Jc=`mousedown.bs.${Yc}`,Xb={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ey={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xc extends re{constructor(f){super(),this._config=this._getConfig(f),this._isAppended=!1,this._element=null}static get Default(){return Xb}static get DefaultType(){return ey}static get NAME(){return Yc}show(f){if(!this._config.isVisible){C(f);return}this._append();const b=this._getElement();this._config.isAnimated&&$(b),b.classList.add(Zc),this._emulateAnimation(()=>{C(f)})}hide(f){if(!this._config.isVisible){C(f);return}this._getElement().classList.remove(Zc),this._emulateAnimation(()=>{this.dispose(),C(f)})}dispose(){this._isAppended&&(J.off(this._element,Jc),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const f=document.createElement("div");f.className=this._config.className,this._config.isAnimated&&f.classList.add(Jb),this._element=f}return this._element}_configAfterMerge(f){return f.rootElement=_(f.rootElement),f}_append(){if(this._isAppended)return;const f=this._getElement();this._config.rootElement.append(f),J.on(f,Jc,()=>{C(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(f){B(f,this._getElement(),this._config.isAnimated)}}const ty="focustrap",ma=".bs.focustrap",sy=`focusin${ma}`,ny=`keydown.tab${ma}`,iy="Tab",ry="forward",ed="backward",ay={autofocus:!0,trapElement:null},oy={autofocus:"boolean",trapElement:"element"};class td extends re{constructor(f){super(),this._config=this._getConfig(f),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ay}static get DefaultType(){return oy}static get NAME(){return ty}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,ma),J.on(document,sy,f=>this._handleFocusin(f)),J.on(document,ny,f=>this._handleKeydown(f)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,ma))}_handleFocusin(f){const{trapElement:b}=this._config;if(f.target===document||f.target===b||b.contains(f.target))return;const I=Y.focusableChildren(b);I.length===0?b.focus():this._lastTabNavDirection===ed?I[I.length-1].focus():I[0].focus()}_handleKeydown(f){f.key===iy&&(this._lastTabNavDirection=f.shiftKey?ed:ry)}}const sd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",nd=".sticky-top",pa="padding-right",id="margin-right";class il{constructor(){this._element=document.body}getWidth(){const f=document.documentElement.clientWidth;return Math.abs(window.innerWidth-f)}hide(){const f=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pa,b=>b+f),this._setElementAttributes(sd,pa,b=>b+f),this._setElementAttributes(nd,id,b=>b-f)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,pa),this._resetElementAttributes(sd,pa),this._resetElementAttributes(nd,id)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(f,b,I){const ae=this.getWidth(),ye=be=>{if(be!==this._element&&window.innerWidth>be.clientWidth+ae)return;this._saveInitialAttribute(be,b);const ze=window.getComputedStyle(be).getPropertyValue(b);be.style.setProperty(b,`${I(Number.parseFloat(ze))}px`)};this._applyManipulationCallback(f,ye)}_saveInitialAttribute(f,b){const I=f.style.getPropertyValue(b);I&&se.setDataAttribute(f,b,I)}_resetElementAttributes(f,b){const I=ae=>{const ye=se.getDataAttribute(ae,b);if(ye===null){ae.style.removeProperty(b);return}se.removeDataAttribute(ae,b),ae.style.setProperty(b,ye)};this._applyManipulationCallback(f,I)}_applyManipulationCallback(f,b){if(w(f)){b(f);return}for(const I of Y.find(f,this._element))b(I)}}const ly="modal",gs=".bs.modal",uy=".data-api",cy="Escape",dy=`hide${gs}`,fy=`hidePrevented${gs}`,rd=`hidden${gs}`,ad=`show${gs}`,hy=`shown${gs}`,my=`resize${gs}`,py=`click.dismiss${gs}`,gy=`mousedown.dismiss${gs}`,vy=`keydown.dismiss${gs}`,by=`click${gs}${uy}`,od="modal-open",yy="fade",ld="show",rl="modal-static",_y=".modal.show",Ey=".modal-dialog",wy=".modal-body",Cy='[data-bs-toggle="modal"]',Ay={backdrop:!0,focus:!0,keyboard:!0},Sy={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qn extends me{constructor(f,b){super(f,b),this._dialog=Y.findOne(Ey,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new il,this._addEventListeners()}static get Default(){return Ay}static get DefaultType(){return Sy}static get NAME(){return ly}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){this._isShown||this._isTransitioning||J.trigger(this._element,ad,{relatedTarget:f}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(od),this._adjustDialog(),this._backdrop.show(()=>this._showElement(f)))}hide(){!this._isShown||this._isTransitioning||J.trigger(this._element,dy).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ld),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){J.off(window,gs),J.off(this._dialog,gs),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new td({trapElement:this._element})}_showElement(f){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const b=Y.findOne(wy,this._dialog);b&&(b.scrollTop=0),$(this._element),this._element.classList.add(ld);const I=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,J.trigger(this._element,hy,{relatedTarget:f})};this._queueCallback(I,this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,vy,f=>{if(f.key===cy){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),J.on(window,my,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),J.on(this._element,gy,f=>{J.one(this._element,py,b=>{if(!(this._element!==f.target||this._element!==b.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(od),this._resetAdjustments(),this._scrollBar.reset(),J.trigger(this._element,rd)})}_isAnimated(){return this._element.classList.contains(yy)}_triggerBackdropTransition(){if(J.trigger(this._element,fy).defaultPrevented)return;const b=this._element.scrollHeight>document.documentElement.clientHeight,I=this._element.style.overflowY;I==="hidden"||this._element.classList.contains(rl)||(b||(this._element.style.overflowY="hidden"),this._element.classList.add(rl),this._queueCallback(()=>{this._element.classList.remove(rl),this._queueCallback(()=>{this._element.style.overflowY=I},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const f=this._element.scrollHeight>document.documentElement.clientHeight,b=this._scrollBar.getWidth(),I=b>0;if(I&&!f){const ae=E()?"paddingLeft":"paddingRight";this._element.style[ae]=`${b}px`}if(!I&&f){const ae=E()?"paddingRight":"paddingLeft";this._element.style[ae]=`${b}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(f,b){return this.each(function(){const I=qn.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof I[f]>"u")throw new TypeError(`No method named "${f}"`);I[f](b)}})}}J.on(document,by,Cy,function(R){const f=Y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&R.preventDefault(),J.one(f,ad,ae=>{ae.defaultPrevented||J.one(f,rd,()=>{S(this)&&this.focus()})});const b=Y.findOne(_y);b&&qn.getInstance(b).hide(),qn.getOrCreateInstance(f).toggle(this)}),ue(qn),T(qn);const xy="offcanvas",Gs=".bs.offcanvas",ud=".data-api",$y=`load${Gs}${ud}`,Ty="Escape",cd="show",dd="showing",fd="hiding",Oy="offcanvas-backdrop",hd=".offcanvas.show",Ny=`show${Gs}`,ky=`shown${Gs}`,Py=`hide${Gs}`,md=`hidePrevented${Gs}`,pd=`hidden${Gs}`,Dy=`resize${Gs}`,Ry=`click${Gs}${ud}`,My=`keydown.dismiss${Gs}`,Iy='[data-bs-toggle="offcanvas"]',qy={backdrop:!0,keyboard:!0,scroll:!1},Ly={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ws extends me{constructor(f,b){super(f,b),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return qy}static get DefaultType(){return Ly}static get NAME(){return xy}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){if(this._isShown||J.trigger(this._element,Ny,{relatedTarget:f}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new il().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(dd);const I=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(cd),this._element.classList.remove(dd),J.trigger(this._element,ky,{relatedTarget:f})};this._queueCallback(I,this._element,!0)}hide(){if(!this._isShown||J.trigger(this._element,Py).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fd),this._backdrop.hide();const b=()=>{this._element.classList.remove(cd,fd),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new il().reset(),J.trigger(this._element,pd)};this._queueCallback(b,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const f=()=>{if(this._config.backdrop==="static"){J.trigger(this._element,md);return}this.hide()},b=!!this._config.backdrop;return new Xc({className:Oy,isVisible:b,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:b?f:null})}_initializeFocusTrap(){return new td({trapElement:this._element})}_addEventListeners(){J.on(this._element,My,f=>{if(f.key===Ty){if(this._config.keyboard){this.hide();return}J.trigger(this._element,md)}})}static jQueryInterface(f){return this.each(function(){const b=Ws.getOrCreateInstance(this,f);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f](this)}})}}J.on(document,Ry,Iy,function(R){const f=Y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&R.preventDefault(),A(this))return;J.one(f,pd,()=>{S(this)&&this.focus()});const b=Y.findOne(hd);b&&b!==f&&Ws.getInstance(b).hide(),Ws.getOrCreateInstance(f).toggle(this)}),J.on(window,$y,()=>{for(const R of Y.find(hd))Ws.getOrCreateInstance(R).show()}),J.on(window,Dy,()=>{for(const R of Y.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(R).position!=="fixed"&&Ws.getOrCreateInstance(R).hide()}),ue(Ws),T(Ws);const gd={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Fy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qy=(R,f)=>{const b=R.nodeName.toLowerCase();return f.includes(b)?Fy.has(b)?!!Vy.test(R.nodeValue):!0:f.filter(I=>I instanceof RegExp).some(I=>I.test(b))};function jy(R,f,b){if(!R.length)return R;if(b&&typeof b=="function")return b(R);const ae=new window.DOMParser().parseFromString(R,"text/html"),ye=[].concat(...ae.body.querySelectorAll("*"));for(const be of ye){const ze=be.nodeName.toLowerCase();if(!Object.keys(f).includes(ze)){be.remove();continue}const ts=[].concat(...be.attributes),vs=[].concat(f["*"]||[],f[ze]||[]);for(const $t of ts)Qy($t,vs)||be.removeAttribute($t.nodeName)}return ae.body.innerHTML}const By="TemplateFactory",Uy={allowList:gd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ky={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Hy={entry:"(string|element|function|null)",selector:"(string|element)"};class Gy extends re{constructor(f){super(),this._config=this._getConfig(f)}static get Default(){return Uy}static get DefaultType(){return Ky}static get NAME(){return By}getContent(){return Object.values(this._config.content).map(f=>this._resolvePossibleFunction(f)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(f){return this._checkContent(f),this._config.content={...this._config.content,...f},this}toHtml(){const f=document.createElement("div");f.innerHTML=this._maybeSanitize(this._config.template);for(const[ae,ye]of Object.entries(this._config.content))this._setContent(f,ye,ae);const b=f.children[0],I=this._resolvePossibleFunction(this._config.extraClass);return I&&b.classList.add(...I.split(" ")),b}_typeCheckConfig(f){super._typeCheckConfig(f),this._checkContent(f.content)}_checkContent(f){for(const[b,I]of Object.entries(f))super._typeCheckConfig({selector:b,entry:I},Hy)}_setContent(f,b,I){const ae=Y.findOne(I,f);if(ae){if(b=this._resolvePossibleFunction(b),!b){ae.remove();return}if(w(b)){this._putElementInTemplate(_(b),ae);return}if(this._config.html){ae.innerHTML=this._maybeSanitize(b);return}ae.textContent=b}}_maybeSanitize(f){return this._config.sanitize?jy(f,this._config.allowList,this._config.sanitizeFn):f}_resolvePossibleFunction(f){return C(f,[void 0,this])}_putElementInTemplate(f,b){if(this._config.html){b.innerHTML="",b.append(f);return}b.textContent=f.textContent}}const Wy="tooltip",zy=new Set(["sanitize","allowList","sanitizeFn"]),al="fade",Yy="modal",ga="show",Zy=".tooltip-inner",vd=`.${Yy}`,bd="hide.bs.modal",dr="hover",ol="focus",ll="click",Jy="manual",Xy="hide",e_="hidden",t_="show",s_="shown",n_="inserted",i_="click",r_="focusin",a_="focusout",o_="mouseenter",l_="mouseleave",u_={AUTO:"auto",TOP:"top",RIGHT:E()?"left":"right",BOTTOM:"bottom",LEFT:E()?"right":"left"},c_={allowList:gd,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},d_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Ln extends me{constructor(f,b){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(f,b),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return c_}static get DefaultType(){return d_}static get NAME(){return Wy}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),J.off(this._element.closest(vd),bd,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const f=J.trigger(this._element,this.constructor.eventName(t_)),I=(x(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(f.defaultPrevented||!I)return;this._disposePopper();const ae=this._getTipElement();this._element.setAttribute("aria-describedby",ae.getAttribute("id"));const{container:ye}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(ye.append(ae),J.trigger(this._element,this.constructor.eventName(n_))),this._popper=this._createPopper(ae),ae.classList.add(ga),"ontouchstart"in document.documentElement)for(const ze of[].concat(...document.body.children))J.on(ze,"mouseover",y);const be=()=>{J.trigger(this._element,this.constructor.eventName(s_)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(be,this.tip,this._isAnimated())}hide(){if(!this._isShown()||J.trigger(this._element,this.constructor.eventName(Xy)).defaultPrevented)return;if(this._getTipElement().classList.remove(ga),"ontouchstart"in document.documentElement)for(const ae of[].concat(...document.body.children))J.off(ae,"mouseover",y);this._activeTrigger[ll]=!1,this._activeTrigger[ol]=!1,this._activeTrigger[dr]=!1,this._isHovered=null;const I=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),J.trigger(this._element,this.constructor.eventName(e_)))};this._queueCallback(I,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(f){const b=this._getTemplateFactory(f).toHtml();if(!b)return null;b.classList.remove(al,ga),b.classList.add(`bs-${this.constructor.NAME}-auto`);const I=p(this.constructor.NAME).toString();return b.setAttribute("id",I),this._isAnimated()&&b.classList.add(al),b}setContent(f){this._newContent=f,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(f){return this._templateFactory?this._templateFactory.changeContent(f):this._templateFactory=new Gy({...this._config,content:f,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Zy]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(f){return this.constructor.getOrCreateInstance(f.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(al)}_isShown(){return this.tip&&this.tip.classList.contains(ga)}_createPopper(f){const b=C(this._config.placement,[this,f,this._element]),I=u_[b.toUpperCase()];return i.createPopper(this._element,f,this._getPopperConfig(I))}_getOffset(){const{offset:f}=this._config;return typeof f=="string"?f.split(",").map(b=>Number.parseInt(b,10)):typeof f=="function"?b=>f(b,this._element):f}_resolvePossibleFunction(f){return C(f,[this._element,this._element])}_getPopperConfig(f){const b={placement:f,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:I=>{this._getTipElement().setAttribute("data-popper-placement",I.state.placement)}}]};return{...b,...C(this._config.popperConfig,[void 0,b])}}_setListeners(){const f=this._config.trigger.split(" ");for(const b of f)if(b==="click")J.on(this._element,this.constructor.eventName(i_),this._config.selector,I=>{const ae=this._initializeOnDelegatedTarget(I);ae._activeTrigger[ll]=!(ae._isShown()&&ae._activeTrigger[ll]),ae.toggle()});else if(b!==Jy){const I=b===dr?this.constructor.eventName(o_):this.constructor.eventName(r_),ae=b===dr?this.constructor.eventName(l_):this.constructor.eventName(a_);J.on(this._element,I,this._config.selector,ye=>{const be=this._initializeOnDelegatedTarget(ye);be._activeTrigger[ye.type==="focusin"?ol:dr]=!0,be._enter()}),J.on(this._element,ae,this._config.selector,ye=>{const be=this._initializeOnDelegatedTarget(ye);be._activeTrigger[ye.type==="focusout"?ol:dr]=be._element.contains(ye.relatedTarget),be._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(vd),bd,this._hideModalHandler)}_fixTitle(){const f=this._element.getAttribute("title");f&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",f),this._element.setAttribute("data-bs-original-title",f),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(f,b){clearTimeout(this._timeout),this._timeout=setTimeout(f,b)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(f){const b=se.getDataAttributes(this._element);for(const I of Object.keys(b))zy.has(I)&&delete b[I];return f={...b,...typeof f=="object"&&f?f:{}},f=this._mergeConfigObj(f),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}_configAfterMerge(f){return f.container=f.container===!1?document.body:_(f.container),typeof f.delay=="number"&&(f.delay={show:f.delay,hide:f.delay}),typeof f.title=="number"&&(f.title=f.title.toString()),typeof f.content=="number"&&(f.content=f.content.toString()),f}_getDelegateConfig(){const f={};for(const[b,I]of Object.entries(this._config))this.constructor.Default[b]!==I&&(f[b]=I);return f.selector=!1,f.trigger="manual",f}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(f){return this.each(function(){const b=Ln.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f]()}})}}T(Ln);const f_="popover",h_=".popover-header",m_=".popover-body",p_={...Ln.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},g_={...Ln.DefaultType,content:"(null|string|element|function)"};class va extends Ln{static get Default(){return p_}static get DefaultType(){return g_}static get NAME(){return f_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[h_]:this._getTitle(),[m_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(f){return this.each(function(){const b=va.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f]()}})}}T(va);const v_="scrollspy",ul=".bs.scrollspy",b_=".data-api",y_=`activate${ul}`,yd=`click${ul}`,__=`load${ul}${b_}`,E_="dropdown-item",Ci="active",w_='[data-bs-spy="scroll"]',cl="[href]",C_=".nav, .list-group",_d=".nav-link",A_=`${_d}, .nav-item > ${_d}, .list-group-item`,S_=".dropdown",x_=".dropdown-toggle",$_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},T_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class fr extends me{constructor(f,b){super(f,b),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return $_}static get DefaultType(){return T_}static get NAME(){return v_}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const f of this._observableSections.values())this._observer.observe(f)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(f){return f.target=_(f.target)||document.body,f.rootMargin=f.offset?`${f.offset}px 0px -30%`:f.rootMargin,typeof f.threshold=="string"&&(f.threshold=f.threshold.split(",").map(b=>Number.parseFloat(b))),f}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(J.off(this._config.target,yd),J.on(this._config.target,yd,cl,f=>{const b=this._observableSections.get(f.target.hash);if(b){f.preventDefault();const I=this._rootElement||window,ae=b.offsetTop-this._element.offsetTop;if(I.scrollTo){I.scrollTo({top:ae,behavior:"smooth"});return}I.scrollTop=ae}}))}_getNewObserver(){const f={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(b=>this._observerCallback(b),f)}_observerCallback(f){const b=be=>this._targetLinks.get(`#${be.target.id}`),I=be=>{this._previousScrollData.visibleEntryTop=be.target.offsetTop,this._process(b(be))},ae=(this._rootElement||document.documentElement).scrollTop,ye=ae>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ae;for(const be of f){if(!be.isIntersecting){this._activeTarget=null,this._clearActiveClass(b(be));continue}const ze=be.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(ye&&ze){if(I(be),!ae)return;continue}!ye&&!ze&&I(be)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const f=Y.find(cl,this._config.target);for(const b of f){if(!b.hash||A(b))continue;const I=Y.findOne(decodeURI(b.hash),this._element);S(I)&&(this._targetLinks.set(decodeURI(b.hash),b),this._observableSections.set(b.hash,I))}}_process(f){this._activeTarget!==f&&(this._clearActiveClass(this._config.target),this._activeTarget=f,f.classList.add(Ci),this._activateParents(f),J.trigger(this._element,y_,{relatedTarget:f}))}_activateParents(f){if(f.classList.contains(E_)){Y.findOne(x_,f.closest(S_)).classList.add(Ci);return}for(const b of Y.parents(f,C_))for(const I of Y.prev(b,A_))I.classList.add(Ci)}_clearActiveClass(f){f.classList.remove(Ci);const b=Y.find(`${cl}.${Ci}`,f);for(const I of b)I.classList.remove(Ci)}static jQueryInterface(f){return this.each(function(){const b=fr.getOrCreateInstance(this,f);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f]()}})}}J.on(window,__,()=>{for(const R of Y.find(w_))fr.getOrCreateInstance(R)}),T(fr);const O_="tab",Fn=".bs.tab",N_=`hide${Fn}`,k_=`hidden${Fn}`,P_=`show${Fn}`,D_=`shown${Fn}`,R_=`click${Fn}`,M_=`keydown${Fn}`,I_=`load${Fn}`,q_="ArrowLeft",Ed="ArrowRight",L_="ArrowUp",wd="ArrowDown",dl="Home",Cd="End",Vn="active",Ad="fade",fl="show",F_="dropdown",Sd=".dropdown-toggle",V_=".dropdown-menu",hl=`:not(${Sd})`,Q_='.list-group, .nav, [role="tablist"]',j_=".nav-item, .list-group-item",B_=`.nav-link${hl}, .list-group-item${hl}, [role="tab"]${hl}`,xd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ml=`${B_}, ${xd}`,U_=`.${Vn}[data-bs-toggle="tab"], .${Vn}[data-bs-toggle="pill"], .${Vn}[data-bs-toggle="list"]`;class Qn extends me{constructor(f){super(f),this._parent=this._element.closest(Q_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,M_,b=>this._keydown(b)))}static get NAME(){return O_}show(){const f=this._element;if(this._elemIsActive(f))return;const b=this._getActiveElem(),I=b?J.trigger(b,N_,{relatedTarget:f}):null;J.trigger(f,P_,{relatedTarget:b}).defaultPrevented||I&&I.defaultPrevented||(this._deactivate(b,f),this._activate(f,b))}_activate(f,b){if(!f)return;f.classList.add(Vn),this._activate(Y.getElementFromSelector(f));const I=()=>{if(f.getAttribute("role")!=="tab"){f.classList.add(fl);return}f.removeAttribute("tabindex"),f.setAttribute("aria-selected",!0),this._toggleDropDown(f,!0),J.trigger(f,D_,{relatedTarget:b})};this._queueCallback(I,f,f.classList.contains(Ad))}_deactivate(f,b){if(!f)return;f.classList.remove(Vn),f.blur(),this._deactivate(Y.getElementFromSelector(f));const I=()=>{if(f.getAttribute("role")!=="tab"){f.classList.remove(fl);return}f.setAttribute("aria-selected",!1),f.setAttribute("tabindex","-1"),this._toggleDropDown(f,!1),J.trigger(f,k_,{relatedTarget:b})};this._queueCallback(I,f,f.classList.contains(Ad))}_keydown(f){if(![q_,Ed,L_,wd,dl,Cd].includes(f.key))return;f.stopPropagation(),f.preventDefault();const b=this._getChildren().filter(ae=>!A(ae));let I;if([dl,Cd].includes(f.key))I=b[f.key===dl?0:b.length-1];else{const ae=[Ed,wd].includes(f.key);I=Z(b,f.target,ae,!0)}I&&(I.focus({preventScroll:!0}),Qn.getOrCreateInstance(I).show())}_getChildren(){return Y.find(ml,this._parent)}_getActiveElem(){return this._getChildren().find(f=>this._elemIsActive(f))||null}_setInitialAttributes(f,b){this._setAttributeIfNotExists(f,"role","tablist");for(const I of b)this._setInitialAttributesOnChild(I)}_setInitialAttributesOnChild(f){f=this._getInnerElement(f);const b=this._elemIsActive(f),I=this._getOuterElement(f);f.setAttribute("aria-selected",b),I!==f&&this._setAttributeIfNotExists(I,"role","presentation"),b||f.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(f,"role","tab"),this._setInitialAttributesOnTargetPanel(f)}_setInitialAttributesOnTargetPanel(f){const b=Y.getElementFromSelector(f);b&&(this._setAttributeIfNotExists(b,"role","tabpanel"),f.id&&this._setAttributeIfNotExists(b,"aria-labelledby",`${f.id}`))}_toggleDropDown(f,b){const I=this._getOuterElement(f);if(!I.classList.contains(F_))return;const ae=(ye,be)=>{const ze=Y.findOne(ye,I);ze&&ze.classList.toggle(be,b)};ae(Sd,Vn),ae(V_,fl),I.setAttribute("aria-expanded",b)}_setAttributeIfNotExists(f,b,I){f.hasAttribute(b)||f.setAttribute(b,I)}_elemIsActive(f){return f.classList.contains(Vn)}_getInnerElement(f){return f.matches(ml)?f:Y.findOne(ml,f)}_getOuterElement(f){return f.closest(j_)||f}static jQueryInterface(f){return this.each(function(){const b=Qn.getOrCreateInstance(this);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f]()}})}}J.on(document,R_,xd,function(R){["A","AREA"].includes(this.tagName)&&R.preventDefault(),!A(this)&&Qn.getOrCreateInstance(this).show()}),J.on(window,I_,()=>{for(const R of Y.find(U_))Qn.getOrCreateInstance(R)}),T(Qn);const K_="toast",mn=".bs.toast",H_=`mouseover${mn}`,G_=`mouseout${mn}`,W_=`focusin${mn}`,z_=`focusout${mn}`,Y_=`hide${mn}`,Z_=`hidden${mn}`,J_=`show${mn}`,X_=`shown${mn}`,e1="fade",$d="hide",ba="show",ya="showing",t1={animation:"boolean",autohide:"boolean",delay:"number"},s1={animation:!0,autohide:!0,delay:5e3};class hr extends me{constructor(f,b){super(f,b),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return s1}static get DefaultType(){return t1}static get NAME(){return K_}show(){if(J.trigger(this._element,J_).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(e1);const b=()=>{this._element.classList.remove(ya),J.trigger(this._element,X_),this._maybeScheduleHide()};this._element.classList.remove($d),$(this._element),this._element.classList.add(ba,ya),this._queueCallback(b,this._element,this._config.animation)}hide(){if(!this.isShown()||J.trigger(this._element,Y_).defaultPrevented)return;const b=()=>{this._element.classList.add($d),this._element.classList.remove(ya,ba),J.trigger(this._element,Z_)};this._element.classList.add(ya),this._queueCallback(b,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ba),super.dispose()}isShown(){return this._element.classList.contains(ba)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(f,b){switch(f.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=b;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=b;break}}if(b){this._clearTimeout();return}const I=f.relatedTarget;this._element===I||this._element.contains(I)||this._maybeScheduleHide()}_setListeners(){J.on(this._element,H_,f=>this._onInteraction(f,!0)),J.on(this._element,G_,f=>this._onInteraction(f,!1)),J.on(this._element,W_,f=>this._onInteraction(f,!0)),J.on(this._element,z_,f=>this._onInteraction(f,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(f){return this.each(function(){const b=hr.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f](this)}})}}return ue(hr),T(hr),{Alert:_t,Button:De,Carousel:yi,Collapse:Ei,Dropdown:xs,Modal:qn,Offcanvas:Ws,Popover:va,ScrollSpy:fr,Tab:Qn,Toast:hr,Tooltip:Ln}}))})(Da)),Da.exports}z1();/**
|
|
7
|
+
* @vue/shared v3.5.22
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/function zu(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const gt={},ki=[],js=()=>{},wm=()=>!1,Co=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Yu=e=>e.startsWith("onUpdate:"),Ot=Object.assign,Zu=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Y1=Object.prototype.hasOwnProperty,ut=(e,t)=>Y1.call(e,t),Ve=Array.isArray,Pi=e=>Zr(e)==="[object Map]",Ao=e=>Zr(e)==="[object Set]",qd=e=>Zr(e)==="[object Date]",Be=e=>typeof e=="function",yt=e=>typeof e=="string",Ps=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Cm=e=>(ft(e)||Be(e))&&Be(e.then)&&Be(e.catch),Am=Object.prototype.toString,Zr=e=>Am.call(e),Z1=e=>Zr(e).slice(8,-1),Sm=e=>Zr(e)==="[object Object]",Ju=e=>yt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$r=zu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),So=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},J1=/-\w/g,Cs=So(e=>e.replace(J1,t=>t.slice(1).toUpperCase())),X1=/\B([A-Z])/g,Pn=So(e=>e.replace(X1,"-$1").toLowerCase()),xo=So(e=>e.charAt(0).toUpperCase()+e.slice(1)),pl=So(e=>e?`on${xo(e)}`:""),Cn=(e,t)=>!Object.is(e,t),Ma=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},xm=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$m=e=>{const t=yt(e)?Number(e):NaN;return isNaN(t)?e:t};let Ld;const $o=()=>Ld||(Ld=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xu(e){if(Ve(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=yt(n)?nE(n):Xu(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(yt(e)||ft(e))return e}const eE=/;(?![^(]*\))/g,tE=/:([^]+)/,sE=/\/\*[^]*?\*\//g;function nE(e){const t={};return e.replace(sE,"").split(eE).forEach(s=>{if(s){const n=s.split(tE);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Re(e){let t="";if(yt(e))t=e;else if(Ve(e))for(let s=0;s<e.length;s++){const n=Re(e[s]);n&&(t+=n+" ")}else if(ft(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const iE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rE=zu(iE);function Tm(e){return!!e||e===""}function aE(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=To(e[n],t[n]);return s}function To(e,t){if(e===t)return!0;let s=qd(e),n=qd(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ps(e),n=Ps(t),s||n)return e===t;if(s=Ve(e),n=Ve(t),s||n)return s&&n?aE(e,t):!1;if(s=ft(e),n=ft(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(l&&!u||!l&&u||!To(e[o],t[o]))return!1}}return String(e)===String(t)}function oE(e,t){return e.findIndex(s=>To(s,t))}const Om=e=>!!(e&&e.__v_isRef===!0),L=e=>yt(e)?e:e==null?"":Ve(e)||ft(e)&&(e.toString===Am||!Be(e.toString))?Om(e)?L(e.value):JSON.stringify(e,Nm,2):String(e),Nm=(e,t)=>Om(t)?Nm(e,t.value):Pi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[gl(n,r)+" =>"]=i,s),{})}:Ao(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>gl(s))}:Ps(t)?gl(t):ft(t)&&!Ve(t)&&!Sm(t)?String(t):t,gl=(e,t="")=>{var s;return Ps(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
11
|
+
* @vue/reactivity v3.5.22
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/let Ft;class km{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ft,!t&&Ft&&(this.index=(Ft.scopes||(Ft.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ft;try{return Ft=this,t()}finally{Ft=s}}}on(){++this._on===1&&(this.prevScope=Ft,Ft=this)}off(){this._on>0&&--this._on===0&&(Ft=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Pm(e){return new km(e)}function Dm(){return Ft}function ec(e,t=!1){Ft&&Ft.cleanups.push(e)}let vt;const vl=new WeakSet;class Rm{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ft&&Ft.active&&Ft.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vl.has(this)&&(vl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Im(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Fd(this),qm(this);const t=vt,s=ks;vt=this,ks=!0;try{return this.fn()}finally{Lm(this),vt=t,ks=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nc(t);this.deps=this.depsTail=void 0,Fd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jl(this)&&this.run()}get dirty(){return jl(this)}}let Mm=0,Tr,Or;function Im(e,t=!1){if(e.flags|=8,t){e.next=Or,Or=e;return}e.next=Tr,Tr=e}function tc(){Mm++}function sc(){if(--Mm>0)return;if(Or){let t=Or;for(Or=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Tr;){let t=Tr;for(Tr=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function qm(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Lm(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),nc(n),lE(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function jl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fm(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fm(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qr)||(e.globalVersion=qr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jl(e))))return;e.flags|=2;const t=e.dep,s=vt,n=ks;vt=e,ks=!0;try{qm(e);const i=e.fn(e._value);(t.version===0||Cn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{vt=s,ks=n,Lm(e),e.flags&=-3}}function nc(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)nc(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function lE(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ks=!0;const Vm=[];function ln(){Vm.push(ks),ks=!1}function un(){const e=Vm.pop();ks=e===void 0?!0:e}function Fd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=vt;vt=void 0;try{t()}finally{vt=s}}}let qr=0;class uE{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ic{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!vt||!ks||vt===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==vt)s=this.activeLink=new uE(vt,this),vt.deps?(s.prevDep=vt.depsTail,vt.depsTail.nextDep=s,vt.depsTail=s):vt.deps=vt.depsTail=s,Qm(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=vt.depsTail,s.nextDep=void 0,vt.depsTail.nextDep=s,vt.depsTail=s,vt.deps===s&&(vt.deps=n)}return s}trigger(t){this.version++,qr++,this.notify(t)}notify(t){tc();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{sc()}}}function Qm(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Qm(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ga=new WeakMap,si=Symbol(""),Bl=Symbol(""),Lr=Symbol("");function Vt(e,t,s){if(ks&&vt){let n=Ga.get(e);n||Ga.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new ic),i.map=n,i.key=s),i.track()}}function sn(e,t,s,n,i,r){const o=Ga.get(e);if(!o){qr++;return}const l=u=>{u&&u.trigger()};if(tc(),t==="clear")o.forEach(l);else{const u=Ve(e),d=u&&Ju(s);if(u&&s==="length"){const c=Number(n);o.forEach((h,p)=>{(p==="length"||p===Lr||!Ps(p)&&p>=c)&&l(h)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Lr)),t){case"add":u?d&&l(o.get("length")):(l(o.get(si)),Pi(e)&&l(o.get(Bl)));break;case"delete":u||(l(o.get(si)),Pi(e)&&l(o.get(Bl)));break;case"set":Pi(e)&&l(o.get(si));break}}sc()}function cE(e,t){const s=Ga.get(e);return s&&s.get(t)}function Si(e){const t=nt(e);return t===e?t:(Vt(t,"iterate",Lr),ws(e)?t:t.map(Dt))}function Oo(e){return Vt(e=nt(e),"iterate",Lr),e}const dE={__proto__:null,[Symbol.iterator](){return bl(this,Symbol.iterator,Dt)},concat(...e){return Si(this).concat(...e.map(t=>Ve(t)?Si(t):t))},entries(){return bl(this,"entries",e=>(e[1]=Dt(e[1]),e))},every(e,t){return zs(this,"every",e,t,void 0,arguments)},filter(e,t){return zs(this,"filter",e,t,s=>s.map(Dt),arguments)},find(e,t){return zs(this,"find",e,t,Dt,arguments)},findIndex(e,t){return zs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return zs(this,"findLast",e,t,Dt,arguments)},findLastIndex(e,t){return zs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return zs(this,"forEach",e,t,void 0,arguments)},includes(...e){return yl(this,"includes",e)},indexOf(...e){return yl(this,"indexOf",e)},join(e){return Si(this).join(e)},lastIndexOf(...e){return yl(this,"lastIndexOf",e)},map(e,t){return zs(this,"map",e,t,void 0,arguments)},pop(){return mr(this,"pop")},push(...e){return mr(this,"push",e)},reduce(e,...t){return Vd(this,"reduce",e,t)},reduceRight(e,...t){return Vd(this,"reduceRight",e,t)},shift(){return mr(this,"shift")},some(e,t){return zs(this,"some",e,t,void 0,arguments)},splice(...e){return mr(this,"splice",e)},toReversed(){return Si(this).toReversed()},toSorted(e){return Si(this).toSorted(e)},toSpliced(...e){return Si(this).toSpliced(...e)},unshift(...e){return mr(this,"unshift",e)},values(){return bl(this,"values",Dt)}};function bl(e,t,s){const n=Oo(e),i=n[t]();return n!==e&&!ws(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const fE=Array.prototype;function zs(e,t,s,n,i,r){const o=Oo(e),l=o!==e&&!ws(e),u=o[t];if(u!==fE[t]){const h=u.apply(e,r);return l?Dt(h):h}let d=s;o!==e&&(l?d=function(h,p){return s.call(this,Dt(h),p,e)}:s.length>2&&(d=function(h,p){return s.call(this,h,p,e)}));const c=u.call(o,d,n);return l&&i?i(c):c}function Vd(e,t,s,n){const i=Oo(e);let r=s;return i!==e&&(ws(e)?s.length>3&&(r=function(o,l,u){return s.call(this,o,l,u,e)}):r=function(o,l,u){return s.call(this,o,Dt(l),u,e)}),i[t](r,...n)}function yl(e,t,s){const n=nt(e);Vt(n,"iterate",Lr);const i=n[t](...s);return(i===-1||i===!1)&&rc(s[0])?(s[0]=nt(s[0]),n[t](...s)):i}function mr(e,t,s=[]){ln(),tc();const n=nt(e)[t].apply(e,s);return sc(),un(),n}const hE=zu("__proto__,__v_isRef,__isVue"),jm=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ps));function mE(e){Ps(e)||(e=String(e));const t=nt(this);return Vt(t,"has",e),t.hasOwnProperty(e)}class Bm{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?zm:Wm:r?Gm:Hm).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Ve(t);if(!i){let u;if(o&&(u=dE[s]))return u;if(s==="hasOwnProperty")return mE}const l=Reflect.get(t,s,ht(t)?t:n);if((Ps(s)?jm.has(s):hE(s))||(i||Vt(t,"get",s),r))return l;if(ht(l)){const u=o&&Ju(s)?l:l.value;return i&&ft(u)?Bi(u):u}return ft(l)?i?Bi(l):As(l):l}}class Um extends Bm{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];if(!this._isShallow){const u=$n(r);if(!ws(n)&&!$n(n)&&(r=nt(r),n=nt(n)),!Ve(t)&&ht(r)&&!ht(n))return u||(r.value=n),!0}const o=Ve(t)&&Ju(s)?Number(s)<t.length:ut(t,s),l=Reflect.set(t,s,n,ht(t)?t:i);return t===nt(i)&&(o?Cn(n,r)&&sn(t,"set",s,n):sn(t,"add",s,n)),l}deleteProperty(t,s){const n=ut(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&sn(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!Ps(s)||!jm.has(s))&&Vt(t,"has",s),n}ownKeys(t){return Vt(t,"iterate",Ve(t)?"length":si),Reflect.ownKeys(t)}}class Km extends Bm{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const pE=new Um,gE=new Km,vE=new Um(!0),bE=new Km(!0),Ul=e=>e,wa=e=>Reflect.getPrototypeOf(e);function yE(e,t,s){return function(...n){const i=this.__v_raw,r=nt(i),o=Pi(r),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=i[e](...n),c=s?Ul:t?Wa:Dt;return!t&&Vt(r,"iterate",u?Bl:si),{next(){const{value:h,done:p}=d.next();return p?{value:h,done:p}:{value:l?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function Ca(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _E(e,t){const s={get(i){const r=this.__v_raw,o=nt(r),l=nt(i);e||(Cn(i,l)&&Vt(o,"get",i),Vt(o,"get",l));const{has:u}=wa(o),d=t?Ul:e?Wa:Dt;if(u.call(o,i))return d(r.get(i));if(u.call(o,l))return d(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Vt(nt(i),"iterate",si),i.size},has(i){const r=this.__v_raw,o=nt(r),l=nt(i);return e||(Cn(i,l)&&Vt(o,"has",i),Vt(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,u=nt(l),d=t?Ul:e?Wa:Dt;return!e&&Vt(u,"iterate",si),l.forEach((c,h)=>i.call(r,d(c),d(h),o))}};return Ot(s,e?{add:Ca("add"),set:Ca("set"),delete:Ca("delete"),clear:Ca("clear")}:{add(i){!t&&!ws(i)&&!$n(i)&&(i=nt(i));const r=nt(this);return wa(r).has.call(r,i)||(r.add(i),sn(r,"add",i,i)),this},set(i,r){!t&&!ws(r)&&!$n(r)&&(r=nt(r));const o=nt(this),{has:l,get:u}=wa(o);let d=l.call(o,i);d||(i=nt(i),d=l.call(o,i));const c=u.call(o,i);return o.set(i,r),d?Cn(r,c)&&sn(o,"set",i,r):sn(o,"add",i,r),this},delete(i){const r=nt(this),{has:o,get:l}=wa(r);let u=o.call(r,i);u||(i=nt(i),u=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return u&&sn(r,"delete",i,void 0),d},clear(){const i=nt(this),r=i.size!==0,o=i.clear();return r&&sn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=yE(i,e,t)}),s}function No(e,t){const s=_E(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ut(s,i)&&i in n?s:n,i,r)}const EE={get:No(!1,!1)},wE={get:No(!1,!0)},CE={get:No(!0,!1)},AE={get:No(!0,!0)},Hm=new WeakMap,Gm=new WeakMap,Wm=new WeakMap,zm=new WeakMap;function SE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xE(e){return e.__v_skip||!Object.isExtensible(e)?0:SE(Z1(e))}function As(e){return $n(e)?e:Po(e,!1,pE,EE,Hm)}function ko(e){return Po(e,!1,vE,wE,Gm)}function Bi(e){return Po(e,!0,gE,CE,Wm)}function Ym(e){return Po(e,!0,bE,AE,zm)}function Po(e,t,s,n,i){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=xE(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function An(e){return $n(e)?An(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function ws(e){return!!(e&&e.__v_isShallow)}function rc(e){return e?!!e.__v_raw:!1}function nt(e){const t=e&&e.__v_raw;return t?nt(t):e}function ac(e){return!ut(e,"__v_skip")&&Object.isExtensible(e)&&xm(e,"__v_skip",!0),e}const Dt=e=>ft(e)?As(e):e,Wa=e=>ft(e)?Bi(e):e;function ht(e){return e?e.__v_isRef===!0:!1}function _e(e){return Jm(e,!1)}function Zm(e){return Jm(e,!0)}function Jm(e,t){return ht(e)?e:new $E(e,t)}class $E{constructor(t,s){this.dep=new ic,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:nt(t),this._value=s?t:Dt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ws(t)||$n(t);t=n?t:nt(t),Cn(t,s)&&(this._rawValue=t,this._value=n?t:Dt(t),this.dep.trigger())}}function O(e){return ht(e)?e.value:e}function Fe(e){return Be(e)?e():O(e)}const TE={get:(e,t,s)=>t==="__v_raw"?e:O(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ht(i)&&!ht(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Xm(e){return An(e)?e:new Proxy(e,TE)}function oc(e){const t=Ve(e)?new Array(e.length):{};for(const s in e)t[s]=ep(e,s);return t}class OE{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return cE(nt(this._object),this._key)}}class NE{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function zn(e,t,s){return ht(e)?e:Be(e)?new NE(e):ft(e)&&arguments.length>1?ep(e,t,s):_e(e)}function ep(e,t,s){const n=e[t];return ht(n)?n:new OE(e,t,s)}class kE{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ic(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&vt!==this)return Im(this,!0),!0}get value(){const t=this.dep.track();return Fm(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function PE(e,t,s=!1){let n,i;return Be(e)?n=e:(n=e.get,i=e.set),new kE(n,i,s)}const Aa={},za=new WeakMap;let Hn;function DE(e,t=!1,s=Hn){if(s){let n=za.get(s);n||za.set(s,n=[]),n.push(e)}}function RE(e,t,s=gt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:u}=s,d=y=>i?y:ws(y)||i===!1||i===0?nn(y,1):nn(y);let c,h,p,m,g=!1,w=!1;if(ht(e)?(h=()=>e.value,g=ws(e)):An(e)?(h=()=>d(e),g=!0):Ve(e)?(w=!0,g=e.some(y=>An(y)||ws(y)),h=()=>e.map(y=>{if(ht(y))return y.value;if(An(y))return d(y);if(Be(y))return u?u(y,2):y()})):Be(e)?t?h=u?()=>u(e,2):e:h=()=>{if(p){ln();try{p()}finally{un()}}const y=Hn;Hn=c;try{return u?u(e,3,[m]):e(m)}finally{Hn=y}}:h=js,t&&i){const y=h,$=i===!0?1/0:i;h=()=>nn(y(),$)}const _=Dm(),S=()=>{c.stop(),_&&_.active&&Zu(_.effects,c)};if(r&&t){const y=t;t=(...$)=>{y(...$),S()}}let A=w?new Array(e.length).fill(Aa):Aa;const x=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(t){const $=c.run();if(i||g||(w?$.some((F,j)=>Cn(F,A[j])):Cn($,A))){p&&p();const F=Hn;Hn=c;try{const j=[$,A===Aa?void 0:w&&A[0]===Aa?[]:A,m];A=$,u?u(t,3,j):t(...j)}finally{Hn=F}}}else c.run()};return l&&l(x),c=new Rm(h),c.scheduler=o?()=>o(x,!1):x,m=y=>DE(y,!1,c),p=c.onStop=()=>{const y=za.get(c);if(y){if(u)u(y,4);else for(const $ of y)$();za.delete(c)}},t?n?x(!0):A=c.run():o?o(x.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}function nn(e,t=1/0,s){if(t<=0||!ft(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ht(e))nn(e.value,t,s);else if(Ve(e))for(let n=0;n<e.length;n++)nn(e[n],t,s);else if(Ao(e)||Pi(e))e.forEach(n=>{nn(n,t,s)});else if(Sm(e)){for(const n in e)nn(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&nn(e[n],t,s)}return e}/**
|
|
15
|
+
* @vue/runtime-core v3.5.22
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/function Jr(e,t,s,n){try{return n?e(...n):e()}catch(i){Xr(i,t,s)}}function Ds(e,t,s,n){if(Be(e)){const i=Jr(e,t,s,n);return i&&Cm(i)&&i.catch(r=>{Xr(r,t,s)}),i}if(Ve(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Ds(e[r],t,s,n));return i}}function Xr(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||gt;if(t){let l=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const c=l.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,u,d)===!1)return}l=l.parent}if(r){ln(),Jr(r,null,10,[e,u,d]),un();return}}ME(e,s,i,n,o)}function ME(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const Gt=[];let Fs=-1;const Di=[];let bn=null,Ti=0;const tp=Promise.resolve();let Ya=null;function kt(e){const t=Ya||tp;return e?t.then(this?e.bind(this):e):t}function IE(e){let t=Fs+1,s=Gt.length;for(;t<s;){const n=t+s>>>1,i=Gt[n],r=Fr(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function lc(e){if(!(e.flags&1)){const t=Fr(e),s=Gt[Gt.length-1];!s||!(e.flags&2)&&t>=Fr(s)?Gt.push(e):Gt.splice(IE(t),0,e),e.flags|=1,sp()}}function sp(){Ya||(Ya=tp.then(ip))}function Kl(e){Ve(e)?Di.push(...e):bn&&e.id===-1?bn.splice(Ti+1,0,e):e.flags&1||(Di.push(e),e.flags|=1),sp()}function Qd(e,t,s=Fs+1){for(;s<Gt.length;s++){const n=Gt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Gt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function np(e){if(Di.length){const t=[...new Set(Di)].sort((s,n)=>Fr(s)-Fr(n));if(Di.length=0,bn){bn.push(...t);return}for(bn=t,Ti=0;Ti<bn.length;Ti++){const s=bn[Ti];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bn=null,Ti=0}}const Fr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ip(e){try{for(Fs=0;Fs<Gt.length;Fs++){const t=Gt[Fs];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Jr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fs<Gt.length;Fs++){const t=Gt[Fs];t&&(t.flags&=-2)}Fs=-1,Gt.length=0,np(),Ya=null,(Gt.length||Di.length)&&ip()}}let It=null,rp=null;function Za(e){const t=It;return It=e,rp=e&&e.type.__scopeId||null,t}function je(e,t=It,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&eo(-1);const r=Za(t);let o;try{o=e(...i)}finally{Za(r),n._d&&eo(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ss(e,t){if(It===null)return e;const s=Lo(It),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,u=gt]=t[i];r&&(Be(r)&&(r={mounted:r,updated:r}),r.deep&&nn(o),n.push({dir:r,instance:s,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function jn(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let u=l.dir[n];u&&(ln(),Ds(u,s,8,[e.el,l,e,t]),un())}}const ap=Symbol("_vte"),op=e=>e.__isTeleport,Nr=e=>e&&(e.disabled||e.disabled===""),jd=e=>e&&(e.defer||e.defer===""),Bd=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ud=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hl=(e,t)=>{const s=e&&e.to;return yt(s)?t?t(s):null:s},lp={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,r,o,l,u,d){const{mc:c,pc:h,pbc:p,o:{insert:m,querySelector:g,createText:w,createComment:_}}=d,S=Nr(t.props);let{shapeFlag:A,children:x,dynamicChildren:y}=t;if(e==null){const $=t.el=w(""),F=t.anchor=w("");m($,s,n),m(F,s,n);const j=(E,T)=>{A&16&&c(x,E,T,i,r,o,l,u)},q=()=>{const E=t.target=Hl(t.props,g),T=up(E,t,w,m);E&&(o!=="svg"&&Bd(E)?o="svg":o!=="mathml"&&Ud(E)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(E),S||(j(E,T),Ia(t,!1)))};S&&(j(s,F),Ia(t,!0)),jd(t.props)?(t.el.__isMounted=!1,Kt(()=>{q(),delete t.el.__isMounted},r)):q()}else{if(jd(t.props)&&e.el.__isMounted===!1){Kt(()=>{lp.process(e,t,s,n,i,r,o,l,u,d)},r);return}t.el=e.el,t.targetStart=e.targetStart;const $=t.anchor=e.anchor,F=t.target=e.target,j=t.targetAnchor=e.targetAnchor,q=Nr(e.props),E=q?s:F,T=q?$:j;if(o==="svg"||Bd(F)?o="svg":(o==="mathml"||Ud(F))&&(o="mathml"),y?(p(e.dynamicChildren,y,E,i,r,o,l),fc(e,t,!0)):u||h(e,t,E,T,i,r,o,l,!1),S)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sa(t,s,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const C=t.target=Hl(t.props,g);C&&Sa(t,C,null,d,0)}else q&&Sa(t,F,j,d,1);Ia(t,S)}},remove(e,t,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:l,anchor:u,targetStart:d,targetAnchor:c,target:h,props:p}=e;if(h&&(i(d),i(c)),r&&i(u),o&16){const m=r||!Nr(p);for(let g=0;g<l.length;g++){const w=l[g];n(w,t,s,m,!!w.dynamicChildren)}}},move:Sa,hydrate:qE};function Sa(e,t,s,{o:{insert:n},m:i},r=2){r===0&&n(e.targetAnchor,t,s);const{el:o,anchor:l,shapeFlag:u,children:d,props:c}=e,h=r===2;if(h&&n(o,t,s),(!h||Nr(c))&&u&16)for(let p=0;p<d.length;p++)i(d[p],t,s,2);h&&n(l,t,s)}function qE(e,t,s,n,i,r,{o:{nextSibling:o,parentNode:l,querySelector:u,insert:d,createText:c}},h){function p(w,_,S,A){_.anchor=h(o(w),_,l(w),s,n,i,r),_.targetStart=S,_.targetAnchor=A}const m=t.target=Hl(t.props,u),g=Nr(t.props);if(m){const w=m._lpa||m.firstChild;if(t.shapeFlag&16)if(g)p(e,t,w,w&&o(w));else{t.anchor=o(e);let _=w;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,m._lpa=t.targetAnchor&&o(t.targetAnchor);break}}_=o(_)}t.targetAnchor||up(m,t,c,d),h(w&&o(w),t,m,s,n,i,r)}Ia(t,g)}else g&&t.shapeFlag&16&&p(e,t,e,o(e));return t.anchor&&o(t.anchor)}const LE=lp;function Ia(e,t){const s=e.ctx;if(s&&s.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function up(e,t,s,n){const i=t.targetStart=s(""),r=t.targetAnchor=s("");return i[ap]=r,e&&(n(i,e),n(r,e)),r}const tn=Symbol("_leaveCb"),xa=Symbol("_enterCb");function FE(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),tr(()=>{e.isUnmounting=!0}),e}const bs=[Function,Array],cp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bs,onEnter:bs,onAfterEnter:bs,onEnterCancelled:bs,onBeforeLeave:bs,onLeave:bs,onAfterLeave:bs,onLeaveCancelled:bs,onBeforeAppear:bs,onAppear:bs,onAfterAppear:bs,onAppearCancelled:bs},dp=e=>{const t=e.subTree;return t.component?dp(t.component):t},VE={name:"BaseTransition",props:cp,setup(e,{slots:t}){const s=gi(),n=FE();return()=>{const i=t.default&&mp(t.default(),!0);if(!i||!i.length)return;const r=fp(i),o=nt(e),{mode:l}=o;if(n.isLeaving)return _l(r);const u=Kd(r);if(!u)return _l(r);let d=Gl(u,o,n,s,h=>d=h);u.type!==Tt&&Vr(u,d);let c=s.subTree&&Kd(s.subTree);if(c&&c.type!==Tt&&!Vs(c,u)&&dp(s).type!==Tt){let h=Gl(c,o,n,s);if(Vr(c,h),l==="out-in"&&u.type!==Tt)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete h.afterLeave,c=void 0},_l(r);l==="in-out"&&u.type!==Tt?h.delayLeave=(p,m,g)=>{const w=hp(n,c);w[String(c.key)]=c,p[tn]=()=>{m(),p[tn]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{g(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function fp(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Tt){t=s;break}}return t}const QE=VE;function hp(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Gl(e,t,s,n,i){const{appear:r,mode:o,persisted:l=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:c,onEnterCancelled:h,onBeforeLeave:p,onLeave:m,onAfterLeave:g,onLeaveCancelled:w,onBeforeAppear:_,onAppear:S,onAfterAppear:A,onAppearCancelled:x}=t,y=String(e.key),$=hp(s,e),F=(E,T)=>{E&&Ds(E,n,9,T)},j=(E,T)=>{const C=T[1];F(E,T),Ve(E)?E.every(B=>B.length<=1)&&C():E.length<=1&&C()},q={mode:o,persisted:l,beforeEnter(E){let T=u;if(!s.isMounted)if(r)T=_||u;else return;E[tn]&&E[tn](!0);const C=$[y];C&&Vs(e,C)&&C.el[tn]&&C.el[tn](),F(T,[E])},enter(E){let T=d,C=c,B=h;if(!s.isMounted)if(r)T=S||d,C=A||c,B=x||h;else return;let Z=!1;const z=E[xa]=ie=>{Z||(Z=!0,ie?F(B,[E]):F(C,[E]),q.delayedLeave&&q.delayedLeave(),E[xa]=void 0)};T?j(T,[E,z]):z()},leave(E,T){const C=String(e.key);if(E[xa]&&E[xa](!0),s.isUnmounting)return T();F(p,[E]);let B=!1;const Z=E[tn]=z=>{B||(B=!0,T(),z?F(w,[E]):F(g,[E]),E[tn]=void 0,$[C]===e&&delete $[C])};$[C]=e,m?j(m,[E,Z]):Z()},clone(E){const T=Gl(E,t,s,n,i);return i&&i(T),T}};return q}function _l(e){if(Do(e))return e=Tn(e),e.children=null,e}function Kd(e){if(!Do(e))return op(e.type)&&e.children?fp(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Be(s.default))return s.default()}}function Vr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function mp(e,t=!1,s){let n=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const l=s==null?o.key:String(s)+String(o.key!=null?o.key:r);o.type===Ae?(o.patchFlag&128&&i++,n=n.concat(mp(o.children,t,l))):(t||o.type!==Tt)&&n.push(l!=null?Tn(o,{key:l}):o)}if(i>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function Ge(e,t){return Be(e)?Ot({name:e.name},t,{setup:e}):e}function pp(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ja=new WeakMap;function kr(e,t,s,n,i=!1){if(Ve(e)){e.forEach((g,w)=>kr(g,t&&(Ve(t)?t[w]:t),s,n,i));return}if(Ri(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kr(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Lo(n.component):n.el,o=i?null:r,{i:l,r:u}=e,d=t&&t.r,c=l.refs===gt?l.refs={}:l.refs,h=l.setupState,p=nt(h),m=h===gt?wm:g=>ut(p,g);if(d!=null&&d!==u){if(Hd(t),yt(d))c[d]=null,m(d)&&(h[d]=null);else if(ht(d)){d.value=null;const g=t;g.k&&(c[g.k]=null)}}if(Be(u))Jr(u,l,12,[o,c]);else{const g=yt(u),w=ht(u);if(g||w){const _=()=>{if(e.f){const S=g?m(u)?h[u]:c[u]:u.value;if(i)Ve(S)&&Zu(S,r);else if(Ve(S))S.includes(r)||S.push(r);else if(g)c[u]=[r],m(u)&&(h[u]=c[u]);else{const A=[r];u.value=A,e.k&&(c[e.k]=A)}}else g?(c[u]=o,m(u)&&(h[u]=o)):w&&(u.value=o,e.k&&(c[e.k]=o))};if(o){const S=()=>{_(),Ja.delete(e)};S.id=-1,Ja.set(e,S),Kt(S,s)}else Hd(e),_()}}}function Hd(e){const t=Ja.get(e);t&&(t.flags|=8,Ja.delete(e))}$o().requestIdleCallback;$o().cancelIdleCallback;const Ri=e=>!!e.type.__asyncLoader,Do=e=>e.type.__isKeepAlive;function jE(e,t){gp(e,"a",t)}function BE(e,t){gp(e,"da",t)}function gp(e,t,s=Qt){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ro(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Do(i.parent.vnode)&&UE(n,t,s,i),i=i.parent}}function UE(e,t,s,n){const i=Ro(t,e,n,!0);uc(()=>{Zu(n[t],i)},s)}function Ro(e,t,s=Qt,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{ln();const l=ea(s),u=Ds(t,s,e,o);return l(),un(),u});return n?i.unshift(r):i.push(r),r}}const dn=e=>(t,s=Qt)=>{(!jr||e==="sp")&&Ro(e,(...n)=>t(...n),s)},KE=dn("bm"),Bt=dn("m"),HE=dn("bu"),GE=dn("u"),tr=dn("bum"),uc=dn("um"),WE=dn("sp"),zE=dn("rtg"),YE=dn("rtc");function ZE(e,t=Qt){Ro("ec",e,t)}const vp="components";function Gd(e,t){return yp(vp,e,!0,t)||e}const bp=Symbol.for("v-ndc");function Mo(e){return yt(e)?yp(vp,e,!1)||e:e||bp}function yp(e,t,s=!0,n=!1){const i=It||Qt;if(i){const r=i.type;{const l=Uw(r,!1);if(l&&(l===t||l===Cs(t)||l===xo(Cs(t))))return r}const o=Wd(i[e]||r[e],t)||Wd(i.appContext[e],t);return!o&&n?r:o}}function Wd(e,t){return e&&(e[t]||e[Cs(t)]||e[xo(Cs(t))])}function bt(e,t,s,n){let i;const r=s,o=Ve(e);if(o||yt(e)){const l=o&&An(e);let u=!1,d=!1;l&&(u=!ws(e),d=$n(e),e=Oo(e)),i=new Array(e.length);for(let c=0,h=e.length;c<h;c++)i[c]=t(u?d?Wa(Dt(e[c])):Dt(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,r)}else if(ft(e))if(e[Symbol.iterator])i=Array.from(e,(l,u)=>t(l,u,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let u=0,d=l.length;u<d;u++){const c=l[u];i[u]=t(e[c],c,u,r)}}else i=[];return i}function Mi(e,t,s={},n,i){if(It.ce||It.parent&&Ri(It.parent)&&It.parent.ce){const d=Object.keys(s).length>0;return t!=="default"&&(s.name=t),N(),ct(Ae,null,[we("slot",s,n&&n())],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),N();const o=r&&_p(r(s)),l=s.key||o&&o.key,u=ct(Ae,{key:(l&&!Ps(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return r&&r._c&&(r._d=!0),u}function _p(e){return e.some(t=>Ki(t)?!(t.type===Tt||t.type===Ae&&!_p(t.children)):!0)?e:null}const Wl=e=>e?Qp(e)?Lo(e):Wl(e.parent):null,Pr=Ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wl(e.parent),$root:e=>Wl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wp(e),$forceUpdate:e=>e.f||(e.f=()=>{lc(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>bw.bind(e)}),El=(e,t)=>e!==gt&&!e.__isScriptSetup&&ut(e,t),JE={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:l,appContext:u}=e;let d;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(El(n,t))return o[t]=1,n[t];if(i!==gt&&ut(i,t))return o[t]=2,i[t];if((d=e.propsOptions[0])&&ut(d,t))return o[t]=3,r[t];if(s!==gt&&ut(s,t))return o[t]=4,s[t];zl&&(o[t]=0)}}const c=Pr[t];let h,p;if(c)return t==="$attrs"&&Vt(e.attrs,"get",""),c(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(s!==gt&&ut(s,t))return o[t]=4,s[t];if(p=u.config.globalProperties,ut(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return El(i,t)?(i[t]=s,!0):n!==gt&&ut(n,t)?(n[t]=s,!0):ut(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,propsOptions:r,type:o}},l){let u,d;return!!(s[l]||e!==gt&&l[0]!=="$"&&ut(e,l)||El(t,l)||(u=r[0])&&ut(u,l)||ut(n,l)||ut(Pr,l)||ut(i.config.globalProperties,l)||(d=o.__cssModules)&&d[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ut(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function zd(e){return Ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let zl=!0;function XE(e){const t=wp(e),s=e.proxy,n=e.ctx;zl=!1,t.beforeCreate&&Yd(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:u,inject:d,created:c,beforeMount:h,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:_,beforeDestroy:S,beforeUnmount:A,destroyed:x,unmounted:y,render:$,renderTracked:F,renderTriggered:j,errorCaptured:q,serverPrefetch:E,expose:T,inheritAttrs:C,components:B,directives:Z,filters:z}=t;if(d&&ew(d,n,null),o)for(const V in o){const ne=o[V];Be(ne)&&(n[V]=ne.bind(s))}if(i){const V=i.call(s,s);ft(V)&&(e.data=As(V))}if(zl=!0,r)for(const V in r){const ne=r[V],de=Be(ne)?ne.bind(s,s):Be(ne.get)?ne.get.bind(s,s):js,ke=!Be(ne)&&Be(ne.set)?ne.set.bind(s):js,qe=v({get:de,set:ke});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ce=>qe.value=ce})}if(l)for(const V in l)Ep(l[V],n,s,V);if(u){const V=Be(u)?u.call(s):u;Reflect.ownKeys(V).forEach(ne=>{ii(ne,V[ne])})}c&&Yd(c,e,"c");function W(V,ne){Ve(ne)?ne.forEach(de=>V(de.bind(s))):ne&&V(ne.bind(s))}if(W(KE,h),W(Bt,p),W(HE,m),W(GE,g),W(jE,w),W(BE,_),W(ZE,q),W(YE,F),W(zE,j),W(tr,A),W(uc,y),W(WE,E),Ve(T))if(T.length){const V=e.exposed||(e.exposed={});T.forEach(ne=>{Object.defineProperty(V,ne,{get:()=>s[ne],set:de=>s[ne]=de,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===js&&(e.render=$),C!=null&&(e.inheritAttrs=C),B&&(e.components=B),Z&&(e.directives=Z),E&&pp(e)}function ew(e,t,s=js){Ve(e)&&(e=Yl(e));for(const n in e){const i=e[n];let r;ft(i)?"default"in i?r=Yt(i.from||n,i.default,!0):r=Yt(i.from||n):r=Yt(i),ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function Yd(e,t,s){Ds(Ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ep(e,t,s,n){let i=n.includes(".")?Rp(s,n):()=>s[n];if(yt(e)){const r=t[e];Be(r)&&Xe(i,r)}else if(Be(e))Xe(i,e.bind(s));else if(ft(e))if(Ve(e))e.forEach(r=>Ep(r,t,s,n));else{const r=Be(e.handler)?e.handler.bind(s):t[e.handler];Be(r)&&Xe(i,r,e)}}function wp(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let u;return l?u=l:!i.length&&!s&&!n?u=t:(u={},i.length&&i.forEach(d=>Xa(u,d,o,!0)),Xa(u,t,o)),ft(t)&&r.set(t,u),u}function Xa(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Xa(e,r,s,!0),i&&i.forEach(o=>Xa(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=tw[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const tw={data:Zd,props:Jd,emits:Jd,methods:wr,computed:wr,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:wr,directives:wr,watch:nw,provide:Zd,inject:sw};function Zd(e,t){return t?e?function(){return Ot(Be(e)?e.call(this,this):e,Be(t)?t.call(this,this):t)}:t:e}function sw(e,t){return wr(Yl(e),Yl(t))}function Yl(e){if(Ve(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Ut(e,t){return e?[...new Set([].concat(e,t))]:t}function wr(e,t){return e?Ot(Object.create(null),e,t):t}function Jd(e,t){return e?Ve(e)&&Ve(t)?[...new Set([...e,...t])]:Ot(Object.create(null),zd(e),zd(t??{})):t}function nw(e,t){if(!e)return t;if(!t)return e;const s=Ot(Object.create(null),e);for(const n in t)s[n]=Ut(e[n],t[n]);return s}function Cp(){return{app:null,config:{isNativeTag:wm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let iw=0;function rw(e,t){return function(n,i=null){Be(n)||(n=Ot({},n)),i!=null&&!ft(i)&&(i=null);const r=Cp(),o=new WeakSet,l=[];let u=!1;const d=r.app={_uid:iw++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Hw,get config(){return r.config},set config(c){},use(c,...h){return o.has(c)||(c&&Be(c.install)?(o.add(c),c.install(d,...h)):Be(c)&&(o.add(c),c(d,...h))),d},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),d},component(c,h){return h?(r.components[c]=h,d):r.components[c]},directive(c,h){return h?(r.directives[c]=h,d):r.directives[c]},mount(c,h,p){if(!u){const m=d._ceVNode||we(n,i);return m.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(m,c,p),u=!0,d._container=c,c.__vue_app__=d,Lo(m.component)}},onUnmount(c){l.push(c)},unmount(){u&&(Ds(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,h){return r.provides[c]=h,d},runWithContext(c){const h=ni;ni=d;try{return c()}finally{ni=h}}};return d}}let ni=null;function ii(e,t){if(Qt){let s=Qt.provides;const n=Qt.parent&&Qt.parent.provides;n===s&&(s=Qt.provides=Object.create(n)),s[e]=t}}function Yt(e,t,s=!1){const n=gi();if(n||ni){let i=ni?ni._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&Be(t)?t.call(n&&n.proxy):t}}function Ap(){return!!(gi()||ni)}const Sp={},xp=()=>Object.create(Sp),$p=e=>Object.getPrototypeOf(e)===Sp;function aw(e,t,s,n=!1){const i={},r=xp();e.propsDefaults=Object.create(null),Tp(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:ko(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function ow(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=nt(i),[u]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(Io(e.emitsOptions,p))continue;const m=t[p];if(u)if(ut(r,p))m!==r[p]&&(r[p]=m,d=!0);else{const g=Cs(p);i[g]=Zl(u,l,g,m,e,!1)}else m!==r[p]&&(r[p]=m,d=!0)}}}else{Tp(e,t,i,r)&&(d=!0);let c;for(const h in l)(!t||!ut(t,h)&&((c=Pn(h))===h||!ut(t,c)))&&(u?s&&(s[h]!==void 0||s[c]!==void 0)&&(i[h]=Zl(u,l,h,void 0,e,!0)):delete i[h]);if(r!==l)for(const h in r)(!t||!ut(t,h))&&(delete r[h],d=!0)}d&&sn(e.attrs,"set","")}function Tp(e,t,s,n){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let u in t){if($r(u))continue;const d=t[u];let c;i&&ut(i,c=Cs(u))?!r||!r.includes(c)?s[c]=d:(l||(l={}))[c]=d:Io(e.emitsOptions,u)||(!(u in n)||d!==n[u])&&(n[u]=d,o=!0)}if(r){const u=nt(s),d=l||gt;for(let c=0;c<r.length;c++){const h=r[c];s[h]=Zl(i,u,h,d[h],e,!ut(d,h))}}return o}function Zl(e,t,s,n,i,r){const o=e[s];if(o!=null){const l=ut(o,"default");if(l&&n===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&Be(u)){const{propsDefaults:d}=i;if(s in d)n=d[s];else{const c=ea(i);n=d[s]=u.call(null,t),c()}}else n=u;i.ce&&i.ce._setProp(s,n)}o[0]&&(r&&!l?n=!1:o[1]&&(n===""||n===Pn(s))&&(n=!0))}return n}const lw=new WeakMap;function Op(e,t,s=!1){const n=s?lw:t.propsCache,i=n.get(e);if(i)return i;const r=e.props,o={},l=[];let u=!1;if(!Be(e)){const c=h=>{u=!0;const[p,m]=Op(h,t,!0);Ot(o,p),m&&l.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!u)return ft(e)&&n.set(e,ki),ki;if(Ve(r))for(let c=0;c<r.length;c++){const h=Cs(r[c]);Xd(h)&&(o[h]=gt)}else if(r)for(const c in r){const h=Cs(c);if(Xd(h)){const p=r[c],m=o[h]=Ve(p)||Be(p)?{type:p}:Ot({},p),g=m.type;let w=!1,_=!0;if(Ve(g))for(let S=0;S<g.length;++S){const A=g[S],x=Be(A)&&A.name;if(x==="Boolean"){w=!0;break}else x==="String"&&(_=!1)}else w=Be(g)&&g.name==="Boolean";m[0]=w,m[1]=_,(w||ut(m,"default"))&&l.push(h)}}const d=[o,l];return ft(e)&&n.set(e,d),d}function Xd(e){return e[0]!=="$"&&!$r(e)}const cc=e=>e==="_"||e==="_ctx"||e==="$stable",dc=e=>Ve(e)?e.map(Ts):[Ts(e)],uw=(e,t,s)=>{if(t._n)return t;const n=je((...i)=>dc(t(...i)),s);return n._c=!1,n},Np=(e,t,s)=>{const n=e._ctx;for(const i in e){if(cc(i))continue;const r=e[i];if(Be(r))t[i]=uw(i,r,n);else if(r!=null){const o=dc(r);t[i]=()=>o}}},kp=(e,t)=>{const s=dc(t);e.slots.default=()=>s},Pp=(e,t,s)=>{for(const n in t)(s||!cc(n))&&(e[n]=t[n])},cw=(e,t,s)=>{const n=e.slots=xp();if(e.vnode.shapeFlag&32){const i=t._;i?(Pp(n,t,s),s&&xm(n,"_",i,!0)):Np(t,n)}else t&&kp(e,t)},dw=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=gt;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:Pp(i,t,s):(r=!t.$stable,Np(t,i)),o=t}else t&&(kp(e,t),o={default:1});if(r)for(const l in i)!cc(l)&&o[l]==null&&delete i[l]},Kt=Pw;function fw(e){return hw(e)}function hw(e,t){const s=$o();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:l,createComment:u,setText:d,setElementText:c,parentNode:h,nextSibling:p,setScopeId:m=js,insertStaticContent:g}=e,w=(k,M,U,se=null,re=null,oe=null,me=void 0,pe=null,Y=!!M.dynamicChildren)=>{if(k===M)return;k&&!Vs(k,M)&&(se=P(k),ce(k,re,oe,!0),k=null),M.patchFlag===-2&&(Y=!1,M.dynamicChildren=null);const{type:ue,ref:Me,shapeFlag:Ee}=M;switch(ue){case qo:_(k,M,U,se);break;case Tt:S(k,M,U,se);break;case qa:k==null&&A(M,U,se,me);break;case Ae:B(k,M,U,se,re,oe,me,pe,Y);break;default:Ee&1?$(k,M,U,se,re,oe,me,pe,Y):Ee&6?Z(k,M,U,se,re,oe,me,pe,Y):(Ee&64||Ee&128)&&ue.process(k,M,U,se,re,oe,me,pe,Y,ve)}Me!=null&&re?kr(Me,k&&k.ref,oe,M||k,!M):Me==null&&k&&k.ref!=null&&kr(k.ref,null,oe,k,!0)},_=(k,M,U,se)=>{if(k==null)n(M.el=l(M.children),U,se);else{const re=M.el=k.el;M.children!==k.children&&d(re,M.children)}},S=(k,M,U,se)=>{k==null?n(M.el=u(M.children||""),U,se):M.el=k.el},A=(k,M,U,se)=>{[k.el,k.anchor]=g(k.children,M,U,se,k.el,k.anchor)},x=({el:k,anchor:M},U,se)=>{let re;for(;k&&k!==M;)re=p(k),n(k,U,se),k=re;n(M,U,se)},y=({el:k,anchor:M})=>{let U;for(;k&&k!==M;)U=p(k),i(k),k=U;i(M)},$=(k,M,U,se,re,oe,me,pe,Y)=>{M.type==="svg"?me="svg":M.type==="math"&&(me="mathml"),k==null?F(M,U,se,re,oe,me,pe,Y):E(k,M,re,oe,me,pe,Y)},F=(k,M,U,se,re,oe,me,pe)=>{let Y,ue;const{props:Me,shapeFlag:Ee,transition:Oe,dirs:Qe}=k;if(Y=k.el=o(k.type,oe,Me&&Me.is,Me),Ee&8?c(Y,k.children):Ee&16&&q(k.children,Y,null,se,re,wl(k,oe),me,pe),Qe&&jn(k,null,se,"created"),j(Y,k,k.scopeId,me,se),Me){for(const st in Me)st!=="value"&&!$r(st)&&r(Y,st,null,Me[st],oe,se);"value"in Me&&r(Y,"value",null,Me.value,oe),(ue=Me.onVnodeBeforeMount)&&qs(ue,se,k)}Qe&&jn(k,null,se,"beforeMount");const He=mw(re,Oe);He&&Oe.beforeEnter(Y),n(Y,M,U),((ue=Me&&Me.onVnodeMounted)||He||Qe)&&Kt(()=>{ue&&qs(ue,se,k),He&&Oe.enter(Y),Qe&&jn(k,null,se,"mounted")},re)},j=(k,M,U,se,re)=>{if(U&&m(k,U),se)for(let oe=0;oe<se.length;oe++)m(k,se[oe]);if(re){let oe=re.subTree;if(M===oe||Ip(oe.type)&&(oe.ssContent===M||oe.ssFallback===M)){const me=re.vnode;j(k,me,me.scopeId,me.slotScopeIds,re.parent)}}},q=(k,M,U,se,re,oe,me,pe,Y=0)=>{for(let ue=Y;ue<k.length;ue++){const Me=k[ue]=pe?yn(k[ue]):Ts(k[ue]);w(null,Me,M,U,se,re,oe,me,pe)}},E=(k,M,U,se,re,oe,me)=>{const pe=M.el=k.el;let{patchFlag:Y,dynamicChildren:ue,dirs:Me}=M;Y|=k.patchFlag&16;const Ee=k.props||gt,Oe=M.props||gt;let Qe;if(U&&Bn(U,!1),(Qe=Oe.onVnodeBeforeUpdate)&&qs(Qe,U,M,k),Me&&jn(M,k,U,"beforeUpdate"),U&&Bn(U,!0),(Ee.innerHTML&&Oe.innerHTML==null||Ee.textContent&&Oe.textContent==null)&&c(pe,""),ue?T(k.dynamicChildren,ue,pe,U,se,wl(M,re),oe):me||ne(k,M,pe,null,U,se,wl(M,re),oe,!1),Y>0){if(Y&16)C(pe,Ee,Oe,U,re);else if(Y&2&&Ee.class!==Oe.class&&r(pe,"class",null,Oe.class,re),Y&4&&r(pe,"style",Ee.style,Oe.style,re),Y&8){const He=M.dynamicProps;for(let st=0;st<He.length;st++){const et=He[st],_t=Ee[et],Ct=Oe[et];(Ct!==_t||et==="value")&&r(pe,et,_t,Ct,re,U)}}Y&1&&k.children!==M.children&&c(pe,M.children)}else!me&&ue==null&&C(pe,Ee,Oe,U,re);((Qe=Oe.onVnodeUpdated)||Me)&&Kt(()=>{Qe&&qs(Qe,U,M,k),Me&&jn(M,k,U,"updated")},se)},T=(k,M,U,se,re,oe,me)=>{for(let pe=0;pe<M.length;pe++){const Y=k[pe],ue=M[pe],Me=Y.el&&(Y.type===Ae||!Vs(Y,ue)||Y.shapeFlag&198)?h(Y.el):U;w(Y,ue,Me,null,se,re,oe,me,!0)}},C=(k,M,U,se,re)=>{if(M!==U){if(M!==gt)for(const oe in M)!$r(oe)&&!(oe in U)&&r(k,oe,M[oe],null,re,se);for(const oe in U){if($r(oe))continue;const me=U[oe],pe=M[oe];me!==pe&&oe!=="value"&&r(k,oe,pe,me,re,se)}"value"in U&&r(k,"value",M.value,U.value,re)}},B=(k,M,U,se,re,oe,me,pe,Y)=>{const ue=M.el=k?k.el:l(""),Me=M.anchor=k?k.anchor:l("");let{patchFlag:Ee,dynamicChildren:Oe,slotScopeIds:Qe}=M;Qe&&(pe=pe?pe.concat(Qe):Qe),k==null?(n(ue,U,se),n(Me,U,se),q(M.children||[],U,Me,re,oe,me,pe,Y)):Ee>0&&Ee&64&&Oe&&k.dynamicChildren?(T(k.dynamicChildren,Oe,U,re,oe,me,pe),(M.key!=null||re&&M===re.subTree)&&fc(k,M,!0)):ne(k,M,U,Me,re,oe,me,pe,Y)},Z=(k,M,U,se,re,oe,me,pe,Y)=>{M.slotScopeIds=pe,k==null?M.shapeFlag&512?re.ctx.activate(M,U,se,me,Y):z(M,U,se,re,oe,me,Y):ie(k,M,Y)},z=(k,M,U,se,re,oe,me)=>{const pe=k.component=Fw(k,se,re);if(Do(k)&&(pe.ctx.renderer=ve),Vw(pe,!1,me),pe.asyncDep){if(re&&re.registerDep(pe,W,me),!k.el){const Y=pe.subTree=we(Tt);S(null,Y,M,U),k.placeholder=Y.el}}else W(pe,k,M,U,re,oe,me)},ie=(k,M,U)=>{const se=M.component=k.component;if(Sw(k,M,U))if(se.asyncDep&&!se.asyncResolved){V(se,M,U);return}else se.next=M,se.update();else M.el=k.el,se.vnode=M},W=(k,M,U,se,re,oe,me)=>{const pe=()=>{if(k.isMounted){let{next:Ee,bu:Oe,u:Qe,parent:He,vnode:st}=k;{const K=Dp(k);if(K){Ee&&(Ee.el=st.el,V(k,Ee,me)),K.asyncDep.then(()=>{k.isUnmounted||pe()});return}}let et=Ee,_t;Bn(k,!1),Ee?(Ee.el=st.el,V(k,Ee,me)):Ee=st,Oe&&Ma(Oe),(_t=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&qs(_t,He,Ee,st),Bn(k,!0);const Ct=tf(k),H=k.subTree;k.subTree=Ct,w(H,Ct,h(H.el),P(H),k,re,oe),Ee.el=Ct.el,et===null&&mc(k,Ct.el),Qe&&Kt(Qe,re),(_t=Ee.props&&Ee.props.onVnodeUpdated)&&Kt(()=>qs(_t,He,Ee,st),re)}else{let Ee;const{el:Oe,props:Qe}=M,{bm:He,m:st,parent:et,root:_t,type:Ct}=k,H=Ri(M);Bn(k,!1),He&&Ma(He),!H&&(Ee=Qe&&Qe.onVnodeBeforeMount)&&qs(Ee,et,M),Bn(k,!0);{_t.ce&&_t.ce._def.shadowRoot!==!1&&_t.ce._injectChildStyle(Ct);const K=k.subTree=tf(k);w(null,K,U,se,k,re,oe),M.el=K.el}if(st&&Kt(st,re),!H&&(Ee=Qe&&Qe.onVnodeMounted)){const K=M;Kt(()=>qs(Ee,et,K),re)}(M.shapeFlag&256||et&&Ri(et.vnode)&&et.vnode.shapeFlag&256)&&k.a&&Kt(k.a,re),k.isMounted=!0,M=U=se=null}};k.scope.on();const Y=k.effect=new Rm(pe);k.scope.off();const ue=k.update=Y.run.bind(Y),Me=k.job=Y.runIfDirty.bind(Y);Me.i=k,Me.id=k.uid,Y.scheduler=()=>lc(Me),Bn(k,!0),ue()},V=(k,M,U)=>{M.component=k;const se=k.vnode.props;k.vnode=M,k.next=null,ow(k,M.props,se,U),dw(k,M.children,U),ln(),Qd(k),un()},ne=(k,M,U,se,re,oe,me,pe,Y=!1)=>{const ue=k&&k.children,Me=k?k.shapeFlag:0,Ee=M.children,{patchFlag:Oe,shapeFlag:Qe}=M;if(Oe>0){if(Oe&128){ke(ue,Ee,U,se,re,oe,me,pe,Y);return}else if(Oe&256){de(ue,Ee,U,se,re,oe,me,pe,Y);return}}Qe&8?(Me&16&&G(ue,re,oe),Ee!==ue&&c(U,Ee)):Me&16?Qe&16?ke(ue,Ee,U,se,re,oe,me,pe,Y):G(ue,re,oe,!0):(Me&8&&c(U,""),Qe&16&&q(Ee,U,se,re,oe,me,pe,Y))},de=(k,M,U,se,re,oe,me,pe,Y)=>{k=k||ki,M=M||ki;const ue=k.length,Me=M.length,Ee=Math.min(ue,Me);let Oe;for(Oe=0;Oe<Ee;Oe++){const Qe=M[Oe]=Y?yn(M[Oe]):Ts(M[Oe]);w(k[Oe],Qe,U,null,re,oe,me,pe,Y)}ue>Me?G(k,re,oe,!0,!1,Ee):q(M,U,se,re,oe,me,pe,Y,Ee)},ke=(k,M,U,se,re,oe,me,pe,Y)=>{let ue=0;const Me=M.length;let Ee=k.length-1,Oe=Me-1;for(;ue<=Ee&&ue<=Oe;){const Qe=k[ue],He=M[ue]=Y?yn(M[ue]):Ts(M[ue]);if(Vs(Qe,He))w(Qe,He,U,null,re,oe,me,pe,Y);else break;ue++}for(;ue<=Ee&&ue<=Oe;){const Qe=k[Ee],He=M[Oe]=Y?yn(M[Oe]):Ts(M[Oe]);if(Vs(Qe,He))w(Qe,He,U,null,re,oe,me,pe,Y);else break;Ee--,Oe--}if(ue>Ee){if(ue<=Oe){const Qe=Oe+1,He=Qe<Me?M[Qe].el:se;for(;ue<=Oe;)w(null,M[ue]=Y?yn(M[ue]):Ts(M[ue]),U,He,re,oe,me,pe,Y),ue++}}else if(ue>Oe)for(;ue<=Ee;)ce(k[ue],re,oe,!0),ue++;else{const Qe=ue,He=ue,st=new Map;for(ue=He;ue<=Oe;ue++){const xe=M[ue]=Y?yn(M[ue]):Ts(M[ue]);xe.key!=null&&st.set(xe.key,ue)}let et,_t=0;const Ct=Oe-He+1;let H=!1,K=0;const le=new Array(Ct);for(ue=0;ue<Ct;ue++)le[ue]=0;for(ue=Qe;ue<=Ee;ue++){const xe=k[ue];if(_t>=Ct){ce(xe,re,oe,!0);continue}let Le;if(xe.key!=null)Le=st.get(xe.key);else for(et=He;et<=Oe;et++)if(le[et-He]===0&&Vs(xe,M[et])){Le=et;break}Le===void 0?ce(xe,re,oe,!0):(le[Le-He]=ue+1,Le>=K?K=Le:H=!0,w(xe,M[Le],U,null,re,oe,me,pe,Y),_t++)}const Ce=H?pw(le):ki;for(et=Ce.length-1,ue=Ct-1;ue>=0;ue--){const xe=He+ue,Le=M[xe],De=M[xe+1],dt=xe+1<Me?De.el||De.placeholder:se;le[ue]===0?w(null,Le,U,dt,re,oe,me,pe,Y):H&&(et<0||ue!==Ce[et]?qe(Le,U,dt,2):et--)}}},qe=(k,M,U,se,re=null)=>{const{el:oe,type:me,transition:pe,children:Y,shapeFlag:ue}=k;if(ue&6){qe(k.component.subTree,M,U,se);return}if(ue&128){k.suspense.move(M,U,se);return}if(ue&64){me.move(k,M,U,ve);return}if(me===Ae){n(oe,M,U);for(let Ee=0;Ee<Y.length;Ee++)qe(Y[Ee],M,U,se);n(k.anchor,M,U);return}if(me===qa){x(k,M,U);return}if(se!==2&&ue&1&&pe)if(se===0)pe.beforeEnter(oe),n(oe,M,U),Kt(()=>pe.enter(oe),re);else{const{leave:Ee,delayLeave:Oe,afterLeave:Qe}=pe,He=()=>{k.ctx.isUnmounted?i(oe):n(oe,M,U)},st=()=>{oe._isLeaving&&oe[tn](!0),Ee(oe,()=>{He(),Qe&&Qe()})};Oe?Oe(oe,He,st):st()}else n(oe,M,U)},ce=(k,M,U,se=!1,re=!1)=>{const{type:oe,props:me,ref:pe,children:Y,dynamicChildren:ue,shapeFlag:Me,patchFlag:Ee,dirs:Oe,cacheIndex:Qe}=k;if(Ee===-2&&(re=!1),pe!=null&&(ln(),kr(pe,null,U,k,!0),un()),Qe!=null&&(M.renderCache[Qe]=void 0),Me&256){M.ctx.deactivate(k);return}const He=Me&1&&Oe,st=!Ri(k);let et;if(st&&(et=me&&me.onVnodeBeforeUnmount)&&qs(et,M,k),Me&6)Te(k.component,U,se);else{if(Me&128){k.suspense.unmount(U,se);return}He&&jn(k,null,M,"beforeUnmount"),Me&64?k.type.remove(k,M,U,ve,se):ue&&!ue.hasOnce&&(oe!==Ae||Ee>0&&Ee&64)?G(ue,M,U,!1,!0):(oe===Ae&&Ee&384||!re&&Me&16)&&G(Y,M,U),se&&he(k)}(st&&(et=me&&me.onVnodeUnmounted)||He)&&Kt(()=>{et&&qs(et,M,k),He&&jn(k,null,M,"unmounted")},U)},he=k=>{const{type:M,el:U,anchor:se,transition:re}=k;if(M===Ae){$e(U,se);return}if(M===qa){y(k);return}const oe=()=>{i(U),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(k.shapeFlag&1&&re&&!re.persisted){const{leave:me,delayLeave:pe}=re,Y=()=>me(U,oe);pe?pe(k.el,oe,Y):Y()}else oe()},$e=(k,M)=>{let U;for(;k!==M;)U=p(k),i(k),k=U;i(M)},Te=(k,M,U)=>{const{bum:se,scope:re,job:oe,subTree:me,um:pe,m:Y,a:ue}=k;ef(Y),ef(ue),se&&Ma(se),re.stop(),oe&&(oe.flags|=8,ce(me,k,M,U)),pe&&Kt(pe,M),Kt(()=>{k.isUnmounted=!0},M)},G=(k,M,U,se=!1,re=!1,oe=0)=>{for(let me=oe;me<k.length;me++)ce(k[me],M,U,se,re)},P=k=>{if(k.shapeFlag&6)return P(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const M=p(k.anchor||k.el),U=M&&M[ap];return U?p(U):M};let Q=!1;const te=(k,M,U)=>{k==null?M._vnode&&ce(M._vnode,null,null,!0):w(M._vnode||null,k,M,null,null,null,U),M._vnode=k,Q||(Q=!0,Qd(),np(),Q=!1)},ve={p:w,um:ce,m:qe,r:he,mt:z,mc:q,pc:ne,pbc:T,n:P,o:e};return{render:te,hydrate:void 0,createApp:rw(te)}}function wl({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Bn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function mw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fc(e,t,s=!1){const n=e.children,i=t.children;if(Ve(n)&&Ve(i))for(let r=0;r<n.length;r++){const o=n[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=yn(i[r]),l.el=o.el),!s&&l.patchFlag!==-2&&fc(o,l)),l.type===qo&&l.patchFlag!==-1&&(l.el=o.el),l.type===Tt&&!l.el&&(l.el=o.el)}}function pw(e){const t=e.slice(),s=[0];let n,i,r,o,l;const u=e.length;for(n=0;n<u;n++){const d=e[n];if(d!==0){if(i=s[s.length-1],e[i]<d){t[n]=i,s.push(n);continue}for(r=0,o=s.length-1;r<o;)l=r+o>>1,e[s[l]]<d?r=l+1:o=l;d<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function Dp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dp(t)}function ef(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const gw=Symbol.for("v-scx"),vw=()=>Yt(gw);function At(e,t){return hc(e,null,t)}function Xe(e,t,s){return hc(e,t,s)}function hc(e,t,s=gt){const{immediate:n,deep:i,flush:r,once:o}=s,l=Ot({},s),u=t&&n||!t&&r!=="post";let d;if(jr){if(r==="sync"){const m=vw();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=js,m.resume=js,m.pause=js,m}}const c=Qt;l.call=(m,g,w)=>Ds(m,c,g,w);let h=!1;r==="post"?l.scheduler=m=>{Kt(m,c&&c.suspense)}:r!=="sync"&&(h=!0,l.scheduler=(m,g)=>{g?m():lc(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const p=RE(e,t,l);return jr&&(d?d.push(p):u&&p()),p}function bw(e,t,s){const n=this.proxy,i=yt(e)?e.includes(".")?Rp(n,e):()=>n[e]:e.bind(n,n);let r;Be(t)?r=t:(r=t.handler,s=t);const o=ea(this),l=hc(i,r.bind(n),s);return o(),l}function Rp(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const yw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Cs(t)}Modifiers`]||e[`${Pn(t)}Modifiers`];function _w(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||gt;let i=s;const r=t.startsWith("update:"),o=r&&yw(n,t.slice(7));o&&(o.trim&&(i=s.map(c=>yt(c)?c.trim():c)),o.number&&(i=s.map(Ha)));let l,u=n[l=pl(t)]||n[l=pl(Cs(t))];!u&&r&&(u=n[l=pl(Pn(t))]),u&&Ds(u,e,6,i);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ds(d,e,6,i)}}const Ew=new WeakMap;function Mp(e,t,s=!1){const n=s?Ew:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!Be(e)){const u=d=>{const c=Mp(d,t,!0);c&&(l=!0,Ot(o,c))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!l?(ft(e)&&n.set(e,null),null):(Ve(r)?r.forEach(u=>o[u]=null):Ot(o,r),ft(e)&&n.set(e,o),o)}function Io(e,t){return!e||!Co(t)?!1:(t=t.slice(2).replace(/Once$/,""),ut(e,t[0].toLowerCase()+t.slice(1))||ut(e,Pn(t))||ut(e,t))}function tf(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:u,render:d,renderCache:c,props:h,data:p,setupState:m,ctx:g,inheritAttrs:w}=e,_=Za(e);let S,A;try{if(s.shapeFlag&4){const y=i||n,$=y;S=Ts(d.call($,y,c,h,m,p,g)),A=l}else{const y=t;S=Ts(y.length>1?y(h,{attrs:l,slots:o,emit:u}):y(h,null)),A=t.props?l:Cw(l)}}catch(y){Dr.length=0,Xr(y,e,1),S=we(Tt)}let x=S;if(A&&w!==!1){const y=Object.keys(A),{shapeFlag:$}=x;y.length&&$&7&&(r&&y.some(Yu)&&(A=Aw(A,r)),x=Tn(x,A,!1,!0))}return s.dirs&&(x=Tn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(s.dirs):s.dirs),s.transition&&Vr(x,s.transition),S=x,Za(_),S}function ww(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(Ki(i)){if(i.type!==Tt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Cw=e=>{let t;for(const s in e)(s==="class"||s==="style"||Co(s))&&((t||(t={}))[s]=e[s]);return t},Aw=(e,t)=>{const s={};for(const n in e)(!Yu(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Sw(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:l,patchFlag:u}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?sf(n,o,d):!!o;if(u&8){const c=t.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(o[p]!==n[p]&&!Io(d,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?sf(n,o,d):!0:!!o;return!1}function sf(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==e[r]&&!Io(s,r))return!0}return!1}function mc({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Ip=e=>e.__isSuspense;let Jl=0;const xw={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,r,o,l,u,d){if(e==null)Tw(t,s,n,i,r,o,l,u,d);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ow(e,t,s,n,i,o,l,u,d)}},hydrate:Nw,normalize:kw},$w=xw;function Qr(e,t){const s=e.props&&e.props[t];Be(s)&&s()}function Tw(e,t,s,n,i,r,o,l,u){const{p:d,o:{createElement:c}}=u,h=c("div"),p=e.suspense=qp(e,i,n,t,h,s,r,o,l,u);d(null,p.pendingBranch=e.ssContent,h,null,n,p,r,o),p.deps>0?(Qr(e,"onPending"),Qr(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,r,o),Ii(p,e.ssFallback)):p.resolve(!1,!0)}function Ow(e,t,s,n,i,r,o,l,{p:u,um:d,o:{createElement:c}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const p=t.ssContent,m=t.ssFallback,{activeBranch:g,pendingBranch:w,isInFallback:_,isHydrating:S}=h;if(w)h.pendingBranch=p,Vs(w,p)?(u(w,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():_&&(S||(u(g,m,s,n,i,null,r,o,l),Ii(h,m)))):(h.pendingId=Jl++,S?(h.isHydrating=!1,h.activeBranch=w):d(w,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=c("div"),_?(u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():(u(g,m,s,n,i,null,r,o,l),Ii(h,m))):g&&Vs(g,p)?(u(g,p,s,n,i,h,r,o,l),h.resolve(!0)):(u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0&&h.resolve()));else if(g&&Vs(g,p))u(g,p,s,n,i,h,r,o,l),Ii(h,p);else if(Qr(t,"onPending"),h.pendingBranch=p,p.shapeFlag&512?h.pendingId=p.component.suspenseId:h.pendingId=Jl++,u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0)h.resolve();else{const{timeout:A,pendingId:x}=h;A>0?setTimeout(()=>{h.pendingId===x&&h.fallback(m)},A):A===0&&h.fallback(m)}}function qp(e,t,s,n,i,r,o,l,u,d,c=!1){const{p:h,m:p,um:m,n:g,o:{parentNode:w,remove:_}}=d;let S;const A=Dw(e);A&&t&&t.pendingBranch&&(S=t.pendingId,t.deps++);const x=e.props?$m(e.props.timeout):void 0,y=r,$={vnode:e,parent:t,parentComponent:s,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:Jl++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(F=!1,j=!1){const{vnode:q,activeBranch:E,pendingBranch:T,pendingId:C,effects:B,parentComponent:Z,container:z}=$;let ie=!1;$.isHydrating?$.isHydrating=!1:F||(ie=E&&T.transition&&T.transition.mode==="out-in",ie&&(E.transition.afterLeave=()=>{C===$.pendingId&&(p(T,z,r===y?g(E):r,0),Kl(B))}),E&&(w(E.el)===z&&(r=g(E)),m(E,Z,$,!0)),ie||p(T,z,r,0)),Ii($,T),$.pendingBranch=null,$.isInFallback=!1;let W=$.parent,V=!1;for(;W;){if(W.pendingBranch){W.effects.push(...B),V=!0;break}W=W.parent}!V&&!ie&&Kl(B),$.effects=[],A&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),Qr(q,"onResolve")},fallback(F){if(!$.pendingBranch)return;const{vnode:j,activeBranch:q,parentComponent:E,container:T,namespace:C}=$;Qr(j,"onFallback");const B=g(q),Z=()=>{$.isInFallback&&(h(null,F,T,B,E,null,C,l,u),Ii($,F))},z=F.transition&&F.transition.mode==="out-in";z&&(q.transition.afterLeave=Z),$.isInFallback=!0,m(q,E,null,!0),z||Z()},move(F,j,q){$.activeBranch&&p($.activeBranch,F,j,q),$.container=F},next(){return $.activeBranch&&g($.activeBranch)},registerDep(F,j,q){const E=!!$.pendingBranch;E&&$.deps++;const T=F.vnode.el;F.asyncDep.catch(C=>{Xr(C,F,0)}).then(C=>{if(F.isUnmounted||$.isUnmounted||$.pendingId!==F.suspenseId)return;F.asyncResolved=!0;const{vnode:B}=F;eu(F,C),T&&(B.el=T);const Z=!T&&F.subTree.el;j(F,B,w(T||F.subTree.el),T?null:g(F.subTree),$,o,q),Z&&_(Z),mc(F,B.el),E&&--$.deps===0&&$.resolve()})},unmount(F,j){$.isUnmounted=!0,$.activeBranch&&m($.activeBranch,s,F,j),$.pendingBranch&&m($.pendingBranch,s,F,j)}};return $}function Nw(e,t,s,n,i,r,o,l,u){const d=t.suspense=qp(t,n,s,e.parentNode,document.createElement("div"),null,i,r,o,l,!0),c=u(e,d.pendingBranch=t.ssContent,s,d,r,o);return d.deps===0&&d.resolve(!1,!0),c}function kw(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=nf(n?s.default:s),e.ssFallback=n?nf(s.fallback):we(Tt)}function nf(e){let t;if(Be(e)){const s=Ui&&e._c;s&&(e._d=!1,N()),e=e(),s&&(e._d=!0,t=is,Lp())}return Ve(e)&&(e=ww(e)),e=Ts(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Pw(e,t){t&&t.pendingBranch?Ve(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}function Ii(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,mc(n,i))}function Dw(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ae=Symbol.for("v-fgt"),qo=Symbol.for("v-txt"),Tt=Symbol.for("v-cmt"),qa=Symbol.for("v-stc"),Dr=[];let is=null;function N(e=!1){Dr.push(is=e?null:[])}function Lp(){Dr.pop(),is=Dr[Dr.length-1]||null}let Ui=1;function eo(e,t=!1){Ui+=e,e<0&&is&&t&&(is.hasOnce=!0)}function Fp(e){return e.dynamicChildren=Ui>0?is||ki:null,Lp(),Ui>0&&is&&is.push(e),e}function D(e,t,s,n,i,r){return Fp(a(e,t,s,n,i,r,!0))}function ct(e,t,s,n,i){return Fp(we(e,t,s,n,i,!0))}function Ki(e){return e?e.__v_isVNode===!0:!1}function Vs(e,t){return e.type===t.type&&e.key===t.key}const Vp=({key:e})=>e??null,La=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?yt(e)||ht(e)||Be(e)?{i:It,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,i=null,r=e===Ae?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vp(t),ref:t&&La(t),scopeId:rp,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:It};return l?(pc(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=yt(s)?8:16),Ui>0&&!o&&is&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&is.push(u),u}const we=Rw;function Rw(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===bp)&&(e=Tt),Ki(e)){const l=Tn(e,t,!0);return s&&pc(l,s),Ui>0&&!r&&is&&(l.shapeFlag&6?is[is.indexOf(e)]=l:is.push(l)),l.patchFlag=-2,l}if(Kw(e)&&(e=e.__vccOpts),t){t=Mw(t);let{class:l,style:u}=t;l&&!yt(l)&&(t.class=Re(l)),ft(u)&&(rc(u)&&!Ve(u)&&(u=Ot({},u)),t.style=Xu(u))}const o=yt(e)?1:Ip(e)?128:op(e)?64:ft(e)?4:Be(e)?2:0;return a(e,t,s,n,i,o,r,!0)}function Mw(e){return e?rc(e)||$p(e)?Ot({},e):e:null}function Tn(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:u}=e,d=t?Iw(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Vp(d),ref:t&&t.ref?s&&r?Ve(r)?r.concat(La(t)):[r,La(t)]:La(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&Vr(c,u.clone(c)),c}function X(e=" ",t=0){return we(qo,null,e,t)}function li(e,t){const s=we(qa,null,e);return s.staticCount=t,s}function fe(e="",t=!1){return t?(N(),ct(Tt,null,e)):we(Tt,null,e)}function Ts(e){return e==null||typeof e=="boolean"?we(Tt):Ve(e)?we(Ae,null,e.slice()):Ki(e)?yn(e):we(qo,null,String(e))}function yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function pc(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ve(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),pc(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!$p(t)?t._ctx=It:i===3&&It&&(It.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Be(t)?(t={default:t,_ctx:It},s=32):(t=String(t),n&64?(s=16,t=[X(t)]):s=8);e.children=t,e.shapeFlag|=s}function Iw(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Re([t.class,n.class]));else if(i==="style")t.style=Xu([t.style,n.style]);else if(Co(i)){const r=t[i],o=n[i];o&&r!==o&&!(Ve(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function qs(e,t,s,n=null){Ds(e,t,7,[s,n])}const qw=Cp();let Lw=0;function Fw(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||qw,r={uid:Lw++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new km(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Op(n,i),emitsOptions:Mp(n,i),emit:null,emitted:null,propsDefaults:gt,inheritAttrs:n.inheritAttrs,ctx:gt,data:gt,props:gt,attrs:gt,slots:gt,refs:gt,setupState:gt,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=_w.bind(null,r),e.ce&&e.ce(r),r}let Qt=null;const gi=()=>Qt||It;let to,Xl;{const e=$o(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};to=t("__VUE_INSTANCE_SETTERS__",s=>Qt=s),Xl=t("__VUE_SSR_SETTERS__",s=>jr=s)}const ea=e=>{const t=Qt;return to(e),e.scope.on(),()=>{e.scope.off(),to(t)}},rf=()=>{Qt&&Qt.scope.off(),to(null)};function Qp(e){return e.vnode.shapeFlag&4}let jr=!1;function Vw(e,t=!1,s=!1){t&&Xl(t);const{props:n,children:i}=e.vnode,r=Qp(e);aw(e,n,r,t),cw(e,i,s||t);const o=r?Qw(e,t):void 0;return t&&Xl(!1),o}function Qw(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,JE);const{setup:n}=s;if(n){ln();const i=e.setupContext=n.length>1?Bw(e):null,r=ea(e),o=Jr(n,e,0,[e.props,i]),l=Cm(o);if(un(),r(),(l||e.sp)&&!Ri(e)&&pp(e),l){if(o.then(rf,rf),t)return o.then(u=>{eu(e,u)}).catch(u=>{Xr(u,e,0)});e.asyncDep=o}else eu(e,o)}else jp(e)}function eu(e,t,s){Be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Xm(t)),jp(e)}function jp(e,t,s){const n=e.type;e.render||(e.render=n.render||js);{const i=ea(e);ln();try{XE(e)}finally{un(),i()}}}const jw={get(e,t){return Vt(e,"get",""),e[t]}};function Bw(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,jw),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xm(ac(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Pr)return Pr[s](e)},has(t,s){return s in t||s in Pr}})):e.proxy}function Uw(e,t=!0){return Be(e)?e.displayName||e.name:e.name||t&&e.__name}function Kw(e){return Be(e)&&"__vccOpts"in e}const v=(e,t)=>PE(e,t,jr);function ui(e,t,s){try{eo(-1);const n=arguments.length;return n===2?ft(t)&&!Ve(t)?Ki(t)?we(e,null,[t]):we(e,t):we(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ki(s)&&(s=[s]),we(e,t,s))}finally{eo(1)}}const Hw="3.5.22";/**
|
|
19
|
+
* @vue/runtime-dom v3.5.22
|
|
20
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
|
+
* @license MIT
|
|
22
|
+
**/let tu;const af=typeof window<"u"&&window.trustedTypes;if(af)try{tu=af.createPolicy("vue",{createHTML:e=>e})}catch{}const Bp=tu?e=>tu.createHTML(e):e=>e,Gw="http://www.w3.org/2000/svg",Ww="http://www.w3.org/1998/Math/MathML",en=typeof document<"u"?document:null,of=en&&en.createElement("template"),zw={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?en.createElementNS(Gw,e):t==="mathml"?en.createElementNS(Ww,e):s?en.createElement(e,{is:s}):en.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>en.createTextNode(e),createComment:e=>en.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>en.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{of.innerHTML=Bp(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=of.content;if(n==="svg"||n==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},pn="transition",pr="animation",Br=Symbol("_vtc"),Up={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Yw=Ot({},cp,Up),Zw=e=>(e.displayName="Transition",e.props=Yw,e),Jw=Zw((e,{slots:t})=>ui(QE,Xw(e),t)),Un=(e,t=[])=>{Ve(e)?e.forEach(s=>s(...t)):e&&e(...t)},lf=e=>e?Ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Xw(e){const t={};for(const B in e)B in Up||(t[B]=e[B]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:r=`${s}-enter-from`,enterActiveClass:o=`${s}-enter-active`,enterToClass:l=`${s}-enter-to`,appearFromClass:u=r,appearActiveClass:d=o,appearToClass:c=l,leaveFromClass:h=`${s}-leave-from`,leaveActiveClass:p=`${s}-leave-active`,leaveToClass:m=`${s}-leave-to`}=e,g=e0(i),w=g&&g[0],_=g&&g[1],{onBeforeEnter:S,onEnter:A,onEnterCancelled:x,onLeave:y,onLeaveCancelled:$,onBeforeAppear:F=S,onAppear:j=A,onAppearCancelled:q=x}=t,E=(B,Z,z,ie)=>{B._enterCancelled=ie,Kn(B,Z?c:l),Kn(B,Z?d:o),z&&z()},T=(B,Z)=>{B._isLeaving=!1,Kn(B,h),Kn(B,m),Kn(B,p),Z&&Z()},C=B=>(Z,z)=>{const ie=B?j:A,W=()=>E(Z,B,z);Un(ie,[Z,W]),uf(()=>{Kn(Z,B?u:r),Ys(Z,B?c:l),lf(ie)||cf(Z,n,w,W)})};return Ot(t,{onBeforeEnter(B){Un(S,[B]),Ys(B,r),Ys(B,o)},onBeforeAppear(B){Un(F,[B]),Ys(B,u),Ys(B,d)},onEnter:C(!1),onAppear:C(!0),onLeave(B,Z){B._isLeaving=!0;const z=()=>T(B,Z);Ys(B,h),B._enterCancelled?(Ys(B,p),hf(B)):(hf(B),Ys(B,p)),uf(()=>{B._isLeaving&&(Kn(B,h),Ys(B,m),lf(y)||cf(B,n,_,z))}),Un(y,[B,z])},onEnterCancelled(B){E(B,!1,void 0,!0),Un(x,[B])},onAppearCancelled(B){E(B,!0,void 0,!0),Un(q,[B])},onLeaveCancelled(B){T(B),Un($,[B])}})}function e0(e){if(e==null)return null;if(ft(e))return[Cl(e.enter),Cl(e.leave)];{const t=Cl(e);return[t,t]}}function Cl(e){return $m(e)}function Ys(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Br]||(e[Br]=new Set)).add(t)}function Kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Br];s&&(s.delete(t),s.size||(e[Br]=void 0))}function uf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let t0=0;function cf(e,t,s,n){const i=e._endId=++t0,r=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(r,s);const{type:o,timeout:l,propCount:u}=s0(e,t);if(!o)return n();const d=o+"end";let c=0;const h=()=>{e.removeEventListener(d,p),r()},p=m=>{m.target===e&&++c>=u&&h()};setTimeout(()=>{c<u&&h()},l+1),e.addEventListener(d,p)}function s0(e,t){const s=window.getComputedStyle(e),n=g=>(s[g]||"").split(", "),i=n(`${pn}Delay`),r=n(`${pn}Duration`),o=df(i,r),l=n(`${pr}Delay`),u=n(`${pr}Duration`),d=df(l,u);let c=null,h=0,p=0;t===pn?o>0&&(c=pn,h=o,p=r.length):t===pr?d>0&&(c=pr,h=d,p=u.length):(h=Math.max(o,d),c=h>0?o>d?pn:pr:null,p=c?c===pn?r.length:u.length:0);const m=c===pn&&/\b(?:transform|all)(?:,|$)/.test(n(`${pn}Property`).toString());return{type:c,timeout:h,propCount:p,hasTransform:m}}function df(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>ff(s)+ff(e[n])))}function ff(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hf(e){return(e?e.ownerDocument:document).body.offsetHeight}function n0(e,t,s){const n=e[Br];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const so=Symbol("_vod"),Kp=Symbol("_vsh"),i0={name:"show",beforeMount(e,{value:t},{transition:s}){e[so]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):gr(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),gr(e,!0),n.enter(e)):n.leave(e,()=>{gr(e,!1)}):gr(e,t))},beforeUnmount(e,{value:t}){gr(e,t)}};function gr(e,t){e.style.display=t?e[so]:"none",e[Kp]=!t}const r0=Symbol(""),a0=/(?:^|;)\s*display\s*:/;function o0(e,t,s){const n=e.style,i=yt(s);let r=!1;if(s&&!i){if(t)if(yt(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Fa(n,l,"")}else for(const o in t)s[o]==null&&Fa(n,o,"");for(const o in s)o==="display"&&(r=!0),Fa(n,o,s[o])}else if(i){if(t!==s){const o=n[r0];o&&(s+=";"+o),n.cssText=s,r=a0.test(s)}}else t&&e.removeAttribute("style");so in e&&(e[so]=r?n.display:"",e[Kp]&&(n.display="none"))}const mf=/\s*!important$/;function Fa(e,t,s){if(Ve(s))s.forEach(n=>Fa(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=l0(e,t);mf.test(s)?e.setProperty(Pn(n),s.replace(mf,""),"important"):e[n]=s}}const pf=["Webkit","Moz","ms"],Al={};function l0(e,t){const s=Al[t];if(s)return s;let n=Cs(t);if(n!=="filter"&&n in e)return Al[t]=n;n=xo(n);for(let i=0;i<pf.length;i++){const r=pf[i]+n;if(r in e)return Al[t]=r}return t}const gf="http://www.w3.org/1999/xlink";function vf(e,t,s,n,i,r=rE(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(gf,t.slice(6,t.length)):e.setAttributeNS(gf,t,s):s==null||r&&!Tm(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ps(s)?String(s):s)}function bf(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Bp(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(l!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Tm(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(i||t)}function Yn(e,t,s,n){e.addEventListener(t,s,n)}function u0(e,t,s,n){e.removeEventListener(t,s,n)}const yf=Symbol("_vei");function c0(e,t,s,n,i=null){const r=e[yf]||(e[yf]={}),o=r[t];if(n&&o)o.value=n;else{const[l,u]=d0(t);if(n){const d=r[t]=m0(n,i);Yn(e,l,d,u)}else o&&(u0(e,l,o,u),r[t]=void 0)}}const _f=/(?:Once|Passive|Capture)$/;function d0(e){let t;if(_f.test(e)){t={};let n;for(;n=e.match(_f);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pn(e.slice(2)),t]}let Sl=0;const f0=Promise.resolve(),h0=()=>Sl||(f0.then(()=>Sl=0),Sl=Date.now());function m0(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ds(p0(n,s.value),t,5,[n])};return s.value=e,s.attached=h0(),s}function p0(e,t){if(Ve(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Ef=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,g0=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?n0(e,n,o):t==="style"?o0(e,s,n):Co(t)?Yu(t)||c0(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):v0(e,t,n,o))?(bf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vf(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!yt(n))?bf(e,Cs(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),vf(e,t,n,o))};function v0(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ef(t)&&Be(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ef(t)&&yt(s)?!1:t in e}const no=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ve(t)?s=>Ma(t,s):t};function b0(e){e.target.composing=!0}function wf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qi=Symbol("_assign"),rn={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[qi]=no(i);const r=n||i.props&&i.props.type==="number";Yn(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),r&&(l=Ha(l)),e[qi](l)}),s&&Yn(e,"change",()=>{e.value=e.value.trim()}),t||(Yn(e,"compositionstart",b0),Yn(e,"compositionend",wf),Yn(e,"change",wf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[qi]=no(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ha(e.value):e.value,u=t??"";l!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===u)||(e.value=u))}},Hp={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Ao(t);Yn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>s?Ha(io(o)):io(o));e[qi](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,kt(()=>{e._assigning=!1})}),e[qi]=no(n)},mounted(e,{value:t}){Cf(e,t)},beforeUpdate(e,t,s){e[qi]=no(s)},updated(e,{value:t}){e._assigning||Cf(e,t)}};function Cf(e,t){const s=e.multiple,n=Ve(t);if(!(s&&!n&&!Ao(t))){for(let i=0,r=e.options.length;i<r;i++){const o=e.options[i],l=io(o);if(s)if(n){const u=typeof l;u==="string"||u==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=oE(t,l)>-1}else o.selected=t.has(l);else if(To(io(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function io(e){return"_value"in e?e._value:e.value}const y0=["ctrl","shift","alt","meta"],_0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>y0.some(s=>e[`${s}Key`]&&!t.includes(s))},Pt=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...r)=>{for(let o=0;o<t.length;o++){const l=_0[t[o]];if(l&&l(i,t))return}return e(i,...r)}))},E0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},an=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const r=Pn(i.key);if(t.some(o=>o===r||E0[o]===r))return e(i)}))},w0=Ot({patchProp:g0},zw);let Af;function C0(){return Af||(Af=fw(w0))}const A0=((...e)=>{const t=C0().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=x0(n);if(!i)return;const r=t._component;!Be(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,S0(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function S0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function x0(e){return yt(e)?document.querySelector(e):e}/*!
|
|
23
|
+
* pinia v3.0.3
|
|
24
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/let Gp;const Fo=e=>Gp=e,Wp=Symbol();function su(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Rr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Rr||(Rr={}));function $0(){const e=Pm(!0),t=e.run(()=>_e({}));let s=[],n=[];const i=ac({install(r){Fo(i),i._a=r,r.provide(Wp,i),r.config.globalProperties.$pinia=i,n.forEach(o=>s.push(o)),n=[]},use(r){return this._a?s.push(r):n.push(r),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return i}const zp=()=>{};function Sf(e,t,s,n=zp){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),n())};return!s&&Dm()&&ec(i),i}function xi(e,...t){e.slice().forEach(s=>{s(...t)})}const T0=e=>e(),xf=Symbol(),xl=Symbol();function nu(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],i=e[s];su(i)&&su(n)&&e.hasOwnProperty(s)&&!ht(n)&&!An(n)?e[s]=nu(i,n):e[s]=n}return e}const O0=Symbol();function N0(e){return!su(e)||!Object.prototype.hasOwnProperty.call(e,O0)}const{assign:vn}=Object;function k0(e){return!!(ht(e)&&e.effect)}function P0(e,t,s,n){const{state:i,actions:r,getters:o}=t,l=s.state.value[e];let u;function d(){l||(s.state.value[e]=i?i():{});const c=oc(s.state.value[e]);return vn(c,r,Object.keys(o||{}).reduce((h,p)=>(h[p]=ac(v(()=>{Fo(s);const m=s._s.get(e);return o[p].call(m,m)})),h),{}))}return u=Yp(e,d,t,s,n,!0),u}function Yp(e,t,s={},n,i,r){let o;const l=vn({actions:{}},s),u={deep:!0};let d,c,h=[],p=[],m;const g=n.state.value[e];!r&&!g&&(n.state.value[e]={}),_e({});let w;function _(q){let E;d=c=!1,typeof q=="function"?(q(n.state.value[e]),E={type:Rr.patchFunction,storeId:e,events:m}):(nu(n.state.value[e],q),E={type:Rr.patchObject,payload:q,storeId:e,events:m});const T=w=Symbol();kt().then(()=>{w===T&&(d=!0)}),c=!0,xi(h,E,n.state.value[e])}const S=r?function(){const{state:E}=s,T=E?E():{};this.$patch(C=>{vn(C,T)})}:zp;function A(){o.stop(),h=[],p=[],n._s.delete(e)}const x=(q,E="")=>{if(xf in q)return q[xl]=E,q;const T=function(){Fo(n);const C=Array.from(arguments),B=[],Z=[];function z(V){B.push(V)}function ie(V){Z.push(V)}xi(p,{args:C,name:T[xl],store:$,after:z,onError:ie});let W;try{W=q.apply(this&&this.$id===e?this:$,C)}catch(V){throw xi(Z,V),V}return W instanceof Promise?W.then(V=>(xi(B,V),V)).catch(V=>(xi(Z,V),Promise.reject(V))):(xi(B,W),W)};return T[xf]=!0,T[xl]=E,T},y={_p:n,$id:e,$onAction:Sf.bind(null,p),$patch:_,$reset:S,$subscribe(q,E={}){const T=Sf(h,q,E.detached,()=>C()),C=o.run(()=>Xe(()=>n.state.value[e],B=>{(E.flush==="sync"?c:d)&&q({storeId:e,type:Rr.direct,events:m},B)},vn({},u,E)));return T},$dispose:A},$=As(y);n._s.set(e,$);const j=(n._a&&n._a.runWithContext||T0)(()=>n._e.run(()=>(o=Pm()).run(()=>t({action:x}))));for(const q in j){const E=j[q];if(ht(E)&&!k0(E)||An(E))r||(g&&N0(E)&&(ht(E)?E.value=g[q]:nu(E,g[q])),n.state.value[e][q]=E);else if(typeof E=="function"){const T=x(E,q);j[q]=T,l.actions[q]=E}}return vn($,j),vn(nt($),j),Object.defineProperty($,"$state",{get:()=>n.state.value[e],set:q=>{_(E=>{vn(E,q)})}}),n._p.forEach(q=>{vn($,o.run(()=>q({store:$,app:n._a,pinia:n,options:l})))}),g&&r&&s.hydrate&&s.hydrate($.$state,g),d=!0,c=!0,$}/*! #__NO_SIDE_EFFECTS__ */function Vo(e,t,s){let n;const i=typeof t=="function";n=i?s:t;function r(o,l){const u=Ap();return o=o||(u?Yt(Wp,null):null),o&&Fo(o),o=Gp,o._s.has(e)||(i?Yp(e,t,n,o):P0(e,n,o)),o._s.get(e)}return r.$id=e,r}var sr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},D0={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},R0=class{#e=D0;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Zn=new R0;function M0(e){setTimeout(e,0)}var ci=typeof window>"u"||"Deno"in globalThis;function ys(){}function I0(e,t){return typeof e=="function"?e(t):e}function iu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sn(e,t){return typeof e=="function"?e(t):e}function _s(e,t){return typeof e=="function"?e(t):e}function $f(e,t){const{type:s="all",exact:n,fetchStatus:i,predicate:r,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==gc(o,t.options))return!1}else if(!Ur(t.queryKey,o))return!1}if(s!=="all"){const u=t.isActive();if(s==="active"&&!u||s==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||r&&!r(t))}function Tf(e,t){const{exact:s,status:n,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(s){if(di(t.options.mutationKey)!==di(r))return!1}else if(!Ur(t.options.mutationKey,r))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function gc(e,t){return(t?.queryKeyHashFn||di)(e)}function di(e){return JSON.stringify(e,(t,s)=>ru(s)?Object.keys(s).sort().reduce((n,i)=>(n[i]=s[i],n),{}):s)}function Ur(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>Ur(e[s],t[s])):!1}var q0=Object.prototype.hasOwnProperty;function Jp(e,t){if(e===t)return e;const s=Of(e)&&Of(t);if(!s&&!(ru(e)&&ru(t)))return t;const i=(s?e:Object.keys(e)).length,r=s?t:Object.keys(t),o=r.length,l=s?new Array(o):{};let u=0;for(let d=0;d<o;d++){const c=s?d:r[d],h=e[c],p=t[c];if(h===p){l[c]=h,(s?d<i:q0.call(e,c))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[c]=p;continue}const m=Jp(h,p);l[c]=m,m===h&&u++}return i===o&&u===i?e:l}function ro(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Of(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ru(e){if(!Nf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Nf(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Nf(e){return Object.prototype.toString.call(e)==="[object Object]"}function L0(e){return new Promise(t=>{Zn.setTimeout(t,e)})}function au(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?Jp(e,t):t}function F0(e,t,s=0){const n=[...e,t];return s&&n.length>s?n.slice(1):n}function V0(e,t,s=0){const n=[t,...e];return s&&n.length>s?n.slice(0,-1):n}var vc=Symbol();function Xp(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ou(e,t){return typeof e=="function"?e(...t):!!e}var Q0=class extends sr{#e;#t;#s;constructor(){super(),this.#s=e=>{if(!ci&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},bc=new Q0;function lu(){let e,t;const s=new Promise((i,r)=>{e=i,t=r});s.status="pending",s.catch(()=>{});function n(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},s.reject=i=>{n({status:"rejected",reason:i}),t(i)},s}var j0=M0;function B0(){let e=[],t=0,s=l=>{l()},n=l=>{l()},i=j0;const r=l=>{t?e.push(l):i(()=>{s(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{n(()=>{l.forEach(u=>{s(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||o()}return u},batchCalls:l=>(...u)=>{r(()=>{l(...u)})},schedule:r,setNotifyFunction:l=>{s=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{i=l}}}var Rt=B0(),U0=class extends sr{#e=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!ci&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#e}},ao=new U0;function K0(e){return Math.min(1e3*2**e,3e4)}function eg(e){return(e??"online")==="online"?ao.isOnline():!0}var uu=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function tg(e){let t=!1,s=0,n;const i=lu(),r=()=>i.status!=="pending",o=w=>{if(!r()){const _=new uu(w);p(_),e.onCancel?.(_)}},l=()=>{t=!0},u=()=>{t=!1},d=()=>bc.isFocused()&&(e.networkMode==="always"||ao.isOnline())&&e.canRun(),c=()=>eg(e.networkMode)&&e.canRun(),h=w=>{r()||(n?.(),i.resolve(w))},p=w=>{r()||(n?.(),i.reject(w))},m=()=>new Promise(w=>{n=_=>{(r()||d())&&w(_)},e.onPause?.()}).then(()=>{n=void 0,r()||e.onContinue?.()}),g=()=>{if(r())return;let w;const _=s===0?e.initialPromise:void 0;try{w=_??e.fn()}catch(S){w=Promise.reject(S)}Promise.resolve(w).then(h).catch(S=>{if(r())return;const A=e.retry??(ci?0:3),x=e.retryDelay??K0,y=typeof x=="function"?x(s,S):x,$=A===!0||typeof A=="number"&&s<A||typeof A=="function"&&A(s,S);if(t||!$){p(S);return}s++,e.onFail?.(s,S),L0(y).then(()=>d()?void 0:m()).then(()=>{t?p(S):g()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n?.(),i),cancelRetry:l,continueRetry:u,canStart:c,start:()=>(c()?g():m().then(g),i)}}var sg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iu(this.gcTime)&&(this.#e=Zn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ci?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Zn.clearTimeout(this.#e),this.#e=void 0)}},H0=class extends sg{#e;#t;#s;#i;#n;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#s=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=kf(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=kf(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const s=au(this.state.data,e,this.options);return this.#r({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#r({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(ys).catch(ys):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>_s(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Sn(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Zp(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const s=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},i=()=>{const l=Xp(this.options,t),d=(()=>{const c={client:this.#i,queryKey:this.queryKey,meta:this.meta};return n(c),c})();return this.#o=!1,this.options.persister?this.options.persister(l,d,this):l(d)},o=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return n(l),l})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#r({type:"fetch",meta:o.fetchOptions?.meta}),this.#n=tg({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof uu&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(l,u)=>{this.#r({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#n.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#s.config.onSuccess?.(l,this),this.#s.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof uu){if(l.silent)return this.#n.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#r({type:"error",error:l}),this.#s.config.onError?.(l,this),this.#s.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#r(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...ng(s.data,this.options),fetchMeta:e.meta??null};case"success":const n={...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const i=e.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Rt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function ng(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,n=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var ig=class extends sr{constructor(e,t){super(),this.options=t,this.#e=e,this.#r=null,this.#o=lu(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#s=void 0;#i=void 0;#n;#a;#o;#r;#p;#f;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Pf(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#E(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _s(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!ro(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&Df(this.#t,s,this.options,t)&&this.#d(),this.updateResult(),n&&(this.#t!==s||_s(this.options.enabled,this.#t)!==_s(t.enabled,this.#t)||Sn(this.options.staleTime,this.#t)!==Sn(t.staleTime,this.#t))&&this.#g();const i=this.#v();n&&(this.#t!==s||_s(this.options.enabled,this.#t)!==_s(t.enabled,this.#t)||i!==this.#l)&&this.#b(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),s=this.createResult(t,e);return W0(this,s)&&(this.#i=s,this.#a=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(s,n)=>(this.trackProp(n),t?.(n),n==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ys)),t}#g(){this.#_();const e=Sn(this.options.staleTime,this.#t);if(ci||this.#i.isStale||!iu(e))return;const s=Zp(this.#i.dataUpdatedAt,e)+1;this.#u=Zn.setTimeout(()=>{this.#i.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#E(),this.#l=e,!(ci||_s(this.options.enabled,this.#t)===!1||!iu(this.#l)||this.#l===0)&&(this.#c=Zn.setInterval(()=>{(this.options.refetchIntervalInBackground||bc.isFocused())&&this.#d()},this.#l))}#y(){this.#g(),this.#b(this.#v())}#_(){this.#u&&(Zn.clearTimeout(this.#u),this.#u=void 0)}#E(){this.#c&&(Zn.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const s=this.#t,n=this.options,i=this.#i,r=this.#n,o=this.#a,u=e!==s?e.state:this.#s,{state:d}=e;let c={...d},h=!1,p;if(t._optimisticResults){const q=this.hasListeners(),E=!q&&Pf(e,t),T=q&&Df(e,s,t,n);(E||T)&&(c={...c,...ng(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:w}=c;p=c.data;let _=!1;if(t.placeholderData!==void 0&&p===void 0&&w==="pending"){let q;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(q=i.data,_=!0):q=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,q!==void 0&&(w="success",p=au(i?.data,q,t),h=!0)}if(t.select&&p!==void 0&&!_)if(i&&p===r?.data&&t.select===this.#p)p=this.#f;else try{this.#p=t.select,p=t.select(p),p=au(i?.data,p,t),this.#f=p,this.#r=null}catch(q){this.#r=q}this.#r&&(m=this.#r,p=this.#f,g=Date.now(),w="error");const S=c.fetchStatus==="fetching",A=w==="pending",x=w==="error",y=A&&S,$=p!==void 0,j={status:w,fetchStatus:c.fetchStatus,isPending:A,isSuccess:w==="success",isError:x,isInitialLoading:y,isLoading:y,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!A,isLoadingError:x&&!$,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:x&&$,isStale:yc(e,t),refetch:this.refetch,promise:this.#o,isEnabled:_s(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const q=C=>{j.status==="error"?C.reject(j.error):j.data!==void 0&&C.resolve(j.data)},E=()=>{const C=this.#o=j.promise=lu();q(C)},T=this.#o;switch(T.status){case"pending":e.queryHash===s.queryHash&&q(T);break;case"fulfilled":(j.status==="error"||j.data!==T.value)&&E();break;case"rejected":(j.status!=="error"||j.error!==T.reason)&&E();break}}return j}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#a=this.options,this.#n.data!==void 0&&(this.#h=this.#t),ro(t,e))return;this.#i=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#m.size)return!0;const r=new Set(i??this.#m);return this.options.throwOnError&&r.add("error"),Object.keys(this.#i).some(o=>{const l=o;return this.#i[l]!==e[l]&&r.has(l)})};this.#C({listeners:s()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Rt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function G0(e,t){return _s(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pf(e,t){return G0(e,t)||e.state.data!==void 0&&cu(e,t,t.refetchOnMount)}function cu(e,t,s){if(_s(t.enabled,e)!==!1&&Sn(t.staleTime,e)!=="static"){const n=typeof s=="function"?s(e):s;return n==="always"||n!==!1&&yc(e,t)}return!1}function Df(e,t,s,n){return(e!==t||_s(n.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&yc(e,s)}function yc(e,t){return _s(t.enabled,e)!==!1&&e.isStaleByTime(Sn(t.staleTime,e))}function W0(e,t){return!ro(e.getCurrentResult(),t)}function oo(e){return{onFetch:(t,s)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,r=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},u=0;const d=async()=>{let c=!1;const h=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},p=Xp(t.options,t.fetchOptions),m=async(g,w,_)=>{if(c)return Promise.reject();if(w==null&&g.pages.length)return Promise.resolve(g);const A=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:w,direction:_?"backward":"forward",meta:t.options.meta};return h(F),F})(),x=await p(A),{maxPages:y}=t.options,$=_?V0:F0;return{pages:$(g.pages,x,y),pageParams:$(g.pageParams,w,y)}};if(i&&r.length){const g=i==="backward",w=g?rg:du,_={pages:r,pageParams:o},S=w(n,_);l=await m(_,S,g)}else{const g=e??r.length;do{const w=u===0?o[0]??n.initialPageParam:du(n,l);if(u>0&&w==null)break;l=await m(l,w),u++}while(u<g)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=d}}}function du(e,{pages:t,pageParams:s}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,s[n],s):void 0}function rg(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}function z0(e,t){return t?du(e,t)!=null:!1}function Y0(e,t){return!t||!e.getPreviousPageParam?!1:rg(e,t)!=null}var Z0=class extends ig{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:oo()})}getOptimisticResult(e){return e.behavior=oo(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:r,isError:o,isRefetchError:l}=n,u=s.fetchMeta?.fetchMore?.direction,d=o&&u==="forward",c=i&&u==="forward",h=o&&u==="backward",p=i&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:z0(t,s.data),hasPreviousPage:Y0(t,s.data),isFetchNextPageError:d,isFetchingNextPage:c,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:l&&!d&&!h,isRefetching:r&&!c&&!p}}},J0=class extends sg{#e;#t;#s;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||ag(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=tg({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(r,o)=>{this.#n({type:"failed",failureCount:r,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const n=this.state.status==="pending",i=!this.#i.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:i}),await this.#s.config.onMutate?.(e,this,s);const o=await this.options.onMutate?.(e,s);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:i})}const r=await this.#i.start();return await this.#s.config.onSuccess?.(r,e,this.state.context,this,s),await this.options.onSuccess?.(r,e,this.state.context,s),await this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(r,null,e,this.state.context,s),this.#n({type:"success",data:r}),r}catch(r){try{throw await this.#s.config.onError?.(r,e,this.state.context,this,s),await this.options.onError?.(r,e,this.state.context,s),await this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,r,e,this.state.context,s),r}finally{this.#n({type:"error",error:r})}}finally{this.#s.runNext(this)}}#n(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Rt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function ag(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var og=class extends sr{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#s=0}#e;#t;#s;build(t,s,n){const i=new J0({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(s),state:n});return this.add(i),i}add(t){this.#e.add(t);const s=$a(t);if(typeof s=="string"){const n=this.#t.get(s);n?n.push(t):this.#t.set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const s=$a(t);if(typeof s=="string"){const n=this.#t.get(s);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&this.#t.delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){const s=$a(t);if(typeof s=="string"){const i=this.#t.get(s)?.find(r=>r.state.status==="pending");return!i||i===t}else return!0}runNext(t){const s=$a(t);return typeof s=="string"?this.#t.get(s)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Rt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const s={exact:!0,...t};return this.getAll().find(n=>Tf(s,n))}findAll(t={}){return this.getAll().filter(s=>Tf(t,s))}notify(t){Rt.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return Rt.batch(()=>Promise.all(t.map(s=>s.continue().catch(ys))))}};function $a(e){return e.options.scope?.id}var X0=class extends sr{#e;#t=void 0;#s;#i;constructor(t,s){super(),this.#e=t,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#e.defaultMutationOptions(t),ro(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),s?.mutationKey&&this.options.mutationKey&&di(s.mutationKey)!==di(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#n(),this.#a()}mutate(t,s){return this.#i=s,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(t)}#n(){const t=this.#s?.state??ag();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Rt.batch(()=>{if(this.#i&&this.hasListeners()){const s=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,s,n,i),this.#i.onSettled?.(t.data,null,s,n,i)):t?.type==="error"&&(this.#i.onError?.(t.error,s,n,i),this.#i.onSettled?.(void 0,t.error,s,n,i))}this.listeners.forEach(s=>{s(this.#t)})})}},lg=class extends sr{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,s,n){const i=s.queryKey,r=s.queryHash??gc(i,s);let o=this.get(r);return o||(o=new H0({client:t,queryKey:i,queryHash:r,options:t.defaultQueryOptions(s),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const s=this.#e.get(t.queryHash);s&&(t.destroy(),s===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const s={exact:!0,...t};return this.getAll().find(n=>$f(s,n))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(n=>$f(t,n)):s}notify(t){Rt.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},eC=class{#e;#t;#s;#i;#n;#a;#o;#r;constructor(t={}){this.#e=t.queryCache||new lg,this.#t=t.mutationCache||new og,this.#s=t.defaultOptions||{},this.#i=new Map,this.#n=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=bc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=ao.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#r?.(),this.#r=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const s=this.defaultQueryOptions({queryKey:t});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(t){const s=this.defaultQueryOptions(t),n=this.#e.build(this,s),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Sn(s.staleTime,n))&&this.prefetchQuery(s),Promise.resolve(i))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:s,state:n})=>{const i=n.data;return[s,i]})}setQueryData(t,s,n){const i=this.defaultQueryOptions({queryKey:t}),o=this.#e.get(i.queryHash)?.state.data,l=I0(s,o);if(l!==void 0)return this.#e.build(this,i).setData(l,{...n,manual:!0})}setQueriesData(t,s,n){return Rt.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,s,n)]))}getQueryState(t){const s=this.defaultQueryOptions({queryKey:t});return this.#e.get(s.queryHash)?.state}removeQueries(t){const s=this.#e;Rt.batch(()=>{s.findAll(t).forEach(n=>{s.remove(n)})})}resetQueries(t,s){const n=this.#e;return Rt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},s)))}cancelQueries(t,s={}){const n={revert:!0,...s},i=Rt.batch(()=>this.#e.findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(ys).catch(ys)}invalidateQueries(t,s={}){return Rt.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},s)))}refetchQueries(t,s={}){const n={...s,cancelRefetch:s.cancelRefetch??!0},i=Rt.batch(()=>this.#e.findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,n);return n.throwOnError||(o=o.catch(ys)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(ys)}fetchQuery(t){const s=this.defaultQueryOptions(t);s.retry===void 0&&(s.retry=!1);const n=this.#e.build(this,s);return n.isStaleByTime(Sn(s.staleTime,n))?n.fetch(s):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ys).catch(ys)}fetchInfiniteQuery(t){return t.behavior=oo(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ys).catch(ys)}ensureInfiniteQueryData(t){return t.behavior=oo(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ao.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(t){this.#s=t}setQueryDefaults(t,s){this.#i.set(di(t),{queryKey:t,defaultOptions:s})}getQueryDefaults(t){const s=[...this.#i.values()],n={};return s.forEach(i=>{Ur(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,s){this.#n.set(di(t),{mutationKey:t,defaultOptions:s})}getMutationDefaults(t){const s=[...this.#n.values()],n={};return s.forEach(i=>{Ur(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const s={...this.#s.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return s.queryHash||(s.queryHash=gc(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===vc&&(s.enabled=!1),s}defaultMutationOptions(t){return t?._defaulted?t:{...this.#s.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},tC="VUE_QUERY_CLIENT";function ug(e){const t=e?`:${e}`:"";return`${tC}${t}`}function fu(e,t){Object.keys(e).forEach(s=>{e[s]=t[s]})}function hu(e,t,s="",n=0){if(t){const i=t(e,s,n);if(i===void 0&&ht(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((i,r)=>hu(i,t,String(r),n+1));if(typeof e=="object"&&nC(e)){const i=Object.entries(e).map(([r,o])=>[r,hu(o,t,r,n+1)]);return Object.fromEntries(i)}return e}function sC(e,t){return hu(e,t)}function Ye(e,t=!1){return sC(e,(s,n,i)=>{if(i===1&&n==="queryKey")return Ye(s,!0);if(t&&iC(s))return Ye(s(),t);if(ht(s))return Ye(O(s),t)})}function nC(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function iC(e){return typeof e=="function"}function fn(e=""){if(!Ap())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=ug(e),s=Yt(t);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}var rC=class extends lg{find(e){return super.find(Ye(e))}findAll(e={}){return super.findAll(Ye(e))}},aC=class extends og{find(e){return super.find(Ye(e))}findAll(e={}){return super.findAll(Ye(e))}},oC=class extends eC{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new rC,mutationCache:e.mutationCache||new aC};super(t),this.isRestoring=_e(!1)}isFetching(e={}){return super.isFetching(Ye(e))}isMutating(e={}){return super.isMutating(Ye(e))}getQueryData(e){return super.getQueryData(Ye(e))}ensureQueryData(e){return super.ensureQueryData(Ye(e))}getQueriesData(e){return super.getQueriesData(Ye(e))}setQueryData(e,t,s={}){return super.setQueryData(Ye(e),t,Ye(s))}setQueriesData(e,t,s={}){return super.setQueriesData(Ye(e),t,Ye(s))}getQueryState(e){return super.getQueryState(Ye(e))}removeQueries(e={}){return super.removeQueries(Ye(e))}resetQueries(e={},t={}){return super.resetQueries(Ye(e),Ye(t))}cancelQueries(e={},t={}){return super.cancelQueries(Ye(e),Ye(t))}invalidateQueries(e={},t={}){const s=Ye(e),n=Ye(t);if(super.invalidateQueries({...s,refetchType:"none"},n),s.refetchType==="none")return Promise.resolve();const i={...s,type:s.refetchType??s.type??"active"};return kt().then(()=>super.refetchQueries(i,n))}refetchQueries(e={},t={}){return super.refetchQueries(Ye(e),Ye(t))}fetchQuery(e){return super.fetchQuery(Ye(e))}prefetchQuery(e){return super.prefetchQuery(Ye(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Ye(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Ye(e))}setDefaultOptions(e){super.setDefaultOptions(Ye(e))}setQueryDefaults(e,t){super.setQueryDefaults(Ye(e),Ye(t))}getQueryDefaults(e){return super.getQueryDefaults(Ye(e))}setMutationDefaults(e,t){super.setMutationDefaults(Ye(e),Ye(t))}getMutationDefaults(e){return super.getMutationDefaults(Ye(e))}},lC={install:(e,t={})=>{const s=ug(t.queryClientKey);let n;if("queryClient"in t&&t.queryClient)n=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;n=new oC(o)}ci||n.mount();let i=()=>{};if(t.clientPersister){n.isRestoring&&(n.isRestoring.value=!0);const[o,l]=t.clientPersister(n);i=o,l.then(()=>{n.isRestoring&&(n.isRestoring.value=!1),t.clientPersisterOnSuccess?.(n)})}const r=()=>{n.unmount(),i()};if(e.onUnmount)e.onUnmount(r);else{const o=e.unmount;e.unmount=function(){r(),o()}}e.provide(s,n)}};function cg(e,t,s){const n=fn(),i=v(()=>{const m=Ye(t);typeof m.enabled=="function"&&(m.enabled=m.enabled());const g=n.defaultQueryOptions(m);return g._optimisticResults=n.isRestoring?.value?"isRestoring":"optimistic",g}),r=new e(n,i.value),o=i.value.shallow?ko(r.getCurrentResult()):As(r.getCurrentResult());let l=()=>{};n.isRestoring&&Xe(n.isRestoring,m=>{m||(l(),l=r.subscribe(g=>{fu(o,g)}))},{immediate:!0});const u=()=>{r.setOptions(i.value),fu(o,r.getCurrentResult())};Xe(i,u),ec(()=>{l()});const d=(...m)=>(u(),o.refetch(...m)),c=()=>new Promise((m,g)=>{let w=()=>{};const _=()=>{if(i.value.enabled!==!1){r.setOptions(i.value);const S=r.getOptimisticResult(i.value);S.isStale?(w(),r.fetchOptimistic(i.value).then(m,A=>{ou(i.value.throwOnError,[A,r.getCurrentQuery()])?g(A):m(r.getCurrentResult())})):(w(),m(S))}};_(),w=Xe(i,_)});Xe(()=>o.error,m=>{if(o.isError&&!o.isFetching&&ou(i.value.throwOnError,[m,r.getCurrentQuery()]))throw m});const h=i.value.shallow?Ym(o):Bi(o),p=oc(h);for(const m in o)typeof o[m]=="function"&&(p[m]=o[m]);return p.suspense=c,p.refetch=d,p}function Jt(e,t){return cg(ig,e)}function uC(e,t){return cg(Z0,e)}function Nt(e,t){const s=fn(),n=v(()=>s.defaultMutationOptions(Ye(e))),i=new X0(s,n.value),r=n.value.shallow?ko(i.getCurrentResult()):As(i.getCurrentResult()),o=i.subscribe(c=>{fu(r,c)}),l=(c,h)=>{i.mutate(c,h).catch(()=>{})};Xe(n,()=>{i.setOptions(n.value)}),ec(()=>{o()});const u=n.value.shallow?Ym(r):Bi(r),d=oc(u);return Xe(()=>r.error,c=>{if(c&&ou(n.value.throwOnError,[c]))throw c}),{...d,mutate:l,mutateAsync:r.mutate,reset:r.reset}}const cC="modulepreload",dC=function(e){return"/"+e},Rf={},Mf=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){let u=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=u(s.map(d=>{if(d=dC(d),d in Rf)return;Rf[d]=!0;const c=d.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":cC,c||(p.as="script"),p.crossOrigin="",p.href=d,l&&p.setAttribute("nonce",l),document.head.appendChild(p),c)return new Promise((m,g)=>{p.addEventListener("load",m),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${d}`)))})}))}function r(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};/*!
|
|
27
|
+
* vue-router v4.5.1
|
|
28
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/const Oi=typeof document<"u";function dg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&dg(e.default)}const lt=Object.assign;function $l(e,t){const s={};for(const n in t){const i=t[n];s[n]=Rs(i)?i.map(e):e(i)}return s}const Mr=()=>{},Rs=Array.isArray,fg=/#/g,hC=/&/g,mC=/\//g,pC=/=/g,gC=/\?/g,hg=/\+/g,vC=/%5B/g,bC=/%5D/g,mg=/%5E/g,yC=/%60/g,pg=/%7B/g,_C=/%7C/g,gg=/%7D/g,EC=/%20/g;function _c(e){return encodeURI(""+e).replace(_C,"|").replace(vC,"[").replace(bC,"]")}function wC(e){return _c(e).replace(pg,"{").replace(gg,"}").replace(mg,"^")}function mu(e){return _c(e).replace(hg,"%2B").replace(EC,"+").replace(fg,"%23").replace(hC,"%26").replace(yC,"`").replace(pg,"{").replace(gg,"}").replace(mg,"^")}function CC(e){return mu(e).replace(pC,"%3D")}function AC(e){return _c(e).replace(fg,"%23").replace(gC,"%3F")}function SC(e){return e==null?"":AC(e).replace(mC,"%2F")}function Kr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const xC=/\/$/,$C=e=>e.replace(xC,"");function Tl(e,t,s="/"){let n,i={},r="",o="";const l=t.indexOf("#");let u=t.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(n=t.slice(0,u),r=t.slice(u+1,l>-1?l:t.length),i=e(r)),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=kC(n??t,s),{fullPath:n+(r&&"?")+r+o,path:n,query:i,hash:Kr(o)}}function TC(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function If(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function OC(e,t,s){const n=t.matched.length-1,i=s.matched.length-1;return n>-1&&n===i&&Hi(t.matched[n],s.matched[i])&&vg(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function Hi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!NC(e[s],t[s]))return!1;return!0}function NC(e,t){return Rs(e)?qf(e,t):Rs(t)?qf(t,e):e===t}function qf(e,t){return Rs(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function kC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let r=s.length-1,o,l;for(o=0;o<n.length;o++)if(l=n[o],l!==".")if(l==="..")r>1&&r--;else break;return s.slice(0,r).join("/")+"/"+n.slice(o).join("/")}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Hr;(function(e){e.pop="pop",e.push="push"})(Hr||(Hr={}));var Ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ir||(Ir={}));function PC(e){if(!e)if(Oi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$C(e)}const DC=/^[^#]+#/;function RC(e,t){return e.replace(DC,"#")+t}function MC(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Qo=()=>({left:window.scrollX,top:window.scrollY});function IC(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),i=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!i)return;t=MC(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Lf(e,t){return(history.state?history.state.position-t:-1)+e}const pu=new Map;function qC(e,t){pu.set(e,t)}function LC(e){const t=pu.get(e);return pu.delete(e),t}let FC=()=>location.protocol+"//"+location.host;function bg(e,t){const{pathname:s,search:n,hash:i}=t,r=e.indexOf("#");if(r>-1){let l=i.includes(e.slice(r))?e.slice(r).length:1,u=i.slice(l);return u[0]!=="/"&&(u="/"+u),If(u,"")}return If(s,e)+n+i}function VC(e,t,s,n){let i=[],r=[],o=null;const l=({state:p})=>{const m=bg(e,location),g=s.value,w=t.value;let _=0;if(p){if(s.value=m,t.value=p,o&&o===g){o=null;return}_=w?p.position-w.position:0}else n(m);i.forEach(S=>{S(s.value,g,{delta:_,type:Hr.pop,direction:_?_>0?Ir.forward:Ir.back:Ir.unknown})})};function u(){o=s.value}function d(p){i.push(p);const m=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return r.push(m),m}function c(){const{history:p}=window;p.state&&p.replaceState(lt({},p.state,{scroll:Qo()}),"")}function h(){for(const p of r)p();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:u,listen:d,destroy:h}}function Ff(e,t,s,n=!1,i=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:i?Qo():null}}function QC(e){const{history:t,location:s}=window,n={value:bg(e,s)},i={value:t.state};i.value||r(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,d,c){const h=e.indexOf("#"),p=h>-1?(s.host&&document.querySelector("base")?e:e.slice(h))+u:FC()+e+u;try{t[c?"replaceState":"pushState"](d,"",p),i.value=d}catch(m){console.error(m),s[c?"replace":"assign"](p)}}function o(u,d){const c=lt({},t.state,Ff(i.value.back,u,i.value.forward,!0),d,{position:i.value.position});r(u,c,!0),n.value=u}function l(u,d){const c=lt({},i.value,t.state,{forward:u,scroll:Qo()});r(c.current,c,!0);const h=lt({},Ff(n.value,u,null),{position:c.position+1},d);r(u,h,!1),n.value=u}return{location:n,state:i,push:l,replace:o}}function jC(e){e=PC(e);const t=QC(e),s=VC(e,t.state,t.location,t.replace);function n(r,o=!0){o||s.pauseListeners(),history.go(r)}const i=lt({location:"",base:e,go:n,createHref:RC.bind(null,e)},t,s);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function BC(e){return typeof e=="string"||e&&typeof e=="object"}function yg(e){return typeof e=="string"||typeof e=="symbol"}const _g=Symbol("");var Vf;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vf||(Vf={}));function Gi(e,t){return lt(new Error,{type:e,[_g]:!0},t)}function Zs(e,t){return e instanceof Error&&_g in e&&(t==null||!!(e.type&t))}const Qf="[^/]+?",UC={sensitive:!1,strict:!1,start:!0,end:!0},KC=/[.+*?^${}()[\]/\\]/g;function HC(e,t){const s=lt({},UC,t),n=[];let i=s.start?"^":"";const r=[];for(const d of e){const c=d.length?[]:[90];s.strict&&!d.length&&(i+="/");for(let h=0;h<d.length;h++){const p=d[h];let m=40+(s.sensitive?.25:0);if(p.type===0)h||(i+="/"),i+=p.value.replace(KC,"\\$&"),m+=40;else if(p.type===1){const{value:g,repeatable:w,optional:_,regexp:S}=p;r.push({name:g,repeatable:w,optional:_});const A=S||Qf;if(A!==Qf){m+=10;try{new RegExp(`(${A})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${g}" (${A}): `+y.message)}}let x=w?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;h||(x=_&&d.length<2?`(?:/${x})`:"/"+x),_&&(x+="?"),i+=x,m+=20,_&&(m+=-8),w&&(m+=-20),A===".*"&&(m+=-50)}c.push(m)}n.push(c)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=.7000000000000001}s.strict||(i+="/?"),s.end?i+="$":s.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,s.sensitive?"":"i");function l(d){const c=d.match(o),h={};if(!c)return null;for(let p=1;p<c.length;p++){const m=c[p]||"",g=r[p-1];h[g.name]=m&&g.repeatable?m.split("/"):m}return h}function u(d){let c="",h=!1;for(const p of e){(!h||!c.endsWith("/"))&&(c+="/"),h=!1;for(const m of p)if(m.type===0)c+=m.value;else if(m.type===1){const{value:g,repeatable:w,optional:_}=m,S=g in d?d[g]:"";if(Rs(S)&&!w)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const A=Rs(S)?S.join("/"):S;if(!A)if(_)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):h=!0);else throw new Error(`Missing required param "${g}"`);c+=A}}return c||"/"}return{re:o,score:n,keys:r,parse:l,stringify:u}}function GC(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Eg(e,t){let s=0;const n=e.score,i=t.score;for(;s<n.length&&s<i.length;){const r=GC(n[s],i[s]);if(r)return r;s++}if(Math.abs(i.length-n.length)===1){if(jf(n))return 1;if(jf(i))return-1}return i.length-n.length}function jf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const WC={type:0,value:""},zC=/[a-zA-Z0-9_]/;function YC(e){if(!e)return[[]];if(e==="/")return[[WC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${s})/"${d}": ${m}`)}let s=0,n=s;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,u,d="",c="";function h(){d&&(s===0?r.push({type:0,value:d}):s===1||s===2||s===3?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:d,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=u}for(;l<e.length;){if(u=e[l++],u==="\\"&&s!==2){n=s,s=4;continue}switch(s){case 0:u==="/"?(d&&h(),o()):u===":"?(h(),s=1):p();break;case 4:p(),s=n;break;case 1:u==="("?s=2:zC.test(u)?p():(h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+u:s=3:c+=u;break;case 3:h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,c="";break;default:t("Unknown state");break}}return s===2&&t(`Unfinished custom RegExp for param "${d}"`),h(),o(),i}function ZC(e,t,s){const n=HC(YC(e.path),s),i=lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function JC(e,t){const s=[],n=new Map;t=Hf({strict:!1,end:!0,sensitive:!1},t);function i(h){return n.get(h)}function r(h,p,m){const g=!m,w=Uf(h);w.aliasOf=m&&m.record;const _=Hf(t,h),S=[w];if("alias"in h){const y=typeof h.alias=="string"?[h.alias]:h.alias;for(const $ of y)S.push(Uf(lt({},w,{components:m?m.record.components:w.components,path:$,aliasOf:m?m.record:w})))}let A,x;for(const y of S){const{path:$}=y;if(p&&$[0]!=="/"){const F=p.record.path,j=F[F.length-1]==="/"?"":"/";y.path=p.record.path+($&&j+$)}if(A=ZC(y,p,_),m?m.alias.push(A):(x=x||A,x!==A&&x.alias.push(A),g&&h.name&&!Kf(A)&&o(h.name)),wg(A)&&u(A),w.children){const F=w.children;for(let j=0;j<F.length;j++)r(F[j],A,m&&m.children[j])}m=m||A}return x?()=>{o(x)}:Mr}function o(h){if(yg(h)){const p=n.get(h);p&&(n.delete(h),s.splice(s.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=s.indexOf(h);p>-1&&(s.splice(p,1),h.record.name&&n.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return s}function u(h){const p=tA(h,s);s.splice(p,0,h),h.record.name&&!Kf(h)&&n.set(h.record.name,h)}function d(h,p){let m,g={},w,_;if("name"in h&&h.name){if(m=n.get(h.name),!m)throw Gi(1,{location:h});_=m.record.name,g=lt(Bf(p.params,m.keys.filter(x=>!x.optional).concat(m.parent?m.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),h.params&&Bf(h.params,m.keys.map(x=>x.name))),w=m.stringify(g)}else if(h.path!=null)w=h.path,m=s.find(x=>x.re.test(w)),m&&(g=m.parse(w),_=m.record.name);else{if(m=p.name?n.get(p.name):s.find(x=>x.re.test(p.path)),!m)throw Gi(1,{location:h,currentLocation:p});_=m.record.name,g=lt({},p.params,h.params),w=m.stringify(g)}const S=[];let A=m;for(;A;)S.unshift(A.record),A=A.parent;return{name:_,path:w,params:g,matched:S,meta:eA(S)}}e.forEach(h=>r(h));function c(){s.length=0,n.clear()}return{addRoute:r,resolve:d,removeRoute:o,clearRoutes:c,getRoutes:l,getRecordMatcher:i}}function Bf(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Uf(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:XC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function XC(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function Kf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eA(e){return e.reduce((t,s)=>lt(t,s.meta),{})}function Hf(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}function tA(e,t){let s=0,n=t.length;for(;s!==n;){const r=s+n>>1;Eg(e,t[r])<0?n=r:s=r+1}const i=sA(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function sA(e){let t=e;for(;t=t.parent;)if(wg(t)&&Eg(e,t)===0)return t}function wg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function nA(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const r=n[i].replace(hg," "),o=r.indexOf("="),l=Kr(o<0?r:r.slice(0,o)),u=o<0?null:Kr(r.slice(o+1));if(l in t){let d=t[l];Rs(d)||(d=t[l]=[d]),d.push(u)}else t[l]=u}return t}function Gf(e){let t="";for(let s in e){const n=e[s];if(s=CC(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(Rs(n)?n.map(r=>r&&mu(r)):[n&&mu(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function iA(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=Rs(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const rA=Symbol(""),Wf=Symbol(""),jo=Symbol(""),Ec=Symbol(""),gu=Symbol("");function vr(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function _n(e,t,s,n,i,r=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((l,u)=>{const d=p=>{p===!1?u(Gi(4,{from:s,to:t})):p instanceof Error?u(p):BC(p)?u(Gi(2,{from:t,to:p})):(o&&n.enterCallbacks[i]===o&&typeof p=="function"&&o.push(p),l())},c=r(()=>e.call(n&&n.instances[i],t,s,d));let h=Promise.resolve(c);e.length<3&&(h=h.then(d)),h.catch(p=>u(p))})}function Ol(e,t,s,n,i=r=>r()){const r=[];for(const o of e)for(const l in o.components){let u=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(dg(u)){const c=(u.__vccOpts||u)[t];c&&r.push(_n(c,s,n,o,l,i))}else{let d=u();r.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=fC(c)?c.default:c;o.mods[l]=c,o.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&_n(m,s,n,o,l,i)()}))}}return r}function zf(e){const t=Yt(jo),s=Yt(Ec),n=v(()=>{const u=O(e.to);return t.resolve(u)}),i=v(()=>{const{matched:u}=n.value,{length:d}=u,c=u[d-1],h=s.matched;if(!c||!h.length)return-1;const p=h.findIndex(Hi.bind(null,c));if(p>-1)return p;const m=Yf(u[d-2]);return d>1&&Yf(c)===m&&h[h.length-1].path!==m?h.findIndex(Hi.bind(null,u[d-2])):p}),r=v(()=>i.value>-1&&cA(s.params,n.value.params)),o=v(()=>i.value>-1&&i.value===s.matched.length-1&&vg(s.params,n.value.params));function l(u={}){if(uA(u)){const d=t[O(e.replace)?"replace":"push"](O(e.to)).catch(Mr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:v(()=>n.value.href),isActive:r,isExactActive:o,navigate:l}}function aA(e){return e.length===1?e[0]:e}const oA=Ge({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:zf,setup(e,{slots:t}){const s=As(zf(e)),{options:n}=Yt(jo),i=v(()=>({[Zf(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Zf(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const r=t.default&&aA(t.default(s));return e.custom?r:ui("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:i.value},r)}}}),lA=oA;function uA(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cA(e,t){for(const s in t){const n=t[s],i=e[s];if(typeof n=="string"){if(n!==i)return!1}else if(!Rs(i)||i.length!==n.length||n.some((r,o)=>r!==i[o]))return!1}return!0}function Yf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zf=(e,t,s)=>e??t??s,dA=Ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=Yt(gu),i=v(()=>e.route||n.value),r=Yt(Wf,0),o=v(()=>{let d=O(r);const{matched:c}=i.value;let h;for(;(h=c[d])&&!h.components;)d++;return d}),l=v(()=>i.value.matched[o.value]);ii(Wf,v(()=>o.value+1)),ii(rA,l),ii(gu,i);const u=_e();return Xe(()=>[u.value,l.value,e.name],([d,c,h],[p,m,g])=>{c&&(c.instances[h]=d,m&&m!==c&&d&&d===p&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),d&&c&&(!m||!Hi(c,m)||!p)&&(c.enterCallbacks[h]||[]).forEach(w=>w(d))},{flush:"post"}),()=>{const d=i.value,c=e.name,h=l.value,p=h&&h.components[c];if(!p)return Jf(s.default,{Component:p,route:d});const m=h.props[c],g=m?m===!0?d.params:typeof m=="function"?m(d):m:null,_=ui(p,lt({},g,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(h.instances[c]=null)},ref:u}));return Jf(s.default,{Component:_,route:d})||_}}});function Jf(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const fA=dA;function hA(e){const t=JC(e.routes,e),s=e.parseQuery||nA,n=e.stringifyQuery||Gf,i=e.history,r=vr(),o=vr(),l=vr(),u=Zm(gn);let d=gn;Oi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=$l.bind(null,P=>""+P),h=$l.bind(null,SC),p=$l.bind(null,Kr);function m(P,Q){let te,ve;return yg(P)?(te=t.getRecordMatcher(P),ve=Q):ve=P,t.addRoute(ve,te)}function g(P){const Q=t.getRecordMatcher(P);Q&&t.removeRoute(Q)}function w(){return t.getRoutes().map(P=>P.record)}function _(P){return!!t.getRecordMatcher(P)}function S(P,Q){if(Q=lt({},Q||u.value),typeof P=="string"){const U=Tl(s,P,Q.path),se=t.resolve({path:U.path},Q),re=i.createHref(U.fullPath);return lt(U,se,{params:p(se.params),hash:Kr(U.hash),redirectedFrom:void 0,href:re})}let te;if(P.path!=null)te=lt({},P,{path:Tl(s,P.path,Q.path).path});else{const U=lt({},P.params);for(const se in U)U[se]==null&&delete U[se];te=lt({},P,{params:h(U)}),Q.params=h(Q.params)}const ve=t.resolve(te,Q),J=P.hash||"";ve.params=c(p(ve.params));const k=TC(n,lt({},P,{hash:wC(J),path:ve.path})),M=i.createHref(k);return lt({fullPath:k,hash:J,query:n===Gf?iA(P.query):P.query||{}},ve,{redirectedFrom:void 0,href:M})}function A(P){return typeof P=="string"?Tl(s,P,u.value.path):lt({},P)}function x(P,Q){if(d!==P)return Gi(8,{from:Q,to:P})}function y(P){return j(P)}function $(P){return y(lt(A(P),{replace:!0}))}function F(P){const Q=P.matched[P.matched.length-1];if(Q&&Q.redirect){const{redirect:te}=Q;let ve=typeof te=="function"?te(P):te;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=A(ve):{path:ve},ve.params={}),lt({query:P.query,hash:P.hash,params:ve.path!=null?{}:P.params},ve)}}function j(P,Q){const te=d=S(P),ve=u.value,J=P.state,k=P.force,M=P.replace===!0,U=F(te);if(U)return j(lt(A(U),{state:typeof U=="object"?lt({},J,U.state):J,force:k,replace:M}),Q||te);const se=te;se.redirectedFrom=Q;let re;return!k&&OC(n,ve,te)&&(re=Gi(16,{to:se,from:ve}),qe(ve,ve,!0,!1)),(re?Promise.resolve(re):T(se,ve)).catch(oe=>Zs(oe)?Zs(oe,2)?oe:ke(oe):ne(oe,se,ve)).then(oe=>{if(oe){if(Zs(oe,2))return j(lt({replace:M},A(oe.to),{state:typeof oe.to=="object"?lt({},J,oe.to.state):J,force:k}),Q||se)}else oe=B(se,ve,!0,M,J);return C(se,ve,oe),oe})}function q(P,Q){const te=x(P,Q);return te?Promise.reject(te):Promise.resolve()}function E(P){const Q=$e.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(P):P()}function T(P,Q){let te;const[ve,J,k]=mA(P,Q);te=Ol(ve.reverse(),"beforeRouteLeave",P,Q);for(const U of ve)U.leaveGuards.forEach(se=>{te.push(_n(se,P,Q))});const M=q.bind(null,P,Q);return te.push(M),G(te).then(()=>{te=[];for(const U of r.list())te.push(_n(U,P,Q));return te.push(M),G(te)}).then(()=>{te=Ol(J,"beforeRouteUpdate",P,Q);for(const U of J)U.updateGuards.forEach(se=>{te.push(_n(se,P,Q))});return te.push(M),G(te)}).then(()=>{te=[];for(const U of k)if(U.beforeEnter)if(Rs(U.beforeEnter))for(const se of U.beforeEnter)te.push(_n(se,P,Q));else te.push(_n(U.beforeEnter,P,Q));return te.push(M),G(te)}).then(()=>(P.matched.forEach(U=>U.enterCallbacks={}),te=Ol(k,"beforeRouteEnter",P,Q,E),te.push(M),G(te))).then(()=>{te=[];for(const U of o.list())te.push(_n(U,P,Q));return te.push(M),G(te)}).catch(U=>Zs(U,8)?U:Promise.reject(U))}function C(P,Q,te){l.list().forEach(ve=>E(()=>ve(P,Q,te)))}function B(P,Q,te,ve,J){const k=x(P,Q);if(k)return k;const M=Q===gn,U=Oi?history.state:{};te&&(ve||M?i.replace(P.fullPath,lt({scroll:M&&U&&U.scroll},J)):i.push(P.fullPath,J)),u.value=P,qe(P,Q,te,M),ke()}let Z;function z(){Z||(Z=i.listen((P,Q,te)=>{if(!Te.listening)return;const ve=S(P),J=F(ve);if(J){j(lt(J,{replace:!0,force:!0}),ve).catch(Mr);return}d=ve;const k=u.value;Oi&&qC(Lf(k.fullPath,te.delta),Qo()),T(ve,k).catch(M=>Zs(M,12)?M:Zs(M,2)?(j(lt(A(M.to),{force:!0}),ve).then(U=>{Zs(U,20)&&!te.delta&&te.type===Hr.pop&&i.go(-1,!1)}).catch(Mr),Promise.reject()):(te.delta&&i.go(-te.delta,!1),ne(M,ve,k))).then(M=>{M=M||B(ve,k,!1),M&&(te.delta&&!Zs(M,8)?i.go(-te.delta,!1):te.type===Hr.pop&&Zs(M,20)&&i.go(-1,!1)),C(ve,k,M)}).catch(Mr)}))}let ie=vr(),W=vr(),V;function ne(P,Q,te){ke(P);const ve=W.list();return ve.length?ve.forEach(J=>J(P,Q,te)):console.error(P),Promise.reject(P)}function de(){return V&&u.value!==gn?Promise.resolve():new Promise((P,Q)=>{ie.add([P,Q])})}function ke(P){return V||(V=!P,z(),ie.list().forEach(([Q,te])=>P?te(P):Q()),ie.reset()),P}function qe(P,Q,te,ve){const{scrollBehavior:J}=e;if(!Oi||!J)return Promise.resolve();const k=!te&&LC(Lf(P.fullPath,0))||(ve||!te)&&history.state&&history.state.scroll||null;return kt().then(()=>J(P,Q,k)).then(M=>M&&IC(M)).catch(M=>ne(M,P,Q))}const ce=P=>i.go(P);let he;const $e=new Set,Te={currentRoute:u,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:w,resolve:S,options:e,push:y,replace:$,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:W.add,isReady:de,install(P){const Q=this;P.component("RouterLink",lA),P.component("RouterView",fA),P.config.globalProperties.$router=Q,Object.defineProperty(P.config.globalProperties,"$route",{enumerable:!0,get:()=>O(u)}),Oi&&!he&&u.value===gn&&(he=!0,y(i.location).catch(J=>{}));const te={};for(const J in gn)Object.defineProperty(te,J,{get:()=>u.value[J],enumerable:!0});P.provide(jo,Q),P.provide(Ec,ko(te)),P.provide(gu,u);const ve=P.unmount;$e.add(P),P.unmount=function(){$e.delete(P),$e.size<1&&(d=gn,Z&&Z(),Z=null,u.value=gn,he=!1,V=!1),ve()}}};function G(P){return P.reduce((Q,te)=>Q.then(()=>E(te)),Promise.resolve())}return Te}function mA(e,t){const s=[],n=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const l=t.matched[o];l&&(e.matched.find(d=>Hi(d,l))?n.push(l):s.push(l));const u=e.matched[o];u&&(t.matched.find(d=>Hi(d,u))||i.push(u))}return[s,n,i]}function os(){return Yt(jo)}function ms(e){return Yt(Ec)}typeof window<"u"&&!window.configs&&(window.configs={API_URL:"http://127.0.0.1:55914/",BASE_PATH:"/"});function pA(e){const t=window.configs[e];if(t===void 0)throw new Error(`Environment variable "${e}" is not defined`);return t}function Cg(e,t){return function(){return e.apply(t,arguments)}}const{toString:gA}=Object.prototype,{getPrototypeOf:wc}=Object,{iterator:Bo,toStringTag:Ag}=Symbol,Uo=(e=>t=>{const s=gA.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Ms=e=>(e=e.toLowerCase(),t=>Uo(t)===e),Ko=e=>t=>typeof t===e,{isArray:nr}=Array,Wi=Ko("undefined");function ta(e){return e!==null&&!Wi(e)&&e.constructor!==null&&!Wi(e.constructor)&&rs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sg=Ms("ArrayBuffer");function vA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sg(e.buffer),t}const bA=Ko("string"),rs=Ko("function"),xg=Ko("number"),sa=e=>e!==null&&typeof e=="object",yA=e=>e===!0||e===!1,Va=e=>{if(Uo(e)!=="object")return!1;const t=wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ag in e)&&!(Bo in e)},_A=e=>{if(!sa(e)||ta(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},EA=Ms("Date"),wA=Ms("File"),CA=Ms("Blob"),AA=Ms("FileList"),SA=e=>sa(e)&&rs(e.pipe),xA=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rs(e.append)&&((t=Uo(e))==="formdata"||t==="object"&&rs(e.toString)&&e.toString()==="[object FormData]"))},$A=Ms("URLSearchParams"),[TA,OA,NA,kA]=["ReadableStream","Request","Response","Headers"].map(Ms),PA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function na(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),nr(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(ta(e))return;const r=s?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let l;for(n=0;n<o;n++)l=r[n],t.call(null,e[l],l,e)}}function $g(e,t){if(ta(e))return null;t=t.toLowerCase();const s=Object.keys(e);let n=s.length,i;for(;n-- >0;)if(i=s[n],t===i.toLowerCase())return i;return null}const Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tg=e=>!Wi(e)&&e!==Jn;function vu(){const{caseless:e,skipUndefined:t}=Tg(this)&&this||{},s={},n=(i,r)=>{const o=e&&$g(s,r)||r;Va(s[o])&&Va(i)?s[o]=vu(s[o],i):Va(i)?s[o]=vu({},i):nr(i)?s[o]=i.slice():(!t||!Wi(i))&&(s[o]=i)};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&na(arguments[i],n);return s}const DA=(e,t,s,{allOwnKeys:n}={})=>(na(t,(i,r)=>{s&&rs(i)?e[r]=Cg(i,s):e[r]=i},{allOwnKeys:n}),e),RA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MA=(e,t,s,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},IA=(e,t,s,n)=>{let i,r,o;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=s!==!1&&wc(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},qA=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;const n=e.indexOf(t,s);return n!==-1&&n===s},LA=e=>{if(!e)return null;if(nr(e))return e;let t=e.length;if(!xg(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},FA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wc(Uint8Array)),VA=(e,t)=>{const n=(e&&e[Bo]).call(e);let i;for(;(i=n.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},QA=(e,t)=>{let s;const n=[];for(;(s=e.exec(t))!==null;)n.push(s);return n},jA=Ms("HTMLFormElement"),BA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,i){return n.toUpperCase()+i}),Xf=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),UA=Ms("RegExp"),Og=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),n={};na(s,(i,r)=>{let o;(o=t(i,r,e))!==!1&&(n[r]=o||i)}),Object.defineProperties(e,n)},KA=e=>{Og(e,(t,s)=>{if(rs(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=e[s];if(rs(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},HA=(e,t)=>{const s={},n=i=>{i.forEach(r=>{s[r]=!0})};return nr(e)?n(e):n(String(e).split(t)),s},GA=()=>{},WA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zA(e){return!!(e&&rs(e.append)&&e[Ag]==="FormData"&&e[Bo])}const YA=e=>{const t=new Array(10),s=(n,i)=>{if(sa(n)){if(t.indexOf(n)>=0)return;if(ta(n))return n;if(!("toJSON"in n)){t[i]=n;const r=nr(n)?[]:{};return na(n,(o,l)=>{const u=s(o,i+1);!Wi(u)&&(r[l]=u)}),t[i]=void 0,r}}return n};return s(e,0)},ZA=Ms("AsyncFunction"),JA=e=>e&&(sa(e)||rs(e))&&rs(e.then)&&rs(e.catch),Ng=((e,t)=>e?setImmediate:t?((s,n)=>(Jn.addEventListener("message",({source:i,data:r})=>{i===Jn&&r===s&&n.length&&n.shift()()},!1),i=>{n.push(i),Jn.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",rs(Jn.postMessage)),XA=typeof queueMicrotask<"u"?queueMicrotask.bind(Jn):typeof process<"u"&&process.nextTick||Ng,eS=e=>e!=null&&rs(e[Bo]),ee={isArray:nr,isArrayBuffer:Sg,isBuffer:ta,isFormData:xA,isArrayBufferView:vA,isString:bA,isNumber:xg,isBoolean:yA,isObject:sa,isPlainObject:Va,isEmptyObject:_A,isReadableStream:TA,isRequest:OA,isResponse:NA,isHeaders:kA,isUndefined:Wi,isDate:EA,isFile:wA,isBlob:CA,isRegExp:UA,isFunction:rs,isStream:SA,isURLSearchParams:$A,isTypedArray:FA,isFileList:AA,forEach:na,merge:vu,extend:DA,trim:PA,stripBOM:RA,inherits:MA,toFlatObject:IA,kindOf:Uo,kindOfTest:Ms,endsWith:qA,toArray:LA,forEachEntry:VA,matchAll:QA,isHTMLForm:jA,hasOwnProperty:Xf,hasOwnProp:Xf,reduceDescriptors:Og,freezeMethods:KA,toObjectSet:HA,toCamelCase:BA,noop:GA,toFiniteNumber:WA,findKey:$g,global:Jn,isContextDefined:Tg,isSpecCompliantForm:zA,toJSONObject:YA,isAsyncFn:ZA,isThenable:JA,setImmediate:Ng,asap:XA,isIterable:eS};function We(e,t,s,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}ee.inherits(We,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const kg=We.prototype,Pg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pg[e]={value:e}});Object.defineProperties(We,Pg);Object.defineProperty(kg,"isAxiosError",{value:!0});We.from=(e,t,s,n,i,r)=>{const o=Object.create(kg);ee.toFlatObject(e,o,function(c){return c!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return We.call(o,l,u,s,n,i),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",r&&Object.assign(o,r),o};const tS=null;function bu(e){return ee.isPlainObject(e)||ee.isArray(e)}function Dg(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function eh(e,t,s){return e?e.concat(t).map(function(i,r){return i=Dg(i),!s&&r?"["+i+"]":i}).join(s?".":""):t}function sS(e){return ee.isArray(e)&&!e.some(bu)}const nS=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Ho(e,t,s){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=ee.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,_){return!ee.isUndefined(_[w])});const n=s.metaTokens,i=s.visitor||c,r=s.dots,o=s.indexes,u=(s.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(i))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(ee.isDate(g))return g.toISOString();if(ee.isBoolean(g))return g.toString();if(!u&&ee.isBlob(g))throw new We("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(g)||ee.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,w,_){let S=g;if(g&&!_&&typeof g=="object"){if(ee.endsWith(w,"{}"))w=n?w:w.slice(0,-2),g=JSON.stringify(g);else if(ee.isArray(g)&&sS(g)||(ee.isFileList(g)||ee.endsWith(w,"[]"))&&(S=ee.toArray(g)))return w=Dg(w),S.forEach(function(x,y){!(ee.isUndefined(x)||x===null)&&t.append(o===!0?eh([w],y,r):o===null?w:w+"[]",d(x))}),!1}return bu(g)?!0:(t.append(eh(_,w,r),d(g)),!1)}const h=[],p=Object.assign(nS,{defaultVisitor:c,convertValue:d,isVisitable:bu});function m(g,w){if(!ee.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(g),ee.forEach(g,function(S,A){(!(ee.isUndefined(S)||S===null)&&i.call(t,S,ee.isString(A)?A.trim():A,w,p))===!0&&m(S,w?w.concat(A):[A])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return m(e),t}function th(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Cc(e,t){this._pairs=[],e&&Ho(e,this,t)}const Rg=Cc.prototype;Rg.append=function(t,s){this._pairs.push([t,s])};Rg.toString=function(t){const s=t?function(n){return t.call(this,n,th)}:th;return this._pairs.map(function(i){return s(i[0])+"="+s(i[1])},"").join("&")};function iS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Mg(e,t,s){if(!t)return e;const n=s&&s.encode||iS;ee.isFunction(s)&&(s={serialize:s});const i=s&&s.serialize;let r;if(i?r=i(t,s):r=ee.isURLSearchParams(t)?t.toString():new Cc(t,s).toString(n),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class sh{constructor(){this.handlers=[]}use(t,s,n){return this.handlers.push({fulfilled:t,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ig={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rS=typeof URLSearchParams<"u"?URLSearchParams:Cc,aS=typeof FormData<"u"?FormData:null,oS=typeof Blob<"u"?Blob:null,lS={isBrowser:!0,classes:{URLSearchParams:rS,FormData:aS,Blob:oS},protocols:["http","https","file","blob","url","data"]},Ac=typeof window<"u"&&typeof document<"u",yu=typeof navigator=="object"&&navigator||void 0,uS=Ac&&(!yu||["ReactNative","NativeScript","NS"].indexOf(yu.product)<0),cS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dS=Ac&&window.location.href||"http://localhost",fS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ac,hasStandardBrowserEnv:uS,hasStandardBrowserWebWorkerEnv:cS,navigator:yu,origin:dS},Symbol.toStringTag,{value:"Module"})),jt={...fS,...lS};function hS(e,t){return Ho(e,new jt.classes.URLSearchParams,{visitor:function(s,n,i,r){return jt.isNode&&ee.isBuffer(s)?(this.append(n,s.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function mS(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pS(e){const t={},s=Object.keys(e);let n;const i=s.length;let r;for(n=0;n<i;n++)r=s[n],t[r]=e[r];return t}function qg(e){function t(s,n,i,r){let o=s[r++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=r>=s.length;return o=!o&&ee.isArray(i)?i.length:o,u?(ee.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!l):((!i[o]||!ee.isObject(i[o]))&&(i[o]=[]),t(s,n,i[o],r)&&ee.isArray(i[o])&&(i[o]=pS(i[o])),!l)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const s={};return ee.forEachEntry(e,(n,i)=>{t(mS(n),i,s,0)}),s}return null}function gS(e,t,s){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}const ia={transitional:Ig,adapter:["xhr","http","fetch"],transformRequest:[function(t,s){const n=s.getContentType()||"",i=n.indexOf("application/json")>-1,r=ee.isObject(t);if(r&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return i?JSON.stringify(qg(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return hS(t,this.formSerializer).toString();if((l=ee.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ho(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return r||i?(s.setContentType("application/json",!1),gS(t)):t}],transformResponse:[function(t){const s=this.transitional||ia.transitional,n=s&&s.forcedJSONParsing,i=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(n&&!this.responseType||i)){const o=!(s&&s.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?We.from(l,We.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{ia.headers[e]={}});const vS=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bS=e=>{const t={};let s,n,i;return e&&e.split(`
|
|
31
|
+
`).forEach(function(o){i=o.indexOf(":"),s=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!s||t[s]&&vS[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},nh=Symbol("internals");function br(e){return e&&String(e).trim().toLowerCase()}function Qa(e){return e===!1||e==null?e:ee.isArray(e)?e.map(Qa):String(e)}function yS(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(e);)t[n[1]]=n[2];return t}const _S=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nl(e,t,s,n,i){if(ee.isFunction(n))return n.call(this,t,s);if(i&&(t=s),!!ee.isString(t)){if(ee.isString(n))return t.indexOf(n)!==-1;if(ee.isRegExp(n))return n.test(t)}}function ES(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function wS(e,t){const s=ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+s,{value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})})}let as=class{constructor(t){t&&this.set(t)}set(t,s,n){const i=this;function r(l,u,d){const c=br(u);if(!c)throw new Error("header name must be a non-empty string");const h=ee.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||u]=Qa(l))}const o=(l,u)=>ee.forEach(l,(d,c)=>r(d,c,u));if(ee.isPlainObject(t)||t instanceof this.constructor)o(t,s);else if(ee.isString(t)&&(t=t.trim())&&!_S(t))o(bS(t),s);else if(ee.isObject(t)&&ee.isIterable(t)){let l={},u,d;for(const c of t){if(!ee.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[d=c[0]]=(u=l[d])?ee.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}o(l,s)}else t!=null&&r(s,t,n);return this}get(t,s){if(t=br(t),t){const n=ee.findKey(this,t);if(n){const i=this[n];if(!s)return i;if(s===!0)return yS(i);if(ee.isFunction(s))return s.call(this,i,n);if(ee.isRegExp(s))return s.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=br(t),t){const n=ee.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||Nl(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let i=!1;function r(o){if(o=br(o),o){const l=ee.findKey(n,o);l&&(!s||Nl(n,n[l],l,s))&&(delete n[l],i=!0)}}return ee.isArray(t)?t.forEach(r):r(t),i}clear(t){const s=Object.keys(this);let n=s.length,i=!1;for(;n--;){const r=s[n];(!t||Nl(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const s=this,n={};return ee.forEach(this,(i,r)=>{const o=ee.findKey(n,r);if(o){s[o]=Qa(i),delete s[r];return}const l=t?ES(r):String(r).trim();l!==r&&delete s[r],s[l]=Qa(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return ee.forEach(this,(n,i)=>{n!=null&&n!==!1&&(s[i]=t&&ee.isArray(n)?n.join(", "):n)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(`
|
|
32
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const n=new this(t);return s.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[nh]=this[nh]={accessors:{}}).accessors,i=this.prototype;function r(o){const l=br(o);n[l]||(wS(i,o),n[l]=!0)}return ee.isArray(t)?t.forEach(r):r(t),this}};as.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(as.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});ee.freezeMethods(as);function kl(e,t){const s=this||ia,n=t||s,i=as.from(n.headers);let r=n.data;return ee.forEach(e,function(l){r=l.call(s,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function Lg(e){return!!(e&&e.__CANCEL__)}function ir(e,t,s){We.call(this,e??"canceled",We.ERR_CANCELED,t,s),this.name="CanceledError"}ee.inherits(ir,We,{__CANCEL__:!0});function Fg(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new We("Request failed with status code "+s.status,[We.ERR_BAD_REQUEST,We.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function CS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function AS(e,t){e=e||10;const s=new Array(e),n=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),c=n[r];o||(o=d),s[i]=u,n[i]=d;let h=r,p=0;for(;h!==i;)p+=s[h++],h=h%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const m=c&&d-c;return m?Math.round(p*1e3/m):void 0}}function SS(e,t){let s=0,n=1e3/t,i,r;const o=(d,c=Date.now())=>{s=c,i=null,r&&(clearTimeout(r),r=null),e(...d)};return[(...d)=>{const c=Date.now(),h=c-s;h>=n?o(d,c):(i=d,r||(r=setTimeout(()=>{r=null,o(i)},n-h)))},()=>i&&o(i)]}const lo=(e,t,s=3)=>{let n=0;const i=AS(50,250);return SS(r=>{const o=r.loaded,l=r.lengthComputable?r.total:void 0,u=o-n,d=i(u),c=o<=l;n=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&c?(l-o)/d:void 0,event:r,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},s)},ih=(e,t)=>{const s=e!=null;return[n=>t[0]({lengthComputable:s,total:e,loaded:n}),t[1]]},rh=e=>(...t)=>ee.asap(()=>e(...t)),xS=jt.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,jt.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,$S=jt.hasStandardBrowserEnv?{write(e,t,s,n,i,r){const o=[e+"="+encodeURIComponent(t)];ee.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),ee.isString(n)&&o.push("path="+n),ee.isString(i)&&o.push("domain="+i),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vg(e,t,s){let n=!TS(t);return e&&(n||s==!1)?OS(e,t):t}const ah=e=>e instanceof as?{...e}:e;function fi(e,t){t=t||{};const s={};function n(d,c,h,p){return ee.isPlainObject(d)&&ee.isPlainObject(c)?ee.merge.call({caseless:p},d,c):ee.isPlainObject(c)?ee.merge({},c):ee.isArray(c)?c.slice():c}function i(d,c,h,p){if(ee.isUndefined(c)){if(!ee.isUndefined(d))return n(void 0,d,h,p)}else return n(d,c,h,p)}function r(d,c){if(!ee.isUndefined(c))return n(void 0,c)}function o(d,c){if(ee.isUndefined(c)){if(!ee.isUndefined(d))return n(void 0,d)}else return n(void 0,c)}function l(d,c,h){if(h in t)return n(d,c);if(h in e)return n(void 0,d)}const u={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,c,h)=>i(ah(d),ah(c),h,!0)};return ee.forEach(Object.keys({...e,...t}),function(c){const h=u[c]||i,p=h(e[c],t[c],c);ee.isUndefined(p)&&h!==l||(s[c]=p)}),s}const Qg=e=>{const t=fi({},e);let{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:o,auth:l}=t;if(t.headers=o=as.from(o),t.url=Mg(Vg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ee.isFormData(s)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(ee.isFunction(s.getHeaders)){const u=s.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{d.includes(c.toLowerCase())&&o.set(c,h)})}}if(jt.hasStandardBrowserEnv&&(n&&ee.isFunction(n)&&(n=n(t)),n||n!==!1&&xS(t.url))){const u=i&&r&&$S.read(r);u&&o.set(i,u)}return t},NS=typeof XMLHttpRequest<"u",kS=NS&&function(e){return new Promise(function(s,n){const i=Qg(e);let r=i.data;const o=as.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=i,c,h,p,m,g;function w(){m&&m(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function S(){if(!_)return;const x=as.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),$={data:!l||l==="text"||l==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:x,config:e,request:_};Fg(function(j){s(j),w()},function(j){n(j),w()},$),_=null}"onloadend"in _?_.onloadend=S:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(S)},_.onabort=function(){_&&(n(new We("Request aborted",We.ECONNABORTED,e,_)),_=null)},_.onerror=function(y){const $=y&&y.message?y.message:"Network Error",F=new We($,We.ERR_NETWORK,e,_);F.event=y||null,n(F),_=null},_.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const $=i.transitional||Ig;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),n(new We(y,$.clarifyTimeoutError?We.ETIMEDOUT:We.ECONNABORTED,e,_)),_=null},r===void 0&&o.setContentType(null),"setRequestHeader"in _&&ee.forEach(o.toJSON(),function(y,$){_.setRequestHeader($,y)}),ee.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),l&&l!=="json"&&(_.responseType=i.responseType),d&&([p,g]=lo(d,!0),_.addEventListener("progress",p)),u&&_.upload&&([h,m]=lo(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(c=x=>{_&&(n(!x||x.type?new ir(null,e,_):x),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const A=CS(i.url);if(A&&jt.protocols.indexOf(A)===-1){n(new We("Unsupported protocol "+A+":",We.ERR_BAD_REQUEST,e));return}_.send(r||null)})},PS=(e,t)=>{const{length:s}=e=e?e.filter(Boolean):[];if(t||s){let n=new AbortController,i;const r=function(d){if(!i){i=!0,l();const c=d instanceof Error?d:this.reason;n.abort(c instanceof We?c:new ir(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,r(new We(`timeout ${t} of ms exceeded`,We.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),e=null)};e.forEach(d=>d.addEventListener("abort",r));const{signal:u}=n;return u.unsubscribe=()=>ee.asap(l),u}},DS=function*(e,t){let s=e.byteLength;if(s<t){yield e;return}let n=0,i;for(;n<s;)i=n+t,yield e.slice(n,i),n=i},RS=async function*(e,t){for await(const s of MS(e))yield*DS(s,t)},MS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:s,value:n}=await t.read();if(s)break;yield n}}finally{await t.cancel()}},oh=(e,t,s,n)=>{const i=RS(e,t);let r=0,o,l=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:c}=await i.next();if(d){l(),u.close();return}let h=c.byteLength;if(s){let p=r+=h;s(p)}u.enqueue(new Uint8Array(c))}catch(d){throw l(d),d}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},lh=64*1024,{isFunction:Ta}=ee,IS=(({Request:e,Response:t})=>({Request:e,Response:t}))(ee.global),{ReadableStream:uh,TextEncoder:ch}=ee.global,dh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qS=e=>{e=ee.merge.call({skipUndefined:!0},IS,e);const{fetch:t,Request:s,Response:n}=e,i=t?Ta(t):typeof fetch=="function",r=Ta(s),o=Ta(n);if(!i)return!1;const l=i&&Ta(uh),u=i&&(typeof ch=="function"?(g=>w=>g.encode(w))(new ch):async g=>new Uint8Array(await new s(g).arrayBuffer())),d=r&&l&&dh(()=>{let g=!1;const w=new s(jt.origin,{body:new uh,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!w}),c=o&&l&&dh(()=>ee.isReadableStream(new n("").body)),h={stream:c&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(w,_)=>{let S=w&&w[g];if(S)return S.call(w);throw new We(`Response type '${g}' is not supported`,We.ERR_NOT_SUPPORT,_)})});const p=async g=>{if(g==null)return 0;if(ee.isBlob(g))return g.size;if(ee.isSpecCompliantForm(g))return(await new s(jt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(g)||ee.isArrayBuffer(g))return g.byteLength;if(ee.isURLSearchParams(g)&&(g=g+""),ee.isString(g))return(await u(g)).byteLength},m=async(g,w)=>{const _=ee.toFiniteNumber(g.getContentLength());return _??p(w)};return async g=>{let{url:w,method:_,data:S,signal:A,cancelToken:x,timeout:y,onDownloadProgress:$,onUploadProgress:F,responseType:j,headers:q,withCredentials:E="same-origin",fetchOptions:T}=Qg(g),C=t||fetch;j=j?(j+"").toLowerCase():"text";let B=PS([A,x&&x.toAbortSignal()],y),Z=null;const z=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let ie;try{if(F&&d&&_!=="get"&&_!=="head"&&(ie=await m(q,S))!==0){let qe=new s(w,{method:"POST",body:S,duplex:"half"}),ce;if(ee.isFormData(S)&&(ce=qe.headers.get("content-type"))&&q.setContentType(ce),qe.body){const[he,$e]=ih(ie,lo(rh(F)));S=oh(qe.body,lh,he,$e)}}ee.isString(E)||(E=E?"include":"omit");const W=r&&"credentials"in s.prototype,V={...T,signal:B,method:_.toUpperCase(),headers:q.normalize().toJSON(),body:S,duplex:"half",credentials:W?E:void 0};Z=r&&new s(w,V);let ne=await(r?C(Z,T):C(w,V));const de=c&&(j==="stream"||j==="response");if(c&&($||de&&z)){const qe={};["status","statusText","headers"].forEach(Te=>{qe[Te]=ne[Te]});const ce=ee.toFiniteNumber(ne.headers.get("content-length")),[he,$e]=$&&ih(ce,lo(rh($),!0))||[];ne=new n(oh(ne.body,lh,he,()=>{$e&&$e(),z&&z()}),qe)}j=j||"text";let ke=await h[ee.findKey(h,j)||"text"](ne,g);return!de&&z&&z(),await new Promise((qe,ce)=>{Fg(qe,ce,{data:ke,headers:as.from(ne.headers),status:ne.status,statusText:ne.statusText,config:g,request:Z})})}catch(W){throw z&&z(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new We("Network Error",We.ERR_NETWORK,g,Z),{cause:W.cause||W}):We.from(W,W&&W.code,g,Z)}}},LS=new Map,jg=e=>{let t=e?e.env:{};const{fetch:s,Request:n,Response:i}=t,r=[n,i,s];let o=r.length,l=o,u,d,c=LS;for(;l--;)u=r[l],d=c.get(u),d===void 0&&c.set(u,d=l?new Map:qS(t)),c=d;return d};jg();const _u={http:tS,xhr:kS,fetch:{get:jg}};ee.forEach(_u,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fh=e=>`- ${e}`,FS=e=>ee.isFunction(e)||e===null||e===!1,Bg={getAdapter:(e,t)=>{e=ee.isArray(e)?e:[e];const{length:s}=e;let n,i;const r={};for(let o=0;o<s;o++){n=e[o];let l;if(i=n,!FS(n)&&(i=_u[(l=String(n)).toLowerCase()],i===void 0))throw new We(`Unknown adapter '${l}'`);if(i&&(ee.isFunction(i)||(i=i.get(t))))break;r[l||"#"+o]=i}if(!i){const o=Object.entries(r).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=s?o.length>1?`since :
|
|
33
|
+
`+o.map(fh).join(`
|
|
34
|
+
`):" "+fh(o[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:_u};function Pl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ir(null,e)}function hh(e){return Pl(e),e.headers=as.from(e.headers),e.data=kl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bg.getAdapter(e.adapter||ia.adapter,e)(e).then(function(n){return Pl(e),n.data=kl.call(e,e.transformResponse,n),n.headers=as.from(n.headers),n},function(n){return Lg(n)||(Pl(e),n&&n.response&&(n.response.data=kl.call(e,e.transformResponse,n.response),n.response.headers=as.from(n.response.headers))),Promise.reject(n)})}const Ug="1.12.2",Go={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Go[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mh={};Go.transitional=function(t,s,n){function i(r,o){return"[Axios v"+Ug+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,l)=>{if(t===!1)throw new We(i(o," has been removed"+(s?" in "+s:"")),We.ERR_DEPRECATED);return s&&!mh[o]&&(mh[o]=!0,console.warn(i(o," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(r,o,l):!0}};Go.spelling=function(t){return(s,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function VS(e,t,s){if(typeof e!="object")throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],o=t[r];if(o){const l=e[r],u=l===void 0||o(l,r,e);if(u!==!0)throw new We("option "+r+" must be "+u,We.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new We("Unknown option "+r,We.ERR_BAD_OPTION)}}const ja={assertOptions:VS,validators:Go},Ls=ja.validators;let ri=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sh,response:new sh}}async request(t,s){try{return await this._request(t,s)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
35
|
+
`+r):n.stack=r}catch{}}throw n}}_request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=fi(this.defaults,s);const{transitional:n,paramsSerializer:i,headers:r}=s;n!==void 0&&ja.assertOptions(n,{silentJSONParsing:Ls.transitional(Ls.boolean),forcedJSONParsing:Ls.transitional(Ls.boolean),clarifyTimeoutError:Ls.transitional(Ls.boolean)},!1),i!=null&&(ee.isFunction(i)?s.paramsSerializer={serialize:i}:ja.assertOptions(i,{encode:Ls.function,serialize:Ls.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),ja.assertOptions(s,{baseUrl:Ls.spelling("baseURL"),withXsrfToken:Ls.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let o=r&&ee.merge(r.common,r[s.method]);r&&ee.forEach(["delete","get","head","post","put","patch","common"],g=>{delete r[g]}),s.headers=as.concat(o,r);const l=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(s)===!1||(u=u&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let c,h=0,p;if(!u){const g=[hh.bind(this),void 0];for(g.unshift(...l),g.push(...d),p=g.length,c=Promise.resolve(s);h<p;)c=c.then(g[h++],g[h++]);return c}p=l.length;let m=s;for(;h<p;){const g=l[h++],w=l[h++];try{m=g(m)}catch(_){w.call(this,_);break}}try{c=hh.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,p=d.length;h<p;)c=c.then(d[h++],d[h++]);return c}getUri(t){t=fi(this.defaults,t);const s=Vg(t.baseURL,t.url,t.allowAbsoluteUrls);return Mg(s,t.params,t.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(t){ri.prototype[t]=function(s,n){return this.request(fi(n||{},{method:t,url:s,data:(n||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function s(n){return function(r,o,l){return this.request(fi(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ri.prototype[t]=s(),ri.prototype[t+"Form"]=s(!0)});let QS=class Kg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(r){s=r});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(l=>{n.subscribe(l),r=l}).then(i);return o.cancel=function(){n.unsubscribe(r)},o},t(function(r,o,l){n.reason||(n.reason=new ir(r,o,l),s(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const t=new AbortController,s=n=>{t.abort(n)};return this.subscribe(s),t.signal.unsubscribe=()=>this.unsubscribe(s),t.signal}static source(){let t;return{token:new Kg(function(i){t=i}),cancel:t}}};function jS(e){return function(s){return e.apply(null,s)}}function BS(e){return ee.isObject(e)&&e.isAxiosError===!0}const Eu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Eu).forEach(([e,t])=>{Eu[t]=e});function Hg(e){const t=new ri(e),s=Cg(ri.prototype.request,t);return ee.extend(s,ri.prototype,t,{allOwnKeys:!0}),ee.extend(s,t,null,{allOwnKeys:!0}),s.create=function(i){return Hg(fi(e,i))},s}const wt=Hg(ia);wt.Axios=ri;wt.CanceledError=ir;wt.CancelToken=QS;wt.isCancel=Lg;wt.VERSION=Ug;wt.toFormData=Ho;wt.AxiosError=We;wt.Cancel=wt.CanceledError;wt.all=function(t){return Promise.all(t)};wt.spread=jS;wt.isAxiosError=BS;wt.mergeConfig=fi;wt.AxiosHeaders=as;wt.formToJSON=e=>qg(ee.isHTMLForm(e)?new FormData(e):e);wt.getAdapter=Bg.getAdapter;wt.HttpStatusCode=Eu;wt.default=wt;const{Axios:XB,AxiosError:eU,CanceledError:tU,isCancel:sU,CancelToken:nU,VERSION:iU,all:rU,Cancel:aU,isAxiosError:oU,spread:lU,toFormData:uU,AxiosHeaders:cU,HttpStatusCode:dU,formToJSON:fU,getAdapter:hU,mergeConfig:mU}=wt,US=pA("API_URL").replace(/\/+$/,""),KS=wt.create({baseURL:US,headers:{"Content-Type":"application/json"}}),Je=e=>{const t=wt.CancelToken.source(),s=KS({...e,cancelToken:t.token}).then(n=>n.data).catch(n=>{throw n.response?.data.error?{error:n.response.data.error}:n});return s.cancel=()=>{t.cancel("Query was cancelled")},s},HS=e=>Je({url:"/api/v1/exchanges",method:"GET",signal:e}),Gn=()=>["api","v1","exchanges"],GS=e=>{const{query:t}={};return{queryKey:Gn(),queryFn:({signal:i})=>HS(i),...t}};function Gg(e,t){const s=GS(),n=Jt(s);return n.queryKey=O(s).queryKey,n}const WS=(e,t)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}`,method:"DELETE"})),zS=e=>{const t=["deleteApiV1NamespacesNsExchangesFanoutFanout"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o}=i??{};return WS(r,o)},...s}},Sc=(e,t)=>{const s=zS(e);return Nt(s)},YS=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues`,method:"GET",signal:s})),wu=(e,t)=>["api","v1","namespaces",e,"exchanges","fanout",t,"queues"],ZS=(e,t,s)=>{const{query:n}=s??{};return{queryKey:wu(e,t),queryFn:({signal:o})=>YS(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function Wg(e,t,s,n){const i=ZS(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const JS=(e,t,s)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues/${s}`,method:"PUT"})),XS=e=>{const t=["putApiV1NamespacesNsExchangesFanoutFanoutQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o,queue:l}=i??{};return JS(r,o,l)},...s}},xc=(e,t)=>{const s=XS(e);return Nt(s)},ex=(e,t,s)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues/${s}`,method:"DELETE"})),tx=e=>{const t=["deleteApiV1NamespacesNsExchangesFanoutFanoutQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o,queue:l}=i??{};return ex(r,o,l)},...s}},sx=(e,t)=>{const s=tx(e);return Nt(s)},nx=(e,t)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}`,method:"DELETE"})),ix=e=>{const t=["deleteApiV1NamespacesNsExchangesDirectDirect"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o}=i??{};return nx(r,o)},...s}},$c=(e,t)=>{const s=ix(e);return Nt(s)},rx=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/routing-keys`,method:"GET",signal:s})),Cu=(e,t)=>["api","v1","namespaces",e,"exchanges","direct",t,"routing-keys"],ax=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Cu(e,t),queryFn:({signal:o})=>rx(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function zg(e,t,s,n){const i=ax(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const ox=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues`,method:"GET",params:O(s),signal:n})),Au=(e,t,s)=>["api","v1","namespaces",e,"exchanges","direct",t,"queues",...s?[s]:[]],lx=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:Au(e,t,s),queryFn:({signal:l})=>ox(e,t,s,l),enabled:v(()=>!!(O(e)&&O(t))),...i}};function Yg(e,t,s,n,i){const r=lx(e,t,s,n),o=Jt(r);return o.queryKey=O(r).queryKey,o}const ux=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues/${s}`,method:"PUT",params:O(n)})),cx=e=>{const t=["putApiV1NamespacesNsExchangesDirectDirectQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o,queue:l,params:u}=i??{};return ux(r,o,l,u)},...s}},Tc=(e,t)=>{const s=cx(e);return Nt(s)},dx=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues/${s}`,method:"DELETE",params:O(n)})),fx=e=>{const t=["deleteApiV1NamespacesNsExchangesDirectDirectQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o,queue:l,params:u}=i??{};return dx(r,o,l,u)},...s}},hx=(e,t)=>{const s=fx(e);return Nt(s)},mx=(e,t)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}`,method:"DELETE"})),px=e=>{const t=["deleteApiV1NamespacesNsExchangesTopicTopic"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o}=i??{};return mx(r,o)},...s}},Oc=(e,t)=>{const s=px(e);return Nt(s)},gx=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/binding-patterns`,method:"GET",signal:s})),Su=(e,t)=>["api","v1","namespaces",e,"exchanges","topic",t,"binding-patterns"],vx=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Su(e,t),queryFn:({signal:o})=>gx(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function Zg(e,t,s,n){const i=vx(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const bx=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues`,method:"GET",params:O(s),signal:n})),xu=(e,t,s)=>["api","v1","namespaces",e,"exchanges","topic",t,"queues",...s?[s]:[]],yx=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:xu(e,t,s),queryFn:({signal:l})=>bx(e,t,s,l),enabled:v(()=>!!(O(e)&&O(t))),...i}};function Jg(e,t,s,n,i){const r=yx(e,t,s,n),o=Jt(r);return o.queryKey=O(r).queryKey,o}const _x=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues/${s}`,method:"PUT",params:O(n)})),Ex=e=>{const t=["putApiV1NamespacesNsExchangesTopicTopicQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o,queue:l,params:u}=i??{};return _x(r,o,l,u)},...s}},Nc=(e,t)=>{const s=Ex(e);return Nt(s)},wx=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues/${s}`,method:"DELETE",params:O(n)})),Cx=e=>{const t=["deleteApiV1NamespacesNsExchangesTopicTopicQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o,queue:l,params:u}=i??{};return wx(r,o,l,u)},...s}},Ax=(e,t)=>{const s=Cx(e);return Nt(s)},Xt=Vo("pageContent",()=>{const e=_e({pageTitle:"",pageSubtitle:void 0,pageIcon:void 0,pageActions:[],sectionTitle:void 0,sectionMeta:void 0,isLoading:!1,error:null,isEmpty:!1,emptyStateConfig:void 0}),t=v(()=>e.value.pageActions.length>0),s=v(()=>!!(e.value.sectionTitle||e.value.sectionMeta)),n=v(()=>!!e.value.error),i=v(()=>e.value.isEmpty&&!e.value.isLoading&&!n.value);function r(_){e.value.pageTitle=_.title,e.value.pageSubtitle=_.subtitle,e.value.pageIcon=_.icon}function o(_){e.value.pageActions=_}function l(_){const S=e.value.pageActions.findIndex(A=>A.id===_.id);S>=0?e.value.pageActions[S]=_:e.value.pageActions.push(_)}function u(_){e.value.pageActions=e.value.pageActions.filter(S=>S.id!==_)}function d(_,S){const A=e.value.pageActions.find(x=>x.id===_);A&&Object.assign(A,S)}function c(_){e.value.sectionTitle=_.title,e.value.sectionMeta=_.meta}function h(_){e.value.isLoading=_,_&&(e.value.error=null)}function p(_){e.value.error=_,_&&(e.value.isLoading=!1)}function m(_,S){e.value.isEmpty=_,e.value.emptyStateConfig=S}function g(){e.value={pageTitle:"",pageSubtitle:void 0,pageIcon:void 0,pageActions:[],sectionTitle:void 0,sectionMeta:void 0,isLoading:!1,error:null,isEmpty:!1,emptyStateConfig:void 0}}function w(_){Object.assign(e.value,_)}return{state:e,hasPageActions:t,hasSectionHeader:s,hasError:n,showEmptyState:i,setPageHeader:r,setPageActions:o,addPageAction:l,removePageAction:u,updatePageAction:d,setSectionHeader:c,setLoadingState:h,setErrorState:p,setEmptyState:m,resetPageContent:g,setPageContent:w}});function Xg(e){return typeof e=="object"&&e!==null}function Sx(e){return!Xg(e)||!("message"in e)?!1:typeof e.message=="string"}function xx(e){return!Xg(e)||!("details"in e)?!1:typeof e.details=="object"&&e.details!==null}function at(e){if(e==null)return null;if(typeof e=="string"){const t=e.trim();return t?{message:t}:null}if(e instanceof Error)return{message:e.message?.trim()||e.name||"Unknown error",details:{name:e.name,stack:e.stack??void 0}};if(Sx(e)){const t={message:e.message.trim()};if(t.message)return xx(e)&&(t.details=e.details),t}return{message:"An unexpected error occurred"}}const $x={class:"page-content"},Tx={key:0,class:"page-header"},Ox={class:"page-header-content"},Nx={class:"page-title-section"},kx={key:0,class:"page-icon"},Px={key:0,class:"emoji-icon"},Dx={class:"title-content"},Rx={class:"page-title"},Mx={key:0,class:"page-subtitle"},Ix={key:0,class:"page-actions"},qx=["disabled","title","onClick"],Lx={class:"btn-text"},Fx={class:"content-section"},Vx={key:0,class:"section-header"},Qx={key:0,class:"section-title"},jx={key:1,class:"section-meta"},Bx={key:1,class:"state-container loading-state"},Ux={class:"state-content"},Kx={class:"loading-spinner"},Hx={class:"spinner-border",role:"status"},Gx={class:"visually-hidden"},Wx={class:"state-title"},zx={class:"state-message"},Yx={key:2,class:"state-container error-state"},Zx={class:"state-content"},Jx={class:"state-title"},Xx={class:"state-message"},e$={key:0,class:"state-details"},t$={class:"state-actions"},s$={key:3,class:"state-container empty-state"},n$={class:"state-content"},i$={class:"state-icon empty-icon"},r$={key:0,class:"emoji-icon"},a$={class:"state-title"},o$={class:"state-message"},l$={class:"state-actions"},u$={key:4,class:"main-content"},c$=Ge({__name:"PageContent",props:{showPageHeader:{type:Boolean,default:!0},showSectionHeader:{type:Boolean,default:!0},loadingMessage:{default:"Please wait while we load the content..."},loadingTitle:{default:"Loading"}},setup(e){const t=e,s=Xt(),n=v(()=>s.state),i=v(()=>s.hasPageActions),r=v(()=>s.hasSectionHeader),o=v(()=>s.hasError),l=v(()=>s.showEmptyState);function u(p){if(!p||p.includes("bi-")||p.includes("bi ")||p.includes("-")||p.includes(" "))return!1;const m=p.trim();return m.length>=1&&m.length<=4&&!/^[a-zA-Z]/.test(m)&&!/\d+$/.test(m)}function d(p){!p.disabled&&!p.loading&&p.handler()}function c(){n.value.emptyStateConfig?.actionHandler&&n.value.emptyStateConfig.actionHandler()}function h(p){return`btn ${{primary:"btn-primary",secondary:"btn-secondary",danger:"btn-danger",refresh:"btn-refresh"}[p.variant||"refresh"]}`}return(p,m)=>(N(),D("div",$x,[e.showPageHeader?(N(),D("div",Tx,[a("div",Ox,[a("div",Nx,[n.value.pageIcon?(N(),D("div",kx,[u(n.value.pageIcon)?(N(),D("span",Px,L(n.value.pageIcon),1)):(N(),D("i",{key:1,class:Re(n.value.pageIcon)},null,2))])):fe("",!0),a("div",Dx,[a("h1",Rx,L(n.value.pageTitle),1),n.value.pageSubtitle?(N(),D("p",Mx,L(n.value.pageSubtitle),1)):fe("",!0)])])]),i.value?(N(),D("div",Ix,[(N(!0),D(Ae,null,bt(n.value.pageActions,g=>(N(),D("button",{key:g.id,class:Re(h(g)),disabled:g.disabled||g.loading,title:g.tooltip||g.label,onClick:w=>d(g)},[g.icon&&u(g.icon)?(N(),D("span",{key:0,class:Re([{"spin-emoji":g.loading},"action-emoji"])},L(g.icon),3)):g.icon?(N(),D("i",{key:1,class:Re([g.icon,{spin:g.loading}])},null,2)):fe("",!0),a("span",Lx,L(g.label),1)],10,qx))),128))])):fe("",!0)])):fe("",!0),a("div",Fx,[t.showSectionHeader&&r.value?(N(),D("div",Vx,[n.value.sectionTitle?(N(),D("h2",Qx,L(n.value.sectionTitle),1)):fe("",!0),n.value.sectionMeta?(N(),D("div",jx,L(n.value.sectionMeta),1)):fe("",!0)])):fe("",!0),n.value.isLoading?(N(),D("div",Bx,[a("div",Ux,[a("div",Kx,[a("div",Hx,[a("span",Gx,L(t.loadingMessage),1)])]),a("h3",Wx,L(t.loadingTitle),1),a("p",zx,L(t.loadingMessage),1)])])):o.value?(N(),D("div",Yx,[a("div",Zx,[m[0]||(m[0]=a("div",{class:"state-icon error-icon"},[a("span",{class:"emoji-icon"},"⚠️")],-1)),a("h3",Jx,L(n.value.error?.title||"An unexpected error occurred"),1),a("p",Xx,L(n.value.error?.message),1),n.value.error?.details?(N(),D("p",e$,L(n.value.error.details),1)):fe("",!0),a("div",t$,[Mi(p.$slots,"error-actions",{},void 0)])])])):l.value&&n.value.emptyStateConfig?(N(),D("div",s$,[a("div",n$,[a("div",i$,[u(n.value.emptyStateConfig.icon)?(N(),D("span",r$,L(n.value.emptyStateConfig.icon),1)):(N(),D("i",{key:1,class:Re(n.value.emptyStateConfig.icon)},null,2))]),a("h3",a$,L(n.value.emptyStateConfig.title),1),a("p",o$,L(n.value.emptyStateConfig.message),1),a("div",l$,[Mi(p.$slots,"empty-actions",{},()=>[n.value.emptyStateConfig.actionHandler?(N(),D("button",{key:0,class:"btn btn-primary",onClick:c},L(n.value.emptyStateConfig.actionLabel||"Refresh"),1)):fe("",!0)])])])])):(N(),D("div",u$,[Mi(p.$slots,"default",{},void 0)]))])]))}}),tt=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},ps=tt(c$,[["__scopeId","data-v-d8f5921f"]]),d$=["aria-labelledby","aria-describedby"],f$={class:"modal-content"},h$={class:"modal-header"},m$={key:0,class:"header-icon"},p$={class:"header-content"},g$=["id"],v$=["id"],b$={class:"modal-body"},y$={class:"modal-body-inner"},_$={key:0,class:"modal-footer"},E$=Ge({__name:"BaseModal",props:{isVisible:{type:Boolean},title:{},subtitle:{},size:{},icon:{}},emits:["close"],setup(e,{emit:t}){const s=e,n=t,i=_e(null),r=_e(null),o=v(()=>{switch(s.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}}),l=v(()=>`modal-title-${s.title.replace(/\s+/g,"-").toLowerCase()}`),u=v(()=>s.subtitle?`modal-desc-${s.title.replace(/\s+/g,"-").toLowerCase()}`:void 0);function d(){n("close")}function c(){n("close")}function h(){document.body.style.overflow="hidden"}function p(){document.body.style.overflow=""}async function m(){await kt(),r.value=document.activeElement||null;const S=i.value;if(!S)return;(S.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]||S).focus()}function g(){r.value?.focus?.()}function w(S){if(S.key!=="Tab")return;const A=i.value;if(!A)return;const x=Array.from(A.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(j=>!j.hasAttribute("disabled")&&!j.getAttribute("aria-hidden"));if(x.length===0){S.preventDefault(),A.focus();return}const y=x[0],$=x[x.length-1],F=document.activeElement;S.shiftKey?(F===y||F===A)&&(S.preventDefault(),$.focus()):F===$&&(S.preventDefault(),y.focus())}function _(S){if(S.key==="Escape"){S.stopPropagation(),d();return}w(S)}return Xe(()=>s.isVisible,async S=>{S?(h(),await m(),document.addEventListener("keydown",_,!0)):(document.removeEventListener("keydown",_,!0),p(),g())},{immediate:!0}),Bt(()=>{s.isVisible&&(h(),m(),document.addEventListener("keydown",_,!0))}),tr(()=>{document.removeEventListener("keydown",_,!0),p()}),(S,A)=>e.isVisible?(N(),ct(LE,{key:0,to:"body"},[a("div",{class:"modal-overlay",role:"dialog","aria-labelledby":l.value,"aria-describedby":u.value,"aria-modal":"true",onClick:c},[a("div",{ref_key:"modalContainer",ref:i,class:Re(["modal-container",o.value]),tabindex:"-1",onClick:A[0]||(A[0]=Pt(()=>{},["stop"]))},[a("div",f$,[a("header",h$,[e.icon?(N(),D("div",m$,[a("i",{class:Re(e.icon)},null,2)])):fe("",!0),a("div",p$,[a("h2",{id:l.value,class:"modal-title"},L(e.title),9,g$),e.subtitle?(N(),D("p",{key:0,id:u.value,class:"modal-subtitle"},L(e.subtitle),9,v$)):fe("",!0)]),a("button",{type:"button",class:"btn-close","aria-label":"Close modal",onClick:d},[...A[1]||(A[1]=[a("i",{class:"bi bi-x"},null,-1)])])]),a("main",b$,[a("div",y$,[Mi(S.$slots,"body",{},void 0)])]),S.$slots.footer?(N(),D("footer",_$,[Mi(S.$slots,"footer",{},void 0)])):fe("",!0)])],2)],8,d$)])):fe("",!0)}}),Hs=tt(E$,[["__scopeId","data-v-b6985a1b"]]),w$={class:"dialog-body"},C$={class:"confirmation-message"},A$={key:0,class:"message-preview"},S$={class:"actions"},x$=["disabled"],$$=["disabled"],T$={key:0,class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},O$=Ge({__name:"ConfirmationDialogModal",props:{isVisible:{type:Boolean},title:{},message:{},confirmText:{default:"Confirm"},variant:{default:"primary"},isLoading:{type:Boolean,default:!1}},emits:["close","confirm"],setup(e,{emit:t}){const s=e,n=t;function i(){s.isLoading||n("close")}function r(){s.isLoading||n("confirm")}const o=v(()=>{switch(s.variant){case"danger":return"btn-danger";case"warning":return"btn-warning";case"secondary":return"btn-secondary";case"primary":default:return"btn-primary"}}),l=v(()=>{switch(s.variant){case"danger":return"bi-exclamation-triangle-fill";case"warning":return"bi-exclamation-circle-fill";default:return"bi-question-circle-fill"}});return(u,d)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:e.title,subtitle:void 0,icon:`bi ${l.value}`,size:"sm",onClose:i},{body:je(()=>[a("div",w$,[a("p",C$,L(e.message),1),u.$slots["message-preview"]?(N(),D("div",A$,[Mi(u.$slots,"message-preview",{},void 0,!0)])):fe("",!0)])]),footer:je(()=>[a("div",S$,[a("button",{class:"btn btn-outline-secondary",type:"button",disabled:e.isLoading,onClick:i}," Cancel ",8,x$),a("button",{class:Re(["btn",o.value]),type:"button",disabled:e.isLoading,onClick:r},[e.isLoading?(N(),D("span",T$)):fe("",!0),X(" "+L(e.isLoading?"Processing...":e.confirmText),1)],10,$$)])]),_:3},8,["is-visible","title","icon"]))}}),hi=tt(O$,[["__scopeId","data-v-7963a349"]]);var Ie=(e=>(e[e.DIRECT=0]="DIRECT",e[e.FANOUT=1]="FANOUT",e[e.TOPIC=2]="TOPIC",e))(Ie||{});const N$={class:"form-content"},k$={class:"form-section"},P$={class:"form-grid"},D$={class:"form-group"},R$=["disabled"],M$={class:"form-group"},I$=["disabled"],q$={class:"form-group"},L$=["disabled"],F$=["value"],V$={id:"exchange-type-help",class:"field-help"},Q$={key:0,class:"help-options"},j$={class:"help-option"},B$={class:"form-section"},U$={class:"form-grid"},K$={class:"form-group"},H$=["disabled"],G$={key:0,class:"form-group"},W$=["disabled"],z$={key:1,class:"form-group"},Y$=["disabled"],Z$={key:0,class:"error-section"},J$={class:"error-content"},X$={class:"error-text"},eT={class:"error-message"},tT=["disabled"],sT=["disabled"],nT=Ge({__name:"CreateExchangeModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean},error:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s={mounted:x=>x.focus()},n=e,i=t,r=_e(""),o=_e("default"),l=_e(Ie.DIRECT),u=_e(""),d=_e(""),c=_e(""),h=[{value:Ie.DIRECT,label:"Direct",description:"Routes messages to queues based on exact routing key match"},{value:Ie.FANOUT,label:"Fanout",description:"Routes messages to all bound queues (ignores routing key)"},{value:Ie.TOPIC,label:"Topic",description:"Routes messages based on wildcard pattern matching (* and #)"}],p=v(()=>h.find(x=>x.value===l.value)),m=v(()=>{const x=r.value.trim()!==""&&o.value.trim()!==""&&u.value.trim()!=="";return l.value===Ie.DIRECT?x&&d.value.trim()!=="":l.value===Ie.TOPIC?x&&c.value.trim()!=="":x}),g=v(()=>l.value===Ie.DIRECT),w=v(()=>l.value===Ie.TOPIC),_=v(()=>n.error?at(n.error):null);function S(){if(m.value&&!n.isLoading){const x={name:r.value.trim(),ns:o.value.trim(),type:l.value,queueName:u.value.trim()};l.value===Ie.DIRECT&&d.value.trim()&&(x.routingKey=d.value.trim()),l.value===Ie.TOPIC&&c.value.trim()&&(x.bindingPattern=c.value.trim()),i("confirm",x)}}function A(){i("cancel")}return Xe(()=>n.isVisible,x=>{x||(r.value="",o.value="default",l.value=Ie.DIRECT,u.value="",d.value="",c.value="")}),Xe(()=>l.value,()=>{d.value="",c.value=""}),(x,y)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:"Create New Exchange",subtitle:"Configure your message exchange settings",icon:"bi bi-diagram-3-fill",onClose:A},{body:je(()=>[a("div",N$,[y[21]||(y[21]=a("div",{class:"alert alert-info mb-4"},[a("i",{class:"bi bi-info-circle me-2"}),a("strong",null,"Note:"),X(" Exchanges are created by binding the first queue to them. You'll need to specify both the exchange details and the initial queue binding. ")],-1)),a("form",{onSubmit:Pt(S,["prevent"])},[a("section",k$,[y[11]||(y[11]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),X(" Exchange Details ")]),a("p",{class:"section-description"}," Define the exchange name, namespace, and type ")],-1)),a("div",P$,[a("div",D$,[y[6]||(y[6]=a("label",{for:"exchange-name",class:"form-label"},[a("i",{class:"bi bi-diagram-3 label-icon"}),X(" Exchange Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"exchange-name","onUpdate:modelValue":y[0]||(y[0]=$=>r.value=$),type:"text",class:"form-control",placeholder:"e.g., user-events",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"exchange-name-help"},null,8,R$),[[rn,r.value],[s]]),y[7]||(y[7]=a("div",{id:"exchange-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",M$,[y[8]||(y[8]=a("label",{for:"exchange-ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),X(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"exchange-ns","onUpdate:modelValue":y[1]||(y[1]=$=>o.value=$),type:"text",class:"form-control",placeholder:"e.g., default",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"exchange-ns-help"},null,8,I$),[[rn,o.value]]),y[9]||(y[9]=a("div",{id:"exchange-ns-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Organize exchanges by environment or application ")],-1))]),a("div",q$,[y[10]||(y[10]=a("label",{for:"exchange-type",class:"form-label"},[a("i",{class:"bi bi-gear-fill label-icon"}),X(" Exchange Type "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("select",{id:"exchange-type","onUpdate:modelValue":y[2]||(y[2]=$=>l.value=$),class:"form-select",disabled:e.isLoading,"aria-describedby":"exchange-type-help"},[(N(),D(Ae,null,bt(h,$=>a("option",{key:$.value,value:$.value},L($.label),9,F$)),64))],8,L$),[[Hp,l.value]]),a("div",V$,[p.value?(N(),D("div",Q$,[a("div",j$,[a("strong",null,L(p.value.label)+":",1),X(" "+L(p.value.description),1)])])):fe("",!0)])])])]),a("section",B$,[y[18]||(y[18]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-link-45deg section-icon"}),X(" Initial Queue Binding ")]),a("p",{class:"section-description"}," Exchanges are created by binding the first queue to them ")],-1)),a("div",U$,[a("div",K$,[y[12]||(y[12]=a("label",{for:"queue-name",class:"form-label"},[a("i",{class:"bi bi-list-ul label-icon"}),X(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"queue-name","onUpdate:modelValue":y[3]||(y[3]=$=>u.value=$),type:"text",class:"form-control",placeholder:"e.g., user-notifications",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"queue-name-help"},null,8,H$),[[rn,u.value]]),y[13]||(y[13]=a("div",{id:"queue-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" The first queue to bind to this exchange ")],-1))]),g.value?(N(),D("div",G$,[y[14]||(y[14]=a("label",{for:"routing-key",class:"form-label"},[a("i",{class:"bi bi-key-fill label-icon"}),X(" Routing Key "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"routing-key","onUpdate:modelValue":y[4]||(y[4]=$=>d.value=$),type:"text",class:"form-control",placeholder:"e.g., user.created",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"routing-key-help"},null,8,W$),[[rn,d.value]]),y[15]||(y[15]=a("div",{id:"routing-key-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Messages with this exact routing key will be routed to the queue ")],-1))])):fe("",!0),w.value?(N(),D("div",z$,[y[16]||(y[16]=a("label",{for:"binding-pattern",class:"form-label"},[a("i",{class:"bi bi-asterisk label-icon"}),X(" Binding Pattern "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"binding-pattern","onUpdate:modelValue":y[5]||(y[5]=$=>c.value=$),type:"text",class:"form-control",placeholder:"e.g., user.* or user.#",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"binding-pattern-help"},null,8,Y$),[[rn,c.value]]),y[17]||(y[17]=a("div",{id:"binding-pattern-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"*"),X(" matches exactly one word ")]),a("div",{class:"help-option"},[a("strong",null,"#"),X(" matches zero or more words ")])])],-1))])):fe("",!0)])]),_.value?(N(),D("div",Z$,[a("div",J$,[y[20]||(y[20]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",X$,[y[19]||(y[19]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",eT,L(_.value),1)])])])):fe("",!0)],32)])]),footer:je(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:A},[...y[22]||(y[22]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ",-1)])],8,tT),a("button",{type:"button",class:"btn btn-primary",disabled:!m.value||e.isLoading,onClick:S},[e.isLoading?(N(),D(Ae,{key:0},[y[23]||(y[23]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),y[24]||(y[24]=X(" Creating Exchange... ",-1))],64)):(N(),D(Ae,{key:1},[y[25]||(y[25]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),y[26]||(y[26]=X(" Create Exchange ",-1))],64))],8,sT)]),_:1},8,["is-visible"]))}}),ev=tt(nT,[["__scopeId","data-v-b1fc3af7"]]);var tv=(e=>(e[e.UNPUBLISHED=-1]="UNPUBLISHED",e[e.SCHEDULED=0]="SCHEDULED",e[e.PENDING=1]="PENDING",e[e.PROCESSING=2]="PROCESSING",e[e.ACKNOWLEDGED=3]="ACKNOWLEDGED",e[e.UNACK_DELAYING=4]="UNACK_DELAYING",e[e.UNACK_REQUEUING=5]="UNACK_REQUEUING",e[e.DEAD_LETTERED=6]="DEAD_LETTERED",e))(tv||{}),us=(e=>(e[e.POINT_TO_POINT=0]="POINT_TO_POINT",e[e.PUB_SUB=1]="PUB_SUB",e))(us||{}),Ht=(e=>(e[e.LIFO_QUEUE=0]="LIFO_QUEUE",e[e.FIFO_QUEUE=1]="FIFO_QUEUE",e[e.PRIORITY_QUEUE=2]="PRIORITY_QUEUE",e))(Ht||{});const iT=["aria-label"],rT={key:0,class:"loading-overlay",role:"status","aria-live":"polite"},aT={class:"card-header"},oT={class:"header-content"},lT=["title"],uT={class:"header-text"},cT=["title"],dT={class:"card-subtitle"},fT=["aria-label","aria-expanded","onKeydown"],hT={key:0,class:"dropdown-menu",role:"menu","aria-label":"Exchange actions"},mT={class:"card-body"},pT={key:0,class:"body-loading-overlay",role:"status","aria-live":"polite"},gT={key:1,class:"error-state",role:"alert"},vT={class:"error-message"},bT={class:"stats-section"},yT={class:"stat-item"},_T=["aria-label"],ET={class:"stat-label"},wT={class:"queues-section"},CT={class:"queues-title"},AT={key:0,class:"metadata-info"},ST={key:0,class:"queues-list",role:"list"},xT={class:"queue-info"},$T={class:"queue-name"},TT=["aria-label","onClick"],OT={key:0,class:"queue-item more",role:"listitem"},NT={class:"queue-info"},kT={key:1,class:"no-queues-message"},PT={class:"card-footer"},DT=["aria-label"],ph=10,RT=Ge({__name:"ExchangeCard",props:{exchange:{},isDeleting:{type:Boolean}},emits:["delete","viewDetails","bindQueue","unbindQueue","publishMessage"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>s.exchange.type===Ie.DIRECT),r=v(()=>s.exchange.type===Ie.TOPIC),o=v(()=>s.exchange.type===Ie.FANOUT),{data:l,isLoading:u,error:d,refetch:c}=zg(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:i}}),{data:h,isLoading:p,error:m,refetch:g}=Zg(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:r}}),{data:w,isLoading:_,error:S,refetch:A}=Wg(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:o}}),x=v(()=>s.exchange.type!==Ie.DIRECT?[]:l.value?.data||[]),y=v(()=>s.exchange.type!==Ie.TOPIC?[]:h.value?.data||[]),$=Array.from({length:ph},(P,Q)=>{const te=v(()=>x.value[Q]||""),ve=v(()=>s.exchange.type===Ie.DIRECT&&Q<x.value.length&&!!x.value[Q]);return Yg(v(()=>s.exchange.ns),v(()=>s.exchange.name),v(()=>({routingKey:te.value})),{query:{enabled:ve}})}),F=Array.from({length:ph},(P,Q)=>{const te=v(()=>y.value[Q]||""),ve=v(()=>s.exchange.type===Ie.TOPIC&&Q<y.value.length&&!!y.value[Q]);return Jg(v(()=>s.exchange.ns),v(()=>s.exchange.name),v(()=>({bindingPattern:te.value})),{query:{enabled:ve}})}),j=v(()=>{switch(s.exchange.type){case Ie.DIRECT:return u.value||$.some((P,Q)=>Q<x.value.length&&P.isLoading.value);case Ie.FANOUT:return _.value;case Ie.TOPIC:return p.value||F.some((P,Q)=>Q<y.value.length&&P.isLoading.value);default:return!1}}),q=v(()=>{switch(s.exchange.type){case Ie.DIRECT:return d.value||$.find((P,Q)=>Q<x.value.length&&P.error.value)?.error.value;case Ie.FANOUT:return S.value;case Ie.TOPIC:return m.value||F.find((P,Q)=>Q<y.value.length&&P.error.value)?.error.value;default:return null}}),E=v(()=>!!q.value),T=v(()=>at(q.value)),C=()=>{switch(s.exchange.type){case Ie.DIRECT:c(),$.forEach((P,Q)=>{Q<x.value.length&&P.refetch()});break;case Ie.FANOUT:A();break;case Ie.TOPIC:g(),F.forEach((P,Q)=>{Q<y.value.length&&P.refetch()});break}},B=v(()=>{let P=[],Q=[],te=[];const ve=s.exchange.type;if(ve===Ie.DIRECT)$.forEach((k,M)=>{if(M>=x.value.length)return;const U=k.data?.value?.data;if(U&&Array.isArray(U)){const se=U.map(re=>re.name).filter(Boolean);P.push(...se),se.length>0&&Q.push(x.value[M])}});else if(ve===Ie.FANOUT){const k=w.value?.data;k&&Array.isArray(k)&&(P=k.map(M=>M.name).filter(Boolean))}else F.forEach((k,M)=>{if(M>=y.value.length)return;const U=k.data?.value?.data;if(U&&Array.isArray(U)){const se=U.map(re=>re.name).filter(Boolean);P.push(...se),se.length>0&&te.push(y.value[M])}});const J=[...new Set(P)];return{items:J,total:J.length,routingKeys:Q,bindingPatterns:te}}),Z=_e(!1),z=_e(null),ie=P=>{z.value&&!z.value.contains(P.target)&&(Z.value=!1)},W=P=>{P.key==="Escape"&&Z.value&&(Z.value=!1)};Bt(()=>{document.addEventListener("click",ie),document.addEventListener("keydown",W)}),tr(()=>{document.removeEventListener("click",ie),document.removeEventListener("keydown",W)});const V=v(()=>{switch(s.exchange.type){case Ie.DIRECT:return{icon:"bi-arrow-right",color:"direct",name:"Direct",description:"Routes messages to queues based on exact routing key matches"};case Ie.FANOUT:return{icon:"bi-arrows-angle-expand",color:"fanout",name:"Fanout",description:"Broadcasts messages to all bound queues"};case Ie.TOPIC:return{icon:"bi-hash",color:"topic",name:"Topic",description:"Routes messages based on routing key patterns"};default:return{icon:"bi-question-circle",color:"gray",name:"Unknown",description:"Unknown exchange type"}}}),ne=v(()=>B.value.items.slice(0,3)),de=v(()=>Math.max(0,B.value.total-ne.value.length)),ke=v(()=>{switch(s.exchange.type){case Ie.DIRECT:return B.value.routingKeys?.length?`${B.value.routingKeys.length} routing key${B.value.routingKeys.length>1?"s":""}`:null;case Ie.TOPIC:return B.value.bindingPatterns?.length?`${B.value.bindingPatterns.length} binding pattern${B.value.bindingPatterns.length>1?"s":""}`:null;default:return null}}),qe=()=>{Z.value=!1,n("delete",s.exchange)},ce=()=>{Z.value=!1,n("bindQueue",s.exchange)},he=P=>{Z.value=!1,n("unbindQueue",{exchange:s.exchange,queueName:P})},$e=()=>{Z.value=!1,n("publishMessage",s.exchange)},Te=()=>{n("viewDetails",s.exchange)},G=()=>{Z.value=!Z.value};return(P,Q)=>(N(),D("article",{class:Re(["exchange-card",{"is-deleting":e.isDeleting}]),role:"article","aria-label":`${V.value.name} exchange ${e.exchange.name} in ${e.exchange.ns} namespace`},[e.isDeleting?(N(),D("div",rT,[...Q[0]||(Q[0]=[a("div",{class:"spinner-border text-light",role:"status","aria-hidden":"true"},null,-1),a("span",{class:"loading-text"},"Deleting exchange...",-1)])])):fe("",!0),a("header",aT,[a("div",oT,[a("div",{class:Re(["header-icon",V.value.color]),title:V.value.description},[a("i",{class:Re(["bi",V.value.icon]),"aria-hidden":"true"},null,2)],10,lT),a("div",uT,[a("h3",{class:"card-title",title:e.exchange.name},L(e.exchange.name),9,cT),a("span",dT,L(V.value.name)+" Exchange in '"+L(e.exchange.ns)+"' ",1)])]),a("div",{ref_key:"dropdown",ref:z,class:"actions-menu"},[a("button",{type:"button",class:"btn-actions","aria-label":`More options for ${e.exchange.name} exchange`,"aria-expanded":Z.value,"aria-haspopup":"true",onClick:G,onKeydown:[an(G,["enter"]),an(Pt(G,["prevent"]),["space"])]},[...Q[1]||(Q[1]=[a("i",{class:"bi bi-three-dots-vertical","aria-hidden":"true"},null,-1)])],40,fT),we(Jw,{name:"dropdown"},{default:je(()=>[Z.value?(N(),D("div",hT,[a("button",{type:"button",class:"dropdown-item",role:"menuitem",onClick:ce},[...Q[2]||(Q[2]=[a("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),a("span",null,"Bind Queue",-1)])]),a("button",{type:"button",class:"dropdown-item",role:"menuitem",onClick:$e},[...Q[3]||(Q[3]=[a("i",{class:"bi bi-send","aria-hidden":"true"},null,-1),a("span",null,"Publish Message",-1)])]),Q[5]||(Q[5]=a("div",{class:"dropdown-divider",role:"separator"},null,-1)),a("button",{type:"button",class:"dropdown-item danger",role:"menuitem",onClick:qe},[...Q[4]||(Q[4]=[a("i",{class:"bi bi-trash","aria-hidden":"true"},null,-1),a("span",null,"Delete Exchange",-1)])])])):fe("",!0)]),_:1})],512)]),a("main",mT,[j.value?(N(),D("div",pT,[...Q[6]||(Q[6]=[a("div",{class:"spinner-border text-primary",role:"status","aria-hidden":"true"},null,-1),a("span",null,"Loading queue data...",-1)])])):E.value?(N(),D("div",gT,[Q[8]||(Q[8]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("p",vT,L(T.value),1),a("button",{type:"button",class:"btn-retry",onClick:C},[...Q[7]||(Q[7]=[a("i",{class:"bi bi-arrow-clockwise","aria-hidden":"true"},null,-1),X(" Retry ",-1)])])])):(N(),D(Ae,{key:2},[a("div",bT,[a("div",yT,[a("span",{class:"stat-value","aria-label":`${B.value.total} queues bound`},L(B.value.total),9,_T),a("span",ET,L(B.value.total===1?"Queue":"Queues")+" Bound ",1)])]),a("div",wT,[a("h4",CT,[Q[9]||(Q[9]=a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"},null,-1)),X(" "+L(B.value.total>0?"Sample Queues":"Bound Queues")+" ",1),ke.value?(N(),D("span",AT," ("+L(ke.value)+") ",1)):fe("",!0)]),B.value.total>0?(N(),D("ul",ST,[(N(!0),D(Ae,null,bt(ne.value,te=>(N(),D("li",{key:te,class:"queue-item",role:"listitem"},[a("div",xT,[Q[10]||(Q[10]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",$T,L(te),1)]),a("button",{type:"button",class:"btn-unbind-queue","aria-label":`Unbind queue ${te}`,onClick:ve=>he(te)},[...Q[11]||(Q[11]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1)])],8,TT)]))),128)),de.value>0?(N(),D("li",OT,[a("div",NT,[Q[12]||(Q[12]=a("i",{class:"bi bi-three-dots","aria-hidden":"true"},null,-1)),a("span",null,"+"+L(de.value)+" more",1)])])):fe("",!0)])):(N(),D("div",kT,[Q[14]||(Q[14]=a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1)),Q[15]||(Q[15]=a("p",null,"No queues are bound to this exchange.",-1)),a("button",{type:"button",class:"btn-bind-now",onClick:ce},[...Q[13]||(Q[13]=[a("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),X(" Bind a queue ",-1)])])]))])],64))]),a("footer",PT,[a("button",{type:"button",class:"btn-details","aria-label":`View details for ${e.exchange.name} exchange`,onClick:Te},[...Q[16]||(Q[16]=[a("span",null,"View Details",-1),a("i",{class:"bi bi-arrow-right-circle","aria-hidden":"true"},null,-1)])],8,DT)])],10,iT))}}),sv=tt(RT,[["__scopeId","data-v-0a3113d1"]]),MT={key:0,class:"grid grid-cols-2 gap-6"},IT=Ge({__name:"ExchangesView",setup(e){const t=os(),s=Xt(),n=fn(),i=_e(!1),r=_e(!1),o=_e(null),{data:l,isLoading:u,isError:d,error:c,refetch:h}=Gg(),p=Sc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Gn()}),i.value=!1,o.value=null},onError:ie=>{console.error("Failed to delete fanout exchange:",ie)}}}),m=$c({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Gn()}),i.value=!1,o.value=null},onError:ie=>{console.error("Failed to delete direct exchange:",ie)}}}),g=Oc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Gn()}),i.value=!1,o.value=null},onError:ie=>{console.error("Failed to delete topic exchange:",ie)}}}),w=xc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Gn()}),r.value=!1},onError:ie=>{console.error("Failed to create fanout exchange:",ie)}}}),_=Tc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Gn()}),r.value=!1},onError:ie=>{console.error("Failed to create direct exchange:",ie)}}}),S=Nc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Gn()}),r.value=!1},onError:ie=>{console.error("Failed to create topic exchange:",ie)}}}),A=v(()=>p.isPending.value||m.isPending.value||g.isPending.value),x=v(()=>w.isPending.value||_.isPending.value||S.isPending.value),y=v(()=>at(w.error.value?.error||_.error.value?.error||S.error.value?.error)),$=v(()=>l.value?.data??[]),F=v(()=>at(c.value)),j=ie=>{o.value=ie,i.value=!0},q=()=>{r.value=!0},E=ie=>{console.log("Binding queue to:",ie.name)},T=async()=>{if(!o.value)return;const{type:ie,name:W,ns:V}=o.value;try{switch(ie){case Ie.FANOUT:await p.mutateAsync({ns:V,fanout:W});break;case Ie.DIRECT:await m.mutateAsync({ns:V,direct:W});break;case Ie.TOPIC:await g.mutateAsync({ns:V,topic:W});break;default:throw new Error(`Unsupported exchange type: ${ie}`)}}catch(ne){console.error("Failed to delete exchange:",ne)}},C=async ie=>{const{name:W,type:V,ns:ne,queueName:de,routingKey:ke,bindingPattern:qe}=ie;try{switch(V){case Ie.FANOUT:await w.mutateAsync({ns:ne,fanout:W,queue:de});break;case Ie.DIRECT:await _.mutateAsync({ns:ne,direct:W,queue:de,params:{routingKey:String(ke)}});break;case Ie.TOPIC:await S.mutateAsync({ns:ne,topic:W,queue:de,params:{bindingPattern:String(qe)}});break;default:throw new Error(`Unsupported exchange type: ${V}`)}}catch(ce){console.error("Failed to create exchange:",ce)}},B=ie=>{const W={exchange:ie.name,ns:ie.ns};return ie.type==Ie.DIRECT?{name:"Direct Exchange",params:W}:ie.type==Ie.TOPIC?{name:"Topic Exchange",params:W}:{name:"Fanout Exchange",params:W}},Z=ie=>{const W=B(ie);t.push(W)},z=v(()=>[{id:"create-exchange",label:"Create Exchange",icon:"bi bi-plus-lg",variant:"primary",disabled:x.value,loading:x.value,handler:q,tooltip:"Create a new exchange by binding a queue to it"},{id:"refresh-exchanges",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:u.value,loading:u.value,handler:()=>h(),tooltip:"Refresh exchanges list"}]);return At(()=>{s.setPageHeader({title:"Exchanges",subtitle:"View and manage exchange queue bindings in your RedisSMQ instance",icon:"bi bi-diagram-3"}),s.setPageActions(z.value),s.setLoadingState(u.value),d.value?(s.setErrorState(F.value),s.setEmptyState(!1)):!u.value&&$.value.length===0?(s.setErrorState(null),s.setEmptyState(!0,{icon:"bi bi-diagram-3",title:"No Exchanges Found",message:"No exchanges are currently configured in your RedisSMQ instance. Create your first exchange to start routing messages.",actionLabel:"Create Exchange",actionHandler:q})):(s.setErrorState(null),s.setEmptyState(!1))}),(ie,W)=>(N(),D("div",null,[we(ps,null,{default:je(()=>[$.value.length>0?(N(),D("div",MT,[(N(!0),D(Ae,null,bt($.value,V=>(N(),ct(sv,{key:`${V.name}-${V.ns}`,exchange:V,"is-deleting":A.value&&o.value?.name===V.name&&o.value?.ns===V.ns,onDelete:j,onViewDetails:Z,onBindQueue:E},null,8,["exchange","is-deleting"]))),128))])):fe("",!0)]),_:1}),we(hi,{"is-visible":i.value,"is-loading":A.value,title:"Delete Exchange",message:`Are you sure you want to delete the exchange '${o.value?.name}'? This action cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:T,onClose:W[0]||(W[0]=V=>{i.value=!1,o.value=null})},null,8,["is-visible","is-loading","message"]),we(ev,{"is-visible":r.value,"is-loading":x.value,error:y.value,onConfirm:C,onCancel:W[1]||(W[1]=V=>r.value=!1)},null,8,["is-visible","is-loading","error"])]))}}),qT=tt(IT,[["__scopeId","data-v-3662fcb4"]]),nv=e=>Je({url:"/api/v1/queues",method:"GET",signal:e}),iv=()=>["api","v1","queues"],LT=e=>{const{query:t}={};return{queryKey:iv(),queryFn:({signal:i})=>nv(i),...t}};function FT(e,t){const s=LT(),n=Jt(s);return n.queryKey=O(s).queryKey,n}const VT=(e,t)=>(e=O(e),Je({url:"/api/v1/queues",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:t})),QT=e=>{const t=["postApiV1Queues"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{data:r}=i??{};return VT(r)},...s}},jT=(e,t)=>{const s=QT(e);return Nt(s)},rv=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"GET",signal:s})),av=(e,t)=>["api","v1","namespaces",e,"queues",t],BT=(e,t,s)=>{const{query:n}=s??{};return{queryKey:av(e,t),queryFn:({signal:o})=>rv(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function UT(e,t,s,n){const i=BT(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const KT=(e,t)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"DELETE"})),HT=e=>{const t=["deleteApiV1NamespacesNsQueuesName"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o}=i??{};return KT(r,o)},...s}},GT=(e,t)=>{const s=HT(e);return Nt(s)},ov=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumers`,method:"GET",signal:s})),lv=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumers"],WT=(e,t,s)=>{const{query:n}=s??{};return{queryKey:lv(e,t),queryFn:({signal:o})=>ov(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function zT(e,t,s,n){const i=WT(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const YT={class:"home-page"},ZT={class:"hero-section"},JT={class:"hero-content"},XT={class:"hero-text"},eO={class:"hero-stats"},tO={class:"stat-item"},sO={class:"stat-value"},nO={class:"stat-item"},iO={class:"stat-value"},rO={class:"stat-item"},aO={class:"stat-value"},oO={class:"hero-actions"},lO={class:"dashboard-main"},uO={key:0,class:"loading-section"},cO={key:1,class:"dashboard-content"},dO={class:"overview-section"},fO={class:"stats-grid"},hO={class:"stat-card"},mO={class:"stat-content"},pO={class:"stat-number"},gO={class:"stat-card"},vO={class:"stat-content"},bO={class:"stat-number"},yO={class:"stat-card"},_O={class:"stat-content"},EO={class:"stat-number"},wO={class:"stat-card"},CO={class:"stat-content"},AO={class:"stat-number"},SO={class:"stat-card"},xO={class:"stat-content"},$O={class:"stat-number"},TO={class:"actions-section"},OO={class:"actions-grid"},NO=["onClick"],kO={class:"action-icon"},PO={class:"action-content"},DO={class:"action-title"},RO={class:"action-description"},MO={class:"getting-started-section"},IO={class:"getting-started-card"},qO={class:"getting-started-content"},LO={class:"getting-started-actions"},FO=Ge({__name:"HomeView",setup(e){const t=os(),s=fn(),n=_e({totalQueues:0,totalMessages:0,currentlyInProcess:0,pendingMessages:0,activeConsumers:0,lastUpdated:new Date}),i=[{title:"Create Queue",description:"Set up a new message queue",icon:"bi-plus-circle-fill",color:"primary",action:()=>t.push({name:"Queues"})},{title:"View Queues",description:"Manage existing queues",icon:"bi-list-ul",color:"info",action:()=>t.push({name:"Queues"})},{title:"Monitor Activity",description:"Check system performance",icon:"bi-graph-up",color:"success",action:()=>t.push({name:"Monitoring"})},{title:"Documentation",description:"Learn more about RedisSMQ",icon:"bi-book-fill",color:"secondary",action:()=>window.open("https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/docs/README.md","_blank")}],r=_e(!0),o=v(()=>({totalQueues:n.value.totalQueues.toLocaleString(),totalMessages:n.value.totalMessages.toLocaleString(),pendingMessages:n.value.pendingMessages.toLocaleString(),currentlyInProcess:n.value.currentlyInProcess.toLocaleString(),activeConsumers:n.value.activeConsumers.toLocaleString()})),l=async()=>{try{r.value=!0;const c=(await s.fetchQuery({queryKey:iv(),queryFn:()=>nv()})).data;if(!c||c.length===0){Object.assign(n.value,{totalQueues:0,totalMessages:0,pendingMessages:0,currentlyInProcess:0,activeConsumers:0,lastUpdated:new Date});return}const h=c.map(async g=>{const w=s.fetchQuery({queryKey:av(g.ns,g.name),queryFn:()=>rv(g.ns,g.name)}),_=s.fetchQuery({queryKey:lv(g.ns,g.name),queryFn:()=>ov(g.ns,g.name)}),[S,A]=await Promise.all([w,_]),x=S.data,y=A.data??{};return{details:x,consumers:y}}),m=(await Promise.all(h)).reduce((g,w)=>(w.details&&(g.totalMessages+=w.details.messagesCount??0,g.pendingMessages+=w.details.pendingMessagesCount??0,g.currentlyInProcess+=w.details.processingMessagesCount??0),w.consumers&&(g.activeConsumers+=Object.keys(w.consumers).length),g),{totalMessages:0,pendingMessages:0,currentlyInProcess:0,activeConsumers:0});n.value={...m,totalQueues:c.length,lastUpdated:new Date}}catch(d){console.error("Failed to load dashboard data:",d)}finally{r.value=!1}},u=()=>{l()};return Bt(()=>{l()}),(d,c)=>(N(),D("div",YT,[a("section",ZT,[a("div",JT,[a("div",XT,[c[5]||(c[5]=a("h1",{class:"hero-title"},[a("span",{class:"hero-icon"},"🚀"),X(" Welcome to RedisSMQ ")],-1)),c[6]||(c[6]=a("p",{class:"hero-subtitle"}," Powerful Redis-based message queue management made simple ",-1)),a("div",eO,[a("div",tO,[a("span",sO,L(o.value.totalQueues),1),c[2]||(c[2]=a("span",{class:"stat-label"},"Active Queues",-1))]),a("div",nO,[a("span",iO,L(o.value.totalMessages),1),c[3]||(c[3]=a("span",{class:"stat-label"},"Messages Processed",-1))]),a("div",rO,[a("span",aO,L(o.value.activeConsumers),1),c[4]||(c[4]=a("span",{class:"stat-label"},"Active Consumers",-1))])])]),a("div",oO,[a("button",{class:"btn btn-primary btn-lg hero-btn",onClick:c[0]||(c[0]=h=>O(t).push({name:"Queues"}))},[...c[7]||(c[7]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),X(" Get Started ",-1)])])])])]),a("main",lO,[r.value?(N(),D("div",uO,[...c[8]||(c[8]=[a("div",{class:"loading-content"},[a("div",{class:"spinner-border text-primary mb-3",role:"status","aria-live":"polite","aria-label":"Loading dashboard"}),a("h5",{class:"loading-title"},"Loading dashboard..."),a("p",{class:"loading-subtitle"},"Fetching system information")],-1)])])):(N(),D("div",cO,[a("section",dO,[a("div",{class:"section-header"},[c[10]||(c[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-speedometer2 me-2"}),X(" System Overview ")],-1)),a("button",{class:"btn btn-outline-primary btn-sm refresh-btn",onClick:u},[...c[9]||(c[9]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),X(" Refresh ",-1)])])]),a("div",fO,[a("div",hO,[c[13]||(c[13]=a("div",{class:"stat-icon queues-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",mO,[a("div",pO,L(o.value.totalQueues),1),c[11]||(c[11]=a("div",{class:"stat-title"},"Total Queues",-1)),c[12]||(c[12]=a("div",{class:"stat-description"},"Active message queues",-1))])]),a("div",gO,[c[16]||(c[16]=a("div",{class:"stat-icon messages-icon"},[a("i",{class:"bi bi-envelope-fill"})],-1)),a("div",vO,[a("div",bO,L(o.value.totalMessages),1),c[14]||(c[14]=a("div",{class:"stat-title"},"Messages Processed",-1)),c[15]||(c[15]=a("div",{class:"stat-description"},"Total messages handled",-1))])]),a("div",yO,[c[19]||(c[19]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-gear-fill"})],-1)),a("div",_O,[a("div",EO,L(o.value.currentlyInProcess),1),c[17]||(c[17]=a("div",{class:"stat-title"},"Currently in Process",-1)),c[18]||(c[18]=a("div",{class:"stat-description"}," Total message being processed ",-1))])]),a("div",wO,[c[22]||(c[22]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-hourglass-split"})],-1)),a("div",CO,[a("div",AO,L(o.value.pendingMessages),1),c[20]||(c[20]=a("div",{class:"stat-title"},"Pending Messages",-1)),c[21]||(c[21]=a("div",{class:"stat-description"}," Total message in the waiting queue ",-1))])]),a("div",SO,[c[25]||(c[25]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",xO,[a("div",$O,L(o.value.activeConsumers),1),c[23]||(c[23]=a("div",{class:"stat-title"},"Active Consumers",-1)),c[24]||(c[24]=a("div",{class:"stat-description"},"Connected consumers",-1))])])])]),a("section",TO,[c[27]||(c[27]=a("div",{class:"section-header"},[a("h2",{class:"section-title"},[a("i",{class:"bi bi-lightning-fill me-2"}),X(" Quick Actions ")])],-1)),a("div",OO,[(N(),D(Ae,null,bt(i,h=>a("div",{key:h.title,class:Re(["action-card",`action-${h.color}`]),onClick:h.action},[a("div",kO,[a("i",{class:Re(h.icon)},null,2)]),a("div",PO,[a("h3",DO,L(h.title),1),a("p",RO,L(h.description),1)]),c[26]||(c[26]=a("div",{class:"action-arrow"},[a("i",{class:"bi bi-arrow-right"})],-1))],10,NO)),64))])]),a("section",MO,[a("div",IO,[a("div",qO,[c[30]||(c[30]=li('<h2 class="getting-started-title" data-v-a461c207><i class="bi bi-rocket-takeoff me-2" data-v-a461c207></i> Getting Started </h2><p class="getting-started-description" data-v-a461c207> New to RedisSMQ? Follow these steps to set up your first message queue and start processing messages. </p><div class="getting-started-steps" data-v-a461c207><div class="step-item" data-v-a461c207><div class="step-number" data-v-a461c207>1</div><div class="step-content" data-v-a461c207><h4 class="step-title" data-v-a461c207>Create a Queue</h4><p class="step-description" data-v-a461c207> Set up your first message queue with the desired configuration </p></div></div><div class="step-item" data-v-a461c207><div class="step-number" data-v-a461c207>2</div><div class="step-content" data-v-a461c207><h4 class="step-title" data-v-a461c207>Configure Consumers</h4><p class="step-description" data-v-a461c207> Add consumer groups to process messages efficiently </p></div></div><div class="step-item" data-v-a461c207><div class="step-number" data-v-a461c207>3</div><div class="step-content" data-v-a461c207><h4 class="step-title" data-v-a461c207>Monitor Performance</h4><p class="step-description" data-v-a461c207> Track message processing and system performance </p></div></div></div>',3)),a("div",LO,[a("button",{class:"btn btn-primary",onClick:c[1]||(c[1]=h=>O(t).push({name:"Queues"}))},[...c[28]||(c[28]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),X(" Create Your First Queue ",-1)])]),c[29]||(c[29]=a("a",{href:"https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/docs/README.md",target:"_blank",rel:"noopener noreferrer",class:"btn btn-outline-secondary"},[a("i",{class:"bi bi-book me-2"}),X(" Read Documentation ")],-1))])])])])]))])]))}}),VO=tt(FO,[["__scopeId","data-v-a461c207"]]),Ba=[{path:"/",name:"Home",component:VO,meta:{title:"Home"}},{path:"/ns",name:"Namespaces",component:()=>Mf(()=>Promise.resolve().then(()=>hL),void 0),meta:{title:"Namespace Management",breadcrumbs:"Namespaces"}},{path:"/queues",name:"Queues",component:()=>Mf(()=>import("./QueuesView-gKXkgwTk.js"),__vite__mapDeps([0,1])),meta:{title:"Queue Management",breadcrumbs:"Queues"}},{path:"/exchanges",name:"Exchanges",component:qT}],uv=6e4,cv=36e5,Oa=43200,gh=1440,vh=Symbol.for("constructDateFrom");function Wo(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&vh in e?e[vh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ks(e,t){return Wo(e,e)}let QO={};function jO(){return QO}function bh(e){const t=Ks(e),s=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return s.setUTCFullYear(t.getFullYear()),+e-+s}function kc(e,...t){const s=Wo.bind(null,e||t.find(n=>typeof n=="object"));return t.map(s)}function Ua(e,t){const s=+Ks(e)-+Ks(t);return s<0?-1:s>0?1:s}function BO(e){return Wo(e,Date.now())}function UO(e,t,s){const[n,i]=kc(s?.in,e,t),r=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return r*12+o}function KO(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function HO(e,t){return+Ks(e)-+Ks(t)}function GO(e,t){const s=Ks(e);return s.setHours(23,59,59,999),s}function WO(e,t){const s=Ks(e),n=s.getMonth();return s.setFullYear(s.getFullYear(),n+1,0),s.setHours(23,59,59,999),s}function zO(e,t){const s=Ks(e);return+GO(s)==+WO(s)}function YO(e,t,s){const[n,i,r]=kc(s?.in,e,e,t),o=Ua(i,r),l=Math.abs(UO(i,r));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*l);let u=Ua(i,r)===-o;zO(n)&&l===1&&Ua(n,r)===1&&(u=!1);const d=o*(l-+u);return d===0?0:d}function ZO(e,t,s){const n=HO(e,t)/1e3;return KO(s?.roundingMethod)(n)}const JO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},XO=(e,t,s)=>{let n;const i=JO[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};function Dl(e){return(t={})=>{const s=t.width?String(t.width):e.defaultWidth;return e.formats[s]||e.formats[e.defaultWidth]}}const eN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nN={date:Dl({formats:eN,defaultWidth:"full"}),time:Dl({formats:tN,defaultWidth:"full"}),dateTime:Dl({formats:sN,defaultWidth:"full"})},iN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rN=(e,t,s,n)=>iN[e];function yr(e){return(t,s)=>{const n=s?.context?String(s.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=s?.width?String(s.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=s?.width?String(s.width):e.defaultWidth;i=e.values[l]||e.values[o]}const r=e.argumentCallback?e.argumentCallback(t):t;return i[r]}}const aN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lN={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},uN={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},dN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fN=(e,t)=>{const s=Number(e),n=s%100;if(n>20||n<10)switch(n%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},hN={ordinalNumber:fN,era:yr({values:aN,defaultWidth:"wide"}),quarter:yr({values:oN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yr({values:lN,defaultWidth:"wide"}),day:yr({values:uN,defaultWidth:"wide"}),dayPeriod:yr({values:cN,defaultWidth:"wide",formattingValues:dN,defaultFormattingWidth:"wide"})};function _r(e){return(t,s={})=>{const n=s.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],r=t.match(i);if(!r)return null;const o=r[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?pN(l,h=>h.test(o)):mN(l,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(u):u,d=s.valueCallback?s.valueCallback(d):d;const c=t.slice(o.length);return{value:d,rest:c}}}function mN(e,t){for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return s}function pN(e,t){for(let s=0;s<e.length;s++)if(t(e[s]))return s}function gN(e){return(t,s={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],r=t.match(e.parsePattern);if(!r)return null;let o=e.valueCallback?e.valueCallback(r[0]):r[0];o=s.valueCallback?s.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const vN=/^(\d+)(th|st|nd|rd)?/i,bN=/\d+/i,yN={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_N={any:[/^b/i,/^(a|c)/i]},EN={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wN={any:[/1/i,/2/i,/3/i,/4/i]},CN={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},AN={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},SN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xN={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$N={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},TN={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ON={ordinalNumber:gN({matchPattern:vN,parsePattern:bN,valueCallback:e=>parseInt(e,10)}),era:_r({matchPatterns:yN,defaultMatchWidth:"wide",parsePatterns:_N,defaultParseWidth:"any"}),quarter:_r({matchPatterns:EN,defaultMatchWidth:"wide",parsePatterns:wN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_r({matchPatterns:CN,defaultMatchWidth:"wide",parsePatterns:AN,defaultParseWidth:"any"}),day:_r({matchPatterns:SN,defaultMatchWidth:"wide",parsePatterns:xN,defaultParseWidth:"any"}),dayPeriod:_r({matchPatterns:$N,defaultMatchWidth:"any",parsePatterns:TN,defaultParseWidth:"any"})},NN={code:"en-US",formatDistance:XO,formatLong:nN,formatRelative:rN,localize:hN,match:ON,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kN(e,t,s){const n=jO(),i=s?.locale??n.locale??NN,r=2520,o=Ua(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},s,{addSuffix:s?.addSuffix,comparison:o}),[u,d]=kc(s?.in,...o>0?[t,e]:[e,t]),c=ZO(d,u),h=(bh(d)-bh(u))/1e3,p=Math.round((c-h)/60);let m;if(p<2)return s?.includeSeconds?c<5?i.formatDistance("lessThanXSeconds",5,l):c<10?i.formatDistance("lessThanXSeconds",10,l):c<20?i.formatDistance("lessThanXSeconds",20,l):c<40?i.formatDistance("halfAMinute",0,l):c<60?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",1,l):p===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",p,l);if(p<45)return i.formatDistance("xMinutes",p,l);if(p<90)return i.formatDistance("aboutXHours",1,l);if(p<gh){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,l)}else{if(p<r)return i.formatDistance("xDays",1,l);if(p<Oa){const g=Math.round(p/gh);return i.formatDistance("xDays",g,l)}else if(p<Oa*2)return m=Math.round(p/Oa),i.formatDistance("aboutXMonths",m,l)}if(m=YO(d,u),m<12){const g=Math.round(p/Oa);return i.formatDistance("xMonths",g,l)}else{const g=m%12,w=Math.trunc(m/12);return g<3?i.formatDistance("aboutXYears",w,l):g<9?i.formatDistance("overXYears",w,l):i.formatDistance("almostXYears",w+1,l)}}function Js(e,t){return kN(e,BO(e),t)}function PN(e,t){const s=()=>Wo(t?.in,NaN),i=IN(e);let r;if(i.date){const d=qN(i.date,2);r=LN(d.restDateString,d.year)}if(!r||isNaN(+r))return s();const o=+r;let l=0,u;if(i.time&&(l=FN(i.time),isNaN(l)))return s();if(i.timezone){if(u=VN(i.timezone),isNaN(u))return s()}else{const d=new Date(o+l),c=Ks(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return Ks(o+l+u)}const Na={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DN=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,RN=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,MN=/^([+-])(\d{2})(?::?(\d{2}))?$/;function IN(e){const t={},s=e.split(Na.dateTimeDelimiter);let n;if(s.length>2)return t;if(/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],Na.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Na.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=Na.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function qN(e,t){const s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(s);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:r===null?i:r*100,restDateString:e.slice((n[1]||n[2]).length)}}function LN(e,t){if(t===null)return new Date(NaN);const s=e.match(DN);if(!s)return new Date(NaN);const n=!!s[4],i=Er(s[1]),r=Er(s[2])-1,o=Er(s[3]),l=Er(s[4]),u=Er(s[5])-1;if(n)return KN(t,l,u)?QN(t,l,u):new Date(NaN);{const d=new Date(0);return!BN(t,r,o)||!UN(t,i)?new Date(NaN):(d.setUTCFullYear(t,r,Math.max(i,o)),d)}}function Er(e){return e?parseInt(e):1}function FN(e){const t=e.match(RN);if(!t)return NaN;const s=Rl(t[1]),n=Rl(t[2]),i=Rl(t[3]);return HN(s,n,i)?s*cv+n*uv+i*1e3:NaN}function Rl(e){return e&&parseFloat(e.replace(",","."))||0}function VN(e){if(e==="Z")return 0;const t=e.match(MN);if(!t)return 0;const s=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return GN(n,i)?s*(n*cv+i*uv):NaN}function QN(e,t,s){const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,r=(t-1)*7+s+1-i;return n.setUTCDate(n.getUTCDate()+r),n}const jN=[31,null,31,30,31,30,31,31,30,31,30,31];function dv(e){return e%400===0||e%4===0&&e%100!==0}function BN(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(jN[t]||(dv(e)?29:28))}function UN(e,t){return t>=1&&t<=(dv(e)?366:365)}function KN(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}function HN(e,t,s){return e===24?t===0&&s===0:s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}function GN(e,t){return t>=0&&t<=59}function yh(e){const t=Date.now()-e,s=Math.floor(t/1e3),n=Math.floor(s/60),i=Math.floor(n/60),r=Math.floor(i/24);return r>0?`${r}d ${i%24}h`:i>0?`${i}h ${n%60}m`:n>0?`${n}m ${s%60}s`:`${s}s`}function Pc(e){if(!e)return"N/A";try{const t=typeof e=="string"?PN(e):new Date(e);return`${t.toLocaleString()} (${Js(t,{addSuffix:!0})})`}catch{return"Invalid Date"}}const WN={class:"vm-body"},zN={class:"status-bar"},YN={class:"status-info"},ZN={class:"text-muted ms-3"},JN={key:0,class:"queue-info"},XN={class:"badge bg-light text-dark"},ek={class:"modal-tabs"},tk=["disabled"],sk=["disabled"],nk=["disabled"],ik=["disabled"],rk=["disabled"],ak={class:"tab-panels"},ok={key:0,class:"tab-content"},lk={class:"info-grid"},uk={class:"info-section"},ck={class:"info-items"},dk={class:"info-item"},fk={class:"info-item"},hk={class:"info-value"},mk={class:"info-item"},pk={class:"info-value"},gk={class:"info-item"},vk={class:"info-value"},bk={class:"info-section"},yk={class:"info-items"},_k={class:"info-item"},Ek={class:"info-value"},wk={class:"info-item"},Ck={class:"info-value"},Ak={class:"info-item"},Sk={class:"info-value"},xk={class:"info-item"},$k={class:"info-value"},Tk={class:"info-item"},Ok={class:"info-value"},Nk={key:0,class:"info-section"},kk={class:"info-items"},Pk={class:"info-item"},Dk={class:"info-value"},Rk={class:"info-item"},Mk={class:"info-value"},Ik={key:1,class:"info-section"},qk={class:"info-items"},Lk={class:"info-item"},Fk={class:"info-value"},Vk={key:1,class:"tab-content"},Qk={class:"body-section"},jk={class:"d-flex justify-content-between align-items-center mb-3"},Bk=["disabled"],Uk={class:"message-body"},Kk={key:2,class:"tab-content"},Hk={class:"info-grid"},Gk={class:"info-section"},Wk={class:"info-items"},zk={class:"info-item"},Yk={class:"info-value"},Zk={class:"info-item"},Jk={class:"info-value"},Xk={class:"info-item"},eP={class:"info-value"},tP={class:"info-item"},sP={class:"info-section"},nP={class:"info-items"},iP={class:"info-item"},rP={class:"info-value"},aP={class:"info-item"},oP={class:"info-value"},lP={class:"info-item"},uP={class:"info-value"},cP={class:"info-item"},dP={class:"info-value"},fP={class:"info-item"},hP={class:"info-value"},mP={class:"info-item"},pP={class:"info-value"},gP={key:3,class:"tab-content"},vP={class:"info-grid"},bP={class:"info-section"},yP={class:"info-items"},_P={class:"info-item"},EP={class:"info-value"},wP={class:"info-item"},CP={class:"info-value"},AP={class:"info-item"},SP={class:"info-value"},xP={class:"info-item"},$P={class:"info-section"},TP={class:"info-items"},OP={class:"info-item"},NP={class:"info-value"},kP={class:"info-item"},PP={class:"info-value"},DP={class:"info-item"},RP={class:"info-value"},MP={class:"info-item"},IP={class:"info-value"},qP={key:0,class:"info-section"},LP={class:"info-items"},FP={class:"info-item"},VP={class:"d-flex align-items-center"},QP={class:"info-value"},jP={key:1,class:"info-section"},BP={class:"info-items"},UP={class:"info-item"},KP={class:"d-flex align-items-center"},HP={class:"info-value"},GP={key:4,class:"timeline-section"},WP={class:"timeline"},zP={class:"timeline-content"},YP={class:"timeline-title"},ZP={class:"timeline-time"},JP={class:"footer-info"},XP={class:"text-muted"},eD={class:"footer-actions"},tD=["disabled"],sD=["disabled"],nD=["disabled"],iD=Ge({__name:"ViewMessageModal",props:{message:{},show:{type:Boolean},isDeleting:{type:Boolean,default:!1},isRequeuing:{type:Boolean,default:!1}},emits:["close","update:show","delete-message","requeue-message"],setup(e,{emit:t}){const s=e,n=t,i=_e("overview"),r=_e(!1),o=_e(!1),l=v(()=>{if(!s.message?.createdAt)return"N/A";const T=new Date(s.message.createdAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),u=v(()=>{if(!s.message?.messageState.publishedAt)return"Not published";const T=new Date(s.message.messageState.publishedAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),d=v(()=>{if(!s.message?.messageState.scheduledAt)return"Not scheduled";const T=new Date(s.message.messageState.scheduledAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),c=v(()=>{if(!s.message?.messageState.lastRetriedAttemptAt)return"Never";const T=new Date(s.message.messageState.lastRetriedAttemptAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),h=v(()=>{if(!s.message?.messageState.processingStartedAt)return"N/A";const T=new Date(s.message.messageState.processingStartedAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),p=v(()=>{if(!s.message?.messageState.acknowledgedAt)return"N/A";const T=new Date(s.message.messageState.acknowledgedAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),m=v(()=>{if(!s.message?.messageState.deadLetteredAt)return"N/A";const T=new Date(s.message.messageState.deadLetteredAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),g=v(()=>{if(!s.message?.messageState.lastRequeuedAt)return"Never";const T=new Date(s.message.messageState.lastRequeuedAt);return`${T.toLocaleString()} (${Js(T,{addSuffix:!0})})`}),w=v(()=>{if(!s.message)return"";switch(s.message.status){case 0:return"badge bg-secondary";case 1:return"badge bg-warning";case 2:return"badge bg-info";case 3:return"badge bg-success";case 4:return"badge bg-warning";case 5:return"badge bg-warning";case 6:return"badge bg-danger";default:return"badge bg-secondary"}}),_=v(()=>{if(!s.message)return"";switch(s.message.status){case 0:return"Scheduled";case 1:return"Pending";case 2:return"Processing";case 3:return"Acknowledged";case 4:return"Unack Delaying";case 5:return"Unack Requeuing";case 6:return"Dead Lettered";default:return"Unknown"}}),S=v(()=>!s.message?.priority&&s.message?.priority!==0?"Normal":["Highest","Very High","High","Above Normal","Normal","Low","Very Low","Lowest"][s.message.priority]||"Normal"),A=v(()=>{if(!s.message?.body)return"";try{if(typeof s.message.body=="string"){const T=JSON.parse(s.message.body);return JSON.stringify(T,null,2)}return JSON.stringify(s.message.body,null,2)}catch{return String(s.message.body)}}),x=v(()=>s.message?.status===6),y=v(()=>s.isDeleting||s.isRequeuing),$=v(()=>s.message?[{type:"Created",timestamp:s.message.createdAt,icon:"bi-plus-circle-fill",color:"text-primary"},{type:"Scheduled",timestamp:s.message.messageState.scheduledAt,icon:"bi-calendar-plus-fill",color:"text-info"},{type:"Last Scheduled",timestamp:s.message.messageState.lastScheduledAt,icon:"bi-calendar-check-fill",color:"text-info"},{type:"Published",timestamp:s.message.messageState.publishedAt,icon:"bi-send-fill",color:"text-primary"},{type:"Processing Started",timestamp:s.message.messageState.processingStartedAt,icon:"bi-play-circle-fill",color:"text-warning"},{type:"Acknowledged",timestamp:s.message.messageState.acknowledgedAt,icon:"bi-check2-circle",color:"text-success"},{type:"Unacknowledged",timestamp:s.message.messageState.unacknowledgedAt,icon:"bi-arrow-counterclockwise",color:"text-warning"},{type:"Last Unacknowledged",timestamp:s.message.messageState.lastUnacknowledgedAt,icon:"bi-arrow-counterclockwise",color:"text-warning"},{type:"Requeued",timestamp:s.message.messageState.requeuedAt,icon:"bi-arrow-repeat",color:"text-secondary"},{type:"Last Requeued",timestamp:s.message.messageState.lastRequeuedAt,icon:"bi-arrow-repeat",color:"text-secondary"},{type:"Last Retry Attempt",timestamp:s.message.messageState.lastRetriedAttemptAt,icon:"bi-bootstrap-reboot",color:"text-warning"},{type:"Dead-lettered",timestamp:s.message.messageState.deadLetteredAt,icon:"bi-x-octagon-fill",color:"text-danger"}].filter(C=>!!C.timestamp).sort((C,B)=>Number(C.timestamp)-Number(B.timestamp)):[]);function F(){y.value||(n("close"),n("update:show",!1))}function j(T){navigator.clipboard.writeText(T).then(()=>{})}function q(){s.message?.id&&n("delete-message",s.message.id),r.value=!1}function E(){s.message?.id&&n("requeue-message",s.message.id),o.value=!1}return(T,C)=>(N(),D(Ae,null,[we(Hs,{"is-visible":!!e.message&&e.show,title:"Message Details",subtitle:e.message?`ID: ${e.message.id}`:void 0,icon:"bi bi-envelope-fill",size:"lg",onClose:F},{body:je(()=>[a("div",WN,[a("div",zN,[a("div",YN,[a("span",{class:Re(w.value)},L(_.value),3),a("span",ZN,[C[12]||(C[12]=a("i",{class:"bi bi-clock me-1"},null,-1)),X(" "+L(l.value),1)])]),e.message?(N(),D("div",JN,[a("span",XN,[C[13]||(C[13]=a("i",{class:"bi bi-collection me-1"},null,-1)),X(" "+L(e.message.destinationQueue.ns)+":"+L(e.message.destinationQueue.name),1)])])):fe("",!0)]),a("div",ek,[a("button",{class:Re(["tab-button",{active:i.value==="overview"}]),disabled:y.value,onClick:C[0]||(C[0]=B=>i.value="overview")},[...C[14]||(C[14]=[a("i",{class:"bi bi-info-circle me-1"},null,-1),X(" Overview ",-1)])],10,tk),a("button",{class:Re(["tab-button",{active:i.value==="body"}]),disabled:y.value,onClick:C[1]||(C[1]=B=>i.value="body")},[...C[15]||(C[15]=[a("i",{class:"bi bi-file-text me-1"},null,-1),X(" Message Body ",-1)])],10,sk),a("button",{class:Re(["tab-button",{active:i.value==="state"}]),disabled:y.value,onClick:C[2]||(C[2]=B=>i.value="state")},[...C[16]||(C[16]=[a("i",{class:"bi bi-gear me-1"},null,-1),X(" State ",-1)])],10,nk),a("button",{class:Re(["tab-button",{active:i.value==="scheduling"}]),disabled:y.value,onClick:C[3]||(C[3]=B=>i.value="scheduling")},[...C[17]||(C[17]=[a("i",{class:"bi bi-calendar me-1"},null,-1),X(" Scheduling ",-1)])],10,ik),a("button",{class:Re(["tab-button",{active:i.value==="timeline"}]),disabled:y.value,onClick:C[4]||(C[4]=B=>i.value="timeline")},[...C[18]||(C[18]=[a("i",{class:"bi bi-clock-history me-2"},null,-1),X(" Timeline ",-1)])],10,rk)]),a("div",ak,[i.value==="overview"?(N(),D("div",ok,[a("div",lk,[a("div",uk,[C[23]||(C[23]=a("h6",{class:"section-title"},"Basic Information",-1)),a("div",ck,[a("div",dk,[C[19]||(C[19]=a("span",{class:"info-label"},"Status:",-1)),a("span",{class:Re(w.value)},L(_.value),3)]),a("div",fk,[C[20]||(C[20]=a("span",{class:"info-label"},"Priority:",-1)),a("span",hk,L(S.value),1)]),a("div",mk,[C[21]||(C[21]=a("span",{class:"info-label"},"TTL:",-1)),a("span",pk,L(e.message.ttl)+"ms",1)]),a("div",gk,[C[22]||(C[22]=a("span",{class:"info-label"},"Consumer Group:",-1)),a("span",vk,L(e.message.consumerGroupId||"None"),1)])])]),a("div",bk,[C[29]||(C[29]=a("h6",{class:"section-title"},"Retry Configuration",-1)),a("div",yk,[a("div",_k,[C[24]||(C[24]=a("span",{class:"info-label"},"Retry Threshold:",-1)),a("span",Ek,L(e.message.retryThreshold),1)]),a("div",wk,[C[25]||(C[25]=a("span",{class:"info-label"},"Retry Delay:",-1)),a("span",Ck,L(e.message.retryDelay)+"ms",1)]),a("div",Ak,[C[26]||(C[26]=a("span",{class:"info-label"},"Consume Timeout:",-1)),a("span",Sk,L(e.message.consumeTimeout)+"ms",1)]),a("div",xk,[C[27]||(C[27]=a("span",{class:"info-label"},"Current Attempts:",-1)),a("span",$k,L(e.message.messageState.attempts),1)]),a("div",Tk,[C[28]||(C[28]=a("span",{class:"info-label"},"Requeue Count:",-1)),a("span",Ok,L(e.message.messageState.requeueCount),1)])])]),e.message?.exchange?(N(),D("div",Nk,[C[32]||(C[32]=a("h6",{class:"section-title"},"Exchange Information",-1)),a("div",kk,[a("div",Pk,[C[30]||(C[30]=a("span",{class:"info-label"},"Exchange Params:",-1)),a("span",Dk,L(e.message.exchange.name)+"@"+L(e.message.exchange.ns),1)]),a("div",Rk,[C[31]||(C[31]=a("span",{class:"info-label"},"Type:",-1)),a("span",Mk,L(O(Ie)[e.message.exchange.type]),1)])])])):fe("",!0),e.message?.queue?(N(),D("div",Ik,[C[34]||(C[34]=a("h6",{class:"section-title"},"Queue Information",-1)),a("div",qk,[a("div",Lk,[C[33]||(C[33]=a("span",{class:"info-label"},"Queue Params:",-1)),a("span",Fk,L(e.message.queue.name)+"@"+L(e.message.queue.ns),1)])])])):fe("",!0)])])):fe("",!0),i.value==="body"?(N(),D("div",Vk,[a("div",Qk,[a("div",jk,[C[36]||(C[36]=a("h6",{class:"section-title mb-0"},"Message Body",-1)),a("button",{class:"btn btn-sm btn-outline-primary",disabled:y.value,onClick:C[5]||(C[5]=B=>j(A.value))},[...C[35]||(C[35]=[a("i",{class:"bi bi-clipboard me-1"},null,-1),X(" Copy ",-1)])],8,Bk)]),a("pre",Uk,[a("code",null,L(A.value),1)])])])):fe("",!0),i.value==="state"?(N(),D("div",Kk,[a("div",Hk,[a("div",Gk,[C[41]||(C[41]=a("h6",{class:"section-title"},"Message State",-1)),a("div",Wk,[a("div",zk,[C[37]||(C[37]=a("span",{class:"info-label"},"UUID:",-1)),a("code",Yk,L(e.message.messageState.uuid),1)]),a("div",Zk,[C[38]||(C[38]=a("span",{class:"info-label"},"Published At:",-1)),a("span",Jk,L(u.value),1)]),a("div",Xk,[C[39]||(C[39]=a("span",{class:"info-label"},"Attempts:",-1)),a("span",eP,L(e.message.messageState.attempts),1)]),a("div",tP,[C[40]||(C[40]=a("span",{class:"info-label"},"Expired:",-1)),a("span",{class:Re(["badge",e.message.messageState.expired?"bg-danger":"bg-success"])},L(e.message.messageState.expired?"Yes":"No"),3)])])]),a("div",sP,[C[48]||(C[48]=a("h6",{class:"section-title"},"Timing Information",-1)),a("div",nP,[a("div",iP,[C[42]||(C[42]=a("span",{class:"info-label"},"Processing Started At:",-1)),a("span",rP,L(h.value),1)]),a("div",aP,[C[43]||(C[43]=a("span",{class:"info-label"},"Acknowledged At:",-1)),a("span",oP,L(p.value),1)]),a("div",lP,[C[44]||(C[44]=a("span",{class:"info-label"},"Last Retried At:",-1)),a("span",uP,L(c.value),1)]),a("div",cP,[C[45]||(C[45]=a("span",{class:"info-label"},"Last Requeued At:",-1)),a("span",dP,L(g.value),1)]),a("div",fP,[C[46]||(C[46]=a("span",{class:"info-label"},"Dead-Lettered At:",-1)),a("span",hP,L(m.value),1)]),a("div",mP,[C[47]||(C[47]=a("span",{class:"info-label"},"Scheduled Times:",-1)),a("span",pP,L(e.message.messageState.scheduledTimes),1)])])])])])):fe("",!0),i.value==="scheduling"?(N(),D("div",gP,[a("div",vP,[a("div",bP,[C[53]||(C[53]=a("h6",{class:"section-title"},"Schedule Configuration",-1)),a("div",yP,[a("div",_P,[C[49]||(C[49]=a("span",{class:"info-label"},"Scheduled At:",-1)),a("span",EP,L(d.value),1)]),a("div",wP,[C[50]||(C[50]=a("span",{class:"info-label"},"Scheduled Cron:",-1)),a("span",CP,L(e.message.scheduledCron||"None"),1)]),a("div",AP,[C[51]||(C[51]=a("span",{class:"info-label"},"Scheduled Delay:",-1)),a("span",SP,L(e.message.scheduledDelay?`${e.message.scheduledDelay} ms`:"None"),1)]),a("div",xP,[C[52]||(C[52]=a("span",{class:"info-label"},"Cron Fired:",-1)),a("span",{class:Re(["badge",e.message.messageState.scheduledCronFired?"bg-success":"bg-secondary"])},L(e.message.messageState.scheduledCronFired?"Yes":"No"),3)])])]),a("div",$P,[C[58]||(C[58]=a("h6",{class:"section-title"},"Repeat Configuration",-1)),a("div",TP,[a("div",OP,[C[54]||(C[54]=a("span",{class:"info-label"},"Repeat Period:",-1)),a("span",NP,L(e.message.scheduledRepeatPeriod?`${e.message.scheduledRepeatPeriod} ms`:"None"),1)]),a("div",kP,[C[55]||(C[55]=a("span",{class:"info-label"},"Repeat Count:",-1)),a("span",PP,L(e.message.scheduledRepeat),1)]),a("div",DP,[C[56]||(C[56]=a("span",{class:"info-label"},"Current Repeat:",-1)),a("span",RP,L(e.message.messageState.scheduledRepeatCount),1)]),a("div",MP,[C[57]||(C[57]=a("span",{class:"info-label"},"Last Scheduled At:",-1)),a("span",IP,L(e.message.messageState.lastScheduledAt?new Date(e.message.messageState.lastScheduledAt).toLocaleString():"Never"),1)])])]),e.message?.messageState.scheduledMessageParentId?(N(),D("div",qP,[C[61]||(C[61]=a("h6",{class:"section-title"},"Scheduled Message Reference",-1)),a("div",LP,[a("div",FP,[C[60]||(C[60]=a("span",{class:"info-label"},"Scheduled Message Parent ID:",-1)),a("div",VP,[a("code",QP,L(e.message.messageState.scheduledMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Scheduled Message Parent ID",onClick:C[6]||(C[6]=B=>j(e.message.messageState.scheduledMessageParentId))},[...C[59]||(C[59]=[a("i",{class:"bi bi-clipboard"},null,-1)])])])])])])):fe("",!0),e.message?.messageState.requeuedMessageParentId?(N(),D("div",jP,[C[64]||(C[64]=a("h6",{class:"section-title"},"Requeued Message Reference",-1)),a("div",BP,[a("div",UP,[C[63]||(C[63]=a("span",{class:"info-label"},"Requeued Message Parent ID:",-1)),a("div",KP,[a("code",HP,L(e.message.messageState.requeuedMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Requeued Message Parent ID",onClick:C[7]||(C[7]=B=>j(e.message.messageState.requeuedMessageParentId))},[...C[62]||(C[62]=[a("i",{class:"bi bi-clipboard"},null,-1)])])])])])])):fe("",!0)])])):fe("",!0),i.value==="timeline"?(N(),D("div",GP,[a("ul",WP,[(N(!0),D(Ae,null,bt($.value,B=>(N(),D("li",{key:`${B.type}-${B.timestamp}`,class:"timeline-item"},[a("div",{class:Re(["timeline-marker",B.color])},[a("i",{class:Re(B.icon)},null,2)],2),a("div",zP,[a("h5",YP,L(B.type),1),a("p",ZP,L(O(Pc)(B.timestamp)),1)])]))),128))])])):fe("",!0)])])]),footer:je(()=>[a("div",JP,[a("small",XP,[C[65]||(C[65]=a("i",{class:"bi bi-info-circle me-1"},null,-1)),X(" Message created "+L(l.value),1)])]),a("div",eD,[x.value?(N(),D("button",{key:0,type:"button",class:"btn btn-warning",disabled:y.value,onClick:C[8]||(C[8]=B=>o.value=!0)},[e.isRequeuing?(N(),D(Ae,{key:0},[C[66]||(C[66]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),C[67]||(C[67]=X(" Requeuing... ",-1))],64)):(N(),D(Ae,{key:1},[C[68]||(C[68]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),C[69]||(C[69]=X(" Requeue Message ",-1))],64))],8,tD)):fe("",!0),a("button",{type:"button",class:"btn btn-danger",disabled:y.value,onClick:C[9]||(C[9]=B=>r.value=!0)},[e.isDeleting?(N(),D(Ae,{key:0},[C[70]||(C[70]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),C[71]||(C[71]=X(" Deleting... ",-1))],64)):(N(),D(Ae,{key:1},[C[72]||(C[72]=a("i",{class:"bi bi-trash me-2"},null,-1)),C[73]||(C[73]=X(" Delete Message ",-1))],64))],8,sD),a("button",{type:"button",class:"btn btn-secondary",disabled:y.value,onClick:F}," Close ",8,nD)])]),_:1},8,["is-visible","subtitle"]),we(hi,{"is-visible":r.value,title:"Delete Message",message:"Are you sure you want to delete this message? This action cannot be undone.","confirm-text":"Delete Message",variant:"danger","is-loading":e.isDeleting,onConfirm:q,onClose:C[10]||(C[10]=B=>r.value=!1)},{"message-preview":je(()=>[C[74]||(C[74]=a("strong",null,"Message ID: ",-1)),a("code",null,L(e.message?.id),1)]),_:1},8,["is-visible","is-loading"]),we(hi,{"is-visible":o.value,title:"Requeue Message",message:"Are you sure you want to requeue this dead-lettered message? It will be moved back to the pending queue for processing.","confirm-text":"Requeue Message",variant:"warning","is-loading":e.isRequeuing,onConfirm:E,onClose:C[11]||(C[11]=B=>o.value=!1)},{"message-preview":je(()=>[C[75]||(C[75]=a("strong",null,"Message ID: ",-1)),a("code",null,L(e.message?.id),1)]),_:1},8,["is-visible","is-loading"])],64))}}),rD=tt(iD,[["__scopeId","data-v-6ded7d93"]]),aD={class:"messages-component","aria-live":"polite"},oD={key:0,class:"messages-controls"},lD={class:"controls-left"},uD={key:0,class:"pagination-info"},cD={class:"info-text"},dD={class:"controls-right"},fD={key:0,class:"page-size-selector"},hD=["value"],mD=["disabled"],pD={class:"messages-content"},gD={key:0,class:"state-card loading-state"},vD={key:1,class:"state-card error-state"},bD={class:"state-content"},yD={class:"state-text"},_D={class:"state-message"},ED={class:"state-actions"},wD={key:2,class:"state-card empty-state"},CD={class:"state-content"},AD={class:"state-title"},SD={key:3,class:"messages-list",role:"list","aria-label":"Messages list"},xD=["aria-label","onClick","onKeydown"],$D={class:"message-header"},TD={class:"message-id-section"},OD={class:"message-id"},ND={class:"message-date"},kD={class:"message-metadata"},PD={key:0,class:"metadata-item"},DD={class:"metadata-value priority-badge"},RD={key:1,class:"metadata-item"},MD={class:"metadata-value"},ID={key:2,class:"metadata-item"},qD={class:"message-body"},LD={class:"body-content"},FD={key:1,class:"messages-pagination"},VD={class:"pagination-nav","aria-label":"Messages pagination"},QD={class:"pagination"},jD=["disabled"],BD=["disabled"],UD=["title","onClick"],KD=["disabled"],HD=["disabled"],GD=Ge({__name:"MessageList",props:{messages:{},isLoading:{type:Boolean},error:{},pagination:{},showPagination:{type:Boolean},emptyMessage:{default:"No messages found"},icon:{default:"bi-envelope"},isDeleting:{type:Boolean},isRequeuing:{type:Boolean}},emits:["refresh","delete-message","requeue-message","page-change","page-size-change","first-page","previous-page","next-page","last-page"],setup(e,{emit:t}){const s=e,n=t,i=_e(!1),r=_e(null),o=v(()=>s.messages.length>0),l=v(()=>s.pagination.currentPage>1),u=v(()=>s.pagination.currentPage<s.pagination.totalPages),d=v(()=>{const S=[],x=Math.floor(2.5),{currentPage:y,totalPages:$}=s.pagination;let F=Math.max(1,y-x),j=Math.min($,F+5-1);j-F+1<5&&(F=Math.max(1,j-5+1));for(let q=F;q<=j;q++)S.push(q);return S});function c(S){r.value=S,i.value=!0}function h(){i.value=!1}function p(S){n("delete-message",S),h()}function m(S){n("requeue-message",S),h()}function g(S){const A=S.target;n("page-size-change",Number(A.value))}function w(S){if(typeof S=="string")return S.length>100?`${S.substring(0,100)}...`:S;if(S==null)return"null";try{const A=JSON.stringify(S);return A.length>100?`${A.substring(0,100)}...`:A}catch{return String(S)}}function _(S,A){(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c(A))}return(S,A)=>(N(),D("section",aD,[o.value||e.showPagination?(N(),D("div",oD,[a("div",lD,[e.showPagination&&e.pagination&&e.pagination.hasItems?(N(),D("div",uD,[a("span",cD," Showing "+L(e.pagination.start)+"-"+L(e.pagination.end)+" of "+L(e.pagination.totalCount)+" messages ",1)])):fe("",!0)]),a("div",dD,[e.showPagination&&e.pagination?(N(),D("div",fD,[A[7]||(A[7]=a("label",{for:"pageSize",class:"selector-label"},"Per page:",-1)),a("select",{id:"pageSize",class:"form-select form-select-sm",value:e.pagination.pageSize,onChange:g},[...A[6]||(A[6]=[a("option",{value:"10"},"10",-1),a("option",{value:"20"},"20",-1),a("option",{value:"50"},"50",-1),a("option",{value:"100"},"100",-1)])],40,hD)])):fe("",!0),a("button",{class:Re(["btn btn-refresh",{"btn-loading":e.isLoading}]),disabled:e.isLoading,onClick:A[0]||(A[0]=x=>n("refresh"))},[e.isLoading?(N(),D(Ae,{key:0},[A[8]||(A[8]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),A[9]||(A[9]=X(" Refreshing... ",-1))],64)):(N(),D(Ae,{key:1},[A[10]||(A[10]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),A[11]||(A[11]=X(" Refresh ",-1))],64))],10,mD)])])):fe("",!0),a("div",pD,[e.isLoading&&!o.value?(N(),D("div",gD,[...A[12]||(A[12]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3",role:"status"}),a("h5",{class:"state-title"},"Loading messages..."),a("p",{class:"state-subtitle"},"Please wait while we fetch your messages")],-1)])])):e.error?(N(),D("div",vD,[a("div",bD,[A[14]||(A[14]=a("div",{class:"state-icon","aria-hidden":"true"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",yD,[A[13]||(A[13]=a("h5",{class:"state-title"},"Failed to load messages",-1)),a("p",_D,L(e.error.message),1)])]),a("div",ED,[a("button",{class:"btn btn-primary",onClick:A[1]||(A[1]=x=>n("refresh"))},[...A[15]||(A[15]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ",-1)])])])])):o.value?(N(),D("div",SD,[(N(!0),D(Ae,null,bt(e.messages,x=>(N(),D("div",{key:x.id,class:"message-card",role:"button",tabindex:"0","aria-label":`View message ${x.id} details`,onClick:y=>c(x),onKeydown:y=>_(y,x)},[a("div",$D,[a("div",TD,[a("span",OD,L(x.id),1),a("span",ND,L(O(Pc)(x.createdAt)),1)]),a("div",kD,[x.priority!==void 0&&x.priority!==null?(N(),D("div",PD,[A[18]||(A[18]=a("span",{class:"metadata-label"},"Priority:",-1)),a("span",DD,L(x.priority),1)])):fe("",!0),x.consumerGroupId?(N(),D("div",RD,[A[19]||(A[19]=a("span",{class:"metadata-label"},"Group:",-1)),a("span",MD,L(x.consumerGroupId),1)])):fe("",!0),x.status!==void 0?(N(),D("div",ID,[A[20]||(A[20]=a("span",{class:"metadata-label"},"Status:",-1)),a("span",{class:Re(["metadata-value status-badge",`status-${x.status}`])},L(O(tv)[x.status]),3)])):fe("",!0)])]),a("div",qD,[a("pre",LD,L(w(x.body)),1)])],40,xD))),128))])):(N(),D("div",wD,[a("div",CD,[A[16]||(A[16]=a("div",{class:"state-icon","aria-hidden":"true"},"📭",-1)),a("h4",AD,L(e.emptyMessage),1),A[17]||(A[17]=a("p",{class:"state-subtitle"}," Messages will appear here when they are available ",-1))])]))]),e.showPagination&&e.pagination&&e.pagination.totalPages>1?(N(),D("div",FD,[a("nav",VD,[a("ul",QD,[a("li",{class:Re(["page-item",{disabled:!l.value}])},[a("button",{class:"page-link",disabled:!l.value,title:"First page",onClick:A[2]||(A[2]=x=>n("first-page"))},[...A[21]||(A[21]=[a("i",{class:"bi bi-chevron-double-left"},null,-1)])],8,jD)],2),a("li",{class:Re(["page-item",{disabled:!l.value}])},[a("button",{class:"page-link",disabled:!l.value,title:"Previous page",onClick:A[3]||(A[3]=x=>n("previous-page"))},[...A[22]||(A[22]=[a("i",{class:"bi bi-chevron-left"},null,-1)])],8,BD)],2),(N(!0),D(Ae,null,bt(d.value,x=>(N(),D("li",{key:x,class:Re(["page-item",{active:x===e.pagination.currentPage}])},[a("button",{class:"page-link",title:`Go to page ${x}`,onClick:y=>n("page-change",x)},L(x),9,UD)],2))),128)),a("li",{class:Re(["page-item",{disabled:!u.value}])},[a("button",{class:"page-link",disabled:!u.value,title:"Next page",onClick:A[4]||(A[4]=x=>n("next-page"))},[...A[23]||(A[23]=[a("i",{class:"bi bi-chevron-right"},null,-1)])],8,KD)],2),a("li",{class:Re(["page-item",{disabled:!u.value}])},[a("button",{class:"page-link",disabled:!u.value,title:"Last page",onClick:A[5]||(A[5]=x=>n("last-page"))},[...A[24]||(A[24]=[a("i",{class:"bi bi-chevron-double-right"},null,-1)])],8,HD)],2)])])])):fe("",!0),we(rD,{show:i.value,message:r.value,"is-deleting":e.isDeleting,"is-requeuing":e.isRequeuing,onClose:h,onDeleteMessage:p,onRequeueMessage:m},null,8,["show","message","is-deleting","is-requeuing"])]))}}),ra=tt(GD,[["__scopeId","data-v-4aecad5a"]]),zo=Vo("selectedNamespace",()=>{const e=_e(null);function t(n){e.value=n}function s(){e.value=null}return{selectedNamespace:e,selectNamespace:t,clearSelectedNamespace:s}}),qt=Vo("selectedQueue",()=>{const e=zo(),t=_e(null),s=v(()=>e.selectedNamespace&&t.value?{ns:e.selectedNamespace,name:t.value}:null);function n(r,o){e.selectNamespace(r),t.value=o}function i(){t.value=null,e.clearSelectedNamespace()}return{selectedQueue:s,selectQueue:n,clearSelectedQueue:i}}),Dn=Vo("queueProperties",()=>{const e=qt(),t=v(()=>e.selectedQueue),s=UT(v(()=>t.value?.ns||""),v(()=>t.value?.name||""),{query:{enabled:v(()=>!!t.value)}}),n=v(()=>s.data.value),i=v(()=>s.isLoading.value),r=v(()=>s.error.value),o=v(()=>n.value?.data.deliveryModel===us.PUB_SUB),l=v(()=>n.value?.data.deliveryModel===us.POINT_TO_POINT),u=v(()=>n.value?.data.queueType),d=v(()=>n.value?.data.deliveryModel),c=v(()=>!!n.value?.data);async function h(){await s.refetch()}return{queuePropertiesQuery:s,queueProperties:n,isLoadingQueueProperties:i,queuePropertiesError:r,isPubSubQueue:o,isPointToPointQueue:l,queueType:u,queueDeliveryModel:d,hasQueueProperties:c,refreshQueueProperties:h}}),WD=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/acknowledged-messages`,method:"GET",params:O(s),signal:n})),zD=e=>(e=O(e),Je({url:`/api/v1/messages/${e}`,method:"DELETE"})),YD=e=>{const t=["deleteApiV1MessagesId"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{id:r}=i??{};return zD(r)},...s}},ZD=(e,t)=>{const s=YD(e);return Nt(s)},JD=(e,t)=>(e=O(e),Je({url:`/api/v1/messages/${e}/requeue`,method:"POST",signal:t})),XD=e=>{const t=["postApiV1MessagesIdRequeue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{id:r}=i??{};return JD(r)},...s}},eR=(e,t)=>{const s=XD(e);return Nt(s)};function aa(e,t,s=20,n=_e({})){const i=fn(),r=As({currentPage:1,pageSize:s}),o=v(()=>{if(!e.value)return["disabled"];const z=[t.queryKeyPrefix,e.value.ns,e.value.name],ie=Object.entries(n.value);return ie.length>0&&ie.forEach(([W,V])=>{V!=null&&z.push(W,String(V))}),z});function l(z){return z?.data?.totalItems??0}const{data:u,error:d,fetchNextPage:c,hasNextPage:h,isLoading:p,isFetchingNextPage:m,refetch:g}=uC({queryKey:o,initialPageParam:1,enabled:v(()=>!!(e.value?.ns&&e.value?.name)),retry:(z,ie)=>{const W=ie;return(W?.status??W?.response?.status)===422?!1:z<3},queryFn:async({pageParam:z=1})=>{if(!e.value)throw new Error("Queue parameters are required");return t.queryFn({ns:e.value.ns,name:e.value.name,page:Number(z),pageSize:r.pageSize,extraParams:n.value})},getNextPageParam:(z,ie)=>{const W=z?.data?.items??[],V=l(ie?.[0]),ne=ie.flatMap(de=>de?.data?.items??[]).length;if(!(!W.length||V&&ne>=V))return ie.length+1}}),w=async()=>{await i.invalidateQueries({queryKey:o.value})},_=t.enableDelete?ZD({mutation:{onSuccess:w}}):null,S=t.enableRequeue?eR({mutation:{onSuccess:w}}):null,A=v(()=>u.value?.pages.flatMap(z=>z?.data?.items??[])??[]),x=v(()=>l(u.value?.pages?.[0]??{})),y=v(()=>_?.isPending.value??!1),$=v(()=>S?.isPending.value??!1),F=v(()=>{const z=d.value||_?.error.value||S?.error.value;return at(z)}),j=v(()=>{const z=(r.currentPage-1)*r.pageSize,ie=z+r.pageSize;return A.value.slice(z,ie)}),q=v(()=>{const z=x.value||0,ie=z>0?Math.ceil(z/r.pageSize):1,W=z>0?(r.currentPage-1)*r.pageSize+1:0,V=Math.min(W+r.pageSize-1,z);return{currentPage:r.currentPage,pageSize:r.pageSize,totalCount:z,totalPages:ie,start:W,end:V,hasItems:z>0}});async function E(z){if(z<1)return;r.currentPage=z;const ie=z*r.pageSize;for(;A.value.length<ie&&h.value&&!m.value;)await c()}async function T(z){r.pageSize=z,r.currentPage=1,await g()}async function C(){r.currentPage=1,await g()}async function B(z){if(!_)throw new Error("Delete operation is not enabled for this message type");await _.mutateAsync({id:z})}async function Z(z){if(!S)throw new Error("Requeue operation is not enabled for this message type");await S.mutateAsync({id:z})}return Xe(()=>[e.value&&[e.value.ns,e.value.name],n.value],async()=>{e.value&&(r.currentPage=1,await g())},{deep:!0}),{messages:j,pagination:q,isLoading:p,isDeleting:y,isRequeuing:$,error:F,goToPage:E,setPageSize:T,refresh:C,deleteMessage:t.enableDelete?B:void 0,requeueMessage:t.enableRequeue?Z:void 0,hasNextPage:h,isFetchingNextPage:m,totalMessages:x,allMessages:A}}function tR(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>WD(n,i,{page:r,pageSize:o}),queryKeyPrefix:"acknowledged-messages",enableDelete:!0,enableRequeue:!0},t)}const sR=e=>Je({url:"/api/v1/config",method:"GET",signal:e}),nR=()=>["api","v1","config"],iR=e=>{const{query:t}={};return{queryKey:nR(),queryFn:({signal:i})=>sR(i),...t}};function fv(e,t){const s=iR(),n=Jt(s);return n.queryKey=O(s).queryKey,n}const rR={key:0,class:"ack-loading-alert",role:"status","aria-live":"polite"},aR={key:1,class:"ack-error-alert",role:"alert","aria-live":"polite"},oR={class:"ack-alert-row"},lR={class:"ack-alert-text"},uR={class:"ack-alert-message"},cR={class:"ack-alert-actions"},dR={key:2,class:"ack-disabled-alert",role:"status","aria-live":"polite"},fR=Ge({__name:"AcknowledgedMessagesView",setup(e){const t=qt(),s=Dn(),n=Xt(),i=ms(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>({ns:r.value,name:o.value}));Xe([r,o],([Z,z])=>{Z&&z&&t.selectQueue(Z,z)},{immediate:!0});const u=v(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:p,error:m,goToPage:g,setPageSize:w,refresh:_,deleteMessage:S}=tR(l,20),A=v(()=>u.value?`Acknowledged Messages - ${`${u.value.ns}/${u.value.name}`}`:"Acknowledged Messages"),x=v(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{n.setPageHeader({title:A.value,subtitle:x.value,icon:"bi bi-check-circle"})}),At(()=>{if(!u.value){n.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its acknowledged messages."}),n.setPageActions([]),n.setLoadingState(!1),n.setErrorState(null);return}n.setLoadingState(!1),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([])});const{data:y,isLoading:$,error:F,refetch:j}=fv(),q=v(()=>{const Z=y.value?.data?.messages?.store?.acknowledged?.store;return typeof Z=="boolean"?Z:null}),E=v(()=>at(F.value));async function T(Z){S&&await S(Z)}function C(Z){g(Z)}async function B(Z){await w(Z)}return(Z,z)=>(N(),ct(ps,{"show-section-header":!1},{default:je(()=>[O($)?(N(),D("div",rR,[...z[5]||(z[5]=[a("div",{class:"ack-alert-row"},[a("i",{class:"bi bi-arrow-repeat ack-alert-icon","aria-hidden":"true"}),a("div",{class:"ack-alert-text"},[a("strong",null,"Loading configuration…"),a("p",{class:"ack-alert-message"}," Checking server settings for acknowledged messages storage. ")]),a("div",{class:"ack-alert-actions"},[a("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"})])],-1)])])):O(F)?(N(),D("div",aR,[a("div",oR,[z[8]||(z[8]=a("i",{class:"bi bi-exclamation-triangle-fill ack-alert-icon","aria-hidden":"true"},null,-1)),a("div",lR,[z[6]||(z[6]=a("strong",null,"Could not load server configuration",-1)),a("p",uR,L(E.value),1)]),a("div",cR,[a("button",{class:"btn btn-sm btn-outline-primary",type:"button",onClick:z[0]||(z[0]=ie=>O(j)())},[...z[7]||(z[7]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),X(" Retry ",-1)])])])])])):q.value===!1?(N(),D("div",dR,[...z[9]||(z[9]=[a("div",{class:"ack-alert-row"},[a("i",{class:"bi bi-info-circle-fill ack-alert-icon","aria-hidden":"true"}),a("div",{class:"ack-alert-text"},[a("strong",null,"Acknowledged messages storage is disabled"),a("p",{class:"ack-alert-message"}," The server configuration indicates that acknowledged messages are not being stored. This view may be empty or missing data until storage is enabled on the server. ")])],-1)])])):fe("",!0),u.value?(N(),ct(ra,{key:3,messages:O(d),"is-loading":O(h),error:O(m),pagination:O(c),"show-pagination":!0,"empty-message":"No acknowledged messages found for this queue. Messages appear here when they have been successfully processed and acknowledged by consumers.",icon:"bi-check-circle","is-deleting":O(p),"is-requeuing":!1,onRefresh:O(_),onDeleteMessage:T,onPageChange:C,onPageSizeChange:B,onFirstPage:z[1]||(z[1]=ie=>C(1)),onPreviousPage:z[2]||(z[2]=ie=>C(O(c).currentPage-1)),onNextPage:z[3]||(z[3]=ie=>C(O(c).currentPage+1)),onLastPage:z[4]||(z[4]=ie=>C(O(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):fe("",!0)]),_:1}))}}),hR=tt(fR,[["__scopeId","data-v-af04ee7e"]]),mR=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/dead-lettered-messages`,method:"GET",params:O(s),signal:n}));function pR(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>mR(n,i,{page:r,pageSize:o}),queryKeyPrefix:"dead-lettered-messages",enableDelete:!0,enableRequeue:!0},t)}const gR={key:0,class:"dl-loading-alert",role:"status","aria-live":"polite"},vR={key:1,class:"dl-error-alert",role:"alert","aria-live":"polite"},bR={class:"dl-alert-row"},yR={class:"dl-alert-text"},_R={class:"dl-alert-message"},ER={class:"dl-alert-actions"},wR={key:2,class:"dl-disabled-alert",role:"status","aria-live":"polite"},CR=Ge({__name:"DeadLetteredMessagesView",setup(e){const t=qt(),s=Dn(),n=Xt(),i=ms(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>({ns:r.value,name:o.value}));Xe([r,o],([W,V])=>{W&&V&&t.selectQueue(W,V)},{immediate:!0});const u=v(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:p,isRequeuing:m,error:g,goToPage:w,setPageSize:_,refresh:S,deleteMessage:A,requeueMessage:x}=pR(l,20),y=v(()=>u.value?`Dead-Lettered Messages - ${`${u.value.ns}/${u.value.name}`}`:"Dead-Lettered Messages"),$=v(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{n.setPageHeader({title:y.value,subtitle:$.value,icon:"bi bi-x-circle"})}),At(()=>{if(!u.value){n.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its dead-lettered messages."}),n.setPageActions([]),n.setLoadingState(!1),n.setErrorState(null);return}n.setLoadingState(!1),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([])});const{data:F,isLoading:j,error:q,refetch:E}=fv(),T=v(()=>{const W=F.value?.data?.messages?.store?.deadLettered?.store;return typeof W=="boolean"?W:null}),C=v(()=>at(q));async function B(W){A&&await A(W)}async function Z(W){x&&await x(W)}function z(W){w(W)}async function ie(W){await _(W)}return(W,V)=>(N(),ct(ps,{"show-section-header":!1},{default:je(()=>[O(j)?(N(),D("div",gR,[...V[5]||(V[5]=[a("div",{class:"dl-alert-row"},[a("i",{class:"bi bi-arrow-repeat dl-alert-icon","aria-hidden":"true"}),a("div",{class:"dl-alert-text"},[a("strong",null,"Loading configuration…"),a("p",{class:"dl-alert-message"}," Checking server settings for dead-lettered messages storage. ")]),a("div",{class:"dl-alert-actions"},[a("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"})])],-1)])])):O(q)?(N(),D("div",vR,[a("div",bR,[V[8]||(V[8]=a("i",{class:"bi bi-exclamation-triangle-fill dl-alert-icon","aria-hidden":"true"},null,-1)),a("div",yR,[V[6]||(V[6]=a("strong",null,"Could not load server configuration",-1)),a("p",_R,L(C.value),1)]),a("div",ER,[a("button",{class:"btn btn-sm btn-outline-primary",type:"button",onClick:V[0]||(V[0]=ne=>O(E)())},[...V[7]||(V[7]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),X(" Retry ",-1)])])])])])):T.value===!1?(N(),D("div",wR,[...V[9]||(V[9]=[a("div",{class:"dl-alert-row"},[a("i",{class:"bi bi-info-circle-fill dl-alert-icon","aria-hidden":"true"}),a("div",{class:"dl-alert-text"},[a("strong",null,"Dead-lettered messages storage is disabled"),a("p",{class:"dl-alert-message"}," The server configuration indicates that dead-lettered messages are not being stored. This view may be empty or missing data until storage is enabled on the server. ")])],-1)])])):fe("",!0),u.value?(N(),ct(ra,{key:3,messages:O(d),"is-loading":O(h),error:O(g),pagination:O(c),"show-pagination":!0,"empty-message":"No dead-lettered messages found for this queue. Messages appear here when they fail processing and exceed retry limits.",icon:"bi-x-circle","is-deleting":O(p),"is-requeuing":O(m),onRefresh:O(S),onDeleteMessage:B,onRequeueMessage:Z,onPageChange:z,onPageSizeChange:ie,onFirstPage:V[1]||(V[1]=ne=>z(1)),onPreviousPage:V[2]||(V[2]=ne=>z(O(c).currentPage-1)),onNextPage:V[3]||(V[3]=ne=>z(O(c).currentPage+1)),onLastPage:V[4]||(V[4]=ne=>z(O(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])):fe("",!0)]),_:1}))}}),AR=tt(CR,[["__scopeId","data-v-6651e21f"]]),SR=e=>Je({url:"/api/v1/namespaces",method:"GET",signal:e}),xR=()=>["api","v1","namespaces"],$R=e=>{const{query:t}={};return{queryKey:xR(),queryFn:({signal:i})=>SR(i),...t}};function TR(e,t){const s=$R(),n=Jt(s);return n.queryKey=O(s).queryKey,n}const OR=e=>(e=O(e),Je({url:`/api/v1/namespaces/${e}`,method:"DELETE"})),NR=e=>{const t=["deleteApiV1NamespacesNs"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r}=i??{};return OR(r)},...s}},kR=(e,t)=>{const s=NR(e);return Nt(s)},PR=(e,t)=>(e=O(e),Je({url:`/api/v1/namespaces/${e}/queues`,method:"GET",signal:t})),DR=e=>["api","v1","namespaces",e,"queues"],RR=(e,t)=>{const{query:s}=t??{};return{queryKey:DR(e),queryFn:({signal:r})=>PR(e,r),enabled:v(()=>!!O(e)),...s}};function MR(e,t,s){const n=RR(e,t),i=Jt(n);return i.queryKey=O(n).queryKey,i}const IR=(e,t)=>(e=O(e),Je({url:`/api/v1/namespaces/${e}/exchanges`,method:"GET",signal:t})),Wn=e=>["api","v1","namespaces",e,"exchanges"],qR=(e,t)=>{const{query:s}=t??{};return{queryKey:Wn(e),queryFn:({signal:r})=>IR(e,r),enabled:v(()=>!!O(e)),...s}};function LR(e,t,s){const n=qR(e,t),i=Jt(n);return i.queryKey=O(n).queryKey,i}function hv(){const e=zo(),t=v(()=>e.selectedNamespace),s=TR(),n=MR(v(()=>t.value||""),{query:{enabled:v(()=>!!t.value)}}),i=kR({mutation:{onSuccess:async()=>{e.clearSelectedNamespace(),await s.refetch()}}}),r=v(()=>s.data.value),o=v(()=>n.data.value),l=v(()=>s.isLoading.value),u=v(()=>n.isLoading.value),d=v(()=>i.isPending.value),c=v(()=>l.value||u.value||d.value),h=v(()=>s.error.value),p=v(()=>n.error.value),m=v(()=>i.error.value),g=v(()=>h.value||p.value||m.value),w=v(()=>r.value?.data.length?[...r.value.data].sort((E,T)=>E.localeCompare(T)):[]),_=v(()=>o.value?.data.length?[...o.value.data].sort((E,T)=>E.name.localeCompare(T.name)):[]),S=v(()=>!!r.value?.data&&r.value.data.length>0),A=v(()=>!!o.value?.data&&o.value.data.length>0),x=v(()=>E=>r.value?.data?r.value.data.includes(E):!1);async function y(){await s.refetch()}async function $(E){if(E||t.value){const C=t.value;E&&E!==t.value&&e.selectNamespace(E);try{await n.refetch()}finally{E&&E!==C&&(C?e.selectNamespace(C):e.clearSelectedNamespace())}}}async function F(E){await i.mutateAsync({ns:E})}function j(E){const T=E||t.value;if(!T)return Promise.resolve([]);const C=[s.refetch()];return T===t.value&&C.push(n.refetch()),Promise.all(C)}function q(E){return!!E&&E.trim().length>0}return{namespacesQuery:s,namespaceQueuesQuery:n,deleteNamespaceMutation:i,namespaces:r,namespaceQueues:o,isLoading:c,isLoadingNamespaces:l,isLoadingNamespaceQueues:u,isDeletingNamespace:d,error:g,namespacesError:h,namespaceQueuesError:p,deleteNamespaceError:m,sortedNamespaces:w,sortedNamespaceQueues:_,hasNamespaces:S,hasNamespaceQueues:A,namespaceExists:x,refreshNamespaces:y,refreshNamespaceQueues:$,deleteNamespace:F,refetchNamespaceData:j,isValidNamespace:q}}function FR(e){const t=jT({mutation:{onSuccess:async()=>{await e()}}}),s=v(()=>t.isPending.value),n=v(()=>t.error.value?.error);return{createQueue:t.mutateAsync,isCreatingQueue:s,createQueueError:n,createQueueMutation:t}}function mv(e){const t=GT({mutation:{onSuccess:async()=>{await e()}}}),s=v(()=>t.isPending.value),n=v(()=>t.error.value?.error);return{deleteQueue:t.mutateAsync,isDeletingQueue:s,deleteQueueError:n,deleteQueueMutation:t}}/**
|
|
36
|
+
* vee-validate v4.15.1
|
|
37
|
+
* (c) 2025 Abdelrahman Awad
|
|
38
|
+
* @license MIT
|
|
39
|
+
*/function Mt(e){return typeof e=="function"}function pv(e){return e==null}const mi=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Dc(e){return Number(e)>=0}function VR(e){const t=parseFloat(e);return isNaN(t)?e:t}function QR(e){return typeof e=="object"&&e!==null}function jR(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function _h(e){if(!QR(e)||jR(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Gr(e,t){return Object.keys(t).forEach(s=>{if(_h(t[s])&&_h(e[s])){e[s]||(e[s]={}),Gr(e[s],t[s]);return}e[s]=t[s]}),e}function Cr(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Dc(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}const BR={};function UR(e){return BR[e]}function Eh(e,t,s){typeof s.value=="object"&&(s.value=ot(s.value)),!s.enumerable||s.get||s.set||!s.configurable||!s.writable||t==="__proto__"?Object.defineProperty(e,t,s):e[t]=s.value}function ot(e){if(typeof e!="object")return e;var t=0,s,n,i,r=Object.prototype.toString.call(e);if(r==="[object Object]"?i=Object.create(e.__proto__||null):r==="[object Array]"?i=Array(e.length):r==="[object Set]"?(i=new Set,e.forEach(function(o){i.add(ot(o))})):r==="[object Map]"?(i=new Map,e.forEach(function(o,l){i.set(ot(l),ot(o))})):r==="[object Date]"?i=new Date(+e):r==="[object RegExp]"?i=new RegExp(e.source,e.flags):r==="[object DataView]"?i=new e.constructor(ot(e.buffer)):r==="[object ArrayBuffer]"?i=e.slice(0):r.slice(-6)==="Array]"&&(i=new e.constructor(e)),i){for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)Eh(i,n[t],Object.getOwnPropertyDescriptor(e,n[t]));for(t=0,n=Object.getOwnPropertyNames(e);t<n.length;t++)Object.hasOwnProperty.call(i,s=n[t])&&i[s]===e[s]||Eh(i,s,Object.getOwnPropertyDescriptor(e,s))}return i||e}const Yo=Symbol("vee-validate-form"),KR=Symbol("vee-validate-form-context"),HR=Symbol("vee-validate-field-instance"),uo=Symbol("Default empty value"),GR=typeof window<"u";function $u(e){return Mt(e)&&!!e.__locatorRef}function Ns(e){return!!e&&Mt(e.parse)&&e.__type==="VVTypedSchema"}function co(e){return!!e&&Mt(e.validate)}function oa(e){return e==="checkbox"||e==="radio"}function WR(e){return mi(e)||Array.isArray(e)}function zR(e){return Array.isArray(e)?e.length===0:mi(e)&&Object.keys(e).length===0}function la(e){return/^\[.+\]$/i.test(e)}function YR(e){return gv(e)&&e.multiple}function gv(e){return e.tagName==="SELECT"}function ZR(e,t){const s=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&s}function JR(e,t){return!ZR(e,t)&&t.type!=="file"&&!oa(t.type)}function vv(e){return Rc(e)&&e.target&&"submit"in e.target}function Rc(e){return e?!!(typeof Event<"u"&&Mt(Event)&&e instanceof Event||e&&e.srcElement):!1}function wh(e,t){return t in e&&e[t]!==uo}function Zt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var s,n,i;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!Zt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Zt(n[1],t.get(n[0])))return!1;return!0}if(Ah(e)&&Ah(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=Ch(e),t=Ch(t),i=Object.keys(e),s=i.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=s;n--!==0;){var r=i[n];if(!Zt(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function Ch(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function Ah(e){return GR?e instanceof File:!1}function Zo(e){return la(e)?e.replace(/\[|\]/gi,""):e}function ns(e,t,s){return e?la(t)?e[Zo(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,r)=>WR(i)&&r in i?i[r]:s,e):s}function Xs(e,t,s){if(la(t)){e[Zo(t)]=s;return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let r=0;r<n.length;r++){if(r===n.length-1){i[n[r]]=s;return}(!(n[r]in i)||pv(i[n[r]]))&&(i[n[r]]=Dc(n[r+1])?[]:{}),i=i[n[r]]}}function Ml(e,t){if(Array.isArray(e)&&Dc(t)){e.splice(Number(t),1);return}mi(e)&&delete e[t]}function Sh(e,t){if(la(t)){delete e[Zo(t)];return}const s=t.split(/\.|\[(\d+)\]/).filter(Boolean);let n=e;for(let r=0;r<s.length;r++){if(r===s.length-1){Ml(n,s[r]);break}if(!(s[r]in n)||pv(n[s[r]]))break;n=n[s[r]]}const i=s.map((r,o)=>ns(e,s.slice(0,o).join(".")));for(let r=i.length-1;r>=0;r--)if(zR(i[r])){if(r===0){Ml(e,s[0]);continue}Ml(i[r-1],s[r-1])}}function ls(e){return Object.keys(e)}function bv(e,t=void 0){const s=gi();return s?.provides[e]||Yt(e,t)}function xh(e,t,s){if(Array.isArray(e)){const n=[...e],i=n.findIndex(r=>Zt(r,t));return i>=0?n.splice(i,1):n.push(t),n}return Zt(e,t)?s:t}function $h(e,t=0){let s=null,n=[];return function(...i){return s&&clearTimeout(s),s=setTimeout(()=>{const r=e(...i);n.forEach(o=>o(r)),n=[]},t),new Promise(r=>n.push(r))}}function XR(e,t){return mi(t)&&t.number?VR(e):e}function Tu(e,t){let s;return async function(...i){const r=e(...i);s=r;const o=await r;return r!==s?o:(s=void 0,t(o,i))}}function Ou(e){return Array.isArray(e)?e:e?[e]:[]}function ka(e,t){const s={};for(const n in e)t.includes(n)||(s[n]=e[n]);return s}function eM(e){let t=null,s=[];return function(...n){const i=kt(()=>{if(t!==i)return;const r=e(...n);s.forEach(o=>o(r)),s=[],t=null});return t=i,new Promise(r=>s.push(r))}}function Mc(e,t,s){return t.slots.default?typeof e=="string"||!e?t.slots.default(s()):{default:()=>{var n,i;return(i=(n=t.slots).default)===null||i===void 0?void 0:i.call(n,s())}}:t.slots.default}function Il(e){if(yv(e))return e._value}function yv(e){return"_value"in e}function tM(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function fo(e){if(!Rc(e))return e;const t=e.target;if(oa(t.type)&&yv(t))return Il(t);if(t.type==="file"&&t.files){const s=Array.from(t.files);return t.multiple?s:s[0]}if(YR(t))return Array.from(t.options).filter(s=>s.selected&&!s.disabled).map(Il);if(gv(t)){const s=Array.from(t.options).find(n=>n.selected);return s?Il(s):t.value}return tM(t)}function _v(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?mi(e)&&e._$$isNormalized?e:mi(e)?Object.keys(e).reduce((s,n)=>{const i=sM(e[n]);return e[n]!==!1&&(s[n]=Th(i)),s},t):typeof e!="string"?t:e.split("|").reduce((s,n)=>{const i=nM(n);return i.name&&(s[i.name]=Th(i.params)),s},t):t}function sM(e){return e===!0?[]:Array.isArray(e)||mi(e)?e:[e]}function Th(e){const t=s=>typeof s=="string"&&s[0]==="@"?iM(s.slice(1)):s;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((s,n)=>(s[n]=t(e[n]),s),{})}const nM=e=>{let t=[];const s=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:s,params:t}};function iM(e){const t=s=>{var n;return(n=ns(s,e))!==null&&n!==void 0?n:s[e]};return t.__locatorRef=e,t}function rM(e){return Array.isArray(e)?e.filter($u):ls(e).filter(t=>$u(e[t])).map(t=>e[t])}const aM={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let oM=Object.assign({},aM);const Xn=()=>oM;async function Ev(e,t,s={}){const n=s?.bails,i={name:s?.name||"{field}",rules:t,label:s?.label,bails:n??!0,formData:s?.values||{}},r=await lM(i,e);return Object.assign(Object.assign({},r),{valid:!r.errors.length})}async function lM(e,t){const s=e.rules;if(Ns(s)||co(s))return cM(t,Object.assign(Object.assign({},e),{rules:s}));if(Mt(s)||Array.isArray(s)){const l={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},u=Array.isArray(s)?s:[s],d=u.length,c=[];for(let h=0;h<d;h++){const p=u[h],m=await p(t,l);if(!(typeof m!="string"&&!Array.isArray(m)&&m)){if(Array.isArray(m))c.push(...m);else{const w=typeof m=="string"?m:Cv(l);c.push(w)}if(e.bails)return{errors:c}}}return{errors:c}}const n=Object.assign(Object.assign({},e),{rules:_v(s)}),i=[],r=Object.keys(n.rules),o=r.length;for(let l=0;l<o;l++){const u=r[l],d=await dM(n,t,{name:u,params:n.rules[u]});if(d.error&&(i.push(d.error),e.bails))return{errors:i}}return{errors:i}}function uM(e){return!!e&&e.name==="ValidationError"}function wv(e){return{__type:"VVTypedSchema",async parse(s,n){var i;try{return{output:await e.validate(s,{abortEarly:!1,context:n?.formData||{}}),errors:[]}}catch(r){if(!uM(r))throw r;if(!(!((i=r.inner)===null||i===void 0)&&i.length)&&r.errors.length)return{errors:[{path:r.path,errors:r.errors}]};const o=r.inner.reduce((l,u)=>{const d=u.path||"";return l[d]||(l[d]={errors:[],path:d}),l[d].errors.push(...u.errors),l},{});return{errors:Object.values(o)}}}}}async function cM(e,t){const n=await(Ns(t.rules)?t.rules:wv(t.rules)).parse(e,{formData:t.formData}),i=[];for(const r of n.errors)r.errors.length&&i.push(...r.errors);return{value:n.value,errors:i}}async function dM(e,t,s){const n=UR(s.name);if(!n)throw new Error(`No such validator '${s.name}' exists.`);const i=fM(s.params,e.formData),r={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},s),{params:i})},o=await n(t,i,r);return typeof o=="string"?{error:o}:{error:o?void 0:Cv(r)}}function Cv(e){const t=Xn().generateMessage;return t?t(e):"Field is invalid"}function fM(e,t){const s=n=>$u(n)?n(t):n;return Array.isArray(e)?e.map(s):Object.keys(e).reduce((n,i)=>(n[i]=s(e[i]),n),{})}async function hM(e,t){const n=await(Ns(e)?e:wv(e)).parse(ot(t),{formData:ot(t)}),i={},r={};for(const o of n.errors){const l=o.errors,u=(o.path||"").replace(/\["(\d+)"\]/g,(d,c)=>`[${c}]`);i[u]={valid:!l.length,errors:l},l.length&&(r[u]=l[0])}return{valid:!n.errors.length,results:i,errors:r,values:n.value,source:"schema"}}async function mM(e,t,s){const i=ls(e).map(async d=>{var c,h,p;const m=(c=s?.names)===null||c===void 0?void 0:c[d],g=await Ev(ns(t,d),e[d],{name:m?.name||d,label:m?.label,values:t,bails:(p=(h=s?.bailsMap)===null||h===void 0?void 0:h[d])!==null&&p!==void 0?p:!0});return Object.assign(Object.assign({},g),{path:d})});let r=!0;const o=await Promise.all(i),l={},u={};for(const d of o)l[d.path]={valid:d.valid,errors:d.errors},d.valid||(r=!1,u[d.path]=d.errors[0]);return{valid:r,results:l,errors:u,source:"schema"}}let Oh=0;function pM(e,t){const{value:s,initialValue:n,setInitialValue:i}=gM(e,t.modelValue,t.form);if(!t.form){let u=function(m){var g;"value"in m&&(s.value=m.value),"errors"in m&&c(m.errors),"touched"in m&&(p.touched=(g=m.touched)!==null&&g!==void 0?g:p.touched),"initialValue"in m&&i(m.initialValue)};const{errors:d,setErrors:c}=yM(),h=Oh>=Number.MAX_SAFE_INTEGER?0:++Oh,p=bM(s,n,d,t.schema);return{id:h,path:e,value:s,initialValue:n,meta:p,flags:{pendingUnmount:{[h]:!1},pendingReset:!1},errors:d,setState:u}}const r=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),o=v(()=>r.errors);function l(u){var d,c,h;"value"in u&&(s.value=u.value),"errors"in u&&((d=t.form)===null||d===void 0||d.setFieldError(O(e),u.errors)),"touched"in u&&((c=t.form)===null||c===void 0||c.setFieldTouched(O(e),(h=u.touched)!==null&&h!==void 0?h:!1)),"initialValue"in u&&i(u.initialValue)}return{id:Array.isArray(r.id)?r.id[r.id.length-1]:r.id,path:e,value:s,errors:o,meta:r,initialValue:n,flags:r.__flags,setState:l}}function gM(e,t,s){const n=_e(O(t));function i(){return s?ns(s.initialValues.value,O(e),O(n)):O(n)}function r(d){if(!s){n.value=d;return}s.setFieldInitialValue(O(e),d,!0)}const o=v(i);if(!s)return{value:_e(i()),initialValue:o,setInitialValue:r};const l=vM(t,s,o,e);return s.stageInitialValue(O(e),l,!0),{value:v({get(){return ns(s.values,O(e))},set(d){s.setFieldValue(O(e),d,!1)}}),initialValue:o,setInitialValue:r}}function vM(e,t,s,n){return ht(e)?O(e):e!==void 0?e:ns(t.values,O(n),O(s))}function bM(e,t,s,n){const i=v(()=>{var o,l,u;return(u=(l=(o=Fe(n))===null||o===void 0?void 0:o.describe)===null||l===void 0?void 0:l.call(o).required)!==null&&u!==void 0?u:!1}),r=As({touched:!1,pending:!1,valid:!0,required:i,validated:!!O(s).length,initialValue:v(()=>O(t)),dirty:v(()=>!Zt(O(e),O(t)))});return Xe(s,o=>{r.valid=!o.length},{immediate:!0,flush:"sync"}),r}function yM(){const e=_e([]);return{errors:e,setErrors:t=>{e.value=Ou(t)}}}function _M(e,t,s){return oa(s?.type)?wM(e,t,s):Av(e,t,s)}function Av(e,t,s){const{initialValue:n,validateOnMount:i,bails:r,type:o,checkedValue:l,label:u,validateOnValueUpdate:d,uncheckedValue:c,controlled:h,keepValueOnUnmount:p,syncVModel:m,form:g}=EM(s),w=h?bv(Yo):void 0,_=g||w,S=v(()=>Cr(Fe(e))),A=v(()=>{if(Fe(_?.schema))return;const P=O(t);return co(P)||Ns(P)||Mt(P)||Array.isArray(P)?P:_v(P)}),x=!Mt(A.value)&&Ns(Fe(t)),{id:y,value:$,initialValue:F,meta:j,setState:q,errors:E,flags:T}=pM(S,{modelValue:n,form:_,bails:r,label:u,type:o,validate:A.value?W:void 0,schema:x?t:void 0}),C=v(()=>E.value[0]);m&&CM({value:$,prop:m,handleChange:V,shouldValidate:()=>d&&!T.pendingReset});const B=(G,P=!1)=>{j.touched=!0,P&&z()};async function Z(G){var P,Q;if(_?.validateSchema){const{results:te}=await _.validateSchema(G);return(P=te[Fe(S)])!==null&&P!==void 0?P:{valid:!0,errors:[]}}return A.value?Ev($.value,A.value,{name:Fe(S),label:Fe(u),values:(Q=_?.values)!==null&&Q!==void 0?Q:{},bails:r}):{valid:!0,errors:[]}}const z=Tu(async()=>(j.pending=!0,j.validated=!0,Z("validated-only")),G=>(T.pendingUnmount[$e.id]||(q({errors:G.errors}),j.pending=!1,j.valid=G.valid),G)),ie=Tu(async()=>Z("silent"),G=>(j.valid=G.valid,G));function W(G){return G?.mode==="silent"?ie():z()}function V(G,P=!0){const Q=fo(G);qe(Q,P)}Bt(()=>{if(i)return z();(!_||!_.validateSchema)&&ie()});function ne(G){j.touched=G}function de(G){var P;const Q=G&&"value"in G?G.value:F.value;q({value:ot(Q),initialValue:ot(Q),touched:(P=G?.touched)!==null&&P!==void 0?P:!1,errors:G?.errors||[]}),j.pending=!1,j.validated=!1,ie()}const ke=gi();function qe(G,P=!0){$.value=ke&&m?XR(G,ke.props.modelModifiers):G,(P?z:ie)()}function ce(G){q({errors:Array.isArray(G)?G:[G]})}const he=v({get(){return $.value},set(G){qe(G,d)}}),$e={id:y,name:S,label:u,value:he,meta:j,errors:E,errorMessage:C,type:o,checkedValue:l,uncheckedValue:c,bails:r,keepValueOnUnmount:p,resetField:de,handleReset:()=>de(),validate:W,handleChange:V,handleBlur:B,setState:q,setTouched:ne,setErrors:ce,setValue:qe};if(ii(HR,$e),ht(t)&&typeof O(t)!="function"&&Xe(t,(G,P)=>{Zt(G,P)||(j.validated?z():ie())},{deep:!0}),!_)return $e;const Te=v(()=>{const G=A.value;return!G||Mt(G)||co(G)||Ns(G)||Array.isArray(G)?{}:Object.keys(G).reduce((P,Q)=>{const te=rM(G[Q]).map(ve=>ve.__locatorRef).reduce((ve,J)=>{const k=ns(_.values,J)||_.values[J];return k!==void 0&&(ve[J]=k),ve},{});return Object.assign(P,te),P},{})});return Xe(Te,(G,P)=>{if(!Object.keys(G).length)return;!Zt(G,P)&&(j.validated?z():ie())}),tr(()=>{var G;const P=(G=Fe($e.keepValueOnUnmount))!==null&&G!==void 0?G:Fe(_.keepValuesOnUnmount),Q=Fe(S);if(P||!_||T.pendingUnmount[$e.id]){_?.removePathState(Q,y);return}T.pendingUnmount[$e.id]=!0;const te=_.getPathState(Q);if(Array.isArray(te?.id)&&te?.multiple?te?.id.includes($e.id):te?.id===$e.id){if(te?.multiple&&Array.isArray(te.value)){const J=te.value.findIndex(k=>Zt(k,Fe($e.checkedValue)));if(J>-1){const k=[...te.value];k.splice(J,1),_.setFieldValue(Q,k)}Array.isArray(te.id)&&te.id.splice(te.id.indexOf($e.id),1)}else _.unsetPathValue(Fe(S));_.removePathState(Q,y)}}),$e}function EM(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),s=!!e?.syncVModel,n=typeof e?.syncVModel=="string"?e.syncVModel:e?.modelPropName||"modelValue",i=s&&!("initialValue"in(e||{}))?Nu(gi(),n):e?.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});const r="valueProp"in e?e.valueProp:e.checkedValue,o="standalone"in e?!e.standalone:e.controlled,l=e?.modelPropName||e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:o??!0,checkedValue:r,syncVModel:l})}function wM(e,t,s){const n=s?.standalone?void 0:bv(Yo),i=s?.checkedValue,r=s?.uncheckedValue;function o(l){const u=l.handleChange,d=v(()=>{const h=Fe(l.value),p=Fe(i);return Array.isArray(h)?h.findIndex(m=>Zt(m,p))>=0:Zt(p,h)});function c(h,p=!0){var m,g;if(d.value===((m=h?.target)===null||m===void 0?void 0:m.checked)){p&&l.validate();return}const w=Fe(e),_=n?.getPathState(w),S=fo(h);let A=(g=Fe(i))!==null&&g!==void 0?g:S;n&&_?.multiple&&_.type==="checkbox"?A=xh(ns(n.values,w)||[],A,void 0):s?.type==="checkbox"&&(A=xh(Fe(l.value),A,Fe(r))),u(A,p)}return Object.assign(Object.assign({},l),{checked:d,checkedValue:i,uncheckedValue:r,handleChange:c})}return o(Av(e,t,s))}function CM({prop:e,value:t,handleChange:s,shouldValidate:n}){const i=gi();if(!i||!e)return;const r=typeof e=="string"?e:"modelValue",o=`update:${r}`;r in i.props&&(Xe(t,l=>{Zt(l,Nu(i,r))||i.emit(o,l)}),Xe(()=>Nu(i,r),l=>{if(l===uo&&t.value===void 0)return;const u=l===uo?void 0:l;Zt(u,t.value)||s(u,n())}))}function Nu(e,t){if(e)return e.props[t]}const AM=Ge({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Xn().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:uo},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,t){const s=zn(e,"rules"),n=zn(e,"name"),i=zn(e,"label"),r=zn(e,"uncheckedValue"),o=zn(e,"keepValue"),{errors:l,value:u,errorMessage:d,validate:c,handleChange:h,handleBlur:p,setTouched:m,resetField:g,handleReset:w,meta:_,checked:S,setErrors:A,setValue:x}=_M(n,s,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:xM(e,t),checkedValue:t.attrs.value,uncheckedValue:r,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),y=function(T,C=!0){h(T,C)},$=v(()=>{const{validateOnInput:E,validateOnChange:T,validateOnBlur:C,validateOnModelUpdate:B}=SM(e);function Z(V){p(V,C),Mt(t.attrs.onBlur)&&t.attrs.onBlur(V)}function z(V){y(V,E),Mt(t.attrs.onInput)&&t.attrs.onInput(V)}function ie(V){y(V,T),Mt(t.attrs.onChange)&&t.attrs.onChange(V)}const W={name:e.name,onBlur:Z,onInput:z,onChange:ie};return W["onUpdate:modelValue"]=V=>y(V,B),W}),F=v(()=>{const E=Object.assign({},$.value);oa(t.attrs.type)&&S&&(E.checked=S.value);const T=Nh(e,t);return JR(T,t.attrs)&&(E.value=u.value),E}),j=v(()=>Object.assign(Object.assign({},$.value),{modelValue:u.value}));function q(){return{field:F.value,componentField:j.value,value:u.value,meta:_,errors:l.value,errorMessage:d.value,validate:c,resetField:g,handleChange:y,handleInput:E=>y(E,!1),handleReset:w,handleBlur:$.value.onBlur,setTouched:m,setErrors:A,setValue:x}}return t.expose({value:u,meta:_,errors:l,errorMessage:d,setErrors:A,setTouched:m,setValue:x,reset:g,validate:c,handleChange:h}),()=>{const E=Mo(Nh(e,t)),T=Mc(E,t,q);return E?ui(E,Object.assign(Object.assign({},t.attrs),F.value),T):T}}});function Nh(e,t){let s=e.as||"";return!e.as&&!t.slots.default&&(s="input"),s}function SM(e){var t,s,n,i;const{validateOnInput:r,validateOnChange:o,validateOnBlur:l,validateOnModelUpdate:u}=Xn();return{validateOnInput:(t=e.validateOnInput)!==null&&t!==void 0?t:r,validateOnChange:(s=e.validateOnChange)!==null&&s!==void 0?s:o,validateOnBlur:(n=e.validateOnBlur)!==null&&n!==void 0?n:l,validateOnModelUpdate:(i=e.validateOnModelUpdate)!==null&&i!==void 0?i:u}}function xM(e,t){return oa(t.attrs.type)?wh(e,"modelValue")?e.modelValue:void 0:wh(e,"modelValue")?e.modelValue:t.attrs.value}const Os=AM;let $M=0;const Pa=["bails","fieldsCount","id","multiple","type","validate"];function Sv(e){const t=e?.initialValues||{},s=Object.assign({},Fe(t)),n=O(e?.validationSchema);return n&&Ns(n)&&Mt(n.cast)?ot(n.cast(s)||{}):ot(s)}function Jo(e){var t;const s=$M++,n=e?.name||"Form";let i=0;const r=_e(!1),o=_e(!1),l=_e(0),u=[],d=As(Sv(e)),c=_e([]),h=_e({}),p=_e({}),m=eM(()=>{p.value=c.value.reduce((H,K)=>(H[Cr(Fe(K.path))]=K,H),{})});function g(H,K){const le=V(H);if(!le){typeof H=="string"&&(h.value[Cr(H)]=Ou(K));return}if(typeof H=="string"){const Ce=Cr(H);h.value[Ce]&&delete h.value[Ce]}le.errors=Ou(K),le.valid=!le.errors.length}function w(H){ls(H).forEach(K=>{g(K,H[K])})}e?.initialErrors&&w(e.initialErrors);const _=v(()=>{const H=c.value.reduce((K,le)=>(le.errors.length&&(K[Fe(le.path)]=le.errors),K),{});return Object.assign(Object.assign({},h.value),H)}),S=v(()=>ls(_.value).reduce((H,K)=>{const le=_.value[K];return le?.length&&(H[K]=le[0]),H},{})),A=v(()=>c.value.reduce((H,K)=>(H[Fe(K.path)]={name:Fe(K.path)||"",label:K.label||""},H),{})),x=v(()=>c.value.reduce((H,K)=>{var le;return H[Fe(K.path)]=(le=K.bails)!==null&&le!==void 0?le:!0,H},{})),y=Object.assign({},e?.initialErrors||{}),$=(t=e?.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:F,originalInitialValues:j,setInitialValues:q}=OM(c,d,e),E=TM(c,d,j,S),T=v(()=>c.value.reduce((H,K)=>{const le=ns(d,Fe(K.path));return Xs(H,Fe(K.path),le),H},{})),C=e?.validationSchema;function B(H,K){var le,Ce;const xe=v(()=>ns(F.value,Fe(H))),Le=p.value[Fe(H)],De=K?.type==="checkbox"||K?.type==="radio";if(Le&&De){Le.multiple=!0;const es=i++;return Array.isArray(Le.id)?Le.id.push(es):Le.id=[Le.id,es],Le.fieldsCount++,Le.__flags.pendingUnmount[es]=!1,Le}const dt=v(()=>ns(d,Fe(H))),mt=Fe(H),St=de.findIndex(es=>es===mt);St!==-1&&de.splice(St,1);const pt=v(()=>{var es,Rn,rr,ar;const or=Fe(C);if(Ns(or))return(Rn=(es=or.describe)===null||es===void 0?void 0:es.call(or,Fe(H)).required)!==null&&Rn!==void 0?Rn:!1;const lr=Fe(K?.schema);return Ns(lr)&&(ar=(rr=lr.describe)===null||rr===void 0?void 0:rr.call(lr).required)!==null&&ar!==void 0?ar:!1}),xt=i++,Lt=As({id:xt,path:H,touched:!1,pending:!1,valid:!0,validated:!!(!((le=y[mt])===null||le===void 0)&&le.length),required:pt,initialValue:xe,errors:Zm([]),bails:(Ce=K?.bails)!==null&&Ce!==void 0?Ce:!1,label:K?.label,type:K?.type||"default",value:dt,multiple:!1,__flags:{pendingUnmount:{[xt]:!1},pendingReset:!1},fieldsCount:1,validate:K?.validate,dirty:v(()=>!Zt(O(dt),O(xe)))});return c.value.push(Lt),p.value[mt]=Lt,m(),S.value[mt]&&!y[mt]&&kt(()=>{Y(mt,{mode:"silent"})}),ht(H)&&Xe(H,es=>{m();const Rn=ot(dt.value);p.value[es]=Lt,kt(()=>{Xs(d,es,Rn)})}),Lt}const Z=$h(Oe,5),z=$h(Oe,5),ie=Tu(async H=>await(H==="silent"?Z():z()),(H,[K])=>{const le=ls(P.errorBag.value),xe=[...new Set([...ls(H.results),...c.value.map(Le=>Le.path),...le])].sort().reduce((Le,De)=>{var dt;const mt=De,St=V(mt)||ne(mt),pt=((dt=H.results[mt])===null||dt===void 0?void 0:dt.errors)||[],xt=Fe(St?.path)||mt,Lt=NM({errors:pt,valid:!pt.length},Le.results[xt]);return Le.results[xt]=Lt,Lt.valid||(Le.errors[xt]=Lt.errors[0]),St&&h.value[xt]&&delete h.value[xt],St?(St.valid=Lt.valid,K==="silent"||K==="validated-only"&&!St.validated||g(St,Lt.errors),Le):(g(xt,pt),Le)},{valid:H.valid,results:{},errors:{},source:H.source});return H.values&&(xe.values=H.values,xe.source=H.source),ls(xe.results).forEach(Le=>{var De;const dt=V(Le);dt&&K!=="silent"&&(K==="validated-only"&&!dt.validated||g(dt,(De=xe.results[Le])===null||De===void 0?void 0:De.errors))}),xe});function W(H){c.value.forEach(H)}function V(H){const K=typeof H=="string"?Cr(H):H;return typeof K=="string"?p.value[K]:K}function ne(H){return c.value.filter(le=>H.startsWith(Fe(le.path))).reduce((le,Ce)=>le?Ce.path.length>le.path.length?Ce:le:Ce,void 0)}let de=[],ke;function qe(H){return de.push(H),ke||(ke=kt(()=>{[...de].sort().reverse().forEach(le=>{Sh(d,le)}),de=[],ke=null})),ke}function ce(H){return function(le,Ce){return function(Le){return Le instanceof Event&&(Le.preventDefault(),Le.stopPropagation()),W(De=>De.touched=!0),r.value=!0,l.value++,pe().then(De=>{const dt=ot(d);if(De.valid&&typeof le=="function"){const mt=ot(T.value);let St=H?mt:dt;return De.values&&(St=De.source==="schema"?De.values:Object.assign({},St,De.values)),le(St,{evt:Le,controlledValues:mt,setErrors:w,setFieldError:g,setTouched:re,setFieldTouched:k,setValues:ve,setFieldValue:Q,resetForm:me,resetField:oe})}!De.valid&&typeof Ce=="function"&&Ce({values:dt,evt:Le,errors:De.errors,results:De.results})}).then(De=>(r.value=!1,De),De=>{throw r.value=!1,De})}}}const $e=ce(!1);$e.withControlled=ce(!0);function Te(H,K){const le=c.value.findIndex(xe=>xe.path===H&&(Array.isArray(xe.id)?xe.id.includes(K):xe.id===K)),Ce=c.value[le];if(!(le===-1||!Ce)){if(kt(()=>{Y(H,{mode:"silent",warn:!1})}),Ce.multiple&&Ce.fieldsCount&&Ce.fieldsCount--,Array.isArray(Ce.id)){const xe=Ce.id.indexOf(K);xe>=0&&Ce.id.splice(xe,1),delete Ce.__flags.pendingUnmount[K]}(!Ce.multiple||Ce.fieldsCount<=0)&&(c.value.splice(le,1),ue(H),m(),delete p.value[H])}}function G(H){ls(p.value).forEach(K=>{K.startsWith(H)&&delete p.value[K]}),c.value=c.value.filter(K=>!K.path.startsWith(H)),kt(()=>{m()})}const P={name:n,formId:s,values:d,controlledValues:T,errorBag:_,errors:S,schema:C,submitCount:l,meta:E,isSubmitting:r,isValidating:o,fieldArrays:u,keepValuesOnUnmount:$,validateSchema:O(C)?ie:void 0,validate:pe,setFieldError:g,validateField:Y,setFieldValue:Q,setValues:ve,setErrors:w,setFieldTouched:k,setTouched:re,resetForm:me,resetField:oe,handleSubmit:$e,useFieldModel:st,defineInputBinds:et,defineComponentBinds:_t,defineField:He,stageInitialValue:Me,unsetInitialValue:ue,setFieldInitialValue:Ee,createPathState:B,getPathState:V,unsetPathValue:qe,removePathState:Te,initialValues:F,getAllPathStates:()=>c.value,destroyPath:G,isFieldTouched:M,isFieldDirty:U,isFieldValid:se};function Q(H,K,le=!0){const Ce=ot(K),xe=typeof H=="string"?H:H.path;V(xe)||B(xe),Xs(d,xe,Ce),le&&Y(xe)}function te(H,K=!0){ls(d).forEach(le=>{delete d[le]}),ls(H).forEach(le=>{Q(le,H[le],!1)}),K&&pe()}function ve(H,K=!0){Gr(d,H),u.forEach(le=>le&&le.reset()),K&&pe()}function J(H,K){const le=V(Fe(H))||B(H);return v({get(){return le.value},set(Ce){var xe;const Le=Fe(H);Q(Le,Ce,(xe=Fe(K))!==null&&xe!==void 0?xe:!1)}})}function k(H,K){const le=V(H);le&&(le.touched=K)}function M(H){const K=V(H);return K?K.touched:c.value.filter(le=>le.path.startsWith(H)).some(le=>le.touched)}function U(H){const K=V(H);return K?K.dirty:c.value.filter(le=>le.path.startsWith(H)).some(le=>le.dirty)}function se(H){const K=V(H);return K?K.valid:c.value.filter(le=>le.path.startsWith(H)).every(le=>le.valid)}function re(H){if(typeof H=="boolean"){W(K=>{K.touched=H});return}ls(H).forEach(K=>{k(K,!!H[K])})}function oe(H,K){var le;const Ce=K&&"value"in K?K.value:ns(F.value,H),xe=V(H);xe&&(xe.__flags.pendingReset=!0),Ee(H,ot(Ce),!0),Q(H,Ce,!1),k(H,(le=K?.touched)!==null&&le!==void 0?le:!1),g(H,K?.errors||[]),kt(()=>{xe&&(xe.__flags.pendingReset=!1)})}function me(H,K){let le=ot(H?.values?H.values:j.value);le=K?.force?le:Gr(j.value,le),le=Ns(C)&&Mt(C.cast)?C.cast(le):le,q(le,{force:K?.force}),W(Ce=>{var xe;Ce.__flags.pendingReset=!0,Ce.validated=!1,Ce.touched=((xe=H?.touched)===null||xe===void 0?void 0:xe[Fe(Ce.path)])||!1,Q(Fe(Ce.path),ns(le,Fe(Ce.path)),!1),g(Fe(Ce.path),void 0)}),K?.force?te(le,!1):ve(le,!1),w(H?.errors||{}),l.value=H?.submitCount||0,kt(()=>{pe({mode:"silent"}),W(Ce=>{Ce.__flags.pendingReset=!1})})}async function pe(H){const K=H?.mode||"force";if(K==="force"&&W(De=>De.validated=!0),P.validateSchema)return P.validateSchema(K);o.value=!0;const le=await Promise.all(c.value.map(De=>De.validate?De.validate(H).then(dt=>({key:Fe(De.path),valid:dt.valid,errors:dt.errors,value:dt.value})):Promise.resolve({key:Fe(De.path),valid:!0,errors:[],value:void 0})));o.value=!1;const Ce={},xe={},Le={};for(const De of le)Ce[De.key]={valid:De.valid,errors:De.errors},De.value&&Xs(Le,De.key,De.value),De.errors.length&&(xe[De.key]=De.errors[0]);return{valid:le.every(De=>De.valid),results:Ce,errors:xe,values:Le,source:"fields"}}async function Y(H,K){var le;const Ce=V(H);if(Ce&&K?.mode!=="silent"&&(Ce.validated=!0),C){const{results:xe}=await ie(K?.mode||"validated-only");return xe[H]||{errors:[],valid:!0}}return Ce?.validate?Ce.validate(K):(!Ce&&(le=K?.warn),Promise.resolve({errors:[],valid:!0}))}function ue(H){Sh(F.value,H)}function Me(H,K,le=!1){Ee(H,K),Xs(d,H,K),le&&!e?.initialValues&&Xs(j.value,H,ot(K))}function Ee(H,K,le=!1){Xs(F.value,H,ot(K)),le&&Xs(j.value,H,ot(K))}async function Oe(){const H=O(C);if(!H)return{valid:!0,results:{},errors:{},source:"none"};o.value=!0;const K=co(H)||Ns(H)?await hM(H,d):await mM(H,d,{names:A.value,bailsMap:x.value});return o.value=!1,K}const Qe=$e((H,{evt:K})=>{vv(K)&&K.target.submit()});Bt(()=>{if(e?.initialErrors&&w(e.initialErrors),e?.initialTouched&&re(e.initialTouched),e?.validateOnMount){pe();return}P.validateSchema&&P.validateSchema("silent")}),ht(C)&&Xe(C,()=>{var H;(H=P.validateSchema)===null||H===void 0||H.call(P,"validated-only")}),ii(Yo,P);function He(H,K){const le=Mt(K)?void 0:K?.label,Ce=V(Fe(H))||B(H,{label:le}),xe=()=>Mt(K)?K(ka(Ce,Pa)):K||{};function Le(){var pt;Ce.touched=!0,((pt=xe().validateOnBlur)!==null&&pt!==void 0?pt:Xn().validateOnBlur)&&Y(Fe(Ce.path))}function De(){var pt;((pt=xe().validateOnInput)!==null&&pt!==void 0?pt:Xn().validateOnInput)&&kt(()=>{Y(Fe(Ce.path))})}function dt(){var pt;((pt=xe().validateOnChange)!==null&&pt!==void 0?pt:Xn().validateOnChange)&&kt(()=>{Y(Fe(Ce.path))})}const mt=v(()=>{const pt={onChange:dt,onInput:De,onBlur:Le};return Mt(K)?Object.assign(Object.assign({},pt),K(ka(Ce,Pa)).props||{}):K?.props?Object.assign(Object.assign({},pt),K.props(ka(Ce,Pa))):pt});return[J(H,()=>{var pt,xt,Lt;return(Lt=(pt=xe().validateOnModelUpdate)!==null&&pt!==void 0?pt:(xt=Xn())===null||xt===void 0?void 0:xt.validateOnModelUpdate)!==null&&Lt!==void 0?Lt:!0}),mt]}function st(H){return Array.isArray(H)?H.map(K=>J(K,!0)):J(H)}function et(H,K){const[le,Ce]=He(H,K);function xe(){Ce.value.onBlur()}function Le(dt){const mt=fo(dt);Q(Fe(H),mt,!1),Ce.value.onInput()}function De(dt){const mt=fo(dt);Q(Fe(H),mt,!1),Ce.value.onChange()}return v(()=>Object.assign(Object.assign({},Ce.value),{onBlur:xe,onInput:Le,onChange:De,value:le.value}))}function _t(H,K){const[le,Ce]=He(H,K),xe=V(Fe(H));function Le(De){le.value=De}return v(()=>{const De=Mt(K)?K(ka(xe,Pa)):K||{};return Object.assign({[De.model||"modelValue"]:le.value,[`onUpdate:${De.model||"modelValue"}`]:Le},Ce.value)})}const Ct=Object.assign(Object.assign({},P),{values:Bi(d),handleReset:()=>me(),submitForm:Qe});return ii(KR,Ct),Ct}function TM(e,t,s,n){const i={touched:"some",pending:"some",valid:"every"},r=v(()=>!Zt(t,O(s)));function o(){const u=e.value;return ls(i).reduce((d,c)=>{const h=i[c];return d[c]=u[h](p=>p[c]),d},{})}const l=As(o());return At(()=>{const u=o();l.touched=u.touched,l.valid=u.valid,l.pending=u.pending}),v(()=>Object.assign(Object.assign({initialValues:O(s)},l),{valid:l.valid&&!ls(n.value).length,dirty:r.value}))}function OM(e,t,s){const n=Sv(s),i=_e(n),r=_e(ot(n));function o(l,u){u?.force?(i.value=ot(l),r.value=ot(l)):(i.value=Gr(ot(i.value)||{},ot(l)),r.value=Gr(ot(r.value)||{},ot(l))),u?.updateFields&&e.value.forEach(d=>{if(d.touched)return;const h=ns(i.value,Fe(d.path));Xs(t,Fe(d.path),ot(h))})}return{initialValues:i,originalInitialValues:r,setInitialValues:o}}function NM(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const kM=Ge({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,t){const s=zn(e,"validationSchema"),n=zn(e,"keepValues"),{errors:i,errorBag:r,values:o,meta:l,isSubmitting:u,isValidating:d,submitCount:c,controlledValues:h,validate:p,validateField:m,handleReset:g,resetForm:w,handleSubmit:_,setErrors:S,setFieldError:A,setFieldValue:x,setValues:y,setFieldTouched:$,setTouched:F,resetField:j}=Jo({validationSchema:s.value?s:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:n,name:e.name}),q=_((W,{evt:V})=>{vv(V)&&V.target.submit()},e.onInvalidSubmit),E=e.onSubmit?_(e.onSubmit,e.onInvalidSubmit):q;function T(W){Rc(W)&&W.preventDefault(),g(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function C(W,V){return _(typeof W=="function"&&!V?W:V,e.onInvalidSubmit)(W)}function B(){return ot(o)}function Z(){return ot(l.value)}function z(){return ot(i.value)}function ie(){return{meta:l.value,errors:i.value,errorBag:r.value,values:o,isSubmitting:u.value,isValidating:d.value,submitCount:c.value,controlledValues:h.value,validate:p,validateField:m,handleSubmit:C,handleReset:g,submitForm:q,setErrors:S,setFieldError:A,setFieldValue:x,setValues:y,setFieldTouched:$,setTouched:F,resetForm:w,resetField:j,getValues:B,getMeta:Z,getErrors:z}}return t.expose({setFieldError:A,setErrors:S,setFieldValue:x,setValues:y,setFieldTouched:$,setTouched:F,resetForm:w,validate:p,validateField:m,resetField:j,getValues:B,getMeta:Z,getErrors:z,values:o,meta:l,errors:i}),function(){const V=e.as==="form"?e.as:e.as?Mo(e.as):null,ne=Mc(V,t,ie);return V?ui(V,Object.assign(Object.assign(Object.assign({},V==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:E,onReset:T}),ne):ne}}}),xv=kM,PM=Ge({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const s=Yt(Yo,void 0),n=v(()=>s?.errors.value[e.name]);function i(){return{message:n.value}}return()=>{if(!n.value)return;const r=e.as?Mo(e.as):e.as,o=Mc(r,t,i),l=Object.assign({role:"alert"},t.attrs);return!r&&(Array.isArray(o)||!o)&&o?.length?o:(Array.isArray(o)||!o)&&!o?.length?ui(r||"span",l,n.value):ui(r,l,o)}}}),ei=PM;var rt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function s(i){throw new Error}e.assertNever=s,e.arrayToEnum=i=>{const r={};for(const o of i)r[o]=o;return r},e.getValidEnumValues=i=>{const r=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of r)o[l]=i[l];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(r){return i[r]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const r=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&r.push(o);return r},e.find=(i,r)=>{for(const o of i)if(r(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,r=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(r)}e.joinValues=n,e.jsonStringifyReplacer=(i,r)=>typeof r=="bigint"?r.toString():r})(rt||(rt={}));var kh;(function(e){e.mergeShapes=(t,s)=>({...t,...s})})(kh||(kh={}));const Ne=rt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),En=e=>{switch(typeof e){case"undefined":return Ne.undefined;case"string":return Ne.string;case"number":return Number.isNaN(e)?Ne.nan:Ne.number;case"boolean":return Ne.boolean;case"function":return Ne.function;case"bigint":return Ne.bigint;case"symbol":return Ne.symbol;case"object":return Array.isArray(e)?Ne.array:e===null?Ne.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ne.promise:typeof Map<"u"&&e instanceof Map?Ne.map:typeof Set<"u"&&e instanceof Set?Ne.set:typeof Date<"u"&&e instanceof Date?Ne.date:Ne.object;default:return Ne.unknown}},ge=rt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class cn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const s=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,s):this.__proto__=s,this.name="ZodError",this.issues=t}format(t){const s=t||function(r){return r.message},n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(s(o));else{let l=n,u=0;for(;u<o.path.length;){const d=o.path[u];u===o.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(s(o))):l[d]=l[d]||{_errors:[]},l=l[d],u++}}};return i(this),n}static assert(t){if(!(t instanceof cn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,rt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=s=>s.message){const s={},n=[];for(const i of this.issues)if(i.path.length>0){const r=i.path[0];s[r]=s[r]||[],s[r].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:s}}get formErrors(){return this.flatten()}}cn.create=e=>new cn(e);const ku=(e,t)=>{let s;switch(e.code){case ge.invalid_type:e.received===Ne.undefined?s="Required":s=`Expected ${e.expected}, received ${e.received}`;break;case ge.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(e.expected,rt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:s=`Unrecognized key(s) in object: ${rt.joinValues(e.keys,", ")}`;break;case ge.invalid_union:s="Invalid input";break;case ge.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${rt.joinValues(e.options)}`;break;case ge.invalid_enum_value:s=`Invalid enum value. Expected ${rt.joinValues(e.options)}, received '${e.received}'`;break;case ge.invalid_arguments:s="Invalid function arguments";break;case ge.invalid_return_type:s="Invalid function return type";break;case ge.invalid_date:s="Invalid date";break;case ge.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(s=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(s=`${s} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?s=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?s=`Invalid input: must end with "${e.validation.endsWith}"`:rt.assertNever(e.validation):e.validation!=="regex"?s=`Invalid ${e.validation}`:s="Invalid";break;case ge.too_small:e.type==="array"?s=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?s=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?s=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?s=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?s=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:s="Invalid input";break;case ge.too_big:e.type==="array"?s=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?s=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?s=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?s=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?s=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:s="Invalid input";break;case ge.custom:s="Invalid input";break;case ge.invalid_intersection_types:s="Intersection results could not be merged";break;case ge.not_multiple_of:s=`Number must be a multiple of ${e.multipleOf}`;break;case ge.not_finite:s="Number must be finite";break;default:s=t.defaultError,rt.assertNever(e)}return{message:s}};let DM=ku;function RM(){return DM}const MM=e=>{const{data:t,path:s,errorMaps:n,issueData:i}=e,r=[...s,...i.path||[]],o={...i,path:r};if(i.message!==void 0)return{...i,path:r,message:i.message};let l="";const u=n.filter(d=>!!d).slice().reverse();for(const d of u)l=d(o,{data:t,defaultError:l}).message;return{...i,path:r,message:l}};function Se(e,t){const s=RM(),n=MM({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,s,s===ku?void 0:ku].filter(i=>!!i)});e.common.issues.push(n)}class hs{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,s){const n=[];for(const i of s){if(i.status==="aborted")return Ke;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,s){const n=[];for(const i of s){const r=await i.key,o=await i.value;n.push({key:r,value:o})}return hs.mergeObjectSync(t,n)}static mergeObjectSync(t,s){const n={};for(const i of s){const{key:r,value:o}=i;if(r.status==="aborted"||o.status==="aborted")return Ke;r.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[r.value]=o.value)}return{status:t.value,value:n}}}const Ke=Object.freeze({status:"aborted"}),Ar=e=>({status:"dirty",value:e}),Ss=e=>({status:"valid",value:e}),Ph=e=>e.status==="aborted",Dh=e=>e.status==="dirty",zi=e=>e.status==="valid",ho=e=>typeof Promise<"u"&&e instanceof Promise;var Pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Pe||(Pe={}));class On{constructor(t,s,n,i){this._cachedPath=[],this.parent=t,this.data=s,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Rh=(e,t)=>{if(zi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const s=new cn(e.common.issues);return this._error=s,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:s,required_error:n,description:i}=e;if(t&&(s||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,l)=>{const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??l.defaultError}:typeof l.data>"u"?{message:u??n??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:u??s??l.defaultError}},description:i}}class it{get description(){return this._def.description}_getType(t){return En(t.data)}_getOrReturnCtx(t,s){return s||{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new hs,ctx:{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const s=this._parse(t);if(ho(s))throw new Error("Synchronous parse encountered promise.");return s}_parseAsync(t){const s=this._parse(t);return Promise.resolve(s)}parse(t,s){const n=this.safeParse(t,s);if(n.success)return n.data;throw n.error}safeParse(t,s){const n={common:{issues:[],async:s?.async??!1,contextualErrorMap:s?.errorMap},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)},i=this._parseSync({data:t,path:n.path,parent:n});return Rh(n,i)}"~validate"(t){const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)};if(!this["~standard"].async)try{const n=this._parseSync({data:t,path:[],parent:s});return zi(n)?{value:n.value}:{issues:s.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(n=>zi(n)?{value:n.value}:{issues:s.common.issues})}async parseAsync(t,s){const n=await this.safeParseAsync(t,s);if(n.success)return n.data;throw n.error}async safeParseAsync(t,s){const n={common:{issues:[],contextualErrorMap:s?.errorMap,async:!0},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)},i=this._parse({data:t,path:n.path,parent:n}),r=await(ho(i)?i:Promise.resolve(i));return Rh(n,r)}refine(t,s){const n=i=>typeof s=="string"||typeof s>"u"?{message:s}:typeof s=="function"?s(i):s;return this._refinement((i,r)=>{const o=t(i),l=()=>r.addIssue({code:ge.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,s){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof s=="function"?s(n,i):s),!1))}_refinement(t){return new Ji({schema:this,typeName:Ue.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:s=>this["~validate"](s)}}optional(){return xn.create(this,this._def)}nullable(){return Xi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Bs.create(this)}promise(){return vo.create(this,this._def)}or(t){return po.create([this,t],this._def)}and(t){return go.create(this,t,this._def)}transform(t){return new Ji({...Ze(this._def),schema:this,typeName:Ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const s=typeof t=="function"?t:()=>t;return new bo({...Ze(this._def),innerType:this,defaultValue:s,typeName:Ue.ZodDefault})}brand(){return new iI({typeName:Ue.ZodBranded,type:this,...Ze(this._def)})}catch(t){const s=typeof t=="function"?t:()=>t;return new Ru({...Ze(this._def),innerType:this,catchValue:s,typeName:Ue.ZodCatch})}describe(t){const s=this.constructor;return new s({...this._def,description:t})}pipe(t){return Ic.create(this,t)}readonly(){return Mu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const IM=/^c[^\s-]{8,}$/i,qM=/^[0-9a-z]+$/,LM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,FM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,VM=/^[a-z0-9_-]{21}$/i,QM=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,jM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,BM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,UM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ql;const KM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,HM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,GM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,WM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,YM=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$v="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ZM=new RegExp(`^${$v}$`);function Tv(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const s=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${s}`}function JM(e){return new RegExp(`^${Tv(e)}$`)}function XM(e){let t=`${$v}T${Tv(e)}`;const s=[];return s.push(e.local?"Z?":"Z"),e.offset&&s.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${s.join("|")})`,new RegExp(`^${t}$`)}function eI(e,t){return!!((t==="v4"||!t)&&KM.test(e)||(t==="v6"||!t)&&GM.test(e))}function tI(e,t){if(!QM.test(e))return!1;try{const[s]=e.split(".");if(!s)return!1;const n=s.replace(/-/g,"+").replace(/_/g,"/").padEnd(s.length+(4-s.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function sI(e,t){return!!((t==="v4"||!t)&&HM.test(e)||(t==="v6"||!t)&&WM.test(e))}class wn extends it{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ne.string){const r=this._getOrReturnCtx(t);return Se(r,{code:ge.invalid_type,expected:Ne.string,received:r.parsedType}),Ke}const n=new hs;let i;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="max")t.data.length>r.value&&(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){const o=t.data.length>r.value,l=t.data.length<r.value;(o||l)&&(i=this._getOrReturnCtx(t,i),o?Se(i,{code:ge.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):l&&Se(i,{code:ge.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),n.dirty())}else if(r.kind==="email")BM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"email",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="emoji")ql||(ql=new RegExp(UM,"u")),ql.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"emoji",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="uuid")FM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"uuid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="nanoid")VM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"nanoid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="cuid")IM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"cuid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="cuid2")qM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"cuid2",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="ulid")LM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"ulid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Se(i,{validation:"url",code:ge.invalid_string,message:r.message}),n.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"regex",code:ge.invalid_string,message:r.message}),n.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),n.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.invalid_string,validation:{startsWith:r.value},message:r.message}),n.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.invalid_string,validation:{endsWith:r.value},message:r.message}),n.dirty()):r.kind==="datetime"?XM(r).test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.invalid_string,validation:"datetime",message:r.message}),n.dirty()):r.kind==="date"?ZM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.invalid_string,validation:"date",message:r.message}),n.dirty()):r.kind==="time"?JM(r).test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.invalid_string,validation:"time",message:r.message}),n.dirty()):r.kind==="duration"?jM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"duration",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="ip"?eI(t.data,r.version)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"ip",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="jwt"?tI(t.data,r.alg)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"jwt",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="cidr"?sI(t.data,r.version)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"cidr",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="base64"?zM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"base64",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="base64url"?YM.test(t.data)||(i=this._getOrReturnCtx(t,i),Se(i,{validation:"base64url",code:ge.invalid_string,message:r.message}),n.dirty()):rt.assertNever(r);return{status:n.value,value:t.data}}_regex(t,s,n){return this.refinement(i=>t.test(i),{validation:s,code:ge.invalid_string,...Pe.errToObj(n)})}_addCheck(t){return new wn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Pe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Pe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Pe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Pe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Pe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Pe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Pe.errToObj(t)})}regex(t,s){return this._addCheck({kind:"regex",regex:t,...Pe.errToObj(s)})}includes(t,s){return this._addCheck({kind:"includes",value:t,position:s?.position,...Pe.errToObj(s?.message)})}startsWith(t,s){return this._addCheck({kind:"startsWith",value:t,...Pe.errToObj(s)})}endsWith(t,s){return this._addCheck({kind:"endsWith",value:t,...Pe.errToObj(s)})}min(t,s){return this._addCheck({kind:"min",value:t,...Pe.errToObj(s)})}max(t,s){return this._addCheck({kind:"max",value:t,...Pe.errToObj(s)})}length(t,s){return this._addCheck({kind:"length",value:t,...Pe.errToObj(s)})}nonempty(t){return this.min(1,Pe.errToObj(t))}trim(){return new wn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t}get maxLength(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t}}wn.create=e=>new wn({checks:[],typeName:Ue.ZodString,coerce:e?.coerce??!1,...Ze(e)});function nI(e,t){const s=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=s>n?s:n,r=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return r%o/10**i}class Yi extends it{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ne.number){const r=this._getOrReturnCtx(t);return Se(r,{code:ge.invalid_type,expected:Ne.number,received:r.parsedType}),Ke}let n;const i=new hs;for(const r of this._def.checks)r.kind==="int"?rt.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):r.kind==="multipleOf"?nI(t.data,r.value)!==0&&(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.not_finite,message:r.message}),i.dirty()):rt.assertNever(r);return{status:i.value,value:t.data}}gte(t,s){return this.setLimit("min",t,!0,Pe.toString(s))}gt(t,s){return this.setLimit("min",t,!1,Pe.toString(s))}lte(t,s){return this.setLimit("max",t,!0,Pe.toString(s))}lt(t,s){return this.setLimit("max",t,!1,Pe.toString(s))}setLimit(t,s,n,i){return new Yi({...this._def,checks:[...this._def.checks,{kind:t,value:s,inclusive:n,message:Pe.toString(i)}]})}_addCheck(t){return new Yi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Pe.toString(t)})}multipleOf(t,s){return this._addCheck({kind:"multipleOf",value:t,message:Pe.toString(s)})}finite(t){return this._addCheck({kind:"finite",message:Pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Pe.toString(t)})}get minValue(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t}get maxValue(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&rt.isInteger(t.value))}get isFinite(){let t=null,s=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(s===null||n.value>s)&&(s=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(s)&&Number.isFinite(t)}}Yi.create=e=>new Yi({checks:[],typeName:Ue.ZodNumber,coerce:e?.coerce||!1,...Ze(e)});class Wr extends it{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ne.bigint)return this._getInvalidInput(t);let n;const i=new hs;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Se(n,{code:ge.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):rt.assertNever(r);return{status:i.value,value:t.data}}_getInvalidInput(t){const s=this._getOrReturnCtx(t);return Se(s,{code:ge.invalid_type,expected:Ne.bigint,received:s.parsedType}),Ke}gte(t,s){return this.setLimit("min",t,!0,Pe.toString(s))}gt(t,s){return this.setLimit("min",t,!1,Pe.toString(s))}lte(t,s){return this.setLimit("max",t,!0,Pe.toString(s))}lt(t,s){return this.setLimit("max",t,!1,Pe.toString(s))}setLimit(t,s,n,i){return new Wr({...this._def,checks:[...this._def.checks,{kind:t,value:s,inclusive:n,message:Pe.toString(i)}]})}_addCheck(t){return new Wr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Pe.toString(t)})}multipleOf(t,s){return this._addCheck({kind:"multipleOf",value:t,message:Pe.toString(s)})}get minValue(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t}get maxValue(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t}}Wr.create=e=>new Wr({checks:[],typeName:Ue.ZodBigInt,coerce:e?.coerce??!1,...Ze(e)});class Mh extends it{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ne.boolean){const n=this._getOrReturnCtx(t);return Se(n,{code:ge.invalid_type,expected:Ne.boolean,received:n.parsedType}),Ke}return Ss(t.data)}}Mh.create=e=>new Mh({typeName:Ue.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});class mo extends it{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ne.date){const r=this._getOrReturnCtx(t);return Se(r,{code:ge.invalid_type,expected:Ne.date,received:r.parsedType}),Ke}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return Se(r,{code:ge.invalid_date}),Ke}const n=new hs;let i;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(i=this._getOrReturnCtx(t,i),Se(i,{code:ge.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):rt.assertNever(r);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new mo({...this._def,checks:[...this._def.checks,t]})}min(t,s){return this._addCheck({kind:"min",value:t.getTime(),message:Pe.toString(s)})}max(t,s){return this._addCheck({kind:"max",value:t.getTime(),message:Pe.toString(s)})}get minDate(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t!=null?new Date(t):null}}mo.create=e=>new mo({checks:[],coerce:e?.coerce||!1,typeName:Ue.ZodDate,...Ze(e)});class Ih extends it{_parse(t){if(this._getType(t)!==Ne.symbol){const n=this._getOrReturnCtx(t);return Se(n,{code:ge.invalid_type,expected:Ne.symbol,received:n.parsedType}),Ke}return Ss(t.data)}}Ih.create=e=>new Ih({typeName:Ue.ZodSymbol,...Ze(e)});class qh extends it{_parse(t){if(this._getType(t)!==Ne.undefined){const n=this._getOrReturnCtx(t);return Se(n,{code:ge.invalid_type,expected:Ne.undefined,received:n.parsedType}),Ke}return Ss(t.data)}}qh.create=e=>new qh({typeName:Ue.ZodUndefined,...Ze(e)});class Lh extends it{_parse(t){if(this._getType(t)!==Ne.null){const n=this._getOrReturnCtx(t);return Se(n,{code:ge.invalid_type,expected:Ne.null,received:n.parsedType}),Ke}return Ss(t.data)}}Lh.create=e=>new Lh({typeName:Ue.ZodNull,...Ze(e)});class Fh extends it{constructor(){super(...arguments),this._any=!0}_parse(t){return Ss(t.data)}}Fh.create=e=>new Fh({typeName:Ue.ZodAny,...Ze(e)});class Vh extends it{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ss(t.data)}}Vh.create=e=>new Vh({typeName:Ue.ZodUnknown,...Ze(e)});class Nn extends it{_parse(t){const s=this._getOrReturnCtx(t);return Se(s,{code:ge.invalid_type,expected:Ne.never,received:s.parsedType}),Ke}}Nn.create=e=>new Nn({typeName:Ue.ZodNever,...Ze(e)});class Qh extends it{_parse(t){if(this._getType(t)!==Ne.undefined){const n=this._getOrReturnCtx(t);return Se(n,{code:ge.invalid_type,expected:Ne.void,received:n.parsedType}),Ke}return Ss(t.data)}}Qh.create=e=>new Qh({typeName:Ue.ZodVoid,...Ze(e)});class Bs extends it{_parse(t){const{ctx:s,status:n}=this._processInputParams(t),i=this._def;if(s.parsedType!==Ne.array)return Se(s,{code:ge.invalid_type,expected:Ne.array,received:s.parsedType}),Ke;if(i.exactLength!==null){const o=s.data.length>i.exactLength.value,l=s.data.length<i.exactLength.value;(o||l)&&(Se(s,{code:o?ge.too_big:ge.too_small,minimum:l?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&s.data.length<i.minLength.value&&(Se(s,{code:ge.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&s.data.length>i.maxLength.value&&(Se(s,{code:ge.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),s.common.async)return Promise.all([...s.data].map((o,l)=>i.type._parseAsync(new On(s,o,s.path,l)))).then(o=>hs.mergeArray(n,o));const r=[...s.data].map((o,l)=>i.type._parseSync(new On(s,o,s.path,l)));return hs.mergeArray(n,r)}get element(){return this._def.type}min(t,s){return new Bs({...this._def,minLength:{value:t,message:Pe.toString(s)}})}max(t,s){return new Bs({...this._def,maxLength:{value:t,message:Pe.toString(s)}})}length(t,s){return new Bs({...this._def,exactLength:{value:t,message:Pe.toString(s)}})}nonempty(t){return this.min(1,t)}}Bs.create=(e,t)=>new Bs({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ue.ZodArray,...Ze(t)});function Ni(e){if(e instanceof Et){const t={};for(const s in e.shape){const n=e.shape[s];t[s]=xn.create(Ni(n))}return new Et({...e._def,shape:()=>t})}else return e instanceof Bs?new Bs({...e._def,type:Ni(e.element)}):e instanceof xn?xn.create(Ni(e.unwrap())):e instanceof Xi?Xi.create(Ni(e.unwrap())):e instanceof pi?pi.create(e.items.map(t=>Ni(t))):e}class Et extends it{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),s=rt.objectKeys(t);return this._cached={shape:t,keys:s},this._cached}_parse(t){if(this._getType(t)!==Ne.object){const d=this._getOrReturnCtx(t);return Se(d,{code:ge.invalid_type,expected:Ne.object,received:d.parsedType}),Ke}const{status:n,ctx:i}=this._processInputParams(t),{shape:r,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Nn&&this._def.unknownKeys==="strip"))for(const d in i.data)o.includes(d)||l.push(d);const u=[];for(const d of o){const c=r[d],h=i.data[d];u.push({key:{status:"valid",value:d},value:c._parse(new On(i,h,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof Nn){const d=this._def.unknownKeys;if(d==="passthrough")for(const c of l)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(d==="strict")l.length>0&&(Se(i,{code:ge.unrecognized_keys,keys:l}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const c of l){const h=i.data[c];u.push({key:{status:"valid",value:c},value:d._parse(new On(i,h,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const c of u){const h=await c.key,p=await c.value;d.push({key:h,value:p,alwaysSet:c.alwaysSet})}return d}).then(d=>hs.mergeObjectSync(n,d)):hs.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Pe.errToObj,new Et({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(s,n)=>{const i=this._def.errorMap?.(s,n).message??n.defaultError;return s.code==="unrecognized_keys"?{message:Pe.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Et({...this._def,unknownKeys:"strip"})}passthrough(){return new Et({...this._def,unknownKeys:"passthrough"})}extend(t){return new Et({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Et({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ue.ZodObject})}setKey(t,s){return this.augment({[t]:s})}catchall(t){return new Et({...this._def,catchall:t})}pick(t){const s={};for(const n of rt.objectKeys(t))t[n]&&this.shape[n]&&(s[n]=this.shape[n]);return new Et({...this._def,shape:()=>s})}omit(t){const s={};for(const n of rt.objectKeys(this.shape))t[n]||(s[n]=this.shape[n]);return new Et({...this._def,shape:()=>s})}deepPartial(){return Ni(this)}partial(t){const s={};for(const n of rt.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?s[n]=i:s[n]=i.optional()}return new Et({...this._def,shape:()=>s})}required(t){const s={};for(const n of rt.objectKeys(this.shape))if(t&&!t[n])s[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof xn;)r=r._def.innerType;s[n]=r}return new Et({...this._def,shape:()=>s})}keyof(){return Ov(rt.objectKeys(this.shape))}}Et.create=(e,t)=>new Et({shape:()=>e,unknownKeys:"strip",catchall:Nn.create(),typeName:Ue.ZodObject,...Ze(t)});Et.strictCreate=(e,t)=>new Et({shape:()=>e,unknownKeys:"strict",catchall:Nn.create(),typeName:Ue.ZodObject,...Ze(t)});Et.lazycreate=(e,t)=>new Et({shape:e,unknownKeys:"strip",catchall:Nn.create(),typeName:Ue.ZodObject,...Ze(t)});class po extends it{_parse(t){const{ctx:s}=this._processInputParams(t),n=this._def.options;function i(r){for(const l of r)if(l.result.status==="valid")return l.result;for(const l of r)if(l.result.status==="dirty")return s.common.issues.push(...l.ctx.common.issues),l.result;const o=r.map(l=>new cn(l.ctx.common.issues));return Se(s,{code:ge.invalid_union,unionErrors:o}),Ke}if(s.common.async)return Promise.all(n.map(async r=>{const o={...s,common:{...s.common,issues:[]},parent:null};return{result:await r._parseAsync({data:s.data,path:s.path,parent:o}),ctx:o}})).then(i);{let r;const o=[];for(const u of n){const d={...s,common:{...s.common,issues:[]},parent:null},c=u._parseSync({data:s.data,path:s.path,parent:d});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(r)return s.common.issues.push(...r.ctx.common.issues),r.result;const l=o.map(u=>new cn(u));return Se(s,{code:ge.invalid_union,unionErrors:l}),Ke}}get options(){return this._def.options}}po.create=(e,t)=>new po({options:e,typeName:Ue.ZodUnion,...Ze(t)});function Pu(e,t){const s=En(e),n=En(t);if(e===t)return{valid:!0,data:e};if(s===Ne.object&&n===Ne.object){const i=rt.objectKeys(t),r=rt.objectKeys(e).filter(l=>i.indexOf(l)!==-1),o={...e,...t};for(const l of r){const u=Pu(e[l],t[l]);if(!u.valid)return{valid:!1};o[l]=u.data}return{valid:!0,data:o}}else if(s===Ne.array&&n===Ne.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let r=0;r<e.length;r++){const o=e[r],l=t[r],u=Pu(o,l);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return s===Ne.date&&n===Ne.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class go extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t),i=(r,o)=>{if(Ph(r)||Ph(o))return Ke;const l=Pu(r.value,o.value);return l.valid?((Dh(r)||Dh(o))&&s.dirty(),{status:s.value,value:l.data}):(Se(n,{code:ge.invalid_intersection_types}),Ke)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,o])=>i(r,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}go.create=(e,t,s)=>new go({left:e,right:t,typeName:Ue.ZodIntersection,...Ze(s)});class pi extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ne.array)return Se(n,{code:ge.invalid_type,expected:Ne.array,received:n.parsedType}),Ke;if(n.data.length<this._def.items.length)return Se(n,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ke;!this._def.rest&&n.data.length>this._def.items.length&&(Se(n,{code:ge.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.dirty());const r=[...n.data].map((o,l)=>{const u=this._def.items[l]||this._def.rest;return u?u._parse(new On(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(r).then(o=>hs.mergeArray(s,o)):hs.mergeArray(s,r)}get items(){return this._def.items}rest(t){return new pi({...this._def,rest:t})}}pi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pi({items:e,typeName:Ue.ZodTuple,rest:null,...Ze(t)})};class jh extends it{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ne.map)return Se(n,{code:ge.invalid_type,expected:Ne.map,received:n.parsedType}),Ke;const i=this._def.keyType,r=this._def.valueType,o=[...n.data.entries()].map(([l,u],d)=>({key:i._parse(new On(n,l,n.path,[d,"key"])),value:r._parse(new On(n,u,n.path,[d,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const u of o){const d=await u.key,c=await u.value;if(d.status==="aborted"||c.status==="aborted")return Ke;(d.status==="dirty"||c.status==="dirty")&&s.dirty(),l.set(d.value,c.value)}return{status:s.value,value:l}})}else{const l=new Map;for(const u of o){const d=u.key,c=u.value;if(d.status==="aborted"||c.status==="aborted")return Ke;(d.status==="dirty"||c.status==="dirty")&&s.dirty(),l.set(d.value,c.value)}return{status:s.value,value:l}}}}jh.create=(e,t,s)=>new jh({valueType:t,keyType:e,typeName:Ue.ZodMap,...Ze(s)});class zr extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ne.set)return Se(n,{code:ge.invalid_type,expected:Ne.set,received:n.parsedType}),Ke;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(Se(n,{code:ge.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),s.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(Se(n,{code:ge.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),s.dirty());const r=this._def.valueType;function o(u){const d=new Set;for(const c of u){if(c.status==="aborted")return Ke;c.status==="dirty"&&s.dirty(),d.add(c.value)}return{status:s.value,value:d}}const l=[...n.data.values()].map((u,d)=>r._parse(new On(n,u,n.path,d)));return n.common.async?Promise.all(l).then(u=>o(u)):o(l)}min(t,s){return new zr({...this._def,minSize:{value:t,message:Pe.toString(s)}})}max(t,s){return new zr({...this._def,maxSize:{value:t,message:Pe.toString(s)}})}size(t,s){return this.min(t,s).max(t,s)}nonempty(t){return this.min(1,t)}}zr.create=(e,t)=>new zr({valueType:e,minSize:null,maxSize:null,typeName:Ue.ZodSet,...Ze(t)});class Bh extends it{get schema(){return this._def.getter()}_parse(t){const{ctx:s}=this._processInputParams(t);return this._def.getter()._parse({data:s.data,path:s.path,parent:s})}}Bh.create=(e,t)=>new Bh({getter:e,typeName:Ue.ZodLazy,...Ze(t)});class Uh extends it{_parse(t){if(t.data!==this._def.value){const s=this._getOrReturnCtx(t);return Se(s,{received:s.data,code:ge.invalid_literal,expected:this._def.value}),Ke}return{status:"valid",value:t.data}}get value(){return this._def.value}}Uh.create=(e,t)=>new Uh({value:e,typeName:Ue.ZodLiteral,...Ze(t)});function Ov(e,t){return new Zi({values:e,typeName:Ue.ZodEnum,...Ze(t)})}class Zi extends it{_parse(t){if(typeof t.data!="string"){const s=this._getOrReturnCtx(t),n=this._def.values;return Se(s,{expected:rt.joinValues(n),received:s.parsedType,code:ge.invalid_type}),Ke}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const s=this._getOrReturnCtx(t),n=this._def.values;return Se(s,{received:s.data,code:ge.invalid_enum_value,options:n}),Ke}return Ss(t.data)}get options(){return this._def.values}get enum(){const t={};for(const s of this._def.values)t[s]=s;return t}get Values(){const t={};for(const s of this._def.values)t[s]=s;return t}get Enum(){const t={};for(const s of this._def.values)t[s]=s;return t}extract(t,s=this._def){return Zi.create(t,{...this._def,...s})}exclude(t,s=this._def){return Zi.create(this.options.filter(n=>!t.includes(n)),{...this._def,...s})}}Zi.create=Ov;class Du extends it{_parse(t){const s=rt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Ne.string&&n.parsedType!==Ne.number){const i=rt.objectValues(s);return Se(n,{expected:rt.joinValues(i),received:n.parsedType,code:ge.invalid_type}),Ke}if(this._cache||(this._cache=new Set(rt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=rt.objectValues(s);return Se(n,{received:n.data,code:ge.invalid_enum_value,options:i}),Ke}return Ss(t.data)}get enum(){return this._def.values}}Du.create=(e,t)=>new Du({values:e,typeName:Ue.ZodNativeEnum,...Ze(t)});class vo extends it{unwrap(){return this._def.type}_parse(t){const{ctx:s}=this._processInputParams(t);if(s.parsedType!==Ne.promise&&s.common.async===!1)return Se(s,{code:ge.invalid_type,expected:Ne.promise,received:s.parsedType}),Ke;const n=s.parsedType===Ne.promise?s.data:Promise.resolve(s.data);return Ss(n.then(i=>this._def.type.parseAsync(i,{path:s.path,errorMap:s.common.contextualErrorMap})))}}vo.create=(e,t)=>new vo({type:e,typeName:Ue.ZodPromise,...Ze(t)});class Ji extends it{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:s,ctx:n}=this._processInputParams(t),i=this._def.effect||null,r={addIssue:o=>{Se(n,o),o.fatal?s.abort():s.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),i.type==="preprocess"){const o=i.transform(n.data,r);if(n.common.async)return Promise.resolve(o).then(async l=>{if(s.value==="aborted")return Ke;const u=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return u.status==="aborted"?Ke:u.status==="dirty"||s.value==="dirty"?Ar(u.value):u});{if(s.value==="aborted")return Ke;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?Ke:l.status==="dirty"||s.value==="dirty"?Ar(l.value):l}}if(i.type==="refinement"){const o=l=>{const u=i.refinement(l,r);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?Ke:(l.status==="dirty"&&s.dirty(),o(l.value),{status:s.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?Ke:(l.status==="dirty"&&s.dirty(),o(l.value).then(()=>({status:s.value,value:l.value}))))}if(i.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!zi(o))return Ke;const l=i.transform(o.value,r);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:s.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>zi(o)?Promise.resolve(i.transform(o.value,r)).then(l=>({status:s.value,value:l})):Ke);rt.assertNever(i)}}Ji.create=(e,t,s)=>new Ji({schema:e,typeName:Ue.ZodEffects,effect:t,...Ze(s)});Ji.createWithPreprocess=(e,t,s)=>new Ji({schema:t,effect:{type:"preprocess",transform:e},typeName:Ue.ZodEffects,...Ze(s)});class xn extends it{_parse(t){return this._getType(t)===Ne.undefined?Ss(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}xn.create=(e,t)=>new xn({innerType:e,typeName:Ue.ZodOptional,...Ze(t)});class Xi extends it{_parse(t){return this._getType(t)===Ne.null?Ss(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xi.create=(e,t)=>new Xi({innerType:e,typeName:Ue.ZodNullable,...Ze(t)});class bo extends it{_parse(t){const{ctx:s}=this._processInputParams(t);let n=s.data;return s.parsedType===Ne.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}bo.create=(e,t)=>new bo({innerType:e,typeName:Ue.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class Ru extends it{_parse(t){const{ctx:s}=this._processInputParams(t),n={...s,common:{...s.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ho(i)?i.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new cn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new cn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ru.create=(e,t)=>new Ru({innerType:e,typeName:Ue.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class Kh extends it{_parse(t){if(this._getType(t)!==Ne.nan){const n=this._getOrReturnCtx(t);return Se(n,{code:ge.invalid_type,expected:Ne.nan,received:n.parsedType}),Ke}return{status:"valid",value:t.data}}}Kh.create=e=>new Kh({typeName:Ue.ZodNaN,...Ze(e)});class iI extends it{_parse(t){const{ctx:s}=this._processInputParams(t),n=s.data;return this._def.type._parse({data:n,path:s.path,parent:s})}unwrap(){return this._def.type}}class Ic extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?Ke:r.status==="dirty"?(s.dirty(),Ar(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ke:i.status==="dirty"?(s.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,s){return new Ic({in:t,out:s,typeName:Ue.ZodPipeline})}}class Mu extends it{_parse(t){const s=this._def.innerType._parse(t),n=i=>(zi(i)&&(i.value=Object.freeze(i.value)),i);return ho(s)?s.then(i=>n(i)):n(s)}unwrap(){return this._def.innerType}}Mu.create=(e,t)=>new Mu({innerType:e,typeName:Ue.ZodReadonly,...Ze(t)});var Ue;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ue||(Ue={}));const yo=wn.create,Hh=Yi.create;Nn.create;Bs.create;const qc=Et.create;po.create;go.create;pi.create;Zi.create;const Gh=Du.create;vo.create;xn.create;Xi.create;/**
|
|
40
|
+
* vee-validate v4.15.1
|
|
41
|
+
* (c) 2025 Abdelrahman Awad
|
|
42
|
+
* @license MIT
|
|
43
|
+
*/const Wh=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Nv(e){return Number(e)>=0}function rI(e){return typeof e=="object"&&e!==null}function aI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function zh(e){if(!rI(e)||aI(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function kv(e,t){return Object.keys(t).forEach(s=>{if(zh(t[s])&&zh(e[s])){e[s]||(e[s]={}),kv(e[s],t[s]);return}e[s]=t[s]}),e}function oI(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Nv(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}function Lc(e,t){return{__type:"VVTypedSchema",async parse(n){const i=await e.safeParseAsync(n,t);if(i.success)return{value:i.data,errors:[]};const r={};return Pv(i.error.issues,r),{errors:Object.values(r)}},cast(n){try{return e.parse(n)}catch{const r=Dv(e);return Wh(r)&&Wh(n)?kv(r,n):n}},describe(n){try{if(!n)return{required:!e.isOptional(),exists:!0};const i=lI(n,e);return i?{required:!i.isOptional(),exists:!0}:{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function Pv(e,t){e.forEach(s=>{const n=oI(s.path.join("."));s.code==="invalid_union"&&(Pv(s.unionErrors.flatMap(i=>i.issues),t),!n)||(t[n]||(t[n]={errors:[],path:n}),t[n].errors.push(s.message))})}function Dv(e){if(e instanceof Et)return Object.fromEntries(Object.entries(e.shape).map(([t,s])=>s instanceof bo?[t,s._def.defaultValue()]:s instanceof Et?[t,Dv(s)]:[t,void 0]))}function lI(e,t){if(!Yh(t))return null;if(la(e))return t.shape[Zo(e)];const s=(e||"").split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let i=0;i<=s.length;i++){const r=s[i];if(!r||!n)return n;if(Yh(n)){n=n.shape[r]||null;continue}Nv(r)&&uI(n)&&(n=n._def.type)}return null}function Rv(e){return e._def.typeName}function uI(e){return Rv(e)===Ue.ZodArray}function Yh(e){return Rv(e)===Ue.ZodObject}function Zh(e){return!e||!e.length?!1:!e.toLowerCase().replace(/(?:[a-z][a-z0-9]?)+(?:[-_.]?[a-z0-9])*/g,"").length}function cI(e){const t=qc({name:yo().min(1,"Queue name is required").max(100,"Queue name must be less than 100 characters").refine(Zh,{message:"Name must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),ns:yo().min(1,"Namespace is required").max(100,"Namespace must be less than 100 characters").refine(Zh,{message:"Namespace must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),type:Gh(Ht,{errorMap:()=>({message:"Please select a valid queue type"})}),deliveryModel:Gh(us,{errorMap:()=>({message:"Please select a valid delivery model"})})}),s=Lc(t),n={name:"",ns:"",type:Ht.FIFO_QUEUE,deliveryModel:us.POINT_TO_POINT},i={...n,...e},{errors:r,values:o,meta:l,resetForm:u,handleSubmit:d,setFieldValue:c,setValues:h}=Jo({validationSchema:s,initialValues:i});return{errors:r,values:o,meta:l,resetForm:u,resetFormWithValues:m=>{const g=m?{...n,...m}:i;u({values:g})},handleSubmit:d,setFieldValue:c,setValues:h,initialValues:i,defaultInitialValues:n,validationSchema:s}}const dI={class:"form-content"},fI={class:"form-section"},hI={class:"form-grid"},mI={class:"form-group"},pI={class:"form-group"},gI={class:"form-section"},vI={class:"form-grid"},bI={class:"form-group"},yI=["value"],_I=["value"],EI=["value"],wI={class:"form-group"},CI=["value"],AI=["value"],SI={key:0,class:"error-section"},xI={class:"error-content"},$I={class:"error-text"},TI={class:"error-message"},OI=["disabled"],NI=Ge({__name:"CreateQueueModal",props:{isVisible:{type:Boolean},isCreating:{type:Boolean},createError:{},namespace:{}},emits:["close","create"],setup(e,{emit:t}){const s={mounted:m=>m.focus()},n=e,i=t,{errors:r,resetForm:o,initialValues:l,validationSchema:u}=cI({ns:n.namespace}),{meta:d,handleSubmit:c}=Jo({initialValues:l,validationSchema:u});Xe(()=>n.isVisible,m=>{m||o()});const h=c(m=>{i("create",{...m})});function p(){i("close")}return(m,g)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:"Create New Queue",subtitle:"Configure your message queue settings",icon:"bi bi-plus-circle-fill",onClose:p},{body:je(()=>[a("form",{onSubmit:g[0]||(g[0]=Pt((...w)=>O(h)&&O(h)(...w),["prevent"]))},[a("div",dI,[a("section",fI,[g[6]||(g[6]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),X(" Basic Information ")]),a("p",{class:"section-description"}," Define the queue name and namespace ")],-1)),a("div",hI,[a("div",mI,[g[2]||(g[2]=a("label",{for:"name",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),X(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(we(O(Os),{id:"name",name:"name",type:"text",placeholder:"e.g. user-notifications",class:Re(["form-control",{error:O(r).name}]),autocomplete:"off","aria-describedby":"name-help name-error"},null,8,["class"]),[[s]]),we(O(ei),{id:"name-error",name:"name",class:"field-error"}),g[3]||(g[3]=a("div",{id:"name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",pI,[g[4]||(g[4]=a("label",{for:"ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),X(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),we(O(Os),{id:"ns",name:"ns",type:"text",placeholder:"e.g. production",class:Re(["form-control",{error:O(r).ns}]),autocomplete:"off","aria-describedby":"ns-help ns-error"},null,8,["class"]),we(O(ei),{id:"ns-error",name:"ns",class:"field-error"}),g[5]||(g[5]=a("div",{id:"ns-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Organize queues by environment or application ")],-1))])])]),a("section",gI,[g[13]||(g[13]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-gear-fill section-icon"}),X(" Queue Configuration ")]),a("p",{class:"section-description"}," Choose how messages are processed and delivered ")],-1)),a("div",vI,[a("div",bI,[g[8]||(g[8]=a("label",{for:"type",class:"form-label"},[a("i",{class:"bi bi-list-ol label-icon"}),X(" Queue Type "),a("span",{class:"required-indicator"},"*")],-1)),we(O(Os),{id:"type",name:"type",as:"select",class:Re(["form-select",{error:O(r).type}]),"aria-describedby":"type-help type-error"},{default:je(()=>[g[7]||(g[7]=a("option",{value:""},"Select processing order",-1)),a("option",{value:O(Ht).FIFO_QUEUE},"FIFO Queue",8,yI),a("option",{value:O(Ht).LIFO_QUEUE},"LIFO Queue",8,_I),a("option",{value:O(Ht).PRIORITY_QUEUE}," Priority Queue ",8,EI)]),_:1},8,["class"]),we(O(ei),{id:"type-error",name:"type",class:"field-error"}),g[9]||(g[9]=a("div",{id:"type-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"FIFO:"),X(" First message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"LIFO:"),X(" Last message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"Priority:"),X(" Higher priority messages processed first ")])])],-1))]),a("div",wI,[g[11]||(g[11]=a("label",{for:"deliveryModel",class:"form-label"},[a("i",{class:"bi bi-arrow-left-right label-icon"}),X(" Delivery Model "),a("span",{class:"required-indicator"},"*")],-1)),we(O(Os),{id:"deliveryModel",name:"deliveryModel",as:"select",class:Re(["form-select",{error:O(r).deliveryModel}]),"aria-describedby":"deliveryModel-help deliveryModel-error"},{default:je(()=>[g[10]||(g[10]=a("option",{value:""},"Select delivery pattern",-1)),a("option",{value:O(us).POINT_TO_POINT}," Point to Point ",8,CI),a("option",{value:O(us).PUB_SUB}," Publish/Subscribe ",8,AI)]),_:1},8,["class"]),we(O(ei),{id:"deliveryModel-error",name:"deliveryModel",class:"field-error"}),g[12]||(g[12]=a("div",{id:"deliveryModel-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"Point to Point:"),X(" One-to-one message delivery ")]),a("div",{class:"help-option"},[a("strong",null,"Pub/Sub:"),X(" One-to-many message broadcasting ")])])],-1))])])]),e.createError?(N(),D("div",SI,[a("div",xI,[g[15]||(g[15]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",$I,[g[14]||(g[14]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",TI,L(e.createError),1)])])])):fe("",!0)])],32)]),footer:je(()=>[a("button",{type:"button",class:"btn btn-secondary",onClick:p},[...g[16]||(g[16]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ",-1)])]),a("button",{type:"submit",class:"btn btn-primary",disabled:e.isCreating||!O(d).valid,onClick:g[1]||(g[1]=(...w)=>O(h)&&O(h)(...w))},[e.isCreating?(N(),D(Ae,{key:0},[g[17]||(g[17]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),g[18]||(g[18]=X(" Creating Queue... ",-1))],64)):(N(),D(Ae,{key:1},[g[19]||(g[19]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),g[20]||(g[20]=X(" Create Queue ",-1))],64))],8,OI)]),_:1},8,["is-visible"]))}}),kI=tt(NI,[["__scopeId","data-v-01f67f2d"]]),PI={class:"dialog-body"},DI={class:"confirmation-message"},RI={class:"queue-details",role:"group","aria-label":"Queue details"},MI={class:"queue-info"},II={class:"info-item"},qI=["title"],LI={class:"info-item"},FI=["title"],VI={class:"actions"},QI=["disabled"],jI=["disabled"],BI=Ge({__name:"DeleteQueueModal",props:{isVisible:{type:Boolean},isDeleting:{type:Boolean},queue:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s=e,n=t;function i(){s.isDeleting||n("cancel")}function r(){s.isDeleting||n("confirm")}return(o,l)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:"Delete Queue",subtitle:"This action cannot be undone",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:i},{body:je(()=>[a("div",PI,[a("section",DI,[l[2]||(l[2]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following queue? ",-1)),a("div",RI,[a("div",MI,[a("div",II,[l[0]||(l[0]=a("span",{class:"info-label"},"Queue Name:",-1)),a("span",{class:"info-value queue-name",title:e.queue.name},L(e.queue.name),9,qI)]),a("div",LI,[l[1]||(l[1]=a("span",{class:"info-label"},"Namespace:",-1)),a("span",{class:"info-value namespace",title:e.queue.ns},L(e.queue.ns),9,FI)])])])]),l[3]||(l[3]=a("section",{class:"warning-section","aria-live":"polite"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon","aria-hidden":"true"},[a("i",{class:"bi bi-shield-exclamation"})]),a("div",{class:"warning-text"},[a("h4",{class:"warning-title"},"Warning"),a("ul",{class:"warning-list"},[a("li",null,"All messages in this queue will be permanently lost"),a("li",null," Ensure all consumers connected to this queue are disconnected "),a("li",null,"This action cannot be reversed")])])])],-1))])]),footer:je(()=>[a("div",VI,[a("button",{type:"button",class:"btn btn-outline-secondary",disabled:e.isDeleting,onClick:i},[...l[4]||(l[4]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),X(" Cancel ",-1)])],8,QI),a("button",{type:"button",class:"btn btn-danger",disabled:e.isDeleting,onClick:r},[e.isDeleting?(N(),D(Ae,{key:0},[l[5]||(l[5]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),l[6]||(l[6]=X(" Deleting Queue... ",-1))],64)):(N(),D(Ae,{key:1},[l[7]||(l[7]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),l[8]||(l[8]=X(" Delete Queue ",-1))],64))],8,jI)])]),_:1},8,["is-visible"]))}}),Mv=tt(BI,[["__scopeId","data-v-ccaa6d3f"]]),UI=["onKeydown"],KI={class:"queue-content"},HI={class:"queue-info"},GI={class:"queue-header"},WI=["title"],zI={class:"queue-details"},YI={class:"queue-namespace"},ZI={class:"namespace-text"},JI={class:"queue-actions"},XI=Ge({__name:"QueueListItem",props:{queue:{}},emits:["select","delete"],setup(e,{emit:t}){const s=e,n=t;function i(){n("select",s.queue.ns,s.queue.name)}function r(){n("delete",s.queue.ns,s.queue.name)}return(o,l)=>(N(),D("li",{class:"queue-item",tabindex:"0",onClick:i,onKeydown:[an(i,["enter"]),an(Pt(i,["prevent"]),["space"])]},[a("div",KI,[l[1]||(l[1]=a("div",{class:"queue-icon"},[a("i",{class:"bi bi-collection"})],-1)),a("div",HI,[a("div",GI,[a("h5",{class:"queue-name",title:`${e.queue.ns}:${e.queue.name}`},L(e.queue.name),9,WI)]),a("div",zI,[a("div",YI,[l[0]||(l[0]=a("i",{class:"bi bi-tag-fill namespace-icon"},null,-1)),a("span",ZI,L(e.queue.ns),1)])])])]),l[4]||(l[4]=a("div",{class:"queue-status"},[a("span",{class:"status-indicator active",title:"Queue is active"},[a("i",{class:"bi bi-circle-fill"})])],-1)),a("div",JI,[a("button",{class:"action-btn view-btn",title:"View Queue Details",onClick:Pt(i,["stop"])},[...l[2]||(l[2]=[a("i",{class:"bi bi-eye-fill"},null,-1)])]),a("button",{class:"action-btn delete-btn",title:"Delete Queue",onClick:Pt(r,["stop"])},[...l[3]||(l[3]=[a("i",{class:"bi bi-trash3-fill"},null,-1)])])]),l[5]||(l[5]=a("div",{class:"hover-indicator"},[a("i",{class:"bi bi-chevron-right"})],-1))],40,UI))}}),eq=tt(XI,[["__scopeId","data-v-f4df47cc"]]),tq={key:0,class:"alert alert-warning alert-dismissible fade show error-banner"},sq={class:"d-flex align-items-center"},nq={key:1,class:"alert alert-warning alert-dismissible fade show error-banner"},iq={class:"d-flex align-items-center"},rq={class:"content-card namespace-summary"},aq={class:"summary-content"},oq={class:"summary-stats"},lq={class:"stat-item"},uq={class:"stat-content"},cq={class:"stat-number"},dq={class:"stat-label"},fq={class:"stat-item"},hq={class:"stat-content"},mq={class:"stat-number"},pq={class:"content-card queues-card"},gq={class:"queues-header"},vq={class:"queues-count"},bq={class:"queues-list"},yq=Ge({__name:"NamespaceQueuesView",setup(e){const t=ms(),s=os(),n=hv(),i=zo(),r=qt(),o=Xt(),l=FR(async()=>{d.value=!1,await n.refreshNamespaceQueues(p.value)}),u=mv(async()=>{c.value=!1,h.value=null,await n.refreshNamespaceQueues(p.value)}),d=_e(!1),c=_e(!1),h=_e(null),p=v(()=>t.params.ns),m=v(()=>n.sortedNamespaceQueues.value),g=v(()=>n.isLoadingNamespaceQueues.value),w=v(()=>n.namespaceQueuesError.value),_=v(()=>m.value.length>0),S=v(()=>p.value?n.namespaceExists.value(p.value):!1),A=v(()=>l.isCreatingQueue.value),x=v(()=>l.createQueueError.value),y=v(()=>u.isDeletingQueue.value),$=v(()=>u.deleteQueueError.value);function F(W,V){r.selectQueue(W,V),s.push({name:"Queue",params:{ns:W,queue:V}})}function j(){i.clearSelectedNamespace(),s.push({name:"Namespaces"})}function q(){d.value=!0}function E(){d.value=!1}function T(W,V){h.value={ns:W,name:V},c.value=!0}function C(){c.value=!1,h.value=null}async function B(W){const V={queue:{ns:W.ns,name:W.name},queueType:W.type,queueDeliveryModel:W.deliveryModel};await l.createQueueMutation.mutateAsync({data:V})}async function Z(){h.value&&await u.deleteQueueMutation.mutateAsync({ns:h.value.ns,name:h.value.name})}function z(){n.refreshNamespaceQueues(p.value)}const ie=v(()=>[{id:"refresh-queues",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"secondary",disabled:g.value,handler:z},{id:"create-queue",label:"Create Queue",icon:"bi bi-plus-circle",variant:"primary",disabled:A.value,loading:A.value,handler:q}]);return At(()=>{o.setPageHeader({title:p.value,subtitle:"Manage queues in this namespace",icon:"bi bi-folder-fill"}),o.setPageActions(ie.value),o.setLoadingState(g.value),g.value||(S.value?w.value?(o.setErrorState(at(w.value)),o.setEmptyState(!1)):_.value?(o.setErrorState(null),o.setEmptyState(!1)):(o.setErrorState(null),o.setEmptyState(!0,{icon:"bi bi-inbox",title:"No queues in this namespace",message:`Create your first queue in the "${p.value}" namespace to start managing messages.`,actionLabel:"Create Your First Queue",actionHandler:q})):(o.setEmptyState(!0,{icon:"bi bi-folder-x",title:"Namespace Not Found",message:`The namespace "${p.value}" does not exist or has been deleted.`,actionLabel:"Back to Namespaces",actionHandler:j}),o.setPageActions([])))}),Xe(p,W=>{W&&i.selectNamespace(W)},{immediate:!0}),Bt(()=>{p.value&&i.selectNamespace(p.value)}),(W,V)=>(N(),D("div",null,[we(ps,null,{default:je(()=>[x.value&&!d.value?(N(),D("div",tq,[a("div",sq,[V[2]||(V[2]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to create queue: "+L(O(at)(x.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:V[0]||(V[0]=ne=>O(l).createQueueMutation.reset())})])):fe("",!0),$.value&&!c.value?(N(),D("div",nq,[a("div",iq,[V[3]||(V[3]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to delete queue: "+L(O(at)($.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:V[1]||(V[1]=ne=>O(u).deleteQueueMutation.reset())})])):fe("",!0),a("div",rq,[a("div",aq,[a("div",oq,[a("div",lq,[V[4]||(V[4]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",uq,[a("div",cq,L(m.value.length),1),a("div",dq," Queue"+L(m.value.length!==1?"s":""),1)])]),a("div",fq,[V[6]||(V[6]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-folder-fill"})],-1)),a("div",hq,[a("div",mq,L(p.value),1),V[5]||(V[5]=a("div",{class:"stat-label"},"Namespace",-1))])])])])]),a("div",pq,[a("div",gq,[a("h5",vq,L(m.value.length)+" Queue"+L(m.value.length!==1?"s":""),1)]),a("div",bq,[(N(!0),D(Ae,null,bt(m.value,ne=>(N(),ct(eq,{key:`${ne.ns}-${ne.name}`,queue:ne,onSelect:F,onDelete:T},null,8,["queue"]))),128))])])]),_:1}),we(kI,{"is-visible":d.value,"is-creating":A.value,"create-error":x.value?`${O(at)(x.value)?.message}`:"",namespace:p.value,onClose:E,onCreate:B},null,8,["is-visible","is-creating","create-error","namespace"]),h.value?(N(),ct(Mv,{key:0,"is-visible":c.value,"is-deleting":y.value,queue:h.value,onCancel:C,onConfirm:Z},null,8,["is-visible","is-deleting","queue"])):fe("",!0)]))}}),_q=tt(yq,[["__scopeId","data-v-d8768830"]]),Eq=["aria-label"],wq={key:0,class:"deleting-overlay"},Cq={class:"card-header"},Aq={class:"header-content"},Sq={class:"header-text"},xq={class:"namespace-name"},$q={class:"header-actions"},Tq={class:"card-body"},Oq={class:"stats-section",role:"group","aria-label":"Namespace stats"},Nq={class:"stat-item"},kq={class:"stat-value"},Pq={class:"stat-label"},Dq={class:"stat-item"},Rq={class:"stat-value"},Mq={class:"stat-label"},Iq={class:"queues-section"},qq={key:0,class:"queues-list",role:"list"},Lq=["onClick","onKeydown"],Fq={class:"queue-name"},Vq={key:1,class:"no-queues-message"},Qq={class:"card-footer"},jq={class:"footer-actions"},Bq=Ge({__name:"NamespaceCard",props:{namespace:{},queueCount:{},exchangeCount:{default:0},recentQueues:{},isDeleting:{type:Boolean}},emits:["click","delete","view-exchanges","queue-click"],setup(e,{emit:t}){const s=e,n=t;function i(o){n("queue-click",o)}function r(o){o.stopPropagation(),n("view-exchanges",s.namespace)}return(o,l)=>(N(),D("article",{class:Re(["namespace-card",{"is-deleting":e.isDeleting}]),tabindex:"0","aria-label":`View details for namespace ${e.namespace}`,onClick:l[2]||(l[2]=u=>n("click",e.namespace)),onKeydown:[l[3]||(l[3]=an(u=>n("click",e.namespace),["enter"])),l[4]||(l[4]=an(Pt(u=>n("click",e.namespace),["prevent"]),["space"]))]},[e.isDeleting?(N(),D("div",wq,[...l[5]||(l[5]=[a("div",{class:"spinner-border text-light",role:"status","aria-live":"polite","aria-label":"Deleting namespace"},null,-1),a("span",{class:"deleting-text"},"Deleting...",-1)])])):fe("",!0),a("header",Cq,[a("div",Aq,[l[7]||(l[7]=a("div",{class:"header-icon","aria-hidden":"true"},[a("i",{class:"bi bi-folder2-open"})],-1)),a("div",Sq,[a("h3",xq,L(e.namespace),1),l[6]||(l[6]=a("span",{class:"namespace-label"},"Namespace",-1))])]),a("div",$q,[a("button",{type:"button",class:"btn-action btn-exchanges","aria-label":"View exchanges",title:"View exchanges in this namespace",onClick:Pt(r,["stop"])},[...l[8]||(l[8]=[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"},null,-1)])]),a("button",{type:"button",class:"btn-action btn-delete","aria-label":"Delete namespace",title:"Delete namespace",onClick:l[0]||(l[0]=Pt(u=>n("delete",e.namespace),["stop"]))},[...l[9]||(l[9]=[a("i",{class:"bi bi-trash","aria-hidden":"true"},null,-1)])])])]),a("main",Tq,[a("div",Oq,[a("div",Nq,[a("span",kq,L(e.queueCount),1),a("span",Pq,L(e.queueCount===1?"Queue":"Queues"),1)]),a("div",Dq,[a("span",Rq,L(e.exchangeCount),1),a("span",Mq,L(e.exchangeCount===1?"Exchange":"Exchanges"),1)])]),a("div",Iq,[l[11]||(l[11]=a("h4",{class:"queues-title"},[a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"}),X(" Sample Queues ")],-1)),e.recentQueues.length?(N(),D("ul",qq,[(N(!0),D(Ae,null,bt(e.recentQueues,u=>(N(),D("li",{key:`${u.name}@${u.ns}`,class:"queue-item",role:"listitem"},[a("a",{href:"#",class:"queue-link",onClick:Pt(d=>i(u),["prevent","stop"]),onKeydown:an(Pt(d=>i(u),["prevent","stop"]),["enter"])},[a("span",Fq,L(u.name),1),l[10]||(l[10]=a("i",{class:"bi bi-box-arrow-up-right queue-icon","aria-hidden":"true"},null,-1))],40,Lq)]))),128))])):(N(),D("p",Vq,"No queues in this namespace."))])]),a("footer",Qq,[a("div",jq,[a("button",{type:"button",class:"footer-action",onClick:l[1]||(l[1]=Pt(u=>n("click",e.namespace),["stop"]))},[...l[12]||(l[12]=[a("span",{class:"footer-text"},"View all queues",-1),a("i",{class:"bi bi-arrow-right","aria-hidden":"true"},null,-1)])]),a("button",{type:"button",class:"footer-action",onClick:Pt(r,["stop"])},[...l[13]||(l[13]=[a("span",{class:"footer-text"},"View exchanges",-1),a("i",{class:"bi bi-diagram-3","aria-hidden":"true"},null,-1)])])])])],42,Eq))}}),Uq=tt(Bq,[["__scopeId","data-v-b80eed74"]]),Kq={class:"dialog-body"},Hq={class:"confirmation-message"},Gq={class:"message-text"},Wq=["title"],zq={class:"namespace-details",role:"group","aria-label":"Namespace details"},Yq={class:"detail-item"},Zq={class:"detail-value"},Jq={key:0,class:"error-section",role:"alert"},Xq={class:"error-content"},eL={class:"error-text"},tL={class:"error-message"},sL={class:"actions"},nL=["disabled"],iL=["disabled"],rL=Ge({__name:"DeleteNamespaceModal",props:{isVisible:{type:Boolean},namespace:{},queueCount:{},isDeleting:{type:Boolean},error:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s=e,n=t;function i(){s.isDeleting||n("cancel")}function r(){s.isDeleting||n("confirm")}return(o,l)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:"Delete Namespace",subtitle:"This action cannot be undone",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:i},{body:je(()=>[a("div",Kq,[a("section",Hq,[a("p",Gq,[l[0]||(l[0]=X(" Are you sure you want to permanently delete the namespace ",-1)),a("strong",{class:"namespace-identifier",title:e.namespace??""},L(e.namespace),9,Wq),l[1]||(l[1]=X(" ? ",-1))]),a("div",zq,[a("div",Yq,[l[2]||(l[2]=a("span",{class:"detail-label"},"Queues in namespace:",-1)),a("span",Zq,L(e.queueCount),1)])])]),l[5]||(l[5]=a("section",{class:"warning-section","aria-live":"polite"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon","aria-hidden":"true"},[a("i",{class:"bi bi-shield-exclamation"})]),a("div",{class:"warning-text"},[a("h4",{class:"warning-title"},"Warning"),a("ul",{class:"warning-list"},[a("li",null," All queues in this namespace will be permanently deleted "),a("li",null,"All messages in these queues will be lost"),a("li",null," Ensure all consumers connected to these queues are disconnected "),a("li",null,"This action cannot be reversed")])])])],-1)),e.error?(N(),D("section",Jq,[a("div",Xq,[l[4]||(l[4]=a("div",{class:"error-icon","aria-hidden":"true"},[a("i",{class:"bi bi-exclamation-circle-fill"})],-1)),a("div",eL,[l[3]||(l[3]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",tL,L(e.error),1)])])])):fe("",!0)])]),footer:je(()=>[a("div",sL,[a("button",{class:"btn btn-outline-secondary",type:"button",disabled:e.isDeleting,onClick:i},[...l[6]||(l[6]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),X(" Cancel ",-1)])],8,nL),a("button",{class:"btn btn-danger",type:"button",disabled:e.isDeleting,onClick:r},[e.isDeleting?(N(),D(Ae,{key:0},[l[7]||(l[7]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),l[8]||(l[8]=X(" Deleting... ",-1))],64)):(N(),D(Ae,{key:1},[l[9]||(l[9]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),l[10]||(l[10]=X(" Delete Namespace ",-1))],64))],8,iL)])]),_:1},8,["is-visible"]))}}),aL=tt(rL,[["__scopeId","data-v-221b2a02"]]);function oL(){const e=FT(),t=v(()=>e.data.value),s=v(()=>e.isLoading.value),n=v(()=>e.error.value),i=v(()=>t.value?.data.length?[...t.value.data].sort((u,d)=>u.name.localeCompare(d.name)):[]),r=v(()=>u=>t.value?.data?t.value.data.filter(d=>d.ns===u).length:0);function o(u){return t.value?.data?t.value.data.filter(d=>d.ns===u):[]}function l(u,d){return o(u).find(h=>h.name===d)}return{queuesQuery:e,queues:t,isLoadingQueues:s,queuesError:n,sortedQueues:i,getNamespaceQueueCount:r,getQueuesInNamespace:o,findQueueInNamespace:l,refetchQueues:e.refetch}}const lL={key:0,class:"alert alert-warning alert-dismissible fade show mb-4",role:"alert"},uL={class:"namespaces-grid"},cL="Namespaces",dL="Organize and manage your message queue namespaces",fL=Ge({__name:"NamespacesView",setup(e){const t=os(),s=hv(),n=oL(),i=qt(),r=zo(),o=Xt(),{data:l,isLoading:u,refetch:d}=Gg(),c=_e(!1),h=_e(null),p=v(()=>s.sortedNamespaces.value),m=v(()=>s.isLoadingNamespaces.value||u.value),g=v(()=>s.namespacesError.value),w=v(()=>s.isDeletingNamespace.value),_=v(()=>at(s.deleteNamespaceError.value?.error)),S=v(()=>p.value.length>0),A=v(()=>l.value?.data||[]),x=Z=>A.value.filter(z=>z.ns===Z).length,y=v(()=>[{id:"refresh-namespaces",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"primary",disabled:m.value,loading:m.value,handler:$,tooltip:"Refresh namespaces and exchanges data"}]);function $(){s.refreshNamespaces(),d()}function F(){t.push({name:"Queues"})}function j(Z){r.selectNamespace(Z),t.push({name:"Namespace Queues",params:{ns:Z}})}function q(Z){r.selectNamespace(Z),t.push({name:"Namespace Exchanges",params:{ns:Z}})}function E(Z){i.selectQueue(Z.ns,Z.name),t.push({name:"Queue",params:{ns:Z.ns,queue:Z.name}})}function T(Z){h.value=Z,c.value=!0}function C(){c.value=!1,h.value=null}async function B(){if(h.value)try{await s.deleteNamespace(h.value),C(),d()}catch(Z){console.error("Failed to delete namespace:",Z)}}return At(()=>{o.setPageHeader({title:cL,subtitle:dL,icon:"bi bi-folder"}),o.setPageActions(y.value),o.setLoadingState(m.value),g.value?(o.setErrorState(at(g.value)),o.setEmptyState(!1)):!m.value&&!S.value?(o.setErrorState(null),o.setEmptyState(!0,{icon:"bi bi-folder-plus",title:"No Namespaces Found",message:"Namespaces are created automatically when you create queues. Start by creating your first queue.",actionLabel:"Create Queue",actionHandler:F})):(o.setErrorState(null),o.setEmptyState(!1))}),At(()=>{i.clearSelectedQueue()}),Bt(()=>{$()}),(Z,z)=>(N(),D("div",null,[we(ps,null,{default:je(()=>[_.value&&!c.value?(N(),D("div",lL,[z[1]||(z[1]=a("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),X(" "+L(O(at)(_.value))+" ",1),a("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:z[0]||(z[0]=ie=>O(s).deleteNamespaceMutation.reset())})])):fe("",!0),a("div",uL,[(N(!0),D(Ae,null,bt(p.value,ie=>(N(),ct(Uq,{key:ie,namespace:ie,"queue-count":O(n).getNamespaceQueueCount.value(ie),"exchange-count":x(ie),"recent-queues":O(n).getQueuesInNamespace(ie).slice(0,3),"is-deleting":w.value&&h.value===ie,onClick:W=>j(ie),onQueueClick:E,onDelete:T,onViewExchanges:q},null,8,["namespace","queue-count","exchange-count","recent-queues","is-deleting","onClick"]))),128))])]),_:1}),we(aL,{"is-visible":c.value,namespace:h.value,"queue-count":h.value?O(n).getNamespaceQueueCount.value(h.value):0,"is-deleting":w.value,error:_.value,onCancel:C,onConfirm:B},null,8,["is-visible","namespace","queue-count","is-deleting","error"])]))}}),Iv=tt(fL,[["__scopeId","data-v-d9e0902c"]]),hL=Object.freeze(Object.defineProperty({__proto__:null,default:Iv},Symbol.toStringTag,{value:"Module"})),mL=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"GET",signal:s})),pL=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumer-groups"],gL=(e,t,s)=>{const{query:n}=s??{};return{queryKey:pL(e,t),queryFn:({signal:o})=>mL(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function vL(e,t,s,n){const i=gL(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const bL=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"POST",headers:{"Content-Type":"application/json"},data:s,signal:n})),yL=e=>{const t=["postApiV1NamespacesNsQueuesNameConsumerGroups"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o,data:l}=i??{};return bL(r,o,l)},...s}},_L=(e,t)=>{const s=yL(e);return Nt(s)},EL=(e,t,s)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups/${s}`,method:"DELETE"})),wL=e=>{const t=["deleteApiV1NamespacesNsQueuesNameConsumerGroupsConsumerGroupId"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o,consumerGroupId:l}=i??{};return EL(r,o,l)},...s}},CL=(e,t)=>{const s=wL(e);return Nt(s)};function qv(){const e=qt(),t=Dn(),s=v(()=>e.selectedQueue),n=vL(v(()=>s.value?.ns||""),v(()=>s.value?.name||""),{query:{enabled:v(()=>!!s.value&&t.isPubSubQueue)}}),i=_L({mutation:{onSuccess:async()=>{await n.refetch()}}}),r=CL({mutation:{onSuccess:async()=>{await n.refetch()}}}),o=v(()=>n.data.value),l=v(()=>n.isLoading.value),u=v(()=>i.isPending.value),d=v(()=>r.isPending.value),c=v(()=>l.value||u.value||d.value),h=v(()=>n.error.value),p=v(()=>i.error.value),m=v(()=>r.error.value),g=v(()=>h.value||p.value||m.value),w=v(()=>t.isPubSubQueue&&!!o.value?.data&&Array.isArray(o.value.data)&&o.value.data.length>0),_=v(()=>o.value?.data?[...o.value.data].sort((T,C)=>T.localeCompare(C)):[]);async function S(T){if(!s.value)throw new Error("No queue selected");const C={consumerGroupId:T};await i.mutateAsync({ns:s.value.ns,name:s.value.name,data:C})}async function A(T){if(!s.value)throw new Error("No queue selected");await r.mutateAsync({ns:s.value.ns,name:s.value.name,consumerGroupId:T})}async function x(){await n.refetch()}function y(){return!s.value||!t.isPubSubQueue?Promise.resolve():n.refetch()}function $(){i.reset()}function F(){r.reset()}function j(){i.reset(),r.reset()}function q(T){return/^[a-zA-Z0-9_-]+$/.test(T)&&T.length>=1&&T.length<=50}function E(T){return o.value?.data?o.value.data.includes(T):!1}return{consumerGroupsQuery:n,createConsumerGroupMutation:i,deleteConsumerGroupMutation:r,consumerGroups:o,isLoading:c,isLoadingConsumerGroups:l,isCreatingConsumerGroup:u,isDeletingConsumerGroup:d,error:g,consumerGroupsError:h,createConsumerGroupError:p,deleteConsumerGroupError:m,hasConsumerGroups:w,sortedConsumerGroups:_,createConsumerGroup:S,deleteConsumerGroup:A,refreshConsumerGroups:x,refetchConsumerGroupsData:y,resetCreateConsumerGroupMutation:$,resetDeleteConsumerGroupMutation:F,resetAllMutations:j,isValidConsumerGroupId:q,consumerGroupExists:E}}const AL={class:"consumer-group-selector"},SL={key:0,class:"section-header"},xL={key:0,class:"section-meta"},$L={key:1,class:"state-container loading-state"},TL={key:2,class:"consumer-groups-grid"},OL=["aria-label","onClick","onKeydown"],NL={class:"card-header"},kL={class:"group-info"},PL={class:"group-name"},DL={key:3,class:"state-container empty-state"},RL={class:"state-content"},ML={class:"state-description"},IL={key:0,class:"state-actions"},qL=Ge({__name:"ConsumerGroupSelector",props:{showSectionHeader:{type:Boolean,default:!0}},setup(e){const t=qt(),s=qv(),n=os(),i=v(()=>t.selectedQueue),r=v(()=>s.sortedConsumerGroups.value),o=v(()=>s.hasConsumerGroups.value),l=v(()=>s.isLoading.value),u=v(()=>{const p=r.value.length;return`${p} group${p!==1?"s":""} found`}),d=v(()=>i.value?`${i.value.ns}/${i.value.name}`:"");function c(p){i.value&&n.push({name:"Pending Messages",params:{ns:i.value.ns,queue:i.value.name},query:{consumerGroupId:p}})}function h(){i.value&&s.consumerGroupsQuery.refetch()}return(p,m)=>(N(),D("div",AL,[e.showSectionHeader?(N(),D("header",SL,[m[0]||(m[0]=a("h2",{class:"section-title"},"Consumer Groups",-1)),o.value&&!l.value?(N(),D("div",xL,L(u.value),1)):fe("",!0)])):fe("",!0),l.value?(N(),D("div",$L,[...m[1]||(m[1]=[a("div",{class:"state-content"},[a("div",{class:"loading-spinner"},[a("i",{class:"bi bi-arrow-clockwise"})]),a("p",{class:"state-text"},"Loading consumer groups...")],-1)])])):o.value?(N(),D("div",TL,[(N(!0),D(Ae,null,bt(r.value,g=>(N(),D("article",{key:g,class:"consumer-group-card",role:"button",tabindex:"0","aria-label":`View pending messages for consumer group ${g}`,onClick:w=>c(g),onKeydown:[an(w=>c(g),["enter"]),an(Pt(w=>c(g),["prevent"]),["space"])]},[a("div",NL,[m[3]||(m[3]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",kL,[a("h3",PL,L(g),1),m[2]||(m[2]=a("span",{class:"group-type"},"Consumer Group",-1))])]),m[4]||(m[4]=a("div",{class:"card-footer"},[a("span",{class:"action-hint"},[a("i",{class:"bi bi-eye"}),X(" View pending messages ")]),a("i",{class:"bi bi-arrow-right action-arrow"})],-1))],40,OL))),128))])):(N(),D("div",DL,[a("div",RL,[m[8]||(m[8]=a("div",{class:"state-icon"},[a("i",{class:"bi bi-people"})],-1)),m[9]||(m[9]=a("h3",{class:"state-title"},"No Consumer Groups Found",-1)),a("p",ML,[i.value?(N(),D(Ae,{key:0},[m[5]||(m[5]=X(" The queue ",-1)),a("strong",null,L(d.value),1),m[6]||(m[6]=X(" doesn't have any consumer groups yet. Consumer groups are created automatically when consumers start subscribing to this pub/sub queue. ",-1))],64)):(N(),D(Ae,{key:1},[X(" Select a pub/sub queue to view its consumer groups. ")],64))]),i.value?(N(),D("div",IL,[a("button",{type:"button",class:"btn btn-secondary",onClick:h},[...m[7]||(m[7]=[a("i",{class:"bi bi-arrow-clockwise"},null,-1),X(" Refresh ",-1)])])])):fe("",!0),m[10]||(m[10]=a("details",{class:"help-section"},[a("summary",{class:"help-summary"},[a("i",{class:"bi bi-question-circle"}),X(" What are consumer groups? ")]),a("div",{class:"help-content"},[a("p",null," Consumer groups allow multiple consumers to work together to process messages from a pub/sub queue. Each message is delivered to only one consumer within the group, enabling load balancing and parallel processing. "),a("ul",null,[a("li",null," Consumer groups are created automatically when consumers connect "),a("li",null," Each group maintains its own message offset and processing state "),a("li",null,"Groups enable horizontal scaling of message processing")])])],-1))])]))]))}}),LL=tt(qL,[["__scopeId","data-v-2c88981d"]]),FL=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/pending-messages`,method:"GET",params:O(s),signal:n}));function VL(e,t,s=20){const n=v(()=>{const r={};return t.value&&(r.consumerGroupId=t.value),r});return aa(e,{queryFn:async({ns:r,name:o,page:l,pageSize:u,extraParams:d={}})=>{const c={page:l,pageSize:u};return d.consumerGroupId&&(c.consumerGroupId=String(d.consumerGroupId)),FL(r,o,c)},queryKeyPrefix:"pending-messages",enableDelete:!0,enableRequeue:!1},s,n)}const QL={key:0,class:"loading-state"},jL=Ge({__name:"PendingMessagesView",setup(e){const t=qt(),s=Dn(),n=Xt(),i=ms(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>i.query.consumerGroupId),u=v(()=>!r.value||!o.value?null:{ns:r.value,name:o.value});Xe([r,o],([de,ke])=>{de&&ke&&t.selectQueue(de,ke)},{immediate:!0});const d=v(()=>t.selectedQueue),c=v(()=>s.isPubSubQueue),h=v(()=>s.isLoadingQueueProperties),p=v(()=>s.queueProperties),m=v(()=>d.value&&p.value&&c.value&&!l.value),g=v(()=>d.value&&p.value&&(!c.value||l.value)),w=v(()=>d.value&&h.value),_=v(()=>g.value?u.value:null),{messages:S,pagination:A,isLoading:x,isDeleting:y,isRequeuing:$,error:F,goToPage:j,setPageSize:q,refresh:E,deleteMessage:T,requeueMessage:C}=VL(_,l,20),B=v(()=>{if(!d.value)return"Pending Messages";const de=`${d.value.name}@${d.value.ns}`;return c.value&&l.value?`Pending Messages - ${de} (${l.value})`:`Pending Messages - ${de}`}),Z=v(()=>{if(d.value)return h.value?"Loading queue properties...":c.value&&l.value?`Pub/Sub Queue • Consumer Group: ${l.value}`:c.value?"Pub/Sub Queue • Select Consumer Group":"Point-2-Point Queue"}),z=v(()=>c.value&&l.value?`No pending messages found for consumer group "${l.value}". Messages appear here when they are waiting to be processed by consumers in this group.`:"No pending messages found for this queue. Messages appear here when they are waiting to be processed.");At(()=>{n.setPageHeader({title:B.value,subtitle:Z.value,icon:"bi bi-hourglass-split"})}),At(()=>{if(!d.value){n.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its pending messages."}),n.setPageActions([]),n.setLoadingState(!1),n.setErrorState(null);return}if(h.value){n.setLoadingState(!0),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([]);return}n.setLoadingState(!1),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([])});async function ie(de){T&&await T(de)}async function W(de){C&&await C(de)}function V(de){j(de)}async function ne(de){await q(de)}return(de,ke)=>(N(),ct(ps,{"show-section-header":!1},{default:je(()=>[w.value?(N(),D("div",QL,[...ke[4]||(ke[4]=[a("div",{class:"d-flex justify-content-center align-items-center py-5"},[a("div",{class:"spinner-border text-primary me-3",role:"status"},[a("span",{class:"visually-hidden"},"Loading...")]),a("span",{class:"text-muted"},"Loading queue properties...")],-1)])])):m.value?(N(),ct(LL,{key:1,"show-section-header":!1})):g.value?(N(),ct(ra,{key:2,messages:O(S),"is-loading":O(x),error:O(F),pagination:O(A),"show-pagination":!0,"empty-message":z.value,icon:"bi-hourglass-split","is-deleting":O(y),"is-requeuing":O($),onRefresh:O(E),onDeleteMessage:ie,onRequeueMessage:W,onPageChange:V,onPageSizeChange:ne,onFirstPage:ke[0]||(ke[0]=qe=>V(1)),onPreviousPage:ke[1]||(ke[1]=qe=>V(O(A).currentPage-1)),onNextPage:ke[2]||(ke[2]=qe=>V(O(A).currentPage+1)),onLastPage:ke[3]||(ke[3]=qe=>V(O(A).totalPages))},null,8,["messages","is-loading","error","pagination","empty-message","is-deleting","is-requeuing","onRefresh"])):fe("",!0)]),_:1}))}}),BL=tt(jL,[["__scopeId","data-v-30086d3d"]]);function UL(e){Xe(e.map(t=>t.isVisible),t=>{if(t.some(n=>n)){const n=i=>{if(i.key==="Escape"){for(const r of e)if(r.isVisible.value){r.onEscape();break}}};return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}},{immediate:!0})}const KL={class:"queue-info-card"},HL={class:"card-header"},GL={class:"header-actions"},WL=["disabled"],zL={class:"card-content"},YL={key:0,class:"content-state loading-state"},ZL={key:1,class:"content-state error-state",role:"alert"},JL={class:"error-content"},XL={key:2,class:"queue-details-wrapper"},e2={class:"info-section"},t2={class:"info-grid"},s2={class:"info-item"},n2={class:"info-content"},i2={class:"info-details"},r2={class:"info-value"},a2=["title"],o2={class:"info-item"},l2={class:"info-content"},u2={class:"info-details"},c2={class:"info-value"},d2=["title"],f2={class:"info-item"},h2={class:"info-content"},m2={class:"info-details"},p2={class:"info-value"},g2=["title"],v2={class:"info-item"},b2={class:"info-content"},y2={class:"info-details"},_2={class:"info-value"},E2=["title"],w2={class:"info-section"},C2={class:"info-grid"},A2={class:"info-item"},S2={class:"info-content"},x2={class:"info-details"},$2={class:"info-value"},T2={class:"rate-limit"},O2={class:"info-section"},N2={class:"info-grid stats-grid"},k2=["role","onClick"],P2={class:"info-content"},D2={class:"info-details"},R2={class:"info-label"},M2={class:"info-value stat-value"},I2={key:0,class:"info-arrow","aria-hidden":"true"},q2={key:3,class:"content-state empty-state"},L2=Ge({__name:"QueuePropertiesCard",setup(e){const t=qt(),s=Dn(),n=os(),i=v(()=>t.selectedQueue),r=v(()=>s.queueProperties?.data),o=v(()=>s.isLoadingQueueProperties),l=v(()=>{const x=s.queuePropertiesError?.error;return x?`Failed to load queue information: ${x.message}`:null}),u=v(()=>r.value?[{label:"Pending",value:r.value.pendingMessagesCount,icon:"bi-clock-history",iconClass:"pending-icon",routeName:"Pending Messages"},{label:"Dead-lettered",value:r.value.deadLetteredMessagesCount,icon:"bi-x-octagon-fill",iconClass:"dead-lettered-icon",routeName:"Dead-Lettered Messages"},{label:"Processing",value:r.value.processingMessagesCount,icon:"bi-hourglass-split",iconClass:"processing-icon",routeName:null},{label:"Acknowledged",value:r.value.acknowledgedMessagesCount,icon:"bi-check-circle-fill",iconClass:"acknowledged-icon",routeName:"Acknowledged Messages"},{label:"Scheduled",value:r.value.scheduledMessagesCount,icon:"bi-calendar-plus-fill",iconClass:"scheduled-icon",routeName:"Scheduled Messages"},{label:"Requeued",value:r.value.requeuedMessagesCount,icon:"bi-arrow-repeat",iconClass:"requeued-icon",routeName:null},{label:"Delayed",value:r.value.delayedMessagesCount,icon:"bi-stopwatch-fill",iconClass:"delayed-icon",routeName:null},{label:"Total Messages",value:r.value.messagesCount,icon:"bi-collection-fill",iconClass:"total-icon",routeName:"Messages"}]:[]);function d(x){!x||!i.value||n.push({name:x,params:{ns:i.value.ns,queue:i.value.name}})}function c(){s.refreshQueueProperties()}function h(x){return x===null||typeof x>"u"?"0":x.toLocaleString()}function p(x){switch(x){case Ht.FIFO_QUEUE:return"FIFO";case Ht.LIFO_QUEUE:return"LIFO";case Ht.PRIORITY_QUEUE:return"Priority";default:return"Unknown"}}function m(x){switch(x){case Ht.FIFO_QUEUE:return"queue-type-fifo";case Ht.LIFO_QUEUE:return"queue-type-lifo";case Ht.PRIORITY_QUEUE:return"queue-type-priority";default:return"queue-type-unknown"}}function g(x){switch(x){case Ht.FIFO_QUEUE:return"First In, First Out - Messages processed in order";case Ht.LIFO_QUEUE:return"Last In, First Out - Most recent messages processed first";case Ht.PRIORITY_QUEUE:return"Priority-based - Higher priority messages processed first";default:return"Unknown queue processing order"}}function w(x){switch(x){case us.POINT_TO_POINT:return"Point-to-Point";case us.PUB_SUB:return"Pub/Sub";default:return"Unknown"}}function _(x){switch(x){case us.POINT_TO_POINT:return"delivery-model-p2p";case us.PUB_SUB:return"delivery-model-pubsub";default:return"delivery-model-unknown"}}function S(x){switch(x){case us.POINT_TO_POINT:return"One-to-one message delivery between producer and consumer";case us.PUB_SUB:return"One-to-many message delivery to multiple subscribers";default:return"Unknown message delivery pattern"}}function A(x){if(!x||!x.limit||!x.interval)return"None";const y=x.interval/1e3;return`${x.limit} msg / ${y}s`}return(x,y)=>(N(),D("div",KL,[a("header",HL,[y[0]||(y[0]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-info-circle-fill title-icon"}),X(" Queue Details ")]),a("p",{class:"card-subtitle"}," Configuration and real-time statistics for the selected queue ")],-1)),a("div",GL,[a("button",{class:"btn btn-refresh",disabled:o.value,"aria-label":"Refresh queue information",title:"Refresh queue information",onClick:c},[a("i",{class:Re(["bi bi-arrow-clockwise",{spinning:o.value}])},null,2)],8,WL)])]),a("main",zL,[o.value?(N(),D("div",YL,[...y[1]||(y[1]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-2",role:"status","aria-live":"polite","aria-label":"Loading queue"}),a("h5",{class:"state-title"},"Loading...")],-1)])])):l.value?(N(),D("div",ZL,[a("div",JL,[y[2]||(y[2]=a("i",{class:"bi bi-exclamation-triangle-fill text-danger me-2","aria-hidden":"true"},null,-1)),a("span",null,L(l.value),1)]),a("button",{class:"btn btn-sm btn-primary mt-2",onClick:c},[...y[3]||(y[3]=[a("i",{class:"bi bi-arrow-clockwise me-1","aria-hidden":"true"},null,-1),X(" Retry ",-1)])])])):i.value&&r.value?(N(),D("div",XL,[a("section",e2,[y[12]||(y[12]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-gear-fill","aria-hidden":"true"}),X(" Configuration ")],-1)),a("div",t2,[a("div",s2,[a("div",n2,[y[5]||(y[5]=a("div",{class:"info-icon queue-name-icon"},[a("i",{class:"bi bi-tag-fill","aria-hidden":"true"})],-1)),a("div",i2,[y[4]||(y[4]=a("div",{class:"info-label"},"Queue Name",-1)),a("div",r2,[a("span",{class:"queue-name",title:i.value.name},L(i.value.name),9,a2)])])])]),a("div",o2,[a("div",l2,[y[7]||(y[7]=a("div",{class:"info-icon namespace-icon"},[a("i",{class:"bi bi-folder-fill","aria-hidden":"true"})],-1)),a("div",u2,[y[6]||(y[6]=a("div",{class:"info-label"},"Namespace",-1)),a("div",c2,[a("span",{class:"namespace",title:i.value.ns},L(i.value.ns),9,d2)])])])]),a("div",f2,[a("div",h2,[y[9]||(y[9]=a("div",{class:"info-icon queue-type-icon"},[a("i",{class:"bi bi-list-ol","aria-hidden":"true"})],-1)),a("div",m2,[y[8]||(y[8]=a("div",{class:"info-label"},"Queue Type",-1)),a("div",p2,[a("span",{class:Re(["queue-type-badge",m(r.value.queueType)]),title:g(r.value.queueType)},L(p(r.value.queueType)),11,g2)])])])]),a("div",v2,[a("div",b2,[y[11]||(y[11]=a("div",{class:"info-icon delivery-model-icon"},[a("i",{class:"bi bi-arrow-left-right","aria-hidden":"true"})],-1)),a("div",y2,[y[10]||(y[10]=a("div",{class:"info-label"},"Delivery Model",-1)),a("div",_2,[a("span",{class:Re(["delivery-model-badge",_(r.value.deliveryModel)]),title:S(r.value.deliveryModel)},L(w(r.value.deliveryModel)),11,E2)])])])])])]),a("section",w2,[y[15]||(y[15]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-speedometer2","aria-hidden":"true"}),X(" Rate Limit ")],-1)),a("div",C2,[a("div",A2,[a("div",S2,[y[14]||(y[14]=a("div",{class:"info-icon rate-limit-icon"},[a("i",{class:"bi bi-speedometer2","aria-hidden":"true"})],-1)),a("div",x2,[y[13]||(y[13]=a("div",{class:"info-label"},"Current Limit",-1)),a("div",$2,[a("span",T2,L(A(r.value.rateLimit)),1)])])])])])]),a("section",O2,[y[17]||(y[17]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-bar-chart-line-fill","aria-hidden":"true"}),X(" Message Statistics ")],-1)),a("div",N2,[(N(!0),D(Ae,null,bt(u.value,$=>(N(),D("div",{key:$.label,class:Re(["info-item stat-item",{clickable:!!$.routeName}]),role:$.routeName?"link":"listitem",onClick:F=>d($.routeName)},[a("div",P2,[a("div",{class:Re(["info-icon",$.iconClass])},[a("i",{class:Re($.icon),"aria-hidden":"true"},null,2)],2),a("div",D2,[a("div",R2,L($.label),1),a("div",M2,L(h($.value)),1)]),$.routeName?(N(),D("div",I2,[...y[16]||(y[16]=[a("i",{class:"bi bi-chevron-right"},null,-1)])])):fe("",!0)])],10,k2))),128))])])])):(N(),D("div",q2,[...y[18]||(y[18]=[a("div",{class:"state-content"},[a("div",{class:"empty-icon","aria-hidden":"true"},"📋"),a("h4",{class:"state-title"},"No Queue Selected"),a("p",{class:"state-subtitle"},"Select a queue to view its properties")],-1)])]))])]))}}),F2=tt(L2,[["__scopeId","data-v-38070cee"]]),V2=qc({consumerGroupName:yo().min(2,{message:"Name must be at least 2 characters"}).max(64,{message:"Name must be at most 64 characters"}).regex(/^[a-zA-Z0-9_-]+$/,{message:"Only letters, numbers, underscores, and hyphens are allowed"})});function Q2(){const e=Lc(V2),{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l}=Jo({validationSchema:e});return{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l,validationSchema:e}}const j2={class:"form-content"},B2={class:"form-section"},U2={class:"form-group"},K2={key:0,class:"error-section"},H2={class:"error-content"},G2={class:"error-text"},W2={class:"error-message"},z2=["disabled"],Y2=["disabled"],Z2=Ge({__name:"CreateConsumerGroupModal",props:{isVisible:{type:Boolean},isCreating:{type:Boolean},createError:{}},emits:["close","submit"],setup(e,{emit:t}){const s={mounted:c=>c.focus()},n=e,{errors:i,resetForm:r,validationSchema:o}=Q2();Xe(()=>n.isVisible,c=>{c||r()});const l=t;function u(c){l("submit",c)}function d(){l("close")}return(c,h)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:"Create Consumer Group",subtitle:"Add a new consumer group for message processing",icon:"bi bi-people-fill",size:"md",onClose:d},{body:je(()=>[we(O(xv),{id:"create-consumer-group-form","validation-schema":O(o),onSubmit:u},{default:je(()=>[a("div",j2,[a("section",B2,[h[2]||(h[2]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),X(" Group Information ")]),a("p",{class:"section-description"}," Define the consumer group identifier ")],-1)),a("div",U2,[h[0]||(h[0]=a("label",{for:"consumerGroupName",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),X(" Consumer Group Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(we(O(Os),{id:"consumerGroupName",name:"consumerGroupName",type:"text",placeholder:"e.g. email-processors",class:Re(["form-control",{error:O(i).consumerGroupName}]),autocomplete:"off","aria-describedby":"consumerGroupName-help consumerGroupName-error"},null,8,["class"]),[[s]]),we(O(ei),{id:"consumerGroupName-error",name:"consumerGroupName",class:"field-error"}),h[1]||(h[1]=a("div",{id:"consumerGroupName-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Use letters, numbers, underscores, and hyphens only ")],-1))])]),h[5]||(h[5]=a("section",{class:"benefits-section"},[a("div",{class:"benefits-header"},[a("h4",{class:"benefits-title"},[a("i",{class:"bi bi-check-circle-fill me-2"}),X(" Consumer Group Benefits ")])]),a("div",{class:"benefits-list"},[a("div",{class:"benefit-item"},[a("i",{class:"bi bi-arrow-right benefit-icon"}),a("span",null,"Parallel message processing across multiple consumers")]),a("div",{class:"benefit-item"},[a("i",{class:"bi bi-arrow-right benefit-icon"}),a("span",null,"Automatic load balancing and fault tolerance")]),a("div",{class:"benefit-item"},[a("i",{class:"bi bi-arrow-right benefit-icon"}),a("span",null,"Scalable message consumption patterns")])])],-1)),e.createError?(N(),D("div",K2,[a("div",H2,[h[4]||(h[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",G2,[h[3]||(h[3]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",W2,L(e.createError),1)])])])):fe("",!0)])]),_:1},8,["validation-schema"])]),footer:je(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isCreating,onClick:d},[...h[6]||(h[6]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ",-1)])],8,z2),a("button",{type:"submit",class:"btn btn-primary",disabled:e.isCreating,form:"create-consumer-group-form"},[e.isCreating?(N(),D(Ae,{key:0},[h[7]||(h[7]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),h[8]||(h[8]=X(" Creating Group... ",-1))],64)):(N(),D(Ae,{key:1},[h[9]||(h[9]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),h[10]||(h[10]=X(" Create Consumer Group ",-1))],64))],8,Y2)]),_:1},8,["is-visible"]))}}),J2=tt(Z2,[["__scopeId","data-v-0a3bbba0"]]),X2={class:"dialog-body"},eF={class:"confirmation-message"},tF={class:"consumer-group-details"},sF={class:"group-info"},nF={class:"group-content"},iF=["title"],rF={key:0,class:"error-section",role:"alert"},aF={class:"error-content"},oF={class:"error-text"},lF={class:"error-message"},uF={class:"actions"},cF=["disabled"],dF=["disabled"],fF=Ge({__name:"DeleteConsumerGroupModal",props:{isVisible:{type:Boolean},isPending:{type:Boolean},error:{},consumerGroup:{}},emits:["close","delete"],setup(e,{emit:t}){const s=t;function n(){s("delete")}function i(){s("close")}return(r,o)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:"Delete Consumer Group",subtitle:"This action cannot be undone",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:i},{body:je(()=>[a("div",X2,[a("section",eF,[o[2]||(o[2]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following consumer group? ",-1)),a("div",tF,[a("div",sF,[o[1]||(o[1]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill","aria-hidden":"true"})],-1)),a("div",nF,[o[0]||(o[0]=a("div",{class:"group-label"},"Consumer Group",-1)),a("div",{class:"group-name",title:e.consumerGroup},L(e.consumerGroup),9,iF)])])])]),o[5]||(o[5]=a("section",{class:"warning-section","aria-live":"polite"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon"},[a("i",{class:"bi bi-shield-exclamation","aria-hidden":"true"})]),a("div",{class:"warning-text"},[a("h4",{class:"warning-title"},"Warning"),a("ul",{class:"warning-list"},[a("li",null,"All consumers in this group will be disconnected"),a("li",null,"Message processing for this group will stop immediately"),a("li",null,"This action cannot be reversed")])])])],-1)),e.error?(N(),D("section",rF,[a("div",aF,[o[4]||(o[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-circle-fill","aria-hidden":"true"})],-1)),a("div",oF,[o[3]||(o[3]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",lF,L(e.error),1)])])])):fe("",!0)])]),footer:je(()=>[a("div",uF,[a("button",{type:"button",class:"btn btn-outline-secondary",disabled:e.isPending,onClick:i},[...o[6]||(o[6]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),X(" Cancel ",-1)])],8,cF),a("button",{type:"button",class:"btn btn-danger",disabled:e.isPending,onClick:n},[e.isPending?(N(),D(Ae,{key:0},[o[7]||(o[7]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),o[8]||(o[8]=X(" Deleting Group... ",-1))],64)):(N(),D(Ae,{key:1},[o[9]||(o[9]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),o[10]||(o[10]=X(" Delete Consumer Group ",-1))],64))],8,dF)])]),_:1},8,["is-visible"]))}}),hF=tt(fF,[["__scopeId","data-v-5d5b710f"]]);function mF(){const e=ms(),t=v(()=>{const u=e.params.ns;return Array.isArray(u)?u[0]:u}),s=v(()=>{const u=e.params.queue;return Array.isArray(u)?u[0]:u}),n=v(()=>!!(t.value&&s.value)),i=v(()=>!!(t.value&&t.value.length>0)),r=v(()=>!!(s.value&&s.value.length>0)),o=v(()=>t.value||"Unknown"),l=v(()=>s.value||"Unknown");return{ns:t,queueName:s,hasValidParams:n,isValidNamespace:i,isValidQueueName:r,displayNamespace:o,displayQueueName:l}}const pF={key:0,class:"consumer-groups-card"},gF={class:"card-header"},vF={class:"header-actions"},bF=["disabled"],yF={class:"card-content"},_F={key:0,class:"content-state not-supported-state"},EF={key:0,class:"content-state loading-state"},wF={key:1,class:"content-state error-state"},CF={class:"error-content"},AF={class:"error-text"},SF={class:"error-message"},xF={key:2,class:"content-state empty-state"},$F={class:"state-content"},TF=["disabled"],OF={key:3,class:"consumer-groups-content"},NF={class:"groups-header"},kF={class:"groups-count"},PF={class:"count-number"},DF={class:"count-label"},RF=["disabled"],MF={class:"consumer-groups-list"},IF={class:"group-info"},qF={class:"group-details"},LF={class:"group-name"},FF={class:"group-actions"},VF=["disabled","onClick"],QF=Ge({__name:"ConsumerGroupsCard",setup(e){const t=qt(),s=Dn(),n=qv(),i=_e(!1),r=_e(!1),o=_e(null),{ns:l,queueName:u}=mF();Xe([l,u],([E,T])=>{E&&T&&t.selectQueue(E,T)},{immediate:!0});function d(E){o.value=E,r.value=!0}function c(){r.value=!1,o.value=null}const h=v(()=>s.isPubSubQueue),p=v(()=>!h.value||!n.consumerGroups.value?.data?[]:n.sortedConsumerGroups.value),m=v(()=>n.hasConsumerGroups.value),g=v(()=>{const E=n.consumerGroupsError.value?.error;if(E)return E.message?E.message:"Failed to load consumer groups"}),w=v(()=>{const E=n.createConsumerGroupError.value?.error;if(E)return E.message?E.message:"Failed to create consumer group"}),_=v(()=>{const E=n.deleteConsumerGroupError.value?.error;if(E)return E.message?E.message:"Failed to delete consumer group"}),S=v(()=>n.isDeletingConsumerGroup.value),A=v(()=>n.isCreatingConsumerGroup.value),x=v(()=>n.isLoadingConsumerGroups.value);function y(){n.refreshConsumerGroups()}async function $(E){try{const T=E;await n.createConsumerGroup(T.consumerGroupName),i.value=!1}catch(T){console.error("Failed to create consumer group:",T)}}async function F(){if(o.value)try{await n.deleteConsumerGroup(o.value),c()}catch(E){console.error("Failed to delete consumer group:",E)}}function j(){i.value=!1,n.resetCreateConsumerGroupMutation()}function q(){c(),n.resetDeleteConsumerGroupMutation()}return(E,T)=>O(t).selectedQueue?(N(),D("div",pF,[a("header",gF,[T[2]||(T[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),X(" Consumer Groups ")]),a("p",{class:"card-subtitle"}," Manage message consumer groups for pub/sub queues ")],-1)),a("div",vF,[h.value?(N(),D("button",{key:0,class:"btn btn-refresh",disabled:x.value,title:"Refresh consumer groups",onClick:y},[a("i",{class:Re(["bi bi-arrow-clockwise",{spinning:x.value}])},null,2)],8,bF)):fe("",!0)])]),a("main",yF,[h.value?(N(),D(Ae,{key:1},[x.value?(N(),D("div",EF,[...T[4]||(T[4]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"state-title"},"Loading consumer groups..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the consumer groups ")],-1)])])):g.value?(N(),D("div",wF,[a("div",CF,[T[6]||(T[6]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",AF,[T[5]||(T[5]=a("h5",{class:"error-title"},"Failed to load consumer groups",-1)),a("p",SF,L(g.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:y},[...T[7]||(T[7]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ",-1)])])])])):m.value?(N(),D("div",OF,[a("div",NF,[a("div",kF,[a("span",PF,L(p.value.length),1),a("span",DF,"Consumer Group"+L(p.value.length!==1?"s":""),1)]),a("button",{class:"btn btn-primary btn-create",disabled:A.value,onClick:T[1]||(T[1]=C=>i.value=!0)},[A.value?(N(),D(Ae,{key:0},[T[13]||(T[13]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),T[14]||(T[14]=X(" Creating... ",-1))],64)):(N(),D(Ae,{key:1},[T[15]||(T[15]=a("i",{class:"bi bi-plus-circle me-2"},null,-1)),T[16]||(T[16]=X(" Create Group ",-1))],64))],8,RF)]),a("div",MF,[(N(!0),D(Ae,null,bt(p.value,C=>(N(),D("div",{key:C,class:"consumer-group-item"},[a("div",IF,[T[18]||(T[18]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",qF,[a("div",LF,L(C),1),T[17]||(T[17]=a("div",{class:"group-description"}," Consumer group for message processing ",-1))])]),a("div",FF,[a("button",{class:"btn btn-outline-danger btn-delete",disabled:S.value,title:"Delete consumer group",onClick:B=>d(C)},[S.value&&o.value===C?(N(),D(Ae,{key:0},[T[19]||(T[19]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),T[20]||(T[20]=X(" Deleting... ",-1))],64)):(N(),D(Ae,{key:1},[T[21]||(T[21]=a("i",{class:"bi bi-trash me-2"},null,-1)),T[22]||(T[22]=X(" Delete ",-1))],64))],8,VF)])]))),128))])])):(N(),D("div",xF,[a("div",$F,[T[12]||(T[12]=li('<div class="empty-icon" data-v-2744aa11>👥</div><h4 class="state-title" data-v-2744aa11>No Consumer Groups</h4><p class="state-subtitle" data-v-2744aa11> Organize consumers into groups to load-balance message consumption from a queue. Each message is delivered to only one consumer within a group. </p><div class="empty-benefits" data-v-2744aa11><div class="benefit-item" data-v-2744aa11><i class="bi bi-check-circle-fill benefit-icon" data-v-2744aa11></i><span data-v-2744aa11>Load-balance message processing within a group</span></div><div class="benefit-item" data-v-2744aa11><i class="bi bi-check-circle-fill benefit-icon" data-v-2744aa11></i><span data-v-2744aa11>Ensure each message is processed only once per group</span></div><div class="benefit-item" data-v-2744aa11><i class="bi bi-check-circle-fill benefit-icon" data-v-2744aa11></i><span data-v-2744aa11>Build fault-tolerant and scalable consumer systems</span></div></div>',4)),a("button",{class:"btn btn-primary btn-create-first",disabled:A.value,onClick:T[0]||(T[0]=C=>i.value=!0)},[A.value?(N(),D(Ae,{key:0},[T[8]||(T[8]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),T[9]||(T[9]=X(" Creating... ",-1))],64)):(N(),D(Ae,{key:1},[T[10]||(T[10]=a("i",{class:"bi bi-plus-circle me-2"},null,-1)),T[11]||(T[11]=X(" Create Your First Consumer Group ",-1))],64))],8,TF)])]))],64)):(N(),D("div",_F,[...T[3]||(T[3]=[li('<div class="state-content" data-v-2744aa11><div class="not-supported-icon" data-v-2744aa11><i class="bi bi-info-circle-fill" data-v-2744aa11></i></div><h4 class="state-title" data-v-2744aa11>Consumer Groups Not Supported</h4><p class="state-subtitle" data-v-2744aa11> Point-to-point queues use direct messaging where messages are delivered directly to individual consumers. </p><div class="state-info" data-v-2744aa11><div class="info-item" data-v-2744aa11><i class="bi bi-arrow-right me-2" data-v-2744aa11></i><span data-v-2744aa11>Messages are consumed by a single consumer</span></div><div class="info-item" data-v-2744aa11><i class="bi bi-arrow-right me-2" data-v-2744aa11></i><span data-v-2744aa11>No message broadcasting or group management needed</span></div></div></div>',1)])]))]),we(J2,{"is-visible":i.value,"is-creating":A.value,"create-error":w.value,onSubmit:$,onClose:j},null,8,["is-visible","is-creating","create-error"]),we(hF,{error:_.value,"is-pending":S.value,"consumer-group":String(o.value),"is-visible":r.value,onClose:q,onDelete:F},null,8,["error","is-pending","consumer-group","is-visible"])])):fe("",!0)}}),jF=tt(QF,[["__scopeId","data-v-2744aa11"]]),BF=(e,t,s)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"GET",signal:s})),UF=(e,t)=>["api","v1","namespaces",e,"queues",t,"rate-limit"],KF=(e,t,s)=>{const{query:n}=s??{};return{queryKey:UF(e,t),queryFn:({signal:o})=>BF(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function HF(e,t,s,n){const i=KF(e,t,s),r=Jt(i);return r.queryKey=O(i).queryKey,r}const GF=(e,t,s)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"PUT",headers:{"Content-Type":"application/json"},data:s})),WF=e=>{const t=["putApiV1NamespacesNsQueuesNameRateLimit"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o,data:l}=i??{};return GF(r,o,l)},...s}},zF=(e,t)=>{const s=WF(e);return Nt(s)},YF=(e,t)=>(e=O(e),t=O(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"DELETE"})),ZF=e=>{const t=["deleteApiV1NamespacesNsQueuesNameRateLimit"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o}=i??{};return YF(r,o)},...s}},JF=(e,t)=>{const s=ZF(e);return Nt(s)};function XF(){const e=qt(),t=HF(v(()=>e.selectedQueue?.ns||""),v(()=>e.selectedQueue?.name||""),{query:{enabled:v(()=>!!e.selectedQueue?.ns&&!!e.selectedQueue?.name),retry:!1}}),s=zF({mutation:{onSuccess:async()=>{await t.refetch()}}}),n=JF({mutation:{onSuccess:async()=>{await t.refetch()}}}),i=v(()=>t.data.value),r=v(()=>t.isLoading.value),o=v(()=>s.isPending.value),l=v(()=>n.isPending.value),u=v(()=>r.value||o.value||l.value),d=v(()=>t.error.value),c=v(()=>s.error.value),h=v(()=>n.error.value),p=v(()=>d.value||c.value||h.value),m=v(()=>!!i.value?.data);async function g($){if(!e.selectedQueue)throw new Error("No queue selected");await s.mutateAsync({...e.selectedQueue,data:$})}async function w(){if(!e.selectedQueue)throw new Error("No queue selected");await n.mutateAsync(e.selectedQueue)}async function _(){await t.refetch()}function S(){return e.selectedQueue?t.refetch():Promise.resolve()}function A(){s.reset()}function x(){n.reset()}function y(){s.reset(),n.reset()}return{rateLimitQuery:t,setRateLimitMutation:s,clearRateLimitMutation:n,rateLimit:i,isLoading:u,isLoadingRateLimit:r,isUpdatingRateLimit:o,isClearingRateLimit:l,error:p,rateLimitError:d,setRateLimitError:c,clearRateLimitError:h,hasRateLimit:m,setRateLimit:g,clearRateLimit:w,refreshRateLimit:_,refetchRateLimitData:S,resetSetRateLimitMutation:A,resetClearRateLimitMutation:x,resetAllMutations:y}}const eV={key:0,class:"rate-limit-card"},tV={class:"card-header"},sV={class:"header-actions"},nV=["disabled"],iV={class:"card-content"},rV={key:0,class:"content-state loading-state"},aV={key:1,class:"content-state error-state"},oV={class:"error-content"},lV={class:"error-text"},uV={class:"error-message"},cV={key:2,class:"rate-limit-content"},dV={key:0,class:"rate-limit-display"},fV={key:0,class:"no-limit-section"},hV={class:"no-limit-actions"},mV=["disabled"],pV={key:1,class:"rate-limit-info"},gV={class:"rate-limit-status"},vV={class:"rate-limit-details"},bV={class:"rate-limit-value"},yV={class:"rate-limit-interval"},_V={class:"rate-limit-actions"},EV=["disabled"],wV=["disabled"],CV={key:1,class:"rate-limit-form"},AV={class:"form-header"},SV={class:"form-title"},xV={class:"form-body"},$V={class:"form-grid"},TV={class:"form-group"},OV={class:"form-group"},NV={class:"input-group"},kV={class:"rate-limit-preview"},PV={class:"preview-content"},DV={class:"preview-text"},RV={class:"form-footer"},MV=["disabled"],IV=["disabled"],qV={key:1,class:"content-state empty-state"},LV={class:"modal-content"},FV={class:"modal-header"},VV={class:"modal-body"},QV={class:"modal-message"},jV={class:"queue-identifier"},BV={class:"modal-footer"},UV=["disabled"],KV=Ge({__name:"QueueRateLimitCard",setup(e){const t=qt(),s=XF(),n=v(()=>t.selectedQueue),i=qc({limit:Hh().int("Rate limit must be a whole number").positive("Rate limit must be greater than 0").max(1e6,"Rate limit must be less than 1,000,000"),interval:Hh().int("Interval must be a whole number").positive("Interval must be greater than 0"),intervalUnit:yo().refine(q=>["1000","60000","3600000"].includes(q),{message:"Please select a valid time unit"})}),r=Lc(i),o={limit:100,interval:1,intervalUnit:"1000"},l=_e(!1),u=v(()=>s.isClearingRateLimit.value||s.isUpdatingRateLimit.value),d=_e(!1),c=_e(o),h=v(()=>s.isLoadingRateLimit.value),p=v(()=>{const q=s.setRateLimitError,E=s.clearRateLimitError,T=q.value?.error||E.value?.error;return T?`Failed to load rate limit settings: ${T.message} (${T.code})`:null}),m=v(()=>s.rateLimit.value?.data||null),g=v(()=>s.hasRateLimit.value);function w(q){if(!q)return"1 second";if(q>=36e5&&q%36e5===0){const E=q/36e5;return`${E} hour${E>1?"s":""}`}else if(q>=6e4&&q%6e4===0){const E=q/6e4;return`${E} minute${E>1?"s":""}`}else{const E=q/1e3;return`${E} second${E>1?"s":""}`}}function _(q){switch(q){case"3600000":return"hour";case"60000":return"minute";default:return"second"}}function S(q){return q?q>=36e5&&q%36e5===0?{interval:q/36e5,intervalUnit:"3600000"}:q>=6e4&&q%6e4===0?{interval:q/6e4,intervalUnit:"60000"}:{interval:q/1e3,intervalUnit:"1000"}:{interval:1,intervalUnit:"1000"}}Xe(m,q=>{if(q){const{interval:E,intervalUnit:T}=S(q.interval);c.value={limit:q.limit,interval:E,intervalUnit:T}}else c.value=o},{immediate:!0});function A(){s.refreshRateLimit()}function x(){if(g.value&&m.value){const{interval:q,intervalUnit:E}=S(m.value.interval);c.value={limit:m.value.limit,interval:q,intervalUnit:E}}else c.value=o;l.value=!0}async function y(q){const{interval:E,limit:T,intervalUnit:C}=q;try{const B=E*parseInt(C);if(B<1e3){alert("Minimum interval is 1 second (1000ms)");return}const Z={limit:T,interval:B};await s.setRateLimit(Z),l.value=!1}catch(B){console.error("Error saving rate limit:",B)}}async function $(){try{await s.clearRateLimit(),d.value=!1}catch(q){console.error("Error clearing rate limit:",q)}}function F(){d.value=!0}function j(){l.value=!1}return Bt(()=>{A()}),(q,E)=>n.value?(N(),D("div",eV,[a("header",tV,[E[4]||(E[4]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-speedometer2 title-icon"}),X(" Rate Limiting ")]),a("p",{class:"card-subtitle"},"Control message processing speed")],-1)),a("div",sV,[a("button",{class:"btn btn-refresh",disabled:h.value,title:"Refresh rate limit settings",onClick:A},[a("i",{class:Re(["bi bi-arrow-clockwise",{spinning:h.value}])},null,2)],8,nV)])]),a("main",iV,[n.value?(N(),D(Ae,{key:0},[h.value?(N(),D("div",rV,[...E[5]||(E[5]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"state-title"},"Loading rate limit settings..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the configuration ")],-1)])])):p.value?(N(),D("div",aV,[a("div",oV,[E[7]||(E[7]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",lV,[E[6]||(E[6]=a("h5",{class:"error-title"},"Failed to load rate limit settings",-1)),a("p",uV,L(p.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:A},[...E[8]||(E[8]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ",-1)])])])])):(N(),D("div",cV,[l.value?fe("",!0):(N(),D("div",dV,[g.value?(N(),D("div",pV,[a("div",gV,[E[12]||(E[12]=a("div",{class:"status-indicator"},[a("div",{class:"status-badge active"},[a("i",{class:"bi bi-check-circle-fill me-1"}),X(" Active ")])],-1)),a("div",vV,[a("h4",bV,[X(L(m.value?.limit||0)+" messages ",1),a("span",yV," per "+L(w(m.value?.interval)),1)]),E[11]||(E[11]=a("p",{class:"rate-limit-description"}," Current rate limiting configuration for this queue ",-1))])]),a("div",_V,[a("button",{class:"btn btn-outline-primary btn-edit",disabled:u.value,onClick:x},[...E[13]||(E[13]=[a("i",{class:"bi bi-pencil me-2"},null,-1),X(" Edit ",-1)])],8,EV),a("button",{class:"btn btn-outline-danger btn-clear",disabled:u.value,onClick:F},[...E[14]||(E[14]=[a("i",{class:"bi bi-trash me-2"},null,-1),X(" Clear ",-1)])],8,wV)])])):(N(),D("div",fV,[E[10]||(E[10]=li('<div class="no-limit-content" data-v-a86cac21><div class="no-limit-icon" data-v-a86cac21>⚡</div><div class="no-limit-text" data-v-a86cac21><h4 class="no-limit-title" data-v-a86cac21>No Rate Limit Configured</h4><p class="no-limit-description" data-v-a86cac21> Messages are processed without speed restrictions. Set a rate limit to control processing speed and prevent system overload. </p></div></div>',1)),a("div",hV,[a("button",{class:"btn btn-primary btn-set-limit",disabled:u.value,onClick:x},[...E[9]||(E[9]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),X(" Set Rate Limit ",-1)])],8,mV)])]))])),l.value?(N(),D("div",CV,[a("div",AV,[a("h4",SV,L(g.value?"Edit Rate Limit":"Set Rate Limit"),1),E[15]||(E[15]=a("p",{class:"form-subtitle"}," Configure the maximum number of messages processed per time interval ",-1))]),we(O(xv),{"initial-values":c.value,"validation-schema":O(r),onSubmit:y},{default:je(()=>[a("div",xV,[a("div",$V,[a("div",TV,[E[16]||(E[16]=a("label",{for:"limit",class:"form-label"},[a("i",{class:"bi bi-hash me-1"}),X(" Message Limit ")],-1)),we(O(Os),{id:"limit",name:"limit",type:"number",class:"form-control",min:"1",max:"1000000",required:"",disabled:u.value,placeholder:"e.g. 100"},null,8,["disabled"]),we(O(ei),{name:"limit",class:"field-error"}),E[17]||(E[17]=a("div",{class:"field-help"},"Maximum messages to process",-1))]),a("div",OV,[E[19]||(E[19]=a("label",{for:"interval",class:"form-label"},[a("i",{class:"bi bi-clock me-1"}),X(" Time Interval ")],-1)),a("div",NV,[we(O(Os),{id:"interval",name:"interval",type:"number",class:"form-control",min:"1",required:"",disabled:u.value,placeholder:"e.g. 1"},null,8,["disabled"]),we(O(Os),{name:"intervalUnit",as:"select",class:"form-select"},{default:je(()=>[...E[18]||(E[18]=[a("option",{value:"1000"},"Seconds",-1),a("option",{value:"60000"},"Minutes",-1),a("option",{value:"3600000"},"Hours",-1)])]),_:1})]),we(O(ei),{name:"interval",class:"field-error"}),E[20]||(E[20]=a("div",{class:"field-help"},"Minimum interval is 1 second",-1))])]),a("div",kV,[a("div",PV,[E[23]||(E[23]=a("i",{class:"bi bi-info-circle preview-icon"},null,-1)),a("div",DV,[E[21]||(E[21]=X(" This will limit the queue to processing ",-1)),we(O(Os),{name:"limit"},{default:je(({field:T})=>[a("strong",null,L(T.value||0),1)]),_:1}),E[22]||(E[22]=X(" messages per ",-1)),we(O(Os),{name:"interval"},{default:je(({field:T})=>[a("strong",null,L(T.value||1),1)]),_:1}),we(O(Os),{name:"intervalUnit"},{default:je(({field:T})=>[a("strong",null,L(_(T.value))+"(s)",1)]),_:1})])])])]),a("div",RV,[a("button",{type:"button",class:"btn btn-outline-secondary btn-cancel",disabled:u.value,onClick:j}," Cancel ",8,MV),a("button",{type:"submit",class:"btn btn-primary btn-save",disabled:u.value},[u.value?(N(),D(Ae,{key:0},[E[24]||(E[24]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),E[25]||(E[25]=X(" Saving... ",-1))],64)):(N(),D(Ae,{key:1},[E[26]||(E[26]=a("i",{class:"bi bi-check-lg me-2"},null,-1)),E[27]||(E[27]=X(" Save Rate Limit ",-1))],64))],8,IV)])]),_:1},8,["initial-values","validation-schema"])])):fe("",!0)]))],64)):(N(),D("div",qV,[...E[28]||(E[28]=[a("div",{class:"state-content"},[a("div",{class:"empty-icon"},"🎯"),a("h4",{class:"state-title"},"No Queue Selected"),a("p",{class:"state-subtitle"}," Select a queue to configure its rate limiting settings ")],-1)])]))]),d.value?(N(),D("div",{key:0,class:"modal-overlay",onClick:E[3]||(E[3]=T=>d.value=!1)},[a("div",{class:"modal-dialog",onClick:E[2]||(E[2]=Pt(()=>{},["stop"]))},[a("div",LV,[a("header",FV,[E[30]||(E[30]=a("h4",{class:"modal-title"},[a("i",{class:"bi bi-exclamation-triangle-fill text-warning me-2"}),X(" Clear Rate Limit ")],-1)),a("button",{type:"button",class:"btn-close",title:"Close",onClick:E[0]||(E[0]=T=>d.value=!1)},[...E[29]||(E[29]=[a("i",{class:"bi bi-x"},null,-1)])])]),a("main",VV,[a("p",QV,[E[31]||(E[31]=X(" Are you sure you want to remove the rate limit for queue ",-1)),a("strong",jV,'"'+L(n.value?.name)+"@"+L(n.value?.ns)+'"',1),E[32]||(E[32]=X("? ",-1))]),E[33]||(E[33]=a("div",{class:"modal-warning"},[a("i",{class:"bi bi-info-circle me-2"}),X(" This will allow messages to be processed without any rate restrictions. ")],-1))]),a("footer",BV,[a("button",{type:"button",class:"btn btn-outline-secondary",onClick:E[1]||(E[1]=T=>d.value=!1)}," Cancel "),a("button",{type:"button",class:"btn btn-danger",disabled:u.value,onClick:$},[u.value?(N(),D(Ae,{key:0},[E[34]||(E[34]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),E[35]||(E[35]=X(" Clearing... ",-1))],64)):(N(),D(Ae,{key:1},[E[36]||(E[36]=a("i",{class:"bi bi-trash me-2"},null,-1)),E[37]||(E[37]=X(" Clear Rate Limit ",-1))],64))],8,UV)])])])])):fe("",!0)])):fe("",!0)}}),HV=tt(KV,[["__scopeId","data-v-a86cac21"]]),Ll=5e3;function GV(){const e=qt(),t=_e(Ll),s=zT(v(()=>e.selectedQueue?.ns||""),v(()=>e.selectedQueue?.name||""),{query:{enabled:v(()=>!!e.selectedQueue?.ns&&!!e.selectedQueue?.name),refetchInterval:v(()=>t.value),refetchIntervalInBackground:!1}}),n=v(()=>s.data.value),i=v(()=>s.isLoading.value),r=v(()=>s.isRefetching.value),o=v(()=>s.error.value),l=v(()=>n.value?.data?Object.entries(n.value.data).map(([ne,de])=>({id:ne,consumerId:ne,...de})):[]),u=v(()=>n.value?.data||{}),d=v(()=>Object.keys(u.value)),c=v(()=>l.value.length>0),h=v(()=>[...l.value].sort((ne,de)=>ne.id.localeCompare(de.id))),p=v(()=>[...l.value].sort((ne,de)=>de.createdAt-ne.createdAt)),m=v(()=>[...l.value].sort((ne,de)=>ne.hostname.localeCompare(de.hostname))),g=v(()=>l.value.length),w=v(()=>{const ne={};return l.value.forEach(de=>{ne[de.hostname]||(ne[de.hostname]=[]),ne[de.hostname].push(de)}),ne}),_=v(()=>[...new Set(l.value.map(ne=>ne.hostname))].sort()),S=v(()=>{const ne={total:l.value.length,uniqueHostnames:_.value.length,averageCreatedAt:0,oldestConsumer:null,newestConsumer:null};if(l.value.length>0){const de=l.value.reduce((qe,ce)=>qe+ce.createdAt,0);ne.averageCreatedAt=de/l.value.length;const ke=[...l.value].sort((qe,ce)=>qe.createdAt-ce.createdAt);ne.oldestConsumer=ke[0],ne.newestConsumer=ke[ke.length-1]}return ne});async function A(){await s.refetch()}function x(){return e.selectedQueue?s.refetch():Promise.resolve()}function y(){t.value=Ll,console.log(`Real-time updates enabled with ${Ll}ms interval`)}function $(){t.value=!1,console.log("Real-time updates disabled")}function F(ne){return l.value.find(de=>de.id===ne)||null}function j(ne){return u.value[ne]||null}function q(ne){return l.value.filter(de=>de.hostname===ne)}function E(ne){return l.value.filter(de=>de.pid===ne)}function T(ne){return l.value.filter(de=>de.createdAt>ne)}function C(ne){return l.value.filter(de=>de.createdAt<ne)}function B(ne){const de=ne.toLowerCase();return l.value.filter(ke=>ke.id.toLowerCase().includes(de)||ke.hostname.toLowerCase().includes(de)||ke.pid.toString().includes(de)||ke.ipAddress.some(qe=>qe.includes(ne)))}function Z(ne){return!!ne&&ne.trim().length>0}function z(ne){return ne in u.value}function ie(){return!!e.selectedQueue?.ns&&!!e.selectedQueue?.name}function W(){return e.selectedQueue?`${e.selectedQueue.ns}/${e.selectedQueue.name}`:""}function V(ne){return Date.now()-ne.createdAt}return{queuesStore:e,consumersQuery:s,consumers:n,consumersArray:l,consumersObject:u,consumerIds:d,isLoadingConsumers:i,isRefetchingConsumers:r,consumersError:o,hasConsumers:c,sortedConsumers:h,sortedConsumersByCreatedAt:p,sortedConsumersByHostname:m,consumerCount:g,consumersByHostname:w,uniqueHostnames:_,consumerStats:S,refreshConsumers:A,refetchConsumersData:x,enableRealTimeUpdates:y,disableRealTimeUpdates:$,findConsumerById:F,getConsumerData:j,getConsumersByHostname:q,getConsumersByPid:E,getConsumersCreatedAfter:T,getConsumersCreatedBefore:C,searchConsumers:B,isValidConsumerId:Z,hasConsumerWithId:z,isValidQueue:ie,getQueueDisplayName:W,getConsumerUptime:V}}const WV={key:0,class:"queue-consumers-card"},zV={class:"card-header"},YV={class:"header-actions"},ZV=["title"],JV=["disabled"],XV={class:"card-content"},eQ={key:0,class:"content-state loading-state"},tQ={key:1,class:"content-state error-state",role:"alert"},sQ={class:"error-content"},nQ={class:"error-text"},iQ={class:"error-message"},rQ={key:2,class:"content-state empty-state"},aQ={class:"state-content"},oQ={class:"empty-info"},lQ={class:"info-item"},uQ={key:3,class:"consumers-content"},cQ={class:"consumers-stats",role:"group","aria-label":"Consumers statistics"},dQ={class:"stat-item"},fQ={class:"stat-content"},hQ={class:"stat-number"},mQ={class:"stat-item"},pQ={class:"stat-content"},gQ={class:"stat-number"},vQ={key:0,class:"stat-item"},bQ={class:"stat-content"},yQ={class:"stat-number"},_Q={class:"consumers-filters"},EQ={class:"filter-group"},wQ={class:"filter-group"},CQ=["value"],AQ={class:"consumers-header"},SQ={class:"consumers-count"},xQ={key:0,class:"filtered-count"},$Q={class:"indicator-text"},TQ={class:"consumers-list"},OQ={class:"consumer-header"},NQ={class:"consumer-id"},kQ=["title"],PQ={class:"consumer-status"},DQ=["title"],RQ={class:"consumer-details"},MQ={class:"detail-row"},IQ={class:"detail-item"},qQ=["title"],LQ={class:"detail-item"},FQ=["title"],VQ={class:"detail-row"},QQ={class:"detail-item"},jQ={class:"detail-value uptime"},BQ={class:"detail-item"},UQ={class:"detail-value created-at"},KQ={class:"detail-row"},HQ={class:"detail-item ip-addresses"},GQ={class:"ip-list"},WQ=Ge({__name:"QueueConsumersCard",setup(e){const t=qt(),s=GV(),n=_e(!0),i=_e(""),r=_e(""),o=v(()=>s.consumersArray.value),l=v(()=>s.isLoadingConsumers.value),u=v(()=>s.isRefetchingConsumers.value),d=v(()=>s.consumersError.value),c=v(()=>s.hasConsumers.value),h=v(()=>s.consumerStats.value),p=v(()=>s.uniqueHostnames.value),m=v(()=>{let x=o.value;return i.value&&(x=x.filter(y=>y.hostname===i.value)),r.value.trim()&&(x=s.searchConsumers(r.value)),x});function g(){s.refreshConsumers()}function w(){n.value=!n.value,n.value?s.enableRealTimeUpdates():s.disableRealTimeUpdates()}function _(){i.value="",r.value=""}function S(x){const $=s.getConsumerUptime(x)/(1e3*60);return $<1?"status-new":$<60?"status-active":"status-stable"}function A(x){const $=s.getConsumerUptime(x)/(1e3*60);return $<1?"New":$<60?"Active":"Stable"}return Bt(()=>{n.value&&s.enableRealTimeUpdates()}),uc(()=>{s.disableRealTimeUpdates()}),(x,y)=>O(t).selectedQueue?(N(),D("div",WV,[a("header",zV,[y[2]||(y[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),X(" Queue Consumers ")]),a("p",{class:"card-subtitle"}," Active consumers processing messages from this queue ")],-1)),a("div",YV,[a("button",{class:Re(["btn btn-toggle",{active:n.value}]),title:n.value?"Disable real-time updates":"Enable real-time updates",onClick:w},[a("i",{class:Re(["bi",n.value?"bi-pause-fill":"bi-play-fill"])},null,2)],10,ZV),a("button",{class:"btn btn-refresh",disabled:l.value,title:"Refresh consumers",onClick:g},[a("i",{class:Re(["bi bi-arrow-clockwise",{spinning:u.value}])},null,2)],8,JV)])]),a("main",XV,[l.value?(N(),D("div",eQ,[...y[3]||(y[3]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3",role:"status","aria-live":"polite","aria-label":"Loading consumers"}),a("h5",{class:"state-title"},"Loading consumers..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the active consumers ")],-1)])])):d.value?(N(),D("div",tQ,[a("div",sQ,[y[5]||(y[5]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger","aria-hidden":"true"})],-1)),a("div",nQ,[y[4]||(y[4]=a("h5",{class:"error-title"},"Failed to load consumers",-1)),a("p",iQ,L(O(at)(d.value)?.message),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:g},[...y[6]||(y[6]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ",-1)])])])])):c.value?(N(),D("div",uQ,[a("div",cQ,[a("div",dQ,[y[13]||(y[13]=a("div",{class:"stat-icon total-icon","aria-hidden":"true"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",fQ,[a("div",hQ,L(h.value.total),1),y[12]||(y[12]=a("div",{class:"stat-label"},"Total Consumers",-1))])]),a("div",mQ,[y[15]||(y[15]=a("div",{class:"stat-icon hostnames-icon","aria-hidden":"true"},[a("i",{class:"bi bi-hdd-network-fill"})],-1)),a("div",pQ,[a("div",gQ,L(h.value.uniqueHostnames),1),y[14]||(y[14]=a("div",{class:"stat-label"},"Unique Hosts",-1))])]),h.value.newestConsumer?(N(),D("div",vQ,[y[17]||(y[17]=a("div",{class:"stat-icon newest-icon","aria-hidden":"true"},[a("i",{class:"bi bi-clock-fill"})],-1)),a("div",bQ,[a("div",yQ,L(O(yh)(h.value.newestConsumer?.createdAt)),1),y[16]||(y[16]=a("div",{class:"stat-label"},"Newest Consumer",-1))])])):fe("",!0)]),a("div",_Q,[a("div",EQ,[y[18]||(y[18]=a("label",{class:"filter-label",for:"consumers-search"},"Search:",-1)),ss(a("input",{id:"consumers-search","onUpdate:modelValue":y[0]||(y[0]=$=>r.value=$),type:"text",class:"form-control filter-input",placeholder:"Search by ID, hostname, PID, or IP..."},null,512),[[rn,r.value]])]),a("div",wQ,[y[20]||(y[20]=a("label",{class:"filter-label",for:"hostname-select"},"Hostname:",-1)),ss(a("select",{id:"hostname-select","onUpdate:modelValue":y[1]||(y[1]=$=>i.value=$),class:"form-select filter-select"},[y[19]||(y[19]=a("option",{value:""},"All Hostnames",-1)),(N(!0),D(Ae,null,bt(p.value,$=>(N(),D("option",{key:$,value:$},L($),9,CQ))),128))],512),[[Hp,i.value]])]),i.value||r.value?(N(),D("button",{key:0,class:"btn btn-outline-secondary btn-clear-filters",onClick:_},[...y[21]||(y[21]=[a("i",{class:"bi bi-x-circle me-1","aria-hidden":"true"},null,-1),X(" Clear ",-1)])])):fe("",!0)]),a("div",AQ,[a("h5",SQ,[X(L(m.value.length)+" Consumer"+L(m.value.length!==1?"s":"")+" ",1),m.value.length!==o.value.length?(N(),D("span",xQ," (filtered from "+L(o.value.length)+") ",1)):fe("",!0)]),a("div",{class:Re(["real-time-indicator",{active:n.value}]),role:"status","aria-live":"polite"},[y[22]||(y[22]=a("i",{class:"bi bi-circle-fill indicator-dot","aria-hidden":"true"},null,-1)),a("span",$Q,L(n.value?"Live":"Paused"),1)],2)]),a("div",TQ,[(N(!0),D(Ae,null,bt(m.value,$=>(N(),D("div",{key:$.id,class:"consumer-item"},[a("div",OQ,[a("div",NQ,[y[23]||(y[23]=a("i",{class:"bi bi-person-fill consumer-icon","aria-hidden":"true"},null,-1)),a("span",{class:"id-text",title:$.id},L($.id),9,kQ)]),a("div",PQ,[a("span",{class:Re(["status-badge",S($)]),title:`Consumer status: ${A($)}`},L(A($)),11,DQ)])]),a("div",RQ,[a("div",MQ,[a("div",IQ,[y[24]||(y[24]=a("i",{class:"bi bi-hdd-network detail-icon","aria-hidden":"true"},null,-1)),y[25]||(y[25]=a("span",{class:"detail-label"},"Hostname:",-1)),a("span",{class:"detail-value hostname",title:$.hostname},L($.hostname),9,qQ)]),a("div",LQ,[y[26]||(y[26]=a("i",{class:"bi bi-gear detail-icon","aria-hidden":"true"},null,-1)),y[27]||(y[27]=a("span",{class:"detail-label"},"PID:",-1)),a("span",{class:"detail-value pid",title:String($.pid)},L($.pid),9,FQ)])]),a("div",VQ,[a("div",QQ,[y[28]||(y[28]=a("i",{class:"bi bi-clock detail-icon","aria-hidden":"true"},null,-1)),y[29]||(y[29]=a("span",{class:"detail-label"},"Uptime:",-1)),a("span",jQ,L(O(yh)($.createdAt)),1)]),a("div",BQ,[y[30]||(y[30]=a("i",{class:"bi bi-calendar detail-icon","aria-hidden":"true"},null,-1)),y[31]||(y[31]=a("span",{class:"detail-label"},"Started:",-1)),a("span",UQ,L(O(Pc)($.createdAt)),1)])]),a("div",KQ,[a("div",HQ,[y[32]||(y[32]=a("i",{class:"bi bi-router detail-icon","aria-hidden":"true"},null,-1)),y[33]||(y[33]=a("span",{class:"detail-label"},"IP Addresses:",-1)),a("div",GQ,[(N(!0),D(Ae,null,bt($.ipAddress,F=>(N(),D("span",{key:F,class:"ip-badge"},L(F),1))),128))])])])])]))),128))])])):(N(),D("div",rQ,[a("div",aQ,[y[9]||(y[9]=a("div",{class:"empty-icon","aria-hidden":"true"},"👥",-1)),y[10]||(y[10]=a("h4",{class:"state-title"},"No Active Consumers",-1)),y[11]||(y[11]=a("p",{class:"state-subtitle"}," No consumers are currently connected to this queue. Start a consumer application to begin processing messages. ",-1)),a("div",oQ,[y[8]||(y[8]=a("div",{class:"info-item"},[a("i",{class:"bi bi-info-circle me-2","aria-hidden":"true"}),a("span",null,"Consumers will appear here when they connect to the queue")],-1)),a("div",lQ,[y[7]||(y[7]=a("i",{class:"bi bi-info-circle me-2","aria-hidden":"true"},null,-1)),a("span",null,"Real-time updates are "+L(n.value?"enabled":"disabled"),1)])])])]))])])):fe("",!0)}}),zQ=tt(WQ,[["__scopeId","data-v-a0e686b6"]]),YQ={class:"queue-properties-view"},ZQ={key:0,class:"details-grid"},JQ={class:"details-column-main"},XQ={class:"details-column-secondary"},e4="Queue Details & Management",t4=Ge({__name:"QueuePropertiesView",setup(e){const t=ms(),s=os(),n=Xt(),i=qt(),r=Dn(),o=v(()=>t.params.ns),l=v(()=>t.params.queue),u=v(()=>i.selectedQueue),d=v(()=>r.isLoadingQueueProperties),c=v(()=>r.queuePropertiesError),{deleteQueue:h,isDeletingQueue:p,deleteQueueError:m,deleteQueueMutation:g}=mv(async()=>{await s.push({name:"Queues"})}),w=_e(!1);function _(){g.reset(),w.value=!0}function S(){w.value=!1}async function A(){u.value&&await h({ns:u.value.ns,name:u.value.name})}const x=v(()=>{const q=m.value||c.value;return at(q)}),y=v(()=>c.value?.error?.message==="QueueNotFoundError"),$=v(()=>`${l.value} @ ${o.value}`),F=v(()=>[{id:"delete-queue",label:"Delete",icon:"bi bi-trash",variant:"danger",disabled:d.value||p.value,loading:p.value,handler:_}]);function j(){i.clearSelectedQueue(),s.push({name:"Queues"})}return At(()=>{n.setPageHeader({title:$.value,subtitle:e4,icon:"bi bi-card-list"}),n.setLoadingState(d.value),y.value?(n.setEmptyState(!0,{icon:"bi bi-question-circle",title:"Queue Not Found",message:`The queue "${l.value}" in namespace "${o.value}" could not be found. It may have been deleted.`,actionLabel:"Back to Queues",actionHandler:j}),n.setPageActions([])):x.value&&!w.value?(n.setErrorState(x.value),n.setPageActions([])):(n.setEmptyState(!1),n.setErrorState(null),n.setPageActions(F.value))}),Xe([o,l],([q,E])=>{q&&E?i.selectQueue(q,E):i.clearSelectedQueue()},{immediate:!0}),UL([{isVisible:w,onEscape:S}]),(q,E)=>(N(),D("div",YQ,[we(ps,null,{default:je(()=>[u.value?(N(),D("div",ZQ,[a("div",JQ,[we(F2),we(jF)]),a("div",XQ,[we(HV),we(zQ)])])):fe("",!0)]),_:1}),we(Mv,{queue:{ns:o.value,name:l.value},"is-deleting":O(p),"is-visible":w.value,onCancel:S,onConfirm:A},null,8,["queue","is-deleting","is-visible"])]))}}),s4=tt(t4,[["__scopeId","data-v-8e3989c7"]]),n4=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/scheduled-messages`,method:"GET",params:O(s),signal:n}));function i4(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>n4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"scheduled-messages",enableDelete:!0,enableRequeue:!1},t)}const r4=Ge({__name:"ScheduledMessagesView",setup(e){const t=ms(),s=Xt(),n=qt(),i=Dn(),r=v(()=>({ns:t.params.ns,name:t.params.queue}));Xe(r,$=>{$.ns&&$.name&&n.selectQueue($.ns,$.name)},{immediate:!0,deep:!0});const o=v(()=>n.selectedQueue),{messages:l,pagination:u,isLoading:d,isDeleting:c,error:h,goToPage:p,setPageSize:m,refresh:g,deleteMessage:w}=i4(r,20),_=v(()=>o.value?`Scheduled Messages - ${`${o.value.ns}/${o.value.name}`}`:"Scheduled Messages"),S=v(()=>{if(o.value)return i.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{s.setPageHeader({title:_.value,subtitle:S.value,icon:"bi bi-clock"})}),At(()=>{if(!o.value){s.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its scheduled messages."}),s.setPageActions([]),s.setLoadingState(!1),s.setErrorState(null);return}s.setLoadingState(!1),s.setErrorState(null),s.setEmptyState(!1),s.setPageActions([])});async function A($){w&&await w($)}function x($){p($)}async function y($){await m($)}return($,F)=>(N(),ct(ps,{"show-section-header":!1},{default:je(()=>[o.value?(N(),ct(ra,{key:0,messages:O(l),"is-loading":O(d),error:O(h),pagination:O(u),"show-pagination":!0,"empty-message":"No scheduled messages found for this queue. Messages appear here when they are scheduled for future delivery.",icon:"bi-clock","is-deleting":O(c),"is-requeuing":!1,onRefresh:O(g),onDeleteMessage:A,onPageChange:x,onPageSizeChange:y,onFirstPage:F[0]||(F[0]=j=>x(1)),onPreviousPage:F[1]||(F[1]=j=>x(O(u).currentPage-1)),onNextPage:F[2]||(F[2]=j=>x(O(u).currentPage+1)),onLastPage:F[3]||(F[3]=j=>x(O(u).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):fe("",!0)]),_:1}))}}),a4=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/messages`,method:"GET",params:O(s),signal:n}));function o4(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>a4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"queue-messages",enableDelete:!0,enableRequeue:!0},t)}const l4=Ge({__name:"QueueMessagesView",setup(e){const t=ms(),s=Xt(),n=qt(),i=v(()=>({ns:t.params.ns,name:t.params.queue}));Xe(i,$=>{$.ns&&$.name&&n.selectQueue($.ns,$.name)},{immediate:!0,deep:!0});const{messages:r,pagination:o,isLoading:l,isDeleting:u,isRequeuing:d,error:c,goToPage:h,setPageSize:p,refresh:m,deleteMessage:g,requeueMessage:w}=o4(i,20),_=v(()=>i.value.ns?`Queue Messages - ${i.value.name}@${i.value.ns}`:"Queue Messages");At(()=>{s.setPageHeader({title:_.value,subtitle:"View and manage messages for this queue.",icon:"bi bi-clock"}),s.setLoadingState(!1),s.setErrorState(null),s.setEmptyState(!1),s.setPageActions([])});async function S($){g&&await g($)}async function A($){w&&await w($)}function x($){h($)}async function y($){await p($)}return($,F)=>(N(),ct(ps,{"show-section-header":!1},{default:je(()=>[we(ra,{messages:O(r),"is-loading":O(l),error:O(c),pagination:O(o),"show-pagination":!0,"empty-message":"No messages found for this queue",icon:"bi-clock","is-deleting":O(u),"is-requeuing":O(d),onRefresh:O(m),onDeleteMessage:S,onRequeueMessage:A,onPageChange:x,onPageSizeChange:y,onFirstPage:F[0]||(F[0]=j=>x(1)),onPreviousPage:F[1]||(F[1]=j=>x(O(o).currentPage-1)),onNextPage:F[2]||(F[2]=j=>x(O(o).currentPage+1)),onLastPage:F[3]||(F[3]=j=>x(O(o).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])]),_:1}))}}),u4={class:"bind-queue-content"},c4={class:"modal-description","aria-live":"polite"},d4={key:0,class:"error-alert",role:"alert"},f4={class:"error-text"},h4={class:"form-group"},m4=["disabled","aria-invalid"],p4={key:0,id:"queueName-error",class:"field-error",role:"alert"},g4={key:0,class:"form-group"},v4=["disabled","aria-invalid"],b4={key:0,id:"routingKey-error",class:"field-error",role:"alert"},y4={key:1,class:"form-group"},_4=["disabled","aria-invalid"],E4={key:0,id:"bindingPattern-error",class:"field-error",role:"alert"},w4=["disabled"],C4=["disabled"],A4={key:0,class:"loading-spinner","aria-hidden":"true"},S4={key:1,class:"bi bi-link-45deg","aria-hidden":"true"},x4=Ge({__name:"BindQueueModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean,default:!1},error:{default:null},exchangeType:{},exchangeName:{},namespace:{}},emits:["confirm","cancel"],setup(e,{emit:t}){const s=e,n=t,i=_e(""),r=_e(""),o=_e(""),l=_e(""),u=_e(""),d=_e(""),c=_e(null),h=v(()=>`Bind Queue to ${s.exchangeType.charAt(0).toUpperCase()+s.exchangeType.slice(1)} Exchange`),p=v(()=>`${s.exchangeName} • ${s.namespace}`),m=v(()=>{switch(s.exchangeType){case"direct":return"Bind a queue to this direct exchange with a specific routing key. Messages will be routed to the queue only when the routing key matches exactly.";case"fanout":return"Bind a queue to this fanout exchange. All messages published to this exchange will be delivered to the bound queue.";case"topic":return"Bind a queue to this topic exchange with a binding pattern. Messages will be routed based on pattern matching with routing keys.";default:return"Bind a queue to this exchange."}}),g=v(()=>s.exchangeType==="direct"),w=v(()=>s.exchangeType==="topic"),_=v(()=>{const q=i.value.trim().length>0,E=!g.value||r.value.trim().length>0,T=!w.value||o.value.trim().length>0;return q&&E&&T&&!l.value&&!u.value&&!d.value}),S=()=>{const q=i.value.trim();return q?q.length<1||q.length>255?(l.value="Queue name must be between 1 and 255 characters",!1):/^[a-zA-Z0-9._-]+$/.test(q)?(l.value="",!0):(l.value="Queue name can only contain letters, numbers, dots, underscores, and hyphens",!1):(l.value="Queue name is required",!1)},A=()=>{if(!g.value)return u.value="",!0;const q=r.value.trim();return q?q.length>255?(u.value="Routing key must not exceed 255 characters",!1):(u.value="",!0):(u.value="Routing key is required for direct exchanges",!1)},x=()=>{if(!w.value)return d.value="",!0;const q=o.value.trim();return q?q.length>255?(d.value="Binding pattern must not exceed 255 characters",!1):(d.value="",!0):(d.value="Binding pattern is required for topic exchanges",!1)},y=()=>{const q=S(),E=A(),T=x();return q&&E&&T},$=()=>{if(!y()||s.isLoading)return;const q={queueName:i.value.trim()};g.value&&(q.routingKey=r.value.trim()),w.value&&(q.bindingPattern=o.value.trim()),n("confirm",q)},F=()=>{s.isLoading||n("cancel")},j=()=>{i.value="",r.value="",o.value="",l.value="",u.value="",d.value=""};return Xe(()=>s.isVisible,async q=>{q&&(j(),await kt(),c.value?.focus())}),Xe(()=>s.error,q=>{q||(l.value="",u.value="",d.value="")}),(q,E)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:h.value,subtitle:p.value,icon:"bi bi-link-45deg",size:"md",onClose:F},{body:je(()=>[a("div",u4,[a("p",c4,L(m.value),1),e.error?(N(),D("div",d4,[E[6]||(E[6]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",f4,L(e.error),1)])):fe("",!0),a("form",{class:"bind-form",onSubmit:Pt($,["prevent"])},[a("div",h4,[E[7]||(E[7]=a("label",{for:"queueName",class:"form-label"},[X(" Queue Name "),a("span",{class:"required"},"*")],-1)),ss(a("input",{id:"queueName",ref_key:"queueNameInput",ref:c,"onUpdate:modelValue":E[0]||(E[0]=T=>i.value=T),type:"text",class:Re(["form-input",{error:!!l.value}]),placeholder:"Enter queue name",disabled:e.isLoading,"aria-invalid":!!l.value,"aria-describedby":"queueName-hint queueName-error",inputmode:"text",autocomplete:"off",autocapitalize:"off",autocorrect:"off",spellcheck:"false",maxlength:"255",pattern:"[A-Za-z0-9._-]+",onBlur:S,onInput:E[1]||(E[1]=T=>l.value="")},null,42,m4),[[rn,i.value]]),l.value?(N(),D("div",p4,L(l.value),1)):fe("",!0),E[8]||(E[8]=a("div",{id:"queueName-hint",class:"field-hint"}," Queue name can contain letters, numbers, dots, underscores, and hyphens ",-1))]),g.value?(N(),D("div",g4,[E[9]||(E[9]=a("label",{for:"routingKey",class:"form-label"},[X(" Routing Key "),a("span",{class:"required"},"*")],-1)),ss(a("input",{id:"routingKey","onUpdate:modelValue":E[2]||(E[2]=T=>r.value=T),type:"text",class:Re(["form-input",{error:!!u.value}]),placeholder:"Enter routing key",disabled:e.isLoading,"aria-invalid":!!u.value,"aria-describedby":"routingKey-hint routingKey-error",inputmode:"text",autocomplete:"off",autocapitalize:"off",autocorrect:"off",spellcheck:"false",maxlength:"255",onBlur:A,onInput:E[3]||(E[3]=T=>u.value="")},null,42,v4),[[rn,r.value]]),u.value?(N(),D("div",b4,L(u.value),1)):fe("",!0),E[10]||(E[10]=a("div",{id:"routingKey-hint",class:"field-hint"}," Messages will be routed to this queue only when the routing key matches exactly ",-1))])):fe("",!0),w.value?(N(),D("div",y4,[E[11]||(E[11]=a("label",{for:"bindingPattern",class:"form-label"},[X(" Binding Pattern "),a("span",{class:"required"},"*")],-1)),ss(a("input",{id:"bindingPattern","onUpdate:modelValue":E[4]||(E[4]=T=>o.value=T),type:"text",class:Re(["form-input",{error:!!d.value}]),placeholder:"Enter binding pattern (e.g., user.*.created)",disabled:e.isLoading,"aria-invalid":!!d.value,"aria-describedby":"bindingPattern-hint bindingPattern-error",inputmode:"text",autocomplete:"off",autocapitalize:"off",autocorrect:"off",spellcheck:"false",maxlength:"255",onBlur:x,onInput:E[5]||(E[5]=T=>d.value="")},null,42,_4),[[rn,o.value]]),d.value?(N(),D("div",E4,L(d.value),1)):fe("",!0),E[12]||(E[12]=a("div",{id:"bindingPattern-hint",class:"field-hint"}," Use * to match one word, # to match zero or more words (e.g., user.*.created, logs.#) ",-1))])):fe("",!0)],32)])]),footer:je(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:F}," Cancel ",8,w4),a("button",{type:"submit",class:"btn btn-primary",disabled:!_.value||e.isLoading,onClick:$},[e.isLoading?(N(),D("span",A4)):(N(),D("i",S4)),X(" "+L(e.isLoading?"Binding...":"Bind Queue"),1)],8,C4)]),_:1},8,["is-visible","title","subtitle"]))}}),Fc=tt(x4,[["__scopeId","data-v-15924699"]]),$4={class:"unbind-queue-content"},T4={key:0,class:"error-alert",role:"alert"},O4={class:"confirmation-section"},N4={class:"confirmation-content"},k4={class:"confirmation-message"},P4={class:"warning-message"},D4={class:"binding-details"},R4={class:"detail-item"},M4={class:"detail-value queue-name"},I4={class:"detail-item"},q4={class:"detail-value exchange-type"},L4={key:0,class:"detail-item"},F4={class:"detail-label"},V4={class:"detail-value binding-key"},Q4=["disabled"],j4=["disabled"],B4={key:0,class:"loading-spinner","aria-hidden":"true"},U4={key:1,class:"bi bi-unlink","aria-hidden":"true"},K4=Ge({__name:"UnbindQueueModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean,default:!1},error:{default:null},queueName:{},routingKey:{default:""},bindingPattern:{default:""},exchangeType:{}},emits:["confirm","cancel"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>`Unbind Queue from ${s.exchangeType.charAt(0).toUpperCase()+s.exchangeType.slice(1)} Exchange`),r=v(()=>`${s.queueName}`),o=v(()=>{switch(s.exchangeType){case"direct":return s.routingKey;case"topic":return s.bindingPattern;case"fanout":return null;default:return null}}),l=v(()=>{switch(s.exchangeType){case"direct":return"Routing Key";case"topic":return"Binding Pattern";default:return null}}),u=v(()=>{const p=`Are you sure you want to unbind the queue "${s.queueName}"`;return o.value?`${p} with ${l.value?.toLowerCase()} "${o.value}"?`:`${p}?`}),d=v(()=>{switch(s.exchangeType){case"direct":return"Messages with this routing key will no longer be delivered to this queue.";case"fanout":return"This queue will no longer receive messages published to this exchange.";case"topic":return"Messages matching this binding pattern will no longer be delivered to this queue.";default:return"This queue will no longer receive messages from this exchange."}}),c=()=>{s.isLoading||n("confirm")},h=()=>{s.isLoading||n("cancel")};return(p,m)=>(N(),ct(Hs,{"is-visible":e.isVisible,title:i.value,subtitle:r.value,icon:"bi bi-unlink",size:"sm",onClose:h},{body:je(()=>[a("div",$4,[e.error?(N(),D("div",T4,[m[0]||(m[0]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",null,L(e.error),1)])):fe("",!0),a("div",O4,[m[1]||(m[1]=a("div",{class:"confirmation-icon"},[a("i",{class:"bi bi-question-circle-fill","aria-hidden":"true"})],-1)),a("div",N4,[a("p",k4,L(u.value),1),a("p",P4,L(d.value),1)])]),a("div",D4,[a("div",R4,[m[2]||(m[2]=a("span",{class:"detail-label"},"Queue:",-1)),a("span",M4,L(e.queueName),1)]),a("div",I4,[m[3]||(m[3]=a("span",{class:"detail-label"},"Exchange Type:",-1)),a("span",q4,L(e.exchangeType),1)]),o.value&&l.value?(N(),D("div",L4,[a("span",F4,L(l.value)+":",1),a("span",V4,L(o.value),1)])):fe("",!0)])])]),footer:je(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:h}," Cancel ",8,Q4),a("button",{type:"button",class:"btn btn-danger",disabled:e.isLoading,onClick:c},[e.isLoading?(N(),D("span",B4)):(N(),D("i",U4)),X(" "+L(e.isLoading?"Unbinding...":"Unbind Queue"),1)],8,j4)]),_:1},8,["is-visible","title","subtitle"]))}}),Vc=tt(K4,[["__scopeId","data-v-1556a4bd"]]),H4={class:"exchange-content"},G4={key:0,class:"stats-overview"},W4={class:"stats-grid",role:"group","aria-label":"Exchange stats"},z4={class:"stat-card"},Y4={class:"stat-content"},Z4={class:"stat-value"},J4={class:"stat-label"},X4={class:"stat-card"},e3={class:"stat-content"},t3={class:"stat-value"},s3={class:"stat-label"},n3={key:1,class:"bindings-section","aria-labelledby":"bindings-title"},i3={class:"bindings-list"},r3={class:"binding-header"},a3={class:"routing-key-info"},o3={class:"routing-key-badge",title:"Routing key"},l3={class:"routing-key-text"},u3={class:"queue-count"},c3={key:0,class:"queues-list"},d3={class:"queue-info"},f3={class:"queue-name"},h3=["disabled","aria-label","onClick"],m3={key:1,class:"no-queues"},p3=20,g3=Ge({__name:"ExchangeDirectView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!r.value&&!!o.value),u=_e(!1),d=_e(!1),c=_e(!1),h=_e(null),{data:p,isLoading:m,error:g,refetch:w}=zg(o,r,{query:{enabled:l}}),_=v(()=>p.value?.data||[]),S=Array.from({length:p3},(Te,G)=>{const P=v(()=>_.value[G]||""),Q=v(()=>l.value&&G<_.value.length&&!!_.value[G]);return Yg(o,r,v(()=>({routingKey:P.value})),{query:{enabled:Q}})}),A=Tc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cu(o.value,r.value)}),_.value.forEach(Te=>{i.invalidateQueries({queryKey:Au(o.value,r.value,{routingKey:Te})})}),d.value=!1},onError:Te=>{console.error("Failed to bind queue:",Te)}}}),x=hx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cu(o.value,r.value)}),_.value.forEach(Te=>{i.invalidateQueries({queryKey:Au(o.value,r.value,{routingKey:Te})})}),c.value=!1,h.value=null},onError:Te=>{console.error("Failed to unbind queue:",Te)}}}),y=$c({mutation:{onSuccess:()=>{s.push("/exchanges")},onError:Te=>{console.error("Failed to delete exchange:",Te)}}}),$=v(()=>m.value||S.some((Te,G)=>G<_.value.length&&Te.isLoading.value)),F=v(()=>!!g.value||S.some((Te,G)=>G<_.value.length&&!!Te.error.value)),j=v(()=>{if(g.value)return at(g.value);const Te=S.find((G,P)=>P<_.value.length&&G.error.value)?.error.value;return Te?at(Te):null}),q=v(()=>{const Te=[];return _.value.forEach((G,P)=>{if(P>=S.length)return;const te=S[P].data?.value?.data||[];Te.push({routingKey:G,queues:te.map(ve=>({name:ve.name})),totalQueues:te.length})}),Te}),E=v(()=>q.value.reduce((Te,G)=>Te+G.totalQueues,0)),T=v(()=>_.value.length),C=v(()=>A.isPending.value),B=v(()=>x.isPending.value),Z=v(()=>y.isPending.value),z=v(()=>at(A.error.value?.error)),ie=v(()=>at(x.error.value?.error)),W=v(()=>at(y.error.value?.error)),V=()=>{d.value=!0},ne=(Te,G)=>{h.value={name:Te,routingKey:G},c.value=!0},de=()=>{u.value=!0},ke=()=>{w(),S.forEach((Te,G)=>{G<_.value.length&&Te.refetch()})},qe=async Te=>{await A.mutateAsync({ns:o.value,direct:r.value,queue:Te.queueName,params:{routingKey:String(Te.routingKey)}})},ce=async()=>{h.value&&await x.mutateAsync({ns:o.value,direct:r.value,queue:h.value.name,params:{routingKey:h.value.routingKey}})},he=async()=>{await y.mutateAsync({ns:o.value,direct:r.value})},$e=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:C.value,loading:C.value,handler:V,tooltip:"Bind a queue to this exchange with a routing key"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:$.value,loading:$.value,handler:ke,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:Z.value,loading:Z.value,handler:de,tooltip:"Delete this exchange and all its bindings"}]);return At(()=>{if(!l.value){n.setPageHeader({title:"Invalid Exchange",subtitle:"Exchange name and namespace are required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Direct Exchange: ${r.value}`,subtitle:`Namespace: ${o.value} • Routes messages based on exact routing key matches`,icon:"bi bi-arrow-right"}),n.setPageActions($e.value),n.setLoadingState($.value),F.value?(n.setErrorState(j.value),n.setEmptyState(!1)):!$.value&&T.value===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-arrow-right",title:"No Queue Bindings",message:"This direct exchange has no queue bindings. Bind a queue with a routing key to start routing messages.",actionLabel:"Bind Queue",actionHandler:V})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(Te,G)=>(N(),D("div",H4,[we(ps,null,{default:je(()=>[!$.value&&!F.value&&T.value>0?(N(),D("div",G4,[a("div",W4,[a("div",z4,[G[3]||(G[3]=a("div",{class:"stat-icon routing-keys","aria-hidden":"true"},[a("i",{class:"bi bi-key"})],-1)),a("div",Y4,[a("div",Z4,L(T.value),1),a("div",J4," Routing "+L(T.value===1?"Key":"Keys"),1)])]),a("div",X4,[G[4]||(G[4]=a("div",{class:"stat-icon queues","aria-hidden":"true"},[a("i",{class:"bi bi-box"})],-1)),a("div",e3,[a("div",t3,L(E.value),1),a("div",s3," Bound "+L(E.value===1?"Queue":"Queues"),1)])])])])):fe("",!0),!$.value&&!F.value&&q.value.length>0?(N(),D("section",n3,[G[9]||(G[9]=a("h2",{id:"bindings-title",class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),X(" Queue Bindings ")],-1)),a("div",i3,[(N(!0),D(Ae,null,bt(q.value,P=>(N(),D("article",{key:P.routingKey,class:"binding-card"},[a("header",r3,[a("div",a3,[a("div",o3,[G[5]||(G[5]=a("i",{class:"bi bi-key","aria-hidden":"true"},null,-1)),a("span",l3,L(P.routingKey),1)]),a("div",u3,L(P.totalQueues)+" "+L(P.totalQueues===1?"queue":"queues"),1)])]),P.queues.length>0?(N(),D("div",c3,[(N(!0),D(Ae,null,bt(P.queues,Q=>(N(),D("div",{key:`${P.routingKey}-${Q.name}`,class:"queue-item"},[a("div",d3,[G[6]||(G[6]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",f3,L(Q.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:B.value,"aria-label":`Unbind queue ${Q.name} from routing key ${P.routingKey}`,onClick:te=>ne(Q.name,P.routingKey)},[...G[7]||(G[7]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,h3)]))),128))])):(N(),D("div",m3,[...G[8]||(G[8]=[a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1),a("span",null,"No queues bound to this routing key",-1)])]))]))),128))])])):fe("",!0)]),_:1}),we(hi,{"is-visible":u.value,"is-loading":Z.value,error:W.value,title:"Delete Direct Exchange",message:`Are you sure you want to delete the direct exchange '${r.value}'? This will remove all queue bindings and cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:he,onClose:G[0]||(G[0]=P=>u.value=!1)},null,8,["is-visible","is-loading","error","message"]),we(Fc,{"is-visible":d.value,"is-loading":C.value,error:z.value,"exchange-type":"direct","exchange-name":r.value,namespace:o.value,onConfirm:qe,onCancel:G[1]||(G[1]=P=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),we(Vc,{"is-visible":c.value,"is-loading":B.value,error:ie.value,"queue-name":h.value?.name||"","routing-key":h.value?.routingKey||"","exchange-type":"direct",onConfirm:ce,onCancel:G[2]||(G[2]=P=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","routing-key"])]))}}),v3=tt(g3,[["__scopeId","data-v-6421f922"]]),b3={class:"topic-exchange-view"},y3={key:0,class:"stats-overview"},_3={class:"stats-grid"},E3={class:"stat-card"},w3={class:"stat-content"},C3={class:"stat-value"},A3={class:"stat-label"},S3={class:"stat-card"},x3={class:"stat-content"},$3={class:"stat-value"},T3={class:"stat-label"},O3={key:1,class:"bindings-section"},N3={class:"bindings-list"},k3={class:"binding-header"},P3={class:"binding-pattern-info"},D3={class:"binding-pattern-badge",title:"Binding pattern"},R3={class:"binding-pattern-text"},M3={class:"queue-count"},I3={class:"pattern-explanation"},q3={class:"explanation-text"},L3={key:0,class:"queues-list"},F3={class:"queue-info"},V3={class:"queue-name"},Q3=["disabled","aria-label","onClick"],j3={key:1,class:"no-queues"},B3=20,U3=Ge({__name:"ExchangeTopicView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!(r.value&&o.value)),u=_e(!1),d=_e(!1),c=_e(!1),h=_e(null),p=G=>{let P=G.replace(/\*/g,"word").replace(/#/g,"any.nested.keys");return!G.includes("*")&&!G.includes("#")?G:P},{data:m,isLoading:g,error:w,refetch:_}=Zg(o,r,{query:{enabled:l}}),S=v(()=>m.value?.data||[]),A=Array.from({length:B3},(G,P)=>{const Q=v(()=>S.value[P]||""),te=v(()=>l.value&&P<S.value.length&&!!S.value[P]);return Jg(o,r,v(()=>({bindingPattern:Q.value})),{query:{enabled:te}})}),x=Nc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Su(o.value,r.value)}),S.value.forEach(G=>{i.invalidateQueries({queryKey:xu(o.value,r.value,{bindingPattern:G})})}),d.value=!1},onError:G=>{console.error("Failed to bind queue:",G)}}}),y=Ax({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Su(o.value,r.value)}),S.value.forEach(G=>{i.invalidateQueries({queryKey:xu(o.value,r.value,{bindingPattern:G})})}),c.value=!1,h.value=null},onError:G=>{console.error("Failed to unbind queue:",G)}}}),$=Oc({mutation:{onSuccess:()=>{s.push("/exchanges")},onError:G=>{console.error("Failed to delete exchange:",G)}}}),F=v(()=>g.value||A.some((G,P)=>P<S.value.length&&G.isLoading.value)),j=v(()=>!!w.value||A.some((G,P)=>P<S.value.length&&!!G.error.value)),q=v(()=>{if(w.value)return at(w.value);const G=A.find((P,Q)=>Q<S.value.length&&P.error.value)?.error.value;return G?at(G):null}),E=v(()=>{const G=[];return S.value.forEach((P,Q)=>{if(Q>=A.length)return;const ve=A[Q].data?.value?.data||[];G.push({bindingPattern:P,queues:ve.map(J=>({name:J.name})),totalQueues:ve.length})}),G}),T=v(()=>E.value.reduce((G,P)=>G+P.totalQueues,0)),C=v(()=>S.value.length),B=v(()=>x.isPending.value),Z=v(()=>y.isPending.value),z=v(()=>$.isPending.value),ie=v(()=>at(x.error.value?.error)),W=v(()=>at(y.error.value?.error)),V=v(()=>at($.error.value?.error)),ne=()=>{d.value=!0},de=(G,P)=>{h.value={name:G,bindingPattern:P},c.value=!0},ke=()=>{u.value=!0},qe=()=>{_(),A.forEach((G,P)=>{P<S.value.length&&G.refetch()})},ce=async G=>{await x.mutateAsync({ns:o.value,topic:r.value,queue:G.queueName,params:{bindingPattern:String(G.bindingPattern)}})},he=async()=>{h.value&&await y.mutateAsync({ns:o.value,topic:r.value,queue:h.value.name,params:{bindingPattern:h.value.bindingPattern}})},$e=async()=>{await $.mutateAsync({ns:o.value,topic:r.value})},Te=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:B.value,loading:B.value,handler:ne,tooltip:"Bind a queue to this exchange with a binding pattern"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:F.value,loading:F.value,handler:qe,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:z.value,loading:z.value,handler:ke,tooltip:"Delete this exchange and all its bindings"}]);return At(()=>{if(!l.value){n.setPageHeader({title:"Invalid Exchange",subtitle:"Exchange name and namespace are required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Topic Exchange: ${r.value}`,subtitle:`Namespace: ${o.value} • Routes messages based on routing key patterns`,icon:"bi bi-hash"}),n.setPageActions(Te.value),n.setLoadingState(F.value),j.value?(n.setErrorState(q.value),n.setEmptyState(!1)):!F.value&&C.value===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-hash",title:"No Queue Bindings",message:"This topic exchange has no queue bindings. Bind a queue with a binding pattern to start routing messages.",actionLabel:"Bind Queue",actionHandler:ne})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(G,P)=>(N(),D("div",b3,[we(ps,null,{default:je(()=>[!F.value&&!j.value&&C.value>0?(N(),D("div",y3,[a("div",_3,[a("div",E3,[P[3]||(P[3]=a("div",{class:"stat-icon binding-patterns"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",w3,[a("div",C3,L(C.value),1),a("div",A3," Binding "+L(C.value===1?"Pattern":"Patterns"),1)])]),a("div",S3,[P[4]||(P[4]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",x3,[a("div",$3,L(T.value),1),a("div",T3," Bound "+L(T.value===1?"Queue":"Queues"),1)])])])])):fe("",!0),!F.value&&!j.value&&E.value.length>0?(N(),D("div",O3,[P[10]||(P[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),X(" Queue Bindings ")],-1)),a("div",N3,[(N(!0),D(Ae,null,bt(E.value,Q=>(N(),D("div",{key:Q.bindingPattern,class:"binding-card"},[a("div",k3,[a("div",P3,[a("div",D3,[P[5]||(P[5]=a("i",{class:"bi bi-hash","aria-hidden":"true"},null,-1)),a("span",R3,L(Q.bindingPattern),1)]),a("div",M3,L(Q.totalQueues)+" "+L(Q.totalQueues===1?"queue":"queues"),1)]),a("div",I3,[P[6]||(P[6]=a("i",{class:"bi bi-info-circle","aria-hidden":"true"},null,-1)),a("span",q3," Matches routing keys like: "+L(p(Q.bindingPattern)),1)])]),Q.queues.length>0?(N(),D("div",L3,[(N(!0),D(Ae,null,bt(Q.queues,te=>(N(),D("div",{key:`${Q.bindingPattern}-${te.name}`,class:"queue-item"},[a("div",F3,[P[7]||(P[7]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",V3,L(te.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:Z.value,"aria-label":`Unbind queue ${te.name} from binding pattern ${Q.bindingPattern}`,onClick:ve=>de(te.name,Q.bindingPattern)},[...P[8]||(P[8]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,Q3)]))),128))])):(N(),D("div",j3,[...P[9]||(P[9]=[a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1),a("span",null,"No queues bound to this pattern",-1)])]))]))),128))])])):fe("",!0)]),_:1}),we(hi,{"is-visible":u.value,"is-loading":z.value,error:V.value,title:"Delete Topic Exchange",message:`Are you sure you want to delete the topic exchange '${r.value}'? This will remove all queue bindings and cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:$e,onClose:P[0]||(P[0]=Q=>u.value=!1)},null,8,["is-visible","is-loading","error","message"]),we(Fc,{"is-visible":d.value,"is-loading":B.value,error:ie.value,"exchange-type":"topic","exchange-name":r.value,namespace:o.value,onConfirm:ce,onCancel:P[1]||(P[1]=Q=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),we(Vc,{"is-visible":c.value,"is-loading":Z.value,error:W.value,"queue-name":h.value?.name||"","binding-pattern":h.value?.bindingPattern||"","exchange-type":"topic",onConfirm:he,onCancel:P[2]||(P[2]=Q=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","binding-pattern"])]))}}),K3=tt(U3,[["__scopeId","data-v-641beee2"]]),H3={class:"fanout-exchange-view"},G3={key:0,class:"stats-overview"},W3={class:"stats-grid"},z3={class:"stat-card"},Y3={class:"stat-content"},Z3={class:"stat-value"},J3={class:"stat-label"},X3={key:1,class:"exchange-info"},ej={class:"info-card"},tj={class:"info-description"},sj={key:2,class:"queues-section"},nj={class:"queues-grid"},ij={class:"queue-header"},rj={class:"queue-info"},aj={class:"queue-name"},oj=["disabled","aria-label","onClick"],lj=Ge({__name:"ExchangeFanoutView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!(r.value&&o.value)),u=_e(!1),d=_e(!1),c=_e(!1),h=_e(null),{data:p,isLoading:m,error:g,refetch:w}=Wg(o,r,{query:{enabled:l}}),_=xc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:wu(o.value,r.value)}),d.value=!1},onError:ce=>{console.error("Failed to bind queue:",ce)}}}),S=sx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:wu(o.value,r.value)}),c.value=!1,h.value=null},onError:ce=>{console.error("Failed to unbind queue:",ce)}}}),A=Sc({mutation:{onSuccess:()=>{s.push("/exchanges")},onError:ce=>{console.error("Failed to delete exchange:",ce)}}}),x=v(()=>m.value),y=v(()=>!!g.value),$=v(()=>at(g.value)),F=v(()=>(p.value?.data||[]).map(he=>({name:he.name}))),j=v(()=>F.value.length),q=v(()=>_.isPending.value),E=v(()=>S.isPending.value),T=v(()=>A.isPending.value),C=v(()=>at(_.error.value?.error)),B=v(()=>at(S.error.value?.error)),Z=v(()=>at(A.error.value?.error)),z=()=>{d.value=!0},ie=ce=>{h.value=ce,c.value=!0},W=()=>{u.value=!0},V=()=>{w()},ne=async ce=>{await _.mutateAsync({ns:o.value,fanout:r.value,queue:ce.queueName})},de=async()=>{h.value&&await S.mutateAsync({ns:o.value,fanout:r.value,queue:h.value})},ke=async()=>{await A.mutateAsync({ns:o.value,fanout:r.value})},qe=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:q.value,loading:q.value,handler:z,tooltip:"Bind a queue to this fanout exchange"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:x.value,loading:x.value,handler:V,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:T.value,loading:T.value,handler:W,tooltip:"Delete this exchange and all its bindings"}]);return At(()=>{if(!l.value){n.setPageHeader({title:"Invalid Exchange",subtitle:"Exchange name and namespace are required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Fanout Exchange: ${r.value}`,subtitle:`Namespace: ${o.value} • Broadcasts messages to all bound queues`,icon:"bi bi-arrows-angle-expand"}),n.setPageActions(qe.value),n.setLoadingState(x.value),y.value?(n.setErrorState($.value),n.setEmptyState(!1)):!x.value&&j.value===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-arrows-angle-expand",title:"No Queue Bindings",message:"This fanout exchange has no queue bindings. Bind a queue to start broadcasting messages.",actionLabel:"Bind Queue",actionHandler:z})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(ce,he)=>(N(),D("div",H3,[we(ps,null,{default:je(()=>[!x.value&&!y.value&&j.value>0?(N(),D("div",G3,[a("div",W3,[a("div",z3,[he[3]||(he[3]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",Y3,[a("div",Z3,L(j.value),1),a("div",J3," Bound "+L(j.value===1?"Queue":"Queues"),1)])]),he[4]||(he[4]=a("div",{class:"stat-card"},[a("div",{class:"stat-icon broadcast"},[a("i",{class:"bi bi-broadcast","aria-hidden":"true"})]),a("div",{class:"stat-content"},[a("div",{class:"stat-value"},"100%"),a("div",{class:"stat-label"},"Message Delivery")])],-1))])])):fe("",!0),!x.value&&!y.value&&j.value>0?(N(),D("div",X3,[a("div",ej,[he[7]||(he[7]=a("div",{class:"info-header"},[a("i",{class:"bi bi-info-circle","aria-hidden":"true"}),a("h3",null,"How Fanout Exchange Works")],-1)),a("p",tj,[he[5]||(he[5]=X(" Fanout exchanges broadcast every message to all bound queues. When you publish a message to this exchange, it will be delivered to ",-1)),a("strong",null,"all "+L(j.value)+" bound queue"+L(j.value===1?"":"s"),1),he[6]||(he[6]=X(" regardless of routing keys. ",-1))])])])):fe("",!0),!x.value&&!y.value&&F.value.length>0?(N(),D("div",sj,[he[11]||(he[11]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-box","aria-hidden":"true"}),X(" Bound Queues ")],-1)),a("div",nj,[(N(!0),D(Ae,null,bt(F.value,$e=>(N(),D("div",{key:$e.name,class:"queue-card"},[a("div",ij,[a("div",rj,[he[8]||(he[8]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",aj,L($e.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:E.value,"aria-label":`Unbind queue ${$e.name}`,onClick:Te=>ie($e.name)},[...he[9]||(he[9]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,oj)]),he[10]||(he[10]=a("div",{class:"queue-status"},[a("div",{class:"status-indicator active"},[a("i",{class:"bi bi-check-circle-fill","aria-hidden":"true"}),a("span",null,"Receiving all messages")])],-1))]))),128))])])):fe("",!0)]),_:1}),we(hi,{"is-visible":u.value,"is-loading":T.value,error:Z.value,title:"Delete Fanout Exchange",message:`Are you sure you want to delete the fanout exchange '${r.value}'? This will remove all queue bindings and cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:ke,onClose:he[0]||(he[0]=$e=>u.value=!1)},null,8,["is-visible","is-loading","error","message"]),we(Fc,{"is-visible":d.value,"is-loading":q.value,error:C.value,"exchange-type":"fanout","exchange-name":r.value,namespace:o.value,onConfirm:ne,onCancel:he[1]||(he[1]=$e=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),we(Vc,{"is-visible":c.value,"is-loading":E.value,error:B.value,"queue-name":h.value||"","exchange-type":"fanout",onConfirm:de,onCancel:he[2]||(he[2]=$e=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name"])]))}}),uj=tt(lj,[["__scopeId","data-v-f6e38b63"]]),cj={key:0,class:"namespace-stats"},dj={class:"stats-grid"},fj={class:"stat-card total"},hj={class:"stat-content"},mj={class:"stat-value"},pj={class:"stat-card direct"},gj={class:"stat-content"},vj={class:"stat-value"},bj={class:"stat-card fanout"},yj={class:"stat-content"},_j={class:"stat-value"},Ej={class:"stat-card topic"},wj={class:"stat-content"},Cj={class:"stat-value"},Aj={key:1,class:"namespace-info"},Sj={class:"info-card"},xj={class:"info-header"},$j={class:"info-description"},Tj={key:2,class:"grid grid-cols-2 gap-6"},Oj=Ge({__name:"NamespaceExchangesView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.ns)),o=v(()=>!!r.value),l=_e(!1),u=_e(!1),d=_e(null),{data:c,isLoading:h,isError:p,error:m,refetch:g}=LR(r,{query:{enabled:o}}),w=Sc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Wn(r)}),l.value=!1,d.value=null},onError:ce=>{console.error("Failed to delete fanout exchange:",ce)}}}),_=$c({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Wn(r)}),l.value=!1,d.value=null},onError:ce=>{console.error("Failed to delete direct exchange:",ce)}}}),S=Oc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Wn(r)}),l.value=!1,d.value=null},onError:ce=>{console.error("Failed to delete topic exchange:",ce)}}}),A=xc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Wn(r)}),u.value=!1},onError:ce=>{console.error("Failed to create fanout exchange:",ce)}}}),x=Tc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Wn(r)}),u.value=!1},onError:ce=>{console.error("Failed to create direct exchange:",ce)}}}),y=Nc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Wn(r)}),u.value=!1},onError:ce=>{console.error("Failed to create topic exchange:",ce)}}}),$=v(()=>w.isPending.value||_.isPending.value||S.isPending.value),F=v(()=>A.isPending.value||x.isPending.value||y.isPending.value),j=v(()=>at(A.error.value?.error||x.error.value?.error||y.error.value?.error)),q=v(()=>c.value?.data??[]),E=v(()=>r.value?q.value.filter(ce=>ce.ns===r.value):[]),T=v(()=>at(m.value)),C=v(()=>{const ce={total:E.value.length,direct:0,fanout:0,topic:0};return E.value.forEach(he=>{switch(he.type){case Ie.DIRECT:ce.direct++;break;case Ie.FANOUT:ce.fanout++;break;case Ie.TOPIC:ce.topic++;break}}),ce}),B=ce=>{d.value=ce,l.value=!0},Z=()=>{u.value=!0},z=ce=>{console.log("Binding queue to:",ce.name)},ie=ce=>{console.log("Unbinding queue from:",ce.exchange.name,"queue:",ce.queueName)},W=ce=>{console.log("Publishing message to:",ce.name)},V=async()=>{if(!d.value)return;const{type:ce,name:he,ns:$e}=d.value;try{switch(ce){case Ie.FANOUT:await w.mutateAsync({ns:$e,fanout:he});break;case Ie.DIRECT:await _.mutateAsync({ns:$e,direct:he});break;case Ie.TOPIC:await S.mutateAsync({ns:$e,topic:he});break;default:throw new Error(`Unsupported exchange type: ${ce}`)}}catch(Te){console.error("Failed to delete exchange:",Te)}},ne=async ce=>{const{name:he,type:$e,ns:Te,queueName:G,routingKey:P,bindingPattern:Q}=ce;try{switch($e){case Ie.FANOUT:await A.mutateAsync({ns:Te,fanout:he,queue:G});break;case Ie.DIRECT:await x.mutateAsync({ns:Te,direct:he,queue:G,params:{routingKey:String(P)}});break;case Ie.TOPIC:await y.mutateAsync({ns:Te,topic:he,queue:G,params:{bindingPattern:String(Q)}});break;default:throw new Error(`Unsupported exchange type: ${$e}`)}}catch(te){console.error("Failed to create exchange:",te)}},de=ce=>{const he={exchange:ce.name,ns:ce.ns};return ce.type==Ie.DIRECT?{name:"Direct Exchange",params:he}:ce.type==Ie.TOPIC?{name:"Topic Exchange",params:he}:{name:"Fanout Exchange",params:he}},ke=ce=>{const he=de(ce);s.push(he)},qe=v(()=>[{id:"create-exchange",label:"Create Exchange",icon:"bi bi-plus-lg",variant:"primary",disabled:F.value,loading:F.value,handler:Z,tooltip:"Create a new exchange by binding a queue to it"},{id:"refresh-exchanges",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:h.value,loading:h.value,handler:()=>g(),tooltip:"Refresh exchanges list"}]);return At(()=>{if(!o.value){n.setPageHeader({title:"Invalid Namespace",subtitle:"Namespace parameter is required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Exchanges in "${r.value}"`,subtitle:`View and manage exchanges in the ${r.value} namespace`,icon:"bi bi-diagram-3"}),n.setPageActions(qe.value),n.setLoadingState(h.value),p.value?(n.setErrorState(T.value),n.setEmptyState(!1)):!h.value&&E.value.length===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-diagram-3",title:"No Exchanges Found",message:`No exchanges are currently configured in the "${r.value}" namespace. Create your first exchange to start routing messages.`,actionLabel:"Create Exchange",actionHandler:Z})):(n.setErrorState(null),n.setEmptyState(!1))}),(ce,he)=>(N(),D("div",null,[we(ps,null,{default:je(()=>[!O(h)&&!O(p)&&E.value.length>0?(N(),D("div",cj,[a("div",dj,[a("div",fj,[he[3]||(he[3]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"})],-1)),a("div",hj,[a("div",mj,L(C.value.total),1),he[2]||(he[2]=a("div",{class:"stat-label"},"Total Exchanges",-1))])]),a("div",pj,[he[5]||(he[5]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrow-right","aria-hidden":"true"})],-1)),a("div",gj,[a("div",vj,L(C.value.direct),1),he[4]||(he[4]=a("div",{class:"stat-label"},"Direct",-1))])]),a("div",bj,[he[7]||(he[7]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrows-angle-expand","aria-hidden":"true"})],-1)),a("div",yj,[a("div",_j,L(C.value.fanout),1),he[6]||(he[6]=a("div",{class:"stat-label"},"Fanout",-1))])]),a("div",Ej,[he[9]||(he[9]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",wj,[a("div",Cj,L(C.value.topic),1),he[8]||(he[8]=a("div",{class:"stat-label"},"Topic",-1))])])])])):fe("",!0),!O(h)&&!O(p)&&E.value.length>0?(N(),D("div",Aj,[a("div",Sj,[a("div",xj,[he[10]||(he[10]=a("i",{class:"bi bi-folder-fill","aria-hidden":"true"},null,-1)),a("h3",null,"Namespace: "+L(r.value),1)]),a("p",$j," This namespace contains "+L(C.value.total)+" exchange"+L(C.value.total===1?"":"s")+". Exchanges in this namespace are isolated from other namespaces and can be managed independently. ",1)])])):fe("",!0),E.value.length>0?(N(),D("div",Tj,[(N(!0),D(Ae,null,bt(E.value,$e=>(N(),ct(sv,{key:`${$e.name}-${$e.ns}`,exchange:$e,"is-deleting":$.value&&d.value?.name===$e.name&&d.value?.ns===$e.ns,onDelete:B,onViewDetails:ke,onBindQueue:z,onUnbindQueue:ie,onPublishMessage:W},null,8,["exchange","is-deleting"]))),128))])):fe("",!0)]),_:1}),we(hi,{"is-visible":l.value,"is-loading":$.value,title:"Delete Exchange",message:`Are you sure you want to delete the exchange '${d.value?.name}'? This action cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:V,onClose:he[0]||(he[0]=$e=>{l.value=!1,d.value=null})},null,8,["is-visible","is-loading","message"]),we(ev,{"is-visible":u.value,"is-loading":F.value,error:j.value,onConfirm:ne,onCancel:he[1]||(he[1]=$e=>u.value=!1)},null,8,["is-visible","is-loading","error"])]))}}),Nj=tt(Oj,[["__scopeId","data-v-0bac120d"]]),kj=[{path:"/ns",name:"Namespaces",component:Iv,meta:{title:"NamespacesView",breadcrumb:"NamespacesView"}},{path:"/ns/:ns/queues",name:"Namespace Queues",component:_q,meta:{title:"Namespace Queues",breadcrumb:"Namespace Queues"}},{path:"/ns/:ns/queues/:queue",name:"Queue",component:s4,meta:{title:"Queue Details",breadcrumb:"Queue Details"}},{path:"/ns/:ns/queues/:queue/pending-messages",name:"Pending Messages",component:BL,meta:{title:"Queue Pending Messages"}},{path:"/ns/:ns/queues/:queue/acknowledged-messages",name:"Acknowledged Messages",component:hR,meta:{title:"Queue Acknowledged Messages"}},{path:"/ns/:ns/queues/:queue/dead-lettered-messages",name:"Dead-Lettered Messages",component:AR,meta:{title:"Queue Dead-Lettered Messages"}},{path:"/ns/:ns/queues/:queue/scheduled-messages",name:"Scheduled Messages",component:r4,meta:{title:"Queue Scheduled Messages"}},{path:"/ns/:ns/queues/:queue/messages",name:"Messages",component:l4,meta:{title:"Queue Messages"}},{path:"/ns/:ns/exchanges",name:"Namespace Exchanges",component:Nj,meta:{title:"Namespace Exchanges",breadcrumb:"Namespace Exchanges"}},{path:"/ns/:ns/exchanges/direct/:exchange",name:"Direct Exchange",component:v3,meta:{title:"Direct Exchange Details",breadcrumb:"Direct Exchange Details"}},{path:"/ns/:ns/exchanges/topic/:exchange",name:"Topic Exchange",component:K3,meta:{title:"Topic Exchange Details",breadcrumb:"Topic Exchange Details"}},{path:"/ns/:ns/exchanges/fanout/:exchange",name:"Fanout Exchange",component:uj,meta:{title:"Fanout Exchange Details",breadcrumb:"Fanout Exchange Details"}}],Iu=[...Ba,...kj],Pj={key:0,"aria-label":"breadcrumb",class:"breadcrumb-navigation"},Dj={class:"breadcrumb-container"},Rj={class:"breadcrumb-content"},Mj={class:"breadcrumb-list"},Ij=["aria-current"],qj={key:0,class:"breadcrumb-separator"},Lj=["title","onClick"],Fj={class:"breadcrumb-text"},Vj=["title"],Qj={class:"breadcrumb-text"},jj=Ge({__name:"BreadcrumbsPanel",setup(e){const t=ms(),s=os(),n=v(()=>{try{const h=[],p=t.path,m=t.params,g=i(p,m);return g.forEach((w,_)=>{const S=u(w.pattern);if(!S)return;const A=_===g.length-1,x=d(S);x&&h.push({title:x,to:A?void 0:w.actualPath,active:A})}),h}catch(h){return console.warn("Error building breadcrumbs:",h),[]}});function i(h,p){const m=[],g=h.split("/").filter(_=>_);let w="";h!=="/"&&u("/")&&m.push({pattern:"/",actualPath:"/"});for(let _=0;_<g.length;_++){w+="/"+g[_];const S=r(w,p);S&&m.push({pattern:S,actualPath:w})}return m}function r(h,p){const m=[...Iu].sort((g,w)=>{const _=o(g.path);return o(w.path)-_});for(const g of m)if(l(h,g.path,p))return g.path;return null}function o(h){const p=h.split("/").filter(g=>g);let m=p.length*10;for(const g of p)g.startsWith(":")&&(m-=5);return m}function l(h,p,m){const g=h.split("/").filter(_=>_),w=p.split("/").filter(_=>_);if(g.length!==w.length)return!1;for(let _=0;_<w.length;_++){const S=w[_],A=g[_];if(S.startsWith(":")){const x=S.substring(1);if(m[x]!==A)return!1}else if(S!==A)return!1}return!0}function u(h){return Iu.find(p=>p.path===h)}function d(h){return String(h.meta?.title||h.name)}function c(h){try{s.push(h)}catch(p){console.error("Navigation error:",p)}}return(h,p)=>n.value.length>0?(N(),D("nav",Pj,[a("div",Dj,[a("div",Rj,[p[1]||(p[1]=a("div",{class:"breadcrumb-home","aria-hidden":"true"},[a("i",{class:"bi bi-house-fill"}),a("span",{class:"sr-only"},"Home")],-1)),a("ol",Mj,[(N(!0),D(Ae,null,bt(n.value,(m,g)=>(N(),D("li",{key:`${m.title}-${g}`,class:Re(["breadcrumb-item",{"breadcrumb-item-active":m.active,"breadcrumb-item-clickable":!m.active&&m.to}]),"aria-current":m.active?"page":void 0},[g>0?(N(),D("div",qj,[...p[0]||(p[0]=[a("i",{class:"bi bi-chevron-right"},null,-1)])])):fe("",!0),!m.active&&m.to?(N(),D("button",{key:1,type:"button",class:"breadcrumb-link",title:`Navigate to ${m.title}`,onClick:w=>c(m.to)},[a("span",Fj,L(m.title),1)],8,Lj)):(N(),D("div",{key:2,class:"breadcrumb-current",title:m.title},[a("span",Qj,L(m.title),1)],8,Vj))],10,Ij))),128))])])])])):fe("",!0)}}),Bj=tt(jj,[["__scopeId","data-v-778a84ef"]]),Uj="9.0.0-next.4",Kj={version:Uj},Hj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAA2CAYAAACoXOUdAAAACXBIWXMAAC4jAAAuIwF4pT92AAACaklEQVR42u2cv2sUQRzF35MLXhEUNahFRMSzFUt7m5Ar9A+wCNqaKghpRIKFQixsrIyFpVgkUYKdrRAEC4sVDFhE0CIKomCh4WvhHkzGmbkfu9ndkPfg4Oa7b/a7+9nvzs4ezMH+KUMu26kXCMjzLOexrplZxJul+qb8fXJmiZy+dy7k9XOa2aIF5HiHyXnWDR6AVJkEW7AFWxJswZYEW7AFWxJswZYEW7AFWxJswZYEW7AlwRZswZYEW7AlwRZswZYEW7AlwRZsSbAFW5IkSZKk/SY27YDMbAlAm+TVAvuYA9AC8MfbtE3yQZ0nZ73lZgHd3qWclxPL5H7Gtg15TiH9SvifRfose+3NAZbmBdVy/BvO99MAxgB8q+H6ny9p/v8KwHO/shP+3x6D4wAOAfjixduR/u8HrmwvlhWtrlEru8S79U4Rv5k9ilRwqrI3I/v/2MhFp/6K2n3/up4alyLet55npeRny+JegN0asd8WgB8A1pzYGQDdRB933BsHcHLE3BuB2NdA7KaZzfw3/SJP1Q47VpX5AfpTxAkAWyRnHW83BZvkOXfMHqW6/f300UEAk02t7BuB7dP5J3Zr33WanYrG9OuB8DuS684FYaDfJQBXGgGb5MPAAU6kYAOYr+GYlwKx+wDW+/S7kBfU7F4bs3uqslJmAHwHcNiJ3QJwAsDTBs6qXgL4TPJaKbBJrlb2uwL5JHBC8wDGSb5p4ORjyn+YtwpevQ+B8GOS9wLe107zaEm5Oj3obs6I98guw/3Ue+lx2m23XXQYCT0Uj0W8Fwfc58IQuWI5OzVU8iSkRozfmf4jqmL9BR+MejvoqIOKAAAAAElFTkSuQmCC",Gj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAADXCAYAAADRJwCFAAAACXBIWXMAAC4jAAAuIwF4pT92AAAFnElEQVR42u3cP2icZRzA8d9zCUEQa65KBx1yqUUz2MVJQcHBUTo7Fgw4WJvrIMYtBaEdOlxKt7aQLqLg6CSUIkQUBxcVKi3tBRwrdy2d2rt73FzMe9G379vc5T6f9eH9c8/7vt8cx5M3dbq9HAVSjpNry81rRePjtt3DdrvVfCcqVtf5dLq9WxFxrGCWVtutxavVn+/4/Zb/rOmndmvxrTrneq/7ZkKuaem5H2ez27ucI1an5R6s4pp27jx4LRrDm1GDdquZCs93p38ucl7frzl5suvZ/zEiv1lmx40AYGqINoBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0y6ZAqjOpT8fvFA0NnjUmJ9fGA2qPua9l5+7v5HSwOzPhvlOt5cLi57jZE6xVceB262mPxg1GXdNI9Jqu7V49YmPcbf/UYpRc9fBRmyvLR3ensW5HwyG9woHG8MY1JDWw93+uxHxfb33zSR+5UznI+f1OhsziXMyL3GUe2DypznSK7sN5VGcjYhtkwTVa5gCANEGQLQBRBsA0QaganuuHim7bGavZWemnhn0e0pxueqdDuaGt5/CuV9qt5qflGrBTv+zyPl8UQvKLkHt7PTP1f2hJ3FpsiV/lL2Zj5mF/+3G2lJz0zRMj7FfPlM6315a/LzyY+70z41bf+7nEYApItoAog2AaAOINgCiDUDlDtSSv/14jWJO+e0zS4d/qP58082IvDKNc51znD2z3NyY1msao7mV9tFDf8gDvmkDINoAog2AaAMg2gCiDcBkOWhv+fu2aCCl1FlbWrxeZqedbu9WRDzVt9rlNFqtZynhwZFynFxbbl6bolM+1en2TtUwE6Vfb8oBjHY9AchXOt3elaLRJ3iH7fuFI6P8jcsNTDs/jwCINgCiDSDaAIg2AJX7L0v+fqvp2K8/zQ+aU7x46U5vqcy2A/fJRMoRb2ze7fUrfyiefXz94yNHHpbcvK7n5dWIWNhtIKX8yN0g2v9ot5rH6zjwPqwlvjBoxIWS2952q0ygFKdzxOmqd/v44TMrEVHq1aw1Pi+F/yswinzHzTA7/DwCINoAiDaAaAMg2gBUbt4UAFTr4q2/Dg0XUuFKorJv8JyxaKcvU8o/l9lyNIr7jUY8v9vYXBredYvWKKcP6rkd8heFQ43hS1FyyR9ERAwX0vGU0/a4O1C093xG83drral69zIR0V5e/LqO/Xa6va8K/05EOhoRN8w+k8hv2gCiDYBoA4g2AKINQOWs055UozixudN7r8ymOZs+qF3O651ub333sfGbjn3L6R4P8MxEO6fY6nR7W9XHdW6lffRQ5Wt6U2qcyDmvzPpzsQ+v8I3RKP06TefLbPHzCPzroUj3zQKiDYBoA4g2AKINgGgDzIxkCgAmR6fb/zAiX/FNG+AAEG0A0QZAtAFEGwDRBqByXs0KMFHfpPMvOcVG0fjf8tFYjp6FvpMAAAAASUVORK5CYII=",Wj={class:"app"},zj={key:0,class:"loading-screen"},Yj={class:"loading-container"},Zj={class:"loading-content"},Jj={class:"brand-section"},Xj={class:"brand-logo loading-logo"},eB=["src"],tB={key:1,class:"error-screen"},sB={class:"error-container"},nB={class:"error-content"},iB={class:"error-message"},rB={key:2,class:"app-layout"},aB={class:"app-header"},oB={class:"header-container"},lB={class:"header-content"},uB={class:"brand-section"},cB={class:"brand-logo"},dB=["src"],fB={class:"app-navigation",role:"navigation","aria-label":"Main navigation"},hB={class:"nav-list nav-desktop",role:"tablist"},mB={class:"nav-label"},pB={key:0,class:"nav-indicator"},gB={class:"nav-mobile"},vB=["aria-expanded"],bB={class:"current-page"},yB={id:"mobile-nav-menu",class:"mobile-nav-menu",role:"menu"},_B={class:"app-main",role:"main"},EB={class:"content-wrapper"},wB={class:"content-container"},CB={class:"app-footer",role:"contentinfo"},AB={class:"footer-container"},SB={class:"footer-content"},xB={class:"footer-info"},$B={class:"version-info"},TB={class:"version"},OB=Ge({__name:"App",setup(e){const t=_e(!0),s=_e(null),n=os(),i=v(()=>Kj.version),r=async()=>{try{t.value=!0,s.value=null,await new Promise(p=>setTimeout(p,1500))}catch(p){console.error("App initialization failed:",p),s.value="Failed to initialize application"}finally{t.value=!1}};Bt(()=>{r()});const o=p=>n.currentRoute.value.name===p,l=()=>{r()},u=_e(!1),d=_e(null);Xe(()=>n.currentRoute.value.fullPath,()=>{u.value=!1});function c(p){if(!u.value)return;const m=p.target,g=d.value;g&&!g.contains(m)&&(u.value=!1)}function h(p){p.key==="Escape"&&u.value&&(u.value=!1)}return Bt(()=>{document.addEventListener("click",c,!0),document.addEventListener("keydown",h,!0)}),tr(()=>{document.removeEventListener("click",c,!0),document.removeEventListener("keydown",h,!0)}),(p,m)=>{const g=Gd("RouterLink"),w=Gd("RouterView");return N(),D("div",Wj,[t.value?(N(),D("div",zj,[a("div",Yj,[a("div",Zj,[a("div",Jj,[a("div",Xj,[a("img",{src:O(Gj),alt:"RedisSMQ Logo",class:"logo-image"},null,8,eB)])]),m[1]||(m[1]=a("div",{class:"loading-animation"},[a("div",{class:"spinner"}),a("p",{class:"loading-text"},"Initializing application...")],-1))])])])):s.value?(N(),D("div",tB,[a("div",sB,[a("div",nB,[m[3]||(m[3]=a("div",{class:"error-icon"},"⚠️",-1)),m[4]||(m[4]=a("h2",{class:"error-title"},"Application Error",-1)),a("p",iB,L(s.value),1),a("button",{class:"btn btn-primary btn-retry",onClick:l},[...m[2]||(m[2]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ",-1)])])])])])):(N(),D("div",rB,[a("header",aB,[a("div",oB,[a("div",lB,[a("div",uB,[a("div",cB,[a("img",{src:O(Hj),alt:"RedisSMQ Logo",class:"logo-image"},null,8,dB)]),m[5]||(m[5]=a("div",{class:"brand-info"},[a("h1",{class:"brand-title"},"RedisSMQ"),a("span",{class:"brand-subtitle"},"Web UI")],-1))])]),a("nav",fB,[a("ul",hB,[(N(!0),D(Ae,null,bt(O(Ba),_=>(N(),D("li",{key:_.name,class:"nav-item",role:"presentation"},[we(g,{to:{name:_.name},class:Re(["nav-link",{"nav-link-active":o(_.name)}]),"aria-current":o(_.name)?"page":void 0},{default:je(()=>[a("span",mB,L(_.name),1),o(_.name)?(N(),D("span",pB)):fe("",!0)]),_:2},1032,["to","class","aria-current"])]))),128))]),a("div",gB,[a("div",{ref_key:"mobileNavDropdown",ref:d,class:"mobile-nav-dropdown"},[a("button",{class:"mobile-nav-toggle",type:"button","aria-expanded":u.value,"aria-haspopup":"true","aria-controls":"mobile-nav-menu",onClick:m[0]||(m[0]=_=>u.value=!u.value)},[a("span",bB,L(O(Ba).find(_=>o(_.name))?.name||"Navigation"),1),m[6]||(m[6]=a("i",{class:"bi bi-chevron-down toggle-icon"},null,-1))],8,vB),ss(a("ul",yB,[(N(!0),D(Ae,null,bt(O(Ba),_=>(N(),D("li",{key:_.name,role:"none"},[we(g,{to:{name:_.name},class:Re(["mobile-nav-link",{"mobile-nav-link-active":o(_.name)}]),role:"menuitem"},{default:je(()=>[X(L(_.name),1)]),_:2},1032,["to","class"])]))),128))],512),[[i0,u.value]])],512)])])])]),a("main",_B,[we(Bj),a("div",EB,[a("div",wB,[(N(),ct($w,null,{default:je(()=>[we(w,null,{default:je(({Component:_,route:S})=>[(N(),ct(Mo(_),{key:S.path}))]),_:1})]),fallback:je(()=>[...m[7]||(m[7]=[a("div",{class:"page-loading"},[a("div",{class:"loading-content"},[a("div",{class:"spinner-small"}),a("p",{class:"loading-text"},"Loading page...")])],-1)])]),_:1}))])])]),a("footer",CB,[a("div",AB,[a("div",SB,[a("div",xB,[a("div",$B,[a("span",TB,"RedisSMQ Web UI "+L(i.value),1),m[8]||(m[8]=a("span",{class:"separator"},"•",-1)),m[9]||(m[9]=a("span",{class:"license"},[X(" Licensed under "),a("a",{href:"https://github.com/weyoss/redis-smq/blob/master/LICENSE",target:"_blank",rel:"noopener noreferrer",class:"license-link"}," MIT License ")],-1))])]),m[10]||(m[10]=li('<div class="footer-links" data-v-c7b8ec48><a href="https://github.com/weyoss/redis-smq" target="_blank" rel="noopener noreferrer" class="footer-link" aria-label="View on GitHub" data-v-c7b8ec48><i class="bi bi-github me-1" data-v-c7b8ec48></i> GitHub </a><a href="https://github.com/weyoss/redis-smq/blob/master/packages/redis-smq/docs/README.md" target="_blank" rel="noopener noreferrer" class="footer-link" data-v-c7b8ec48><i class="bi bi-book me-1" data-v-c7b8ec48></i> Documentation </a></div>',1))])])])]))])}}}),NB=tt(OB,[["__scopeId","data-v-c7b8ec48"]]),kB={class:"not-found-page"},PB=Ge({__name:"NotFoundView",setup(e){const t=os();function s(){t.push({name:"Home"})}function n(){window.history.length>1?t.go(-1):s()}function i(){t.push({name:"Queues"})}return(r,o)=>(N(),D("div",kB,[a("div",{class:"not-found-container"},[a("main",{class:"not-found-content"},[o[3]||(o[3]=li('<div class="error-illustration" data-v-b9948732><div class="error-number" data-v-b9948732>404</div><div class="error-icon" data-v-b9948732>🔍</div></div><div class="error-message" data-v-b9948732><h1 class="error-title" data-v-b9948732>Page Not Found</h1><p class="error-subtitle" data-v-b9948732> Sorry, we couldn't find the page you're looking for. </p><p class="error-description" data-v-b9948732> The page might have been moved, deleted, or you may have entered an incorrect URL. </p></div>',2)),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary btn-home",onClick:s},[...o[0]||(o[0]=[a("i",{class:"bi bi-house-fill me-2"},null,-1),X(" Go to Home ",-1)])]),a("button",{class:"btn btn-outline-secondary btn-back",onClick:n},[...o[1]||(o[1]=[a("i",{class:"bi bi-arrow-left me-2"},null,-1),X(" Go Back ",-1)])]),a("button",{class:"btn btn-outline-primary btn-queues",onClick:i},[...o[2]||(o[2]=[a("i",{class:"bi bi-list-ul me-2"},null,-1),X(" View Queues ",-1)])])]),o[4]||(o[4]=li('<div class="help-section" data-v-b9948732><h3 class="help-title" data-v-b9948732>What can you do?</h3><ul class="help-list" data-v-b9948732><li class="help-item" data-v-b9948732><i class="bi bi-check-circle-fill help-icon" data-v-b9948732></i><span data-v-b9948732>Check the URL for any typos</span></li><li class="help-item" data-v-b9948732><i class="bi bi-check-circle-fill help-icon" data-v-b9948732></i><span data-v-b9948732>Use the navigation menu to find what you're looking for</span></li><li class="help-item" data-v-b9948732><i class="bi bi-check-circle-fill help-icon" data-v-b9948732></i><span data-v-b9948732>Go back to the previous page or start from the home page</span></li></ul></div>',1))]),o[5]||(o[5]=a("footer",{class:"not-found-footer"},[a("p",{class:"footer-text"}," Need help? Check the documentation or contact support. ")],-1))])]))}}),DB=tt(PB,[["__scopeId","data-v-b9948732"]]),Lv=hA({history:jC("/"),routes:[...Iu,{path:"/:pathMatch(.*)*",name:"NotFound",component:DB}]});Lv.beforeEach((e,t,s)=>{e.path!==t.path&&Xt().resetPageContent(),s()});const Xo=A0(NB);Xo.use($0());Xo.use(Lv);Xo.use(lC,{queryClientConfig:{defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}});Xo.mount("#app");export{kI as C,Mv as D,Ae as F,ps as P,eq as Q,tt as _,qt as a,oL as b,FR as c,Ge as d,mv as e,v as f,UL as g,D as h,we as i,ct as j,fe as k,je as l,O as m,at as n,Bt as o,N as p,a as q,_e as r,X as s,L as t,Xt as u,bt as v,At as w,os as x};
|