agendash 4.0.0 → 6.0.0
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/LICENSE.md +25 -0
- package/README.md +109 -200
- package/dist/AgendashController.d.ts +50 -0
- package/dist/AgendashController.js +176 -0
- package/dist/AgendashController.js.map +1 -0
- package/dist/csp.d.ts +1 -0
- package/dist/csp.js +15 -0
- package/dist/csp.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/middlewares/express.d.ts +22 -0
- package/dist/middlewares/express.js +119 -0
- package/dist/middlewares/express.js.map +1 -0
- package/dist/middlewares/fastify.d.ts +18 -0
- package/dist/middlewares/fastify.js +129 -0
- package/dist/middlewares/fastify.js.map +1 -0
- package/dist/middlewares/hapi.d.ts +28 -0
- package/dist/middlewares/hapi.js +198 -0
- package/dist/middlewares/hapi.js.map +1 -0
- package/dist/middlewares/koa.d.ts +25 -0
- package/dist/middlewares/koa.js +139 -0
- package/dist/middlewares/koa.js.map +1 -0
- package/dist/types.d.ts +154 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +77 -62
- package/public/assets/index-CIdOb8D1.css +5 -0
- package/public/assets/index-Ct6Ovrls.js +17 -0
- package/public/index.html +11 -52
- package/public/site.webmanifest +8 -1
- package/Dockerfile +0 -23
- package/History.md +0 -118
- package/LICENSE +0 -21
- package/all-jobs.png +0 -0
- package/app.js +0 -23
- package/bin/agendash-standalone-fastify.js +0 -61
- package/bin/agendash-standalone-hapi.js +0 -60
- package/bin/agendash-standalone-koa.js +0 -56
- package/bin/agendash-standalone.js +0 -64
- package/create-job.png +0 -0
- package/entrypoint.sh +0 -5
- package/lib/controllers/agendash.js +0 -341
- package/lib/csp.js +0 -28
- package/lib/middlewares/README.md +0 -59
- package/lib/middlewares/express.js +0 -80
- package/lib/middlewares/fastify.js +0 -77
- package/lib/middlewares/hapi.js +0 -101
- package/lib/middlewares/koa.js +0 -77
- package/mobile-ui-sm.png +0 -0
- package/mobile-ui-xs.png +0 -0
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/app/assets/ArgensdashV2Logo.svg +0 -18
- package/public/app/css/styles.css +0 -233
- package/public/app/js/confirmDelete.js +0 -40
- package/public/app/js/confirmDeleteMulti.js +0 -45
- package/public/app/js/confirmRequeue.js +0 -40
- package/public/app/js/confirmRequeueMulti.js +0 -45
- package/public/app/js/confirms.js +0 -8
- package/public/app/js/jobdetail.js +0 -48
- package/public/app/js/joblist.js +0 -248
- package/public/app/js/main.js +0 -283
- package/public/app/js/newJob.js +0 -89
- package/public/app/js/sidebar.js +0 -121
- package/public/app/js/topbar.js +0 -95
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/search.png +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
|
|
2
|
+
* @vue/shared v3.5.27
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function to(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ae={},Gt=[],Xe=()=>{},xr=()=>!1,ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),no=e=>e.startsWith("onUpdate:"),ye=Object.assign,so=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ki=Object.prototype.hasOwnProperty,re=(e,t)=>Ki.call(e,t),V=Array.isArray,zt=e=>On(e)==="[object Map]",nn=e=>On(e)==="[object Set]",$o=e=>On(e)==="[object Date]",z=e=>typeof e=="function",be=e=>typeof e=="string",Qe=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Cr=e=>(ce(e)||z(e))&&z(e.then)&&z(e.catch),kr=Object.prototype.toString,On=e=>kr.call(e),Gi=e=>On(e).slice(8,-1),$r=e=>On(e)==="[object Object]",oo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mn=to(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},zi=/-\w/g,$t=hs(e=>e.replace(zi,t=>t.slice(1).toUpperCase())),Xi=/\B([A-Z])/g,Jt=hs(e=>e.replace(Xi,"-$1").toLowerCase()),Sr=hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=hs(e=>e?`on${Sr(e)}`:""),kt=(e,t)=>!Object.is(e,t),zn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Tr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ms=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qi=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let So;const ps=()=>So||(So=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pe(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=be(s)?nl(s):pe(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(be(e)||ce(e))return e}const Zi=/;(?![^(]*\))/g,el=/:([^]+)/,tl=/\/\*[^]*?\*\//g;function nl(e){const t={};return e.replace(tl,"").split(Zi).forEach(n=>{if(n){const s=n.split(el);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function he(e){let t="";if(be(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=he(e[n]);s&&(t+=s+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ol=to(sl);function Mr(e){return!!e||e===""}function rl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=jn(e[s],t[s]);return n}function jn(e,t){if(e===t)return!0;let n=$o(e),s=$o(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Qe(e),s=Qe(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?rl(e,t):!1;if(n=ce(e),s=ce(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!jn(e[i],t[i]))return!1}}return String(e)===String(t)}function ro(e,t){return e.findIndex(n=>jn(n,t))}const Dr=e=>!!(e&&e.__v_isRef===!0),A=e=>be(e)?e:e==null?"":V(e)||ce(e)&&(e.toString===kr||!z(e.toString))?Dr(e)?A(e.value):JSON.stringify(e,Pr,2):String(e),Pr=(e,t)=>Dr(t)?Pr(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[$s(s,r)+" =>"]=o,n),{})}:nn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$s(n))}:Qe(t)?$s(t):ce(t)&&!V(t)&&!$r(t)?String(t):t,$s=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.27
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Pe;class il{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){++this._on===1&&(this.prevScope=Pe,Pe=this)}off(){this._on>0&&--this._on===0&&(Pe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ll(){return Pe}let fe;const Ss=new WeakSet;class Or{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,Pe&&Pe.active&&Pe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ss.has(this)&&(Ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ar(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,To(this),Nr(this);const t=fe,n=Ie;fe=this,Ie=!0;try{return this.fn()}finally{Er(this),fe=t,Ie=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ao(t);this.deps=this.depsTail=void 0,To(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ws(this)&&this.run()}get dirty(){return Ws(this)}}let jr=0,pn,gn;function Ar(e,t=!1){if(e.flags|=8,t){e.next=gn,gn=e;return}e.next=pn,pn=e}function io(){jr++}function lo(){if(--jr>0)return;if(gn){let t=gn;for(gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;pn;){let t=pn;for(pn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Er(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),ao(s),al(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Cn)||(e.globalVersion=Cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ws(e))))return;e.flags|=2;const t=e.dep,n=fe,s=Ie;fe=e,Ie=!0;try{Nr(e);const o=e.fn(e._value);(t.version===0||kt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{fe=n,Ie=s,Er(e),e.flags&=-3}}function ao(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)ao(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function al(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ie=!0;const Fr=[];function it(){Fr.push(Ie),Ie=!1}function lt(){const e=Fr.pop();Ie=e===void 0?!0:e}function To(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let Cn=0;class cl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class co{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(!fe||!Ie||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new cl(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,Ir(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=s)}return n}trigger(t){this.version++,Cn++,this.notify(t)}notify(t){io();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{lo()}}}function Ir(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ir(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Hs=new WeakMap,Ft=Symbol(""),qs=Symbol(""),kn=Symbol("");function Ce(e,t,n){if(Ie&&fe){let s=Hs.get(e);s||Hs.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new co),o.map=s,o.key=n),o.track()}}function st(e,t,n,s,o,r){const i=Hs.get(e);if(!i){Cn++;return}const l=c=>{c&&c.trigger()};if(io(),t==="clear")i.forEach(l);else{const c=V(e),f=c&&oo(n);if(c&&n==="length"){const u=Number(s);i.forEach((m,p)=>{(p==="length"||p===kn||!Qe(p)&&p>=u)&&l(m)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),f&&l(i.get(kn)),t){case"add":c?f&&l(i.get("length")):(l(i.get(Ft)),zt(e)&&l(i.get(qs)));break;case"delete":c||(l(i.get(Ft)),zt(e)&&l(i.get(qs)));break;case"set":zt(e)&&l(i.get(Ft));break}}lo()}function Vt(e){const t=se(e);return t===e?t:(Ce(t,"iterate",kn),Fe(e)?t:t.map(Le))}function gs(e){return Ce(e=se(e),"iterate",kn),e}function yt(e,t){return at(e)?Zt(It(e)?Le(t):t):Le(t)}const ul={__proto__:null,[Symbol.iterator](){return Ts(this,Symbol.iterator,e=>yt(this,e))},concat(...e){return Vt(this).concat(...e.map(t=>V(t)?Vt(t):t))},entries(){return Ts(this,"entries",e=>(e[1]=yt(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,n=>n.map(s=>yt(this,s)),arguments)},find(e,t){return et(this,"find",e,t,n=>yt(this,n),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,n=>yt(this,n),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ms(this,"includes",e)},indexOf(...e){return Ms(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return Ms(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return ln(this,"pop")},push(...e){return ln(this,"push",e)},reduce(e,...t){return Mo(this,"reduce",e,t)},reduceRight(e,...t){return Mo(this,"reduceRight",e,t)},shift(){return ln(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return ln(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return ln(this,"unshift",e)},values(){return Ts(this,"values",e=>yt(this,e))}};function Ts(e,t,n){const s=gs(e),o=s[t]();return s!==e&&!Fe(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const fl=Array.prototype;function et(e,t,n,s,o,r){const i=gs(e),l=i!==e&&!Fe(e),c=i[t];if(c!==fl[t]){const m=c.apply(e,r);return l?Le(m):m}let f=n;i!==e&&(l?f=function(m,p){return n.call(this,yt(e,m),p,e)}:n.length>2&&(f=function(m,p){return n.call(this,m,p,e)}));const u=c.call(i,f,s);return l&&o?o(u):u}function Mo(e,t,n,s){const o=gs(e);let r=n;return o!==e&&(Fe(e)?n.length>3&&(r=function(i,l,c){return n.call(this,i,l,c,e)}):r=function(i,l,c){return n.call(this,i,yt(e,l),c,e)}),o[t](r,...s)}function Ms(e,t,n){const s=se(e);Ce(s,"iterate",kn);const o=s[t](...n);return(o===-1||o===!1)&&mo(n[0])?(n[0]=se(n[0]),s[t](...n)):o}function ln(e,t,n=[]){it(),io();const s=se(e)[t].apply(e,n);return lo(),lt(),s}const dl=to("__proto__,__v_isRef,__isVue"),Lr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function hl(e){Qe(e)||(e=String(e));const t=se(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class Jr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Cl:Vr:r?qr:Hr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=V(t);if(!o){let c;if(i&&(c=ul[n]))return c;if(n==="hasOwnProperty")return hl}const l=Reflect.get(t,n,ke(t)?t:s);if((Qe(n)?Lr.has(n):dl(n))||(o||Ce(t,"get",n),r))return l;if(ke(l)){const c=i&&oo(n)?l:l.value;return o&&ce(c)?Ys(c):c}return ce(l)?o?Ys(l):fo(l):l}}class Wr extends Jr{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=V(t)&&oo(n);if(!this._isShallow){const f=at(r);if(!Fe(s)&&!at(s)&&(r=se(r),s=se(s)),!i&&ke(r)&&!ke(s))return f||(r.value=s),!0}const l=i?Number(n)<t.length:re(t,n),c=Reflect.set(t,n,s,ke(t)?t:o);return t===se(o)&&(l?kt(s,r)&&st(t,"set",n,s):st(t,"add",n,s)),c}deleteProperty(t,n){const s=re(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&st(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Qe(n)||!Lr.has(n))&&Ce(t,"has",n),s}ownKeys(t){return Ce(t,"iterate",V(t)?"length":Ft),Reflect.ownKeys(t)}}class ml extends Jr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const pl=new Wr,gl=new ml,bl=new Wr(!0);const Vs=e=>e,Jn=e=>Reflect.getPrototypeOf(e);function vl(e,t,n){return function(...s){const o=this.__v_raw,r=se(o),i=zt(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,f=o[e](...s),u=n?Vs:t?Zt:Le;return!t&&Ce(r,"iterate",c?qs:Ft),ye(Object.create(f),{next(){const{value:m,done:p}=f.next();return p?{value:m,done:p}:{value:l?[u(m[0]),u(m[1])]:u(m),done:p}}})}}function Wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function yl(e,t){const n={get(o){const r=this.__v_raw,i=se(r),l=se(o);e||(kt(o,l)&&Ce(i,"get",o),Ce(i,"get",l));const{has:c}=Jn(i),f=t?Vs:e?Zt:Le;if(c.call(i,o))return f(r.get(o));if(c.call(i,l))return f(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Ce(se(o),"iterate",Ft),o.size},has(o){const r=this.__v_raw,i=se(r),l=se(o);return e||(kt(o,l)&&Ce(i,"has",o),Ce(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=se(l),f=t?Vs:e?Zt:Le;return!e&&Ce(c,"iterate",Ft),l.forEach((u,m)=>o.call(r,f(u),f(m),i))}};return ye(n,e?{add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear")}:{add(o){!t&&!Fe(o)&&!at(o)&&(o=se(o));const r=se(this);return Jn(r).has.call(r,o)||(r.add(o),st(r,"add",o,o)),this},set(o,r){!t&&!Fe(r)&&!at(r)&&(r=se(r));const i=se(this),{has:l,get:c}=Jn(i);let f=l.call(i,o);f||(o=se(o),f=l.call(i,o));const u=c.call(i,o);return i.set(o,r),f?kt(r,u)&&st(i,"set",o,r):st(i,"add",o,r),this},delete(o){const r=se(this),{has:i,get:l}=Jn(r);let c=i.call(r,o);c||(o=se(o),c=i.call(r,o)),l&&l.call(r,o);const f=r.delete(o);return c&&st(r,"delete",o,void 0),f},clear(){const o=se(this),r=o.size!==0,i=o.clear();return r&&st(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vl(o,e,t)}),n}function uo(e,t){const n=yl(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(re(n,o)&&o in s?n:s,o,r)}const _l={get:uo(!1,!1)},wl={get:uo(!1,!0)},xl={get:uo(!0,!1)};const Hr=new WeakMap,qr=new WeakMap,Vr=new WeakMap,Cl=new WeakMap;function kl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $l(e){return e.__v_skip||!Object.isExtensible(e)?0:kl(Gi(e))}function fo(e){return at(e)?e:ho(e,!1,pl,_l,Hr)}function Sl(e){return ho(e,!1,bl,wl,qr)}function Ys(e){return ho(e,!0,gl,xl,Vr)}function ho(e,t,n,s,o){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=$l(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?s:n);return o.set(e,l),l}function It(e){return at(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function mo(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Tl(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Tr(e,"__v_skip",!0),e}const Le=e=>ce(e)?fo(e):e,Zt=e=>ce(e)?Ys(e):e;function ke(e){return e?e.__v_isRef===!0:!1}function B(e){return Ml(e,!1)}function Ml(e,t){return ke(e)?e:new Dl(e,t)}class Dl{constructor(t,n){this.dep=new co,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:Le(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Fe(t)||at(t);t=s?t:se(t),kt(t,n)&&(this._rawValue=t,this._value=s?t:Le(t),this.dep.trigger())}}function Y(e){return ke(e)?e.value:e}const Pl={get:(e,t,n)=>t==="__v_raw"?e:Y(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ke(o)&&!ke(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Yr(e){return It(e)?e:new Proxy(e,Pl)}class Ol{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new co(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return Ar(this,!0),!0}get value(){const t=this.dep.track();return Rr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function jl(e,t,n=!1){let s,o;return z(e)?s=e:(s=e.get,o=e.set),new Ol(s,o,n)}const Hn={},ns=new WeakMap;let Nt;function Al(e,t=!1,n=Nt){if(n){let s=ns.get(n);s||ns.set(n,s=[]),s.push(e)}}function Nl(e,t,n=ae){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=n,f=j=>o?j:Fe(j)||o===!1||o===0?ot(j,1):ot(j);let u,m,p,v,w=!1,y=!1;if(ke(e)?(m=()=>e.value,w=Fe(e)):It(e)?(m=()=>f(e),w=!0):V(e)?(y=!0,w=e.some(j=>It(j)||Fe(j)),m=()=>e.map(j=>{if(ke(j))return j.value;if(It(j))return f(j);if(z(j))return c?c(j,2):j()})):z(e)?t?m=c?()=>c(e,2):e:m=()=>{if(p){it();try{p()}finally{lt()}}const j=Nt;Nt=u;try{return c?c(e,3,[v]):e(v)}finally{Nt=j}}:m=Xe,t&&o){const j=m,K=o===!0?1/0:o;m=()=>ot(j(),K)}const $=ll(),g=()=>{u.stop(),$&&$.active&&so($.effects,u)};if(r&&t){const j=t;t=(...K)=>{j(...K),g()}}let b=y?new Array(e.length).fill(Hn):Hn;const C=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const K=u.run();if(o||w||(y?K.some((te,ue)=>kt(te,b[ue])):kt(K,b))){p&&p();const te=Nt;Nt=u;try{const ue=[K,b===Hn?void 0:y&&b[0]===Hn?[]:b,v];b=K,c?c(t,3,ue):t(...ue)}finally{Nt=te}}}else u.run()};return l&&l(C),u=new Or(m),u.scheduler=i?()=>i(C,!1):C,v=j=>Al(j,!1,u),p=u.onStop=()=>{const j=ns.get(u);if(j){if(c)c(j,4);else for(const K of j)K();ns.delete(u)}},t?s?C(!0):b=u.run():i?i(C.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function ot(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ke(e))ot(e.value,t,n);else if(V(e))for(let s=0;s<e.length;s++)ot(e[s],t,n);else if(nn(e)||zt(e))e.forEach(s=>{ot(s,t,n)});else if($r(e)){for(const s in e)ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ot(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.27
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function An(e,t,n,s){try{return s?e(...s):e()}catch(o){bs(o,t,n)}}function Je(e,t,n,s){if(z(e)){const o=An(e,t,n,s);return o&&Cr(o)&&o.catch(r=>{bs(r,t,n)}),o}if(V(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Je(e[r],t,n,s));return o}}function bs(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ae;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let m=0;m<u.length;m++)if(u[m](e,c,f)===!1)return}l=l.parent}if(r){it(),An(r,null,10,[e,c,f]),lt();return}}El(e,n,o,s,i)}function El(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Me=[];let Be=-1;const Xt=[];let _t=null,Bt=0;const Ur=Promise.resolve();let ss=null;function Br(e){const t=ss||Ur;return e?t.then(this?e.bind(this):e):t}function Rl(e){let t=Be+1,n=Me.length;for(;t<n;){const s=t+n>>>1,o=Me[s],r=$n(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function po(e){if(!(e.flags&1)){const t=$n(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=$n(n)?Me.push(e):Me.splice(Rl(t),0,e),e.flags|=1,Kr()}}function Kr(){ss||(ss=Ur.then(zr))}function Fl(e){V(e)?Xt.push(...e):_t&&e.id===-1?_t.splice(Bt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1),Kr()}function Do(e,t,n=Be+1){for(;n<Me.length;n++){const s=Me[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Me.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Gr(e){if(Xt.length){const t=[...new Set(Xt)].sort((n,s)=>$n(n)-$n(s));if(Xt.length=0,_t){_t.push(...t);return}for(_t=t,Bt=0;Bt<_t.length;Bt++){const n=_t[Bt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_t=null,Bt=0}}const $n=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zr(e){try{for(Be=0;Be<Me.length;Be++){const t=Me[Be];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),An(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Be<Me.length;Be++){const t=Me[Be];t&&(t.flags&=-2)}Be=-1,Me.length=0,Gr(),ss=null,(Me.length||Xt.length)&&zr()}}let Re=null,Xr=null;function os(e){const t=Re;return Re=e,Xr=e&&e.type.__scopeId||null,t}function Qr(e,t=Re,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ho(-1);const r=os(t);let i;try{i=e(...o)}finally{os(r),s._d&&Ho(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ke(e,t){if(Re===null)return e;const n=ws(Re),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=ae]=t[o];r&&(z(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ot(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[s];c&&(it(),Je(c,n,8,[e.el,l,e,t]),lt())}}function Il(e,t){if(De){let n=De.provides;const s=De.parent&&De.parent.provides;s===n&&(n=De.provides=Object.create(s)),n[e]=t}}function Xn(e,t,n=!1){const s=Di();if(s||Qt){let o=Qt?Qt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&z(t)?t.call(s&&s.proxy):t}}const Ll=Symbol.for("v-scx"),Jl=()=>Xn(Ll);function bn(e,t,n){return Zr(e,t,n)}function Zr(e,t,n=ae){const{immediate:s,deep:o,flush:r,once:i}=n,l=ye({},n),c=t&&s||!t&&r!=="post";let f;if(Mn){if(r==="sync"){const v=Jl();f=v.__watcherHandles||(v.__watcherHandles=[])}else if(!c){const v=()=>{};return v.stop=Xe,v.resume=Xe,v.pause=Xe,v}}const u=De;l.call=(v,w,y)=>Je(v,u,w,y);let m=!1;r==="post"?l.scheduler=v=>{Te(v,u&&u.suspense)}:r!=="sync"&&(m=!0,l.scheduler=(v,w)=>{w?v():po(v)}),l.augmentJob=v=>{t&&(v.flags|=4),m&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const p=Nl(e,t,l);return Mn&&(f?f.push(p):c&&p()),p}function Wl(e,t,n){const s=this.proxy,o=be(e)?e.includes(".")?ei(s,e):()=>s[e]:e.bind(s,s);let r;z(t)?r=t:(r=t.handler,n=t);const i=Rn(this),l=Zr(o,r.bind(s),n);return i(),l}function ei(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const ti=Symbol("_vte"),Hl=e=>e.__isTeleport,vn=e=>e&&(e.disabled||e.disabled===""),Po=e=>e&&(e.defer||e.defer===""),Oo=e=>typeof SVGElement<"u"&&e instanceof SVGElement,jo=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Us=(e,t)=>{const n=e&&e.to;return be(n)?t?t(n):null:n},ni={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,i,l,c,f){const{mc:u,pc:m,pbc:p,o:{insert:v,querySelector:w,createText:y,createComment:$}}=f,g=vn(t.props);let{shapeFlag:b,children:C,dynamicChildren:j}=t;if(e==null){const K=t.el=y(""),te=t.anchor=y("");v(K,n,s),v(te,n,s);const ue=(W,Q)=>{b&16&&u(C,W,Q,o,r,i,l,c)},ie=()=>{const W=t.target=Us(t.props,w),Q=oi(W,t,y,v);W&&(i!=="svg"&&Oo(W)?i="svg":i!=="mathml"&&jo(W)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(W),g||(ue(W,Q),Qn(t,!1)))};g&&(ue(n,te),Qn(t,!0)),Po(t.props)?(t.el.__isMounted=!1,Te(()=>{ie(),delete t.el.__isMounted},r)):ie()}else{if(Po(t.props)&&e.el.__isMounted===!1){Te(()=>{ni.process(e,t,n,s,o,r,i,l,c,f)},r);return}t.el=e.el,t.targetStart=e.targetStart;const K=t.anchor=e.anchor,te=t.target=e.target,ue=t.targetAnchor=e.targetAnchor,ie=vn(e.props),W=ie?n:te,Q=ie?K:ue;if(i==="svg"||Oo(te)?i="svg":(i==="mathml"||jo(te))&&(i="mathml"),j?(p(e.dynamicChildren,j,W,o,r,i,l),vo(e,t,!0)):c||m(e,t,W,Q,o,r,i,l,!1),g)ie?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):qn(t,n,K,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=t.target=Us(t.props,w);ne&&qn(t,ne,null,f,0)}else ie&&qn(t,te,ue,f,1);Qn(t,g)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:l,anchor:c,targetStart:f,targetAnchor:u,target:m,props:p}=e;if(m&&(o(f),o(u)),r&&o(c),i&16){const v=r||!vn(p);for(let w=0;w<l.length;w++){const y=l[w];s(y,t,n,v,!!y.dynamicChildren)}}},move:qn,hydrate:ql};function qn(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:c,children:f,props:u}=e,m=r===2;if(m&&s(i,t,n),(!m||vn(u))&&c&16)for(let p=0;p<f.length;p++)o(f[p],t,n,2);m&&s(l,t,n)}function ql(e,t,n,s,o,r,{o:{nextSibling:i,parentNode:l,querySelector:c,insert:f,createText:u}},m){function p(y,$,g,b){$.anchor=m(i(y),$,l(y),n,s,o,r),$.targetStart=g,$.targetAnchor=b}const v=t.target=Us(t.props,c),w=vn(t.props);if(v){const y=v._lpa||v.firstChild;if(t.shapeFlag&16)if(w)p(e,t,y,y&&i(y));else{t.anchor=i(e);let $=y;for(;$;){if($&&$.nodeType===8){if($.data==="teleport start anchor")t.targetStart=$;else if($.data==="teleport anchor"){t.targetAnchor=$,v._lpa=t.targetAnchor&&i(t.targetAnchor);break}}$=i($)}t.targetAnchor||oi(v,t,u,f),m(y&&i(y),t,v,n,s,o,r)}Qn(t,w)}else w&&t.shapeFlag&16&&p(e,t,e,i(e));return t.anchor&&i(t.anchor)}const si=ni;function Qn(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function oi(e,t,n,s){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[ti]=r,e&&(s(o,e),s(r,e)),r}const Et=Symbol("_leaveCb"),Vn=Symbol("_enterCb");function Vl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nn(()=>{e.isMounted=!0}),ui(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],Yl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee};function Ul(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Bs(e,t,n,s,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:p,onLeave:v,onAfterLeave:w,onLeaveCancelled:y,onBeforeAppear:$,onAppear:g,onAfterAppear:b,onAppearCancelled:C}=t,j=String(e.key),K=Ul(n,e),te=(W,Q)=>{W&&Je(W,s,9,Q)},ue=(W,Q)=>{const ne=Q[1];te(W,Q),V(W)?W.every(F=>F.length<=1)&&ne():W.length<=1&&ne()},ie={mode:i,persisted:l,beforeEnter(W){let Q=c;if(!n.isMounted)if(r)Q=$||c;else return;W[Et]&&W[Et](!0);const ne=K[j];ne&&Kt(e,ne)&&ne.el[Et]&&ne.el[Et](),te(Q,[W])},enter(W){let Q=f,ne=u,F=m;if(!n.isMounted)if(r)Q=g||f,ne=b||u,F=C||m;else return;let oe=!1;const ge=W[Vn]=$e=>{oe||(oe=!0,$e?te(F,[W]):te(ne,[W]),ie.delayedLeave&&ie.delayedLeave(),W[Vn]=void 0)};Q?ue(Q,[W,ge]):ge()},leave(W,Q){const ne=String(e.key);if(W[Vn]&&W[Vn](!0),n.isUnmounting)return Q();te(p,[W]);let F=!1;const oe=W[Et]=ge=>{F||(F=!0,Q(),ge?te(y,[W]):te(w,[W]),W[Et]=void 0,K[ne]===e&&delete K[ne])};K[ne]=e,v?ue(v,[W,oe]):oe()},clone(W){return Bs(W,t,n,s)}};return ie}function Sn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Sn(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 ri(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===ve?(i.patchFlag&128&&o++,s=s.concat(ri(i.children,t,l))):(t||i.type!==ct)&&s.push(l!=null?Lt(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function ut(e,t){return z(e)?ye({name:e.name},t,{setup:e}):e}function ii(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const rs=new WeakMap;function yn(e,t,n,s,o=!1){if(V(e)){e.forEach((w,y)=>yn(w,t&&(V(t)?t[y]:t),n,s,o));return}if(_n(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&yn(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?ws(s.component):s.el,i=o?null:r,{i:l,r:c}=e,f=t&&t.r,u=l.refs===ae?l.refs={}:l.refs,m=l.setupState,p=se(m),v=m===ae?xr:w=>re(p,w);if(f!=null&&f!==c){if(Ao(t),be(f))u[f]=null,v(f)&&(m[f]=null);else if(ke(f)){f.value=null;const w=t;w.k&&(u[w.k]=null)}}if(z(c))An(c,l,12,[i,u]);else{const w=be(c),y=ke(c);if(w||y){const $=()=>{if(e.f){const g=w?v(c)?m[c]:u[c]:c.value;if(o)V(g)&&so(g,r);else if(V(g))g.includes(r)||g.push(r);else if(w)u[c]=[r],v(c)&&(m[c]=u[c]);else{const b=[r];c.value=b,e.k&&(u[e.k]=b)}}else w?(u[c]=i,v(c)&&(m[c]=i)):y&&(c.value=i,e.k&&(u[e.k]=i))};if(i){const g=()=>{$(),rs.delete(e)};g.id=-1,rs.set(e,g),Te(g,n)}else Ao(e),$()}}}function Ao(e){const t=rs.get(e);t&&(t.flags|=8,rs.delete(e))}ps().requestIdleCallback;ps().cancelIdleCallback;const _n=e=>!!e.type.__asyncLoader,li=e=>e.type.__isKeepAlive;function Bl(e,t){ai(e,"a",t)}function Kl(e,t){ai(e,"da",t)}function ai(e,t,n=De){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(vs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)li(o.parent.vnode)&&Gl(s,t,n,o),o=o.parent}}function Gl(e,t,n,s){const o=vs(t,e,s,!0);En(()=>{so(s[t],o)},n)}function vs(e,t,n=De,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=Rn(n),c=Je(t,n,e,i);return l(),lt(),c});return s?o.unshift(r):o.push(r),r}}const ft=e=>(t,n=De)=>{(!Mn||e==="sp")&&vs(e,(...s)=>t(...s),n)},zl=ft("bm"),Nn=ft("m"),Xl=ft("bu"),ci=ft("u"),ui=ft("bum"),En=ft("um"),Ql=ft("sp"),Zl=ft("rtg"),ea=ft("rtc");function ta(e,t=De){vs("ec",e,t)}const na=Symbol.for("v-ndc");function St(e,t,n,s){let o;const r=n,i=V(e);if(i||be(e)){const l=i&&It(e);let c=!1,f=!1;l&&(c=!Fe(e),f=at(e),e=gs(e)),o=new Array(e.length);for(let u=0,m=e.length;u<m;u++)o[u]=t(c?f?Zt(Le(e[u])):Le(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(ce(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,f=l.length;c<f;c++){const u=l[c];o[c]=t(e[u],u,c,r)}}else o=[];return o}const Ks=e=>e?Pi(e)?ws(e):Ks(e.parent):null,wn=ye(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=>Ks(e.parent),$root:e=>Ks(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>di(e),$forceUpdate:e=>e.f||(e.f=()=>{po(e.update)}),$nextTick:e=>e.n||(e.n=Br.bind(e.proxy)),$watch:e=>Wl.bind(e)}),Ds=(e,t)=>e!==ae&&!e.__isScriptSetup&&re(e,t),sa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Ds(s,t))return i[t]=1,s[t];if(o!==ae&&re(o,t))return i[t]=2,o[t];if(re(r,t))return i[t]=3,r[t];if(n!==ae&&re(n,t))return i[t]=4,n[t];Gs&&(i[t]=0)}}const f=wn[t];let u,m;if(f)return t==="$attrs"&&Ce(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ae&&re(n,t))return i[t]=4,n[t];if(m=c.config.globalProperties,re(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Ds(o,t)?(o[t]=n,!0):s!==ae&&re(s,t)?(s[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},l){let c;return!!(n[l]||e!==ae&&l[0]!=="$"&&re(e,l)||Ds(t,l)||re(r,l)||re(s,l)||re(wn,l)||re(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function No(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Gs=!0;function oa(e){const t=di(e),n=e.proxy,s=e.ctx;Gs=!1,t.beforeCreate&&Eo(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:f,created:u,beforeMount:m,mounted:p,beforeUpdate:v,updated:w,activated:y,deactivated:$,beforeDestroy:g,beforeUnmount:b,destroyed:C,unmounted:j,render:K,renderTracked:te,renderTriggered:ue,errorCaptured:ie,serverPrefetch:W,expose:Q,inheritAttrs:ne,components:F,directives:oe,filters:ge}=t;if(f&&ra(f,s,null),i)for(const L in i){const G=i[L];z(G)&&(s[L]=G.bind(n))}if(o){const L=o.call(n,n);ce(L)&&(e.data=fo(L))}if(Gs=!0,r)for(const L in r){const G=r[L],X=z(G)?G.bind(n,n):z(G.get)?G.get.bind(n,n):Xe,We=!z(G)&&z(G.set)?G.set.bind(n):Xe,Ae=Tt({get:X,set:We});Object.defineProperty(s,L,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:Ne=>Ae.value=Ne})}if(l)for(const L in l)fi(l[L],s,n,L);if(c){const L=z(c)?c.call(n):c;Reflect.ownKeys(L).forEach(G=>{Il(G,L[G])})}u&&Eo(u,e,"c");function me(L,G){V(G)?G.forEach(X=>L(X.bind(n))):G&&L(G.bind(n))}if(me(zl,m),me(Nn,p),me(Xl,v),me(ci,w),me(Bl,y),me(Kl,$),me(ta,ie),me(ea,te),me(Zl,ue),me(ui,b),me(En,j),me(Ql,W),V(Q))if(Q.length){const L=e.exposed||(e.exposed={});Q.forEach(G=>{Object.defineProperty(L,G,{get:()=>n[G],set:X=>n[G]=X,enumerable:!0})})}else e.exposed||(e.exposed={});K&&e.render===Xe&&(e.render=K),ne!=null&&(e.inheritAttrs=ne),F&&(e.components=F),oe&&(e.directives=oe),W&&ii(e)}function ra(e,t,n=Xe){V(e)&&(e=zs(e));for(const s in e){const o=e[s];let r;ce(o)?"default"in o?r=Xn(o.from||s,o.default,!0):r=Xn(o.from||s):r=Xn(o),ke(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Eo(e,t,n){Je(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function fi(e,t,n,s){let o=s.includes(".")?ei(n,s):()=>n[s];if(be(e)){const r=t[e];z(r)&&bn(o,r)}else if(z(e))bn(o,e.bind(n));else if(ce(e))if(V(e))e.forEach(r=>fi(r,t,n,s));else{const r=z(e.handler)?e.handler.bind(n):t[e.handler];z(r)&&bn(o,r,e)}}function di(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(f=>is(c,f,i,!0)),is(c,t,i)),ce(t)&&r.set(t,c),c}function is(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&is(e,r,n,!0),o&&o.forEach(i=>is(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=ia[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ia={data:Ro,props:Fo,emits:Fo,methods:hn,computed:hn,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:hn,directives:hn,watch:aa,provide:Ro,inject:la};function Ro(e,t){return t?e?function(){return ye(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function la(e,t){return hn(zs(e),zs(t))}function zs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Se(e,t){return e?[...new Set([].concat(e,t))]:t}function hn(e,t){return e?ye(Object.create(null),e,t):t}function Fo(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:ye(Object.create(null),No(e),No(t??{})):t}function aa(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const s in t)n[s]=Se(e[s],t[s]);return n}function hi(){return{app:null,config:{isNativeTag:xr,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 ca=0;function ua(e,t){return function(s,o=null){z(s)||(s=ye({},s)),o!=null&&!ce(o)&&(o=null);const r=hi(),i=new WeakSet,l=[];let c=!1;const f=r.app={_uid:ca++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Wa,get config(){return r.config},set config(u){},use(u,...m){return i.has(u)||(u&&z(u.install)?(i.add(u),u.install(f,...m)):z(u)&&(i.add(u),u(f,...m))),f},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),f},component(u,m){return m?(r.components[u]=m,f):r.components[u]},directive(u,m){return m?(r.directives[u]=m,f):r.directives[u]},mount(u,m,p){if(!c){const v=f._ceVNode||de(s,o);return v.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(v,u,p),c=!0,f._container=u,u.__vue_app__=f,ws(v.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Je(l,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(u,m){return r.provides[u]=m,f},runWithContext(u){const m=Qt;Qt=f;try{return u()}finally{Qt=m}}};return f}}let Qt=null;const fa=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$t(t)}Modifiers`]||e[`${Jt(t)}Modifiers`];function da(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ae;let o=n;const r=t.startsWith("update:"),i=r&&fa(s,t.slice(7));i&&(i.trim&&(o=n.map(u=>be(u)?u.trim():u)),i.number&&(o=n.map(ms)));let l,c=s[l=ks(t)]||s[l=ks($t(t))];!c&&r&&(c=s[l=ks(Jt(t))]),c&&Je(c,e,6,o);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(f,e,6,o)}}const ha=new WeakMap;function mi(e,t,n=!1){const s=n?ha:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!z(e)){const c=f=>{const u=mi(f,t,!0);u&&(l=!0,ye(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(ce(e)&&s.set(e,null),null):(V(r)?r.forEach(c=>i[c]=null):ye(i,r),ce(e)&&s.set(e,i),i)}function ys(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Jt(t))||re(e,t))}function Io(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:f,renderCache:u,props:m,data:p,setupState:v,ctx:w,inheritAttrs:y}=e,$=os(e);let g,b;try{if(n.shapeFlag&4){const j=o||s,K=j;g=ze(f.call(K,j,u,m,v,p,w)),b=l}else{const j=t;g=ze(j.length>1?j(m,{attrs:l,slots:i,emit:c}):j(m,null)),b=t.props?l:ma(l)}}catch(j){xn.length=0,bs(j,e,1),g=de(ct)}let C=g;if(b&&y!==!1){const j=Object.keys(b),{shapeFlag:K}=C;j.length&&K&7&&(r&&j.some(no)&&(b=pa(b,r)),C=Lt(C,b,!1,!0))}return n.dirs&&(C=Lt(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Sn(C,n.transition),g=C,os($),g}const ma=e=>{let t;for(const n in e)(n==="class"||n==="style"||ds(n))&&((t||(t={}))[n]=e[n]);return t},pa=(e,t)=>{const n={};for(const s in e)(!no(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ga(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Lo(s,i,f):!!i;if(c&8){const u=t.dynamicProps;for(let m=0;m<u.length;m++){const p=u[m];if(i[p]!==s[p]&&!ys(f,p))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Lo(s,i,f):!0:!!i;return!1}function Lo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!ys(n,r))return!0}return!1}function ba({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const pi={},gi=()=>Object.create(pi),bi=e=>Object.getPrototypeOf(e)===pi;function va(e,t,n,s=!1){const o={},r=gi();e.propsDefaults=Object.create(null),vi(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Sl(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ya(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=se(o),[c]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let m=0;m<u.length;m++){let p=u[m];if(ys(e.emitsOptions,p))continue;const v=t[p];if(c)if(re(r,p))v!==r[p]&&(r[p]=v,f=!0);else{const w=$t(p);o[w]=Xs(c,l,w,v,e,!1)}else v!==r[p]&&(r[p]=v,f=!0)}}}else{vi(e,t,o,r)&&(f=!0);let u;for(const m in l)(!t||!re(t,m)&&((u=Jt(m))===m||!re(t,u)))&&(c?n&&(n[m]!==void 0||n[u]!==void 0)&&(o[m]=Xs(c,l,m,void 0,e,!0)):delete o[m]);if(r!==l)for(const m in r)(!t||!re(t,m))&&(delete r[m],f=!0)}f&&st(e.attrs,"set","")}function vi(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(mn(c))continue;const f=t[c];let u;o&&re(o,u=$t(c))?!r||!r.includes(u)?n[u]=f:(l||(l={}))[u]=f:ys(e.emitsOptions,c)||(!(c in s)||f!==s[c])&&(s[c]=f,i=!0)}if(r){const c=se(n),f=l||ae;for(let u=0;u<r.length;u++){const m=r[u];n[m]=Xs(o,c,m,f[m],e,!re(f,m))}}return i}function Xs(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=re(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&z(c)){const{propsDefaults:f}=o;if(n in f)s=f[n];else{const u=Rn(o);s=f[n]=c.call(null,t),u()}}else s=c;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===Jt(n))&&(s=!0))}return s}const _a=new WeakMap;function yi(e,t,n=!1){const s=n?_a:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!z(e)){const u=m=>{c=!0;const[p,v]=yi(m,t,!0);ye(i,p),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!c)return ce(e)&&s.set(e,Gt),Gt;if(V(r))for(let u=0;u<r.length;u++){const m=$t(r[u]);Jo(m)&&(i[m]=ae)}else if(r)for(const u in r){const m=$t(u);if(Jo(m)){const p=r[u],v=i[m]=V(p)||z(p)?{type:p}:ye({},p),w=v.type;let y=!1,$=!0;if(V(w))for(let g=0;g<w.length;++g){const b=w[g],C=z(b)&&b.name;if(C==="Boolean"){y=!0;break}else C==="String"&&($=!1)}else y=z(w)&&w.name==="Boolean";v[0]=y,v[1]=$,(y||re(v,"default"))&&l.push(m)}}const f=[i,l];return ce(e)&&s.set(e,f),f}function Jo(e){return e[0]!=="$"&&!mn(e)}const go=e=>e==="_"||e==="_ctx"||e==="$stable",bo=e=>V(e)?e.map(ze):[ze(e)],wa=(e,t,n)=>{if(t._n)return t;const s=Qr((...o)=>bo(t(...o)),n);return s._c=!1,s},_i=(e,t,n)=>{const s=e._ctx;for(const o in e){if(go(o))continue;const r=e[o];if(z(r))t[o]=wa(o,r,s);else if(r!=null){const i=bo(r);t[o]=()=>i}}},wi=(e,t)=>{const n=bo(t);e.slots.default=()=>n},xi=(e,t,n)=>{for(const s in t)(n||!go(s))&&(e[s]=t[s])},xa=(e,t,n)=>{const s=e.slots=gi();if(e.vnode.shapeFlag&32){const o=t._;o?(xi(s,t,n),n&&Tr(s,"_",o,!0)):_i(t,s)}else t&&wi(e,t)},Ca=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=ae;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:xi(o,t,n):(r=!t.$stable,_i(t,o)),i=t}else t&&(wi(e,t),i={default:1});if(r)for(const l in o)!go(l)&&i[l]==null&&delete o[l]},Te=Ma;function ka(e){return $a(e)}function $a(e,t){const n=ps();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:f,setElementText:u,parentNode:m,nextSibling:p,setScopeId:v=Xe,insertStaticContent:w}=e,y=(d,h,_,D=null,S=null,T=null,E=void 0,N=null,O=!!h.dynamicChildren)=>{if(d===h)return;d&&!Kt(d,h)&&(D=qt(d),Ne(d,S,T,!0),d=null),h.patchFlag===-2&&(O=!1,h.dynamicChildren=null);const{type:M,ref:q,shapeFlag:R}=h;switch(M){case _s:$(d,h,_,D);break;case ct:g(d,h,_,D);break;case Os:d==null&&b(h,_,D,E);break;case ve:F(d,h,_,D,S,T,E,N,O);break;default:R&1?K(d,h,_,D,S,T,E,N,O):R&6?oe(d,h,_,D,S,T,E,N,O):(R&64||R&128)&&M.process(d,h,_,D,S,T,E,N,O,Pt)}q!=null&&S?yn(q,d&&d.ref,T,h||d,!h):q==null&&d&&d.ref!=null&&yn(d.ref,null,T,d,!0)},$=(d,h,_,D)=>{if(d==null)s(h.el=l(h.children),_,D);else{const S=h.el=d.el;h.children!==d.children&&f(S,h.children)}},g=(d,h,_,D)=>{d==null?s(h.el=c(h.children||""),_,D):h.el=d.el},b=(d,h,_,D)=>{[d.el,d.anchor]=w(d.children,h,_,D,d.el,d.anchor)},C=({el:d,anchor:h},_,D)=>{let S;for(;d&&d!==h;)S=p(d),s(d,_,D),d=S;s(h,_,D)},j=({el:d,anchor:h})=>{let _;for(;d&&d!==h;)_=p(d),o(d),d=_;o(h)},K=(d,h,_,D,S,T,E,N,O)=>{if(h.type==="svg"?E="svg":h.type==="math"&&(E="mathml"),d==null)te(h,_,D,S,T,E,N,O);else{const M=d.el&&d.el._isVueCE?d.el:null;try{M&&M._beginPatch(),W(d,h,S,T,E,N,O)}finally{M&&M._endPatch()}}},te=(d,h,_,D,S,T,E,N)=>{let O,M;const{props:q,shapeFlag:R,transition:J,dirs:U}=d;if(O=d.el=i(d.type,T,q&&q.is,q),R&8?u(O,d.children):R&16&&ie(d.children,O,null,D,S,Ps(d,T),E,N),U&&Ot(d,null,D,"created"),ue(O,d,d.scopeId,E,D),q){for(const H in q)H!=="value"&&!mn(H)&&r(O,H,null,q[H],T,D);"value"in q&&r(O,"value",null,q.value,T),(M=q.onVnodeBeforeMount)&&Ye(M,D,d)}U&&Ot(d,null,D,"beforeMount");const ee=Sa(S,J);ee&&J.beforeEnter(O),s(O,h,_),((M=q&&q.onVnodeMounted)||ee||U)&&Te(()=>{M&&Ye(M,D,d),ee&&J.enter(O),U&&Ot(d,null,D,"mounted")},S)},ue=(d,h,_,D,S)=>{if(_&&v(d,_),D)for(let T=0;T<D.length;T++)v(d,D[T]);if(S){let T=S.subTree;if(h===T||$i(T.type)&&(T.ssContent===h||T.ssFallback===h)){const E=S.vnode;ue(d,E,E.scopeId,E.slotScopeIds,S.parent)}}},ie=(d,h,_,D,S,T,E,N,O=0)=>{for(let M=O;M<d.length;M++){const q=d[M]=N?wt(d[M]):ze(d[M]);y(null,q,h,_,D,S,T,E,N)}},W=(d,h,_,D,S,T,E)=>{const N=h.el=d.el;let{patchFlag:O,dynamicChildren:M,dirs:q}=h;O|=d.patchFlag&16;const R=d.props||ae,J=h.props||ae;let U;if(_&&jt(_,!1),(U=J.onVnodeBeforeUpdate)&&Ye(U,_,h,d),q&&Ot(h,d,_,"beforeUpdate"),_&&jt(_,!0),(R.innerHTML&&J.innerHTML==null||R.textContent&&J.textContent==null)&&u(N,""),M?Q(d.dynamicChildren,M,N,_,D,Ps(h,S),T):E||G(d,h,N,null,_,D,Ps(h,S),T,!1),O>0){if(O&16)ne(N,R,J,_,S);else if(O&2&&R.class!==J.class&&r(N,"class",null,J.class,S),O&4&&r(N,"style",R.style,J.style,S),O&8){const ee=h.dynamicProps;for(let H=0;H<ee.length;H++){const P=ee[H],Z=R[P],we=J[P];(we!==Z||P==="value")&&r(N,P,Z,we,S,_)}}O&1&&d.children!==h.children&&u(N,h.children)}else!E&&M==null&&ne(N,R,J,_,S);((U=J.onVnodeUpdated)||q)&&Te(()=>{U&&Ye(U,_,h,d),q&&Ot(h,d,_,"updated")},D)},Q=(d,h,_,D,S,T,E)=>{for(let N=0;N<h.length;N++){const O=d[N],M=h[N],q=O.el&&(O.type===ve||!Kt(O,M)||O.shapeFlag&198)?m(O.el):_;y(O,M,q,null,D,S,T,E,!0)}},ne=(d,h,_,D,S)=>{if(h!==_){if(h!==ae)for(const T in h)!mn(T)&&!(T in _)&&r(d,T,h[T],null,S,D);for(const T in _){if(mn(T))continue;const E=_[T],N=h[T];E!==N&&T!=="value"&&r(d,T,N,E,S,D)}"value"in _&&r(d,"value",h.value,_.value,S)}},F=(d,h,_,D,S,T,E,N,O)=>{const M=h.el=d?d.el:l(""),q=h.anchor=d?d.anchor:l("");let{patchFlag:R,dynamicChildren:J,slotScopeIds:U}=h;U&&(N=N?N.concat(U):U),d==null?(s(M,_,D),s(q,_,D),ie(h.children||[],_,q,S,T,E,N,O)):R>0&&R&64&&J&&d.dynamicChildren&&d.dynamicChildren.length===J.length?(Q(d.dynamicChildren,J,_,S,T,E,N),(h.key!=null||S&&h===S.subTree)&&vo(d,h,!0)):G(d,h,_,q,S,T,E,N,O)},oe=(d,h,_,D,S,T,E,N,O)=>{h.slotScopeIds=N,d==null?h.shapeFlag&512?S.ctx.activate(h,_,D,E,O):ge(h,_,D,S,T,E,O):$e(d,h,O)},ge=(d,h,_,D,S,T,E)=>{const N=d.component=Ea(d,D,S);if(li(d)&&(N.ctx.renderer=Pt),Ra(N,!1,E),N.asyncDep){if(S&&S.registerDep(N,me,E),!d.el){const O=N.subTree=de(ct);g(null,O,h,_),d.placeholder=O.el}}else me(N,d,h,_,S,T,E)},$e=(d,h,_)=>{const D=h.component=d.component;if(ga(d,h,_))if(D.asyncDep&&!D.asyncResolved){L(D,h,_);return}else D.next=h,D.update();else h.el=d.el,D.vnode=h},me=(d,h,_,D,S,T,E)=>{const N=()=>{if(d.isMounted){let{next:R,bu:J,u:U,parent:ee,vnode:H}=d;{const qe=Ci(d);if(qe){R&&(R.el=H.el,L(d,R,E)),qe.asyncDep.then(()=>{d.isUnmounted||N()});return}}let P=R,Z;jt(d,!1),R?(R.el=H.el,L(d,R,E)):R=H,J&&zn(J),(Z=R.props&&R.props.onVnodeBeforeUpdate)&&Ye(Z,ee,R,H),jt(d,!0);const we=Io(d),He=d.subTree;d.subTree=we,y(He,we,m(He.el),qt(He),d,S,T),R.el=we.el,P===null&&ba(d,we.el),U&&Te(U,S),(Z=R.props&&R.props.onVnodeUpdated)&&Te(()=>Ye(Z,ee,R,H),S)}else{let R;const{el:J,props:U}=h,{bm:ee,m:H,parent:P,root:Z,type:we}=d,He=_n(h);jt(d,!1),ee&&zn(ee),!He&&(R=U&&U.onVnodeBeforeMount)&&Ye(R,P,h),jt(d,!0);{Z.ce&&Z.ce._def.shadowRoot!==!1&&Z.ce._injectChildStyle(we);const qe=d.subTree=Io(d);y(null,qe,_,D,d,S,T),h.el=qe.el}if(H&&Te(H,S),!He&&(R=U&&U.onVnodeMounted)){const qe=h;Te(()=>Ye(R,P,qe),S)}(h.shapeFlag&256||P&&_n(P.vnode)&&P.vnode.shapeFlag&256)&&d.a&&Te(d.a,S),d.isMounted=!0,h=_=D=null}};d.scope.on();const O=d.effect=new Or(N);d.scope.off();const M=d.update=O.run.bind(O),q=d.job=O.runIfDirty.bind(O);q.i=d,q.id=d.uid,O.scheduler=()=>po(q),jt(d,!0),M()},L=(d,h,_)=>{h.component=d;const D=d.vnode.props;d.vnode=h,d.next=null,ya(d,h.props,D,_),Ca(d,h.children,_),it(),Do(d),lt()},G=(d,h,_,D,S,T,E,N,O=!1)=>{const M=d&&d.children,q=d?d.shapeFlag:0,R=h.children,{patchFlag:J,shapeFlag:U}=h;if(J>0){if(J&128){We(M,R,_,D,S,T,E,N,O);return}else if(J&256){X(M,R,_,D,S,T,E,N,O);return}}U&8?(q&16&&Dt(M,S,T),R!==M&&u(_,R)):q&16?U&16?We(M,R,_,D,S,T,E,N,O):Dt(M,S,T,!0):(q&8&&u(_,""),U&16&&ie(R,_,D,S,T,E,N,O))},X=(d,h,_,D,S,T,E,N,O)=>{d=d||Gt,h=h||Gt;const M=d.length,q=h.length,R=Math.min(M,q);let J;for(J=0;J<R;J++){const U=h[J]=O?wt(h[J]):ze(h[J]);y(d[J],U,_,null,S,T,E,N,O)}M>q?Dt(d,S,T,!0,!1,R):ie(h,_,D,S,T,E,N,O,R)},We=(d,h,_,D,S,T,E,N,O)=>{let M=0;const q=h.length;let R=d.length-1,J=q-1;for(;M<=R&&M<=J;){const U=d[M],ee=h[M]=O?wt(h[M]):ze(h[M]);if(Kt(U,ee))y(U,ee,_,null,S,T,E,N,O);else break;M++}for(;M<=R&&M<=J;){const U=d[R],ee=h[J]=O?wt(h[J]):ze(h[J]);if(Kt(U,ee))y(U,ee,_,null,S,T,E,N,O);else break;R--,J--}if(M>R){if(M<=J){const U=J+1,ee=U<q?h[U].el:D;for(;M<=J;)y(null,h[M]=O?wt(h[M]):ze(h[M]),_,ee,S,T,E,N,O),M++}}else if(M>J)for(;M<=R;)Ne(d[M],S,T,!0),M++;else{const U=M,ee=M,H=new Map;for(M=ee;M<=J;M++){const Oe=h[M]=O?wt(h[M]):ze(h[M]);Oe.key!=null&&H.set(Oe.key,M)}let P,Z=0;const we=J-ee+1;let He=!1,qe=0;const rn=new Array(we);for(M=0;M<we;M++)rn[M]=0;for(M=U;M<=R;M++){const Oe=d[M];if(Z>=we){Ne(Oe,S,T,!0);continue}let Ve;if(Oe.key!=null)Ve=H.get(Oe.key);else for(P=ee;P<=J;P++)if(rn[P-ee]===0&&Kt(Oe,h[P])){Ve=P;break}Ve===void 0?Ne(Oe,S,T,!0):(rn[Ve-ee]=M+1,Ve>=qe?qe=Ve:He=!0,y(Oe,h[Ve],_,null,S,T,E,N,O),Z++)}const xo=He?Ta(rn):Gt;for(P=xo.length-1,M=we-1;M>=0;M--){const Oe=ee+M,Ve=h[Oe],Co=h[Oe+1],ko=Oe+1<q?Co.el||ki(Co):D;rn[M]===0?y(null,Ve,_,ko,S,T,E,N,O):He&&(P<0||M!==xo[P]?Ae(Ve,_,ko,2):P--)}}},Ae=(d,h,_,D,S=null)=>{const{el:T,type:E,transition:N,children:O,shapeFlag:M}=d;if(M&6){Ae(d.component.subTree,h,_,D);return}if(M&128){d.suspense.move(h,_,D);return}if(M&64){E.move(d,h,_,Pt);return}if(E===ve){s(T,h,_);for(let R=0;R<O.length;R++)Ae(O[R],h,_,D);s(d.anchor,h,_);return}if(E===Os){C(d,h,_);return}if(D!==2&&M&1&&N)if(D===0)N.beforeEnter(T),s(T,h,_),Te(()=>N.enter(T),S);else{const{leave:R,delayLeave:J,afterLeave:U}=N,ee=()=>{d.ctx.isUnmounted?o(T):s(T,h,_)},H=()=>{T._isLeaving&&T[Et](!0),R(T,()=>{ee(),U&&U()})};J?J(T,ee,H):H()}else s(T,h,_)},Ne=(d,h,_,D=!1,S=!1)=>{const{type:T,props:E,ref:N,children:O,dynamicChildren:M,shapeFlag:q,patchFlag:R,dirs:J,cacheIndex:U}=d;if(R===-2&&(S=!1),N!=null&&(it(),yn(N,null,_,d,!0),lt()),U!=null&&(h.renderCache[U]=void 0),q&256){h.ctx.deactivate(d);return}const ee=q&1&&J,H=!_n(d);let P;if(H&&(P=E&&E.onVnodeBeforeUnmount)&&Ye(P,h,d),q&6)Ht(d.component,_,D);else{if(q&128){d.suspense.unmount(_,D);return}ee&&Ot(d,null,h,"beforeUnmount"),q&64?d.type.remove(d,h,_,Pt,D):M&&!M.hasOnce&&(T!==ve||R>0&&R&64)?Dt(M,h,_,!1,!0):(T===ve&&R&384||!S&&q&16)&&Dt(O,h,_),D&&sn(d)}(H&&(P=E&&E.onVnodeUnmounted)||ee)&&Te(()=>{P&&Ye(P,h,d),ee&&Ot(d,null,h,"unmounted")},_)},sn=d=>{const{type:h,el:_,anchor:D,transition:S}=d;if(h===ve){Cs(_,D);return}if(h===Os){j(d);return}const T=()=>{o(_),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(d.shapeFlag&1&&S&&!S.persisted){const{leave:E,delayLeave:N}=S,O=()=>E(_,T);N?N(d.el,T,O):O()}else T()},Cs=(d,h)=>{let _;for(;d!==h;)_=p(d),o(d),d=_;o(h)},Ht=(d,h,_)=>{const{bum:D,scope:S,job:T,subTree:E,um:N,m:O,a:M}=d;Wo(O),Wo(M),D&&zn(D),S.stop(),T&&(T.flags|=8,Ne(E,d,h,_)),N&&Te(N,h),Te(()=>{d.isUnmounted=!0},h)},Dt=(d,h,_,D=!1,S=!1,T=0)=>{for(let E=T;E<d.length;E++)Ne(d[E],h,_,D,S)},qt=d=>{if(d.shapeFlag&6)return qt(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),_=h&&h[ti];return _?p(_):h};let on=!1;const Ln=(d,h,_)=>{let D;d==null?h._vnode&&(Ne(h._vnode,null,null,!0),D=h._vnode.component):y(h._vnode||null,d,h,null,null,null,_),h._vnode=d,on||(on=!0,Do(D),Gr(),on=!1)},Pt={p:y,um:Ne,m:Ae,r:sn,mt:ge,mc:ie,pc:G,pbc:Q,n:qt,o:e};return{render:Ln,hydrate:void 0,createApp:ua(Ln)}}function Ps({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function jt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vo(e,t,n=!1){const s=e.children,o=t.children;if(V(s)&&V(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=wt(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&vo(i,l)),l.type===_s&&(l.patchFlag!==-1?l.el=i.el:l.__elIndex=r+(e.type===ve?1:0)),l.type===ct&&!l.el&&(l.el=i.el)}}function Ta(e){const t=e.slice(),n=[0];let s,o,r,i,l;const c=e.length;for(s=0;s<c;s++){const f=e[s];if(f!==0){if(o=n[n.length-1],e[o]<f){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<f?r=l+1:i=l;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Ci(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ci(t)}function Wo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ki(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ki(t.subTree):null}const $i=e=>e.__isSuspense;function Ma(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Fl(e)}const ve=Symbol.for("v-fgt"),_s=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Os=Symbol.for("v-stc"),xn=[];let je=null;function x(e=!1){xn.push(je=e?null:[])}function Da(){xn.pop(),je=xn[xn.length-1]||null}let Tn=1;function Ho(e,t=!1){Tn+=e,e<0&&je&&t&&(je.hasOnce=!0)}function Si(e){return e.dynamicChildren=Tn>0?je||Gt:null,Da(),Tn>0&&je&&je.push(e),e}function k(e,t,n,s,o,r){return Si(a(e,t,n,s,o,r,!0))}function ls(e,t,n,s,o){return Si(de(e,t,n,s,o,!0))}function Ti(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const Mi=({key:e})=>e??null,Zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ke(e)||z(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function a(e,t=null,n=null,s=0,o=null,r=e===ve?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mi(t),ref:t&&Zn(t),scopeId:Xr,slotScopeIds:null,children:n,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:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Re};return l?(yo(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=be(n)?8:16),Tn>0&&!i&&je&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&je.push(c),c}const de=Pa;function Pa(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===na)&&(e=ct),Ti(e)){const l=Lt(e,t,!0);return n&&yo(l,n),Tn>0&&!r&&je&&(l.shapeFlag&6?je[je.indexOf(e)]=l:je.push(l)),l.patchFlag=-2,l}if(Ja(e)&&(e=e.__vccOpts),t){t=Oa(t);let{class:l,style:c}=t;l&&!be(l)&&(t.class=he(l)),ce(c)&&(mo(c)&&!V(c)&&(c=ye({},c)),t.style=pe(c))}const i=be(e)?1:$i(e)?128:Hl(e)?64:ce(e)?4:z(e)?2:0;return a(e,t,n,s,o,i,r,!0)}function Oa(e){return e?mo(e)||bi(e)?ye({},e):e:null}function Lt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,f=t?ja(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Mi(f),ref:t&&t.ref?n&&r?V(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(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!==ve?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Lt(e.ssContent),ssFallback:e.ssFallback&&Lt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Sn(u,c.clone(u)),u}function Ge(e=" ",t=0){return de(_s,null,e,t)}function I(e="",t=!1){return t?(x(),ls(ct,null,e)):de(ct,null,e)}function ze(e){return e==null||typeof e=="boolean"?de(ct):V(e)?de(ve,null,e.slice()):Ti(e)?wt(e):de(_s,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Lt(e)}function yo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),yo(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!bi(t)?t._ctx=Re:o===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else z(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),s&64?(n=16,t=[Ge(t)]):n=8);e.children=t,e.shapeFlag|=n}function ja(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=he([t.class,s.class]));else if(o==="style")t.style=pe([t.style,s.style]);else if(ds(o)){const r=t[o],i=s[o];i&&r!==i&&!(V(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function Ye(e,t,n,s=null){Je(e,t,7,[n,s])}const Aa=hi();let Na=0;function Ea(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Aa,r={uid:Na++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new il(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yi(s,o),emitsOptions:mi(s,o),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:s.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,suspense:n,suspenseId:n?n.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=da.bind(null,r),e.ce&&e.ce(r),r}let De=null;const Di=()=>De||Re;let as,Qs;{const e=ps(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};as=t("__VUE_INSTANCE_SETTERS__",n=>De=n),Qs=t("__VUE_SSR_SETTERS__",n=>Mn=n)}const Rn=e=>{const t=De;return as(e),e.scope.on(),()=>{e.scope.off(),as(t)}},qo=()=>{De&&De.scope.off(),as(null)};function Pi(e){return e.vnode.shapeFlag&4}let Mn=!1;function Ra(e,t=!1,n=!1){t&&Qs(t);const{props:s,children:o}=e.vnode,r=Pi(e);va(e,s,r,t),xa(e,o,n||t);const i=r?Fa(e,t):void 0;return t&&Qs(!1),i}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sa);const{setup:s}=n;if(s){it();const o=e.setupContext=s.length>1?La(e):null,r=Rn(e),i=An(s,e,0,[e.props,o]),l=Cr(i);if(lt(),r(),(l||e.sp)&&!_n(e)&&ii(e),l){if(i.then(qo,qo),t)return i.then(c=>{Vo(e,c)}).catch(c=>{bs(c,e,0)});e.asyncDep=i}else Vo(e,i)}else Oi(e)}function Vo(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Yr(t)),Oi(e)}function Oi(e,t,n){const s=e.type;e.render||(e.render=s.render||Xe);{const o=Rn(e);it();try{oa(e)}finally{lt(),o()}}}const Ia={get(e,t){return Ce(e,"get",""),e[t]}};function La(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ia),slots:e.slots,emit:e.emit,expose:t}}function ws(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yr(Tl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}})):e.proxy}function Ja(e){return z(e)&&"__vccOpts"in e}const Tt=(e,t)=>jl(e,t,Mn),Wa="3.5.27";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.27
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let Zs;const Yo=typeof window<"u"&&window.trustedTypes;if(Yo)try{Zs=Yo.createPolicy("vue",{createHTML:e=>e})}catch{}const ji=Zs?e=>Zs.createHTML(e):e=>e,Ha="http://www.w3.org/2000/svg",qa="http://www.w3.org/1998/Math/MathML",nt=typeof document<"u"?document:null,Uo=nt&&nt.createElement("template"),Va={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?nt.createElementNS(Ha,e):t==="mathml"?nt.createElementNS(qa,e):n?nt.createElement(e,{is:n}):nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Uo.innerHTML=ji(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Uo.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",an="animation",en=Symbol("_vtc"),Ai={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},Ya=ye({},Yl,Ai),At=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},Bo=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function Ua(e){const t={};for(const F in e)F in Ai||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:f=i,appearToClass:u=l,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,w=Ba(o),y=w&&w[0],$=w&&w[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:C,onLeave:j,onLeaveCancelled:K,onBeforeAppear:te=g,onAppear:ue=b,onAppearCancelled:ie=C}=t,W=(F,oe,ge,$e)=>{F._enterCancelled=$e,vt(F,oe?u:l),vt(F,oe?f:i),ge&&ge()},Q=(F,oe)=>{F._isLeaving=!1,vt(F,m),vt(F,v),vt(F,p),oe&&oe()},ne=F=>(oe,ge)=>{const $e=F?ue:b,me=()=>W(oe,F,ge);At($e,[oe,me]),Ko(()=>{vt(oe,F?c:r),Ue(oe,F?u:l),Bo($e)||Go(oe,s,y,me)})};return ye(t,{onBeforeEnter(F){At(g,[F]),Ue(F,r),Ue(F,i)},onBeforeAppear(F){At(te,[F]),Ue(F,c),Ue(F,f)},onEnter:ne(!1),onAppear:ne(!0),onLeave(F,oe){F._isLeaving=!0;const ge=()=>Q(F,oe);Ue(F,m),F._enterCancelled?(Ue(F,p),eo(F)):(eo(F),Ue(F,p)),Ko(()=>{F._isLeaving&&(vt(F,m),Ue(F,v),Bo(j)||Go(F,s,$,ge))}),At(j,[F,ge])},onEnterCancelled(F){W(F,!1,void 0,!0),At(C,[F])},onAppearCancelled(F){W(F,!0,void 0,!0),At(ie,[F])},onLeaveCancelled(F){Q(F),At(K,[F])}})}function Ba(e){if(e==null)return null;if(ce(e))return[js(e.enter),js(e.leave)];{const t=js(e);return[t,t]}}function js(e){return Qi(e)}function Ue(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[en]||(e[en]=new Set)).add(t)}function vt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[en];n&&(n.delete(t),n.size||(e[en]=void 0))}function Ko(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ka=0;function Go(e,t,n,s){const o=e._endId=++Ka,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:c}=Ni(e,t);if(!i)return s();const f=i+"end";let u=0;const m=()=>{e.removeEventListener(f,p),r()},p=v=>{v.target===e&&++u>=c&&m()};setTimeout(()=>{u<c&&m()},l+1),e.addEventListener(f,p)}function Ni(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),o=s(`${dt}Delay`),r=s(`${dt}Duration`),i=zo(o,r),l=s(`${an}Delay`),c=s(`${an}Duration`),f=zo(l,c);let u=null,m=0,p=0;t===dt?i>0&&(u=dt,m=i,p=r.length):t===an?f>0&&(u=an,m=f,p=c.length):(m=Math.max(i,f),u=m>0?i>f?dt:an:null,p=u?u===dt?r.length:c.length:0);const v=u===dt&&/\b(?:transform|all)(?:,|$)/.test(s(`${dt}Property`).toString());return{type:u,timeout:m,propCount:p,hasTransform:v}}function zo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Xo(n)+Xo(e[s])))}function Xo(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function eo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ga(e,t,n){const s=e[en];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Qo=Symbol("_vod"),za=Symbol("_vsh"),Xa=Symbol(""),Qa=/(?:^|;)\s*display\s*:/;function Za(e,t,n){const s=e.style,o=be(n);let r=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&es(s,l,"")}else for(const i in t)n[i]==null&&es(s,i,"");for(const i in n)i==="display"&&(r=!0),es(s,i,n[i])}else if(o){if(t!==n){const i=s[Xa];i&&(n+=";"+i),s.cssText=n,r=Qa.test(n)}}else t&&e.removeAttribute("style");Qo in e&&(e[Qo]=r?s.display:"",e[za]&&(s.display="none"))}const Zo=/\s*!important$/;function es(e,t,n){if(V(n))n.forEach(s=>es(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ec(e,t);Zo.test(n)?e.setProperty(Jt(s),n.replace(Zo,""),"important"):e[s]=n}}const er=["Webkit","Moz","ms"],As={};function ec(e,t){const n=As[t];if(n)return n;let s=$t(t);if(s!=="filter"&&s in e)return As[t]=s;s=Sr(s);for(let o=0;o<er.length;o++){const r=er[o]+s;if(r in e)return As[t]=r}return t}const tr="http://www.w3.org/1999/xlink";function nr(e,t,n,s,o,r=ol(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(tr,t.slice(6,t.length)):e.setAttributeNS(tr,t,n):n==null||r&&!Mr(n)?e.removeAttribute(t):e.setAttribute(t,r?"":Qe(n)?String(n):n)}function sr(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ji(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Mr(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function xt(e,t,n,s){e.addEventListener(t,n,s)}function tc(e,t,n,s){e.removeEventListener(t,n,s)}const or=Symbol("_vei");function nc(e,t,n,s,o=null){const r=e[or]||(e[or]={}),i=r[t];if(s&&i)i.value=s;else{const[l,c]=sc(t);if(s){const f=r[t]=ic(s,o);xt(e,l,f,c)}else i&&(tc(e,l,i,c),r[t]=void 0)}}const rr=/(?:Once|Passive|Capture)$/;function sc(e){let t;if(rr.test(e)){t={};let s;for(;s=e.match(rr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jt(e.slice(2)),t]}let Ns=0;const oc=Promise.resolve(),rc=()=>Ns||(oc.then(()=>Ns=0),Ns=Date.now());function ic(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Je(lc(s,n.value),t,5,[s])};return n.value=e,n.attached=rc(),n}function lc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const ir=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ac=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Ga(e,s,i):t==="style"?Za(e,n,s):ds(t)?no(t)||nc(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cc(e,t,s,i))?(sr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nr(e,t,s,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(s))?sr(e,$t(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),nr(e,t,s,i))};function cc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ir(t)&&z(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ir(t)&&be(n)?!1:t in e}const Ei=new WeakMap,Ri=new WeakMap,cs=Symbol("_moveCb"),lr=Symbol("_enterCb"),uc=e=>(delete e.props.mode,e),fc=uc({name:"TransitionGroup",props:ye({},Ya,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Di(),s=Vl();let o,r;return ci(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!gc(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(hc),o.forEach(mc);const l=o.filter(pc);eo(n.vnode.el),l.forEach(c=>{const f=c.el,u=f.style;Ue(f,i),u.transform=u.webkitTransform=u.transitionDuration="";const m=f[cs]=p=>{p&&p.target!==f||(!p||p.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",m),f[cs]=null,vt(f,i))};f.addEventListener("transitionend",m)}),o=[]}),()=>{const i=se(e),l=Ua(i);let c=i.tag||ve;if(o=[],r)for(let f=0;f<r.length;f++){const u=r[f];u.el&&u.el instanceof Element&&(o.push(u),Sn(u,Bs(u,l,s,n)),Ei.set(u,{left:u.el.offsetLeft,top:u.el.offsetTop}))}r=t.default?ri(t.default()):[];for(let f=0;f<r.length;f++){const u=r[f];u.key!=null&&Sn(u,Bs(u,l,s,n))}return de(c,null,r)}}}),dc=fc;function hc(e){const t=e.el;t[cs]&&t[cs](),t[lr]&&t[lr]()}function mc(e){Ri.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function pc(e){const t=Ei.get(e),n=Ri.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",e}}function gc(e,t,n){const s=e.cloneNode(),o=e[en];o&&o.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Ni(s);return r.removeChild(s),i}const tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>zn(t,n):t};function bc(e){e.target.composing=!0}function ar(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function cr(e,t,n){return t&&(e=e.trim()),n&&(e=ms(e)),e}const Ct={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[rt]=tn(o);const r=s||o.props&&o.props.type==="number";xt(e,t?"change":"input",i=>{i.target.composing||e[rt](cr(e.value,n,r))}),(n||r)&&xt(e,"change",()=>{e.value=cr(e.value,n,r)}),t||(xt(e,"compositionstart",bc),xt(e,"compositionend",ar),xt(e,"change",ar))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[rt]=tn(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?ms(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===c)||(e.value=c))}},vc={deep:!0,created(e,t,n){e[rt]=tn(n),xt(e,"change",()=>{const s=e._modelValue,o=Dn(e),r=e.checked,i=e[rt];if(V(s)){const l=ro(s,o),c=l!==-1;if(r&&!c)i(s.concat(o));else if(!r&&c){const f=[...s];f.splice(l,1),i(f)}}else if(nn(s)){const l=new Set(s);r?l.add(o):l.delete(o),i(l)}else i(Fi(e,r))})},mounted:ur,beforeUpdate(e,t,n){e[rt]=tn(n),ur(e,t,n)}};function ur(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(V(t))o=ro(t,s.props.value)>-1;else if(nn(t))o=t.has(s.props.value);else{if(t===n)return;o=jn(t,Fi(e,!0))}e.checked!==o&&(e.checked=o)}const yc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const o=nn(t);xt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ms(Dn(i)):Dn(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Br(()=>{e._assigning=!1})}),e[rt]=tn(s)},mounted(e,{value:t}){fr(e,t)},beforeUpdate(e,t,n){e[rt]=tn(n)},updated(e,{value:t}){e._assigning||fr(e,t)}};function fr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!nn(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=Dn(i);if(n)if(s){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(f=>String(f)===String(l)):i.selected=ro(t,l)>-1}else i.selected=t.has(l);else if(jn(Dn(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Dn(e){return"_value"in e?e._value:e.value}function Fi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _c=["ctrl","shift","alt","meta"],wc={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)=>_c.some(n=>e[`${n}Key`]&&!t.includes(n))},xe=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...r)=>{for(let i=0;i<t.length;i++){const l=wc[t[i]];if(l&&l(o,t))return}return e(o,...r)}))},xc=ye({patchProp:ac},Va);let dr;function Cc(){return dr||(dr=ka(xc))}const kc=((...e)=>{const t=Cc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Sc(s);if(!o)return;const r=t._component;!z(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,$c(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function $c(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Sc(e){return be(e)?document.querySelector(e):e}const Mt="api";async function Wt(e,t){const n=await fetch(e,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return n.json()}async function Tc(e={}){const t=new URLSearchParams;e.limit!==void 0&&t.set("limit",String(e.limit)),e.name&&t.set("job",e.name),e.skip!==void 0&&t.set("skip",String(e.skip)),e.property&&t.set("property",e.property),e.isObjectId==="true"&&t.set("isObjectId","true"),e.state&&t.set("state",e.state),e.search&&t.set("q",e.search);const n=`${Mt}?${t.toString()}`;return Wt(n)}async function Mc(e){return Wt(`${Mt}/jobs/requeue`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function Dc(e){return Wt(`${Mt}/jobs/delete`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function Pc(e){return Wt(`${Mt}/jobs/create`,{method:"POST",body:JSON.stringify(e)})}async function Oc(e){return Wt(`${Mt}/jobs/pause`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function jc(e){return Wt(`${Mt}/jobs/resume`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function Ii(e=!1){const t=e?`${Mt}/stats?fullDetails=true`:`${Mt}/stats`;return Wt(t)}const Ac={class:"p-3 sidebar-container"},Nc={key:0,class:"sidebar-loading-indicator"},Ec={class:"stats-summary-header"},Rc={key:0,class:"spinner-border spinner-border-sm"},Fc={key:0,class:"stats-summary-badges"},Ic={class:"stats-badge running"},Lc={class:"stats-badge queued"},Jc={class:"stats-badge locked"},Wc={key:1,class:"text-center py-4 text-muted"},Hc={key:2,class:"job-list"},qc=["onClick"],Vc={key:0,class:"status-dots"},Yc=["title"],Uc=["title"],Bc=["title"],Kc=["title"],Gc=["title"],zc=["title"],Xc=["title"],Qc={class:"job-total"},Zc={key:0,class:"mini-progress mx-4 mb-1"},eu={key:1,class:"job-details"},tu=["onClick"],nu={class:"count"},su=["onClick"],ou={class:"count"},ru=["onClick"],iu={class:"count"},lu=["onClick"],au={class:"count"},cu=["onClick"],uu={class:"count"},fu=["onClick"],du={class:"count"},hu=["onClick"],mu={class:"count"},pu=ut({__name:"Sidebar",props:{overview:{},pageSize:{},loading:{type:Boolean},currentFilters:{},showingStats:{type:Boolean}},emits:["search","new-job","show-stats"],setup(e,{emit:t}){const n=e,s=t,o=B(new Set(["All Jobs"])),r=B(null),i=B(!1);let l=null;async function c(){i.value=!0;try{r.value=await Ii(!1)}catch(y){console.error("Failed to fetch stats:",y)}finally{i.value=!1}}Nn(()=>{c(),l=setInterval(c,5e3)}),En(()=>{l&&clearInterval(l)});function f(y){if(n.showingStats)return!1;const $=n.currentFilters.name||"";return y==="All Jobs"?$===""||$==="All Jobs":$===y}function u(y,$){return f(y)?(n.currentFilters.state||"")===$:!1}function m(y){return o.value.has(y)}function p(y){const $=f(y),g=!!n.currentFilters.state;$&&!g&&o.value.has(y)?o.value.delete(y):o.value.add(y),s("search",y,"")}function v(y,$=""){s("search",y,$)}function w(y){return{scheduled:"#17a2b8",queued:"#4a6fa5",running:"#ffc107",completed:"#28a745",failed:"#dc3545",repeating:"#98c1d9",paused:"#6c757d"}[y]||"#6c757d"}return(y,$)=>(x(),k("div",Ac,[e.loading&&e.overview.length>0?(x(),k("div",Nc,[...$[2]||($[2]=[a("div",{class:"spinner-border spinner-border-sm"},null,-1)])])):I("",!0),a("button",{class:"btn btn-success btn-sm w-100 mb-3",onClick:$[0]||($[0]=g=>y.$emit("new-job"))}," + New Job "),a("div",{class:he(["stats-summary-card mb-3",{"stats-selected":e.showingStats}]),onClick:$[1]||($[1]=g=>y.$emit("show-stats"))},[a("div",Ec,[$[3]||($[3]=a("span",{class:"stats-summary-title"},"Agenda Status",-1)),i.value?(x(),k("span",Rc)):I("",!0)]),r.value?(x(),k("div",Fc,[a("span",Ic,A(typeof r.value.runningJobs=="number"?r.value.runningJobs:r.value.runningJobs.length)+" running",1),a("span",Lc,A(typeof r.value.queuedJobs=="number"?r.value.queuedJobs:r.value.queuedJobs.length)+" queued",1),a("span",Jc,A(typeof r.value.lockedJobs=="number"?r.value.lockedJobs:r.value.lockedJobs.length)+" locked",1)])):I("",!0)],2),e.loading&&e.overview.length===0?(x(),k("div",Wc,[...$[4]||($[4]=[a("div",{class:"spinner-border spinner-border-sm mb-2"},null,-1),a("small",{class:"d-block"},"Loading...",-1)])])):I("",!0),e.overview.length>0?(x(),k("div",Hc,[(x(!0),k(ve,null,St(e.overview,g=>(x(),k("div",{key:g.displayName,class:"job-item mb-1"},[a("div",{class:he(["job-header d-flex align-items-center",{"job-header-selected":f(g.displayName)&&!e.currentFilters.state}]),onClick:b=>p(g.displayName)},[a("span",{class:he(["expand-icon",{rotated:m(g.displayName)}])},"►",2),a("span",{class:he(["job-name flex-grow-1",{"job-name-selected":f(g.displayName)}])},A(g.displayName),3),m(g.displayName)?I("",!0):(x(),k("span",Vc,[g.scheduled?(x(),k("span",{key:0,class:"status-dot",style:pe({backgroundColor:w("scheduled")}),title:`${g.scheduled} scheduled`},null,12,Yc)):I("",!0),g.queued?(x(),k("span",{key:1,class:"status-dot",style:pe({backgroundColor:w("queued")}),title:`${g.queued} queued`},null,12,Uc)):I("",!0),g.running?(x(),k("span",{key:2,class:"status-dot",style:pe({backgroundColor:w("running")}),title:`${g.running} running`},null,12,Bc)):I("",!0),g.completed?(x(),k("span",{key:3,class:"status-dot",style:pe({backgroundColor:w("completed")}),title:`${g.completed} completed`},null,12,Kc)):I("",!0),g.failed?(x(),k("span",{key:4,class:"status-dot",style:pe({backgroundColor:w("failed")}),title:`${g.failed} failed`},null,12,Gc)):I("",!0),g.repeating?(x(),k("span",{key:5,class:"status-dot",style:pe({backgroundColor:w("repeating")}),title:`${g.repeating} repeating`},null,12,zc)):I("",!0),g.paused?(x(),k("span",{key:6,class:"status-dot",style:pe({backgroundColor:w("paused")}),title:`${g.paused} paused`},null,12,Xc)):I("",!0)])),a("span",Qc,A(g.total),1)],10,qc),m(g.displayName)?(x(),k("div",Zc,[g.scheduled?(x(),k("div",{key:0,class:"mini-bar",style:pe({flex:g.scheduled,backgroundColor:w("scheduled")})},null,4)):I("",!0),g.queued?(x(),k("div",{key:1,class:"mini-bar",style:pe({flex:g.queued,backgroundColor:w("queued")})},null,4)):I("",!0),g.running?(x(),k("div",{key:2,class:"mini-bar",style:pe({flex:g.running,backgroundColor:w("running")})},null,4)):I("",!0),g.completed?(x(),k("div",{key:3,class:"mini-bar",style:pe({flex:g.completed,backgroundColor:w("completed")})},null,4)):I("",!0),g.failed?(x(),k("div",{key:4,class:"mini-bar",style:pe({flex:g.failed,backgroundColor:w("failed")})},null,4)):I("",!0),g.paused?(x(),k("div",{key:5,class:"mini-bar",style:pe({flex:g.paused,backgroundColor:w("paused")})},null,4)):I("",!0)])):I("",!0),m(g.displayName)?(x(),k("div",eu,[a("div",{class:he(["detail-row",{"detail-row-selected":u(g.displayName,"scheduled")}]),onClick:b=>v(g.displayName,"scheduled")},[a("span",{class:"dot",style:pe({backgroundColor:w("scheduled")})},null,4),$[5]||($[5]=a("span",{class:"label"},"Scheduled",-1)),a("span",nu,A(g.scheduled),1)],10,tu),a("div",{class:he(["detail-row",{"detail-row-selected":u(g.displayName,"queued")}]),onClick:b=>v(g.displayName,"queued")},[a("span",{class:"dot",style:pe({backgroundColor:w("queued")})},null,4),$[6]||($[6]=a("span",{class:"label"},"Queued",-1)),a("span",ou,A(g.queued),1)],10,su),a("div",{class:he(["detail-row",{"detail-row-selected":u(g.displayName,"running")}]),onClick:b=>v(g.displayName,"running")},[a("span",{class:"dot",style:pe({backgroundColor:w("running")})},null,4),$[7]||($[7]=a("span",{class:"label"},"Running",-1)),a("span",iu,A(g.running),1)],10,ru),a("div",{class:he(["detail-row",{"detail-row-selected":u(g.displayName,"completed")}]),onClick:b=>v(g.displayName,"completed")},[a("span",{class:"dot",style:pe({backgroundColor:w("completed")})},null,4),$[8]||($[8]=a("span",{class:"label"},"Completed",-1)),a("span",au,A(g.completed),1)],10,lu),a("div",{class:he(["detail-row",{"detail-row-selected":u(g.displayName,"failed")}]),onClick:b=>v(g.displayName,"failed")},[a("span",{class:"dot",style:pe({backgroundColor:w("failed")})},null,4),$[9]||($[9]=a("span",{class:"label"},"Failed",-1)),a("span",uu,A(g.failed),1)],10,cu),a("div",{class:he(["detail-row",{"detail-row-selected":u(g.displayName,"repeating")}]),onClick:b=>v(g.displayName,"repeating")},[a("span",{class:"dot",style:pe({backgroundColor:w("repeating")})},null,4),$[10]||($[10]=a("span",{class:"label"},"Repeating",-1)),a("span",du,A(g.repeating),1)],10,fu),g.paused?(x(),k("div",{key:0,class:he(["detail-row",{"detail-row-selected":u(g.displayName,"paused")}]),onClick:b=>v(g.displayName,"paused")},[a("span",{class:"dot",style:pe({backgroundColor:w("paused")})},null,4),$[11]||($[11]=a("span",{class:"label"},"Paused",-1)),a("span",mu,A(g.paused),1)],10,hu)):I("",!0)])):I("",!0)]))),128))])):I("",!0)]))}}),Fn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},hr=Fn(pu,[["__scopeId","data-v-3c13e3c1"]]),gu={class:"row"},bu={class:"col-xs-12 col-md-6"},vu={class:"input-group mt-2 mb-2"},yu={class:"input-group mt-2 mb-2"},_u={class:"input-group mt-2 mb-2"},wu={class:"form-check mx-2 pt-2"},xu={class:"col-xs-12 col-md-6"},Cu={class:"input-group mt-2 mb-2"},ku={class:"input-group mt-2 mb-2"},$u=["value"],Su=ut({__name:"Topbar",props:{currentFilters:{}},emits:["search"],setup(e,{emit:t}){const n=e,s=t,o=B(""),r=B(""),i=B(""),l=B(!1),c=B(50),f=B("");bn(()=>n.currentFilters,p=>{o.value=p.name||"",f.value=p.state||"",r.value=p.property||"",i.value=p.search||"",l.value=p.isObjectId||!1,c.value=p.limit||50},{immediate:!0});const u=[{text:"All",value:"",class:""},{text:"Scheduled",value:"scheduled",class:""},{text:"Queued",value:"queued",class:"text-primary"},{text:"Running",value:"running",class:"text-warning"},{text:"Completed",value:"completed",class:"text-success"},{text:"Failed",value:"failed",class:"text-danger"},{text:"Repeating",value:"repeating",class:"text-info"}];function m(){s("search",{name:o.value,search:i.value,property:r.value,limit:c.value,skip:0,state:f.value,isObjectId:l.value})}return(p,v)=>(x(),k("form",{onSubmit:xe(m,["prevent"])},[a("div",gu,[a("div",bu,[a("div",vu,[v[6]||(v[6]=a("span",{class:"input-group-text"},"Name",-1)),Ke(a("input",{"onUpdate:modelValue":v[0]||(v[0]=w=>o.value=w),type:"text",class:"form-control",placeholder:"job name"},null,512),[[Ct,o.value]])]),a("div",yu,[v[7]||(v[7]=a("span",{class:"input-group-text"},"Property",-1)),Ke(a("input",{"onUpdate:modelValue":v[1]||(v[1]=w=>r.value=w),type:"text",class:"form-control",placeholder:"data.color"},null,512),[[Ct,r.value]])]),a("div",_u,[v[9]||(v[9]=a("span",{class:"input-group-text"},"Value",-1)),Ke(a("input",{"onUpdate:modelValue":v[2]||(v[2]=w=>i.value=w),class:"form-control",placeholder:"green"},null,512),[[Ct,i.value]]),a("div",wu,[Ke(a("input",{id:"isObjectId","onUpdate:modelValue":v[3]||(v[3]=w=>l.value=w),type:"checkbox",class:"form-check-input"},null,512),[[vc,l.value]]),v[8]||(v[8]=a("label",{class:"form-check-label",for:"isObjectId"},"Is ObjectId?",-1))])])]),a("div",xu,[a("div",Cu,[v[10]||(v[10]=a("span",{class:"input-group-text"},"Page Size",-1)),Ke(a("input",{"onUpdate:modelValue":v[4]||(v[4]=w=>c.value=w),type:"number",class:"form-control"},null,512),[[Ct,c.value,void 0,{number:!0}]])]),a("div",ku,[v[11]||(v[11]=a("span",{class:"input-group-text"},"State",-1)),Ke(a("select",{id:"selectStateInput","onUpdate:modelValue":v[5]||(v[5]=w=>f.value=w),class:"form-select"},[(x(),k(ve,null,St(u,w=>a("option",{key:w.value,value:w.value,class:he(w.class)},A(w.text),11,$u)),64))],512),[[yc,f.value]])])])]),v[12]||(v[12]=a("div",{class:"row mb-3"},[a("div",{class:"col-xs-12 col-md-3 ms-auto text-end"},[a("button",{type:"submit",class:"d-none d-md-inline-block btn btn-success"},"Apply"),a("button",{type:"submit",class:"d-inline-block d-md-none btn btn-block w-100 btn-success"}," Apply ")])],-1))],32))}}),Li=6048e5,Tu=864e5,Ji=6e4,Wi=36e5,Yn=43200,mr=1440,pr=Symbol.for("constructDateFrom");function Ze(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pr in e?e[pr](t):e instanceof Date?new e.constructor(t):new Date(t)}function _e(e,t){return Ze(t||e,e)}let Mu={};function In(){return Mu}function Pn(e,t){var l,c,f,u;const n=In(),s=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(f=n.locale)==null?void 0:f.options)==null?void 0:u.weekStartsOn)??0,o=_e(e,t==null?void 0:t.in),r=o.getDay(),i=(r<s?7:0)+r-s;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function us(e,t){return Pn(e,{...t,weekStartsOn:1})}function Hi(e,t){const n=_e(e,t==null?void 0:t.in),s=n.getFullYear(),o=Ze(n,0);o.setFullYear(s+1,0,4),o.setHours(0,0,0,0);const r=us(o),i=Ze(n,0);i.setFullYear(s,0,4),i.setHours(0,0,0,0);const l=us(i);return n.getTime()>=r.getTime()?s+1:n.getTime()>=l.getTime()?s:s-1}function fs(e){const t=_e(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function xs(e,...t){const n=Ze.bind(null,e||t.find(s=>typeof s=="object"));return t.map(n)}function gr(e,t){const n=_e(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Du(e,t,n){const[s,o]=xs(n==null?void 0:n.in,e,t),r=gr(s),i=gr(o),l=+r-fs(r),c=+i-fs(i);return Math.round((l-c)/Tu)}function Pu(e,t){const n=Hi(e,t),s=Ze(e,0);return s.setFullYear(n,0,4),s.setHours(0,0,0,0),us(s)}function ts(e,t){const n=+_e(e)-+_e(t);return n<0?-1:n>0?1:n}function Ou(e){return Ze(e,Date.now())}function ju(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Au(e){return!(!ju(e)&&typeof e!="number"||isNaN(+_e(e)))}function Nu(e,t,n){const[s,o]=xs(n==null?void 0:n.in,e,t),r=s.getFullYear()-o.getFullYear(),i=s.getMonth()-o.getMonth();return r*12+i}function Eu(e){return t=>{const s=(e?Math[e]:Math.trunc)(t);return s===0?0:s}}function Ru(e,t){return+_e(e)-+_e(t)}function Fu(e,t){const n=_e(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function Iu(e,t){const n=_e(e,t==null?void 0:t.in),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function Lu(e,t){const n=_e(e,t==null?void 0:t.in);return+Fu(n,t)==+Iu(n,t)}function Ju(e,t,n){const[s,o,r]=xs(n==null?void 0:n.in,e,e,t),i=ts(o,r),l=Math.abs(Nu(o,r));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*l);let c=ts(o,r)===-i;Lu(s)&&l===1&&ts(s,r)===1&&(c=!1);const f=i*(l-+c);return f===0?0:f}function Wu(e,t,n){const s=Ru(e,t)/1e3;return Eu(n==null?void 0:n.roundingMethod)(s)}function Hu(e,t){const n=_e(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const qu={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"}},Vu=(e,t,n)=>{let s;const o=qu[e];return typeof o=="string"?s=o:t===1?s=o.one:s=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Es(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Uu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Bu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ku={date:Es({formats:Yu,defaultWidth:"full"}),time:Es({formats:Uu,defaultWidth:"full"}),dateTime:Es({formats:Bu,defaultWidth:"full"})},Gu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zu=(e,t,n,s)=>Gu[e];function cn(e){return(t,n)=>{const s=n!=null&&n.context?String(n.context):"standalone";let o;if(s==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}const r=e.argumentCallback?e.argumentCallback(t):t;return o[r]}}const Xu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zu={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"]},ef={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"]},tf={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"}},nf={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"}},sf=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},of={ordinalNumber:sf,era:cn({values:Xu,defaultWidth:"wide"}),quarter:cn({values:Qu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cn({values:Zu,defaultWidth:"wide"}),day:cn({values:ef,defaultWidth:"wide"}),dayPeriod:cn({values:tf,defaultWidth:"wide",formattingValues:nf,defaultFormattingWidth:"wide"})};function un(e){return(t,n={})=>{const s=n.width,o=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],r=t.match(o);if(!r)return null;const i=r[0],l=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?lf(l,m=>m.test(i)):rf(l,m=>m.test(i));let f;f=e.valueCallback?e.valueCallback(c):c,f=n.valueCallback?n.valueCallback(f):f;const u=t.slice(i.length);return{value:f,rest:u}}}function rf(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lf(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function af(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const o=s[0],r=t.match(e.parsePattern);if(!r)return null;let i=e.valueCallback?e.valueCallback(r[0]):r[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(o.length);return{value:i,rest:l}}}const cf=/^(\d+)(th|st|nd|rd)?/i,uf=/\d+/i,ff={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},df={any:[/^b/i,/^(a|c)/i]},hf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mf={any:[/1/i,/2/i,/3/i,/4/i]},pf={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},gf={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]},bf={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},vf={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]},yf={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},_f={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}},wf={ordinalNumber:af({matchPattern:cf,parsePattern:uf,valueCallback:e=>parseInt(e,10)}),era:un({matchPatterns:ff,defaultMatchWidth:"wide",parsePatterns:df,defaultParseWidth:"any"}),quarter:un({matchPatterns:hf,defaultMatchWidth:"wide",parsePatterns:mf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:un({matchPatterns:pf,defaultMatchWidth:"wide",parsePatterns:gf,defaultParseWidth:"any"}),day:un({matchPatterns:bf,defaultMatchWidth:"wide",parsePatterns:vf,defaultParseWidth:"any"}),dayPeriod:un({matchPatterns:yf,defaultMatchWidth:"any",parsePatterns:_f,defaultParseWidth:"any"})},qi={code:"en-US",formatDistance:Vu,formatLong:Ku,formatRelative:zu,localize:of,match:wf,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xf(e,t){const n=_e(e,t==null?void 0:t.in);return Du(n,Hu(n))+1}function Cf(e,t){const n=_e(e,t==null?void 0:t.in),s=+us(n)-+Pu(n);return Math.round(s/Li)+1}function Vi(e,t){var u,m,p,v;const n=_e(e,t==null?void 0:t.in),s=n.getFullYear(),o=In(),r=(t==null?void 0:t.firstWeekContainsDate)??((m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(p=o.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,i=Ze((t==null?void 0:t.in)||e,0);i.setFullYear(s+1,0,r),i.setHours(0,0,0,0);const l=Pn(i,t),c=Ze((t==null?void 0:t.in)||e,0);c.setFullYear(s,0,r),c.setHours(0,0,0,0);const f=Pn(c,t);return+n>=+l?s+1:+n>=+f?s:s-1}function kf(e,t){var l,c,f,u;const n=In(),s=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(f=n.locale)==null?void 0:f.options)==null?void 0:u.firstWeekContainsDate)??1,o=Vi(e,t),r=Ze((t==null?void 0:t.in)||e,0);return r.setFullYear(o,0,s),r.setHours(0,0,0,0),Pn(r,t)}function $f(e,t){const n=_e(e,t==null?void 0:t.in),s=+Pn(n,t)-+kf(n,t);return Math.round(s/Li)+1}function le(e,t){const n=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return n+s}const ht={y(e,t){const n=e.getFullYear(),s=n>0?n:1-n;return le(t==="yy"?s%100:s,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):le(n+1,2)},d(e,t){return le(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return le(e.getHours()%12||12,t.length)},H(e,t){return le(e.getHours(),t.length)},m(e,t){return le(e.getMinutes(),t.length)},s(e,t){return le(e.getSeconds(),t.length)},S(e,t){const n=t.length,s=e.getMilliseconds(),o=Math.trunc(s*Math.pow(10,n-3));return le(o,t.length)}},Yt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},br={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});case"GGGG":default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const s=e.getFullYear(),o=s>0?s:1-s;return n.ordinalNumber(o,{unit:"year"})}return ht.y(e,t)},Y:function(e,t,n,s){const o=Vi(e,s),r=o>0?o:1-o;if(t==="YY"){const i=r%100;return le(i,2)}return t==="Yo"?n.ordinalNumber(r,{unit:"year"}):le(r,t.length)},R:function(e,t){const n=Hi(e);return le(n,t.length)},u:function(e,t){const n=e.getFullYear();return le(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return le(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return le(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return ht.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return le(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const o=$f(e,s);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):le(o,t.length)},I:function(e,t,n){const s=Cf(e);return t==="Io"?n.ordinalNumber(s,{unit:"week"}):le(s,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ht.d(e,t)},D:function(e,t,n){const s=xf(e);return t==="Do"?n.ordinalNumber(s,{unit:"dayOfYear"}):le(s,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});case"EEEE":default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const o=e.getDay(),r=(o-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return le(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const o=e.getDay(),r=(o-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return le(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),o=s===0?7:s;switch(t){case"i":return String(o);case"ii":return le(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});case"iiii":default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let o;switch(s===12?o=Yt.noon:s===0?o=Yt.midnight:o=s/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let o;switch(s>=17?o=Yt.evening:s>=12?o=Yt.afternoon:s>=4?o=Yt.morning:o=Yt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),n.ordinalNumber(s,{unit:"hour"})}return ht.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ht.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return t==="Ko"?n.ordinalNumber(s,{unit:"hour"}):le(s,t.length)},k:function(e,t,n){let s=e.getHours();return s===0&&(s=24),t==="ko"?n.ordinalNumber(s,{unit:"hour"}):le(s,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ht.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ht.s(e,t)},S:function(e,t){return ht.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return yr(s);case"XXXX":case"XX":return Rt(s);case"XXXXX":case"XXX":default:return Rt(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return yr(s);case"xxxx":case"xx":return Rt(s);case"xxxxx":case"xxx":default:return Rt(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vr(s,":");case"OOOO":default:return"GMT"+Rt(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vr(s,":");case"zzzz":default:return"GMT"+Rt(s,":")}},t:function(e,t,n){const s=Math.trunc(+e/1e3);return le(s,t.length)},T:function(e,t,n){return le(+e,t.length)}};function vr(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),o=Math.trunc(s/60),r=s%60;return r===0?n+String(o):n+String(o)+t+le(r,2)}function yr(e,t){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):Rt(e,t)}function Rt(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),o=le(Math.trunc(s/60),2),r=le(s%60,2);return n+o+t+r}const _r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Yi=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Sf=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],o=n[2];if(!o)return _r(e,t);let r;switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",_r(s,t)).replace("{{time}}",Yi(o,t))},Tf={p:Yi,P:Sf},Mf=/^D+$/,Df=/^Y+$/,Pf=["D","DD","YY","YYYY"];function Of(e){return Mf.test(e)}function jf(e){return Df.test(e)}function Af(e,t,n){const s=Nf(e,t,n);if(console.warn(s),Pf.includes(e))throw new RangeError(s)}function Nf(e,t,n){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ef=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ff=/^'([^]*?)'?$/,If=/''/g,Lf=/[a-zA-Z]/;function Jf(e,t,n){var u,m,p,v;const s=In(),o=s.locale??qi,r=s.firstWeekContainsDate??((m=(u=s.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,i=s.weekStartsOn??((v=(p=s.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,l=_e(e,n==null?void 0:n.in);if(!Au(l))throw new RangeError("Invalid time value");let c=t.match(Rf).map(w=>{const y=w[0];if(y==="p"||y==="P"){const $=Tf[y];return $(w,o.formatLong)}return w}).join("").match(Ef).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const y=w[0];if(y==="'")return{isToken:!1,value:Wf(w)};if(br[y])return{isToken:!0,value:w};if(y.match(Lf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const f={firstWeekContainsDate:r,weekStartsOn:i,locale:o};return c.map(w=>{if(!w.isToken)return w.value;const y=w.value;(jf(y)||Of(y))&&Af(y,t,String(e));const $=br[y[0]];return $(l,y,o.localize,f)}).join("")}function Wf(e){const t=e.match(Ff);return t?t[1].replace(If,"'"):e}function Hf(e,t,n){const s=In(),o=(n==null?void 0:n.locale)??s.locale??qi,r=2520,i=ts(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[c,f]=xs(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=Wu(f,c),m=(fs(f)-fs(c))/1e3,p=Math.round((u-m)/60);let v;if(p<2)return n!=null&&n.includeSeconds?u<5?o.formatDistance("lessThanXSeconds",5,l):u<10?o.formatDistance("lessThanXSeconds",10,l):u<20?o.formatDistance("lessThanXSeconds",20,l):u<40?o.formatDistance("halfAMinute",0,l):u<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):p===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",p,l);if(p<45)return o.formatDistance("xMinutes",p,l);if(p<90)return o.formatDistance("aboutXHours",1,l);if(p<mr){const w=Math.round(p/60);return o.formatDistance("aboutXHours",w,l)}else{if(p<r)return o.formatDistance("xDays",1,l);if(p<Yn){const w=Math.round(p/mr);return o.formatDistance("xDays",w,l)}else if(p<Yn*2)return v=Math.round(p/Yn),o.formatDistance("aboutXMonths",v,l)}if(v=Ju(f,c),v<12){const w=Math.round(p/Yn);return o.formatDistance("xMonths",w,l)}else{const w=v%12,y=Math.trunc(v/12);return w<3?o.formatDistance("aboutXYears",y,l):w<9?o.formatDistance("overXYears",y,l):o.formatDistance("almostXYears",y+1,l)}}function qf(e,t){return Hf(e,Ou(e),t)}function _o(e,t){const n=()=>Ze(t==null?void 0:t.in,NaN),o=Bf(e);let r;if(o.date){const f=Kf(o.date,2);r=Gf(f.restDateString,f.year)}if(!r||isNaN(+r))return n();const i=+r;let l=0,c;if(o.time&&(l=zf(o.time),isNaN(l)))return n();if(o.timezone){if(c=Xf(o.timezone),isNaN(c))return n()}else{const f=new Date(i+l),u=_e(0,t==null?void 0:t.in);return u.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),u.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),u}return _e(i+l+c,t==null?void 0:t.in)}const Un={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Vf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Yf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Uf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bf(e){const t={},n=e.split(Un.dateTimeDelimiter);let s;if(n.length>2)return t;if(/:/.test(n[0])?s=n[0]:(t.date=n[0],s=n[1],Un.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Un.timeZoneDelimiter)[0],s=e.substr(t.date.length,e.length))),s){const o=Un.timezone.exec(s);o?(t.time=s.replace(o[1],""),t.timezone=o[1]):t.time=s}return t}function Kf(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=e.match(n);if(!s)return{year:NaN,restDateString:""};const o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:r===null?o:r*100,restDateString:e.slice((s[1]||s[2]).length)}}function Gf(e,t){if(t===null)return new Date(NaN);const n=e.match(Vf);if(!n)return new Date(NaN);const s=!!n[4],o=fn(n[1]),r=fn(n[2])-1,i=fn(n[3]),l=fn(n[4]),c=fn(n[5])-1;if(s)return nd(t,l,c)?Qf(t,l,c):new Date(NaN);{const f=new Date(0);return!ed(t,r,i)||!td(t,o)?new Date(NaN):(f.setUTCFullYear(t,r,Math.max(o,i)),f)}}function fn(e){return e?parseInt(e):1}function zf(e){const t=e.match(Yf);if(!t)return NaN;const n=Rs(t[1]),s=Rs(t[2]),o=Rs(t[3]);return sd(n,s,o)?n*Wi+s*Ji+o*1e3:NaN}function Rs(e){return e&&parseFloat(e.replace(",","."))||0}function Xf(e){if(e==="Z")return 0;const t=e.match(Uf);if(!t)return 0;const n=t[1]==="+"?-1:1,s=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return od(s,o)?n*(s*Wi+o*Ji):NaN}function Qf(e,t,n){const s=new Date(0);s.setUTCFullYear(e,0,4);const o=s.getUTCDay()||7,r=(t-1)*7+n+1-o;return s.setUTCDate(s.getUTCDate()+r),s}const Zf=[31,null,31,30,31,30,31,31,30,31,30,31];function Ui(e){return e%400===0||e%4===0&&e%100!==0}function ed(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Zf[t]||(Ui(e)?29:28))}function td(e,t){return t>=1&&t<=(Ui(e)?366:365)}function nd(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function sd(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function od(e,t){return t>=0&&t<=59}function mt(e){if(!e)return"";const t=typeof e=="string"?_o(e):e;return isNaN(t.getTime())?"":qf(t,{addSuffix:!0})}function dn(e){if(!e)return"";const t=typeof e=="string"?_o(e):e;return isNaN(t.getTime())?"":Jf(t,"dd-MM-yyyy HH:mm:ss")}function pt(e){if(!e)return"";const t=typeof e=="string"?_o(e):e;return isNaN(t.getTime())?"":t.toISOString()}const rd={class:"d-flex justify-content-end mb-2 flex-wrap gap-2"},id={class:"me-2 align-self-center"},ld=["disabled"],ad=["disabled"],cd=["disabled"],ud=["disabled"],fd={class:"table table-striped d-none d-xl-table"},dd={class:"table-dark"},hd=["checked"],md={key:0,class:"sort-icon"},pd={key:0,class:"sort-icon"},gd={key:0,class:"sort-icon"},bd={key:0,class:"sort-icon"},vd={key:0},yd={key:1},_d={colspan:"8",scope:"row"},wd={class:"text-center py-5 text-muted"},xd={key:0},Cd={key:1},kd={key:2},$d={width:"10",class:"mult-select"},Sd=["checked","onChange"],Td={scope:"row",class:"job-name"},Md={key:0,class:"pill-own bg-secondary pill-without-icon"},Dd={key:1,class:"pill-own bg-info"},Pd={key:2,class:"pill-own bg-info pill-without-icon"},Od={key:3,class:"pill-own bg-success pill-without-icon"},jd={key:4,class:"pill-own bg-primary pill-without-icon"},Ad={key:5,class:"pill-own bg-danger pill-without-icon"},Nd={key:6,class:"pill-own bg-warning pill-without-icon"},Ed=["onClick"],Rd=["title","onClick"],Fd=["title","onClick"],Id=["title","onClick"],Ld=["title","onClick"],Jd={class:"job-actions"},Wd=["onClick"],Hd=["onClick"],qd=["onClick"],Vd=["onClick"],Yd=["onClick"],Ud={class:"d-xl-none"},Bd={key:0,class:"col-12 my-5 ms-auto text-center"},Kd={key:1,class:"text-center py-5 text-muted"},Gd={key:0},zd={key:1},Xd={key:2,class:"row"},Qd={class:"card bg-light"},Zd={class:"card-header card-responsive-title-container"},eh=["onClick"],th={class:"d-flex align-items-center"},nh={class:"card-responsive-status-title me-2"},sh=["checked","onChange"],oh=["onClick"],rh=["onClick"],ih=["onClick"],lh=["onClick"],ah=["onClick"],ch={class:"card-body"},uh={class:"d-flex justify-content-center mb-2 flex-wrap"},fh={key:0,class:"pill-own me-2 bg-secondary pill-without-icon pill-own-card"},dh={key:1,class:"pill-own me-2 bg-info pill-own-card"},hh={class:"pill-own-card-info"},mh={key:2,class:"pill-own me-2 bg-info pill-without-icon pill-own-card"},ph={key:3,class:"pill-own me-2 bg-success pill-without-icon pill-own-card"},gh={key:4,class:"pill-own me-2 bg-primary pill-without-icon pill-own-card"},bh={key:5,class:"pill-own me-2 bg-danger pill-without-icon pill-own-card"},vh={key:6,class:"pill-own me-2 bg-warning pill-without-icon pill-own-card"},yh={class:"row"},_h={class:"col col-md-6 text-center"},wh=["title"],xh=["title"],Ch={class:"col col-md-6 text-center"},kh=["title"],$h=["title"],Sh={class:"row mt-3"},Th={class:"col d-flex justify-content-center"},Mh={"aria-label":"Page navigation"},Dh={class:"pagination"},Ph={class:"row"},Oh={class:"col d-flex justify-content-center"},jh={class:"d-none d-xl-block"},Ah={class:"row mt-3"},Nh={class:"col d-flex justify-content-center"},Eh={"aria-label":"Page navigation"},Rh={class:"pagination"},Fh={class:"row"},Ih={class:"col d-flex justify-content-center"},Lh=ut({__name:"JobList",props:{jobs:{},pageSize:{},pageNumber:{},totalPages:{},loading:{type:Boolean},filterDisplay:{}},emits:["show-job-detail","confirm-delete","confirm-requeue","confirm-pause","confirm-resume","confirm-delete-multi","confirm-requeue-multi","confirm-pause-multi","confirm-resume-multi","page-next","page-prev"],setup(e,{emit:t}){const n=e,s=t,o=B([]),r=B("name"),i=B("asc");bn(()=>n.jobs,()=>{o.value=[]});const l=Tt(()=>{const g=[...n.jobs].sort((b,C)=>{let j,K;r.value==="name"?(j=(b.job.name||"").toLowerCase(),K=(C.job.name||"").toLowerCase()):(j=b.job[r.value]?new Date(b.job[r.value]).getTime():0,K=C.job[r.value]?new Date(C.job[r.value]).getTime():0);const te=i.value==="desc"?-1:1;return j<K?-1*te:j>K?1*te:0});return[...g.filter(b=>b.repeating),...g.filter(b=>!b.repeating)]});function c(g){g===r.value?i.value=i.value==="asc"?"desc":"asc":(r.value=g,i.value="asc")}function f(g){const b=g.job._id,C=o.value.indexOf(b);C===-1?o.value.push(b):o.value.splice(C,1)}function u(){o.value.length===n.jobs.length?o.value=[]:o.value=n.jobs.map(g=>g.job._id)}function m(g){return o.value.includes(g.job._id)}function p(){s("confirm-requeue-multi",[...o.value])}function v(){s("confirm-delete-multi",[...o.value])}function w(){s("confirm-pause-multi",[...o.value])}function y(){s("confirm-resume-multi",[...o.value])}function $(g){return r.value!==g?"":i.value==="asc"?"▲":"▼"}return(g,b)=>(x(),k("div",null,[a("div",rd,[a("span",id,A(o.value.length)+" jobs selected",1),a("button",{disabled:!o.value.length,class:"btn btn-primary",title:"Requeue list of selected jobs",onClick:p}," Multiple Requeue ",8,ld),a("button",{disabled:!o.value.length,class:"btn btn-secondary",title:"Pause list of selected jobs",onClick:w}," Multiple Pause ",8,ad),a("button",{disabled:!o.value.length,class:"btn btn-success",title:"Resume list of selected jobs",onClick:y}," Multiple Resume ",8,cd),a("button",{disabled:!o.value.length,class:"btn btn-danger",title:"Delete list of selected jobs",onClick:v}," Multiple Delete ",8,ud)]),a("table",fd,[a("thead",dd,[a("tr",null,[a("th",{scope:"col",onClick:u},[a("input",{type:"checkbox",checked:o.value.length===e.jobs.length&&e.jobs.length>0},null,8,hd)]),b[12]||(b[12]=a("th",{scope:"col"},"Status",-1)),a("th",{scope:"col",onClick:b[0]||(b[0]=C=>c("name"))},[b[8]||(b[8]=Ge(" Name ",-1)),r.value==="name"?(x(),k("span",md,A($("name")),1)):I("",!0)]),a("th",{scope:"col",onClick:b[1]||(b[1]=C=>c("lastRunAt"))},[b[9]||(b[9]=Ge(" Last run started ",-1)),r.value==="lastRunAt"?(x(),k("span",pd,A($("lastRunAt")),1)):I("",!0)]),a("th",{scope:"col",onClick:b[2]||(b[2]=C=>c("nextRunAt"))},[b[10]||(b[10]=Ge(" Next run starts ",-1)),r.value==="nextRunAt"?(x(),k("span",gd,A($("nextRunAt")),1)):I("",!0)]),a("th",{scope:"col",onClick:b[3]||(b[3]=C=>c("lastFinishedAt"))},[b[11]||(b[11]=Ge(" Last finished ",-1)),r.value==="lastFinishedAt"?(x(),k("span",bd,A($("lastFinishedAt")),1)):I("",!0)]),b[13]||(b[13]=a("th",{scope:"col"},"Locked",-1)),b[14]||(b[14]=a("th",{scope:"col"},"Actions",-1))])]),e.loading?(x(),k("tbody",vd,[...b[15]||(b[15]=[a("tr",null,[a("td",{colspan:"8",scope:"row"},[a("div",{class:"col-12 my-5 ms-auto text-center"},[a("div",{class:"text-center my-5 py-5"},[a("div",{class:"spinner-border",role:"status"},[a("span",{class:"visually-hidden"},"Loading...")]),a("div",null,[a("span",null,"Loading Jobs...")])])])])],-1)])])):e.jobs.length===0?(x(),k("tbody",yd,[a("tr",null,[a("td",_d,[a("div",wd,[b[18]||(b[18]=a("div",{class:"mb-2",style:{"font-size":"2rem"}},"🔍",-1)),e.filterDisplay?(x(),k("div",xd,[b[16]||(b[16]=a("strong",null,"No jobs found",-1)),Ge(' for filter "'+A(e.filterDisplay)+'" ',1)])):(x(),k("div",Cd,[...b[17]||(b[17]=[a("strong",null,"No jobs found",-1)])])),b[19]||(b[19]=a("small",{class:"d-block mt-2"},"Try adjusting your filter criteria",-1))])])])])):(x(),k("tbody",kd,[(x(!0),k(ve,null,St(l.value,C=>(x(),k("tr",{key:C.job._id},[a("td",$d,[a("input",{type:"checkbox",checked:m(C),onChange:j=>f(C)},null,40,Sd)]),a("td",Td,[C.paused?(x(),k("span",Md,[...b[20]||(b[20]=[a("span",null,"Paused",-1)])])):I("",!0),C.repeating?(x(),k("span",Dd,[a("span",null,A(C.job.repeatInterval),1)])):I("",!0),C.scheduled?(x(),k("span",Pd,[...b[21]||(b[21]=[a("span",null,"Scheduled",-1)])])):I("",!0),C.completed?(x(),k("span",Od,[...b[22]||(b[22]=[a("span",null,"Completed",-1)])])):I("",!0),C.queued?(x(),k("span",jd,[...b[23]||(b[23]=[a("span",null,"Queued",-1)])])):I("",!0),C.failed?(x(),k("span",Ad,[...b[24]||(b[24]=[a("span",null,"Failed",-1)])])):I("",!0),C.running?(x(),k("span",Nd,[...b[25]||(b[25]=[a("span",null,"Running",-1)])])):I("",!0)]),a("td",{class:"job-name",onClick:j=>f(C)},A(C.job.name),9,Ed),a("td",{class:"job-lastRunAt",title:Y(pt)(C.job.lastRunAt),onClick:j=>f(C)},A(Y(mt)(C.job.lastRunAt)),9,Rd),a("td",{class:"job-nextRunAt",title:Y(pt)(C.job.nextRunAt),onClick:j=>f(C)},A(Y(mt)(C.job.nextRunAt)),9,Fd),a("td",{class:"job-finishedAt",title:Y(pt)(C.job.lastFinishedAt),onClick:j=>f(C)},A(Y(mt)(C.job.lastFinishedAt)),9,Id),a("td",{class:"job-lockedAt",title:Y(pt)(C.job.lockedAt),onClick:j=>f(C)},A(Y(mt)(C.job.lockedAt)),9,Ld),a("td",Jd,[a("span",{class:"action-btn text-primary",title:"Requeue",onClick:j=>g.$emit("confirm-requeue",C)},"↻",8,Wd),C.paused?(x(),k("span",{key:0,class:"action-btn text-success",title:"Resume job",onClick:j=>g.$emit("confirm-resume",C)},"▶",8,Hd)):(x(),k("span",{key:1,class:"action-btn text-secondary",title:"Pause job",onClick:j=>g.$emit("confirm-pause",C)},"⏸",8,qd)),a("span",{class:"action-btn text-success",title:"Job Data",onClick:j=>g.$emit("show-job-detail",C)},"👁",8,Vd),a("span",{class:"action-btn text-danger",title:"Delete permanently",onClick:j=>g.$emit("confirm-delete",C)},"🗑",8,Yd)])]))),128))]))]),a("div",Ud,[e.loading?(x(),k("div",Bd,[...b[26]||(b[26]=[a("div",{class:"text-center my-5 py-5"},[a("div",{class:"spinner-border",role:"status"},[a("span",{class:"visually-hidden"},"Loading...")]),a("div",null,[a("span",null,"Loading Jobs...")])],-1)])])):e.jobs.length===0?(x(),k("div",Kd,[b[29]||(b[29]=a("div",{class:"mb-2",style:{"font-size":"2rem"}},"🔍",-1)),e.filterDisplay?(x(),k("div",Gd,[b[27]||(b[27]=a("strong",null,"No jobs found",-1)),Ge(' for filter "'+A(e.filterDisplay)+'" ',1)])):(x(),k("div",zd,[...b[28]||(b[28]=[a("strong",null,"No jobs found",-1)])])),b[30]||(b[30]=a("small",{class:"d-block mt-2"},"Try adjusting your filter criteria",-1))])):(x(),k("div",Xd,[(x(!0),k(ve,null,St(l.value,C=>(x(),k("div",{key:C.job._id,class:"col col-xs-6 order-1 p-1"},[a("div",Qd,[a("div",Zd,[a("div",{class:"card-responsive-name",onClick:j=>f(C)},A(C.job.name),9,eh),a("div",th,[a("div",nh,[a("input",{type:"checkbox",class:"card-responsive-checkbox",checked:m(C),onChange:j=>f(C)},null,40,sh)]),a("span",{class:"action-btn text-primary material-icons-size me-1",title:"Requeue",onClick:j=>g.$emit("confirm-requeue",C)},"↻",8,oh),C.paused?(x(),k("span",{key:0,class:"action-btn text-success material-icons-size me-1",title:"Resume job",onClick:j=>g.$emit("confirm-resume",C)},"▶",8,rh)):(x(),k("span",{key:1,class:"action-btn text-secondary material-icons-size me-1",title:"Pause job",onClick:j=>g.$emit("confirm-pause",C)},"⏸",8,ih)),a("span",{class:"action-btn text-success material-icons-size me-1",title:"Job Data",onClick:j=>g.$emit("show-job-detail",C)},"👁",8,lh),a("span",{class:"action-btn text-danger material-icons-size",title:"Delete permanently",onClick:j=>g.$emit("confirm-delete",C)},"🗑",8,ah)])]),a("div",ch,[a("div",uh,[C.paused?(x(),k("span",fh,[...b[31]||(b[31]=[a("span",{class:"pill-own-card-info"},"Paused",-1)])])):I("",!0),C.repeating?(x(),k("span",dh,[a("span",hh,A(C.job.repeatInterval),1)])):I("",!0),C.scheduled?(x(),k("span",mh,[...b[32]||(b[32]=[a("span",{class:"pill-own-card-info"},"Scheduled",-1)])])):I("",!0),C.completed?(x(),k("span",ph,[...b[33]||(b[33]=[a("span",{class:"pill-own-card-info"},"Completed",-1)])])):I("",!0),C.queued?(x(),k("span",gh,[...b[34]||(b[34]=[a("span",{class:"pill-own-card-info"},"Queued",-1)])])):I("",!0),C.failed?(x(),k("span",bh,[...b[35]||(b[35]=[a("span",{class:"pill-own-card-info"},"Failed",-1)])])):I("",!0),C.running?(x(),k("span",vh,[...b[36]||(b[36]=[a("span",{class:"pill-own-card-info"},"Running",-1)])])):I("",!0)]),a("div",yh,[a("div",_h,[b[37]||(b[37]=a("div",{class:"card-responsive-status-title"},"Last run started",-1)),a("div",{class:"mb-3",title:Y(pt)(C.job.lastRunAt)},A(Y(mt)(C.job.lastRunAt)||"-"),9,wh),b[38]||(b[38]=a("div",{class:"card-responsive-status-title"},"Last finished",-1)),a("div",{title:Y(pt)(C.job.lastFinishedAt)},A(Y(mt)(C.job.lastFinishedAt)||"-"),9,xh)]),a("div",Ch,[b[39]||(b[39]=a("div",{class:"card-responsive-status-title"},"Next run starts",-1)),a("div",{class:"mb-3",title:Y(pt)(C.job.nextRunAt)},A(Y(mt)(C.job.nextRunAt)||"-"),9,kh),b[40]||(b[40]=a("div",{class:"card-responsive-status-title"},"Locked",-1)),a("div",{title:Y(pt)(C.job.lockedAt)},A(Y(mt)(C.job.lockedAt)||"-"),9,$h)])])])])]))),128))])),a("div",Sh,[a("div",Th,[a("nav",Mh,[a("ul",Dh,[a("li",{class:he(["page-item",{disabled:e.pageNumber===1}])},[a("a",{class:"page-link",href:"#",onClick:b[4]||(b[4]=xe(C=>g.$emit("page-prev"),["prevent"]))},"Previous")],2),a("li",{class:he(["page-item",{disabled:e.pageNumber>=e.totalPages}])},[a("a",{class:"page-link",href:"#",onClick:b[5]||(b[5]=xe(C=>g.$emit("page-next"),["prevent"]))},"Next")],2)])])])]),a("div",Ph,[a("div",Oh,"Page: "+A(e.pageNumber)+" / "+A(e.totalPages),1)])]),a("div",jh,[a("div",Ah,[a("div",Nh,[a("nav",Eh,[a("ul",Rh,[a("li",{class:he(["page-item",{disabled:e.pageNumber===1}])},[a("a",{class:"page-link",href:"#",onClick:b[6]||(b[6]=xe(C=>g.$emit("page-prev"),["prevent"]))},"Previous")],2),a("li",{class:he(["page-item",{disabled:e.pageNumber>=e.totalPages}])},[a("a",{class:"page-link",href:"#",onClick:b[7]||(b[7]=xe(C=>g.$emit("page-next"),["prevent"]))},"Next")],2)])])])]),a("div",Fh,[a("div",Ih,"Page: "+A(e.pageNumber)+" / "+A(e.totalPages),1)])])]))}}),Jh={class:"modal-header"},Wh={class:"modal-title"},Hh={class:"tab-nav"},qh={class:"modal-body"},Vh={key:0},Yh={key:0,class:"alert alert-secondary mb-3"},Uh={class:"mb-3"},Bh={class:"row"},Kh={class:"col-6"},Gh={class:"col-6"},zh={class:"mb-3"},Xh={class:"row"},Qh={class:"col-6"},Zh={class:"col-6"},em={key:1,class:"mb-3"},tm={key:0,class:"text-muted ms-2"},nm={class:"mb-3"},sm={class:"mb-3"},om={class:"json-editor"},rm={key:2,class:"alert alert-danger mb-0"},im={class:"row"},lm={class:"col-6"},am={class:"col-6"},cm={key:1},um={class:"json-editor json-editor-large"},fm={class:"modal-footer"},dm={class:"text-muted me-auto"},hm=ut({__name:"JobDetail",props:{job:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=B("details"),o=Tt(()=>{try{return JSON.stringify(n.job.job.data,null,2)}catch{return String(n.job.job.data)}}),r=Tt(()=>{try{return JSON.stringify(n.job,null,2)}catch{return String(n.job)}});return(i,l)=>(x(),k("div",null,[a("div",Jh,[a("h5",Wh,A(e.job.job.name),1),a("button",{type:"button",class:"btn-close",onClick:l[0]||(l[0]=c=>i.$emit("close"))})]),a("div",Hh,[a("button",{class:he(["tab-btn",{active:s.value==="details"}]),onClick:l[1]||(l[1]=c=>s.value="details")}," Details ",2),a("button",{class:he(["tab-btn",{active:s.value==="raw"}]),onClick:l[2]||(l[2]=c=>s.value="raw")}," Raw Data ",2)]),a("div",qh,[s.value==="details"?(x(),k("div",Vh,[e.job.paused?(x(),k("div",Yh,[...l[4]||(l[4]=[a("strong",null,"Status: Paused",-1),a("div",{class:"small"},"This job is paused and will not run until resumed.",-1)])])):I("",!0),a("div",Uh,[a("div",Bh,[a("div",Kh,[l[5]||(l[5]=a("small",{class:"text-muted d-block"},"Next run",-1)),a("strong",null,A(Y(dn)(e.job.job.nextRunAt)||"Not scheduled"),1)]),a("div",Gh,[l[6]||(l[6]=a("small",{class:"text-muted d-block"},"Last run",-1)),a("strong",null,A(Y(dn)(e.job.job.lastRunAt)||"Never"),1)])])]),a("div",zh,[a("div",Xh,[a("div",Qh,[l[7]||(l[7]=a("small",{class:"text-muted d-block"},"Last finished",-1)),a("strong",null,A(Y(dn)(e.job.job.lastFinishedAt)||"Never"),1)]),a("div",Zh,[l[8]||(l[8]=a("small",{class:"text-muted d-block"},"Locked at",-1)),a("strong",null,A(Y(dn)(e.job.job.lockedAt)||"Not locked"),1)])])]),e.job.job.repeatInterval?(x(),k("div",em,[l[9]||(l[9]=a("small",{class:"text-muted d-block"},"Repeat Interval",-1)),a("strong",null,A(e.job.job.repeatInterval),1),e.job.job.repeatTimezone?(x(),k("span",tm,"("+A(e.job.job.repeatTimezone)+")",1)):I("",!0)])):I("",!0),a("div",nm,[l[10]||(l[10]=a("small",{class:"text-muted d-block"},"Priority",-1)),a("strong",null,A(e.job.job.priority??0),1)]),a("div",sm,[l[11]||(l[11]=a("small",{class:"text-muted d-block mb-1"},"Job Data",-1)),a("pre",om,A(o.value),1)]),e.job.failed?(x(),k("div",rm,[a("div",im,[a("div",lm,[l[12]||(l[12]=a("small",{class:"d-block"},"Fail Count",-1)),a("strong",null,A(e.job.job.failCount),1)]),a("div",am,[l[13]||(l[13]=a("small",{class:"d-block"},"Failed At",-1)),a("strong",null,A(Y(dn)(e.job.job.failedAt)),1)])]),l[14]||(l[14]=a("hr",{class:"my-2"},null,-1)),l[15]||(l[15]=a("small",{class:"d-block"},"Reason",-1)),a("code",null,A(e.job.job.failReason),1)])):I("",!0)])):s.value==="raw"?(x(),k("div",cm,[l[16]||(l[16]=a("small",{class:"text-muted d-block mb-2"},"Complete job object (for debugging)",-1)),a("pre",um,A(r.value),1)])):I("",!0)]),a("div",fm,[a("small",dm,"ID: "+A(e.job.job._id),1),a("button",{type:"button",class:"btn btn-secondary",onClick:l[3]||(l[3]=c=>i.$emit("close"))},"Close")])]))}}),mm=Fn(hm,[["__scopeId","data-v-48ede7fc"]]),pm={class:"modal-body"},gm={class:"mb-3"},bm={class:"mb-3"},vm={class:"mb-3"},ym={class:"mb-3"},_m={key:0,class:"text-danger"},wm={class:"modal-footer"},xm=["disabled"],Cm=ut({__name:"NewJob",emits:["close","create"],setup(e,{emit:t}){const n=t,s=B(""),o=B(""),r=B(""),i=B("{}"),l=B("");function c(){s.value="",o.value="",r.value="",i.value="{}",l.value=""}function f(){let m;try{m=JSON.parse(i.value),l.value=""}catch(p){l.value=p instanceof Error?p.message:"Invalid JSON";return}n("create",s.value,o.value,r.value,m),c()}function u(){c(),n("close")}return(m,p)=>(x(),k("div",null,[a("div",{class:"modal-header"},[p[4]||(p[4]=a("h5",{class:"modal-title"},"Create Job",-1)),a("button",{type:"button",class:"btn-close",onClick:u})]),a("div",pm,[a("form",{onSubmit:xe(f,["prevent"])},[a("div",gm,[p[5]||(p[5]=a("label",{for:"jobname",class:"form-label"},[Ge("Job Name "),a("span",{class:"text-danger"},"*")],-1)),Ke(a("input",{id:"jobname","onUpdate:modelValue":p[0]||(p[0]=v=>s.value=v),type:"text",class:"form-control",placeholder:"e.g., send-email",required:""},null,512),[[Ct,s.value]])]),a("div",bm,[p[6]||(p[6]=a("label",{for:"jobSchedule",class:"form-label"},"Schedule (when to run)",-1)),Ke(a("input",{id:"jobSchedule","onUpdate:modelValue":p[1]||(p[1]=v=>o.value=v),type:"text",class:"form-control",placeholder:"e.g., in 5 minutes"},null,512),[[Ct,o.value]]),p[7]||(p[7]=a("small",{class:"text-muted"},'Human interval: "in 5 minutes", "tomorrow at 9am"',-1))]),a("div",vm,[p[8]||(p[8]=a("label",{for:"jobRepeatEvery",class:"form-label"},"Repeat Every",-1)),Ke(a("input",{id:"jobRepeatEvery","onUpdate:modelValue":p[2]||(p[2]=v=>r.value=v),type:"text",class:"form-control",placeholder:"e.g., 1 hour"},null,512),[[Ct,r.value]]),p[9]||(p[9]=a("small",{class:"text-muted"},'Interval: "1 hour", "5 minutes", or cron: "0 * * * *"',-1))]),a("div",ym,[p[10]||(p[10]=a("label",{for:"jobData",class:"form-label"},"Job Data (JSON)",-1)),Ke(a("textarea",{id:"jobData","onUpdate:modelValue":p[3]||(p[3]=v=>i.value=v),class:"form-control json-textarea",rows:"4",placeholder:'{"key": "value"}'},null,512),[[Ct,i.value]]),l.value?(x(),k("small",_m,A(l.value),1)):I("",!0)])],32)]),a("div",wm,[a("button",{type:"button",class:"btn btn-secondary",onClick:u},"Cancel"),a("button",{type:"button",class:"btn btn-primary",disabled:!s.value,onClick:f}," Create Job ",8,xm)])]))}}),km={class:"modal-header"},$m={class:"modal-title"},Sm=["disabled"],Tm={class:"modal-body"},Mm={class:"mb-3"},Dm={key:0,class:"bg-light rounded p-3 mb-3"},Pm={class:"text-muted"},Om={key:0},jm={key:1},Am={class:"text-muted d-block mb-1"},Nm={class:"json-editor json-editor-compact"},Em={class:"modal-footer"},Rm=["disabled"],Fm=["disabled"],Im={key:0,class:"spinner-border spinner-border-sm me-1"},Lm=ut({__name:"ConfirmDialog",props:{title:{},message:{},details:{},confirmText:{},confirmClass:{},loading:{type:Boolean}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=e,s=Tt(()=>{var r;return((r=n.details)==null?void 0:r.filter(i=>i.type!=="json"))??[]}),o=Tt(()=>{var r;return((r=n.details)==null?void 0:r.filter(i=>i.type==="json"))??[]});return(r,i)=>(x(),k("div",null,[a("div",km,[a("h5",$m,A(e.title),1),a("button",{type:"button",class:"btn-close",disabled:e.loading,onClick:i[0]||(i[0]=l=>r.$emit("cancel"))},null,8,Sm)]),a("div",Tm,[a("p",Mm,A(e.message),1),s.value.length?(x(),k("div",Dm,[(x(!0),k(ve,null,St(s.value,l=>(x(),k("div",{key:l.label,class:"d-flex justify-content-between mb-1"},[a("span",Pm,A(l.label)+":",1),l.type==="code"?(x(),k("code",Om,A(l.value),1)):(x(),k("span",jm,A(l.value),1))]))),128))])):I("",!0),(x(!0),k(ve,null,St(o.value,l=>(x(),k("div",{key:l.label},[a("small",Am,A(l.label),1),a("pre",Nm,A(l.value),1)]))),128))]),a("div",Em,[a("button",{type:"button",class:"btn btn-secondary",disabled:e.loading,onClick:i[1]||(i[1]=l=>r.$emit("cancel"))},"Cancel",8,Rm),a("button",{type:"button",class:he(["btn",e.confirmClass||"btn-primary"]),disabled:e.loading,onClick:i[2]||(i[2]=l=>r.$emit("confirm"))},[e.loading?(x(),k("span",Im)):I("",!0),Ge(" "+A(e.confirmText||"Confirm"),1)],10,Fm)])]))}}),gt=Fn(Lm,[["__scopeId","data-v-2e096e3c"]]),Bn=B([]);let Jm=0;function Bi(){function e(r,i="success",l=3e3){const c=Jm++,f={id:c,message:r,type:i};Bn.value.push(f),setTimeout(()=>{t(c)},l)}function t(r){const i=Bn.value.findIndex(l=>l.id===r);i!==-1&&Bn.value.splice(i,1)}function n(r){e(r,"success")}function s(r){e(r,"error")}function o(r){e(r,"info")}return{toasts:Bn,show:e,remove:t,success:n,error:s,info:o}}const Wm={class:"toast-container"},Hm={class:"flex-grow-1"},qm=["onClick"],Vm=ut({__name:"Toast",setup(e){const{toasts:t,remove:n}=Bi();return(s,o)=>(x(),ls(si,{to:"body"},[a("div",Wm,[de(dc,{name:"toast"},{default:Qr(()=>[(x(!0),k(ve,null,St(Y(t),r=>(x(),k("div",{key:r.id,class:he(["toast-item",{"toast-success":r.type==="success","toast-error":r.type==="error","toast-info":r.type==="info"}])},[a("span",Hm,A(r.message),1),a("button",{type:"button",class:"btn-close btn-close-sm",onClick:i=>Y(n)(r.id)},null,8,qm)],2))),128))]),_:1})])]))}}),Ym=Fn(Vm,[["__scopeId","data-v-f853b4ff"]]),Um={class:"stats-panel"},Bm={key:0,class:"stats-loading-full"},Km={key:1,class:"alert alert-danger"},Gm={key:2,class:"stats-content"},zm={class:"stats-section"},Xm={class:"stats-grid"},Qm={class:"stat-item"},Zm={class:"stat-value"},ep={class:"stat-item"},tp={class:"stat-value"},np={class:"stat-item"},sp={class:"stat-item"},op={class:"stat-value"},rp={class:"stat-item"},ip={class:"stat-value"},lp={class:"stat-item"},ap={class:"stat-value"},cp={class:"stat-item"},up={class:"stat-value"},fp={class:"stat-item"},dp={class:"stat-value"},hp={class:"stats-section"},mp={class:"stats-grid"},pp={class:"stat-item"},gp={class:"stat-value stat-running"},bp={class:"stat-item"},vp={class:"stat-value stat-queued"},yp={class:"stat-item"},_p={class:"stat-value stat-locked"},wp={class:"stat-item"},xp={class:"stat-value"},Cp={key:0,class:"stats-section"},kp={class:"job-status-list"},$p={class:"job-status-name"},Sp={class:"job-status-badges"},Tp={class:"stat-badge running"},Mp={class:"stat-badge locked"},Dp={key:0,class:"stat-badge config"},Pp=ut({__name:"StatsPanel",setup(e){const t=B(null),n=B(!1),s=B(null);let o=null;async function r(){n.value=!0,s.value=null;try{t.value=await Ii(!0)}catch(l){s.value="Failed to load stats",console.error("Failed to fetch stats:",l)}finally{n.value=!1}}function i(l){return typeof l=="number"?`${l}ms`:l}return Nn(()=>{r(),o=setInterval(r,5e3)}),En(()=>{o&&clearInterval(o)}),(l,c)=>{var f,u,m;return x(),k("div",Um,[n.value&&!t.value?(x(),k("div",Bm,[...c[0]||(c[0]=[a("div",{class:"spinner-border"},null,-1),a("span",null,"Loading stats...",-1)])])):s.value?(x(),k("div",Km,A(s.value),1)):t.value?(x(),k("div",Gm,[a("div",zm,[c[9]||(c[9]=a("div",{class:"stats-section-title"},"Configuration",-1)),a("div",Xm,[a("div",Qm,[c[1]||(c[1]=a("span",{class:"stat-label"},"Version",-1)),a("span",Zm,A(t.value.version),1)]),a("div",ep,[c[2]||(c[2]=a("span",{class:"stat-label"},"Backend",-1)),a("span",tp,A(((f=t.value.backend)==null?void 0:f.name)||"unknown"),1)]),a("div",np,[c[3]||(c[3]=a("span",{class:"stat-label"},"Notifications",-1)),a("span",{class:he(["stat-value",{"stat-enabled":(u=t.value.backend)==null?void 0:u.hasNotificationChannel}])},A((m=t.value.backend)!=null&&m.hasNotificationChannel?"enabled":"polling"),3)]),a("div",sp,[c[4]||(c[4]=a("span",{class:"stat-label"},"Queue Name",-1)),a("span",op,A(t.value.queueName||"default"),1)]),a("div",rp,[c[5]||(c[5]=a("span",{class:"stat-label"},"Process Every",-1)),a("span",ip,A(i(t.value.config.processEvery)),1)]),a("div",lp,[c[6]||(c[6]=a("span",{class:"stat-label"},"Max Concurrency",-1)),a("span",ap,A(t.value.config.maxConcurrency),1)]),a("div",cp,[c[7]||(c[7]=a("span",{class:"stat-label"},"Lock Limit",-1)),a("span",up,A(t.value.config.totalLockLimit||"unlimited"),1)]),a("div",fp,[c[8]||(c[8]=a("span",{class:"stat-label"},"Jobs Ready to Run",-1)),a("span",dp,A(t.value.totalQueueSizeDB),1)])])]),a("div",hp,[c[14]||(c[14]=a("div",{class:"stats-section-title"},"Live Status",-1)),a("div",mp,[a("div",pp,[c[10]||(c[10]=a("span",{class:"stat-label"},"Running Jobs",-1)),a("span",gp,A(typeof t.value.runningJobs=="number"?t.value.runningJobs:t.value.runningJobs.length),1)]),a("div",bp,[c[11]||(c[11]=a("span",{class:"stat-label"},"Queued Jobs",-1)),a("span",vp,A(typeof t.value.queuedJobs=="number"?t.value.queuedJobs:t.value.queuedJobs.length),1)]),a("div",yp,[c[12]||(c[12]=a("span",{class:"stat-label"},"Locked Jobs",-1)),a("span",_p,A(typeof t.value.lockedJobs=="number"?t.value.lockedJobs:t.value.lockedJobs.length),1)]),a("div",wp,[c[13]||(c[13]=a("span",{class:"stat-label"},"Local Queue Processing",-1)),a("span",xp,A(t.value.internal.localQueueProcessing),1)])])]),t.value.jobStatus&&Object.keys(t.value.jobStatus).length>0?(x(),k("div",Cp,[c[15]||(c[15]=a("div",{class:"stats-section-title"},"Per-Job Status",-1)),a("div",kp,[(x(!0),k(ve,null,St(t.value.jobStatus,(p,v)=>(x(),k("div",{key:v,class:"job-status-item"},[a("span",$p,A(v),1),a("div",Sp,[a("span",Tp,A(p.running)+" running",1),a("span",Mp,A(p.locked)+" locked",1),p.config.concurrency?(x(),k("span",Dp,"concurrency: "+A(p.config.concurrency),1)):I("",!0)])]))),128))])])):I("",!0)])):I("",!0)])}}}),Op=Fn(Pp,[["__scopeId","data-v-c810d8d3"]]),Fs=B([]),Is=B([]),Kn=B(!1),Ls=B(!1),Js=B(0),wr=B(0),bt=B(1),Gn=B(50),tt=B({});let Ut=null;function jp(){const{success:e,error:t}=Bi(),n=Tt(()=>[...Is.value].sort((y,$)=>{const g=y.displayName.toLowerCase(),b=$.displayName.toLowerCase();return g==="all jobs"?-1:b==="all jobs"?1:g.localeCompare(b)})),s=Tt(()=>{const y=[];return tt.value.name&&y.push(tt.value.name),tt.value.state&&y.push(tt.value.state),y.length>0?y.join(" / "):"All Jobs"});async function o(y={}){Kn.value=!0,Ut&&clearTimeout(Ut),Ut=setTimeout(()=>{Kn.value&&(Ls.value=!0)},200);const $={...tt.value,...y};tt.value=$;try{const g=await Tc({name:$.name,search:$.search,property:$.property,isObjectId:$.isObjectId?"true":void 0,state:$.state,skip:$.skip,limit:$.limit||Gn.value});Fs.value=g.jobs,Is.value=g.overview,Js.value=g.totalPages,wr.value=g.total}catch(g){console.error("Failed to fetch jobs:",g),Fs.value=[],t("Failed to fetch jobs")}finally{Kn.value=!1,Ls.value=!1,Ut&&(clearTimeout(Ut),Ut=null)}}async function r(y){try{await Mc(y),e("Jobs requeued successfully"),await o()}catch($){console.error("Failed to requeue jobs:",$),t("Failed to requeue jobs")}}async function i(y){try{await Dc(y),e("Jobs deleted successfully"),await o()}catch($){console.error("Failed to delete jobs:",$),t("Failed to delete jobs")}}async function l(y){try{await Oc(y),e("Jobs paused successfully"),await o()}catch($){console.error("Failed to pause jobs:",$),t("Failed to pause jobs")}}async function c(y){try{await jc(y),e("Jobs resumed successfully"),await o()}catch($){console.error("Failed to resume jobs:",$),t("Failed to resume jobs")}}async function f(y,$,g,b){try{await Pc({jobName:y,jobSchedule:$,jobRepeatEvery:g,jobData:b}),e("Job created successfully"),await o()}catch(C){console.error("Failed to create job:",C),t("Failed to create job")}}function u(y){bt.value=y;const $=(y-1)*Gn.value;o({...tt.value,skip:$})}function m(){bt.value<Js.value&&u(bt.value+1)}function p(){bt.value>1&&u(bt.value-1)}function v(y){Gn.value=y,bt.value=1,o({...tt.value,skip:0,limit:y})}function w(y){bt.value=1,o({...y,skip:0})}return{jobs:Fs,overview:Is,sortedOverview:n,loading:Kn,showLoading:Ls,totalPages:Js,total:wr,currentPage:bt,pageSize:Gn,currentFilters:tt,currentFilterDisplay:s,fetchJobs:o,requeueJobs:r,deleteJobs:i,pauseJobs:l,resumeJobs:c,createJob:f,setPage:u,nextPage:m,prevPage:p,setPageSize:v,search:w}}const Ap={class:"app-wrapper"},Np={class:"navbar navbar-custom navbar-dark sticky-top px-3 py-2"},Ep={class:"d-flex align-items-center gap-3"},Rp={class:"d-none d-md-flex align-items-center gap-2 text-white-50"},Fp=["disabled"],Ip={key:0,class:"spinner-border spinner-border-sm"},Lp={key:1},Jp={class:"d-flex flex-grow-1",style:{"min-height":"0"}},Wp={class:"sidebar d-none d-md-block"},Hp={class:"flex-grow-1 p-4"},qp={class:"d-md-none d-flex justify-content-end mb-3"},Vp=["disabled"],Yp={key:0,class:"spinner-border spinner-border-sm me-1"},Up={key:1,class:"me-1"},Bp={key:0},Kp={key:1},Gp={class:"current-filter-display mb-3"},zp={class:"filter-badge"},Xp={class:"modal-container",style:{width:"600px"}},Qp={class:"modal-container",style:{width:"500px"}},Zp={class:"modal-container",style:{width:"400px"}},eg={class:"modal-container",style:{width:"400px"}},tg={class:"modal-container",style:{width:"400px"}},ng={class:"modal-container",style:{width:"400px"}},sg={class:"modal-container",style:{width:"400px"}},og={class:"modal-container",style:{width:"400px"}},rg={class:"modal-container",style:{width:"400px"}},ig={class:"modal-container",style:{width:"400px"}},lg=ut({__name:"App",setup(e){const{jobs:t,sortedOverview:n,loading:s,showLoading:o,totalPages:r,currentPage:i,pageSize:l,currentFilters:c,currentFilterDisplay:f,fetchJobs:u,requeueJobs:m,deleteJobs:p,pauseJobs:v,resumeJobs:w,createJob:y,nextPage:$,prevPage:g,search:b}=jp(),C=B(!1),j=B(30),K=B(30);let te=null;const ue=B(!1),ie=B(!1),W=B(!1),Q=B(!1),ne=B(!1),F=B(!1),oe=B(!1),ge=B(!1),$e=B(!1),me=B(!1),L=B(null),G=B([]),X=B(!1),We=B(!1);function Ae(H){try{return JSON.stringify(H,null,2)}catch{return String(H)}}function Ne(){te&&clearInterval(te),K.value=j.value,te=setInterval(()=>{K.value--,K.value<=0&&(u(),K.value=j.value)},1e3)}function sn(){u(),K.value=j.value}function Cs(){C.value=!0}function Ht(){C.value=!1}function Dt(H){L.value=H,ue.value=!0}function qt(H){L.value=H,W.value=!0}function on(H){L.value=H,Q.value=!0}function Ln(H){G.value=H,oe.value=!0}function Pt(H){G.value=H,ge.value=!0}function wo(H){L.value=H,ne.value=!0}function d(H){L.value=H,F.value=!0}function h(H){G.value=H,$e.value=!0}function _(H){G.value=H,me.value=!0}async function D(){if(L.value){X.value=!0;try{await p([L.value.job._id])}finally{X.value=!1}}W.value=!1}async function S(){if(L.value){X.value=!0;try{await m([L.value.job._id])}finally{X.value=!1}}Q.value=!1}async function T(){X.value=!0;try{await p(G.value)}finally{X.value=!1}oe.value=!1,G.value=[]}async function E(){X.value=!0;try{await m(G.value)}finally{X.value=!1}ge.value=!1,G.value=[]}async function N(){if(L.value){X.value=!0;try{await v([L.value.job._id])}finally{X.value=!1}}ne.value=!1}async function O(){if(L.value){X.value=!0;try{await w([L.value.job._id])}finally{X.value=!1}}F.value=!1}async function M(){X.value=!0;try{await v(G.value)}finally{X.value=!1}$e.value=!1,G.value=[]}async function q(){X.value=!0;try{await w(G.value)}finally{X.value=!1}me.value=!1,G.value=[]}function R(H){b(H),Ht(),K.value=j.value}function J(H,P){We.value=!1,b({name:H==="All Jobs"?"":H,state:P,skip:0}),Ht(),K.value=j.value}function U(){We.value=!0,c.value={},Ht()}async function ee(H,P,Z,we){await y(H,P||void 0,Z||void 0,we),ie.value=!1}return Nn(()=>{u(),Ne()}),En(()=>{te&&clearInterval(te)}),(H,P)=>(x(),k("div",Ap,[a("nav",Np,[P[22]||(P[22]=a("span",{class:"navbar-brand mb-0"},"Agendash",-1)),a("div",Ep,[a("div",Rp,[a("button",{class:"btn btn-sm btn-outline-light",disabled:Y(s),title:"Refresh now",onClick:sn},[Y(s)?(x(),k("span",Ip)):(x(),k("span",Lp,"↻"))],8,Fp),a("small",null,A(K.value)+"s",1)]),a("button",{class:"mobile-menu-btn d-md-none",onClick:Cs},"☰")])]),a("div",{class:he(["sidebar-mobile",{open:C.value}])},[a("button",{class:"sidebar-mobile-close",onClick:Ht},"×"),C.value?(x(),ls(hr,{key:0,overview:Y(n),"page-size":Y(l),loading:Y(s),"current-filters":Y(c),"showing-stats":We.value,onSearch:J,onNewJob:P[0]||(P[0]=Z=>ie.value=!0),onShowStats:U},null,8,["overview","page-size","loading","current-filters","showing-stats"])):I("",!0)],2),a("div",Jp,[a("aside",Wp,[de(hr,{overview:Y(n),"page-size":Y(l),loading:Y(s),"current-filters":Y(c),"showing-stats":We.value,onSearch:J,onNewJob:P[1]||(P[1]=Z=>ie.value=!0),onShowStats:U},null,8,["overview","page-size","loading","current-filters","showing-stats"])]),a("main",Hp,[a("div",qp,[a("button",{class:"btn btn-sm btn-outline-secondary",disabled:Y(s),onClick:sn},[Y(s)?(x(),k("span",Yp)):(x(),k("span",Up,"↻")),Ge(" Refresh ("+A(K.value)+"s) ",1)],8,Vp)]),We.value?(x(),k("div",Bp,[P[23]||(P[23]=a("h4",{class:"mb-4"},"Agenda Status",-1)),de(Op)])):(x(),k("div",Kp,[a("div",Gp,[P[24]||(P[24]=a("span",{class:"text-muted"},"Showing:",-1)),a("span",zp,A(Y(c).name||"All Jobs"),1),Y(c).state?(x(),k("span",{key:0,class:he(["filter-state-badge",`state-${Y(c).state}`])},A(Y(c).state),3)):I("",!0)]),de(Su,{"current-filters":Y(c),onSearch:R},null,8,["current-filters"]),de(Lh,{jobs:Y(t),"page-size":Y(l),"page-number":Y(i),"total-pages":Y(r),loading:Y(o),"filter-display":Y(f),onShowJobDetail:Dt,onConfirmDelete:qt,onConfirmRequeue:on,onConfirmPause:wo,onConfirmResume:d,onConfirmDeleteMulti:Ln,onConfirmRequeueMulti:Pt,onConfirmPauseMulti:h,onConfirmResumeMulti:_,onPageNext:Y($),onPagePrev:Y(g)},null,8,["jobs","page-size","page-number","total-pages","loading","filter-display","onPageNext","onPagePrev"])]))])]),(x(),ls(si,{to:"body"},[ue.value&&L.value?(x(),k("div",{key:0,class:"modal-overlay",onClick:P[3]||(P[3]=xe(Z=>ue.value=!1,["self"]))},[a("div",Xp,[de(mm,{job:L.value,onClose:P[2]||(P[2]=Z=>ue.value=!1)},null,8,["job"])])])):I("",!0),ie.value?(x(),k("div",{key:1,class:"modal-overlay",onClick:P[5]||(P[5]=xe(Z=>ie.value=!1,["self"]))},[a("div",Qp,[de(Cm,{onClose:P[4]||(P[4]=Z=>ie.value=!1),onCreate:ee})])])):I("",!0),W.value&&L.value?(x(),k("div",{key:2,class:"modal-overlay",onClick:P[7]||(P[7]=xe(Z=>!X.value&&(W.value=!1),["self"]))},[a("div",Zp,[de(gt,{title:"Delete Job",message:`Delete job '${L.value.job.name}'?`,details:[{label:"ID",value:L.value.job._id,type:"code"},{label:"Name",value:L.value.job.name},{label:"Data",value:Ae(L.value.job.data),type:"json"}],"confirm-text":"Delete","confirm-class":"btn-danger",loading:X.value,onConfirm:D,onCancel:P[6]||(P[6]=Z=>W.value=!1)},null,8,["message","details","loading"])])])):I("",!0),Q.value&&L.value?(x(),k("div",{key:3,class:"modal-overlay",onClick:P[9]||(P[9]=xe(Z=>!X.value&&(Q.value=!1),["self"]))},[a("div",eg,[de(gt,{title:"Requeue Job",message:`Requeue job '${L.value.job.name}'?`,details:[{label:"ID",value:L.value.job._id,type:"code"},{label:"Name",value:L.value.job.name},{label:"Data",value:Ae(L.value.job.data),type:"json"}],"confirm-text":"Requeue","confirm-class":"btn-primary",loading:X.value,onConfirm:S,onCancel:P[8]||(P[8]=Z=>Q.value=!1)},null,8,["message","details","loading"])])])):I("",!0),oe.value?(x(),k("div",{key:4,class:"modal-overlay",onClick:P[11]||(P[11]=xe(Z=>!X.value&&(oe.value=!1),["self"]))},[a("div",tg,[de(gt,{title:"Delete Multiple Jobs",message:`Delete ${G.value.length} selected jobs?`,"confirm-text":"Delete All","confirm-class":"btn-danger",loading:X.value,onConfirm:T,onCancel:P[10]||(P[10]=Z=>oe.value=!1)},null,8,["message","loading"])])])):I("",!0),ge.value?(x(),k("div",{key:5,class:"modal-overlay",onClick:P[13]||(P[13]=xe(Z=>!X.value&&(ge.value=!1),["self"]))},[a("div",ng,[de(gt,{title:"Requeue Multiple Jobs",message:`Requeue ${G.value.length} selected jobs?`,"confirm-text":"Requeue All","confirm-class":"btn-primary",loading:X.value,onConfirm:E,onCancel:P[12]||(P[12]=Z=>ge.value=!1)},null,8,["message","loading"])])])):I("",!0),ne.value&&L.value?(x(),k("div",{key:6,class:"modal-overlay",onClick:P[15]||(P[15]=xe(Z=>!X.value&&(ne.value=!1),["self"]))},[a("div",sg,[de(gt,{title:"Pause Job",message:`Pause job '${L.value.job.name}'?`,details:[{label:"ID",value:L.value.job._id,type:"code"},{label:"Name",value:L.value.job.name},{label:"Data",value:Ae(L.value.job.data),type:"json"}],"confirm-text":"Pause","confirm-class":"btn-secondary",loading:X.value,onConfirm:N,onCancel:P[14]||(P[14]=Z=>ne.value=!1)},null,8,["message","details","loading"])])])):I("",!0),F.value&&L.value?(x(),k("div",{key:7,class:"modal-overlay",onClick:P[17]||(P[17]=xe(Z=>!X.value&&(F.value=!1),["self"]))},[a("div",og,[de(gt,{title:"Resume Job",message:`Resume job '${L.value.job.name}'?`,details:[{label:"ID",value:L.value.job._id,type:"code"},{label:"Name",value:L.value.job.name},{label:"Data",value:Ae(L.value.job.data),type:"json"}],"confirm-text":"Resume","confirm-class":"btn-success",loading:X.value,onConfirm:O,onCancel:P[16]||(P[16]=Z=>F.value=!1)},null,8,["message","details","loading"])])])):I("",!0),$e.value?(x(),k("div",{key:8,class:"modal-overlay",onClick:P[19]||(P[19]=xe(Z=>!X.value&&($e.value=!1),["self"]))},[a("div",rg,[de(gt,{title:"Pause Multiple Jobs",message:`Pause ${G.value.length} selected jobs?`,"confirm-text":"Pause All","confirm-class":"btn-secondary",loading:X.value,onConfirm:M,onCancel:P[18]||(P[18]=Z=>$e.value=!1)},null,8,["message","loading"])])])):I("",!0),me.value?(x(),k("div",{key:9,class:"modal-overlay",onClick:P[21]||(P[21]=xe(Z=>!X.value&&(me.value=!1),["self"]))},[a("div",ig,[de(gt,{title:"Resume Multiple Jobs",message:`Resume ${G.value.length} selected jobs?`,"confirm-text":"Resume All","confirm-class":"btn-success",loading:X.value,onConfirm:q,onCancel:P[20]||(P[20]=Z=>me.value=!1)},null,8,["message","loading"])])])):I("",!0)])),de(Ym)]))}}),ag=kc(lg);ag.mount("#app");
|
package/public/index.html
CHANGED
|
@@ -1,55 +1,14 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
|
16
|
-
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
|
17
|
-
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
|
18
|
-
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
|
19
|
-
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
|
20
|
-
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
|
21
|
-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
|
22
|
-
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
|
23
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;1,300;1,400;1,500;1,900&display=swap" rel="stylesheet">
|
|
24
|
-
<link href="https://fonts.googleapis.com/css2?family=Days+One&display=swap" rel="stylesheet">
|
|
25
|
-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
|
26
|
-
rel="stylesheet">
|
|
27
|
-
<link href="https://cdn.jsdelivr.net/npm/prismjs@1.20.0/themes/prism.css" rel="stylesheet" />
|
|
28
|
-
<link rel="stylesheet" href="https://unpkg.com/vue-prism-editor@0.6.1/dist/VuePrismEditor.css">
|
|
29
|
-
<link href="app/css/styles.css" rel="stylesheet">
|
|
30
|
-
</head>
|
|
31
|
-
<body>
|
|
32
|
-
<div id="agendash-root">
|
|
33
|
-
<app></app>
|
|
34
|
-
</div>
|
|
35
|
-
<script src="https://cdn.jsdelivr.net/combine/npm/prismjs@1.20.0,npm/vue-prism-editor@0.6.1,npm/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
|
|
37
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.21.1/axios.min.js"></script>
|
|
38
|
-
<script src="https://cdn.jsdelivr.net/npm/moment@2.24.0/moment.min.js"></script>
|
|
39
|
-
<script src="app/js/confirms.js"></script>
|
|
40
|
-
<script src="app/js/confirmDelete.js"></script>
|
|
41
|
-
<script src="app/js/confirmDeleteMulti.js"></script>
|
|
42
|
-
<script src="app/js/confirmRequeue.js"></script>
|
|
43
|
-
<script src="app/js/confirmRequeueMulti.js"></script>
|
|
44
|
-
<script src="app/js/newJob.js"></script>
|
|
45
|
-
<script src="app/js/jobdetail.js"></script>
|
|
46
|
-
<script src="app/js/joblist.js"></script>
|
|
47
|
-
<script src="app/js/sidebar.js"></script>
|
|
48
|
-
<script src="app/js/topbar.js"></script>
|
|
49
|
-
<script src="app/js/main.js"></script>
|
|
50
|
-
<script>
|
|
51
|
-
Vue.component('prism-editor', VuePrismEditor)
|
|
52
|
-
new Vue({ el: '#agendash-root' })
|
|
53
|
-
</script>
|
|
54
|
-
</body>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Agendash</title>
|
|
7
|
+
<link rel="manifest" href="/site.webmanifest" />
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Ct6Ovrls.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CIdOb8D1.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
</body>
|
|
55
14
|
</html>
|
package/public/site.webmanifest
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "Agendash",
|
|
3
|
+
"short_name": "Agendash",
|
|
4
|
+
"icons": [],
|
|
5
|
+
"theme_color": "#343a40",
|
|
6
|
+
"background_color": "#ffffff",
|
|
7
|
+
"display": "standalone"
|
|
8
|
+
}
|
package/Dockerfile
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
FROM node:14-alpine
|
|
2
|
-
|
|
3
|
-
# Dependencies
|
|
4
|
-
# RUN apk update && apk upgrade && \
|
|
5
|
-
# apk add --no-cache bash gawk sed grep bc coreutils git openssh
|
|
6
|
-
|
|
7
|
-
ENV NODE_ENV=production \
|
|
8
|
-
MONGODB_URI=mongodb://mongodb \
|
|
9
|
-
COLLECTION=agendaJobs \
|
|
10
|
-
BASE_PATH=/
|
|
11
|
-
|
|
12
|
-
RUN mkdir -p /agendash
|
|
13
|
-
WORKDIR /agendash
|
|
14
|
-
|
|
15
|
-
COPY package.json /agendash/
|
|
16
|
-
RUN npm install && npm cache clean --force
|
|
17
|
-
|
|
18
|
-
COPY . /agendash
|
|
19
|
-
RUN chmod +x /agendash/entrypoint.sh
|
|
20
|
-
|
|
21
|
-
EXPOSE 3000
|
|
22
|
-
|
|
23
|
-
ENTRYPOINT ["/agendash/entrypoint.sh"]
|