oksy 0.1.12 → 0.1.15
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.
|
@@ -8,7 +8,7 @@ var Jm=Object.defineProperty;var Xm=(e,t,n)=>t in e?Jm(e,t,{enumerable:!0,config
|
|
|
8
8
|
* vue-router v4.1.6
|
|
9
9
|
* (c) 2022 Eduardo San Martin Morote
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/const hs=typeof window<"u";function iv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Be=Object.assign;function bi(e,t){const n={};for(const s in t){const r=t[s];n[s]=Vt(r)?r.map(e):e(r)}return n}const no=()=>{},Vt=Array.isArray,lv=/\/$/,av=e=>e.replace(lv,"");function vi(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=dv(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function cv(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uv(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Os(t.matched[s],n.matched[r])&&Dd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Os(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fv(e[n],t[n]))return!1;return!0}function fv(e,t){return Vt(e)?Hc(e,t):Vt(t)?Hc(t,e):e===t}function Hc(e,t){return Vt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function dv(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o<s.length;o++)if(i=s[o],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var go;(function(e){e.pop="pop",e.push="push"})(go||(go={}));var so;(function(e){e.back="back",e.forward="forward",e.unknown=""})(so||(so={}));function pv(e){if(!e)if(hs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),av(e)}const hv=/^[^#]+#/;function mv(e,t){return e.replace(hv,"#")+t}function wv(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Wr=()=>({left:window.pageXOffset,top:window.pageYOffset});function gv(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=wv(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function jc(e,t){return(history.state?history.state.position-t:-1)+e}const Gi=new Map;function yv(e,t){Gi.set(e,t)}function bv(e){const t=Gi.get(e);return Gi.delete(e),t}let vv=()=>location.protocol+"//"+location.host;function Fd(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Fc(c,"")}return Fc(n,e)+s+r}function _v(e,t,n,s){let r=[],o=[],i=null;const l=({state:m})=>{const g=Fd(e,location),v=n.value,E=t.value;let N=0;if(m){if(n.value=g,t.value=m,i&&i===v){i=null;return}N=E?m.position-E.position:0}else s(g);r.forEach(C=>{C(n.value,v,{delta:N,type:go.pop,direction:N?N>0?so.forward:so.back:so.unknown})})};function c(){i=n.value}function f(m){r.push(m);const g=()=>{const v=r.indexOf(m);v>-1&&r.splice(v,1)};return o.push(g),g}function d(){const{history:m}=window;!m.state||m.replaceState(Be({},m.state,{scroll:Wr()}),"")}function h(){for(const m of o)m();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:f,destroy:h}}function Vc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Wr():null}}function Cv(e){const{history:t,location:n}=window,s={value:Fd(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,f,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:vv()+e+c;try{t[d?"replaceState":"pushState"](f,"",m),r.value=f}catch(g){console.error(g),n[d?"replace":"assign"](m)}}function i(c,f){const d=Be({},t.state,Vc(r.value.back,c,r.value.forward,!0),f,{position:r.value.position});o(c,d,!0),s.value=c}function l(c,f){const d=Be({},r.value,t.state,{forward:c,scroll:Wr()});o(d.current,d,!0);const h=Be({},Vc(s.value,c,null),{position:d.position+1},f);o(c,h,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function xv(e){e=pv(e);const t=Cv(e),n=_v(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Be({location:"",base:e,go:s,createHref:mv.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function kv(e){return typeof e=="string"||e&&typeof e=="object"}function Hd(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jd=Symbol("");var Uc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Uc||(Uc={}));function Is(e,t){return Be(new Error,{type:e,[jd]:!0},t)}function tn(e,t){return e instanceof Error&&jd in e&&(t==null||!!(e.type&t))}const qc="[^/]+?",Ev={sensitive:!1,strict:!1,start:!0,end:!0},Sv=/[.+*?^${}()[\]/\\]/g;function $v(e,t){const n=Be({},Ev,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const d=f.length?[]:[90];n.strict&&!f.length&&(r+="/");for(let h=0;h<f.length;h++){const m=f[h];let g=40+(n.sensitive?.25:0);if(m.type===0)h||(r+="/"),r+=m.value.replace(Sv,"\\$&"),g+=40;else if(m.type===1){const{value:v,repeatable:E,optional:N,regexp:C}=m;o.push({name:v,repeatable:E,optional:N});const b=C||qc;if(b!==qc){g+=10;try{new RegExp(`(${b})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+P.message)}}let k=E?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;h||(k=N&&f.length<2?`(?:/${k})`:"/"+k),N&&(k+="?"),r+=k,g+=20,N&&(g+=-8),E&&(g+=-20),b===".*"&&(g+=-50)}d.push(g)}s.push(d)}if(n.strict&&n.end){const f=s.length-1;s[f][s[f].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(f){const d=f.match(i),h={};if(!d)return null;for(let m=1;m<d.length;m++){const g=d[m]||"",v=o[m-1];h[v.name]=g&&v.repeatable?g.split("/"):g}return h}function c(f){let d="",h=!1;for(const m of e){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const g of m)if(g.type===0)d+=g.value;else if(g.type===1){const{value:v,repeatable:E,optional:N}=g,C=v in f?f[v]:"";if(Vt(C)&&!E)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Vt(C)?C.join("/"):C;if(!b)if(N)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${v}"`);d+=b}}return d||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Tv(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Pv(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Tv(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(zc(s))return 1;if(zc(r))return-1}return r.length-s.length}function zc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Av={type:0,value:""},Ov=/[a-zA-Z0-9_]/;function Iv(e){if(!e)return[[]];if(e==="/")return[[Av]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,f="",d="";function h(){!f||(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(f&&h(),i()):c===":"?(h(),n=1):m();break;case 4:m(),n=s;break;case 1:c==="("?n=2:Ov.test(c)?m():(h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=3:d+=c;break;case 3:h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),h(),i(),r}function Mv(e,t,n){const s=$v(Iv(e.path),n),r=Be(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Rv(e,t){const n=[],s=new Map;t=Yc({strict:!1,end:!0,sensitive:!1},t);function r(d){return s.get(d)}function o(d,h,m){const g=!m,v=Bv(d);v.aliasOf=m&&m.record;const E=Yc(t,d),N=[v];if("alias"in d){const k=typeof d.alias=="string"?[d.alias]:d.alias;for(const P of k)N.push(Be({},v,{components:m?m.record.components:v.components,path:P,aliasOf:m?m.record:v}))}let C,b;for(const k of N){const{path:P}=k;if(h&&P[0]!=="/"){const $=h.record.path,O=$[$.length-1]==="/"?"":"/";k.path=h.record.path+(P&&O+P)}if(C=Mv(k,h,E),m?m.alias.push(C):(b=b||C,b!==C&&b.alias.push(C),g&&d.name&&!Wc(C)&&i(d.name)),v.children){const $=v.children;for(let O=0;O<$.length;O++)o($[O],C,m&&m.children[O])}m=m||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&c(C)}return b?()=>{i(b)}:no}function i(d){if(Hd(d)){const h=s.get(d);h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){let h=0;for(;h<n.length&&Pv(d,n[h])>=0&&(d.record.path!==n[h].record.path||!Vd(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!Wc(d)&&s.set(d.record.name,d)}function f(d,h){let m,g={},v,E;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw Is(1,{location:d});E=m.record.name,g=Be(Kc(h.params,m.keys.filter(b=>!b.optional).map(b=>b.name)),d.params&&Kc(d.params,m.keys.map(b=>b.name))),v=m.stringify(g)}else if("path"in d)v=d.path,m=n.find(b=>b.re.test(v)),m&&(g=m.parse(v),E=m.record.name);else{if(m=h.name?s.get(h.name):n.find(b=>b.re.test(h.path)),!m)throw Is(1,{location:d,currentLocation:h});E=m.record.name,g=Be({},h.params,d.params),v=m.stringify(g)}const N=[];let C=m;for(;C;)N.unshift(C.record),C=C.parent;return{name:E,path:v,params:g,matched:N,meta:Lv(N)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function Kc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Bv(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Nv(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Nv(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Wc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Lv(e){return e.reduce((t,n)=>Be(t,n.meta),{})}function Yc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Vd(e,t){return t.children.some(n=>n===e||Vd(e,n))}const Ud=/#/g,Dv=/&/g,Fv=/\//g,Hv=/=/g,jv=/\?/g,qd=/\+/g,Vv=/%5B/g,Uv=/%5D/g,zd=/%5E/g,qv=/%60/g,Kd=/%7B/g,zv=/%7C/g,Wd=/%7D/g,Kv=/%20/g;function ta(e){return encodeURI(""+e).replace(zv,"|").replace(Vv,"[").replace(Uv,"]")}function Wv(e){return ta(e).replace(Kd,"{").replace(Wd,"}").replace(zd,"^")}function Ji(e){return ta(e).replace(qd,"%2B").replace(Kv,"+").replace(Ud,"%23").replace(Dv,"%26").replace(qv,"`").replace(Kd,"{").replace(Wd,"}").replace(zd,"^")}function Yv(e){return Ji(e).replace(Hv,"%3D")}function Zv(e){return ta(e).replace(Ud,"%23").replace(jv,"%3F")}function Qv(e){return e==null?"":Zv(e).replace(Fv,"%2F")}function vr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Gv(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(qd," "),i=o.indexOf("="),l=vr(i<0?o:o.slice(0,i)),c=i<0?null:vr(o.slice(i+1));if(l in t){let f=t[l];Vt(f)||(f=t[l]=[f]),f.push(c)}else t[l]=c}return t}function Zc(e){let t="";for(let n in e){const s=e[n];if(n=Yv(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Vt(s)?s.map(o=>o&&Ji(o)):[s&&Ji(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jv(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Vt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xv=Symbol(""),Qc=Symbol(""),Yr=Symbol(""),na=Symbol(""),Xi=Symbol("");function zs(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function _n(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const c=h=>{h===!1?l(Is(4,{from:n,to:t})):h instanceof Error?l(h):kv(h)?l(Is(2,{from:t,to:h})):(o&&s.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),i())},f=e.call(s&&s.instances[r],t,n,c);let d=Promise.resolve(f);e.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function _i(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(e1(l)){const f=(l.__vccOpts||l)[t];f&&r.push(_n(f,n,s,o,i))}else{let c=l();r.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=iv(f)?f.default:f;o.components[i]=d;const m=(d.__vccOpts||d)[t];return m&&_n(m,n,s,o,i)()}))}}return r}function e1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Gc(e){const t=St(Yr),n=St(na),s=je(()=>t.resolve(se(e.to))),r=je(()=>{const{matched:c}=s.value,{length:f}=c,d=c[f-1],h=n.matched;if(!d||!h.length)return-1;const m=h.findIndex(Os.bind(null,d));if(m>-1)return m;const g=Jc(c[f-2]);return f>1&&Jc(d)===g&&h[h.length-1].path!==g?h.findIndex(Os.bind(null,c[f-2])):m}),o=je(()=>r.value>-1&&o1(n.params,s.value.params)),i=je(()=>r.value>-1&&r.value===n.matched.length-1&&Dd(n.params,s.value.params));function l(c={}){return s1(c)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(no):Promise.resolve()}return{route:s,href:je(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const t1=me({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gc,setup(e,{slots:t}){const n=ss(Gc(e)),{options:s}=St(Yr),r=je(()=>({[Xc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Xc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Dr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),n1=t1;function s1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function o1(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Vt(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Jc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xc=(e,t,n)=>e!=null?e:t!=null?t:n,r1=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=St(Xi),r=je(()=>e.route||s.value),o=St(Qc,0),i=je(()=>{let f=se(o);const{matched:d}=r.value;let h;for(;(h=d[f])&&!h.components;)f++;return f}),l=je(()=>r.value.matched[i.value]);Zs(Qc,je(()=>i.value+1)),Zs(Xv,l),Zs(Xi,r);const c=G();return Ht(()=>[c.value,l.value,e.name],([f,d,h],[m,g,v])=>{d&&(d.instances[h]=f,g&&g!==d&&f&&f===m&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),f&&d&&(!g||!Os(d,g)||!m)&&(d.enterCallbacks[h]||[]).forEach(E=>E(f))},{flush:"post"}),()=>{const f=r.value,d=e.name,h=l.value,m=h&&h.components[d];if(!m)return eu(n.default,{Component:m,route:f});const g=h.props[d],v=g?g===!0?f.params:typeof g=="function"?g(f):g:null,N=Dr(m,Be({},v,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return eu(n.default,{Component:N,route:f})||N}}});function eu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const i1=r1;function l1(e){const t=Rv(e.routes,e),n=e.parseQuery||Gv,s=e.stringifyQuery||Zc,r=e.history,o=zs(),i=zs(),l=zs(),c=Bu(yn);let f=yn;hs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bi.bind(null,D=>""+D),h=bi.bind(null,Qv),m=bi.bind(null,vr);function g(D,ne){let ee,oe;return Hd(D)?(ee=t.getRecordMatcher(D),oe=ne):oe=D,t.addRoute(oe,ee)}function v(D){const ne=t.getRecordMatcher(D);ne&&t.removeRoute(ne)}function E(){return t.getRoutes().map(D=>D.record)}function N(D){return!!t.getRecordMatcher(D)}function C(D,ne){if(ne=Be({},ne||c.value),typeof D=="string"){const w=vi(n,D,ne.path),_=t.resolve({path:w.path},ne),M=r.createHref(w.fullPath);return Be(w,_,{params:m(_.params),hash:vr(w.hash),redirectedFrom:void 0,href:M})}let ee;if("path"in D)ee=Be({},D,{path:vi(n,D.path,ne.path).path});else{const w=Be({},D.params);for(const _ in w)w[_]==null&&delete w[_];ee=Be({},D,{params:h(D.params)}),ne.params=h(ne.params)}const oe=t.resolve(ee,ne),ue=D.hash||"";oe.params=d(m(oe.params));const be=cv(s,Be({},D,{hash:Wv(ue),path:oe.path})),ge=r.createHref(be);return Be({fullPath:be,hash:ue,query:s===Zc?Jv(D.query):D.query||{}},oe,{redirectedFrom:void 0,href:ge})}function b(D){return typeof D=="string"?vi(n,D,c.value.path):Be({},D)}function k(D,ne){if(f!==D)return Is(8,{from:ne,to:D})}function P(D){return U(D)}function $(D){return P(Be(b(D),{replace:!0}))}function O(D){const ne=D.matched[D.matched.length-1];if(ne&&ne.redirect){const{redirect:ee}=ne;let oe=typeof ee=="function"?ee(D):ee;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=b(oe):{path:oe},oe.params={}),Be({query:D.query,hash:D.hash,params:"path"in oe?{}:D.params},oe)}}function U(D,ne){const ee=f=C(D),oe=c.value,ue=D.state,be=D.force,ge=D.replace===!0,w=O(ee);if(w)return U(Be(b(w),{state:typeof w=="object"?Be({},ue,w.state):ue,force:be,replace:ge}),ne||ee);const _=ee;_.redirectedFrom=ne;let M;return!be&&uv(s,oe,ee)&&(M=Is(16,{to:_,from:oe}),ke(oe,oe,!0,!1)),(M?Promise.resolve(M):B(_,oe)).catch(F=>tn(F)?tn(F,2)?F:ce(F):q(F,_,oe)).then(F=>{if(F){if(tn(F,2))return U(Be({replace:ge},b(F.to),{state:typeof F.to=="object"?Be({},ue,F.to.state):ue,force:be}),ne||_)}else F=K(_,oe,!0,ge,ue);return L(_,oe,F),F})}function T(D,ne){const ee=k(D,ne);return ee?Promise.reject(ee):Promise.resolve()}function B(D,ne){let ee;const[oe,ue,be]=a1(D,ne);ee=_i(oe.reverse(),"beforeRouteLeave",D,ne);for(const w of oe)w.leaveGuards.forEach(_=>{ee.push(_n(_,D,ne))});const ge=T.bind(null,D,ne);return ee.push(ge),ds(ee).then(()=>{ee=[];for(const w of o.list())ee.push(_n(w,D,ne));return ee.push(ge),ds(ee)}).then(()=>{ee=_i(ue,"beforeRouteUpdate",D,ne);for(const w of ue)w.updateGuards.forEach(_=>{ee.push(_n(_,D,ne))});return ee.push(ge),ds(ee)}).then(()=>{ee=[];for(const w of D.matched)if(w.beforeEnter&&!ne.matched.includes(w))if(Vt(w.beforeEnter))for(const _ of w.beforeEnter)ee.push(_n(_,D,ne));else ee.push(_n(w.beforeEnter,D,ne));return ee.push(ge),ds(ee)}).then(()=>(D.matched.forEach(w=>w.enterCallbacks={}),ee=_i(be,"beforeRouteEnter",D,ne),ee.push(ge),ds(ee))).then(()=>{ee=[];for(const w of i.list())ee.push(_n(w,D,ne));return ee.push(ge),ds(ee)}).catch(w=>tn(w,8)?w:Promise.reject(w))}function L(D,ne,ee){for(const oe of l.list())oe(D,ne,ee)}function K(D,ne,ee,oe,ue){const be=k(D,ne);if(be)return be;const ge=ne===yn,w=hs?history.state:{};ee&&(oe||ge?r.replace(D.fullPath,Be({scroll:ge&&w&&w.scroll},ue)):r.push(D.fullPath,ue)),c.value=D,ke(D,ne,ee,ge),ce()}let z;function H(){z||(z=r.listen((D,ne,ee)=>{if(!Ge.listening)return;const oe=C(D),ue=O(oe);if(ue){U(Be(ue,{replace:!0}),oe).catch(no);return}f=oe;const be=c.value;hs&&yv(jc(be.fullPath,ee.delta),Wr()),B(oe,be).catch(ge=>tn(ge,12)?ge:tn(ge,2)?(U(ge.to,oe).then(w=>{tn(w,20)&&!ee.delta&&ee.type===go.pop&&r.go(-1,!1)}).catch(no),Promise.reject()):(ee.delta&&r.go(-ee.delta,!1),q(ge,oe,be))).then(ge=>{ge=ge||K(oe,be,!1),ge&&(ee.delta&&!tn(ge,8)?r.go(-ee.delta,!1):ee.type===go.pop&&tn(ge,20)&&r.go(-1,!1)),L(oe,be,ge)}).catch(no)}))}let S=zs(),j=zs(),J;function q(D,ne,ee){ce(D);const oe=j.list();return oe.length?oe.forEach(ue=>ue(D,ne,ee)):console.error(D),Promise.reject(D)}function X(){return J&&c.value!==yn?Promise.resolve():new Promise((D,ne)=>{S.add([D,ne])})}function ce(D){return J||(J=!D,H(),S.list().forEach(([ne,ee])=>D?ee(D):ne()),S.reset()),D}function ke(D,ne,ee,oe){const{scrollBehavior:ue}=e;if(!hs||!ue)return Promise.resolve();const be=!ee&&bv(jc(D.fullPath,0))||(oe||!ee)&&history.state&&history.state.scroll||null;return rs().then(()=>ue(D,ne,be)).then(ge=>ge&&gv(ge)).catch(ge=>q(ge,D,ne))}const Te=D=>r.go(D);let Ce;const Fe=new Set,Ge={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,hasRoute:N,getRoutes:E,resolve:C,options:e,push:P,replace:$,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:j.add,isReady:X,install(D){const ne=this;D.component("RouterLink",n1),D.component("RouterView",i1),D.config.globalProperties.$router=ne,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>se(c)}),hs&&!Ce&&c.value===yn&&(Ce=!0,P(r.location).catch(ue=>{}));const ee={};for(const ue in yn)ee[ue]=je(()=>c.value[ue]);D.provide(Yr,ne),D.provide(na,ss(ee)),D.provide(Xi,c);const oe=D.unmount;Fe.add(D),D.unmount=function(){Fe.delete(D),Fe.size<1&&(f=yn,z&&z(),z=null,c.value=yn,Ce=!1,J=!1),oe()}}};return Ge}function ds(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function a1(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(f=>Os(f,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(f=>Os(f,c))||r.push(c))}return[n,s,r]}function hn(){return St(Yr)}function Zr(){return St(na)}const c1={class:"tw-flex"},u1={class:"tw-flex-shrink-0"},f1={key:0,class:"tw-h-5 tw-w-5 tw-text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},d1=x("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1),p1=[d1],h1={key:1,xmlns:"http://www.w3.org/2000/svg",class:"tw-h-5 tw-w-5 tw-text-green-400",viewBox:"0 0 20 20",fill:"currentColor"},m1=x("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1),w1=[m1],g1={class:"tw-ml-3"},yo=me({__name:"AlertMessage",props:{message:null,type:null},setup(e){return(t,n)=>(A(),Q("div",{class:Pe(["tw-rounded-md tw-p-4",{"tw-bg-red-50":e.type==="error","tw-bg-green-50":e.type==="success"}])},[x("div",c1,[x("div",u1,[e.type==="error"?(A(),Q("svg",f1,p1)):ve("",!0),e.type==="success"?(A(),Q("svg",h1,w1)):ve("",!0)]),x("div",g1,[x("p",{class:Pe(["tw-text-sm tw-font-medium",{"tw-text-red-800":e.type==="error","tw-text-green-700":e.type==="success"}])},de(e.message),3)])])],2))}}),He={error:{validator:{email:"Must be a valid email",minLength:e=>`Must be longer than ${e.toString()} characters`}},frontend:{chooseWorkspace:{title:"Choose your workspace."},loginPage:{title:"Sign in to your account",noAccount:"Don't have an account?",registerNow:"Register Now",forgotPassword:"Forgot your password?"},registerPage:{title:"Sign up for a new account",alreadyAccount:"Already have an account?",loginNow:"Login Now",confirmPassword:"Confirm Password"},forgotPasswordPage:{title:"Forgot your password?",button:"Send reset mail",emailNotFound:"The email is not valid or does not belong to any user.",successMessage:"A password reset link has been sent to your email account. If your email has not arrived in the next ten minutes, please check your Spam folder.",backToLogin:"Back to login.",rememberAgain:"Remember your password again?"},resetPasswordPage:{title:"Choose a new password",button:"Change Password",error:{tokenExpired:"Token is expired",passwordsNotMatching:"Passwords do not match",passwordsToShort:"Password needs to be longer"},successToast:"Password changed"},logout:"Logout",signIn:"Sign in",signUp:"Sign up",disconectOverlay:{message:"Reconnecting"},errorPage:{backToHome:"Back to Home",code404:"The page you are looking for could not be found.",code500:"An internal error has occurred."}}},y1=["textContent"],b1=["textContent"],v1={key:2,class:"loader"},_1=me({__name:"BaseButton",props:{disabled:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},icon:{default:null},label:{default:null},loading:{type:Boolean,default:!1},size:{default:"md"},type:{default:"primary"}},emits:["clicked"],setup(e){const t=e,n=je(()=>t.ghost===!0&&t.type==="secondary"?"primary":t.type),s=je(()=>t.size===void 0?"md":t.size),r=je(()=>t.icon&&t.label||t.loading?"text-and-icon":t.icon?"only-icon":"only-text"),o=je(()=>`${n.value} ${s.value} ${r.value} ${t.ghost?"ghost":"normal"} ${t.loading?"loading":""} ${t.disabled?"disabled":""}`);return(i,l)=>(A(),Q("div",{class:Pe(["tw-shrink-0",{"tw-cursor-not-allowed":e.disabled,"tw-cursor-wait":e.loading}])},[x("button",{onClick:l[0]||(l[0]=c=>i.$emit("clicked")),class:Pe(`${se(o)} tw-w-full`),style:{"border-style":"inherit"}},[e.label!==null?(A(),Q("span",{key:0,textContent:de(e.label)},null,8,y1)):ve("",!0),e.icon!==null&&e.loading===!1?(A(),Q("span",{key:1,class:"material-symbols-rounded",textContent:de(e.icon)},null,8,b1)):ve("",!0),e.loading?(A(),Q("span",v1)):ve("",!0)],2)],2))}});const kn=ea(_1,[["__scopeId","data-v-d0727c53"]]),C1={class:"tw-min-h-full tw-flex tw-flex-col tw-justify-center tw-py-12 sm:tw-px-6 tw-lg:px-8"},x1={class:"sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},k1={class:"tw-mt-6 tw-text-center tw-text-3xl tw-font-extrabold tw-text-gray-900"},E1={key:0,class:"tw-mt-2 tw-text-center tw-text-sm tw-text-gray-600"},S1={class:"tw-mt-8 sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},$1={class:"tw-bg-white tw-py-8 tw-px-4 tw-shadow sm:tw-rounded-lg sm:tw-px-10"},T1={class:"tw-space-y-6"},P1=x("label",{for:"email",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Email ",-1),A1={class:"tw-mt-1"},O1=["onKeypress"],I1=x("label",{for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Password ",-1),M1={class:"tw-mt-1"},R1=["onKeypress"],B1={class:"tw-flex tw-items-center tw-justify-between"},N1=x("div",{class:"tw-flex tw-items-center"},[x("input",{id:"remember-me",name:"remember-me",type:"checkbox",class:"tw-h-4 tw-w-4 tw-rounded tw-border-gray-300 tw-text-blue-600 tw-focus:ring-blue-500"}),x("label",{for:"remember-me",class:"tw-ml-2 tw-block tw-text-sm tw-text-gray-900"},"Remember me")],-1),L1={class:"tw-text-sm"},D1=me({__name:"LoginPage",emits:["signedIn"],setup(e,{emit:t}){const n=G(!1),s=G(""),r=G(""),o=hn();async function i(){const c=await window.webSocketClient.request("login",{email:s.value,password:r.value,userAgent:navigator.userAgent});c.status===!1?n.value=!0:(localStorage.setItem("sessionId",c.sessionId),setTimeout(()=>o.replace("/logout"),c.validForMilliseconds),t("signedIn"))}const l=G(window.config.register==="open");return(c,f)=>(A(),Q("div",C1,[x("div",x1,[x("h2",k1,de(se(He).frontend.loginPage.title),1),l.value?(A(),Q("p",E1,[We(de(se(He).frontend.loginPage.noAccount)+" "+de(" ")+" ",1),x("span",{onClick:f[0]||(f[0]=d=>c.$router.push("/register")),class:"tw-cursor-pointer tw-font-medium tw-text-blue-600 tw-hover:text-blue-500"},de(se(He).frontend.loginPage.registerNow),1)])):ve("",!0)]),x("div",S1,[x("div",$1,[n.value?(A(),pe(yo,{key:0,type:"error",message:"Wrong credentials",class:"tw-mb-4"})):ve("",!0),x("div",T1,[x("div",null,[P1,x("div",A1,[xt(x("input",{"onUpdate:modelValue":f[1]||(f[1]=d=>s.value=d),id:"email",name:"email",type:"email",autocomplete:"email",required:"",class:"tw-appearance-none tw-block tw-w-full tw-px-3 tw-py-2 tw-border tw-border-gray-300 tw-rounded-md tw-shadow-sm tw-placeholder-gray-400 tw-focus:outline-none tw-focus:ring-blue-500 tw-focus:border-blue-500 sm:tw-text-sm",onKeypress:Qt(i,["enter"])},null,40,O1),[[kt,s.value]])])]),x("div",null,[I1,x("div",M1,[xt(x("input",{"onUpdate:modelValue":f[2]||(f[2]=d=>r.value=d),id:"password",name:"password",type:"password",autocomplete:"current-password",required:"",class:"tw-appearance-none tw-block tw-w-full tw-px-3 tw-py-2 tw-border tw-border-gray-300 tw-rounded-md tw-shadow-sm tw-placeholder-gray-400 tw-focus:outline-none tw-focus:ring-blue-500 tw-focus:border-blue-500 sm:tw-text-sm",onKeypress:Qt(i,["enter"])},null,40,R1),[[kt,r.value]])])]),x("div",B1,[N1,x("div",L1,[x("span",{onClick:f[3]||(f[3]=d=>c.$router.push("/forgot-password")),class:"tw-font-medium tw-text-blue-600 tw-hover:text-blue-500 tw-cursor-pointer"},de(se(He).frontend.loginPage.forgotPassword),1)])]),_e(kn,{label:se(He).frontend.signIn,onClicked:i},null,8,["label"])])])])]))}}),F1={class:"tw-h-full"},H1={class:"tw-max-w-7xl tw-w-full tw-mx-auto tw-px-4 sm:tw-px-6 lg:tw-px-8"},j1={class:"tw-max-w-xl tw-mx-auto tw-py-16 sm:tw-py-24"},V1={class:"tw-text-center"},U1={class:"tw-mt-2 tw-text-4xl tw-font-extrabold tw-text-gray-900 tw-tracking-tight sm:tw-text-5xl"},q1={class:"tw-mt-12 tw-mb-4"},z1={role:"list",class:"tw-mt-4 tw-border-t tw-border-b tw-border-gray-200 tw-divide-y tw-divide-gray-200"},K1=["onClick"],W1={class:"tw-min-w-0 tw-flex-1"},Y1={class:"tw-text-base tw-font-medium tw-text-gray-900 group-hover:tw-text-blue-500"},Z1=x("span",{class:"tw-absolute tw-inset-0","aria-hidden":"true"},null,-1),Q1=x("div",{class:"tw-flex-shrink-0 tw-self-center"},[x("svg",{class:"tw-h-5 tw-w-5 tw-text-gray-400 group-hover:tw-text-blue-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[x("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})])],-1),G1={class:"tw-mt-4 tw-text-center"},J1=me({__name:"ChooseWorkspace",setup(e){const t=hn(),n=G(null);Ut(async()=>{n.value=await window.webSocketClient.request("workspaces")});async function s(r){await t.push(`/${r}`)}return(r,o)=>(A(),Q("div",F1,[x("main",H1,[x("div",j1,[x("div",V1,[x("h1",U1,de(se(He).frontend.chooseWorkspace.title),1)]),x("div",q1,[x("ul",z1,[(A(!0),Q($e,null,nt(n.value,i=>(A(),Q("li",{class:"group tw-relative tw-py-6 tw-flex tw-items-start tw-space-x-4 tw-cursor-pointer hover:tw-bg-blue-50 tw-px-4",key:i.id,onClick:l=>s(i.id)},[x("div",W1,[x("h3",Y1,[x("span",null,[Z1,We(" "+de(i.name),1)])])]),Q1],8,K1))),128))]),x("div",G1,[x("span",{onClick:o[0]||(o[0]=i=>r.$router.replace("/logout")),class:"tw-cursor-pointer tw-text-sm tw-font-medium tw-text-blue-600 hover:tw-text-blue-500"},de(se(He).frontend.logout),1)])])])])]))}});function it(e,t){const n=window.webSocketClient.subscribe(`getter:${e}`,t);window.webSocketClient.request(`getterInit:${e}`).then(s=>t(s)),Ns(()=>{n(),window.webSocketClient.emit("stopGetter",e)})}const X1=me({__name:"SyncButton",props:{options:null},setup(e){var h;const t=e,n=G((h=t.options.classInit)!=null?h:""),s=G(!1),r=G(t.options.ghostInit),o=G(t.options.iconInit),i=G(""),l=G(!1),c=G(t.options.sizeInit),f=G(t.options.typeInit);it(t.options.labelId,m=>i.value=m),it(t.options.disabledId,m=>s.value=m);async function d(){l.value=!0,await window.webSocketClient.request(`setter:${t.options.onClickId}`),l.value=!1}return(m,g)=>(A(),pe(kn,{onClicked:d,label:i.value,class:Pe(n.value),loading:l.value,disabled:s.value,type:f.value,size:c.value,ghost:r.value,icon:o.value},null,8,["label","class","loading","disabled","type","size","ghost","icon"]))}}),e2={class:"tw-cursor-pointer tw-select-none"},t2=x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0l-3.75-3.75M17.25 21L21 17.25"},null,-1),n2=[t2],s2={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"tw-w-5 tw-h-5 tw-text-blue-500 hover:tw-text-blue-600"},o2=x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"},null,-1),r2=[o2],i2=me({__name:"SortIcon",props:{state:null},setup(e){return(t,n)=>(A(),Q("div",e2,[e.state==="idle"||e.state==="asc"?(A(),Q("svg",{key:0,class:Pe(["tw-w-5 tw-h-5",{"tw-text-gray-400 hover:tw-text-gray-500":e.state==="idle","tw-text-blue-500 hover:tw-text-blue-600":e.state==="asc"}]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},n2,2)):ve("",!0),e.state==="desc"?(A(),Q("svg",s2,r2)):ve("",!0)]))}}),l2={class:"tw-w-auto tw-py-20 tw-m-3 tw-text-center tw-border-2 tw-border-dashed tw-border-gray-200"},a2={class:"tw-text-base tw-text-gray-600 tw-leading-9"},c2=me({__name:"EmptyState",props:{type:null},setup(e){return(t,n)=>(A(),Q("div",l2,[x("span",a2,de(e.type==="no-data"?"NO DATA":"NO RESULTS"),1)]))}});function u2(e){const t=G([]),n=je(()=>e.value.length>0&&e.value.every(i=>t.value.includes(i.id))),s=je(()=>e.value.length>0&&e.value.some(i=>t.value.includes(i.id)));function r(){e.value.forEach(i=>{t.value.includes(i.id)===!1&&t.value.push(i.id)})}function o(){e.value.forEach(i=>{t.value=t.value.filter(l=>l!==i.id)})}return{allRowsOnScreenAreSelected:n,someRowsOnScreenAreSelected:s,selectedAllItemsOnScreen:r,deselectAllItemsOnScreen:o,selectedIds:t}}function f2(e,t){const n=G(null);function s(r){t.value=1,n.value&&n.value.key===r&&n.value.type==="ASC"?n.value={type:"DESC",key:r}:n.value&&n.value.key===r&&n.value.type==="DESC"?n.value=null:n.value={type:"ASC",key:r},e()}return{sort:n,setSort:s}}function d2(e){const t=G(1);function n(){t.value+=1,e()}function s(){t.value-=1,e()}return{pageNumber:t,next:n,previous:s}}function p2(e,t){const n=je(()=>{var r;return((r=e.value[e.value.length-1])==null?void 0:r.name)===""});return{gridTemplateColumns:je(()=>{const r=[];let o=e.value.length;return t.value&&r.push("64px"),n.value?(o=o-1,r.push(`repeat(${o},minmax(max-content,1fr))`),r.push("min-content")):r.push(`repeat(${o},minmax(max-content,1fr))`),r.join(" ")})}}var tu;const Io=typeof window<"u",nu=e=>typeof e=="function",Yd=e=>typeof e=="string",h2=()=>{};Io&&((tu=window==null?void 0:window.navigator)==null?void 0:tu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function el(e){return typeof e=="function"?e():se(e)}function m2(e,t){function n(...s){e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})}return n}function w2(e,t={}){let n,s;return o=>{const i=el(e),l=el(t.maxWait);if(n&&clearTimeout(n),i<=0||l!==void 0&&l<=0)return s&&(clearTimeout(s),s=null),o();l&&!s&&(s=setTimeout(()=>{n&&clearTimeout(n),s=null,o()},l)),n=setTimeout(()=>{s&&clearTimeout(s),s=null,o()},i)}}function g2(e){return e}function Zd(e){return vu()?(_u(e),!0):!1}function Ms(e,t=200,n={}){return m2(w2(t,n),e)}function y2(e){return typeof e=="function"?je(e):G(e)}function b2(e,t=!0){en()?Ut(e):t?e():rs(e)}function v2(e,t){const n=G(""),s=G("");function r(i){n.value=i,o(i)}const o=Ms(async i=>{e.value=1,await t(),s.value=i},250);return{liveQuery:n,requestQuery:s,setQueryValue:r}}const _2={class:"tw-flex tw-justify-center tw-items-stretch tw-w-full tw-border-b tw-border-gray-200"},C2=["value"],x2={key:0,class:"tw-flex-shrink-0 tw-px-3 tw-bg-blue-600 tw-text-white tw-flex tw-space-x-2 tw-justify-center tw-items-center tw-text-sm"},k2=x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",class:"tw-w-[1.1rem] tw-h-[1.1rem]",fill:"currentColor"},[x("path",{d:"M0 0h24v24H0V0z",fill:"none"}),x("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})],-1),E2=[k2],S2={class:"tw-flex tw-items-center tw-space-x-2 tw-bg-gray-50 tw-flex-shrink-0 tw-select-none tw-px-2"},$2={key:0,class:"tw-flex tw-justify-center tw-items-center tw-bg-gray-50 tw-border-b tw-border-gray-300"},T2=["checked","indeterminate"],P2={key:0,class:"tw-flex tw-justify-center tw-items-center tw-border-b tw-border-gray-200 tw-relative"},A2={key:0,class:"tw-absolute tw-inset-y-0 tw-left-0 tw-w-0.5 tw-bg-blue-600"},O2=["value"],I2={class:"tw-flex tw-items-center tw-justify-between tw-border-t tw-border-gray-200 tw-bg-white tw-px-4 tw-py-3 sm:tw-px-6 -mt-[1px]","aria-label":"Pagination"},M2={class:"tw-hidden sm:tw-block"},R2={key:0,class:"tw-text-sm tw-text-gray-700"},B2={class:"tw-font-medium"},N2={class:"tw-font-medium"},L2={class:"tw-font-medium"},D2={class:"tw-flex tw-flex-1 tw-justify-between sm:tw-justify-end"},F2=me({__name:"BaseDataTable",props:{actions:null,page:null,columns:null,selectable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},alwaysLoading:{type:Boolean,default:!1},request:null},emits:["actionClick"],setup(e){const t=e,{allRowsOnScreenAreSelected:n,someRowsOnScreenAreSelected:s,selectedAllItemsOnScreen:r,deselectAllItemsOnScreen:o,selectedIds:i}=u2(je(()=>{var b,k;return(k=(b=Ys(t,"page").value)==null?void 0:b.rows)!=null?k:[]})),l=G(!1);Ut(()=>c());async function c(){l.value=!0,await t.request(f.value,E.value,m.value),l.value=!1}const{pageNumber:f,next:d,previous:h}=d2(c),{liveQuery:m,requestQuery:g,setQueryValue:v}=v2(f,c),{sort:E,setSort:N}=f2(c,f),{gridTemplateColumns:C}=p2(Ys(t,"columns"),Ys(t,"selectable"));return(b,k)=>e.page!==null?(A(),Q("div",{key:0,class:Pe(["tw-flex tw-flex-col tw-shadow tw-ring-1 tw-ring-black tw-ring-opacity-5 tw-rounded md:tw-rounded-lg tw-w-full tw-overflow-hidden",{"tw-pointer-events-none":l.value||e.alwaysLoading||e.disabled}])},[x("div",_2,[x("input",{type:"text",class:"tw-flex-1 tw-border-0 focus:tw-ring-0 tw-text-sm tw-block tw-py-3 tw-bg-gray-50 placeholder:tw-text-gray-400",placeholder:"Search",value:se(m),onKeypress:k[0]||(k[0]=P=>se(v)(P.target.value)),onInput:k[1]||(k[1]=P=>se(v)(P.target.value))},null,40,C2),se(i).length>0?(A(),Q("div",x2,[x("span",null,"Selected: "+de(se(i).length),1),x("div",{onClick:k[2]||(k[2]=P=>i.value=[]),class:"tw-rounded hover:tw-bg-blue-500 tw-cursor-pointer tw-p-1 tw-select-none"},E2)])):ve("",!0),x("div",S2,[(A(!0),Q($e,null,nt(e.actions,P=>(A(),Q($e,{key:P.id},[!P.bulkAction||se(i).length>0?(A(),pe(kn,{key:0,type:"tertiary",size:"sm",label:P.label,icon:P.icon,onClicked:$=>b.$emit("actionClick",P.id)},null,8,["label","icon","onClicked"])):ve("",!0)],64))),128))])]),e.page.rows.length===0?(A(),pe(c2,{key:0,type:e.page.totalWithoutFilter===0?"no-data":"no-results"},null,8,["type"])):(A(),Q("div",{key:1,class:"tw-relative tw-grid tw-overflow-scroll tw-min-w-full",style:Xt(`grid-template-columns: ${se(C)}`)},[e.selectable?(A(),Q("div",$2,[x("input",{type:"checkbox",class:"tw-h-4 tw-w-4 tw-rounded tw-border-gray-300 tw-text-blue-600 focus:tw-ring-blue-500",checked:se(n),indeterminate:se(n)===!1&&se(s),onChange:k[3]||(k[3]=P=>P.target.checked?se(r)():se(o)())},null,40,T2)])):ve("",!0),(A(!0),Q($e,null,nt(e.columns,P=>{var $,O;return A(),Q("div",{key:P.key,class:"tw-flex tw-flex-shrink-0 tw-justify-between tw-items-center tw-space-x-4 tw-bg-gray-50 tw-border-b tw-border-gray-300 tw-whitespace-nowrap tw-py-4 tw-px-4 tw-text-sm tw-font-semibold tw-text-gray-900"},[x("span",null,de(P.name),1),P.sortable?(A(),pe(i2,{key:0,onClick:U=>se(N)(P.key),state:(($=se(E))==null?void 0:$.key)===P.key?((O=se(E))==null?void 0:O.type)==="ASC"?"asc":"desc":"idle"},null,8,["onClick","state"])):ve("",!0)])}),128)),(A(!0),Q($e,null,nt(e.page.rows,P=>(A(),Q($e,{key:P.id},[e.selectable?(A(),Q("div",P2,[se(i).includes(P.id)?(A(),Q("div",A2)):ve("",!0),xt(x("input",{type:"checkbox",class:"tw-absolute tw-left-4 tw-top-1/2 tw--mt-2 tw-h-4 tw-w-4 tw-rounded tw-border-gray-300 tw-text-blue-600 focus:tw-ring-blue-500 sm:tw-left-6","onUpdate:modelValue":k[4]||(k[4]=$=>Ze(i)?i.value=$:null),value:P.id},null,8,O2),[[Hr,se(i)]])])):ve("",!0),(A(!0),Q($e,null,nt(e.columns,$=>(A(),Q("div",{key:$.key,class:"tw-flex tw-items-center tw-border-b tw-border-gray-200 tw-whitespace-nowrap tw-truncate tw-py-4 tw-px-4 tw-text-sm tw-text-gray-700"},[Eo(b.$slots,"render",hu(Ol({row:P,column:$,requestQuery:se(g)})),()=>[We(de(P[$.key]),1)])]))),128))],64))),128))],4)),x("nav",I2,[x("div",M2,[e.page.rows.length>0?(A(),Q("p",R2,[We(" Showing "+de(" ")+" "),x("span",B2,de(e.page.from),1),We(" "+de(" ")+" to "+de(" ")+" "),x("span",N2,de(e.page.to),1),We(" "+de(" ")+" of "+de(" ")+" "),x("span",L2,de(e.page.totalWithFilter),1),We(" "+de(" ")+" results ")])):ve("",!0)]),x("div",D2,[_e(kn,{label:"Previous",type:"tertiary",disabled:se(f)===1,"hide-spinner":!0,onClicked:se(h)},null,8,["disabled","onClicked"]),_e(kn,{label:"Next",type:"tertiary",class:"tw-ml-3",disabled:e.page.to===e.page.totalWithFilter,"hide-spinner":!0,onClicked:se(d)},null,8,["disabled","onClicked"])])])],2)):ve("",!0)}}),sa=me({__name:"BetterContainer",props:{options:null,preClasses:null,highlightStr:null},setup(e){var r,o;const t=e,n=G([]),s=G(((r=t.preClasses)!=null?r:"")+" "+((o=t.options.classInit)!=null?o:""));return it(t.options.itemsId,i=>n.value=i),(i,l)=>(A(),Q("div",{class:Pe(s.value)},[_e(sp,{components:n.value,"highlight-str":e.highlightStr},null,8,["components","highlight-str"])],2))}}),H2=me({__name:"SyncDataTable",props:{options:null},setup(e){const t=e,n=G(null),s=G([]),r=G([]),o=G(!1);it(t.options.disabledId,d=>o.value=d),Ut(async()=>{s.value=await window.webSocketClient.request(`getterInit:${t.options.columnsId}`),r.value=await window.webSocketClient.request(`getterInit:${t.options.actionsId}`)});let i=null;async function l(d,h,m){i=[d,h,m];const g=await window.webSocketClient.request(`getter:${t.options.pageId}`,{pageNumber:d,sort:h,query:m});n.value=g}async function c(d){await window.webSocketClient.request(`setter:${d}`,{selectedIds:[]})}const f=window.webSocketClient.subscribe(`getter:${t.options.refreshId}`,()=>{i!==null&&l(...i)});return Ns(()=>{f()}),(d,h)=>(A(),pe(F2,{actions:r.value,page:n.value,columns:s.value,request:l,disabled:o.value,selectable:e.options.selectable,onActionClick:c},{render:mt(({row:m,column:g,requestQuery:v})=>[_e(sa,{"pre-classes":"tw-w-full",options:m[g.key],"highlight-str":v},null,8,["options","highlight-str"])]),_:1},8,["actions","page","columns","disabled","selectable"]))}}),j2=["value","type","disabled"],V2={class:"tw-text-red-500 tw-italic tw-text-sm"},U2=me({__name:"BaseInput",props:{errorMessage:{default:null},type:{default:"text"},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},debounceUpdate:{type:Function,default:()=>null}},setup(e,{expose:t}){const n=e,s=G("");t({inputValue:s});function r(i){s.value=i,o(i)}const o=Ms(n.debounceUpdate,250);return(i,l)=>(A(),Q("div",{class:Pe(["tw-flex tw-flex-col tw-w-full",{"tw-cursor-not-allowed tw-grayscale":e.disabled,"tw-opacity-[0.35]":e.disabled&&e.errorMessage,"tw-opacity-50":e.disabled&&!e.errorMessage}])},[x("input",{value:s.value,onKeypress:l[0]||(l[0]=c=>r(c.target.value)),onInput:l[1]||(l[1]=c=>r(c.target.value)),type:e.type,class:Pe(["tw-rounded-md tw-border-gray-300 tw-shadow-sm tw-text-gray-900 tw-text-sm tw-block tw-w-full tw-px-2.5 tw-py-2 focus:tw-outline-none focus:tw-border-gray-500 focus:tw-ring-gray-500 focus:tw-ring-1",{"tw-border-red-500 tw-bg-red-50 focus:tw-border-red-500 focus:tw-ring-red-500":e.errorMessage!==null,"tw-pointer-events-none":e.disabled}]),disabled:e.disabled,style:{"border-style":"inherit"}},null,42,j2),x("span",V2,de(e.errorMessage),1)],2))}}),q2=me({__name:"SyncInput",props:{options:null},setup(e){var c;const t=e,n=G(null),s=G((c=t.options.classInit)!=null?c:""),r=G(!1),o=G(t.options.typeInit),i=G();it(t.options.disabledId,f=>r.value=f);async function l(f){n.value=await window.webSocketClient.request(`setter:${t.options.setterId}`,f)}return it(t.options.getterId,f=>{n.value=null,i.value.inputValue=f}),(f,d)=>(A(),pe(U2,{class:Pe(s.value),disabled:r.value,type:o.value,"error-message":n.value,"debounce-update":l,ref_key:"$input",ref:i},null,8,["class","disabled","type","error-message"]))}}),z2=["value","disabled"],K2={class:"tw-text-red-500 tw-italic tw-text-sm"},W2=me({__name:"BaseDateTime",props:{errorMessage:{default:null},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},debounceUpdate:{type:Function,default:()=>null}},setup(e,{expose:t}){const n=e,s=G("");t({inputValue:s});function r(i){s.value=i,o(i)}const o=Ms(n.debounceUpdate,250);return(i,l)=>(A(),Q("div",{class:Pe(["tw-flex tw-flex-col tw-w-full",{"tw-cursor-not-allowed tw-grayscale":e.disabled,"tw-opacity-[0.35]":e.disabled&&e.errorMessage,"tw-opacity-50":e.disabled&&!e.errorMessage}])},[x("input",{value:s.value,onKeypress:l[0]||(l[0]=c=>r(c.target.value)),onInput:l[1]||(l[1]=c=>r(c.target.value)),type:"datetime-local",class:Pe(["tw-rounded-md tw-border-gray-300 tw-shadow-sm tw-text-gray-900 tw-text-sm tw-block tw-w-full tw-px-2.5 tw-py-2 focus:tw-outline-none focus:tw-border-gray-500 focus:tw-ring-gray-500 focus:tw-ring-1",{"tw-border-red-500 tw-bg-red-50 focus:tw-border-red-500 focus:tw-ring-red-500":e.errorMessage!==null,"tw-pointer-events-none":e.disabled}]),disabled:e.disabled,style:{"border-style":"inherit"}},null,42,z2),x("span",K2,de(e.errorMessage),1)],2))}});var sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qd={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sn,function(){var n=1e3,s=6e4,r=36e5,o="millisecond",i="second",l="minute",c="hour",f="day",d="week",h="month",m="quarter",g="year",v="date",E="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var S=["th","st","nd","rd"],j=H%100;return"["+H+(S[(j-20)%10]||S[j]||S[0])+"]"}},k=function(H,S,j){var J=String(H);return!J||J.length>=S?H:""+Array(S+1-J.length).join(j)+H},P={s:k,z:function(H){var S=-H.utcOffset(),j=Math.abs(S),J=Math.floor(j/60),q=j%60;return(S<=0?"+":"-")+k(J,2,"0")+":"+k(q,2,"0")},m:function H(S,j){if(S.date()<j.date())return-H(j,S);var J=12*(j.year()-S.year())+(j.month()-S.month()),q=S.clone().add(J,h),X=j-q<0,ce=S.clone().add(J+(X?-1:1),h);return+(-(J+(j-q)/(X?q-ce:ce-q))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:h,y:g,w:d,d:f,D:v,h:c,m:l,s:i,ms:o,Q:m}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},$="en",O={};O[$]=b;var U=function(H){return H instanceof K},T=function H(S,j,J){var q;if(!S)return $;if(typeof S=="string"){var X=S.toLowerCase();O[X]&&(q=X),j&&(O[X]=j,q=X);var ce=S.split("-");if(!q&&ce.length>1)return H(ce[0])}else{var ke=S.name;O[ke]=S,q=ke}return!J&&q&&($=q),q||!J&&$},B=function(H,S){if(U(H))return H.clone();var j=typeof S=="object"?S:{};return j.date=H,j.args=arguments,new K(j)},L=P;L.l=T,L.i=U,L.w=function(H,S){return B(H,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var K=function(){function H(j){this.$L=T(j.locale,null,!0),this.parse(j)}var S=H.prototype;return S.parse=function(j){this.$d=function(J){var q=J.date,X=J.utc;if(q===null)return new Date(NaN);if(L.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var ce=q.match(N);if(ce){var ke=ce[2]-1||0,Te=(ce[7]||"0").substring(0,3);return X?new Date(Date.UTC(ce[1],ke,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,Te)):new Date(ce[1],ke,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,Te)}}return new Date(q)}(j),this.$x=j.x||{},this.init()},S.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},S.$utils=function(){return L},S.isValid=function(){return this.$d.toString()!==E},S.isSame=function(j,J){var q=B(j);return this.startOf(J)<=q&&q<=this.endOf(J)},S.isAfter=function(j,J){return B(j)<this.startOf(J)},S.isBefore=function(j,J){return this.endOf(J)<B(j)},S.$g=function(j,J,q){return L.u(j)?this[J]:this.set(q,j)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(j,J){var q=this,X=!!L.u(J)||J,ce=L.p(j),ke=function(oe,ue){var be=L.w(q.$u?Date.UTC(q.$y,ue,oe):new Date(q.$y,ue,oe),q);return X?be:be.endOf(f)},Te=function(oe,ue){return L.w(q.toDate()[oe].apply(q.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(ue)),q)},Ce=this.$W,Fe=this.$M,Ge=this.$D,D="set"+(this.$u?"UTC":"");switch(ce){case g:return X?ke(1,0):ke(31,11);case h:return X?ke(1,Fe):ke(0,Fe+1);case d:var ne=this.$locale().weekStart||0,ee=(Ce<ne?Ce+7:Ce)-ne;return ke(X?Ge-ee:Ge+(6-ee),Fe);case f:case v:return Te(D+"Hours",0);case c:return Te(D+"Minutes",1);case l:return Te(D+"Seconds",2);case i:return Te(D+"Milliseconds",3);default:return this.clone()}},S.endOf=function(j){return this.startOf(j,!1)},S.$set=function(j,J){var q,X=L.p(j),ce="set"+(this.$u?"UTC":""),ke=(q={},q[f]=ce+"Date",q[v]=ce+"Date",q[h]=ce+"Month",q[g]=ce+"FullYear",q[c]=ce+"Hours",q[l]=ce+"Minutes",q[i]=ce+"Seconds",q[o]=ce+"Milliseconds",q)[X],Te=X===f?this.$D+(J-this.$W):J;if(X===h||X===g){var Ce=this.clone().set(v,1);Ce.$d[ke](Te),Ce.init(),this.$d=Ce.set(v,Math.min(this.$D,Ce.daysInMonth())).$d}else ke&&this.$d[ke](Te);return this.init(),this},S.set=function(j,J){return this.clone().$set(j,J)},S.get=function(j){return this[L.p(j)]()},S.add=function(j,J){var q,X=this;j=Number(j);var ce=L.p(J),ke=function(Fe){var Ge=B(X);return L.w(Ge.date(Ge.date()+Math.round(Fe*j)),X)};if(ce===h)return this.set(h,this.$M+j);if(ce===g)return this.set(g,this.$y+j);if(ce===f)return ke(1);if(ce===d)return ke(7);var Te=(q={},q[l]=s,q[c]=r,q[i]=n,q)[ce]||1,Ce=this.$d.getTime()+j*Te;return L.w(Ce,this)},S.subtract=function(j,J){return this.add(-1*j,J)},S.format=function(j){var J=this,q=this.$locale();if(!this.isValid())return q.invalidDate||E;var X=j||"YYYY-MM-DDTHH:mm:ssZ",ce=L.z(this),ke=this.$H,Te=this.$m,Ce=this.$M,Fe=q.weekdays,Ge=q.months,D=function(ue,be,ge,w){return ue&&(ue[be]||ue(J,X))||ge[be].slice(0,w)},ne=function(ue){return L.s(ke%12||12,ue,"0")},ee=q.meridiem||function(ue,be,ge){var w=ue<12?"AM":"PM";return ge?w.toLowerCase():w},oe={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Ce+1,MM:L.s(Ce+1,2,"0"),MMM:D(q.monthsShort,Ce,Ge,3),MMMM:D(Ge,Ce),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:D(q.weekdaysMin,this.$W,Fe,2),ddd:D(q.weekdaysShort,this.$W,Fe,3),dddd:Fe[this.$W],H:String(ke),HH:L.s(ke,2,"0"),h:ne(1),hh:ne(2),a:ee(ke,Te,!0),A:ee(ke,Te,!1),m:String(Te),mm:L.s(Te,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:ce};return X.replace(C,function(ue,be){return be||oe[ue]||ce.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(j,J,q){var X,ce=L.p(J),ke=B(j),Te=(ke.utcOffset()-this.utcOffset())*s,Ce=this-ke,Fe=L.m(this,ke);return Fe=(X={},X[g]=Fe/12,X[h]=Fe,X[m]=Fe/3,X[d]=(Ce-Te)/6048e5,X[f]=(Ce-Te)/864e5,X[c]=Ce/r,X[l]=Ce/s,X[i]=Ce/n,X)[ce]||Ce,q?Fe:L.a(Fe)},S.daysInMonth=function(){return this.endOf(h).$D},S.$locale=function(){return O[this.$L]},S.locale=function(j,J){if(!j)return this.$L;var q=this.clone(),X=T(j,J,!0);return X&&(q.$L=X),q},S.clone=function(){return L.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},H}(),z=K.prototype;return B.prototype=z,[["$ms",o],["$s",i],["$m",l],["$H",c],["$W",f],["$M",h],["$y",g],["$D",v]].forEach(function(H){z[H[1]]=function(S){return this.$g(S,H[0],H[1])}}),B.extend=function(H,S){return H.$i||(H(S,K,B),H.$i=!0),B},B.locale=T,B.isDayjs=U,B.unix=function(H){return B(1e3*H)},B.en=O[$],B.Ls=O,B.p={},B})})(Qd);const Y2=Qd.exports,Z2=me({__name:"SyncDateTime",props:{options:null},setup(e){var l;const t=e,n=G(null),s=G((l=t.options.classInit)!=null?l:""),r=G(!1),o=G();it(t.options.disabledId,c=>r.value=c);async function i(c){n.value=await window.webSocketClient.request(`setter:${t.options.setterId}`,c)}return it(t.options.getterId,c=>{n.value=null,o.value.inputValue=c===null?null:Y2(c).format("YYYY-MM-DDTHH:mm")}),(c,f)=>(A(),pe(W2,{class:Pe(s.value),disabled:r.value,"error-message":n.value,"debounce-update":i,ref_key:"$input",ref:o},null,8,["class","disabled","error-message"]))}});function ws(e){var t;const n=el(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oa=Io?window:void 0,Q2=Io?window.document:void 0;Io&&window.navigator;Io&&window.location;function Hn(...e){let t,n,s,r;if(Yd(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=oa):[t,n,s,r]=e,!t)return h2;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],i=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,m)=>(d.addEventListener(h,m,r),()=>d.removeEventListener(h,m,r)),c=Ht(()=>ws(t),d=>{i(),d&&o.push(...n.flatMap(h=>s.map(m=>l(d,h,m))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return Zd(f),f}function tl(e,t,n={}){const{window:s=oa,ignore:r,capture:o=!0,detectIframe:i=!1}=n;if(!s)return;const l=G(!0);let c;const f=g=>{s.clearTimeout(c);const v=ws(e);!v||v===g.target||g.composedPath().includes(v)||!l.value||t(g)},d=g=>r&&r.some(v=>{const E=ws(v);return E&&(g.target===E||g.composedPath().includes(E))}),h=[Hn(s,"click",f,{passive:!0,capture:o}),Hn(s,"pointerdown",g=>{const v=ws(e);l.value=!!v&&!g.composedPath().includes(v)&&!d(g)},{passive:!0}),Hn(s,"pointerup",g=>{if(g.button===0){const v=g.composedPath();g.composedPath=()=>v,c=s.setTimeout(()=>f(g),50)}},{passive:!0}),i&&Hn(s,"blur",g=>{var v;const E=ws(e);((v=s.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(E!=null&&E.contains(s.document.activeElement))&&t(g)})].filter(Boolean);return()=>h.forEach(g=>g())}function G2(e,t=!1){const n=G(),s=()=>n.value=Boolean(e());return s(),b2(s,t),n}const nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sl="__vueuse_ssr_handlers__";nl[sl]=nl[sl]||{};nl[sl];var su=Object.getOwnPropertySymbols,J2=Object.prototype.hasOwnProperty,X2=Object.prototype.propertyIsEnumerable,e_=(e,t)=>{var n={};for(var s in e)J2.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&su)for(var s of su(e))t.indexOf(s)<0&&X2.call(e,s)&&(n[s]=e[s]);return n};function t_(e,t,n={}){const s=n,{window:r=oa}=s,o=e_(s,["window"]);let i;const l=G2(()=>r&&"MutationObserver"in r),c=()=>{i&&(i.disconnect(),i=void 0)},f=Ht(()=>ws(e),h=>{c(),l.value&&r&&h&&(i=new MutationObserver(t),i.observe(h,o))},{immediate:!0}),d=()=>{c(),f()};return Zd(d),{isSupported:l,stop:d}}var ou;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ou||(ou={}));function n_(e=null,t={}){var n,s;const{document:r=Q2}=t,o=y2((n=e!=null?e:r==null?void 0:r.title)!=null?n:null),i=e&&nu(e);function l(c){if(!("titleTemplate"in t))return c;const f=t.titleTemplate||"%s";return nu(f)?f(c):se(f).replace(/%s/g,c)}return Ht(o,(c,f)=>{c!==f&&r&&(r.title=l(Yd(c)?c:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!i&&t_((s=r.head)==null?void 0:s.querySelector("title"),()=>{r&&r.title!==o.value&&(o.value=l(r.title))},{childList:!0}),o}var s_=Object.defineProperty,ru=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,r_=Object.prototype.propertyIsEnumerable,iu=(e,t,n)=>t in e?s_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i_=(e,t)=>{for(var n in t||(t={}))o_.call(t,n)&&iu(e,n,t[n]);if(ru)for(var n of ru(t))r_.call(t,n)&&iu(e,n,t[n]);return e};const l_={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};i_({linear:g2},l_);const a_={class:"tw-flex tw-h-full"},c_={class:"tw-hidden md:tw-flex md:tw-w-64 md:tw-flex-col md:tw-fixed md:tw-inset-y-0"},u_={class:"tw-flex-1 tw-flex tw-flex-col tw-min-h-0 tw-bg-gray-800"},f_={class:"tw-flex tw-items-center tw-justify-center tw-h-16 tw-flex-shrink-0 tw-px-4 tw-bg-gray-900"},d_=["innerHTML"],p_={class:"tw-flex-1 tw-flex tw-flex-col tw-overflow-y-auto"},h_={class:"tw-flex-1 tw-px-2 tw-py-4 tw-space-y-1"},m_=["innerHTML"],w_={class:"md:tw-pl-64 tw-flex tw-w-full tw-flex-col"},g_={class:"tw-sticky tw-top-0 tw-z-10 tw-flex-shrink-0 tw-flex tw-h-16 tw-bg-white tw-shadow"},y_=x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"tw-w-6 tw-h-6","aria-hidden":"true"},[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})],-1),b_=[y_],v_={class:"tw-flex-1 tw-px-4 tw-flex tw-justify-end"},__={class:"tw-ml-4 tw-flex tw-items-center md:tw-ml-6"},C_={key:0,class:"tw-ml-3 tw-relative"},x_=x("span",{class:"material-symbols-rounded tw-m-2"},"person",-1),k_=[x_],E_={class:"tw-cursor-pointer tw-block tw-px-4 tw-py-2 tw-text-sm tw-text-gray-700 hover:tw-bg-gray-100"},S_={class:"tw-flex-1 tw-overflow-scroll"},$_={class:"tw-py-6"},T_={class:"tw-flex tw-flex-col tw-max-w-7xl tw-mx-auto tw-px-4 sm:tw-px-6 md:tw-px-8"},P_={class:"tw-relative tw-z-40 md:tw-hidden"},A_=x("div",{class:"tw-fixed tw-inset-0 tw-bg-gray-600 tw-bg-opacity-75"},null,-1),O_={class:"tw-fixed tw-inset-0 tw-flex tw-z-40"},I_={class:"tw-absolute tw-top-0 tw-right-0 tw--mr-12 tw-pt-2"},M_=x("span",{class:"material-symbols-rounded tw-text-white tw-text-3xl"},"close",-1),R_=[M_],B_={class:"tw-flex-shrink-0 tw-flex tw-items-center tw-justify-center tw-px-4"},N_=["innerHTML"],L_={class:"tw-mt-5 tw-flex-1 tw-h-0 tw-overflow-y-auto"},D_={class:"tw-px-2 tw-space-y-1"},F_=["href"],H_=me({__name:"BaseDarkSidebar",props:{logo:{default:null},items:null,profileItems:{default:null}},setup(e){const t=G(!1),n=G(!1),s=G(),r=G();return tl(s,()=>{n.value=!1}),tl(r,()=>{t.value=!1}),(o,i)=>{const l=Kn("router-link");return A(),Q("div",a_,[x("div",c_,[x("div",u_,[x("div",f_,[x("span",{innerHTML:e.logo},null,8,d_)]),x("div",p_,[x("nav",h_,[(A(!0),Q($e,null,nt(e.items,c=>(A(),pe(l,{key:c.name,to:c.href,class:Pe([c.current?"tw-bg-gray-900 tw-text-white":"tw-text-gray-300 hover:tw-bg-gray-700 hover:tw-text-white","group tw-flex tw-items-center tw-px-2 tw-py-2 tw-text-sm tw-font-medium tw-rounded-md"])},{default:mt(()=>[x("span",{class:Pe([[c.current?"tw-text-blue-400":"tw-text-gray-400 group-hover:tw-text-gray-300","tw-mr-3 tw-flex-shrink-0 tw-text-[20px]"],"material-symbols-rounded"]),innerHTML:c.icon},null,10,m_),We(" "+de(c.name),1)]),_:2},1032,["to","class"]))),128))])])])]),x("div",w_,[x("div",g_,[x("button",{type:"button",class:"tw-px-4 tw-border-r tw-border-gray-200 tw-text-gray-500 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-inset focus:tw-ring-blue-500 md:tw-hidden",onClick:i[0]||(i[0]=c=>t.value=!0)},b_),x("div",v_,[x("div",__,[e.profileItems!==null&&e.profileItems.length>0?(A(),Q("div",C_,[x("div",{onClick:i[1]||(i[1]=c=>n.value=!n.value),class:"tw-cursor-pointer tw-max-w-xs tw-bg-gray-200 tw-text-gray-500 hover:tw-text-gray-600 tw-flex tw-items-center tw-text-sm tw-rounded-full focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-offset-2 focus:tw-ring-blue-500"},k_),_e($o,{"enter-active-class":"tw-transition tw-ease-out tw-duration-100","enter-from-class":"tw-transform tw-opacity-0 tw-scale-95","enter-to-class":"tw-transform tw-opacity-100 tw-scale-100","leave-active-class":"tw-transition tw-ease-in tw-duration-75","leave-from-class":"tw-transform tw-opacity-100 tw-scale-100","leave-to-class":"tw-transform tw-opacity-0 tw-scale-95"},{default:mt(()=>[n.value?(A(),Q("div",{key:0,ref_key:"$profileDropdown",ref:s,class:"tw-origin-top-right tw-absolute tw-right-0 tw-mt-2 tw-w-48 tw-rounded-md tw-shadow-lg tw-py-1 tw-bg-white tw-ring-1 tw-ring-black tw-ring-opacity-5 focus:tw-outline-none"},[(A(!0),Q($e,null,nt(e.profileItems,c=>(A(),Q("div",{key:c.name},[_e(l,{to:c.href},{default:mt(()=>[x("span",E_,de(c.name),1)]),_:2},1032,["to"])]))),128))],512)):ve("",!0)]),_:1})])):ve("",!0)])])]),x("main",S_,[x("div",$_,[x("div",T_,[Eo(o.$slots,"default")])])])]),xt(x("div",P_,[A_,x("div",O_,[x("div",{ref_key:"$sidebarMenu",ref:r,class:"tw-relative tw-flex-1 tw-flex tw-flex-col tw-max-w-xs tw-w-full tw-pt-5 tw-pb-4 tw-bg-gray-800"},[x("div",I_,[x("button",{type:"button",class:"tw-ml-1 tw-flex tw-items-center tw-justify-center tw-h-10 tw-w-10 tw-rounded-full focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-inset focus:tw-ring-white",onClick:i[2]||(i[2]=c=>t.value=!1)},R_)]),x("div",B_,[e.logo!==null?(A(),Q("span",{key:0,innerHTML:e.logo},null,8,N_)):ve("",!0)]),x("div",L_,[x("nav",D_,[(A(!0),Q($e,null,nt(e.items,c=>(A(),Q("a",{key:c.name,href:c.href,class:Pe([c.current?"tw-bg-gray-900 tw-text-white":"tw-text-gray-300 hover:tw-bg-gray-700 hover:tw-text-white","group tw-flex tw-items-center tw-px-2 tw-py-2 tw-text-base tw-font-medium tw-rounded-md"])},de(c.name),11,F_))),128))])])],512)])],512),[[jr,t.value]])])}}}),j_=me({__name:"SyncDarkSidebar",props:{options:null},setup(e){const t=G(window.config.logo);return(n,s)=>(A(),pe(H_,{items:e.options.sidebarMenuItemsInit,"profile-items":e.options.profileMenuItemsInit,logo:t.value},{default:mt(()=>[_e(sa,{options:e.options.container},null,8,["options"])]),_:1},8,["items","profile-items","logo"]))}});function Gd(e,t){return t!=null&&typeof t=="string"&&t.trim()!==""&&e!==void 0&&t.split(" ").forEach(n=>{if(n.length===0)return;const s=new RegExp(n,"gi");e=e.replaceAll(s,"<mark>$&</mark>")}),e}const V_=["innerHTML"],U_=me({__name:"BetterText",props:{options:null,highlightStr:null},setup(e){var r;const t=e,n=G(""),s=G((r=t.options.classInit)!=null?r:"");return it(t.options.labelId,o=>n.value=o),(o,i)=>(A(),Q("p",{class:Pe(s.value),innerHTML:se(Gd)(n.value,e.highlightStr)},null,10,V_))}});let Ci=!1;function q_(e){async function t(n){const s=n.target.scrollTop,r=n.target.clientHeight,o=n.target.scrollHeight;if(s+r>=o){if(Ci)return;Ci=!0,await e(),Ci=!1}}return{scroll:t}}const z_=["value"],K_=me({__name:"SearchField",props:{onFilter:null},setup(e){const t=e,n=G(""),s=G("");function r(i){n.value=i,o(i)}const o=Ms(async i=>{await t.onFilter(i),s.value=i},250);return Ht(n,o),(i,l)=>(A(),Q("input",{name:"search",type:"text",class:"tw-flex-1 tw-rounded-md tw-border-0 tw-bg-gray-100 tw-px-4 tw-py-2.5 tw-my-2 tw-mx-2 tw-text-gray-900 tw-placeholder-gray-500 focus:tw-ring-0 focus-visible:tw-ring-0 sm:tw-text-sm",placeholder:"Search",value:n.value,onInput:l[0]||(l[0]=c=>r(c.target.value)),onKeypress:l[1]||(l[1]=c=>r(c.target.value)),"aria-autocomplete":"none","aria-controls":"options","aria-expanded":"false",autocapitalize:"none",autocomplete:"off",autocorrect:"off",role:"combobox"},null,40,z_))}}),W_={key:0,class:"tw-block tw-truncate tw-flex-1 tw-text-gray-800"},Y_={key:1,class:"tw-flex tw-flex-wrap tw-gap-2 tw-flex-1"},Z_=["onClick"],Q_=x("span",{class:"material-symbols-rounded tw-text-xs","remove-btn":""},"close",-1),G_=[Q_],J_={class:"tw-flex tw-space-x-1 tw-ml-2 tw-flex-shrink-0"},X_={key:0,class:"tw-flex tw-flex-col tw-justify-center tw-items-center tw-p-4"},eC=x("span",{class:"material-symbols-rounded tw-text-3xl tw-text-gray-500 mb-4"},"sentiment_dissatisfied",-1),tC=x("span",{class:"tw-text-base tw-text-gray-700"},"No data to display",-1),nC=[eC,tC],sC={key:0,class:"tw-flex tw-flex-col tw-justify-center tw-items-center tw-p-4"},oC=x("span",{class:"material-symbols-rounded tw-text-3xl tw-text-gray-500 mb-4"},"mood_bad",-1),rC=x("span",{class:"tw-text-base tw-text-gray-700"},"No matches found",-1),iC=[oC,rC],lC={key:1,class:"tw-py-1 tw-flex tw-items-stretch tw-flex-col"},aC=["onClick"],cC=["innerHTML"],uC={key:0,class:"material-symbols-rounded tw-shrink-0 tw-text-sm"},Jd=me({__name:"BaseSelect",props:{request:null,selected:{default:()=>[]},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1}},emits:["deselect","select"],setup(e,{emit:t}){const n=e,s=G(!1),r=G(0),o=G([]),i=G(1),l=G(""),c=G(),f=G(),d=G(0),h=G(0),m=G(0),g=/Mobi/.test(navigator.userAgent);Ut(async()=>{v();const $=await n.request(i.value,"");o.value=$.items,r.value=$.totalWithoutFilter}),Ht(s,()=>{rs(()=>{if(s.value&&!g){const $=f.value.querySelector('input[name="search"]');$==null||$.focus()}})}),tl(f,$=>{s.value===!0&&($.target.hasAttribute("remove-btn")===!1&&$.stopPropagation(),s.value=!1)});function v(){var O;const $=(O=c.value)==null?void 0:O.getBoundingClientRect();$!==void 0&&(d.value=$.top+$.height,h.value=$.left,m.value=$.width)}Hn("resize",Ms(v,10)),Hn("scroll",Ms(v,10),!0);function E($){t("select",$),n.multiple===!1&&(s.value=!1)}function N($){t("deselect",$.id),n.multiple===!1&&(s.value=!1)}function C($){return n.selected.some(O=>O.id===$.id)}let b=!1;const{scroll:k}=q_(async()=>{if(b)return;i.value+=1;const $=await n.request(i.value,l.value);$.items.length===0?b=!0:o.value.push(...$.items)});async function P($){i.value=1;const O=await n.request(i.value,$);o.value=O.items,l.value=$}return($,O)=>{var U,T;return A(),Q("div",{class:Pe(["tw-flex tw-tw-flex-col tw-w-full",{"tw-cursor-not-allowed tw-opacity-50 tw-grayscale":e.disabled}])},[x("div",{class:Pe(["tw-relative tw-inline-block tw-text-left tw-w-full tw-select-none",{"tw-pointer-events-none":e.disabled}])},[x("div",{class:"tw-flex tw-items-center tw-w-full tw-cursor-pointer tw-rounded-md tw-border tw-border-gray-300 tw-bg-white tw-px-2.5 tw-py-1 tw-text-left tw-shadow-sm focus:tw-border-blue-500 focus:tw-outline-none focus:tw-ring-1 focus:tw-ring-blue-500 sm:tw-text-sm",onClick:O[1]||(O[1]=ln(B=>s.value=!s.value,["stop"])),ref_key:"$select",ref:c},[e.multiple===!1?(A(),Q("span",W_,de((T=(U=e.selected[0])==null?void 0:U.label)!=null?T:""),1)):(A(),Q("div",Y_,[(A(!0),Q($e,null,nt(e.selected,B=>(A(),Q("span",{key:B.id,class:"tw-inline-flex tw-items-center tw-rounded tw-bg-gray-200 tw-py-0.5 tw-pl-2 tw-pr-0.5 tw-text-xs tw-font-medium tw-text-gray-700"},[We(de(B.label)+" ",1),x("button",{onClick:ln(L=>N(B),["stop"]),type:"button",class:"tw-ml-0.5 tw-inline-flex tw-h-4 tw-w-4 tw-flex-shrink-0 tw-items-center tw-justify-center tw-rounded tw-text-gray-400 hover:tw-bg-gray-300 hover:tw-text-gray-500 focus:tw-bg-gray-500 focus:tw-text-white focus:tw-outline-none","remove-btn":""},G_,8,Z_)]))),128))])),x("div",J_,[e.multiple===!1&&e.selected.length>0?(A(),Q("span",{key:0,class:"material-symbols-rounded tw-cursor-pointer tw-text-gray-400 hover:tw-text-red-500 tw-text-xl",onClick:O[0]||(O[0]=ln(B=>N(e.selected[0]),["stop"])),"remove-btn":""},"do_not_disturb_on")):ve("",!0),x("span",{class:Pe(["material-symbols-rounded tw-cursor-pointer tw-text-gray-400 hover:tw-text-gray-500 tw-transition-transform tw-text-xl",{"tw-rotate-180":s.value}])},"keyboard_arrow_down",2)])],512),(A(),pe(bf,{to:"body"},[_e($o,{"enter-active-class":"tw-transition tw-duration-100 tw-ease-out","enter-from-class":"tw-transform tw-scale-95 tw-opacity-0","enter-to-class":"tw-transform tw-scale-100 tw-opacity-100","leave-active-class":"tw-transition tw-duration tw-ease-in","leave-from-class":"tw-transform tw-scale-100 tw-opacity-100","leave-to-class":"tw-transform tw-scale-95 tw-opacity-0"},{default:mt(()=>[xt(x("div",{ref_key:"$menu",ref:f,class:"tw-z-10 tw-flex tw-flex-col tw-fixed tw-overflow-auto tw-max-h-60 tw-mt-2 tw-origin-top tw-divide-y tw-divide-gray-100 tw-rounded-md tw-bg-white tw-shadow-lg tw-ring-1 tw-ring-black tw-ring-opacity-5 focus:tw-outline-none tw-text-base sm:tw-text-sm",style:Xt(`left: ${h.value}px; top: ${d.value}px; width: ${m.value}px;`),onScroll:O[2]||(O[2]=(...B)=>se(k)&&se(k)(...B))},[r.value===0?(A(),Q("div",X_,nC)):(A(),Q($e,{key:1},[_e(K_,{onFilter:P}),o.value.length===0?(A(),Q("div",sC,iC)):(A(),Q("div",lC,[(A(!0),Q($e,null,nt(o.value,B=>(A(),Q("button",{key:B.id,class:Pe(["tw-flex tw-cursor-pointer tw-text-sm tw-justify-between tw-items-center tw-select-none tw-py-2 tw-text-left tw-px-4 hover:tw-bg-violet-500 hover:tw-text-white",C(B)?"tw-bg-violet-500 tw-text-white":"tw-text-gray-900"]),onClick:L=>C(B)?N(B):E(B)},[x("span",{class:"tw-truncate tw-mr-4",innerHTML:se(Gd)(B.label,l.value)},null,8,cC),C(B)?(A(),Q("span",uC,"check")):ve("",!0)],10,aC))),128))]))],64))],36),[[jr,s.value]])]),_:1})]))],2)],2)}}}),fC=me({__name:"SyncSelectOne",props:{options:null},setup(e){const t=e,n=G(!1),s=G(null);it(t.options.disabledId,l=>n.value=l),it(t.options.selectedId,l=>s.value=l);async function r(l,c){return await window.webSocketClient.request(`getter:${t.options.optionsId}`,{pageNumber:l,query:c})}function o(){window.webSocketClient.request(`setter:${t.options.onSelectId}`,null)}function i(l){window.webSocketClient.request(`setter:${t.options.onSelectId}`,l)}return(l,c)=>(A(),pe(Jd,{request:r,selected:s.value?[s.value]:[],onDeselect:o,onSelect:i,disabled:n.value},null,8,["selected","disabled"]))}}),dC=me({__name:"SyncSelectMany",props:{options:null},setup(e){const t=e,n=G(!1),s=G([]);it(t.options.disabledId,l=>n.value=l),it(t.options.selectedId,l=>s.value=l);async function r(l,c){return await window.webSocketClient.request(`getter:${t.options.optionsId}`,{pageNumber:l,query:c})}function o(l){window.webSocketClient.request(`setter:${t.options.onDeselectId}`,l)}function i(l){window.webSocketClient.request(`setter:${t.options.onSelectId}`,l)}return(l,c)=>(A(),pe(Jd,{request:r,selected:s.value,onDeselect:o,onSelect:i,disabled:n.value,multiple:""},null,8,["selected","disabled"]))}}),pC=me({__name:"BaseToggle",props:{disabled:{type:Boolean,default:!1},onToggle:{type:Function,default:async()=>!0},initState:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,s=G(n.initState),r=je({get:()=>s.value,set:async o=>{s.value=o,await n.onToggle(o)===!1&&(s.value=!o)}});return t({state:s}),(o,i)=>(A(),Q("div",{class:Pe(["tw-flex",{"tw-cursor-not-allowed tw-opacity-50":e.disabled}])},[x("button",{onClick:i[0]||(i[0]=l=>r.value=!se(r)),type:"button",class:Pe([{"tw-bg-blue-600":se(r),"tw-bg-gray-200":!se(r),"tw-pointer-events-none":e.disabled},"tw-relative tw-inline-flex tw-h-6 tw-w-11 tw-flex-shrink-0 tw-cursor-pointer tw-rounded-full tw-border-2 tw-border-transparent tw-transition-colors tw-duration-200 tw-ease-in-out focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-blue-500 focus:tw-ring-offset-2"]),role:"switch","aria-checked":"false",style:{"border-style":"inherit"}},[x("span",{"aria-hidden":"true",class:Pe([{"tw-translate-x-5":se(r),"tw-translate-x-0":!se(r)},"tw-pointer-events-none tw-inline-block tw-h-5 tw-w-5 tw-transform tw-rounded-full tw-bg-white tw-shadow tw-ring-0 tw-transition tw-duration-200 tw-ease-in-out"])},null,2)],2)],2))}}),hC=me({__name:"SyncToggle",props:{options:null},setup(e){const t=e,n=G(!1),s=G();it(t.options.disabledId,o=>n.value=o),it(t.options.stateId,o=>{s.value.state=o});async function r(o){return await window.webSocketClient.request(`setter:${t.options.onToggleId}`,o)}return(o,i)=>(A(),pe(pC,{disabled:n.value,"on-toggle":r,ref_key:"$toggle",ref:s},null,8,["disabled"]))}}),mC=["data-active","onDragenter","onDragover","onDragleave","onDrop"],wC=me({__name:"DropZone",emits:["drop"],setup(e,{emit:t}){let n=G(!1),s=null;const r=G();function o(){n.value=!0,s&&clearTimeout(s)}function i(){s=setTimeout(()=>{n.value=!1},50)}function l(c){var d,h;i();const f=[...(h=(d=c.dataTransfer)==null?void 0:d.files)!=null?h:[]];f.length>0&&t("drop",f)}return Ut(()=>["dragenter","dragover","dragleave","drop"].forEach(c=>Hn(r.value,c,f=>f.preventDefault()))),(c,f)=>(A(),Q("div",{"data-active":se(n),onDragenter:ln(o,["prevent"]),onDragover:ln(o,["prevent"]),onDragleave:ln(i,["prevent"]),onDrop:ln(l,["prevent"])},[Eo(c.$slots,"default",{dropZoneActive:se(n)})],40,mC))}}),gC={class:"tw-flex tw-flex-col md:tw-flex-row tw-w-full tw-px-3 tw-py-2 tw-bg-gray-50 tw-border tw-rounded tw-justify-between tw-items-center md:tw-space-x-3"},yC={class:"tw-font-medium tw-truncate shrink grow-0 tw-w-full tw-text-center md:tw-text-left"},bC={class:"tw-flex tw-justify-between tw-space-x-2 tw-w-full md:tw-w-auto tw-mt-3 md:tw-mt-0"},vC=x("span",{class:"material-symbols-rounded tw-text-xl"},"edit",-1),_C=[vC],CC=x("span",{class:"material-symbols-rounded tw-text-xl"},"open_in_new",-1),xC=[CC],kC=x("span",{class:"material-symbols-rounded tw-text-xl"},"download",-1),EC=[kC],SC=x("span",{class:"material-symbols-rounded tw-text-xl"},"delete",-1),$C=[SC],TC=me({__name:"UploadedFileRow",props:{file:null},emits:["open","download","delete","rename"],setup(e){return(t,n)=>(A(),Q("div",gC,[x("span",yC,de(e.file.displayName),1),x("div",bC,[x("div",{onClick:n[0]||(n[0]=s=>t.$emit("rename")),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},_C),x("div",{onClick:n[1]||(n[1]=s=>t.$emit("open")),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},xC),x("div",{onClick:n[2]||(n[2]=s=>t.$emit("download")),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},EC),x("div",{onClick:n[3]||(n[3]=s=>t.$emit("delete")),class:"tw-cursor-pointer hover:tw-text-red-500 tw-text-gray-400"},$C)])]))}}),PC={class:"tw-flex tw-flex-col md:tw-flex-row tw-w-full tw-px-3 tw-py-2 tw-bg-gray-50 tw-border tw-rounded tw-justify-between tw-items-center md:tw-space-x-3"},AC={class:"tw-font-medium tw-truncate tw-max-w-[60%] tw-w-full tw-text-center md:tw-text-left"},OC={class:"tw-flex tw-justify-between tw-space-x-2 tw-flex-1 tw-w-full md:tw-w-auto tw-mt-3 md:tw-mt-0 tw-items-center"},IC={class:"tw-flex-1 tw-bg-gray-200 tw-rounded-full tw-h-1.5 tw-overflow-hidden"},MC={class:"tw-text-xs tw-text-gray-400"},RC=x("span",{class:"material-symbols-rounded tw-text-xl"},"close",-1),BC=[RC],NC=me({__name:"UploadingFileRow",props:{file:null},emits:["abort"],setup(e){return(t,n)=>(A(),Q("div",PC,[x("span",AC,de(e.file.name),1),x("div",OC,[x("div",IC,[x("div",{class:"tw-bg-blue-600 tw-h-1.5",style:Xt(`width: ${e.file.percentage()}%`)},null,4)]),x("span",MC,de(`${e.file.percentage()}%`),1),x("div",{onClick:n[0]||(n[0]=s=>t.$emit("abort")),class:"tw-cursor-pointer hover:tw-text-red-500 tw-text-gray-400"},BC)])]))}});function LC(e,t=2){if(e===0)return"0 Bytes";const n=1024,s=t<0?0:t,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(s))+" "+r[o]}const DC={class:"tw-flex tw-flex-col tw-w-full tw-space-y-3"},FC={class:"tw-text-base tw-leading-normal tw-py-4 tw-flex tw-flex-col tw-space-y-2 tw-items-center tw-text-center"},HC=x("span",null,[x("span",{class:"tw-text-blue-500 tw-font-medium hover:tw-text-blue-700"},"Click to upload"),We(" or drag and drop")],-1),jC={class:"tw-text-gray-400 tw-text-xs"},VC={class:"tw-flex tw-flex-col tw-w-full tw-space-y-3"},UC=me({__name:"BaseFile",props:{uploadedFiles:{default:[]},uploadingFiles:{default:[]},maxFileSize:{default:50}},emits:["open","download","delete","rename","abort","upload"],setup(e,{emit:t}){const s=e.maxFileSize*1024*1024,r=LC(s);function o(i){if(i.length!==0){for(const l of i)if(l.size>s){alert(`The '${l.name}' file is larger than ${r}`);return}t("upload",i)}}return(i,l)=>(A(),Q("div",DC,[_e(wC,{onDrop:o},{default:mt(({dropZoneActive:c})=>[x("label",{class:Pe(["tw-w-full tw-flex tw-flex-col tw-items-center tw-border tw-border-gray-300 tw-rounded tw-border-dashed hover:tw-border-solid tw-cursor-pointer",{"tw-bg-blue-50":c}])},[x("span",FC,[HC,x("span",jC,de(se(r))+" max file size.",1)]),x("input",{onChange:l[0]||(l[0]=f=>{var d,h;return o([...(h=(d=f.target)==null?void 0:d.files)!=null?h:[]])}),type:"file",class:"tw-hidden",multiple:""},null,32)],2)]),_:1}),x("div",VC,[(A(!0),Q($e,null,nt(e.uploadingFiles,c=>(A(),pe(NC,{key:c.id,file:c,onAbort:f=>i.$emit("abort",c)},null,8,["file","onAbort"]))),128)),(A(!0),Q($e,null,nt(e.uploadedFiles,c=>(A(),pe(TC,{key:c.id,file:c,onOpen:f=>i.$emit("open",c),onDownload:f=>i.$emit("download",c),onDelete:f=>i.$emit("delete",c),onRename:f=>i.$emit("rename",c)},null,8,["file","onOpen","onDownload","onDelete","onRename"]))),128))])]))}}),Xd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",qC=Xd.length;function zC(e){return Math.floor(Math.random()*e)}function ol(e=5){let t="";for(let n=0;n<e;n++){const s=zC(qC);t+=Xd.charAt(s)}return t}class KC{constructor(t){Nt(this,"id",ol());Nt(this,"totalBytes",0);Nt(this,"uploadedBytes",0);Nt(this,"xmlHttpRequest",null);Nt(this,"workspaceId",window.location.pathname.split("/")[1]);Nt(this,"onComplete");this.file=t}start(){this.xmlHttpRequest=new XMLHttpRequest,this.xmlHttpRequest.upload.addEventListener("progress",n=>{this.uploadedBytes=n.loaded,this.totalBytes=n.total}),this.xmlHttpRequest.addEventListener("load",async()=>{var s,r;const n=(s=this.xmlHttpRequest)==null?void 0:s.responseText;n!==void 0&&((r=this.onComplete)==null||r.call(this,n))}),this.xmlHttpRequest.open("POST","/file-upload"),this.xmlHttpRequest.setRequestHeader("workspace-id",this.workspaceId),this.xmlHttpRequest.setRequestHeader("file-size",this.file.size.toString());const t=new FormData;t.append("file",this.file,this.file.name),this.xmlHttpRequest.send(t)}abort(){var t;(t=this.xmlHttpRequest)==null||t.abort()}uploadingFile(){return{id:this.id,name:this.file.name,percentage:()=>Math.ceil(this.uploadedBytes/this.totalBytes*100)||0}}}var ep={exports:{}};/*!
|
|
11
|
+
*/const hs=typeof window<"u";function iv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Be=Object.assign;function bi(e,t){const n={};for(const s in t){const r=t[s];n[s]=Vt(r)?r.map(e):e(r)}return n}const no=()=>{},Vt=Array.isArray,lv=/\/$/,av=e=>e.replace(lv,"");function vi(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=dv(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function cv(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uv(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Os(t.matched[s],n.matched[r])&&Dd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Os(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fv(e[n],t[n]))return!1;return!0}function fv(e,t){return Vt(e)?Hc(e,t):Vt(t)?Hc(t,e):e===t}function Hc(e,t){return Vt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function dv(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o<s.length;o++)if(i=s[o],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var go;(function(e){e.pop="pop",e.push="push"})(go||(go={}));var so;(function(e){e.back="back",e.forward="forward",e.unknown=""})(so||(so={}));function pv(e){if(!e)if(hs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),av(e)}const hv=/^[^#]+#/;function mv(e,t){return e.replace(hv,"#")+t}function wv(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Wr=()=>({left:window.pageXOffset,top:window.pageYOffset});function gv(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=wv(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function jc(e,t){return(history.state?history.state.position-t:-1)+e}const Gi=new Map;function yv(e,t){Gi.set(e,t)}function bv(e){const t=Gi.get(e);return Gi.delete(e),t}let vv=()=>location.protocol+"//"+location.host;function Fd(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Fc(c,"")}return Fc(n,e)+s+r}function _v(e,t,n,s){let r=[],o=[],i=null;const l=({state:m})=>{const g=Fd(e,location),v=n.value,E=t.value;let N=0;if(m){if(n.value=g,t.value=m,i&&i===v){i=null;return}N=E?m.position-E.position:0}else s(g);r.forEach(C=>{C(n.value,v,{delta:N,type:go.pop,direction:N?N>0?so.forward:so.back:so.unknown})})};function c(){i=n.value}function f(m){r.push(m);const g=()=>{const v=r.indexOf(m);v>-1&&r.splice(v,1)};return o.push(g),g}function d(){const{history:m}=window;!m.state||m.replaceState(Be({},m.state,{scroll:Wr()}),"")}function h(){for(const m of o)m();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:f,destroy:h}}function Vc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Wr():null}}function Cv(e){const{history:t,location:n}=window,s={value:Fd(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,f,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:vv()+e+c;try{t[d?"replaceState":"pushState"](f,"",m),r.value=f}catch(g){console.error(g),n[d?"replace":"assign"](m)}}function i(c,f){const d=Be({},t.state,Vc(r.value.back,c,r.value.forward,!0),f,{position:r.value.position});o(c,d,!0),s.value=c}function l(c,f){const d=Be({},r.value,t.state,{forward:c,scroll:Wr()});o(d.current,d,!0);const h=Be({},Vc(s.value,c,null),{position:d.position+1},f);o(c,h,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function xv(e){e=pv(e);const t=Cv(e),n=_v(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Be({location:"",base:e,go:s,createHref:mv.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function kv(e){return typeof e=="string"||e&&typeof e=="object"}function Hd(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jd=Symbol("");var Uc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Uc||(Uc={}));function Is(e,t){return Be(new Error,{type:e,[jd]:!0},t)}function tn(e,t){return e instanceof Error&&jd in e&&(t==null||!!(e.type&t))}const qc="[^/]+?",Ev={sensitive:!1,strict:!1,start:!0,end:!0},Sv=/[.+*?^${}()[\]/\\]/g;function $v(e,t){const n=Be({},Ev,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const d=f.length?[]:[90];n.strict&&!f.length&&(r+="/");for(let h=0;h<f.length;h++){const m=f[h];let g=40+(n.sensitive?.25:0);if(m.type===0)h||(r+="/"),r+=m.value.replace(Sv,"\\$&"),g+=40;else if(m.type===1){const{value:v,repeatable:E,optional:N,regexp:C}=m;o.push({name:v,repeatable:E,optional:N});const b=C||qc;if(b!==qc){g+=10;try{new RegExp(`(${b})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+P.message)}}let k=E?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;h||(k=N&&f.length<2?`(?:/${k})`:"/"+k),N&&(k+="?"),r+=k,g+=20,N&&(g+=-8),E&&(g+=-20),b===".*"&&(g+=-50)}d.push(g)}s.push(d)}if(n.strict&&n.end){const f=s.length-1;s[f][s[f].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(f){const d=f.match(i),h={};if(!d)return null;for(let m=1;m<d.length;m++){const g=d[m]||"",v=o[m-1];h[v.name]=g&&v.repeatable?g.split("/"):g}return h}function c(f){let d="",h=!1;for(const m of e){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const g of m)if(g.type===0)d+=g.value;else if(g.type===1){const{value:v,repeatable:E,optional:N}=g,C=v in f?f[v]:"";if(Vt(C)&&!E)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Vt(C)?C.join("/"):C;if(!b)if(N)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${v}"`);d+=b}}return d||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Tv(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Pv(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Tv(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(zc(s))return 1;if(zc(r))return-1}return r.length-s.length}function zc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Av={type:0,value:""},Ov=/[a-zA-Z0-9_]/;function Iv(e){if(!e)return[[]];if(e==="/")return[[Av]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,f="",d="";function h(){!f||(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(f&&h(),i()):c===":"?(h(),n=1):m();break;case 4:m(),n=s;break;case 1:c==="("?n=2:Ov.test(c)?m():(h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=3:d+=c;break;case 3:h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),h(),i(),r}function Mv(e,t,n){const s=$v(Iv(e.path),n),r=Be(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Rv(e,t){const n=[],s=new Map;t=Yc({strict:!1,end:!0,sensitive:!1},t);function r(d){return s.get(d)}function o(d,h,m){const g=!m,v=Bv(d);v.aliasOf=m&&m.record;const E=Yc(t,d),N=[v];if("alias"in d){const k=typeof d.alias=="string"?[d.alias]:d.alias;for(const P of k)N.push(Be({},v,{components:m?m.record.components:v.components,path:P,aliasOf:m?m.record:v}))}let C,b;for(const k of N){const{path:P}=k;if(h&&P[0]!=="/"){const $=h.record.path,O=$[$.length-1]==="/"?"":"/";k.path=h.record.path+(P&&O+P)}if(C=Mv(k,h,E),m?m.alias.push(C):(b=b||C,b!==C&&b.alias.push(C),g&&d.name&&!Wc(C)&&i(d.name)),v.children){const $=v.children;for(let O=0;O<$.length;O++)o($[O],C,m&&m.children[O])}m=m||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&c(C)}return b?()=>{i(b)}:no}function i(d){if(Hd(d)){const h=s.get(d);h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){let h=0;for(;h<n.length&&Pv(d,n[h])>=0&&(d.record.path!==n[h].record.path||!Vd(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!Wc(d)&&s.set(d.record.name,d)}function f(d,h){let m,g={},v,E;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw Is(1,{location:d});E=m.record.name,g=Be(Kc(h.params,m.keys.filter(b=>!b.optional).map(b=>b.name)),d.params&&Kc(d.params,m.keys.map(b=>b.name))),v=m.stringify(g)}else if("path"in d)v=d.path,m=n.find(b=>b.re.test(v)),m&&(g=m.parse(v),E=m.record.name);else{if(m=h.name?s.get(h.name):n.find(b=>b.re.test(h.path)),!m)throw Is(1,{location:d,currentLocation:h});E=m.record.name,g=Be({},h.params,d.params),v=m.stringify(g)}const N=[];let C=m;for(;C;)N.unshift(C.record),C=C.parent;return{name:E,path:v,params:g,matched:N,meta:Lv(N)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function Kc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Bv(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Nv(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Nv(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Wc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Lv(e){return e.reduce((t,n)=>Be(t,n.meta),{})}function Yc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Vd(e,t){return t.children.some(n=>n===e||Vd(e,n))}const Ud=/#/g,Dv=/&/g,Fv=/\//g,Hv=/=/g,jv=/\?/g,qd=/\+/g,Vv=/%5B/g,Uv=/%5D/g,zd=/%5E/g,qv=/%60/g,Kd=/%7B/g,zv=/%7C/g,Wd=/%7D/g,Kv=/%20/g;function ta(e){return encodeURI(""+e).replace(zv,"|").replace(Vv,"[").replace(Uv,"]")}function Wv(e){return ta(e).replace(Kd,"{").replace(Wd,"}").replace(zd,"^")}function Ji(e){return ta(e).replace(qd,"%2B").replace(Kv,"+").replace(Ud,"%23").replace(Dv,"%26").replace(qv,"`").replace(Kd,"{").replace(Wd,"}").replace(zd,"^")}function Yv(e){return Ji(e).replace(Hv,"%3D")}function Zv(e){return ta(e).replace(Ud,"%23").replace(jv,"%3F")}function Qv(e){return e==null?"":Zv(e).replace(Fv,"%2F")}function vr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Gv(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(qd," "),i=o.indexOf("="),l=vr(i<0?o:o.slice(0,i)),c=i<0?null:vr(o.slice(i+1));if(l in t){let f=t[l];Vt(f)||(f=t[l]=[f]),f.push(c)}else t[l]=c}return t}function Zc(e){let t="";for(let n in e){const s=e[n];if(n=Yv(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Vt(s)?s.map(o=>o&&Ji(o)):[s&&Ji(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jv(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Vt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xv=Symbol(""),Qc=Symbol(""),Yr=Symbol(""),na=Symbol(""),Xi=Symbol("");function zs(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function _n(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const c=h=>{h===!1?l(Is(4,{from:n,to:t})):h instanceof Error?l(h):kv(h)?l(Is(2,{from:t,to:h})):(o&&s.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),i())},f=e.call(s&&s.instances[r],t,n,c);let d=Promise.resolve(f);e.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function _i(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(e1(l)){const f=(l.__vccOpts||l)[t];f&&r.push(_n(f,n,s,o,i))}else{let c=l();r.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=iv(f)?f.default:f;o.components[i]=d;const m=(d.__vccOpts||d)[t];return m&&_n(m,n,s,o,i)()}))}}return r}function e1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Gc(e){const t=St(Yr),n=St(na),s=je(()=>t.resolve(se(e.to))),r=je(()=>{const{matched:c}=s.value,{length:f}=c,d=c[f-1],h=n.matched;if(!d||!h.length)return-1;const m=h.findIndex(Os.bind(null,d));if(m>-1)return m;const g=Jc(c[f-2]);return f>1&&Jc(d)===g&&h[h.length-1].path!==g?h.findIndex(Os.bind(null,c[f-2])):m}),o=je(()=>r.value>-1&&o1(n.params,s.value.params)),i=je(()=>r.value>-1&&r.value===n.matched.length-1&&Dd(n.params,s.value.params));function l(c={}){return s1(c)?t[se(e.replace)?"replace":"push"](se(e.to)).catch(no):Promise.resolve()}return{route:s,href:je(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const t1=me({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gc,setup(e,{slots:t}){const n=ss(Gc(e)),{options:s}=St(Yr),r=je(()=>({[Xc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Xc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Dr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),n1=t1;function s1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function o1(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Vt(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Jc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xc=(e,t,n)=>e!=null?e:t!=null?t:n,r1=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=St(Xi),r=je(()=>e.route||s.value),o=St(Qc,0),i=je(()=>{let f=se(o);const{matched:d}=r.value;let h;for(;(h=d[f])&&!h.components;)f++;return f}),l=je(()=>r.value.matched[i.value]);Zs(Qc,je(()=>i.value+1)),Zs(Xv,l),Zs(Xi,r);const c=G();return Ht(()=>[c.value,l.value,e.name],([f,d,h],[m,g,v])=>{d&&(d.instances[h]=f,g&&g!==d&&f&&f===m&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),f&&d&&(!g||!Os(d,g)||!m)&&(d.enterCallbacks[h]||[]).forEach(E=>E(f))},{flush:"post"}),()=>{const f=r.value,d=e.name,h=l.value,m=h&&h.components[d];if(!m)return eu(n.default,{Component:m,route:f});const g=h.props[d],v=g?g===!0?f.params:typeof g=="function"?g(f):g:null,N=Dr(m,Be({},v,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return eu(n.default,{Component:N,route:f})||N}}});function eu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const i1=r1;function l1(e){const t=Rv(e.routes,e),n=e.parseQuery||Gv,s=e.stringifyQuery||Zc,r=e.history,o=zs(),i=zs(),l=zs(),c=Bu(yn);let f=yn;hs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bi.bind(null,D=>""+D),h=bi.bind(null,Qv),m=bi.bind(null,vr);function g(D,ne){let ee,oe;return Hd(D)?(ee=t.getRecordMatcher(D),oe=ne):oe=D,t.addRoute(oe,ee)}function v(D){const ne=t.getRecordMatcher(D);ne&&t.removeRoute(ne)}function E(){return t.getRoutes().map(D=>D.record)}function N(D){return!!t.getRecordMatcher(D)}function C(D,ne){if(ne=Be({},ne||c.value),typeof D=="string"){const w=vi(n,D,ne.path),_=t.resolve({path:w.path},ne),M=r.createHref(w.fullPath);return Be(w,_,{params:m(_.params),hash:vr(w.hash),redirectedFrom:void 0,href:M})}let ee;if("path"in D)ee=Be({},D,{path:vi(n,D.path,ne.path).path});else{const w=Be({},D.params);for(const _ in w)w[_]==null&&delete w[_];ee=Be({},D,{params:h(D.params)}),ne.params=h(ne.params)}const oe=t.resolve(ee,ne),ue=D.hash||"";oe.params=d(m(oe.params));const be=cv(s,Be({},D,{hash:Wv(ue),path:oe.path})),ge=r.createHref(be);return Be({fullPath:be,hash:ue,query:s===Zc?Jv(D.query):D.query||{}},oe,{redirectedFrom:void 0,href:ge})}function b(D){return typeof D=="string"?vi(n,D,c.value.path):Be({},D)}function k(D,ne){if(f!==D)return Is(8,{from:ne,to:D})}function P(D){return U(D)}function $(D){return P(Be(b(D),{replace:!0}))}function O(D){const ne=D.matched[D.matched.length-1];if(ne&&ne.redirect){const{redirect:ee}=ne;let oe=typeof ee=="function"?ee(D):ee;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=b(oe):{path:oe},oe.params={}),Be({query:D.query,hash:D.hash,params:"path"in oe?{}:D.params},oe)}}function U(D,ne){const ee=f=C(D),oe=c.value,ue=D.state,be=D.force,ge=D.replace===!0,w=O(ee);if(w)return U(Be(b(w),{state:typeof w=="object"?Be({},ue,w.state):ue,force:be,replace:ge}),ne||ee);const _=ee;_.redirectedFrom=ne;let M;return!be&&uv(s,oe,ee)&&(M=Is(16,{to:_,from:oe}),ke(oe,oe,!0,!1)),(M?Promise.resolve(M):B(_,oe)).catch(F=>tn(F)?tn(F,2)?F:ce(F):q(F,_,oe)).then(F=>{if(F){if(tn(F,2))return U(Be({replace:ge},b(F.to),{state:typeof F.to=="object"?Be({},ue,F.to.state):ue,force:be}),ne||_)}else F=K(_,oe,!0,ge,ue);return L(_,oe,F),F})}function T(D,ne){const ee=k(D,ne);return ee?Promise.reject(ee):Promise.resolve()}function B(D,ne){let ee;const[oe,ue,be]=a1(D,ne);ee=_i(oe.reverse(),"beforeRouteLeave",D,ne);for(const w of oe)w.leaveGuards.forEach(_=>{ee.push(_n(_,D,ne))});const ge=T.bind(null,D,ne);return ee.push(ge),ds(ee).then(()=>{ee=[];for(const w of o.list())ee.push(_n(w,D,ne));return ee.push(ge),ds(ee)}).then(()=>{ee=_i(ue,"beforeRouteUpdate",D,ne);for(const w of ue)w.updateGuards.forEach(_=>{ee.push(_n(_,D,ne))});return ee.push(ge),ds(ee)}).then(()=>{ee=[];for(const w of D.matched)if(w.beforeEnter&&!ne.matched.includes(w))if(Vt(w.beforeEnter))for(const _ of w.beforeEnter)ee.push(_n(_,D,ne));else ee.push(_n(w.beforeEnter,D,ne));return ee.push(ge),ds(ee)}).then(()=>(D.matched.forEach(w=>w.enterCallbacks={}),ee=_i(be,"beforeRouteEnter",D,ne),ee.push(ge),ds(ee))).then(()=>{ee=[];for(const w of i.list())ee.push(_n(w,D,ne));return ee.push(ge),ds(ee)}).catch(w=>tn(w,8)?w:Promise.reject(w))}function L(D,ne,ee){for(const oe of l.list())oe(D,ne,ee)}function K(D,ne,ee,oe,ue){const be=k(D,ne);if(be)return be;const ge=ne===yn,w=hs?history.state:{};ee&&(oe||ge?r.replace(D.fullPath,Be({scroll:ge&&w&&w.scroll},ue)):r.push(D.fullPath,ue)),c.value=D,ke(D,ne,ee,ge),ce()}let z;function H(){z||(z=r.listen((D,ne,ee)=>{if(!Ge.listening)return;const oe=C(D),ue=O(oe);if(ue){U(Be(ue,{replace:!0}),oe).catch(no);return}f=oe;const be=c.value;hs&&yv(jc(be.fullPath,ee.delta),Wr()),B(oe,be).catch(ge=>tn(ge,12)?ge:tn(ge,2)?(U(ge.to,oe).then(w=>{tn(w,20)&&!ee.delta&&ee.type===go.pop&&r.go(-1,!1)}).catch(no),Promise.reject()):(ee.delta&&r.go(-ee.delta,!1),q(ge,oe,be))).then(ge=>{ge=ge||K(oe,be,!1),ge&&(ee.delta&&!tn(ge,8)?r.go(-ee.delta,!1):ee.type===go.pop&&tn(ge,20)&&r.go(-1,!1)),L(oe,be,ge)}).catch(no)}))}let S=zs(),j=zs(),J;function q(D,ne,ee){ce(D);const oe=j.list();return oe.length?oe.forEach(ue=>ue(D,ne,ee)):console.error(D),Promise.reject(D)}function X(){return J&&c.value!==yn?Promise.resolve():new Promise((D,ne)=>{S.add([D,ne])})}function ce(D){return J||(J=!D,H(),S.list().forEach(([ne,ee])=>D?ee(D):ne()),S.reset()),D}function ke(D,ne,ee,oe){const{scrollBehavior:ue}=e;if(!hs||!ue)return Promise.resolve();const be=!ee&&bv(jc(D.fullPath,0))||(oe||!ee)&&history.state&&history.state.scroll||null;return rs().then(()=>ue(D,ne,be)).then(ge=>ge&&gv(ge)).catch(ge=>q(ge,D,ne))}const Te=D=>r.go(D);let Ce;const Fe=new Set,Ge={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,hasRoute:N,getRoutes:E,resolve:C,options:e,push:P,replace:$,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:j.add,isReady:X,install(D){const ne=this;D.component("RouterLink",n1),D.component("RouterView",i1),D.config.globalProperties.$router=ne,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>se(c)}),hs&&!Ce&&c.value===yn&&(Ce=!0,P(r.location).catch(ue=>{}));const ee={};for(const ue in yn)ee[ue]=je(()=>c.value[ue]);D.provide(Yr,ne),D.provide(na,ss(ee)),D.provide(Xi,c);const oe=D.unmount;Fe.add(D),D.unmount=function(){Fe.delete(D),Fe.size<1&&(f=yn,z&&z(),z=null,c.value=yn,Ce=!1,J=!1),oe()}}};return Ge}function ds(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function a1(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(f=>Os(f,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(f=>Os(f,c))||r.push(c))}return[n,s,r]}function hn(){return St(Yr)}function Zr(){return St(na)}const c1={class:"tw-flex"},u1={class:"tw-flex-shrink-0"},f1={key:0,class:"tw-h-5 tw-w-5 tw-text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},d1=x("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1),p1=[d1],h1={key:1,xmlns:"http://www.w3.org/2000/svg",class:"tw-h-5 tw-w-5 tw-text-green-400",viewBox:"0 0 20 20",fill:"currentColor"},m1=x("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1),w1=[m1],g1={class:"tw-ml-3"},yo=me({__name:"AlertMessage",props:{message:null,type:null},setup(e){return(t,n)=>(A(),Q("div",{class:Pe(["tw-rounded-md tw-p-4",{"tw-bg-red-50":e.type==="error","tw-bg-green-50":e.type==="success"}])},[x("div",c1,[x("div",u1,[e.type==="error"?(A(),Q("svg",f1,p1)):ve("",!0),e.type==="success"?(A(),Q("svg",h1,w1)):ve("",!0)]),x("div",g1,[x("p",{class:Pe(["tw-text-sm tw-font-medium",{"tw-text-red-800":e.type==="error","tw-text-green-700":e.type==="success"}])},de(e.message),3)])])],2))}}),He={error:{validator:{email:"Must be a valid email",minLength:e=>`Must be longer than ${e.toString()} characters`}},frontend:{chooseWorkspace:{title:"Choose your workspace."},loginPage:{title:"Sign in to your account",noAccount:"Don't have an account?",registerNow:"Register Now",forgotPassword:"Forgot your password?"},registerPage:{title:"Sign up for a new account",alreadyAccount:"Already have an account?",loginNow:"Login Now",confirmPassword:"Confirm Password"},forgotPasswordPage:{title:"Forgot your password?",button:"Send reset mail",emailNotFound:"The email is not valid or does not belong to any user.",successMessage:"A password reset link has been sent to your email account. If your email has not arrived in the next ten minutes, please check your Spam folder.",backToLogin:"Back to login.",rememberAgain:"Remember your password again?"},resetPasswordPage:{title:"Choose a new password",button:"Change Password",error:{tokenExpired:"Token is expired",passwordsNotMatching:"Passwords do not match",passwordsToShort:"Password needs to be longer"},successToast:"Password changed"},logout:"Logout",signIn:"Sign in",signUp:"Sign up",disconectOverlay:{message:"Reconnecting"},errorPage:{backToHome:"Back to Home",code404:"The page you are looking for could not be found.",code500:"An internal error has occurred."}}},y1=["textContent"],b1=["textContent"],v1={key:2,class:"loader"},_1=me({__name:"BaseButton",props:{disabled:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},icon:{default:null},label:{default:null},loading:{type:Boolean,default:!1},size:{default:"md"},type:{default:"primary"}},emits:["clicked"],setup(e){const t=e,n=je(()=>t.ghost===!0&&t.type==="secondary"?"primary":t.type),s=je(()=>t.size===void 0?"md":t.size),r=je(()=>t.icon&&t.label||t.loading?"text-and-icon":t.icon?"only-icon":"only-text"),o=je(()=>`${n.value} ${s.value} ${r.value} ${t.ghost?"ghost":"normal"} ${t.loading?"loading":""} ${t.disabled?"disabled":""}`);return(i,l)=>(A(),Q("div",{class:Pe(["tw-shrink-0",{"tw-cursor-not-allowed":e.disabled,"tw-cursor-wait":e.loading}])},[x("button",{onClick:l[0]||(l[0]=c=>i.$emit("clicked")),class:Pe(`${se(o)} tw-w-full`),style:{"border-style":"inherit"}},[e.label!==null?(A(),Q("span",{key:0,textContent:de(e.label)},null,8,y1)):ve("",!0),e.icon!==null&&e.loading===!1?(A(),Q("span",{key:1,class:"material-symbols-rounded",textContent:de(e.icon)},null,8,b1)):ve("",!0),e.loading?(A(),Q("span",v1)):ve("",!0)],2)],2))}});const kn=ea(_1,[["__scopeId","data-v-d0727c53"]]),C1={class:"tw-min-h-full tw-flex tw-flex-col tw-justify-center tw-py-12 sm:tw-px-6 tw-lg:px-8"},x1={class:"sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},k1={class:"tw-mt-6 tw-text-center tw-text-3xl tw-font-extrabold tw-text-gray-900"},E1={key:0,class:"tw-mt-2 tw-text-center tw-text-sm tw-text-gray-600"},S1={class:"tw-mt-8 sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},$1={class:"tw-bg-white tw-py-8 tw-px-4 tw-shadow sm:tw-rounded-lg sm:tw-px-10"},T1={class:"tw-space-y-6"},P1=x("label",{for:"email",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Email ",-1),A1={class:"tw-mt-1"},O1=["onKeypress"],I1=x("label",{for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Password ",-1),M1={class:"tw-mt-1"},R1=["onKeypress"],B1={class:"tw-flex tw-items-center tw-justify-between"},N1=x("div",{class:"tw-flex tw-items-center"},[x("input",{id:"remember-me",name:"remember-me",type:"checkbox",class:"tw-h-4 tw-w-4 tw-rounded tw-border-gray-300 tw-text-blue-600 tw-focus:ring-blue-500"}),x("label",{for:"remember-me",class:"tw-ml-2 tw-block tw-text-sm tw-text-gray-900"},"Remember me")],-1),L1={class:"tw-text-sm"},D1=me({__name:"LoginPage",emits:["signedIn"],setup(e,{emit:t}){const n=G(!1),s=G(""),r=G(""),o=hn();async function i(){const c=await window.webSocketClient.request("login",{email:s.value,password:r.value,userAgent:navigator.userAgent});c.status===!1?n.value=!0:(localStorage.setItem("sessionId",c.sessionId),setTimeout(()=>o.replace("/logout"),c.validForMilliseconds),t("signedIn"))}const l=G(window.config.register==="open");return(c,f)=>(A(),Q("div",C1,[x("div",x1,[x("h2",k1,de(se(He).frontend.loginPage.title),1),l.value?(A(),Q("p",E1,[We(de(se(He).frontend.loginPage.noAccount)+" "+de(" ")+" ",1),x("span",{onClick:f[0]||(f[0]=d=>c.$router.push("/register")),class:"tw-cursor-pointer tw-font-medium tw-text-blue-600 tw-hover:text-blue-500"},de(se(He).frontend.loginPage.registerNow),1)])):ve("",!0)]),x("div",S1,[x("div",$1,[n.value?(A(),pe(yo,{key:0,type:"error",message:"Wrong credentials",class:"tw-mb-4"})):ve("",!0),x("div",T1,[x("div",null,[P1,x("div",A1,[xt(x("input",{"onUpdate:modelValue":f[1]||(f[1]=d=>s.value=d),id:"email",name:"email",type:"email",autocomplete:"email",required:"",class:"tw-appearance-none tw-block tw-w-full tw-px-3 tw-py-2 tw-border tw-border-gray-300 tw-rounded-md tw-shadow-sm tw-placeholder-gray-400 tw-focus:outline-none tw-focus:ring-blue-500 tw-focus:border-blue-500 sm:tw-text-sm",onKeypress:Qt(i,["enter"])},null,40,O1),[[kt,s.value]])])]),x("div",null,[I1,x("div",M1,[xt(x("input",{"onUpdate:modelValue":f[2]||(f[2]=d=>r.value=d),id:"password",name:"password",type:"password",autocomplete:"current-password",required:"",class:"tw-appearance-none tw-block tw-w-full tw-px-3 tw-py-2 tw-border tw-border-gray-300 tw-rounded-md tw-shadow-sm tw-placeholder-gray-400 tw-focus:outline-none tw-focus:ring-blue-500 tw-focus:border-blue-500 sm:tw-text-sm",onKeypress:Qt(i,["enter"])},null,40,R1),[[kt,r.value]])])]),x("div",B1,[N1,x("div",L1,[x("span",{onClick:f[3]||(f[3]=d=>c.$router.push("/forgot-password")),class:"tw-font-medium tw-text-blue-600 tw-hover:text-blue-500 tw-cursor-pointer"},de(se(He).frontend.loginPage.forgotPassword),1)])]),_e(kn,{label:se(He).frontend.signIn,onClicked:i},null,8,["label"])])])])]))}}),F1={class:"tw-h-full"},H1={class:"tw-max-w-7xl tw-w-full tw-mx-auto tw-px-4 sm:tw-px-6 lg:tw-px-8"},j1={class:"tw-max-w-xl tw-mx-auto tw-py-16 sm:tw-py-24"},V1={class:"tw-text-center"},U1={class:"tw-mt-2 tw-text-4xl tw-font-extrabold tw-text-gray-900 tw-tracking-tight sm:tw-text-5xl"},q1={class:"tw-mt-12 tw-mb-4"},z1={role:"list",class:"tw-mt-4 tw-border-t tw-border-b tw-border-gray-200 tw-divide-y tw-divide-gray-200"},K1=["onClick"],W1={class:"tw-min-w-0 tw-flex-1"},Y1={class:"tw-text-base tw-font-medium tw-text-gray-900 group-hover:tw-text-blue-500"},Z1=x("span",{class:"tw-absolute tw-inset-0","aria-hidden":"true"},null,-1),Q1=x("div",{class:"tw-flex-shrink-0 tw-self-center"},[x("svg",{class:"tw-h-5 tw-w-5 tw-text-gray-400 group-hover:tw-text-blue-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[x("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})])],-1),G1={class:"tw-mt-4 tw-text-center"},J1=me({__name:"ChooseWorkspace",setup(e){const t=hn(),n=G(null);Ut(async()=>{n.value=await window.webSocketClient.request("workspaces")});async function s(r){await t.push(`/${r}`)}return(r,o)=>(A(),Q("div",F1,[x("main",H1,[x("div",j1,[x("div",V1,[x("h1",U1,de(se(He).frontend.chooseWorkspace.title),1)]),x("div",q1,[x("ul",z1,[(A(!0),Q($e,null,nt(n.value,i=>(A(),Q("li",{class:"group tw-relative tw-py-6 tw-flex tw-items-start tw-space-x-4 tw-cursor-pointer hover:tw-bg-blue-50 tw-px-4",key:i.id,onClick:l=>s(i.id)},[x("div",W1,[x("h3",Y1,[x("span",null,[Z1,We(" "+de(i.name),1)])])]),Q1],8,K1))),128))]),x("div",G1,[x("span",{onClick:o[0]||(o[0]=i=>r.$router.replace("/logout")),class:"tw-cursor-pointer tw-text-sm tw-font-medium tw-text-blue-600 hover:tw-text-blue-500"},de(se(He).frontend.logout),1)])])])])]))}});function it(e,t){const n=window.webSocketClient.subscribe(`getter:${e}`,t);window.webSocketClient.request(`getterInit:${e}`).then(s=>t(s)),Ns(()=>{n(),window.webSocketClient.emit("stopGetter",e)})}const X1=me({__name:"SyncButton",props:{options:null},setup(e){var h;const t=e,n=G((h=t.options.classInit)!=null?h:""),s=G(!1),r=G(t.options.ghostInit),o=G(t.options.iconInit),i=G(""),l=G(!1),c=G(t.options.sizeInit),f=G(t.options.typeInit);it(t.options.labelId,m=>i.value=m),it(t.options.disabledId,m=>s.value=m);async function d(){l.value=!0,await window.webSocketClient.request(`setter:${t.options.onClickId}`),l.value=!1}return(m,g)=>(A(),pe(kn,{onClicked:d,label:i.value,class:Pe(n.value),loading:l.value,disabled:s.value,type:f.value,size:c.value,ghost:r.value,icon:o.value},null,8,["label","class","loading","disabled","type","size","ghost","icon"]))}}),e2={class:"tw-cursor-pointer tw-select-none"},t2=x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0l-3.75-3.75M17.25 21L21 17.25"},null,-1),n2=[t2],s2={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"tw-w-5 tw-h-5 tw-text-blue-500 hover:tw-text-blue-600"},o2=x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"},null,-1),r2=[o2],i2=me({__name:"SortIcon",props:{state:null},setup(e){return(t,n)=>(A(),Q("div",e2,[e.state==="idle"||e.state==="asc"?(A(),Q("svg",{key:0,class:Pe(["tw-w-5 tw-h-5",{"tw-text-gray-400 hover:tw-text-gray-500":e.state==="idle","tw-text-blue-500 hover:tw-text-blue-600":e.state==="asc"}]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},n2,2)):ve("",!0),e.state==="desc"?(A(),Q("svg",s2,r2)):ve("",!0)]))}}),l2={class:"tw-w-auto tw-py-20 tw-m-3 tw-text-center tw-border-2 tw-border-dashed tw-border-gray-200"},a2={class:"tw-text-base tw-text-gray-600 tw-leading-9"},c2=me({__name:"EmptyState",props:{type:null},setup(e){return(t,n)=>(A(),Q("div",l2,[x("span",a2,de(e.type==="no-data"?"NO DATA":"NO RESULTS"),1)]))}});function u2(e){const t=G([]),n=je(()=>e.value.length>0&&e.value.every(i=>t.value.includes(i.id))),s=je(()=>e.value.length>0&&e.value.some(i=>t.value.includes(i.id)));function r(){e.value.forEach(i=>{t.value.includes(i.id)===!1&&t.value.push(i.id)})}function o(){e.value.forEach(i=>{t.value=t.value.filter(l=>l!==i.id)})}return{allRowsOnScreenAreSelected:n,someRowsOnScreenAreSelected:s,selectedAllItemsOnScreen:r,deselectAllItemsOnScreen:o,selectedIds:t}}function f2(e,t){const n=G(null);function s(r){t.value=1,n.value&&n.value.key===r&&n.value.type==="ASC"?n.value={type:"DESC",key:r}:n.value&&n.value.key===r&&n.value.type==="DESC"?n.value=null:n.value={type:"ASC",key:r},e()}return{sort:n,setSort:s}}function d2(e){const t=G(1);function n(){t.value+=1,e()}function s(){t.value-=1,e()}return{pageNumber:t,next:n,previous:s}}function p2(e,t){const n=je(()=>{var r;return((r=e.value[e.value.length-1])==null?void 0:r.name)===""});return{gridTemplateColumns:je(()=>{const r=[];let o=e.value.length;return t.value&&r.push("64px"),n.value?(o=o-1,r.push(`repeat(${o},minmax(max-content,1fr))`),r.push("min-content")):r.push(`repeat(${o},minmax(max-content,1fr))`),r.join(" ")})}}var tu;const Io=typeof window<"u",nu=e=>typeof e=="function",Yd=e=>typeof e=="string",h2=()=>{};Io&&((tu=window==null?void 0:window.navigator)==null?void 0:tu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function el(e){return typeof e=="function"?e():se(e)}function m2(e,t){function n(...s){e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})}return n}function w2(e,t={}){let n,s;return o=>{const i=el(e),l=el(t.maxWait);if(n&&clearTimeout(n),i<=0||l!==void 0&&l<=0)return s&&(clearTimeout(s),s=null),o();l&&!s&&(s=setTimeout(()=>{n&&clearTimeout(n),s=null,o()},l)),n=setTimeout(()=>{s&&clearTimeout(s),s=null,o()},i)}}function g2(e){return e}function Zd(e){return vu()?(_u(e),!0):!1}function Ms(e,t=200,n={}){return m2(w2(t,n),e)}function y2(e){return typeof e=="function"?je(e):G(e)}function b2(e,t=!0){en()?Ut(e):t?e():rs(e)}function v2(e,t){const n=G(""),s=G("");function r(i){n.value=i,o(i)}const o=Ms(async i=>{e.value=1,await t(),s.value=i},250);return{liveQuery:n,requestQuery:s,setQueryValue:r}}const _2={class:"tw-flex tw-justify-center tw-items-stretch tw-w-full tw-border-b tw-border-gray-200"},C2=["value"],x2={key:0,class:"tw-flex-shrink-0 tw-px-3 tw-bg-blue-600 tw-text-white tw-flex tw-space-x-2 tw-justify-center tw-items-center tw-text-sm"},k2=x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",class:"tw-w-[1.1rem] tw-h-[1.1rem]",fill:"currentColor"},[x("path",{d:"M0 0h24v24H0V0z",fill:"none"}),x("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})],-1),E2=[k2],S2={class:"tw-flex tw-items-center tw-space-x-2 tw-bg-gray-50 tw-flex-shrink-0 tw-select-none tw-px-2"},$2={key:0,class:"tw-flex tw-justify-center tw-items-center tw-bg-gray-50 tw-border-b tw-border-gray-300"},T2=["checked","indeterminate"],P2={key:0,class:"tw-flex tw-justify-center tw-items-center tw-border-b tw-border-gray-200 tw-relative"},A2={key:0,class:"tw-absolute tw-inset-y-0 tw-left-0 tw-w-0.5 tw-bg-blue-600"},O2=["value"],I2={class:"tw-flex tw-items-center tw-justify-between tw-border-t tw-border-gray-200 tw-bg-white tw-px-4 tw-py-3 sm:tw-px-6 -mt-[1px]","aria-label":"Pagination"},M2={class:"tw-hidden sm:tw-block"},R2={key:0,class:"tw-text-sm tw-text-gray-700"},B2={class:"tw-font-medium"},N2={class:"tw-font-medium"},L2={class:"tw-font-medium"},D2={class:"tw-flex tw-flex-1 tw-justify-between sm:tw-justify-end"},F2=me({__name:"BaseDataTable",props:{actions:null,page:null,columns:null,selectable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},alwaysLoading:{type:Boolean,default:!1},request:null},emits:["actionClick"],setup(e){const t=e,{allRowsOnScreenAreSelected:n,someRowsOnScreenAreSelected:s,selectedAllItemsOnScreen:r,deselectAllItemsOnScreen:o,selectedIds:i}=u2(je(()=>{var b,k;return(k=(b=Ys(t,"page").value)==null?void 0:b.rows)!=null?k:[]})),l=G(!1);Ut(()=>c());async function c(){l.value=!0,await t.request(f.value,E.value,m.value),l.value=!1}const{pageNumber:f,next:d,previous:h}=d2(c),{liveQuery:m,requestQuery:g,setQueryValue:v}=v2(f,c),{sort:E,setSort:N}=f2(c,f),{gridTemplateColumns:C}=p2(Ys(t,"columns"),Ys(t,"selectable"));return(b,k)=>e.page!==null?(A(),Q("div",{key:0,class:Pe(["tw-flex tw-flex-col tw-shadow tw-ring-1 tw-ring-black tw-ring-opacity-5 tw-rounded md:tw-rounded-lg tw-w-full tw-overflow-hidden",{"tw-pointer-events-none":l.value||e.alwaysLoading||e.disabled}])},[x("div",_2,[x("input",{type:"text",class:"tw-flex-1 tw-border-0 focus:tw-ring-0 tw-text-sm tw-block tw-py-3 tw-bg-gray-50 placeholder:tw-text-gray-400",placeholder:"Search",value:se(m),onKeypress:k[0]||(k[0]=P=>se(v)(P.target.value)),onInput:k[1]||(k[1]=P=>se(v)(P.target.value))},null,40,C2),se(i).length>0?(A(),Q("div",x2,[x("span",null,"Selected: "+de(se(i).length),1),x("div",{onClick:k[2]||(k[2]=P=>i.value=[]),class:"tw-rounded hover:tw-bg-blue-500 tw-cursor-pointer tw-p-1 tw-select-none"},E2)])):ve("",!0),x("div",S2,[(A(!0),Q($e,null,nt(e.actions,P=>(A(),Q($e,{key:P.id},[!P.bulkAction||se(i).length>0?(A(),pe(kn,{key:0,type:"tertiary",size:"sm",label:P.label,icon:P.icon,onClicked:$=>b.$emit("actionClick",P.id)},null,8,["label","icon","onClicked"])):ve("",!0)],64))),128))])]),e.page.rows.length===0?(A(),pe(c2,{key:0,type:e.page.totalWithoutFilter===0?"no-data":"no-results"},null,8,["type"])):(A(),Q("div",{key:1,class:"tw-relative tw-grid tw-overflow-scroll tw-min-w-full",style:Xt(`grid-template-columns: ${se(C)}`)},[e.selectable?(A(),Q("div",$2,[x("input",{type:"checkbox",class:"tw-h-4 tw-w-4 tw-rounded tw-border-gray-300 tw-text-blue-600 focus:tw-ring-blue-500",checked:se(n),indeterminate:se(n)===!1&&se(s),onChange:k[3]||(k[3]=P=>P.target.checked?se(r)():se(o)())},null,40,T2)])):ve("",!0),(A(!0),Q($e,null,nt(e.columns,P=>{var $,O;return A(),Q("div",{key:P.key,class:"tw-flex tw-flex-shrink-0 tw-justify-between tw-items-center tw-space-x-4 tw-bg-gray-50 tw-border-b tw-border-gray-300 tw-whitespace-nowrap tw-py-4 tw-px-4 tw-text-sm tw-font-semibold tw-text-gray-900"},[x("span",null,de(P.name),1),P.sortable?(A(),pe(i2,{key:0,onClick:U=>se(N)(P.key),state:(($=se(E))==null?void 0:$.key)===P.key?((O=se(E))==null?void 0:O.type)==="ASC"?"asc":"desc":"idle"},null,8,["onClick","state"])):ve("",!0)])}),128)),(A(!0),Q($e,null,nt(e.page.rows,P=>(A(),Q($e,{key:P.id},[e.selectable?(A(),Q("div",P2,[se(i).includes(P.id)?(A(),Q("div",A2)):ve("",!0),xt(x("input",{type:"checkbox",class:"tw-absolute tw-left-4 tw-top-1/2 tw--mt-2 tw-h-4 tw-w-4 tw-rounded tw-border-gray-300 tw-text-blue-600 focus:tw-ring-blue-500 sm:tw-left-6","onUpdate:modelValue":k[4]||(k[4]=$=>Ze(i)?i.value=$:null),value:P.id},null,8,O2),[[Hr,se(i)]])])):ve("",!0),(A(!0),Q($e,null,nt(e.columns,$=>(A(),Q("div",{key:$.key,class:"tw-flex tw-items-center tw-border-b tw-border-gray-200 tw-whitespace-nowrap tw-truncate tw-py-4 tw-px-4 tw-text-sm tw-text-gray-700"},[Eo(b.$slots,"render",hu(Ol({row:P,column:$,requestQuery:se(g)})),()=>[We(de(P[$.key]),1)])]))),128))],64))),128))],4)),x("nav",I2,[x("div",M2,[e.page.rows.length>0?(A(),Q("p",R2,[We(" Showing "+de(" ")+" "),x("span",B2,de(e.page.from),1),We(" "+de(" ")+" to "+de(" ")+" "),x("span",N2,de(e.page.to),1),We(" "+de(" ")+" of "+de(" ")+" "),x("span",L2,de(e.page.totalWithFilter),1),We(" "+de(" ")+" results ")])):ve("",!0)]),x("div",D2,[_e(kn,{label:"Previous",type:"tertiary",disabled:se(f)===1,"hide-spinner":!0,onClicked:se(h)},null,8,["disabled","onClicked"]),_e(kn,{label:"Next",type:"tertiary",class:"tw-ml-3",disabled:e.page.to===e.page.totalWithFilter,"hide-spinner":!0,onClicked:se(d)},null,8,["disabled","onClicked"])])])],2)):ve("",!0)}}),sa=me({__name:"BetterContainer",props:{options:null,preClasses:null,highlightStr:null},setup(e){var r,o;const t=e,n=G([]),s=G(((r=t.preClasses)!=null?r:"")+" "+((o=t.options.classInit)!=null?o:""));return it(t.options.itemsId,i=>n.value=i),(i,l)=>(A(),Q("div",{class:Pe(s.value)},[_e(sp,{components:n.value,"highlight-str":e.highlightStr},null,8,["components","highlight-str"])],2))}}),H2=me({__name:"SyncDataTable",props:{options:null},setup(e){const t=e,n=G(null),s=G([]),r=G([]),o=G(!1);it(t.options.disabledId,d=>o.value=d),Ut(async()=>{s.value=await window.webSocketClient.request(`getterInit:${t.options.columnsId}`),r.value=await window.webSocketClient.request(`getterInit:${t.options.actionsId}`)});let i=null;async function l(d,h,m){i=[d,h,m];const g=await window.webSocketClient.request(`getter:${t.options.pageId}`,{pageNumber:d,sort:h,query:m});n.value=g}async function c(d){await window.webSocketClient.request(`setter:${d}`,{selectedIds:[]})}const f=window.webSocketClient.subscribe(`getter:${t.options.refreshId}`,()=>{i!==null&&l(...i)});return Ns(()=>{f()}),(d,h)=>(A(),pe(F2,{actions:r.value,page:n.value,columns:s.value,request:l,disabled:o.value,selectable:e.options.selectable,onActionClick:c},{render:mt(({row:m,column:g,requestQuery:v})=>[_e(sa,{"pre-classes":"tw-w-full",options:m[g.key],"highlight-str":v},null,8,["options","highlight-str"])]),_:1},8,["actions","page","columns","disabled","selectable"]))}}),j2=["value","type","disabled"],V2={class:"tw-text-red-500 tw-italic tw-text-sm"},U2=me({__name:"BaseInput",props:{errorMessage:{default:null},type:{default:"text"},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},debounceUpdate:{type:Function,default:()=>null}},setup(e,{expose:t}){const n=e,s=G("");t({inputValue:s});function r(i){s.value=i,o(i)}const o=Ms(n.debounceUpdate,250);return(i,l)=>(A(),Q("div",{class:Pe(["tw-flex tw-flex-col tw-w-full",{"tw-cursor-not-allowed tw-grayscale":e.disabled,"tw-opacity-[0.35]":e.disabled&&e.errorMessage,"tw-opacity-50":e.disabled&&!e.errorMessage}])},[x("input",{value:s.value,onKeypress:l[0]||(l[0]=c=>r(c.target.value)),onInput:l[1]||(l[1]=c=>r(c.target.value)),type:e.type,class:Pe(["tw-rounded-md tw-border-gray-300 tw-shadow-sm tw-text-gray-900 tw-text-sm tw-block tw-w-full tw-px-2.5 tw-py-2 focus:tw-outline-none focus:tw-border-gray-500 focus:tw-ring-gray-500 focus:tw-ring-1",{"tw-border-red-500 tw-bg-red-50 focus:tw-border-red-500 focus:tw-ring-red-500":e.errorMessage!==null,"tw-pointer-events-none":e.disabled}]),disabled:e.disabled,style:{"border-style":"inherit"}},null,42,j2),x("span",V2,de(e.errorMessage),1)],2))}}),q2=me({__name:"SyncInput",props:{options:null},setup(e){var c;const t=e,n=G(null),s=G((c=t.options.classInit)!=null?c:""),r=G(!1),o=G(t.options.typeInit),i=G();it(t.options.disabledId,f=>r.value=f);async function l(f){n.value=await window.webSocketClient.request(`setter:${t.options.setterId}`,f)}return it(t.options.getterId,f=>{n.value=null,i.value.inputValue=f}),(f,d)=>(A(),pe(U2,{class:Pe(s.value),disabled:r.value,type:o.value,"error-message":n.value,"debounce-update":l,ref_key:"$input",ref:i},null,8,["class","disabled","type","error-message"]))}}),z2=["value","disabled"],K2={class:"tw-text-red-500 tw-italic tw-text-sm"},W2=me({__name:"BaseDateTime",props:{errorMessage:{default:null},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},debounceUpdate:{type:Function,default:()=>null}},setup(e,{expose:t}){const n=e,s=G("");t({inputValue:s});function r(i){s.value=i,o(i)}const o=Ms(n.debounceUpdate,250);return(i,l)=>(A(),Q("div",{class:Pe(["tw-flex tw-flex-col tw-w-full",{"tw-cursor-not-allowed tw-grayscale":e.disabled,"tw-opacity-[0.35]":e.disabled&&e.errorMessage,"tw-opacity-50":e.disabled&&!e.errorMessage}])},[x("input",{value:s.value,onKeypress:l[0]||(l[0]=c=>r(c.target.value)),onInput:l[1]||(l[1]=c=>r(c.target.value)),type:"datetime-local",class:Pe(["tw-rounded-md tw-border-gray-300 tw-shadow-sm tw-text-gray-900 tw-text-sm tw-block tw-w-full tw-px-2.5 tw-py-2 focus:tw-outline-none focus:tw-border-gray-500 focus:tw-ring-gray-500 focus:tw-ring-1",{"tw-border-red-500 tw-bg-red-50 focus:tw-border-red-500 focus:tw-ring-red-500":e.errorMessage!==null,"tw-pointer-events-none":e.disabled}]),disabled:e.disabled,style:{"border-style":"inherit"}},null,42,z2),x("span",K2,de(e.errorMessage),1)],2))}});var sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qd={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sn,function(){var n=1e3,s=6e4,r=36e5,o="millisecond",i="second",l="minute",c="hour",f="day",d="week",h="month",m="quarter",g="year",v="date",E="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var S=["th","st","nd","rd"],j=H%100;return"["+H+(S[(j-20)%10]||S[j]||S[0])+"]"}},k=function(H,S,j){var J=String(H);return!J||J.length>=S?H:""+Array(S+1-J.length).join(j)+H},P={s:k,z:function(H){var S=-H.utcOffset(),j=Math.abs(S),J=Math.floor(j/60),q=j%60;return(S<=0?"+":"-")+k(J,2,"0")+":"+k(q,2,"0")},m:function H(S,j){if(S.date()<j.date())return-H(j,S);var J=12*(j.year()-S.year())+(j.month()-S.month()),q=S.clone().add(J,h),X=j-q<0,ce=S.clone().add(J+(X?-1:1),h);return+(-(J+(j-q)/(X?q-ce:ce-q))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:h,y:g,w:d,d:f,D:v,h:c,m:l,s:i,ms:o,Q:m}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},$="en",O={};O[$]=b;var U=function(H){return H instanceof K},T=function H(S,j,J){var q;if(!S)return $;if(typeof S=="string"){var X=S.toLowerCase();O[X]&&(q=X),j&&(O[X]=j,q=X);var ce=S.split("-");if(!q&&ce.length>1)return H(ce[0])}else{var ke=S.name;O[ke]=S,q=ke}return!J&&q&&($=q),q||!J&&$},B=function(H,S){if(U(H))return H.clone();var j=typeof S=="object"?S:{};return j.date=H,j.args=arguments,new K(j)},L=P;L.l=T,L.i=U,L.w=function(H,S){return B(H,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var K=function(){function H(j){this.$L=T(j.locale,null,!0),this.parse(j)}var S=H.prototype;return S.parse=function(j){this.$d=function(J){var q=J.date,X=J.utc;if(q===null)return new Date(NaN);if(L.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var ce=q.match(N);if(ce){var ke=ce[2]-1||0,Te=(ce[7]||"0").substring(0,3);return X?new Date(Date.UTC(ce[1],ke,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,Te)):new Date(ce[1],ke,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,Te)}}return new Date(q)}(j),this.$x=j.x||{},this.init()},S.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},S.$utils=function(){return L},S.isValid=function(){return this.$d.toString()!==E},S.isSame=function(j,J){var q=B(j);return this.startOf(J)<=q&&q<=this.endOf(J)},S.isAfter=function(j,J){return B(j)<this.startOf(J)},S.isBefore=function(j,J){return this.endOf(J)<B(j)},S.$g=function(j,J,q){return L.u(j)?this[J]:this.set(q,j)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(j,J){var q=this,X=!!L.u(J)||J,ce=L.p(j),ke=function(oe,ue){var be=L.w(q.$u?Date.UTC(q.$y,ue,oe):new Date(q.$y,ue,oe),q);return X?be:be.endOf(f)},Te=function(oe,ue){return L.w(q.toDate()[oe].apply(q.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(ue)),q)},Ce=this.$W,Fe=this.$M,Ge=this.$D,D="set"+(this.$u?"UTC":"");switch(ce){case g:return X?ke(1,0):ke(31,11);case h:return X?ke(1,Fe):ke(0,Fe+1);case d:var ne=this.$locale().weekStart||0,ee=(Ce<ne?Ce+7:Ce)-ne;return ke(X?Ge-ee:Ge+(6-ee),Fe);case f:case v:return Te(D+"Hours",0);case c:return Te(D+"Minutes",1);case l:return Te(D+"Seconds",2);case i:return Te(D+"Milliseconds",3);default:return this.clone()}},S.endOf=function(j){return this.startOf(j,!1)},S.$set=function(j,J){var q,X=L.p(j),ce="set"+(this.$u?"UTC":""),ke=(q={},q[f]=ce+"Date",q[v]=ce+"Date",q[h]=ce+"Month",q[g]=ce+"FullYear",q[c]=ce+"Hours",q[l]=ce+"Minutes",q[i]=ce+"Seconds",q[o]=ce+"Milliseconds",q)[X],Te=X===f?this.$D+(J-this.$W):J;if(X===h||X===g){var Ce=this.clone().set(v,1);Ce.$d[ke](Te),Ce.init(),this.$d=Ce.set(v,Math.min(this.$D,Ce.daysInMonth())).$d}else ke&&this.$d[ke](Te);return this.init(),this},S.set=function(j,J){return this.clone().$set(j,J)},S.get=function(j){return this[L.p(j)]()},S.add=function(j,J){var q,X=this;j=Number(j);var ce=L.p(J),ke=function(Fe){var Ge=B(X);return L.w(Ge.date(Ge.date()+Math.round(Fe*j)),X)};if(ce===h)return this.set(h,this.$M+j);if(ce===g)return this.set(g,this.$y+j);if(ce===f)return ke(1);if(ce===d)return ke(7);var Te=(q={},q[l]=s,q[c]=r,q[i]=n,q)[ce]||1,Ce=this.$d.getTime()+j*Te;return L.w(Ce,this)},S.subtract=function(j,J){return this.add(-1*j,J)},S.format=function(j){var J=this,q=this.$locale();if(!this.isValid())return q.invalidDate||E;var X=j||"YYYY-MM-DDTHH:mm:ssZ",ce=L.z(this),ke=this.$H,Te=this.$m,Ce=this.$M,Fe=q.weekdays,Ge=q.months,D=function(ue,be,ge,w){return ue&&(ue[be]||ue(J,X))||ge[be].slice(0,w)},ne=function(ue){return L.s(ke%12||12,ue,"0")},ee=q.meridiem||function(ue,be,ge){var w=ue<12?"AM":"PM";return ge?w.toLowerCase():w},oe={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Ce+1,MM:L.s(Ce+1,2,"0"),MMM:D(q.monthsShort,Ce,Ge,3),MMMM:D(Ge,Ce),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:D(q.weekdaysMin,this.$W,Fe,2),ddd:D(q.weekdaysShort,this.$W,Fe,3),dddd:Fe[this.$W],H:String(ke),HH:L.s(ke,2,"0"),h:ne(1),hh:ne(2),a:ee(ke,Te,!0),A:ee(ke,Te,!1),m:String(Te),mm:L.s(Te,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:ce};return X.replace(C,function(ue,be){return be||oe[ue]||ce.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(j,J,q){var X,ce=L.p(J),ke=B(j),Te=(ke.utcOffset()-this.utcOffset())*s,Ce=this-ke,Fe=L.m(this,ke);return Fe=(X={},X[g]=Fe/12,X[h]=Fe,X[m]=Fe/3,X[d]=(Ce-Te)/6048e5,X[f]=(Ce-Te)/864e5,X[c]=Ce/r,X[l]=Ce/s,X[i]=Ce/n,X)[ce]||Ce,q?Fe:L.a(Fe)},S.daysInMonth=function(){return this.endOf(h).$D},S.$locale=function(){return O[this.$L]},S.locale=function(j,J){if(!j)return this.$L;var q=this.clone(),X=T(j,J,!0);return X&&(q.$L=X),q},S.clone=function(){return L.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},H}(),z=K.prototype;return B.prototype=z,[["$ms",o],["$s",i],["$m",l],["$H",c],["$W",f],["$M",h],["$y",g],["$D",v]].forEach(function(H){z[H[1]]=function(S){return this.$g(S,H[0],H[1])}}),B.extend=function(H,S){return H.$i||(H(S,K,B),H.$i=!0),B},B.locale=T,B.isDayjs=U,B.unix=function(H){return B(1e3*H)},B.en=O[$],B.Ls=O,B.p={},B})})(Qd);const Y2=Qd.exports,Z2=me({__name:"SyncDateTime",props:{options:null},setup(e){var l;const t=e,n=G(null),s=G((l=t.options.classInit)!=null?l:""),r=G(!1),o=G();it(t.options.disabledId,c=>r.value=c);async function i(c){n.value=await window.webSocketClient.request(`setter:${t.options.setterId}`,c)}return it(t.options.getterId,c=>{n.value=null,o.value.inputValue=c===null?null:Y2(c).format("YYYY-MM-DDTHH:mm")}),(c,f)=>(A(),pe(W2,{class:Pe(s.value),disabled:r.value,"error-message":n.value,"debounce-update":i,ref_key:"$input",ref:o},null,8,["class","disabled","error-message"]))}});function ws(e){var t;const n=el(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oa=Io?window:void 0,Q2=Io?window.document:void 0;Io&&window.navigator;Io&&window.location;function Hn(...e){let t,n,s,r;if(Yd(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=oa):[t,n,s,r]=e,!t)return h2;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],i=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,m)=>(d.addEventListener(h,m,r),()=>d.removeEventListener(h,m,r)),c=Ht(()=>ws(t),d=>{i(),d&&o.push(...n.flatMap(h=>s.map(m=>l(d,h,m))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return Zd(f),f}function tl(e,t,n={}){const{window:s=oa,ignore:r,capture:o=!0,detectIframe:i=!1}=n;if(!s)return;const l=G(!0);let c;const f=g=>{s.clearTimeout(c);const v=ws(e);!v||v===g.target||g.composedPath().includes(v)||!l.value||t(g)},d=g=>r&&r.some(v=>{const E=ws(v);return E&&(g.target===E||g.composedPath().includes(E))}),h=[Hn(s,"click",f,{passive:!0,capture:o}),Hn(s,"pointerdown",g=>{const v=ws(e);l.value=!!v&&!g.composedPath().includes(v)&&!d(g)},{passive:!0}),Hn(s,"pointerup",g=>{if(g.button===0){const v=g.composedPath();g.composedPath=()=>v,c=s.setTimeout(()=>f(g),50)}},{passive:!0}),i&&Hn(s,"blur",g=>{var v;const E=ws(e);((v=s.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(E!=null&&E.contains(s.document.activeElement))&&t(g)})].filter(Boolean);return()=>h.forEach(g=>g())}function G2(e,t=!1){const n=G(),s=()=>n.value=Boolean(e());return s(),b2(s,t),n}const nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sl="__vueuse_ssr_handlers__";nl[sl]=nl[sl]||{};nl[sl];var su=Object.getOwnPropertySymbols,J2=Object.prototype.hasOwnProperty,X2=Object.prototype.propertyIsEnumerable,e_=(e,t)=>{var n={};for(var s in e)J2.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&su)for(var s of su(e))t.indexOf(s)<0&&X2.call(e,s)&&(n[s]=e[s]);return n};function t_(e,t,n={}){const s=n,{window:r=oa}=s,o=e_(s,["window"]);let i;const l=G2(()=>r&&"MutationObserver"in r),c=()=>{i&&(i.disconnect(),i=void 0)},f=Ht(()=>ws(e),h=>{c(),l.value&&r&&h&&(i=new MutationObserver(t),i.observe(h,o))},{immediate:!0}),d=()=>{c(),f()};return Zd(d),{isSupported:l,stop:d}}var ou;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ou||(ou={}));function n_(e=null,t={}){var n,s;const{document:r=Q2}=t,o=y2((n=e!=null?e:r==null?void 0:r.title)!=null?n:null),i=e&&nu(e);function l(c){if(!("titleTemplate"in t))return c;const f=t.titleTemplate||"%s";return nu(f)?f(c):se(f).replace(/%s/g,c)}return Ht(o,(c,f)=>{c!==f&&r&&(r.title=l(Yd(c)?c:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!i&&t_((s=r.head)==null?void 0:s.querySelector("title"),()=>{r&&r.title!==o.value&&(o.value=l(r.title))},{childList:!0}),o}var s_=Object.defineProperty,ru=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,r_=Object.prototype.propertyIsEnumerable,iu=(e,t,n)=>t in e?s_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i_=(e,t)=>{for(var n in t||(t={}))o_.call(t,n)&&iu(e,n,t[n]);if(ru)for(var n of ru(t))r_.call(t,n)&&iu(e,n,t[n]);return e};const l_={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};i_({linear:g2},l_);const a_={class:"tw-flex tw-h-full"},c_={class:"tw-hidden md:tw-flex md:tw-w-64 md:tw-flex-col md:tw-fixed md:tw-inset-y-0"},u_={class:"tw-flex-1 tw-flex tw-flex-col tw-min-h-0 tw-bg-gray-800"},f_={class:"tw-flex tw-items-center tw-justify-center tw-h-16 tw-flex-shrink-0 tw-px-4 tw-bg-gray-900"},d_=["innerHTML"],p_={class:"tw-flex-1 tw-flex tw-flex-col tw-overflow-y-auto"},h_={class:"tw-flex-1 tw-px-2 tw-py-4 tw-space-y-1"},m_=["innerHTML"],w_={class:"md:tw-pl-64 tw-flex tw-w-full tw-flex-col"},g_={class:"tw-sticky tw-top-0 tw-z-10 tw-flex-shrink-0 tw-flex tw-h-16 tw-bg-white tw-shadow"},y_=x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"tw-w-6 tw-h-6","aria-hidden":"true"},[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})],-1),b_=[y_],v_={class:"tw-flex-1 tw-px-4 tw-flex tw-justify-end"},__={class:"tw-ml-4 tw-flex tw-items-center md:tw-ml-6"},C_={key:0,class:"tw-ml-3 tw-relative"},x_=x("span",{class:"material-symbols-rounded tw-m-2"},"person",-1),k_=[x_],E_={class:"tw-cursor-pointer tw-block tw-px-4 tw-py-2 tw-text-sm tw-text-gray-700 hover:tw-bg-gray-100"},S_={class:"tw-flex-1 tw-overflow-scroll"},$_={class:"tw-py-6"},T_={class:"tw-flex tw-flex-col tw-max-w-7xl tw-mx-auto tw-px-4 sm:tw-px-6 md:tw-px-8"},P_={class:"tw-relative tw-z-40 md:tw-hidden"},A_=x("div",{class:"tw-fixed tw-inset-0 tw-bg-gray-600 tw-bg-opacity-75"},null,-1),O_={class:"tw-fixed tw-inset-0 tw-flex tw-z-40"},I_={class:"tw-absolute tw-top-0 tw-right-0 tw--mr-12 tw-pt-2"},M_=x("span",{class:"material-symbols-rounded tw-text-white tw-text-3xl"},"close",-1),R_=[M_],B_={class:"tw-flex-shrink-0 tw-flex tw-items-center tw-justify-center tw-px-4"},N_=["innerHTML"],L_={class:"tw-mt-5 tw-flex-1 tw-h-0 tw-overflow-y-auto"},D_={class:"tw-px-2 tw-space-y-1"},F_=["href"],H_=me({__name:"BaseDarkSidebar",props:{logo:{default:null},items:null,profileItems:{default:null}},setup(e){const t=G(!1),n=G(!1),s=G(),r=G();return tl(s,()=>{n.value=!1}),tl(r,()=>{t.value=!1}),(o,i)=>{const l=Kn("router-link");return A(),Q("div",a_,[x("div",c_,[x("div",u_,[x("div",f_,[x("span",{innerHTML:e.logo},null,8,d_)]),x("div",p_,[x("nav",h_,[(A(!0),Q($e,null,nt(e.items,c=>(A(),pe(l,{key:c.name,to:c.href,class:Pe([c.current?"tw-bg-gray-900 tw-text-white":"tw-text-gray-300 hover:tw-bg-gray-700 hover:tw-text-white","group tw-flex tw-items-center tw-px-2 tw-py-2 tw-text-sm tw-font-medium tw-rounded-md"])},{default:mt(()=>[x("span",{class:Pe([[c.current?"tw-text-blue-400":"tw-text-gray-400 group-hover:tw-text-gray-300","tw-mr-3 tw-flex-shrink-0 tw-text-[20px]"],"material-symbols-rounded"]),innerHTML:c.icon},null,10,m_),We(" "+de(c.name),1)]),_:2},1032,["to","class"]))),128))])])])]),x("div",w_,[x("div",g_,[x("button",{type:"button",class:"tw-px-4 tw-border-r tw-border-gray-200 tw-text-gray-500 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-inset focus:tw-ring-blue-500 md:tw-hidden",onClick:i[0]||(i[0]=c=>t.value=!0)},b_),x("div",v_,[x("div",__,[e.profileItems!==null&&e.profileItems.length>0?(A(),Q("div",C_,[x("div",{onClick:i[1]||(i[1]=c=>n.value=!n.value),class:"tw-cursor-pointer tw-max-w-xs tw-bg-gray-200 tw-text-gray-500 hover:tw-text-gray-600 tw-flex tw-items-center tw-text-sm tw-rounded-full focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-offset-2 focus:tw-ring-blue-500"},k_),_e($o,{"enter-active-class":"tw-transition tw-ease-out tw-duration-100","enter-from-class":"tw-transform tw-opacity-0 tw-scale-95","enter-to-class":"tw-transform tw-opacity-100 tw-scale-100","leave-active-class":"tw-transition tw-ease-in tw-duration-75","leave-from-class":"tw-transform tw-opacity-100 tw-scale-100","leave-to-class":"tw-transform tw-opacity-0 tw-scale-95"},{default:mt(()=>[n.value?(A(),Q("div",{key:0,ref_key:"$profileDropdown",ref:s,class:"tw-origin-top-right tw-absolute tw-right-0 tw-mt-2 tw-w-48 tw-rounded-md tw-shadow-lg tw-py-1 tw-bg-white tw-ring-1 tw-ring-black tw-ring-opacity-5 focus:tw-outline-none"},[(A(!0),Q($e,null,nt(e.profileItems,c=>(A(),Q("div",{key:c.name},[_e(l,{to:c.href},{default:mt(()=>[x("span",E_,de(c.name),1)]),_:2},1032,["to"])]))),128))],512)):ve("",!0)]),_:1})])):ve("",!0)])])]),x("main",S_,[x("div",$_,[x("div",T_,[Eo(o.$slots,"default")])])])]),xt(x("div",P_,[A_,x("div",O_,[x("div",{ref_key:"$sidebarMenu",ref:r,class:"tw-relative tw-flex-1 tw-flex tw-flex-col tw-max-w-xs tw-w-full tw-pt-5 tw-pb-4 tw-bg-gray-800"},[x("div",I_,[x("button",{type:"button",class:"tw-ml-1 tw-flex tw-items-center tw-justify-center tw-h-10 tw-w-10 tw-rounded-full focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-inset focus:tw-ring-white",onClick:i[2]||(i[2]=c=>t.value=!1)},R_)]),x("div",B_,[e.logo!==null?(A(),Q("span",{key:0,innerHTML:e.logo},null,8,N_)):ve("",!0)]),x("div",L_,[x("nav",D_,[(A(!0),Q($e,null,nt(e.items,c=>(A(),Q("a",{key:c.name,href:c.href,class:Pe([c.current?"tw-bg-gray-900 tw-text-white":"tw-text-gray-300 hover:tw-bg-gray-700 hover:tw-text-white","group tw-flex tw-items-center tw-px-2 tw-py-2 tw-text-base tw-font-medium tw-rounded-md"])},de(c.name),11,F_))),128))])])],512)])],512),[[jr,t.value]])])}}}),j_=me({__name:"SyncDarkSidebar",props:{options:null},setup(e){const t=G(window.config.logo);return(n,s)=>(A(),pe(H_,{items:e.options.sidebarMenuItemsInit,"profile-items":e.options.profileMenuItemsInit,logo:t.value},{default:mt(()=>[_e(sa,{options:e.options.container},null,8,["options"])]),_:1},8,["items","profile-items","logo"]))}});function Gd(e,t){return t!=null&&typeof t=="string"&&t.trim()!==""&&e!==void 0&&t.split(" ").forEach(n=>{if(n.length===0)return;const s=new RegExp(n,"gi");e=e.replaceAll(s,"<mark>$&</mark>")}),e}const V_=["innerHTML"],U_=me({__name:"BetterText",props:{options:null,highlightStr:null},setup(e){var r;const t=e,n=G(""),s=G((r=t.options.classInit)!=null?r:"");return it(t.options.labelId,o=>n.value=o),(o,i)=>(A(),Q("p",{class:Pe(s.value),innerHTML:se(Gd)(n.value,e.highlightStr)},null,10,V_))}});let Ci=!1;function q_(e){async function t(n){const s=n.target.scrollTop,r=n.target.clientHeight,o=n.target.scrollHeight;if(s+r>=o){if(Ci)return;Ci=!0,await e(),Ci=!1}}return{scroll:t}}const z_=["value"],K_=me({__name:"SearchField",props:{onFilter:null},setup(e){const t=e,n=G(""),s=G("");function r(i){n.value=i,o(i)}const o=Ms(async i=>{await t.onFilter(i),s.value=i},250);return Ht(n,o),(i,l)=>(A(),Q("input",{name:"search",type:"text",class:"tw-flex-1 tw-rounded-md tw-border-0 tw-bg-gray-100 tw-px-4 tw-py-2.5 tw-my-2 tw-mx-2 tw-text-gray-900 tw-placeholder-gray-500 focus:tw-ring-0 focus-visible:tw-ring-0 sm:tw-text-sm",placeholder:"Search",value:n.value,onInput:l[0]||(l[0]=c=>r(c.target.value)),onKeypress:l[1]||(l[1]=c=>r(c.target.value)),"aria-autocomplete":"none","aria-controls":"options","aria-expanded":"false",autocapitalize:"none",autocomplete:"off",autocorrect:"off",role:"combobox"},null,40,z_))}}),W_={key:0,class:"tw-block tw-truncate tw-flex-1 tw-text-gray-800"},Y_={key:1,class:"tw-flex tw-flex-wrap tw-gap-2 tw-flex-1"},Z_=["onClick"],Q_=x("span",{class:"material-symbols-rounded tw-text-xs","remove-btn":""},"close",-1),G_=[Q_],J_={class:"tw-flex tw-space-x-1 tw-ml-2 tw-flex-shrink-0"},X_={key:0,class:"tw-flex tw-flex-col tw-justify-center tw-items-center tw-p-4"},eC=x("span",{class:"material-symbols-rounded tw-text-3xl tw-text-gray-500 mb-4"},"sentiment_dissatisfied",-1),tC=x("span",{class:"tw-text-base tw-text-gray-700"},"No data to display",-1),nC=[eC,tC],sC={key:0,class:"tw-flex tw-flex-col tw-justify-center tw-items-center tw-p-4"},oC=x("span",{class:"material-symbols-rounded tw-text-3xl tw-text-gray-500 mb-4"},"mood_bad",-1),rC=x("span",{class:"tw-text-base tw-text-gray-700"},"No matches found",-1),iC=[oC,rC],lC={key:1,class:"tw-py-1 tw-flex tw-items-stretch tw-flex-col"},aC=["onClick"],cC=["innerHTML"],uC={key:0,class:"material-symbols-rounded tw-shrink-0 tw-text-sm"},Jd=me({__name:"BaseSelect",props:{request:null,selected:{default:()=>[]},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1}},emits:["deselect","select"],setup(e,{emit:t}){const n=e,s=G(!1),r=G(0),o=G([]),i=G(1),l=G(""),c=G(),f=G(),d=G(0),h=G(0),m=G(0),g=/Mobi/.test(navigator.userAgent);Ut(async()=>{v();const $=await n.request(i.value,"");o.value=$.items,r.value=$.totalWithoutFilter}),Ht(s,()=>{rs(()=>{if(s.value&&!g){const $=f.value.querySelector('input[name="search"]');$==null||$.focus()}}),v()}),tl(f,$=>{s.value===!0&&($.target.hasAttribute("remove-btn")===!1&&$.stopPropagation(),s.value=!1)});function v(){var O;const $=(O=c.value)==null?void 0:O.getBoundingClientRect();$!==void 0&&(d.value=$.top+$.height,h.value=$.left,m.value=$.width)}Hn("resize",Ms(v,10)),Hn("scroll",Ms(v,10),!0);function E($){t("select",$),n.multiple===!1&&(s.value=!1)}function N($){t("deselect",$.id),n.multiple===!1&&(s.value=!1)}function C($){return n.selected.some(O=>O.id===$.id)}let b=!1;const{scroll:k}=q_(async()=>{if(b)return;i.value+=1;const $=await n.request(i.value,l.value);$.items.length===0?b=!0:o.value.push(...$.items)});async function P($){i.value=1;const O=await n.request(i.value,$);o.value=O.items,l.value=$}return($,O)=>{var U,T;return A(),Q("div",{class:Pe(["tw-flex tw-tw-flex-col tw-w-full",{"tw-cursor-not-allowed tw-opacity-50 tw-grayscale":e.disabled}])},[x("div",{class:Pe(["tw-relative tw-inline-block tw-text-left tw-w-full tw-select-none",{"tw-pointer-events-none":e.disabled}])},[x("div",{class:"tw-flex tw-items-center tw-w-full tw-cursor-pointer tw-rounded-md tw-border tw-border-gray-300 tw-bg-white tw-px-2.5 tw-py-1 tw-text-left tw-shadow-sm focus:tw-border-blue-500 focus:tw-outline-none focus:tw-ring-1 focus:tw-ring-blue-500 sm:tw-text-sm",onClick:O[1]||(O[1]=ln(B=>s.value=!s.value,["stop"])),ref_key:"$select",ref:c},[e.multiple===!1?(A(),Q("span",W_,de((T=(U=e.selected[0])==null?void 0:U.label)!=null?T:""),1)):(A(),Q("div",Y_,[(A(!0),Q($e,null,nt(e.selected,B=>(A(),Q("span",{key:B.id,class:"tw-inline-flex tw-items-center tw-rounded tw-bg-gray-200 tw-py-0.5 tw-pl-2 tw-pr-0.5 tw-text-xs tw-font-medium tw-text-gray-700"},[We(de(B.label)+" ",1),x("button",{onClick:ln(L=>N(B),["stop"]),type:"button",class:"tw-ml-0.5 tw-inline-flex tw-h-4 tw-w-4 tw-flex-shrink-0 tw-items-center tw-justify-center tw-rounded tw-text-gray-400 hover:tw-bg-gray-300 hover:tw-text-gray-500 focus:tw-bg-gray-500 focus:tw-text-white focus:tw-outline-none","remove-btn":""},G_,8,Z_)]))),128))])),x("div",J_,[e.multiple===!1&&e.selected.length>0?(A(),Q("span",{key:0,class:"material-symbols-rounded tw-cursor-pointer tw-text-gray-400 hover:tw-text-red-500 tw-text-xl",onClick:O[0]||(O[0]=ln(B=>N(e.selected[0]),["stop"])),"remove-btn":""},"do_not_disturb_on")):ve("",!0),x("span",{class:Pe(["material-symbols-rounded tw-cursor-pointer tw-text-gray-400 hover:tw-text-gray-500 tw-transition-transform tw-text-xl",{"tw-rotate-180":s.value}])},"keyboard_arrow_down",2)])],512),(A(),pe(bf,{to:"body"},[_e($o,{"enter-active-class":"tw-transition tw-duration-100 tw-ease-out","enter-from-class":"tw-transform tw-scale-95 tw-opacity-0","enter-to-class":"tw-transform tw-scale-100 tw-opacity-100","leave-active-class":"tw-transition tw-duration tw-ease-in","leave-from-class":"tw-transform tw-scale-100 tw-opacity-100","leave-to-class":"tw-transform tw-scale-95 tw-opacity-0"},{default:mt(()=>[xt(x("div",{ref_key:"$menu",ref:f,class:"tw-z-10 tw-flex tw-flex-col tw-fixed tw-overflow-auto tw-max-h-60 tw-mt-2 tw-origin-top tw-divide-y tw-divide-gray-100 tw-rounded-md tw-bg-white tw-shadow-lg tw-ring-1 tw-ring-black tw-ring-opacity-5 focus:tw-outline-none tw-text-base sm:tw-text-sm",style:Xt(`left: ${h.value}px; top: ${d.value}px; width: ${m.value}px;`),onScroll:O[2]||(O[2]=(...B)=>se(k)&&se(k)(...B))},[r.value===0?(A(),Q("div",X_,nC)):(A(),Q($e,{key:1},[_e(K_,{onFilter:P}),o.value.length===0?(A(),Q("div",sC,iC)):(A(),Q("div",lC,[(A(!0),Q($e,null,nt(o.value,B=>(A(),Q("button",{key:B.id,class:Pe(["tw-flex tw-cursor-pointer tw-text-sm tw-justify-between tw-items-center tw-select-none tw-py-2 tw-text-left tw-px-4 hover:tw-bg-violet-500 hover:tw-text-white",C(B)?"tw-bg-violet-500 tw-text-white":"tw-text-gray-900"]),onClick:L=>C(B)?N(B):E(B)},[x("span",{class:"tw-truncate tw-mr-4",innerHTML:se(Gd)(B.label,l.value)},null,8,cC),C(B)?(A(),Q("span",uC,"check")):ve("",!0)],10,aC))),128))]))],64))],36),[[jr,s.value]])]),_:1})]))],2)],2)}}}),fC=me({__name:"SyncSelectOne",props:{options:null},setup(e){const t=e,n=G(!1),s=G(null);it(t.options.disabledId,l=>n.value=l),it(t.options.selectedId,l=>s.value=l);async function r(l,c){return await window.webSocketClient.request(`getter:${t.options.optionsId}`,{pageNumber:l,query:c})}function o(){window.webSocketClient.request(`setter:${t.options.onSelectId}`,null)}function i(l){window.webSocketClient.request(`setter:${t.options.onSelectId}`,l)}return(l,c)=>(A(),pe(Jd,{request:r,selected:s.value?[s.value]:[],onDeselect:o,onSelect:i,disabled:n.value},null,8,["selected","disabled"]))}}),dC=me({__name:"SyncSelectMany",props:{options:null},setup(e){const t=e,n=G(!1),s=G([]);it(t.options.disabledId,l=>n.value=l),it(t.options.selectedId,l=>s.value=l);async function r(l,c){return await window.webSocketClient.request(`getter:${t.options.optionsId}`,{pageNumber:l,query:c})}function o(l){window.webSocketClient.request(`setter:${t.options.onDeselectId}`,l)}function i(l){window.webSocketClient.request(`setter:${t.options.onSelectId}`,l)}return(l,c)=>(A(),pe(Jd,{request:r,selected:s.value,onDeselect:o,onSelect:i,disabled:n.value,multiple:""},null,8,["selected","disabled"]))}}),pC=me({__name:"BaseToggle",props:{disabled:{type:Boolean,default:!1},onToggle:{type:Function,default:async()=>!0},initState:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,s=G(n.initState),r=je({get:()=>s.value,set:async o=>{s.value=o,await n.onToggle(o)===!1&&(s.value=!o)}});return t({state:s}),(o,i)=>(A(),Q("div",{class:Pe(["tw-flex",{"tw-cursor-not-allowed tw-opacity-50":e.disabled}])},[x("button",{onClick:i[0]||(i[0]=l=>r.value=!se(r)),type:"button",class:Pe([{"tw-bg-blue-600":se(r),"tw-bg-gray-200":!se(r),"tw-pointer-events-none":e.disabled},"tw-relative tw-inline-flex tw-h-6 tw-w-11 tw-flex-shrink-0 tw-cursor-pointer tw-rounded-full tw-border-2 tw-border-transparent tw-transition-colors tw-duration-200 tw-ease-in-out focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-blue-500 focus:tw-ring-offset-2"]),role:"switch","aria-checked":"false",style:{"border-style":"inherit"}},[x("span",{"aria-hidden":"true",class:Pe([{"tw-translate-x-5":se(r),"tw-translate-x-0":!se(r)},"tw-pointer-events-none tw-inline-block tw-h-5 tw-w-5 tw-transform tw-rounded-full tw-bg-white tw-shadow tw-ring-0 tw-transition tw-duration-200 tw-ease-in-out"])},null,2)],2)],2))}}),hC=me({__name:"SyncToggle",props:{options:null},setup(e){const t=e,n=G(!1),s=G();it(t.options.disabledId,o=>n.value=o),it(t.options.stateId,o=>{s.value.state=o});async function r(o){return await window.webSocketClient.request(`setter:${t.options.onToggleId}`,o)}return(o,i)=>(A(),pe(pC,{disabled:n.value,"on-toggle":r,ref_key:"$toggle",ref:s},null,8,["disabled"]))}}),mC=["data-active","onDragenter","onDragover","onDragleave","onDrop"],wC=me({__name:"DropZone",emits:["drop"],setup(e,{emit:t}){let n=G(!1),s=null;const r=G();function o(){n.value=!0,s&&clearTimeout(s)}function i(){s=setTimeout(()=>{n.value=!1},50)}function l(c){var d,h;i();const f=[...(h=(d=c.dataTransfer)==null?void 0:d.files)!=null?h:[]];f.length>0&&t("drop",f)}return Ut(()=>["dragenter","dragover","dragleave","drop"].forEach(c=>Hn(r.value,c,f=>f.preventDefault()))),(c,f)=>(A(),Q("div",{"data-active":se(n),onDragenter:ln(o,["prevent"]),onDragover:ln(o,["prevent"]),onDragleave:ln(i,["prevent"]),onDrop:ln(l,["prevent"])},[Eo(c.$slots,"default",{dropZoneActive:se(n)})],40,mC))}}),gC={class:"tw-flex tw-flex-col md:tw-flex-row tw-w-full tw-px-3 tw-py-2 tw-bg-gray-50 tw-border tw-rounded tw-justify-between tw-items-center md:tw-space-x-3"},yC={class:"tw-font-medium tw-truncate shrink grow-0 tw-w-full tw-text-center md:tw-text-left"},bC={class:"tw-flex tw-justify-between tw-space-x-2 tw-w-full md:tw-w-auto tw-mt-3 md:tw-mt-0"},vC=x("span",{class:"material-symbols-rounded tw-text-xl"},"edit",-1),_C=[vC],CC=x("span",{class:"material-symbols-rounded tw-text-xl"},"open_in_new",-1),xC=[CC],kC=x("span",{class:"material-symbols-rounded tw-text-xl"},"download",-1),EC=[kC],SC=x("span",{class:"material-symbols-rounded tw-text-xl"},"delete",-1),$C=[SC],TC=me({__name:"UploadedFileRow",props:{file:null},emits:["open","download","delete","rename"],setup(e){return(t,n)=>(A(),Q("div",gC,[x("span",yC,de(e.file.displayName),1),x("div",bC,[x("div",{onClick:n[0]||(n[0]=s=>t.$emit("rename")),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},_C),x("div",{onClick:n[1]||(n[1]=s=>t.$emit("open")),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},xC),x("div",{onClick:n[2]||(n[2]=s=>t.$emit("download")),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},EC),x("div",{onClick:n[3]||(n[3]=s=>t.$emit("delete")),class:"tw-cursor-pointer hover:tw-text-red-500 tw-text-gray-400"},$C)])]))}}),PC={class:"tw-flex tw-flex-col md:tw-flex-row tw-w-full tw-px-3 tw-py-2 tw-bg-gray-50 tw-border tw-rounded tw-justify-between tw-items-center md:tw-space-x-3"},AC={class:"tw-font-medium tw-truncate tw-max-w-[60%] tw-w-full tw-text-center md:tw-text-left"},OC={class:"tw-flex tw-justify-between tw-space-x-2 tw-flex-1 tw-w-full md:tw-w-auto tw-mt-3 md:tw-mt-0 tw-items-center"},IC={class:"tw-flex-1 tw-bg-gray-200 tw-rounded-full tw-h-1.5 tw-overflow-hidden"},MC={class:"tw-text-xs tw-text-gray-400"},RC=x("span",{class:"material-symbols-rounded tw-text-xl"},"close",-1),BC=[RC],NC=me({__name:"UploadingFileRow",props:{file:null},emits:["abort"],setup(e){return(t,n)=>(A(),Q("div",PC,[x("span",AC,de(e.file.name),1),x("div",OC,[x("div",IC,[x("div",{class:"tw-bg-blue-600 tw-h-1.5",style:Xt(`width: ${e.file.percentage()}%`)},null,4)]),x("span",MC,de(`${e.file.percentage()}%`),1),x("div",{onClick:n[0]||(n[0]=s=>t.$emit("abort")),class:"tw-cursor-pointer hover:tw-text-red-500 tw-text-gray-400"},BC)])]))}});function LC(e,t=2){if(e===0)return"0 Bytes";const n=1024,s=t<0?0:t,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(s))+" "+r[o]}const DC={class:"tw-flex tw-flex-col tw-w-full tw-space-y-3"},FC={class:"tw-text-base tw-leading-normal tw-py-4 tw-flex tw-flex-col tw-space-y-2 tw-items-center tw-text-center"},HC=x("span",null,[x("span",{class:"tw-text-blue-500 tw-font-medium hover:tw-text-blue-700"},"Click to upload"),We(" or drag and drop")],-1),jC={class:"tw-text-gray-400 tw-text-xs"},VC={class:"tw-flex tw-flex-col tw-w-full tw-space-y-3"},UC=me({__name:"BaseFile",props:{uploadedFiles:{default:[]},uploadingFiles:{default:[]},maxFileSize:{default:50}},emits:["open","download","delete","rename","abort","upload"],setup(e,{emit:t}){const s=e.maxFileSize*1024*1024,r=LC(s);function o(i){if(i.length!==0){for(const l of i)if(l.size>s){alert(`The '${l.name}' file is larger than ${r}`);return}t("upload",i)}}return(i,l)=>(A(),Q("div",DC,[_e(wC,{onDrop:o},{default:mt(({dropZoneActive:c})=>[x("label",{class:Pe(["tw-w-full tw-flex tw-flex-col tw-items-center tw-border tw-border-gray-300 tw-rounded tw-border-dashed hover:tw-border-solid tw-cursor-pointer",{"tw-bg-blue-50":c}])},[x("span",FC,[HC,x("span",jC,de(se(r))+" max file size.",1)]),x("input",{onChange:l[0]||(l[0]=f=>{var d,h;return o([...(h=(d=f.target)==null?void 0:d.files)!=null?h:[]])}),type:"file",class:"tw-hidden",multiple:""},null,32)],2)]),_:1}),x("div",VC,[(A(!0),Q($e,null,nt(e.uploadingFiles,c=>(A(),pe(NC,{key:c.id,file:c,onAbort:f=>i.$emit("abort",c)},null,8,["file","onAbort"]))),128)),(A(!0),Q($e,null,nt(e.uploadedFiles,c=>(A(),pe(TC,{key:c.id,file:c,onOpen:f=>i.$emit("open",c),onDownload:f=>i.$emit("download",c),onDelete:f=>i.$emit("delete",c),onRename:f=>i.$emit("rename",c)},null,8,["file","onOpen","onDownload","onDelete","onRename"]))),128))])]))}}),Xd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",qC=Xd.length;function zC(e){return Math.floor(Math.random()*e)}function ol(e=5){let t="";for(let n=0;n<e;n++){const s=zC(qC);t+=Xd.charAt(s)}return t}class KC{constructor(t){Nt(this,"id",ol());Nt(this,"totalBytes",0);Nt(this,"uploadedBytes",0);Nt(this,"xmlHttpRequest",null);Nt(this,"workspaceId",window.location.pathname.split("/")[1]);Nt(this,"onComplete");this.file=t}start(){this.xmlHttpRequest=new XMLHttpRequest,this.xmlHttpRequest.upload.addEventListener("progress",n=>{this.uploadedBytes=n.loaded,this.totalBytes=n.total}),this.xmlHttpRequest.addEventListener("load",async()=>{var s,r;const n=(s=this.xmlHttpRequest)==null?void 0:s.responseText;n!==void 0&&((r=this.onComplete)==null||r.call(this,n))}),this.xmlHttpRequest.open("POST","/file-upload"),this.xmlHttpRequest.setRequestHeader("workspace-id",this.workspaceId),this.xmlHttpRequest.setRequestHeader("file-size",this.file.size.toString());const t=new FormData;t.append("file",this.file,this.file.name),this.xmlHttpRequest.send(t)}abort(){var t;(t=this.xmlHttpRequest)==null||t.abort()}uploadingFile(){return{id:this.id,name:this.file.name,percentage:()=>Math.ceil(this.uploadedBytes/this.totalBytes*100)||0}}}var ep={exports:{}};/*!
|
|
12
12
|
* sweetalert2 v11.6.9
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/(function(e,t){(function(n,s){e.exports=s()})(sn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",r=a=>{const u={};for(const p in a)u[a[p]]=s+a[p];return u},o=r(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),i=r(["success","warning","info","question","error"]),l="SweetAlert2:",c=a=>{const u=[];for(let p=0;p<a.length;p++)u.indexOf(a[p])===-1&&u.push(a[p]);return u},f=a=>a.charAt(0).toUpperCase()+a.slice(1),d=a=>{console.warn(`${l} ${typeof a=="object"?a.join(" "):a}`)},h=a=>{console.error(`${l} ${a}`)},m=[],g=a=>{m.includes(a)||(m.push(a),d(a))},v=(a,u)=>{g(`"${a}" is deprecated and will be removed in the next major release. Please use "${u}" instead.`)},E=a=>typeof a=="function"?a():a,N=a=>a&&typeof a.toPromise=="function",C=a=>N(a)?a.toPromise():Promise.resolve(a),b=a=>a&&Promise.resolve(a)===a,k=()=>document.body.querySelector(`.${o.container}`),P=a=>{const u=k();return u?u.querySelector(a):null},$=a=>P(`.${a}`),O=()=>$(o.popup),U=()=>$(o.icon),T=()=>$(o["icon-content"]),B=()=>$(o.title),L=()=>$(o["html-container"]),K=()=>$(o.image),z=()=>$(o["progress-steps"]),H=()=>$(o["validation-message"]),S=()=>P(`.${o.actions} .${o.confirm}`),j=()=>P(`.${o.actions} .${o.deny}`),J=()=>$(o["input-label"]),q=()=>P(`.${o.loader}`),X=()=>P(`.${o.actions} .${o.cancel}`),ce=()=>$(o.actions),ke=()=>$(o.footer),Te=()=>$(o["timer-progress-bar"]),Ce=()=>$(o.close),Fe=`
|
package/public/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
height: 100% !important;
|
|
23
23
|
}
|
|
24
24
|
</style>
|
|
25
|
-
<script type="module" crossorigin src="/assets/index.
|
|
25
|
+
<script type="module" crossorigin src="/assets/index.d688d6aa.js"></script>
|
|
26
26
|
<link rel="stylesheet" href="/assets/index.ef68285e.css">
|
|
27
27
|
</head>
|
|
28
28
|
<body class="tw-flex tw-flex-col tw-bg-gray-50">
|