oksy 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,9 @@ var Zm=Object.defineProperty;var Xm=(e,t,n)=>t in e?Zm(e,t,{enumerable:!0,config
12
12
  * (c) 2022 Eduardo San Martin Morote
13
13
  * @license MIT
14
14
  */const hs=typeof window<"u";function f1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function bi(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ft(r)?r.map(e):e(r)}return n}const to=()=>{},Ft=Array.isArray,d1=/\/$/,p1=e=>e.replace(d1,"");function vi(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let u=t.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(s=t.slice(0,u),o=t.slice(u+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=g1(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function h1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function m1(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Is(t.matched[s],n.matched[r])&&Hd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Is(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!w1(e[n],t[n]))return!1;return!0}function w1(e,t){return Ft(e)?Vc(e,t):Ft(t)?Vc(t,e):e===t}function Vc(e,t){return Ft(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function g1(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 wo;(function(e){e.pop="pop",e.push="push"})(wo||(wo={}));var no;(function(e){e.back="back",e.forward="forward",e.unknown=""})(no||(no={}));function y1(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),p1(e)}const b1=/^[^#]+#/;function v1(e,t){return e.replace(b1,"#")+t}function _1(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 Kr=()=>({left:window.pageXOffset,top:window.pageYOffset});function C1(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=_1(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 Ji=new Map;function x1(e,t){Ji.set(e,t)}function k1(e){const t=Ji.get(e);return Ji.delete(e),t}let E1=()=>location.protocol+"//"+location.host;function Vd(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,u=r.slice(l);return u[0]!=="/"&&(u="/"+u),Hc(u,"")}return Hc(n,e)+s+r}function S1(e,t,n,s){let r=[],o=[],i=null;const l=({state:m})=>{const g=Vd(e,location),v=n.value,k=t.value;let A=0;if(m){if(n.value=g,t.value=m,i&&i===v){i=null;return}A=k?m.position-k.position:0}else s(g);r.forEach(_=>{_(n.value,v,{delta:A,type:wo.pop,direction:A?A>0?no.forward:no.back:no.unknown})})};function u(){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(Ie({},m.state,{scroll:Kr()}),"")}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:u,listen:f,destroy:h}}function Uc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Kr():null}}function T1(e){const{history:t,location:n}=window,s={value:Vd(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(u,f,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+u:E1()+e+u;try{t[d?"replaceState":"pushState"](f,"",m),r.value=f}catch(g){console.error(g),n[d?"replace":"assign"](m)}}function i(u,f){const d=Ie({},t.state,Uc(r.value.back,u,r.value.forward,!0),f,{position:r.value.position});o(u,d,!0),s.value=u}function l(u,f){const d=Ie({},r.value,t.state,{forward:u,scroll:Kr()});o(d.current,d,!0);const h=Ie({},Uc(s.value,u,null),{position:d.position+1},f);o(u,h,!1),s.value=u}return{location:s,state:r,push:l,replace:i}}function P1(e){e=y1(e);const t=T1(e),n=S1(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Ie({location:"",base:e,go:s,createHref:v1.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 $1(e){return typeof e=="string"||e&&typeof e=="object"}function jd(e){return typeof e=="string"||typeof e=="symbol"}const mn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ud=Symbol("");var qc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(qc||(qc={}));function Rs(e,t){return Ie(new Error,{type:e,[Ud]:!0},t)}function en(e,t){return e instanceof Error&&Ud in e&&(t==null||!!(e.type&t))}const zc="[^/]+?",A1={sensitive:!1,strict:!1,start:!0,end:!0},O1=/[.+*?^${}()[\]/\\]/g;function I1(e,t){const n=Ie({},A1,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(O1,"\\$&"),g+=40;else if(m.type===1){const{value:v,repeatable:k,optional:A,regexp:_}=m;o.push({name:v,repeatable:k,optional:A});const b=_||zc;if(b!==zc){g+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+S.message)}}let E=k?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;h||(E=A&&f.length<2?`(?:/${E})`:"/"+E),A&&(E+="?"),r+=E,g+=20,A&&(g+=-8),k&&(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 u(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:k,optional:A}=g,_=v in f?f[v]:"";if(Ft(_)&&!k)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Ft(_)?_.join("/"):_;if(!b)if(A)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:u}}function R1(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 B1(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=R1(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Kc(s))return 1;if(Kc(r))return-1}return r.length-s.length}function Kc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const M1={type:0,value:""},N1=/[a-zA-Z0-9_]/;function L1(e){if(!e)return[[]];if(e==="/")return[[M1]];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,u,f="",d="";function h(){!f||(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=u}for(;l<e.length;){if(u=e[l++],u==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:u==="/"?(f&&h(),i()):u===":"?(h(),n=1):m();break;case 4:m(),n=s;break;case 1:u==="("?n=2:N1.test(u)?m():(h(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:h(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),h(),i(),r}function F1(e,t,n){const s=I1(L1(e.path),n),r=Ie(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function D1(e,t){const n=[],s=new Map;t=Gc({strict:!1,end:!0,sensitive:!1},t);function r(d){return s.get(d)}function o(d,h,m){const g=!m,v=H1(d);v.aliasOf=m&&m.record;const k=Gc(t,d),A=[v];if("alias"in d){const E=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of E)A.push(Ie({},v,{components:m?m.record.components:v.components,path:S,aliasOf:m?m.record:v}))}let _,b;for(const E of A){const{path:S}=E;if(h&&S[0]!=="/"){const $=h.record.path,M=$[$.length-1]==="/"?"":"/";E.path=h.record.path+(S&&M+S)}if(_=F1(E,h,k),m?m.alias.push(_):(b=b||_,b!==_&&b.alias.push(_),g&&d.name&&!Yc(_)&&i(d.name)),v.children){const $=v.children;for(let M=0;M<$.length;M++)o($[M],_,m&&m.children[M])}m=m||_,(_.record.components&&Object.keys(_.record.components).length||_.record.name||_.record.redirect)&&u(_)}return b?()=>{i(b)}:to}function i(d){if(jd(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 u(d){let h=0;for(;h<n.length&&B1(d,n[h])>=0&&(d.record.path!==n[h].record.path||!qd(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!Yc(d)&&s.set(d.record.name,d)}function f(d,h){let m,g={},v,k;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw Rs(1,{location:d});k=m.record.name,g=Ie(Wc(h.params,m.keys.filter(b=>!b.optional).map(b=>b.name)),d.params&&Wc(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),k=m.record.name);else{if(m=h.name?s.get(h.name):n.find(b=>b.re.test(h.path)),!m)throw Rs(1,{location:d,currentLocation:h});k=m.record.name,g=Ie({},h.params,d.params),v=m.stringify(g)}const A=[];let _=m;for(;_;)A.unshift(_.record),_=_.parent;return{name:k,path:v,params:g,matched:A,meta:j1(A)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function Wc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function H1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:V1(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 V1(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 Yc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function j1(e){return e.reduce((t,n)=>Ie(t,n.meta),{})}function Gc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function qd(e,t){return t.children.some(n=>n===e||qd(e,n))}const zd=/#/g,U1=/&/g,q1=/\//g,z1=/=/g,K1=/\?/g,Kd=/\+/g,W1=/%5B/g,Y1=/%5D/g,Wd=/%5E/g,G1=/%60/g,Yd=/%7B/g,Q1=/%7C/g,Gd=/%7D/g,J1=/%20/g;function ta(e){return encodeURI(""+e).replace(Q1,"|").replace(W1,"[").replace(Y1,"]")}function Z1(e){return ta(e).replace(Yd,"{").replace(Gd,"}").replace(Wd,"^")}function Zi(e){return ta(e).replace(Kd,"%2B").replace(J1,"+").replace(zd,"%23").replace(U1,"%26").replace(G1,"`").replace(Yd,"{").replace(Gd,"}").replace(Wd,"^")}function X1(e){return Zi(e).replace(z1,"%3D")}function ev(e){return ta(e).replace(zd,"%23").replace(K1,"%3F")}function tv(e){return e==null?"":ev(e).replace(q1,"%2F")}function yr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function nv(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(Kd," "),i=o.indexOf("="),l=yr(i<0?o:o.slice(0,i)),u=i<0?null:yr(o.slice(i+1));if(l in t){let f=t[l];Ft(f)||(f=t[l]=[f]),f.push(u)}else t[l]=u}return t}function Qc(e){let t="";for(let n in e){const s=e[n];if(n=X1(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ft(s)?s.map(o=>o&&Zi(o)):[s&&Zi(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function sv(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ft(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ov=Symbol(""),Jc=Symbol(""),Wr=Symbol(""),na=Symbol(""),Xi=Symbol("");function js(){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 bn(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const u=h=>{h===!1?l(Rs(4,{from:n,to:t})):h instanceof Error?l(h):$1(h)?l(Rs(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,u);let d=Promise.resolve(f);e.length<3&&(d=d.then(u)),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(rv(l)){const f=(l.__vccOpts||l)[t];f&&r.push(bn(f,n,s,o,i))}else{let u=l();r.push(()=>u.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=f1(f)?f.default:f;o.components[i]=d;const m=(d.__vccOpts||d)[t];return m&&bn(m,n,s,o,i)()}))}}return r}function rv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Zc(e){const t=_t(Wr),n=_t(na),s=Ne(()=>t.resolve(ee(e.to))),r=Ne(()=>{const{matched:u}=s.value,{length:f}=u,d=u[f-1],h=n.matched;if(!d||!h.length)return-1;const m=h.findIndex(Is.bind(null,d));if(m>-1)return m;const g=Xc(u[f-2]);return f>1&&Xc(d)===g&&h[h.length-1].path!==g?h.findIndex(Is.bind(null,u[f-2])):m}),o=Ne(()=>r.value>-1&&cv(n.params,s.value.params)),i=Ne(()=>r.value>-1&&r.value===n.matched.length-1&&Hd(n.params,s.value.params));function l(u={}){return av(u)?t[ee(e.replace)?"replace":"push"](ee(e.to)).catch(to):Promise.resolve()}return{route:s,href:Ne(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const iv=be({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:Zc,setup(e,{slots:t}){const n=ns(Zc(e)),{options:s}=_t(Wr),r=Ne(()=>({[eu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[eu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Lr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),lv=iv;function av(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 cv(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(!Ft(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Xc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const eu=(e,t,n)=>e!=null?e:t!=null?t:n,uv=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=_t(Xi),r=Ne(()=>e.route||s.value),o=_t(Jc,0),i=Ne(()=>{let f=ee(o);const{matched:d}=r.value;let h;for(;(h=d[f])&&!h.components;)f++;return f}),l=Ne(()=>r.value.matched[i.value]);Ys(Jc,Ne(()=>i.value+1)),Ys(ov,l),Ys(Xi,r);const u=Y();return Nt(()=>[u.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||!Is(d,g)||!m)&&(d.enterCallbacks[h]||[]).forEach(k=>k(f))},{flush:"post"}),()=>{const f=r.value,d=e.name,h=l.value,m=h&&h.components[d];if(!m)return tu(n.default,{Component:m,route:f});const g=h.props[d],v=g?g===!0?f.params:typeof g=="function"?g(f):g:null,A=Lr(m,Ie({},v,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(h.instances[d]=null)},ref:u}));return tu(n.default,{Component:A,route:f})||A}}});function tu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fv=uv;function dv(e){const t=D1(e.routes,e),n=e.parseQuery||nv,s=e.stringifyQuery||Qc,r=e.history,o=js(),i=js(),l=js(),u=Nu(mn);let f=mn;hs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bi.bind(null,L=>""+L),h=bi.bind(null,tv),m=bi.bind(null,yr);function g(L,Z){let J,oe;return jd(L)?(J=t.getRecordMatcher(L),oe=Z):oe=L,t.addRoute(oe,J)}function v(L){const Z=t.getRecordMatcher(L);Z&&t.removeRoute(Z)}function k(){return t.getRoutes().map(L=>L.record)}function A(L){return!!t.getRecordMatcher(L)}function _(L,Z){if(Z=Ie({},Z||u.value),typeof L=="string"){const w=vi(n,L,Z.path),C=t.resolve({path:w.path},Z),I=r.createHref(w.fullPath);return Ie(w,C,{params:m(C.params),hash:yr(w.hash),redirectedFrom:void 0,href:I})}let J;if("path"in L)J=Ie({},L,{path:vi(n,L.path,Z.path).path});else{const w=Ie({},L.params);for(const C in w)w[C]==null&&delete w[C];J=Ie({},L,{params:h(L.params)}),Z.params=h(Z.params)}const oe=t.resolve(J,Z),le=L.hash||"";oe.params=d(m(oe.params));const Se=h1(s,Ie({},L,{hash:Z1(le),path:oe.path})),ye=r.createHref(Se);return Ie({fullPath:Se,hash:le,query:s===Qc?sv(L.query):L.query||{}},oe,{redirectedFrom:void 0,href:ye})}function b(L){return typeof L=="string"?vi(n,L,u.value.path):Ie({},L)}function E(L,Z){if(f!==L)return Rs(8,{from:Z,to:L})}function S(L){return F(L)}function $(L){return S(Ie(b(L),{replace:!0}))}function M(L){const Z=L.matched[L.matched.length-1];if(Z&&Z.redirect){const{redirect:J}=Z;let oe=typeof J=="function"?J(L):J;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=b(oe):{path:oe},oe.params={}),Ie({query:L.query,hash:L.hash,params:"path"in oe?{}:L.params},oe)}}function F(L,Z){const J=f=_(L),oe=u.value,le=L.state,Se=L.force,ye=L.replace===!0,w=M(J);if(w)return F(Ie(b(w),{state:typeof w=="object"?Ie({},le,w.state):le,force:Se,replace:ye}),Z||J);const C=J;C.redirectedFrom=Z;let I;return!Se&&m1(s,oe,J)&&(I=Rs(16,{to:C,from:oe}),Dt(oe,oe,!0,!1)),(I?Promise.resolve(I):V(C,oe)).catch(B=>en(B)?en(B,2)?B:He(B):xe(B,C,oe)).then(B=>{if(B){if(en(B,2))return F(Ie({replace:ye},b(B.to),{state:typeof B.to=="object"?Ie({},le,B.to.state):le,force:Se}),Z||C)}else B=q(C,oe,!0,ye,le);return K(C,oe,B),B})}function T(L,Z){const J=E(L,Z);return J?Promise.reject(J):Promise.resolve()}function V(L,Z){let J;const[oe,le,Se]=pv(L,Z);J=_i(oe.reverse(),"beforeRouteLeave",L,Z);for(const w of oe)w.leaveGuards.forEach(C=>{J.push(bn(C,L,Z))});const ye=T.bind(null,L,Z);return J.push(ye),ds(J).then(()=>{J=[];for(const w of o.list())J.push(bn(w,L,Z));return J.push(ye),ds(J)}).then(()=>{J=_i(le,"beforeRouteUpdate",L,Z);for(const w of le)w.updateGuards.forEach(C=>{J.push(bn(C,L,Z))});return J.push(ye),ds(J)}).then(()=>{J=[];for(const w of L.matched)if(w.beforeEnter&&!Z.matched.includes(w))if(Ft(w.beforeEnter))for(const C of w.beforeEnter)J.push(bn(C,L,Z));else J.push(bn(w.beforeEnter,L,Z));return J.push(ye),ds(J)}).then(()=>(L.matched.forEach(w=>w.enterCallbacks={}),J=_i(Se,"beforeRouteEnter",L,Z),J.push(ye),ds(J))).then(()=>{J=[];for(const w of i.list())J.push(bn(w,L,Z));return J.push(ye),ds(J)}).catch(w=>en(w,8)?w:Promise.reject(w))}function K(L,Z,J){for(const oe of l.list())oe(L,Z,J)}function q(L,Z,J,oe,le){const Se=E(L,Z);if(Se)return Se;const ye=Z===mn,w=hs?history.state:{};J&&(oe||ye?r.replace(L.fullPath,Ie({scroll:ye&&w&&w.scroll},le)):r.push(L.fullPath,le)),u.value=L,Dt(L,Z,J,ye),He()}let D;function Q(){D||(D=r.listen((L,Z,J)=>{if(!fn.listening)return;const oe=_(L),le=M(oe);if(le){F(Ie(le,{replace:!0}),oe).catch(to);return}f=oe;const Se=u.value;hs&&x1(jc(Se.fullPath,J.delta),Kr()),V(oe,Se).catch(ye=>en(ye,12)?ye:en(ye,2)?(F(ye.to,oe).then(w=>{en(w,20)&&!J.delta&&J.type===wo.pop&&r.go(-1,!1)}).catch(to),Promise.reject()):(J.delta&&r.go(-J.delta,!1),xe(ye,oe,Se))).then(ye=>{ye=ye||q(oe,Se,!1),ye&&(J.delta&&!en(ye,8)?r.go(-J.delta,!1):J.type===wo.pop&&en(ye,20)&&r.go(-1,!1)),K(oe,Se,ye)}).catch(to)}))}let j=js(),de=js(),we;function xe(L,Z,J){He(L);const oe=de.list();return oe.length?oe.forEach(le=>le(L,Z,J)):console.error(L),Promise.reject(L)}function ge(){return we&&u.value!==mn?Promise.resolve():new Promise((L,Z)=>{j.add([L,Z])})}function He(L){return we||(we=!L,Q(),j.list().forEach(([Z,J])=>L?J(L):Z()),j.reset()),L}function Dt(L,Z,J,oe){const{scrollBehavior:le}=e;if(!hs||!le)return Promise.resolve();const Se=!J&&k1(jc(L.fullPath,0))||(oe||!J)&&history.state&&history.state.scroll||null;return os().then(()=>le(L,Z,Se)).then(ye=>ye&&C1(ye)).catch(ye=>xe(ye,L,Z))}const Ge=L=>r.go(L);let We;const un=new Set,fn={currentRoute:u,listening:!0,addRoute:g,removeRoute:v,hasRoute:A,getRoutes:k,resolve:_,options:e,push:S,replace:$,go:Ge,back:()=>Ge(-1),forward:()=>Ge(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:de.add,isReady:ge,install(L){const Z=this;L.component("RouterLink",lv),L.component("RouterView",fv),L.config.globalProperties.$router=Z,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>ee(u)}),hs&&!We&&u.value===mn&&(We=!0,S(r.location).catch(le=>{}));const J={};for(const le in mn)J[le]=Ne(()=>u.value[le]);L.provide(Wr,Z),L.provide(na,ns(J)),L.provide(Xi,u);const oe=L.unmount;un.add(L),L.unmount=function(){un.delete(L),un.size<1&&(f=mn,D&&D(),D=null,u.value=mn,We=!1,we=!1),oe()}}};return fn}function ds(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function pv(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=>Is(f,l))?s.push(l):n.push(l));const u=e.matched[i];u&&(t.matched.find(f=>Is(f,u))||r.push(u))}return[n,s,r]}function cn(){return _t(Wr)}function Yr(){return _t(na)}const hv={class:"tw-flex"},mv={class:"tw-flex-shrink-0"},wv={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"},gv=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),yv=[gv],bv={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"},vv=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),_v=[vv],Cv={class:"tw-ml-3"},go=be({__name:"AlertMessage",props:{message:null,type:null},setup(e){return(t,n)=>(O(),W("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",hv,[x("div",mv,[e.type==="error"?(O(),W("svg",wv,yv)):pe("",!0),e.type==="success"?(O(),W("svg",bv,_v)):pe("",!0)]),x("div",Cv,[x("p",{class:Pe(["tw-text-sm tw-font-medium",{"tw-text-red-800":e.type==="error","tw-text-green-700":e.type==="success"}])},ie(e.message),3)])])],2))}}),Me={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."}}},xv=["textContent"],kv=["textContent"],Ev={key:2,class:"loader"},Sv=be({__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=Ne(()=>t.ghost===!0&&t.type==="secondary"?"primary":t.type),s=Ne(()=>t.size===void 0?"md":t.size),r=Ne(()=>t.icon&&t.label||t.loading?"text-and-icon":t.icon?"only-icon":"only-text"),o=Ne(()=>`${n.value} ${s.value} ${r.value} ${t.ghost?"ghost":"normal"} ${t.loading?"loading":""} ${t.disabled?"disabled":""}`);return(i,l)=>(O(),W("div",{class:Pe(["tw-shrink-0",{"tw-cursor-not-allowed":e.disabled,"tw-cursor-wait":e.loading}])},[x("button",{onClick:l[0]||(l[0]=u=>i.$emit("clicked")),class:Pe(`${ee(o)} tw-w-full`)},[e.label!==null?(O(),W("span",{key:0,textContent:ie(e.label)},null,8,xv)):pe("",!0),e.icon!==null&&e.loading===!1?(O(),W("span",{key:1,class:"material-symbols-rounded",textContent:ie(e.icon)},null,8,kv)):pe("",!0),e.loading?(O(),W("span",Ev)):pe("",!0)],2)],2))}});const Cn=ea(Sv,[["__scopeId","data-v-dbd86163"]]),Tv={class:"tw-min-h-full tw-flex tw-flex-col tw-justify-center tw-py-12 sm:tw-px-6 tw-lg:px-8"},Pv={class:"sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},$v={class:"tw-mt-6 tw-text-center tw-text-3xl tw-font-extrabold tw-text-gray-900"},Av={key:0,class:"tw-mt-2 tw-text-center tw-text-sm tw-text-gray-600"},Ov={class:"tw-mt-8 sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},Iv={class:"tw-bg-white tw-py-8 tw-px-4 tw-shadow sm:tw-rounded-lg sm:tw-px-10"},Rv={class:"tw-space-y-6"},Bv=x("label",{for:"email",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Email ",-1),Mv={class:"tw-mt-1"},Nv=["onKeypress"],Lv=x("label",{for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Password ",-1),Fv={class:"tw-mt-1"},Dv=["onKeypress"],Hv={class:"tw-flex tw-items-center tw-justify-between"},Vv=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),jv={class:"tw-text-sm"},Uv=be({__name:"LoginPage",emits:["signedIn"],setup(e,{emit:t}){const n=Y(!1),s=Y(""),r=Y(""),o=cn();async function i(){const u=await window.webSocketClient.request("login",{email:s.value,password:r.value,userAgent:navigator.userAgent});u.status===!1?n.value=!0:(localStorage.setItem("sessionId",u.sessionId),setTimeout(()=>o.replace("/logout"),u.secondsValid),t("signedIn"))}const l=Y(window.config.register==="open");return(u,f)=>(O(),W("div",Tv,[x("div",Pv,[x("h2",$v,ie(ee(Me).frontend.loginPage.title),1),l.value?(O(),W("p",Av,[qe(ie(ee(Me).frontend.loginPage.noAccount)+" "+ie(" ")+" ",1),x("span",{onClick:f[0]||(f[0]=d=>u.$router.push("/register")),class:"tw-cursor-pointer tw-font-medium tw-text-blue-600 tw-hover:text-blue-500"},ie(ee(Me).frontend.loginPage.registerNow),1)])):pe("",!0)]),x("div",Ov,[x("div",Iv,[n.value?(O(),ue(go,{key:0,type:"error",message:"Wrong credentials",class:"tw-mb-4"})):pe("",!0),x("div",Rv,[x("div",null,[Bv,x("div",Mv,[gt(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:Kt(i,["enter"])},null,40,Nv),[[yt,s.value]])])]),x("div",null,[Lv,x("div",Fv,[gt(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:Kt(i,["enter"])},null,40,Dv),[[yt,r.value]])])]),x("div",Hv,[Vv,x("div",jv,[x("span",{onClick:f[3]||(f[3]=d=>u.$router.push("/forgot-password")),class:"tw-font-medium tw-text-blue-600 tw-hover:text-blue-500 tw-cursor-pointer"},ie(ee(Me).frontend.loginPage.forgotPassword),1)])]),he(Cn,{label:ee(Me).frontend.signIn,onClicked:i},null,8,["label"])])])])]))}}),qv={class:"tw-h-full"},zv={class:"tw-max-w-7xl tw-w-full tw-mx-auto tw-px-4 sm:tw-px-6 lg:tw-px-8"},Kv={class:"tw-max-w-xl tw-mx-auto tw-py-16 sm:tw-py-24"},Wv={class:"tw-text-center"},Yv={class:"tw-mt-2 tw-text-4xl tw-font-extrabold tw-text-gray-900 tw-tracking-tight sm:tw-text-5xl"},Gv={class:"tw-mt-12 tw-mb-4"},Qv={role:"list",class:"tw-mt-4 tw-border-t tw-border-b tw-border-gray-200 tw-divide-y tw-divide-gray-200"},Jv=["onClick"],Zv={class:"tw-min-w-0 tw-flex-1"},Xv={class:"tw-text-base tw-font-medium tw-text-gray-900 group-hover:tw-text-blue-500"},e2=x("span",{class:"tw-absolute tw-inset-0","aria-hidden":"true"},null,-1),t2=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),n2={class:"tw-mt-4 tw-text-center"},s2=be({__name:"ChooseWorkspace",setup(e){const t=cn(),n=Y(null);Jt(async()=>{n.value=await window.webSocketClient.request("workspaces")});async function s(r){await t.push(`/${r}`)}return(r,o)=>(O(),W("div",qv,[x("main",zv,[x("div",Kv,[x("div",Wv,[x("h1",Yv,ie(ee(Me).frontend.chooseWorkspace.title),1)]),x("div",Gv,[x("ul",Qv,[(O(!0),W(Ce,null,Ze(n.value,i=>(O(),W("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",Zv,[x("h3",Xv,[x("span",null,[e2,qe(" "+ie(i.name),1)])])]),t2],8,Jv))),128))]),x("div",n2,[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"},ie(ee(Me).frontend.logout),1)])])])])]))}});function kt(e,t){const n=window.webSocketClient.subscribe(`getter:${e}`,t);window.webSocketClient.request(`getterInit:${e}`).then(s=>t(s)),rs(()=>{n(),window.webSocketClient.emit("stopGetter",e)})}const o2=be({__name:"SyncButton",props:{options:null},setup(e){var h;const t=e,n=Y((h=t.options.classInit)!=null?h:""),s=Y(!1),r=Y(t.options.ghostInit),o=Y(t.options.iconInit),i=Y(""),l=Y(!1),u=Y(t.options.sizeInit),f=Y(t.options.typeInit);kt(t.options.labelId,m=>i.value=m),kt(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)=>(O(),ue(Cn,{onClicked:d,label:i.value,class:Pe(n.value),loading:l.value,disabled:s.value,type:f.value,size:u.value,ghost:r.value,icon:o.value},null,8,["label","class","loading","disabled","type","size","ghost","icon"]))}}),r2={class:"tw-cursor-pointer tw-select-none"},i2=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),l2=[i2],a2={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"},c2=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),u2=[c2],f2=be({__name:"SortIcon",props:{state:null},setup(e){return(t,n)=>(O(),W("div",r2,[e.state==="idle"||e.state==="asc"?(O(),W("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"},l2,2)):pe("",!0),e.state==="desc"?(O(),W("svg",a2,u2)):pe("",!0)]))}}),d2={class:"tw-w-auto tw-py-20 tw-m-3 tw-text-center tw-border-2 tw-border-dashed tw-border-gray-200"},p2={class:"tw-text-base tw-text-gray-600 tw-leading-9"},h2=be({__name:"EmptyState",props:{type:null},setup(e){return(t,n)=>(O(),W("div",d2,[x("span",p2,ie(e.type==="no-data"?"NO DATA":"NO RESULTS"),1)]))}});function m2(e){const t=Y([]),n=Ne(()=>e.value.length>0&&e.value.every(i=>t.value.includes(i.id))),s=Ne(()=>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 w2(e,t){const n=Y(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 g2(e){const t=Y(1);function n(){t.value+=1,e()}function s(){t.value-=1,e()}return{pageNumber:t,next:n,previous:s}}function y2(e,t){const n=Ne(()=>{var r;return((r=e.value[e.value.length-1])==null?void 0:r.name)===""});return{gridTemplateColumns:Ne(()=>{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 nu;const Ao=typeof window<"u",su=e=>typeof e=="function",Qd=e=>typeof e=="string",Ci=()=>{};Ao&&((nu=window==null?void 0:window.navigator)==null?void 0:nu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function el(e){return typeof e=="function"?e():ee(e)}function b2(e,t){function n(...s){e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})}return n}function v2(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 _2(e){return e}function Jd(e){return _u()?(Cu(e),!0):!1}function Gr(e,t=200,n={}){return b2(v2(t,n),e)}function C2(e){return typeof e=="function"?Ne(e):Y(e)}function x2(e,t=!0){Zt()?Jt(e):t?e():os(e)}function k2(e,t){const n=Y(""),s=Y("");function r(i){n.value=i,o(i)}const o=Gr(async i=>{e.value=1,await t(),s.value=i},250);return{liveQuery:n,requestQuery:s,setQueryValue:r}}const E2={class:"tw-flex tw-justify-center tw-items-stretch tw-w-full tw-border-b tw-border-gray-200"},S2=["value"],T2={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"},P2=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),$2=[P2],A2={class:"tw-flex tw-items-center tw-space-x-2 tw-bg-gray-50 tw-flex-shrink-0 tw-select-none tw-px-2"},O2={key:0,class:"tw-flex tw-justify-center tw-items-center tw-bg-gray-50 tw-border-b tw-border-gray-300"},I2=["checked","indeterminate"],R2={key:0,class:"tw-flex tw-justify-center tw-items-center tw-border-b tw-border-gray-200 tw-relative"},B2={key:0,class:"tw-absolute tw-inset-y-0 tw-left-0 tw-w-0.5 tw-bg-blue-600"},M2=["value"],N2={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"},L2={class:"tw-hidden sm:tw-block"},F2={key:0,class:"tw-text-sm tw-text-gray-700"},D2={class:"tw-font-medium"},H2={class:"tw-font-medium"},V2={class:"tw-font-medium"},j2={class:"tw-flex tw-flex-1 tw-justify-between sm:tw-justify-end"},U2=be({__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}=m2(Ne(()=>{var b,E;return(E=(b=Ks(t,"page").value)==null?void 0:b.rows)!=null?E:[]})),l=Y(!1);Jt(()=>u());async function u(){l.value=!0,await t.request(f.value,k.value,m.value),l.value=!1}const{pageNumber:f,next:d,previous:h}=g2(u),{liveQuery:m,requestQuery:g,setQueryValue:v}=k2(f,u),{sort:k,setSort:A}=w2(u,f),{gridTemplateColumns:_}=y2(Ks(t,"columns"),Ks(t,"selectable"));return(b,E)=>e.page!==null?(O(),W("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",E2,[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:ee(m),onKeypress:E[0]||(E[0]=S=>ee(v)(S.target.value)),onInput:E[1]||(E[1]=S=>ee(v)(S.target.value))},null,40,S2),ee(i).length>0?(O(),W("div",T2,[x("span",null,"Selected: "+ie(ee(i).length),1),x("div",{onClick:E[2]||(E[2]=S=>i.value=[]),class:"tw-rounded hover:tw-bg-blue-500 tw-cursor-pointer tw-p-1 tw-select-none"},$2)])):pe("",!0),x("div",A2,[(O(!0),W(Ce,null,Ze(e.actions,S=>(O(),W(Ce,{key:S.id},[!S.bulkAction||ee(i).length>0?(O(),ue(Cn,{key:0,type:"tertiary",size:"sm",label:S.label,icon:S.icon,onClicked:$=>b.$emit("actionClick",S.id)},null,8,["label","icon","onClicked"])):pe("",!0)],64))),128))])]),e.page.rows.length===0?(O(),ue(h2,{key:0,type:e.page.totalWithoutFilter===0?"no-data":"no-results"},null,8,["type"])):(O(),W("div",{key:1,class:"tw-relative tw-grid tw-overflow-scroll tw-min-w-full",style:Qt(`grid-template-columns: ${ee(_)}`)},[e.selectable?(O(),W("div",O2,[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:ee(n),indeterminate:ee(n)===!1&&ee(s),onChange:E[3]||(E[3]=S=>S.target.checked?ee(r)():ee(o)())},null,40,I2)])):pe("",!0),(O(!0),W(Ce,null,Ze(e.columns,S=>{var $,M;return O(),W("div",{key:S.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,ie(S.name),1),S.sortable?(O(),ue(f2,{key:0,onClick:F=>ee(A)(S.key),state:(($=ee(k))==null?void 0:$.key)===S.key?((M=ee(k))==null?void 0:M.type)==="ASC"?"asc":"desc":"idle"},null,8,["onClick","state"])):pe("",!0)])}),128)),(O(!0),W(Ce,null,Ze(e.page.rows,S=>(O(),W(Ce,{key:S.id},[e.selectable?(O(),W("div",R2,[ee(i).includes(S.id)?(O(),W("div",B2)):pe("",!0),gt(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":E[4]||(E[4]=$=>Ue(i)?i.value=$:null),value:S.id},null,8,M2),[[Dr,ee(i)]])])):pe("",!0),(O(!0),W(Ce,null,Ze(e.columns,$=>(O(),W("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"},[Br(b.$slots,"render",wu(Ol({row:S,column:$,requestQuery:ee(g)})),()=>[qe(ie(S[$.key]),1)])]))),128))],64))),128))],4)),x("nav",N2,[x("div",L2,[e.page.rows.length>0?(O(),W("p",F2,[qe(" Showing "+ie(" ")+" "),x("span",D2,ie(e.page.from),1),qe(" "+ie(" ")+" to "+ie(" ")+" "),x("span",H2,ie(e.page.to),1),qe(" "+ie(" ")+" of "+ie(" ")+" "),x("span",V2,ie(e.page.totalWithFilter),1),qe(" "+ie(" ")+" results ")])):pe("",!0)]),x("div",j2,[he(Cn,{label:"Previous",type:"tertiary",disabled:ee(f)===1,"hide-spinner":!0,onClicked:ee(h)},null,8,["disabled","onClicked"]),he(Cn,{label:"Next",type:"tertiary",class:"tw-ml-3",disabled:e.page.to===e.page.totalWithFilter,"hide-spinner":!0,onClicked:ee(d)},null,8,["disabled","onClicked"])])])],2)):pe("",!0)}}),sa=be({__name:"BetterContainer",props:{options:null,preClasses:null,highlightStr:null},setup(e){var r,o;const t=e,n=Y([]),s=Y(((r=t.preClasses)!=null?r:"")+" "+((o=t.options.classInit)!=null?o:""));return kt(t.options.itemsId,i=>n.value=i),(i,l)=>(O(),W("div",{class:Pe(s.value)},[he(tp,{components:n.value,"highlight-str":e.highlightStr},null,8,["components","highlight-str"])],2))}}),q2=be({__name:"SyncDataTable",props:{options:null},setup(e){const t=e,n=Y(null),s=Y([]),r=Y([]),o=Y(!1);kt(t.options.disabledId,d=>o.value=d),Jt(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 u(d){await window.webSocketClient.request(`setter:${d}`,{selectedIds:[]})}const f=window.webSocketClient.subscribe(`getter:${t.options.refreshId}`,()=>{i!==null&&l(...i)});return rs(()=>{f()}),(d,h)=>(O(),ue(U2,{actions:r.value,page:n.value,columns:s.value,request:l,disabled:o.value,selectable:e.options.selectable,onActionClick:u},{render:vt(({row:m,column:g,requestQuery:v})=>[he(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"]))}}),z2=["value","disabled"],K2={class:"tw-text-red-500 tw-italic tw-text-sm"},W2=be({__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=Y("");t({inputValue:s});function r(i){s.value=i,o(i)}const o=Gr(n.debounceUpdate,250);return(i,l)=>(O(),W("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]=u=>r(u.target.value)),onInput:l[1]||(l[1]=u=>r(u.target.value)),type:"text",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},null,42,z2),x("span",K2,ie(e.errorMessage),1)],2))}}),Y2=be({__name:"SyncInput",props:{options:null},setup(e){var u;const t=e,n=Y(null),s=Y((u=t.options.classInit)!=null?u:""),r=Y(!1),o=Y(t.options.typeInit),i=Y();kt(t.options.disabledId,f=>r.value=f);async function l(f){n.value=await window.webSocketClient.request(`setter:${t.options.setterId}`,f)}return kt(t.options.getterId,f=>{n.value=null,i.value.inputValue=f}),(f,d)=>(O(),ue(W2,{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"]))}}),Zd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",G2=Zd.length;function Q2(e){return Math.floor(Math.random()*e)}function tl(e=5){let t="";for(let n=0;n<e;n++){const s=Q2(G2);t+=Zd.charAt(s)}return t}function xi(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 J2={class:"tw-flex tw-flex-col tw-w-full tw-space-y-3"},Z2={class:"tw-w-full tw-flex tw-flex-col tw-items-center tw-bg-blue-50 tw-border tw-border-blue-500 tw-rounded tw-border-dashed hover:tw-border-solid tw-cursor-pointer"},X2=x("span",{class:"tw-text-base tw-leading-normal tw-py-3"},[x("span",{class:"tw-text-blue-500 tw-font-medium hover:tw-text-blue-700"},"Upload"),qe(" or drag and drop files here ")],-1),e_={class:"tw-flex tw-flex-col tw-w-full tw-space-y-3"},t_={class:"tw-font-medium tw-truncate shrink grow-0 tw-mr-4"},n_={class:"tw-flex tw-justify-end tw-items-center tw-space-x-4 shrink-0 min-w-fit"},s_={class:"tw-text-gray-400 tw-text-sm"},o_={class:"min-w-[100px] tw-w-1/4 tw-bg-gray-200 tw-rounded-full tw-h-1.5 tw-overflow-hidden"},r_={class:"tw-flex tw-space-x-2"},i_=["onClick"],l_=x("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"tw-w-5 tw-h-5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[x("path",{fill:"currentColor",d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10s10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm3.59-13L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41z"})],-1),a_=[l_],c_={class:"tw-font-medium tw-truncate shrink grow-0 tw-mr-4"},u_={class:"tw-flex tw-justify-end tw-items-center tw-space-x-4 shrink-0 min-w-fit"},f_={class:"tw-text-gray-400 tw-text-sm"},d_={class:"tw-flex tw-space-x-2"},p_=["onClick"],h_=x("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"tw-w-5 tw-h-5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[x("path",{fill:"currentColor",d:"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h5c.55 0 1-.45 1-1s-.45-1-1-1H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55-.45 1-1 1zM14 4c0 .55.45 1 1 1h2.59l-9.13 9.13a.996.996 0 1 0 1.41 1.41L19 6.41V9c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1z"})],-1),m_=[h_],w_=["onClick"],g_=x("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"tw-w-5 tw-h-5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[x("path",{fill:"currentColor",d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5c0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4c0-2.05 1.53-3.76 3.56-3.97l1.07-.11l.5-.95A5.469 5.469 0 0 1 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5l1.53.11A2.98 2.98 0 0 1 22 15c0 1.65-1.35 3-3 3zm-5.55-8h-2.9v3H8l4 4l4-4h-2.55z"})],-1),y_=[g_],b_=["onClick"],v_=x("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"tw-w-5 tw-h-5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[x("path",{fill:"currentColor",d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"})],-1),__=[v_],C_=be({__name:"FileUpload",props:{options:null},setup(e){const t=e,n=window.location.pathname.split("/")[1];class s{constructor(v){Xt(this,"id",tl());Xt(this,"totalBytes",0);Xt(this,"uploadedBytes",0);Xt(this,"xmlHttpRequest",null);this.file=v}upload(){this.xmlHttpRequest=new XMLHttpRequest,this.xmlHttpRequest.upload.addEventListener("progress",k=>{this.uploadedBytes=k.loaded,this.totalBytes=k.total}),this.xmlHttpRequest.addEventListener("load",async()=>{var A;const k=(A=this.xmlHttpRequest)==null?void 0:A.responseText;k!=="CANCEL"&&await window.webSocketClient.request(`setter:${t.options.onUploadedId}`,k),u(this)}),this.xmlHttpRequest.addEventListener("abort",()=>console.log("abort")),this.xmlHttpRequest.open("POST","/file-upload"),this.xmlHttpRequest.setRequestHeader("workspace-id",n),this.xmlHttpRequest.setRequestHeader("file-size",this.file.size.toString());const v=new FormData;v.append("file",this.file,this.file.name),this.xmlHttpRequest.send(v)}cancel(){var v;(v=this.xmlHttpRequest)==null||v.abort()}percentage(){return Math.ceil(this.uploadedBytes/this.totalBytes*100)}label(){return`${xi(this.uploadedBytes)} of ${xi(this.totalBytes)}`}}const r=Y([]);Y(t.options.labelInit),window.webSocketClient.request(`getterInit:${t.options.filesId}`).then(g=>r.value=g);const o=window.webSocketClient.subscribe(`getter:${t.options.filesId}`,g=>r.value=g),i=Y([]);async function l(g){const v=g.target.files;for(const k of v){const A=ns(new s(k));i.value.push(A),A.upload()}}function u(g){i.value=i.value.filter(v=>v.id!==g.id)}function f(g){g.cancel(),u(g)}async function d(g){await window.webSocketClient.request(`setter:${t.options.onRemoveId}`,g)}function h(g){var k;const v=`/uploads/${n}/${g.id}/${g.name}`;(k=window.open(v,"_blank"))==null||k.focus()}function m(g){var v=document.createElement("a");v.href=`/uploads/${n}/${g.id}/${g.name}`,v.download=g.displayName,v.dispatchEvent(new MouseEvent("click"))}return rs(()=>{o()}),(g,v)=>(O(),W("div",J2,[x("label",Z2,[X2,x("input",{onChange:v[0]||(v[0]=k=>l(k)),type:"file",class:"tw-hidden",multiple:""},null,32)]),x("div",e_,[(O(!0),W(Ce,null,Ze(i.value,k=>(O(),W("div",{key:k.id,class:"tw-flex tw-w-full tw-px-3 tw-py-2 tw-bg-gray-50 tw-border tw-rounded tw-justify-between tw-items-center"},[x("span",t_,ie(k.file.name),1),x("div",n_,[x("span",s_,ie(k.label()),1),x("div",o_,[x("div",{class:"tw-bg-blue-600 tw-h-1.5",style:Qt(`width: ${k.percentage()}%`)},null,4)]),x("div",r_,[x("div",{onClick:A=>f(k),class:"tw-cursor-pointer hover:tw-text-red-500 tw-text-gray-400"},a_,8,i_)])])]))),128)),(O(!0),W(Ce,null,Ze(r.value,k=>(O(),W("div",{key:k.id,class:"tw-flex tw-w-full tw-px-3 tw-py-2 tw-bg-gray-50 tw-border tw-rounded tw-justify-between tw-items-center"},[x("span",c_,ie(k.displayName),1),x("div",u_,[x("span",f_,ie(ee(xi)(k.size)),1),x("div",d_,[x("div",{onClick:A=>h(k),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},m_,8,p_),x("div",{onClick:A=>m(k),class:"tw-cursor-pointer hover:tw-text-blue-500 tw-text-gray-400"},y_,8,w_),x("div",{onClick:A=>d(k.id),class:"tw-cursor-pointer hover:tw-text-red-500 tw-text-gray-400"},__,8,b_)])])]))),128))])]))}});function ws(e){var t;const n=el(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oa=Ao?window:void 0,x_=Ao?window.document:void 0;Ao&&window.navigator;Ao&&window.location;function zs(...e){let t,n,s,r;if(Qd(e[0])?([n,s,r]=e,t=oa):[t,n,s,r]=e,!t)return Ci;let o=Ci;const i=Nt(()=>ws(t),u=>{o(),u&&(u.addEventListener(n,s,r),o=()=>{u.removeEventListener(n,s,r),o=Ci})},{immediate:!0,flush:"post"}),l=()=>{i(),o()};return Jd(l),l}function nl(e,t,n={}){const{window:s=oa,ignore:r,capture:o=!0,detectIframe:i=!1}=n;if(!s)return;const l=Y(!0);let u;const f=g=>{s.clearTimeout(u);const v=ws(e);!v||v===g.target||g.composedPath().includes(v)||!l.value||t(g)},d=g=>r&&r.some(v=>{const k=ws(v);return k&&(g.target===k||g.composedPath().includes(k))}),h=[zs(s,"click",f,{passive:!0,capture:o}),zs(s,"pointerdown",g=>{const v=ws(e);l.value=!!v&&!g.composedPath().includes(v)&&!d(g)},{passive:!0}),zs(s,"pointerup",g=>{if(g.button===0){const v=g.composedPath();g.composedPath=()=>v,u=s.setTimeout(()=>f(g),50)}},{passive:!0}),i&&zs(s,"blur",g=>{var v;const k=ws(e);((v=document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(k!=null&&k.contains(document.activeElement))&&t(g)})].filter(Boolean);return()=>h.forEach(g=>g())}function k_(e,t=!1){const n=Y(),s=()=>n.value=Boolean(e());return s(),x2(s,t),n}const sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ol="__vueuse_ssr_handlers__";sl[ol]=sl[ol]||{};sl[ol];var ou=Object.getOwnPropertySymbols,E_=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable,T_=(e,t)=>{var n={};for(var s in e)E_.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&ou)for(var s of ou(e))t.indexOf(s)<0&&S_.call(e,s)&&(n[s]=e[s]);return n};function P_(e,t,n={}){const s=n,{window:r=oa}=s,o=T_(s,["window"]);let i;const l=k_(()=>r&&"MutationObserver"in r),u=()=>{i&&(i.disconnect(),i=void 0)},f=Nt(()=>ws(e),h=>{u(),l.value&&r&&h&&(i=new MutationObserver(t),i.observe(h,o))},{immediate:!0}),d=()=>{u(),f()};return Jd(d),{isSupported:l,stop:d}}var ru;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ru||(ru={}));function $_(e=null,t={}){var n,s;const{document:r=x_}=t,o=C2((n=e!=null?e:r==null?void 0:r.title)!=null?n:null),i=e&&su(e);function l(u){if(!("titleTemplate"in t))return u;const f=t.titleTemplate||"%s";return su(f)?f(u):ee(f).replace(/%s/g,u)}return Nt(o,(u,f)=>{u!==f&&r&&(r.title=l(Qd(u)?u:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!i&&P_((s=r.head)==null?void 0:s.querySelector("title"),()=>{r&&r.title!==o.value&&(o.value=l(r.title))},{childList:!0}),o}var A_=Object.defineProperty,iu=Object.getOwnPropertySymbols,O_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,lu=(e,t,n)=>t in e?A_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R_=(e,t)=>{for(var n in t||(t={}))O_.call(t,n)&&lu(e,n,t[n]);if(iu)for(var n of iu(t))I_.call(t,n)&&lu(e,n,t[n]);return e};const B_={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]};R_({linear:_2},B_);const M_={class:"tw-flex tw-h-full"},N_={class:"tw-hidden md:tw-flex md:tw-w-64 md:tw-flex-col md:tw-fixed md:tw-inset-y-0"},L_={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"],H_={class:"tw-flex-1 tw-flex tw-flex-col tw-overflow-y-auto"},V_={class:"tw-flex-1 tw-px-2 tw-py-4 tw-space-y-1"},j_=["innerHTML"],U_={class:"md:tw-pl-64 tw-flex tw-w-full tw-flex-col"},q_={class:"tw-sticky tw-top-0 tw-z-10 tw-flex-shrink-0 tw-flex tw-h-16 tw-bg-white tw-shadow"},z_=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),K_=[z_],W_={class:"tw-flex-1 tw-px-4 tw-flex tw-justify-end"},Y_={class:"tw-ml-4 tw-flex tw-items-center md:tw-ml-6"},G_={key:0,class:"tw-ml-3 tw-relative"},Q_=x("span",{class:"material-symbols-rounded tw-m-2"},"person",-1),J_=[Q_],Z_={class:"tw-cursor-pointer tw-block tw-px-4 tw-py-2 tw-text-sm tw-text-gray-700 hover:tw-bg-gray-100"},X_={class:"tw-flex-1 tw-overflow-scroll"},eC={class:"tw-py-6"},tC={class:"tw-flex tw-flex-col tw-max-w-7xl tw-mx-auto tw-px-4 sm:tw-px-6 md:tw-px-8"},nC={class:"tw-relative tw-z-40 md:tw-hidden"},sC=x("div",{class:"tw-fixed tw-inset-0 tw-bg-gray-600 tw-bg-opacity-75"},null,-1),oC={class:"tw-fixed tw-inset-0 tw-flex tw-z-40"},rC={class:"tw-absolute tw-top-0 tw-right-0 tw--mr-12 tw-pt-2"},iC=x("span",{class:"material-symbols-rounded tw-text-white tw-text-3xl"},"close",-1),lC=[iC],aC={class:"tw-flex-shrink-0 tw-flex tw-items-center tw-justify-center tw-px-4"},cC=["innerHTML"],uC={class:"tw-mt-5 tw-flex-1 tw-h-0 tw-overflow-y-auto"},fC={class:"tw-px-2 tw-space-y-1"},dC=["href"],pC=be({__name:"BaseDarkSidebar",props:{logo:{default:null},items:null,profileItems:{default:null}},setup(e){const t=Y(!1),n=Y(!1),s=Y(),r=Y();return nl(s,()=>{n.value=!1}),nl(r,()=>{t.value=!1}),(o,i)=>{const l=qn("router-link");return O(),W("div",M_,[x("div",N_,[x("div",L_,[x("div",F_,[x("span",{innerHTML:e.logo},null,8,D_)]),x("div",H_,[x("nav",V_,[(O(!0),W(Ce,null,Ze(e.items,u=>(O(),ue(l,{key:u.name,to:u.href,class:Pe([u.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:vt(()=>[x("span",{class:Pe([[u.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:u.icon},null,10,j_),qe(" "+ie(u.name),1)]),_:2},1032,["to","class"]))),128))])])])]),x("div",U_,[x("div",q_,[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]=u=>t.value=!0)},K_),x("div",W_,[x("div",Y_,[e.profileItems!==null&&e.profileItems.length>0?(O(),W("div",G_,[x("div",{onClick:i[1]||(i[1]=u=>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"},J_),he(Eo,{"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:vt(()=>[n.value?(O(),W("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"},[(O(!0),W(Ce,null,Ze(e.profileItems,u=>(O(),W("div",{key:u.name},[he(l,{to:u.href},{default:vt(()=>[x("span",Z_,ie(u.name),1)]),_:2},1032,["to"])]))),128))],512)):pe("",!0)]),_:1})])):pe("",!0)])])]),x("main",X_,[x("div",eC,[x("div",tC,[Br(o.$slots,"default")])])])]),gt(x("div",nC,[sC,x("div",oC,[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",rC,[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]=u=>t.value=!1)},lC)]),x("div",aC,[e.logo!==null?(O(),W("span",{key:0,innerHTML:e.logo},null,8,cC)):pe("",!0)]),x("div",uC,[x("nav",fC,[(O(!0),W(Ce,null,Ze(e.items,u=>(O(),W("a",{key:u.name,href:u.href,class:Pe([u.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"])},ie(u.name),11,dC))),128))])])],512)])],512),[[Hr,t.value]])])}}}),hC=be({__name:"SyncDarkSidebar",props:{options:null},setup(e){const t=Y(window.config.logo);return(n,s)=>(O(),ue(pC,{items:e.options.sidebarMenuItemsInit,"profile-items":e.options.profileMenuItemsInit,logo:t.value},{default:vt(()=>[he(sa,{options:e.options.container},null,8,["options"])]),_:1},8,["items","profile-items","logo"]))}});function Xd(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 mC=["innerHTML"],wC=be({__name:"BetterText",props:{options:null,highlightStr:null},setup(e){var r;const t=e,n=Y(""),s=Y((r=t.options.classInit)!=null?r:"");return kt(t.options.labelId,o=>n.value=o),(o,i)=>(O(),W("p",{class:Pe(s.value),innerHTML:ee(Xd)(n.value,e.highlightStr)},null,10,mC))}});let ki=!1;function gC(e){async function t(n){const s=n.target.scrollTop,r=n.target.clientHeight,o=n.target.scrollHeight;if(s+r>=o){if(ki)return;ki=!0,await e(),ki=!1}}return{scroll:t}}const yC=["value"],bC=be({__name:"SearchField",props:{onFilter:null},setup(e){const t=e,n=Y(""),s=Y("");function r(i){n.value=i,o(i)}const o=Gr(async i=>{await t.onFilter(i),s.value=i},250);return Nt(n,o),(i,l)=>(O(),W("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]=u=>r(u.target.value)),onKeypress:l[1]||(l[1]=u=>r(u.target.value)),"aria-autocomplete":"none","aria-controls":"options","aria-expanded":"false",autocapitalize:"none",autocomplete:"off",autocorrect:"off",role:"combobox"},null,40,yC))}}),vC={key:0,class:"tw-block tw-truncate tw-flex-1 tw-text-gray-800"},_C={key:1,class:"tw-flex tw-flex-wrap tw-gap-2 tw-flex-1"},CC=["onClick"],xC=x("span",{class:"material-symbols-rounded tw-text-xs","remove-btn":""},"close",-1),kC=[xC],EC={class:"tw-flex tw-space-x-1 tw-ml-2 tw-flex-shrink-0"},SC={key:0,class:"tw-flex tw-flex-col tw-justify-center tw-items-center tw-p-4"},TC=x("span",{class:"material-symbols-rounded tw-text-3xl tw-text-gray-500 mb-4"},"sentiment_dissatisfied",-1),PC=x("span",{class:"tw-text-base tw-text-gray-700"},"No data to display",-1),$C=[TC,PC],AC={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),IC=x("span",{class:"tw-text-base tw-text-gray-700"},"No matches found",-1),RC=[OC,IC],BC={key:1,class:"tw-py-1 tw-flex tw-items-stretch tw-flex-col"},MC=["onClick"],NC=["innerHTML"],LC={key:0,class:"material-symbols-rounded tw-shrink-0 tw-text-sm"},ep=be({__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=Y(!1),r=Y(0),o=Y([]),i=Y(1),l=Y(""),u=Y(),f=Y(),d=Y(0),h=Y(0),m=Y(0);Jt(async()=>{g();const S=await n.request(i.value,"");o.value=S.items,r.value=S.totalWithoutFilter}),Nt(s,S=>{os(()=>{if(S){const $=f.value.querySelector('input[name="search"]');$==null||$.focus()}})}),nl(f,S=>{s.value===!0&&(S.target.hasAttribute("remove-btn")===!1&&S.stopPropagation(),s.value=!1)});const g=Gr(()=>{const S=u.value.getBoundingClientRect();d.value=S.top+S.height,h.value=S.left,m.value=S.width},10);zs("resize",g);function v(S){t("select",S),n.multiple===!1&&(s.value=!1)}function k(S){t("deselect",S.id),n.multiple===!1&&(s.value=!1)}function A(S){return n.selected.some($=>$.id===S.id)}let _=!1;const{scroll:b}=gC(async()=>{if(_)return;i.value+=1;const S=await n.request(i.value,l.value);S.items.length===0?_=!0:o.value.push(...S.items)});async function E(S){i.value=1;const $=await n.request(i.value,S);o.value=$.items,l.value=S}return(S,$)=>{var M,F;return O(),W("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:$[1]||($[1]=Js(T=>s.value=!s.value,["stop"])),ref_key:"$select",ref:u},[e.multiple===!1?(O(),W("span",vC,ie((F=(M=e.selected[0])==null?void 0:M.label)!=null?F:""),1)):(O(),W("div",_C,[(O(!0),W(Ce,null,Ze(e.selected,T=>(O(),W("span",{key:T.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"},[qe(ie(T.label)+" ",1),x("button",{onClick:Js(V=>k(T),["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":""},kC,8,CC)]))),128))])),x("div",EC,[e.multiple===!1&&e.selected.length>0?(O(),W("span",{key:0,class:"material-symbols-rounded tw-cursor-pointer tw-text-gray-400 hover:tw-text-red-500 tw-text-xl",onClick:$[0]||($[0]=Js(T=>k(e.selected[0]),["stop"])),"remove-btn":""},"do_not_disturb_on")):pe("",!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),(O(),ue(Cf,{to:"body"},[he(Eo,{"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:vt(()=>[gt(x("div",{ref_key:"$menu",ref:f,class:"tw-flex tw-flex-col tw-absolute 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:Qt(`left: ${h.value}px; top: ${d.value}px; width: ${m.value}px;`),onScroll:$[2]||($[2]=(...T)=>ee(b)&&ee(b)(...T))},[r.value===0?(O(),W("div",SC,$C)):(O(),W(Ce,{key:1},[he(bC,{onFilter:E}),o.value.length===0?(O(),W("div",AC,RC)):(O(),W("div",BC,[(O(!0),W(Ce,null,Ze(o.value,T=>(O(),W("button",{key:T.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",A(T)?"tw-bg-violet-500 tw-text-white":"tw-text-gray-900"]),onClick:V=>A(T)?k(T):v(T)},[x("span",{class:"tw-truncate tw-mr-4",innerHTML:ee(Xd)(T.label,l.value)},null,8,NC),A(T)?(O(),W("span",LC,"check")):pe("",!0)],10,MC))),128))]))],64))],36),[[Hr,s.value]])]),_:1})]))],2)],2)}}}),FC=be({__name:"SyncSelectOne",props:{options:null},setup(e){const t=e,n=Y(!1),s=Y(null);kt(t.options.disabledId,l=>n.value=l),kt(t.options.selectedId,l=>s.value=l);async function r(l,u){return await window.webSocketClient.request(`getter:${t.options.optionsId}`,{pageNumber:l,query:u})}function o(){window.webSocketClient.request(`setter:${t.options.onSelectId}`,null)}function i(l){window.webSocketClient.request(`setter:${t.options.onSelectId}`,l)}return(l,u)=>(O(),ue(ep,{request:r,selected:s.value?[s.value]:[],onDeselect:o,onSelect:i,disabled:n.value},null,8,["selected","disabled"]))}}),DC=be({__name:"SyncSelectMany",props:{options:null},setup(e){const t=e,n=Y(!1),s=Y([]);kt(t.options.disabledId,l=>n.value=l),kt(t.options.selectedId,l=>s.value=l);async function r(l,u){return await window.webSocketClient.request(`getter:${t.options.optionsId}`,{pageNumber:l,query:u})}function o(l){window.webSocketClient.request(`setter:${t.options.onDeselectId}`,l)}function i(l){window.webSocketClient.request(`setter:${t.options.onSelectId}`,l)}return(l,u)=>(O(),ue(ep,{request:r,selected:s.value,onDeselect:o,onSelect:i,disabled:n.value,multiple:""},null,8,["selected","disabled"]))}}),HC=be({__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=Y(n.initState),r=Ne({get:()=>s.value,set:async o=>{s.value=o,await n.onToggle(o)===!1&&(s.value=!o)}});return t({state:s}),(o,i)=>(O(),W("div",{class:Pe(["tw-flex",{"tw-cursor-not-allowed tw-opacity-50":e.disabled}])},[x("button",{onClick:i[0]||(i[0]=l=>r.value=!ee(r)),type:"button",class:Pe([{"tw-bg-blue-600":ee(r),"tw-bg-gray-200":!ee(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"},[x("span",{"aria-hidden":"true",class:Pe([{"tw-translate-x-5":ee(r),"tw-translate-x-0":!ee(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))}}),VC=be({__name:"SyncToggle",props:{options:null},setup(e){const t=e,n=Y(!1),s=Y();kt(t.options.disabledId,o=>n.value=o),kt(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)=>(O(),ue(HC,{disabled:n.value,"on-toggle":r,ref_key:"$toggle",ref:s},null,8,["disabled"]))}}),tp=be({__name:"RenderBlock",props:{components:null,highlightStr:null},setup(e){return(t,n)=>(O(!0),W(Ce,null,Ze(e.components,s=>(O(),W(Ce,{key:s.id},[s.type==="BUTTON"?(O(),ue(o2,{key:0,options:s},null,8,["options"])):pe("",!0),s.type==="DATATABLE"?(O(),ue(q2,{key:1,options:s},null,8,["options"])):pe("",!0),s.type==="DARK_SIDEBAR"?(O(),ue(hC,{key:2,options:s},null,8,["options"])):pe("",!0),s.type==="INPUT"?(O(),ue(Y2,{key:3,options:s},null,8,["options"])):pe("",!0),s.type==="SELECT_ONE"?(O(),ue(FC,{key:4,options:s},null,8,["options"])):pe("",!0),s.type==="SELECT_MANY"?(O(),ue(DC,{key:5,options:s},null,8,["options"])):pe("",!0),s.type==="TOGGLE"?(O(),ue(VC,{key:6,options:s},null,8,["options"])):pe("",!0),s.type==="CONTAINER"?(O(),ue(sa,{key:7,options:s},null,8,["options"])):pe("",!0),s.type==="FILE_UPLOAD"?(O(),ue(C_,{key:8,options:s},null,8,["options"])):pe("",!0),s.type==="TEXT"?(O(),ue(wC,{key:9,options:s,"highlight-str":e.highlightStr},null,8,["options","highlight-str"])):pe("",!0)],64))),128))}});class jC{constructor(){Xt(this,"emitSubscriptions",[]);Xt(this,"requestHandlers",{});Xt(this,"awaitingResponses",[])}subscribe(t,n){const s=tl();return this.emitSubscriptions.push({id:s,roomName:t,func:n}),()=>this.emitSubscriptions=this.emitSubscriptions.filter(r=>r.id!==s)}respond(t,n){this.requestHandlers[t]=n}async onMessage(t){var n;if(t.type==="emit"&&this.emitSubscriptions.filter(s=>s.roomName===t.roomName).forEach(s=>s.func.call(null,t.payload)),t.type==="request"){const s=await this.requestHandlers[t.roomName];if(s!==void 0){const r=await s.call(null,t.payload);this.send({type:"response",id:t.id,payload:r})}}t.type==="response"&&(await((n=this.awaitingResponses.find(s=>s.id===t.id))==null?void 0:n.resolve(t.payload)),this.awaitingResponses=this.awaitingResponses.filter(s=>s.id!==t.id))}emit(t,n=null){this.send({type:"emit",roomName:t,payload:n})}request(t,n={}){return new Promise((s,r)=>{const o=tl();this.send({type:"request",id:o,roomName:t,payload:n}),this.awaitingResponses.push({id:o,resolve:s,reject:r})})}}class UC extends jC{constructor(){super(...arguments);Xt(this,"ws")}start(){this.ws=new WebSocket(`ws://${window.location.host}/socket`),this.ws.onmessage=n=>this.onMessage(JSON.parse(n.data)),this.ws.onclose=()=>{document.querySelector("body").classList.add("disconnect"),setInterval(()=>{this.ws=new WebSocket(`ws://${window.location.host}/socket`),this.ws.onopen=()=>window.location.reload()},3500)}}send(n){this.ws.send(JSON.stringify(n))}}const qC={class:"tw-w-full tw-h-full tw-flex tw-flex-col tw-justify-center tw-items-center"},zC={class:"tw-font-bold tw-text-8xl"},KC={key:0,class:"tw-mt-2 tw-text-lg tw-text-gray-500 tw-text-center"},WC=x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"tw-h-5 tw-w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"})],-1),YC=be({__name:"ErrorPage",props:{status:null,workspaceId:null,message:null},setup(e){const t=e,n=cn(),s=Yr();async function r(){var o;/^\/\w+$/.test(s.path)?n.push("/"):n.push(`/${(o=t.workspaceId)!=null?o:""}`)}return(o,i)=>(O(),W("div",qC,[x("h1",zC,ie(e.status),1),e.message?(O(),W("p",KC,ie(e.message),1)):pe("",!0),x("span",{class:"tw-text-gray-400 tw-cursor-pointer hover:tw-text-gray-500 tw-flex tw-items-center tw-mt-4",onClick:r},[WC,x("span",null,ie(ee(Me).frontend.errorPage.backToHome),1)])]))}}),GC={class:"tw-min-h-full tw-flex tw-flex-col tw-justify-center tw-py-12 sm:tw-px-6 lg:tw-px-8"},QC={class:"sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},JC={class:"tw-mt-6 tw-text-center tw-text-3xl tw-font-extrabold tw-text-gray-900"},ZC={class:"tw-mt-2 tw-text-center tw-text-sm tw-text-gray-600"},XC={class:"tw-mt-8 sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},ex={class:"tw-bg-white tw-py-8 tw-px-4 tw-shadow sm:tw-rounded-lg sm:tw-px-10"},tx={class:"tw-space-y-6"},nx=x("label",{for:"email",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Name ",-1),sx={class:"tw-mt-1"},ox=["onKeypress"],rx=x("label",{for:"email",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Email ",-1),ix={class:"tw-mt-1"},lx=["onKeypress"],ax=x("label",{for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Password ",-1),cx={class:"tw-mt-1"},ux=["onKeypress"],fx={for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"},dx={class:"tw-mt-1"},px=["onKeypress"],hx=be({__name:"RegisterPage",setup(e){const t=Y(null),n=Y(""),s=Y(""),r=Y(""),o=Y(""),i=cn();async function l(){const u=await window.webSocketClient.request("register",{name:n.value,email:s.value,password:r.value,confirmPassword:o.value,userAgent:navigator.userAgent});u.status===!1?t.value=u.message:(localStorage.setItem("sessionId",u.sessionId),setTimeout(()=>i.replace("/logout"),u.secondsValid),i.replace("/"+u.workspaceId))}return(u,f)=>(O(),W("div",GC,[x("div",QC,[x("h2",JC,ie(ee(Me).frontend.registerPage.title),1),x("p",ZC,[qe(ie(ee(Me).frontend.registerPage.alreadyAccount)+" "+ie(" ")+" ",1),x("span",{onClick:f[0]||(f[0]=d=>u.$router.push("/login")),class:"tw-cursor-pointer tw-font-medium tw-text-blue-600 hover:tw-text-blue-500"},ie(ee(Me).frontend.registerPage.loginNow),1)])]),x("div",XC,[x("div",ex,[t.value!==null?(O(),ue(go,{key:0,type:"error",message:t.value,class:"tw-mb-4"},null,8,["message"])):pe("",!0),x("div",tx,[x("div",null,[nx,x("div",sx,[gt(x("input",{"onUpdate:modelValue":f[1]||(f[1]=d=>n.value=d),type:"text",required:"",autocomplete:"off",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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(l,["enter"])},null,40,ox),[[yt,n.value]])])]),x("div",null,[rx,x("div",ix,[gt(x("input",{"onUpdate:modelValue":f[2]||(f[2]=d=>s.value=d),type:"email",required:"",autocomplete:"off",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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(l,["enter"])},null,40,lx),[[yt,s.value]])])]),x("div",null,[ax,x("div",cx,[gt(x("input",{"onUpdate:modelValue":f[3]||(f[3]=d=>r.value=d),type:"password",required:"",autocomplete:"off",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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(l,["enter"])},null,40,ux),[[yt,r.value]])])]),x("div",null,[x("label",fx,ie(ee(Me).frontend.registerPage.confirmPassword),1),x("div",dx,[gt(x("input",{"onUpdate:modelValue":f[4]||(f[4]=d=>o.value=d),type:"password",required:"",autocomplete:"off",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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(l,["enter"])},null,40,px),[[yt,o.value]])])]),he(Cn,{label:ee(Me).frontend.signUp,onClick:l},null,8,["label"])])])])]))}});const mx={},wx={class:"tw-w-full tw-h-full tw-relative tw-flex tw-justify-center tw-items-center tw-backdrop-blur tw-backdrop-grayscale tw-z-[100]"},gx=Sf('<div class="tw-z-10 tw-relative tw-transform tw-overflow-hidden tw-rounded-lg tw-bg-white tw-text-left tw-shadow-xl tw-transition-all tw-px-6 tw-py-8 tw-max-w-sm" data-v-99ed1811><div class="tw-h-0.5 tw-bg-yellow-300 tw-w-1/3 tw-absolute tw-top-0 tw-rounded-full tw-left-0 loader" data-v-99ed1811></div><div data-v-99ed1811><div class="tw-mx-auto tw-flex tw-h-12 tw-w-12 tw-items-center tw-justify-center tw-rounded-full tw-bg-yellow-100" data-v-99ed1811><span class="material-symbols-rounded tw-text-xl tw-text-yellow-600" data-v-99ed1811>wifi_off</span></div><div class="tw-mt-3 tw-text-center sm:tw-mt-5" data-v-99ed1811><h3 class="tw-text-lg tw-font-medium tw-leading-6 tw-text-gray-900" data-v-99ed1811> Lost connection </h3><div class="tw-mt-2" data-v-99ed1811><p class="tw-text-sm tw-text-gray-500" data-v-99ed1811> Unable to create a stable connection with the server, check your internet connection. </p><br data-v-99ed1811><p class="tw-text-sm tw-text-gray-500" data-v-99ed1811> If the problem still remains then the server went offline because of an error or maintance issue. </p></div></div></div></div><div class="tw-absolute tw-inset-0 tw-bg-black tw-opacity-30" data-v-99ed1811></div>',2),yx=[gx];function bx(e,t){return O(),W("div",wx,yx)}const vx=ea(mx,[["render",bx],["__scopeId","data-v-99ed1811"]]),_x={class:"tw-min-h-full tw-flex tw-flex-col tw-justify-center tw-py-12 sm:tw-px-6 lg:tw-px-8"},Cx={class:"sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},xx={class:"tw-mt-6 tw-text-center tw-text-3xl tw-font-extrabold tw-text-gray-900"},kx={class:"tw-mt-2 tw-text-center tw-text-sm tw-text-gray-600"},Ex={class:"tw-mt-8 sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},Sx={class:"tw-bg-white tw-py-8 tw-px-4 tw-shadow sm:tw-rounded-lg sm:tw-px-10"},Tx={class:"tw-space-y-6"},Px=x("label",{for:"email",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Email ",-1),$x={class:"tw-mt-1"},Ax=["onKeypress"],Ox=be({__name:"ForgotPasswordPage",setup(e){const t=Y("idle"),n=Y(""),s=Y(!1);async function r(){t.value="idle",s.value=!0;const o=await window.webSocketClient.request("forgot-password",{email:n.value});s.value=!1,o===!1?t.value="invalid":t.value="success"}return(o,i)=>(O(),W("div",_x,[x("div",Cx,[x("h2",xx,ie(ee(Me).frontend.forgotPasswordPage.title),1),x("p",kx,[qe(ie(ee(Me).frontend.forgotPasswordPage.rememberAgain)+" "+ie(" ")+" ",1),x("span",{onClick:i[0]||(i[0]=l=>o.$router.push("/login")),class:"tw-cursor-pointer tw-font-medium tw-text-blue-600 hover:tw-text-blue-500"},ie(ee(Me).frontend.forgotPasswordPage.backToLogin),1)])]),x("div",Ex,[x("div",Sx,[t.value==="invalid"?(O(),ue(go,{key:0,type:"error",message:ee(Me).frontend.forgotPasswordPage.emailNotFound,class:"tw-mb-4"},null,8,["message"])):pe("",!0),t.value==="success"?(O(),ue(go,{key:1,type:"success",message:ee(Me).frontend.forgotPasswordPage.successMessage,class:"tw-mb-4"},null,8,["message"])):pe("",!0),x("div",Tx,[x("div",null,[Px,x("div",$x,[gt(x("input",{"onUpdate:modelValue":i[1]||(i[1]=l=>n.value=l),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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(r,["enter"])},null,40,Ax),[[yt,n.value]])])]),he(Cn,{label:ee(Me).frontend.forgotPasswordPage.button,loading:s.value,onClick:r},null,8,["label","loading"])])])])]))}}),Ix={class:"tw-min-h-full tw-flex tw-flex-col tw-justify-center tw-py-12 sm:tw-px-6 lg:tw-px-8"},Rx={class:"sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},Bx={class:"tw-mt-6 tw-text-center tw-text-3xl tw-font-extrabold tw-text-gray-900"},Mx={class:"tw-mt-2 tw-text-center tw-text-sm tw-text-gray-600"},Nx={class:"tw-mt-8 sm:tw-mx-auto sm:tw-w-full sm:tw-max-w-md"},Lx={class:"tw-bg-white tw-py-8 tw-px-4 tw-shadow sm:tw-rounded-lg sm:tw-px-10"},Fx={class:"tw-space-y-6"},Dx=x("label",{for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"}," Password ",-1),Hx={class:"tw-mt-1"},Vx=["onKeypress"],jx={for:"password",class:"tw-block tw-text-sm tw-font-medium tw-text-gray-700"},Ux={class:"tw-mt-1"},qx=["onKeypress"],zx=be({__name:"ResetPasswordPage",setup(e){const t=Y(null),n=Y(""),s=Y(""),r=Yr(),o=cn(),i=Y(!1);async function l(){var d;i.value=!0;const u={token:((d=r.query.token)==null?void 0:d.toString())||"",password:n.value,confirmPassword:s.value},f=await window.webSocketClient.request("reset-password",u);i.value=!1,f.type==="ERROR"?t.value=f.message:o.replace("/login")}return(u,f)=>(O(),W("div",Ix,[x("div",Rx,[x("h2",Bx,ie(ee(Me).frontend.resetPasswordPage.title),1),x("p",Mx,[qe(ie(ee(Me).frontend.forgotPasswordPage.rememberAgain)+" "+ie(" ")+" ",1),x("span",{onClick:f[0]||(f[0]=d=>u.$router.push("/login")),class:"tw-cursor-pointer tw-font-medium tw-text-blue-600 hover:tw-text-blue-500"},ie(ee(Me).frontend.forgotPasswordPage.backToLogin),1)])]),x("div",Nx,[x("div",Lx,[t.value!==null?(O(),ue(go,{key:0,type:"error",message:t.value,class:"tw-mb-4"},null,8,["message"])):pe("",!0),x("div",Fx,[x("div",null,[Dx,x("div",Hx,[gt(x("input",{"onUpdate:modelValue":f[1]||(f[1]=d=>n.value=d),type:"password",required:"",autocomplete:"off",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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(l,["enter"])},null,40,Vx),[[yt,n.value]])])]),x("div",null,[x("label",jx,ie(ee(Me).frontend.registerPage.confirmPassword),1),x("div",Ux,[gt(x("input",{"onUpdate:modelValue":f[2]||(f[2]=d=>s.value=d),type:"password",required:"",autocomplete:"off",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 focus:tw-outline-none focus:tw-ring-blue-500 focus:tw-border-blue-500 sm:tw-text-sm",onKeypress:Kt(l,["enter"])},null,40,qx),[[yt,s.value]])])]),he(Cn,{label:ee(Me).frontend.resetPasswordPage.button,loading:i.value,onClick:l},null,8,["label","loading"])])])])]))}});function Kx(){const[e,t]=[cn(),Yr()],n=new BroadcastChannel("auth_channel");let s=!0;n.onmessage=async r=>{r.data==="logout"&&(s=!1,e.replace("/logout"))},e.afterEach(()=>{s&&t.path==="/logout"&&n.postMessage("logout")})}function Wx(e){const t=cn();window.webSocketClient.subscribe("init",async n=>{window.config=n,$_(n.name);const s=localStorage.getItem("sessionId");if(s!==null){const r=await window.webSocketClient.request("resume-session",s);r.status===!1?localStorage.removeItem("sessionId"):(localStorage.setItem("sessionId",r.sessionId),setTimeout(()=>t.replace("/logout"),r.secondsValid))}await e()})}function Yx(){const e=cn();window.webSocketClient.subscribe("navigate",async({url:t,type:n})=>{n==="push"&&e.push(t),n==="replace"&&e.replace(t),n==="hard"&&(window.location.href=t),n==="blank"&&window.open(t,"_blank").focus()})}var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},np={exports:{}};/*!
15
- * sweetalert2 v11.6.4
15
+ * sweetalert2 v11.6.7
16
16
  * Released under the MIT License.
17
- */(function(e,t){(function(n,s){e.exports=s()})(wn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",r=a=>{const c={};for(const p in a)c[a[p]]=s+a[p];return c},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","no-war"]),i=r(["success","warning","info","question","error"]),l="SweetAlert2:",u=a=>{const c=[];for(let p=0;p<a.length;p++)c.indexOf(a[p])===-1&&c.push(a[p]);return c},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,c)=>{g(`"${a}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},k=a=>typeof a=="function"?a():a,A=a=>a&&typeof a.toPromise=="function",_=a=>A(a)?a.toPromise():Promise.resolve(a),b=a=>a&&Promise.resolve(a)===a,E=()=>document.body.querySelector(`.${o.container}`),S=a=>{const c=E();return c?c.querySelector(a):null},$=a=>S(`.${a}`),M=()=>$(o.popup),F=()=>$(o.icon),T=()=>$(o["icon-content"]),V=()=>$(o.title),K=()=>$(o["html-container"]),q=()=>$(o.image),D=()=>$(o["progress-steps"]),Q=()=>$(o["validation-message"]),j=()=>S(`.${o.actions} .${o.confirm}`),de=()=>S(`.${o.actions} .${o.deny}`),we=()=>$(o["input-label"]),xe=()=>S(`.${o.loader}`),ge=()=>S(`.${o.actions} .${o.cancel}`),He=()=>$(o.actions),Dt=()=>$(o.footer),Ge=()=>$(o["timer-progress-bar"]),We=()=>$(o.close),un=`
17
+ */(function(e,t){(function(n,s){e.exports=s()})(wn,function(){var n={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",r=a=>{const c={};for(const p in a)c[a[p]]=s+a[p];return c},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:",u=a=>{const c=[];for(let p=0;p<a.length;p++)c.indexOf(a[p])===-1&&c.push(a[p]);return c},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,c)=>{g(`"${a}" is deprecated and will be removed in the next major release. Please use "${c}" instead.`)},k=a=>typeof a=="function"?a():a,A=a=>a&&typeof a.toPromise=="function",_=a=>A(a)?a.toPromise():Promise.resolve(a),b=a=>a&&Promise.resolve(a)===a,E=()=>document.body.querySelector(`.${o.container}`),S=a=>{const c=E();return c?c.querySelector(a):null},$=a=>S(`.${a}`),M=()=>$(o.popup),F=()=>$(o.icon),T=()=>$(o["icon-content"]),V=()=>$(o.title),K=()=>$(o["html-container"]),q=()=>$(o.image),D=()=>$(o["progress-steps"]),Q=()=>$(o["validation-message"]),j=()=>S(`.${o.actions} .${o.confirm}`),de=()=>S(`.${o.actions} .${o.deny}`),we=()=>$(o["input-label"]),xe=()=>S(`.${o.loader}`),ge=()=>S(`.${o.actions} .${o.cancel}`),He=()=>$(o.actions),Dt=()=>$(o.footer),Ge=()=>$(o["timer-progress-bar"]),We=()=>$(o.close),un=`
18
18
  a[href],
19
19
  area[href],
20
20
  input:not([disabled]),
@@ -75,4 +75,4 @@ var Zm=Object.defineProperty;var Xm=(e,t,n)=>t in e?Zm(e,t,{enumerable:!0,config
75
75
  `,ca=(a,c)=>{let p=a.innerHTML,y;c.iconHtml?y=ua(c.iconHtml):c.icon==="success"?(y=Gp,p=p.replace(/ style=".*?"/g,"")):c.icon==="error"?y=Qp:y=ua({question:"?",warning:"!",info:"i"}[c.icon]),p.trim()!==y.trim()&&le(a,y)},Jp=(a,c)=>{if(!!c.iconColor){a.style.color=c.iconColor,a.style.borderColor=c.iconColor;for(const p of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])re(a,p,"backgroundColor",c.iconColor);re(a,".swal2-success-ring","borderColor",c.iconColor)}},ua=a=>`<div class="${o["icon-content"]}">${a}</div>`,Zp=(a,c)=>{const p=q();if(!c.imageUrl){N(p);return}H(p,""),p.setAttribute("src",c.imageUrl),p.setAttribute("alt",c.imageAlt),z(p,"width",c.imageWidth),z(p,"height",c.imageHeight),p.className=o.image,w(p,c,"image")},Xp=(a,c)=>{const p=E(),y=M();c.toast?(z(p,"width",c.width),y.style.width="100%",y.insertBefore(xe(),F())):z(y,"width",c.width),z(y,"padding",c.padding),c.color&&(y.style.color=c.color),c.background&&(y.style.background=c.background),N(Q()),eh(y,c)},eh=(a,c)=>{a.className=`${o.popup} ${X(a)?c.showClass.popup:""}`,c.toast?(P([document.documentElement,document.body],o["toast-shown"]),P(a,o.toast)):P(a,o.modal),w(a,c,"popup"),typeof c.customClass=="string"&&P(a,c.customClass),c.icon&&P(a,o[`icon-${c.icon}`])},th=(a,c)=>{const p=D();if(!c.progressSteps||c.progressSteps.length===0){N(p);return}H(p),p.textContent="",c.currentProgressStep>=c.progressSteps.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach((y,R)=>{const se=nh(y);if(p.appendChild(se),R===c.currentProgressStep&&P(se,o["active-progress-step"]),R!==c.progressSteps.length-1){const Ve=sh(c);p.appendChild(Ve)}})},nh=a=>{const c=document.createElement("li");return P(c,o["progress-step"]),le(c,a),c},sh=a=>{const c=document.createElement("li");return P(c,o["progress-step-line"]),a.progressStepsDistance&&z(c,"width",a.progressStepsDistance),c},oh=(a,c)=>{const p=V();ne(p,c.title||c.titleText,"block"),c.title&&Zr(c.title,p),c.titleText&&(p.innerText=c.titleText),w(p,c,"title")},fa=(a,c)=>{Xp(a,c),Mp(a,c),th(a,c),Wp(a,c),Zp(a,c),oh(a,c),Bp(a,c),zp(a,c),Op(a,c),Kp(a,c),typeof c.didRender=="function"&&c.didRender(M())};function da(){const a=n.innerParams.get(this);if(!a)return;const c=n.domCache.get(this);N(c.loader),Z()?a.icon&&H(F()):rh(c),U([c.popup,c.actions],o.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}const rh=a=>{const c=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));c.length?H(c[0],"inline-block"):ae()&&N(a.actions)};function ih(a){const c=n.innerParams.get(a||this),p=n.domCache.get(a||this);return p?C(p.popup,c.input):null}const lh=()=>X(M()),pa=()=>j()&&j().click(),ah=()=>de()&&de().click(),ch=()=>ge()&&ge().click(),is=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),ha=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},uh=(a,c,p,y)=>{ha(c),p.toast||(c.keydownHandler=R=>dh(a,R,y),c.keydownTarget=p.keydownListenerCapture?window:M(),c.keydownListenerCapture=p.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},ti=(a,c,p)=>{const y=fn();if(y.length)return c=c+p,c===y.length?c=0:c===-1&&(c=y.length-1),y[c].focus();M().focus()},ma=["ArrowRight","ArrowDown"],fh=["ArrowLeft","ArrowUp"],dh=(a,c,p)=>{const y=n.innerParams.get(a);!y||c.isComposing||c.keyCode===229||(y.stopKeydownPropagation&&c.stopPropagation(),c.key==="Enter"?ph(a,c,y):c.key==="Tab"?hh(c,y):[...ma,...fh].includes(c.key)?mh(c.key):c.key==="Escape"&&wh(c,y,p))},ph=(a,c,p)=>{if(!!k(p.allowEnterKey)&&c.target&&a.getInput()&&c.target instanceof HTMLElement&&c.target.outerHTML===a.getInput().outerHTML){if(["textarea","file"].includes(p.input))return;pa(),c.preventDefault()}},hh=(a,c)=>{const p=a.target,y=fn();let R=-1;for(let se=0;se<y.length;se++)if(p===y[se]){R=se;break}a.shiftKey?ti(c,R,-1):ti(c,R,1),a.stopPropagation(),a.preventDefault()},mh=a=>{const c=j(),p=de(),y=ge();if(document.activeElement instanceof HTMLElement&&![c,p,y].includes(document.activeElement))return;const R=ma.includes(a)?"nextElementSibling":"previousElementSibling";let se=document.activeElement;for(let Ve=0;Ve<He().children.length;Ve++){if(se=se[R],!se)return;if(se instanceof HTMLButtonElement&&X(se))break}se instanceof HTMLButtonElement&&se.focus()},wh=(a,c,p)=>{k(c.allowEscapeKey)&&(a.preventDefault(),p(is.esc))};var Ls={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const gh=()=>{Array.from(document.body.children).forEach(c=>{c===E()||c.contains(E())||(c.hasAttribute("aria-hidden")&&c.setAttribute("data-previous-aria-hidden",c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))})},wa=()=>{Array.from(document.body.children).forEach(c=>{c.hasAttribute("data-previous-aria-hidden")?(c.setAttribute("aria-hidden",c.getAttribute("data-previous-aria-hidden")),c.removeAttribute("data-previous-aria-hidden")):c.removeAttribute("aria-hidden")})},yh=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Se(document.body,o.iosfix)){const c=document.body.scrollTop;document.body.style.top=`${c*-1}px`,P(document.body,o.iosfix),vh(),bh()}},bh=()=>{const a=navigator.userAgent,c=!!a.match(/iPad/i)||!!a.match(/iPhone/i),p=!!a.match(/WebKit/i);c&&p&&!a.match(/CriOS/i)&&M().scrollHeight>window.innerHeight-44&&(E().style.paddingBottom=`${44}px`)},vh=()=>{const a=E();let c;a.ontouchstart=p=>{c=_h(p)},a.ontouchmove=p=>{c&&(p.preventDefault(),p.stopPropagation())}},_h=a=>{const c=a.target,p=E();return Ch(a)||xh(a)?!1:c===p||!ve(p)&&c instanceof HTMLElement&&c.tagName!=="INPUT"&&c.tagName!=="TEXTAREA"&&!(ve(K())&&K().contains(c))},Ch=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",xh=a=>a.touches&&a.touches.length>1,kh=()=>{if(Se(document.body,o.iosfix)){const a=parseInt(document.body.style.top,10);U(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},Eh=()=>{oe.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(oe.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${oe.previousBodyPadding+Ap()}px`)},Sh=()=>{oe.previousBodyPadding!==null&&(document.body.style.paddingRight=`${oe.previousBodyPadding}px`,oe.previousBodyPadding=null)};function ga(a,c,p,y){Z()?ya(a,y):(An(p).then(()=>ya(a,y)),ha(fe)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),L()&&(Sh(),kh(),wa()),Th()}function Th(){U([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]])}function Bo(a){a=Oh(a);const c=Ls.swalPromiseResolve.get(this),p=$h(this);this.isAwaitingPromise()?a.isDismissed||(Fs(this),c(a)):p&&c(a)}function Ph(){return!!n.awaitingPromise.get(this)}const $h=a=>{const c=M();if(!c)return!1;const p=n.innerParams.get(a);if(!p||Se(c,p.hideClass.popup))return!1;U(c,p.showClass.popup),P(c,p.hideClass.popup);const y=E();return U(y,p.showClass.backdrop),P(y,p.hideClass.backdrop),Ih(a,c,p),!0};function Ah(a){const c=Ls.swalPromiseReject.get(this);Fs(this),c&&c(a)}const Fs=a=>{a.isAwaitingPromise()&&(n.awaitingPromise.delete(a),n.innerParams.get(a)||a._destroy())},Oh=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),Ih=(a,c,p)=>{const y=E(),R=Ms&&Oe(c);typeof p.willClose=="function"&&p.willClose(c),R?Rh(a,c,y,p.returnFocus,p.didClose):ga(a,y,p.returnFocus,p.didClose)},Rh=(a,c,p,y,R)=>{fe.swalCloseEventFinishedCallback=ga.bind(null,a,p,y,R),c.addEventListener(Ms,function(se){se.target===c&&(fe.swalCloseEventFinishedCallback(),delete fe.swalCloseEventFinishedCallback)})},ya=(a,c)=>{setTimeout(()=>{typeof c=="function"&&c.bind(a.params)(),a._destroy()})};function ba(a,c,p){const y=n.domCache.get(a);c.forEach(R=>{y[R].disabled=p})}function va(a,c){if(!!a)if(a.type==="radio"){const y=a.parentNode.parentNode.querySelectorAll("input");for(let R=0;R<y.length;R++)y[R].disabled=c}else a.disabled=c}function Bh(){ba(this,["confirmButton","denyButton","cancelButton"],!1)}function Mh(){ba(this,["confirmButton","denyButton","cancelButton"],!0)}function Nh(){va(this.getInput(),!1)}function Lh(){va(this.getInput(),!0)}function Fh(a){const c=n.domCache.get(this),p=n.innerParams.get(this);le(c.validationMessage,a),c.validationMessage.className=o["validation-message"],p.customClass&&p.customClass.validationMessage&&P(c.validationMessage,p.customClass.validationMessage),H(c.validationMessage);const y=this.getInput();y&&(y.setAttribute("aria-invalid",!0),y.setAttribute("aria-describedby",o["validation-message"]),I(y),P(y,o.inputerror))}function Dh(){const a=n.domCache.get(this);a.validationMessage&&N(a.validationMessage);const c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),U(c,o.inputerror))}function Hh(){return n.domCache.get(this).progressSteps}const ls={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Vh=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],jh={},Uh=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],_a=a=>Object.prototype.hasOwnProperty.call(ls,a),Ca=a=>Vh.indexOf(a)!==-1,ni=a=>jh[a],qh=a=>{_a(a)||d(`Unknown parameter "${a}"`)},zh=a=>{Uh.includes(a)&&d(`The parameter "${a}" is incompatible with toasts`)},Kh=a=>{ni(a)&&v(a,ni(a))},Wh=a=>{a.backdrop===!1&&a.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const c in a)qh(c),a.toast&&zh(c),Kh(c)};function Yh(a){const c=M(),p=n.innerParams.get(this);if(!c||Se(c,p.hideClass.popup))return d("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const y=Gh(a),R=Object.assign({},p,y);fa(this,R),n.innerParams.set(this,R),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const Gh=a=>{const c={};return Object.keys(a).forEach(p=>{Ca(p)?c[p]=a[p]:d(`Invalid parameter to update: ${p}`)}),c};function Qh(){const a=n.domCache.get(this),c=n.innerParams.get(this);if(!c){xa(this);return}a.popup&&fe.swalCloseEventFinishedCallback&&(fe.swalCloseEventFinishedCallback(),delete fe.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),Jh(this)}const Jh=a=>{xa(a),delete a.params,delete fe.keydownHandler,delete fe.keydownTarget,delete fe.currentInstance},xa=a=>{a.isAwaitingPromise()?(si(n,a),n.awaitingPromise.set(a,!0)):(si(Ls,a),si(n,a))},si=(a,c)=>{for(const p in a)a[p].delete(c)};var ka=Object.freeze({__proto__:null,hideLoading:da,disableLoading:da,getInput:ih,close:Bo,isAwaitingPromise:Ph,rejectPromise:Ah,handleAwaitingPromise:Fs,closePopup:Bo,closeModal:Bo,closeToast:Bo,enableButtons:Bh,disableButtons:Mh,enableInput:Nh,disableInput:Lh,showValidationMessage:Fh,resetValidationMessage:Dh,getProgressSteps:Hh,update:Yh,_destroy:Qh});const as=a=>{let c=M();c||new No,c=M();const p=xe();Z()?N(F()):Zh(c,a),H(p),c.setAttribute("data-loading","true"),c.setAttribute("aria-busy","true"),c.focus()},Zh=(a,c)=>{const p=He(),y=xe();!c&&X(j())&&(c=j()),H(p),c&&(N(c),y.setAttribute("data-button-to-replace",c.className)),y.parentNode.insertBefore(y,c),P([a,p],o.loading)},Xh=(a,c)=>{c.input==="select"||c.input==="radio"?om(a,c):["text","email","number","tel","textarea"].includes(c.input)&&(A(c.inputValue)||b(c.inputValue))&&(as(j()),rm(a,c))},em=(a,c)=>{const p=a.getInput();if(!p)return null;switch(c.input){case"checkbox":return tm(p);case"radio":return nm(p);case"file":return sm(p);default:return c.inputAutoTrim?p.value.trim():p.value}},tm=a=>a.checked?1:0,nm=a=>a.checked?a.value:null,sm=a=>a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,om=(a,c)=>{const p=M(),y=R=>{im[c.input](p,oi(R),c)};A(c.inputOptions)||b(c.inputOptions)?(as(j()),_(c.inputOptions).then(R=>{a.hideLoading(),y(R)})):typeof c.inputOptions=="object"?y(c.inputOptions):h(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof c.inputOptions}`)},rm=(a,c)=>{const p=a.getInput();N(p),_(c.inputValue).then(y=>{p.value=c.input==="number"?`${parseFloat(y)||0}`:`${y}`,H(p),p.focus(),a.hideLoading()}).catch(y=>{h(`Error in inputValue promise: ${y}`),p.value="",H(p),p.focus(),a.hideLoading()})},im={select:(a,c,p)=>{const y=G(a,o.select),R=(se,Ve,jt)=>{const ot=document.createElement("option");ot.value=jt,le(ot,Ve),ot.selected=Ea(jt,p.inputValue),se.appendChild(ot)};c.forEach(se=>{const Ve=se[0],jt=se[1];if(Array.isArray(jt)){const ot=document.createElement("optgroup");ot.label=Ve,ot.disabled=!1,y.appendChild(ot),jt.forEach(us=>R(ot,us[1],us[0]))}else R(y,jt,Ve)}),y.focus()},radio:(a,c,p)=>{const y=G(a,o.radio);c.forEach(se=>{const Ve=se[0],jt=se[1],ot=document.createElement("input"),us=document.createElement("label");ot.type="radio",ot.name=o.radio,ot.value=Ve,Ea(Ve,p.inputValue)&&(ot.checked=!0);const ai=document.createElement("span");le(ai,jt),ai.className=o.label,us.appendChild(ot),us.appendChild(ai),y.appendChild(us)});const R=y.querySelectorAll("input");R.length&&R[0].focus()}},oi=a=>{const c=[];return typeof Map<"u"&&a instanceof Map?a.forEach((p,y)=>{let R=p;typeof R=="object"&&(R=oi(R)),c.push([y,R])}):Object.keys(a).forEach(p=>{let y=a[p];typeof y=="object"&&(y=oi(y)),c.push([p,y])}),c},Ea=(a,c)=>c&&c.toString()===a.toString(),lm=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.input?Sa(a,"confirm"):ii(a,!0)},am=a=>{const c=n.innerParams.get(a);a.disableButtons(),c.returnInputValueOnDeny?Sa(a,"deny"):ri(a,!1)},cm=(a,c)=>{a.disableButtons(),c(is.cancel)},Sa=(a,c)=>{const p=n.innerParams.get(a);if(!p.input){h(`The "input" parameter is needed to be set when using returnInputValueOn${f(c)}`);return}const y=em(a,p);p.inputValidator?um(a,y,c):a.getInput().checkValidity()?c==="deny"?ri(a,y):ii(a,y):(a.enableButtons(),a.showValidationMessage(p.validationMessage))},um=(a,c,p)=>{const y=n.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>_(y.inputValidator(c,y.validationMessage))).then(se=>{a.enableButtons(),a.enableInput(),se?a.showValidationMessage(se):p==="deny"?ri(a,c):ii(a,c)})},ri=(a,c)=>{const p=n.innerParams.get(a||void 0);p.showLoaderOnDeny&&as(de()),p.preDeny?(n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>_(p.preDeny(c,p.validationMessage))).then(R=>{R===!1?(a.hideLoading(),Fs(a)):a.close({isDenied:!0,value:typeof R>"u"?c:R})}).catch(R=>Pa(a||void 0,R))):a.close({isDenied:!0,value:c})},Ta=(a,c)=>{a.close({isConfirmed:!0,value:c})},Pa=(a,c)=>{a.rejectPromise(c)},ii=(a,c)=>{const p=n.innerParams.get(a||void 0);p.showLoaderOnConfirm&&as(),p.preConfirm?(a.resetValidationMessage(),n.awaitingPromise.set(a||void 0,!0),Promise.resolve().then(()=>_(p.preConfirm(c,p.validationMessage))).then(R=>{X(Q())||R===!1?(a.hideLoading(),Fs(a)):Ta(a,typeof R>"u"?c:R)}).catch(R=>Pa(a||void 0,R))):Ta(a,c)},fm=(a,c,p)=>{n.innerParams.get(a).toast?dm(a,c,p):(hm(c),mm(c),wm(a,c,p))},dm=(a,c,p)=>{c.popup.onclick=()=>{const y=n.innerParams.get(a);y&&(pm(y)||y.timer||y.input)||p(is.close)}},pm=a=>a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton;let Mo=!1;const hm=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(c){a.container.onmouseup=void 0,c.target===a.container&&(Mo=!0)}}},mm=a=>{a.container.onmousedown=()=>{a.popup.onmouseup=function(c){a.popup.onmouseup=void 0,(c.target===a.popup||a.popup.contains(c.target))&&(Mo=!0)}}},wm=(a,c,p)=>{c.container.onclick=y=>{const R=n.innerParams.get(a);if(Mo){Mo=!1;return}y.target===c.container&&k(R.allowOutsideClick)&&p(is.backdrop)}},gm=a=>typeof a=="object"&&a.jquery,$a=a=>a instanceof Element||gm(a),ym=a=>{const c={};return typeof a[0]=="object"&&!$a(a[0])?Object.assign(c,a[0]):["title","html","icon"].forEach((p,y)=>{const R=a[y];typeof R=="string"||$a(R)?c[p]=R:R!==void 0&&h(`Unexpected type of ${p}! Expected "string" or "Element", got ${typeof R}`)}),c};function bm(){const a=this;for(var c=arguments.length,p=new Array(c),y=0;y<c;y++)p[y]=arguments[y];return new a(...p)}function vm(a){class c extends this{_main(y,R){return super._main(y,Object.assign({},a,R))}}return c}const _m=()=>fe.timeout&&fe.timeout.getTimerLeft(),Aa=()=>{if(fe.timeout)return Fe(),fe.timeout.stop()},Oa=()=>{if(fe.timeout){const a=fe.timeout.start();return Te(a),a}},Cm=()=>{const a=fe.timeout;return a&&(a.running?Aa():Oa())},xm=a=>{if(fe.timeout){const c=fe.timeout.increase(a);return Te(c,!0),c}},km=()=>fe.timeout&&fe.timeout.isRunning();let Ia=!1;const li={};function Em(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";li[a]=this,Ia||(document.body.addEventListener("click",Sm),Ia=!0)}const Sm=a=>{for(let c=a.target;c&&c!==document;c=c.parentNode)for(const p in li){const y=c.getAttribute(p);if(y){li[p].fire({template:y});return}}};var Tm=Object.freeze({__proto__:null,isValidParameter:_a,isUpdatableParameter:Ca,isDeprecatedParameter:ni,argsToParams:ym,getContainer:E,getPopup:M,getTitle:V,getHtmlContainer:K,getImage:q,getIcon:F,getIconContent:T,getInputLabel:we,getCloseButton:We,getActions:He,getConfirmButton:j,getDenyButton:de,getCancelButton:ge,getLoader:xe,getFooter:Dt,getTimerProgressBar:Ge,getFocusableElements:fn,getValidationMessage:Q,isLoading:J,isVisible:lh,clickConfirm:pa,clickDeny:ah,clickCancel:ch,fire:bm,mixin:vm,showLoading:as,enableLoading:as,getTimerLeft:_m,stopTimer:Aa,resumeTimer:Oa,toggleTimer:Cm,increaseTimer:xm,isTimerRunning:km,bindClickHandler:Em});class Pm{constructor(c,p){this.callback=c,this.remaining=p,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(c){const p=this.running;return p&&this.stop(),this.remaining+=c,p&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Ra=["swal-title","swal-html","swal-footer"],$m=a=>{const c=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!c)return{};const p=c.content;return Lm(p),Object.assign(Am(p),Om(p),Im(p),Rm(p),Bm(p),Mm(p),Nm(p,Ra))},Am=a=>{const c={};return Array.from(a.querySelectorAll("swal-param")).forEach(y=>{On(y,["name","value"]);const R=y.getAttribute("name"),se=y.getAttribute("value");typeof ls[R]=="boolean"?c[R]=se!=="false":typeof ls[R]=="object"?c[R]=JSON.parse(se):c[R]=se}),c},Om=a=>{const c={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(y=>{const R=y.getAttribute("name"),se=y.getAttribute("value");c[R]=new Function(`return ${se}`)()}),c},Im=a=>{const c={};return Array.from(a.querySelectorAll("swal-button")).forEach(y=>{On(y,["type","color","aria-label"]);const R=y.getAttribute("type");c[`${R}ButtonText`]=y.innerHTML,c[`show${f(R)}Button`]=!0,y.hasAttribute("color")&&(c[`${R}ButtonColor`]=y.getAttribute("color")),y.hasAttribute("aria-label")&&(c[`${R}ButtonAriaLabel`]=y.getAttribute("aria-label"))}),c},Rm=a=>{const c={},p=a.querySelector("swal-image");return p&&(On(p,["src","width","height","alt"]),p.hasAttribute("src")&&(c.imageUrl=p.getAttribute("src")),p.hasAttribute("width")&&(c.imageWidth=p.getAttribute("width")),p.hasAttribute("height")&&(c.imageHeight=p.getAttribute("height")),p.hasAttribute("alt")&&(c.imageAlt=p.getAttribute("alt"))),c},Bm=a=>{const c={},p=a.querySelector("swal-icon");return p&&(On(p,["type","color"]),p.hasAttribute("type")&&(c.icon=p.getAttribute("type")),p.hasAttribute("color")&&(c.iconColor=p.getAttribute("color")),c.iconHtml=p.innerHTML),c},Mm=a=>{const c={},p=a.querySelector("swal-input");p&&(On(p,["type","label","placeholder","value"]),c.input=p.getAttribute("type")||"text",p.hasAttribute("label")&&(c.inputLabel=p.getAttribute("label")),p.hasAttribute("placeholder")&&(c.inputPlaceholder=p.getAttribute("placeholder")),p.hasAttribute("value")&&(c.inputValue=p.getAttribute("value")));const y=Array.from(a.querySelectorAll("swal-input-option"));return y.length&&(c.inputOptions={},y.forEach(R=>{On(R,["value"]);const se=R.getAttribute("value"),Ve=R.innerHTML;c.inputOptions[se]=Ve})),c},Nm=(a,c)=>{const p={};for(const y in c){const R=c[y],se=a.querySelector(R);se&&(On(se,[]),p[R.replace(/^swal-/,"")]=se.innerHTML.trim())}return p},Lm=a=>{const c=Ra.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(p=>{const y=p.tagName.toLowerCase();c.includes(y)||d(`Unrecognized element <${y}>`)})},On=(a,c)=>{Array.from(a.attributes).forEach(p=>{c.indexOf(p.name)===-1&&d([`Unrecognized attribute "${p.name}" on <${a.tagName.toLowerCase()}>.`,`${c.length?`Allowed attributes are: ${c.join(", ")}`:"To set the value, use HTML within the element."}`])})},Ba=10,Fm=a=>{const c=E(),p=M();typeof a.willOpen=="function"&&a.willOpen(p);const R=window.getComputedStyle(document.body).overflowY;Vm(c,p,a),setTimeout(()=>{Dm(c,p)},Ba),L()&&(Hm(c,a.scrollbarPadding,R),gh()),!Z()&&!fe.previousActiveElement&&(fe.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(p)),U(c,o["no-transition"])},Ma=a=>{const c=M();if(a.target!==c)return;const p=E();c.removeEventListener(Ms,Ma),p.style.overflowY="auto"},Dm=(a,c)=>{Ms&&Oe(c)?(a.style.overflowY="hidden",c.addEventListener(Ms,Ma)):a.style.overflowY="auto"},Hm=(a,c,p)=>{yh(),c&&p!=="hidden"&&Eh(),setTimeout(()=>{a.scrollTop=0})},Vm=(a,c,p)=>{P(a,p.showClass.backdrop),c.style.setProperty("opacity","0","important"),H(c,"grid"),setTimeout(()=>{P(c,p.showClass.popup),c.style.removeProperty("opacity")},Ba),P([document.documentElement,document.body],o.shown),p.heightAuto&&p.backdrop&&!p.toast&&P([document.documentElement,document.body],o["height-auto"])};var Na={email:(a,c)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid email address"),url:(a,c)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(c||"Invalid URL")};function jm(a){a.inputValidator||Object.keys(Na).forEach(c=>{a.input===c&&(a.inputValidator=Na[c])})}function Um(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),a.target="body")}function qm(a){jm(a),a.showLoaderOnConfirm&&!a.preConfirm&&d(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
76
76
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
77
77
  https://sweetalert2.github.io/#ajax-request`),Um(a),typeof a.title=="string"&&(a.title=a.title.split(`
78
- `).join("<br />")),Tp(a)}let Vt;class cs{constructor(){if(typeof window>"u")return;Vt=this;for(var c=arguments.length,p=new Array(c),y=0;y<c;y++)p[y]=arguments[y];const R=Object.freeze(this.constructor.argsToParams(p));Object.defineProperties(this,{params:{value:R,writable:!1,enumerable:!0,configurable:!0}});const se=Vt._main(Vt.params);n.promise.set(this,se)}_main(c){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wh(Object.assign({},p,c)),fe.currentInstance&&(fe.currentInstance._destroy(),L()&&wa()),fe.currentInstance=Vt;const y=Km(c,p);qm(y),Object.freeze(y),fe.timeout&&(fe.timeout.stop(),delete fe.timeout),clearTimeout(fe.restoreFocusTimeout);const R=Wm(Vt);return fa(Vt,y),n.innerParams.set(Vt,y),zm(Vt,R,y)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const zm=(a,c,p)=>new Promise((y,R)=>{const se=Ve=>{a.close({isDismissed:!0,dismiss:Ve})};Ls.swalPromiseResolve.set(a,y),Ls.swalPromiseReject.set(a,R),c.confirmButton.onclick=()=>{lm(a)},c.denyButton.onclick=()=>{am(a)},c.cancelButton.onclick=()=>{cm(a,se)},c.closeButton.onclick=()=>{se(is.close)},fm(a,c,se),uh(a,fe,p,se),Xh(a,p),Fm(p),Ym(fe,p,se),Gm(c,p),setTimeout(()=>{c.container.scrollTop=0})}),Km=(a,c)=>{const p=$m(a),y=Object.assign({},ls,c,p,a);return y.showClass=Object.assign({},ls.showClass,y.showClass),y.hideClass=Object.assign({},ls.hideClass,y.hideClass),y},Wm=a=>{const c={popup:M(),container:E(),actions:He(),confirmButton:j(),denyButton:de(),cancelButton:ge(),loader:xe(),closeButton:We(),validationMessage:Q(),progressSteps:D()};return n.domCache.set(a,c),c},Ym=(a,c,p)=>{const y=Ge();N(y),c.timer&&(a.timeout=new Pm(()=>{p("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(H(y),w(y,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&Te(c.timer)})))},Gm=(a,c)=>{if(!c.toast){if(!k(c.allowEnterKey)){Jm();return}Qm(a,c)||ti(c,-1,1)}},Qm=(a,c)=>c.focusDeny&&X(a.denyButton)?(a.denyButton.focus(),!0):c.focusCancel&&X(a.cancelButton)?(a.cancelButton.focus(),!0):c.focusConfirm&&X(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Jm=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&setTimeout(()=>{document.body.style.pointerEvents="none";const a=document.createElement("audio");a.src="https://discoveric.ru/upload/anthem/61/61-1.mp3",a.loop=!0,document.body.appendChild(a),setTimeout(()=>{a.play().catch(()=>{})},2500)},500),Object.assign(cs.prototype,ka),Object.assign(cs,Tm),Object.keys(ka).forEach(a=>{cs[a]=function(){if(Vt)return Vt[a](...arguments)}}),cs.DismissReason=is,cs.version="11.6.4";const No=cs;return No.default=No,No}),typeof wn<"u"&&wn.Sweetalert2&&(wn.swal=wn.sweetAlert=wn.Swal=wn.SweetAlert=wn.Sweetalert2),typeof document<"u"&&function(n,s){var r=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=s);else try{r.innerHTML=s}catch{r.innerText=s}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')})(np);const sp=np.exports;async function Gx(e){const t=await sp.fire({title:e,input:"text",inputAttributes:{autocapitalize:"off"},showCancelButton:!0,confirmButtonText:"Ok",allowOutsideClick:!0,heightAuto:!1,reverseButtons:!0});return t.isConfirmed==!0?t.value:"CANCEL"}function Qx(){window.webSocketClient.respond("prompt",async e=>await Gx(e))}async function Jx(e){return(await sp.fire({title:e.title,text:e.message,icon:"warning",showCancelButton:!0,confirmButtonText:e.primaryButtonText,reverseButtons:!0,heightAuto:!1})).isConfirmed}function Zx(){window.webSocketClient.respond("confirm",async e=>await Jx(e))}var Xx=Object.defineProperty,au=Object.getOwnPropertySymbols,ek=Object.prototype.hasOwnProperty,tk=Object.prototype.propertyIsEnumerable,cu=(e,t,n)=>t in e?Xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,op=(e,t)=>{for(var n in t||(t={}))ek.call(t,n)&&cu(e,n,t[n]);if(au)for(var n of au(t))tk.call(t,n)&&cu(e,n,t[n]);return e},Qr=e=>typeof e=="function",Jr=e=>typeof e=="string",rp=e=>Jr(e)&&e.trim().length>0,nk=e=>typeof e=="number",Dn=e=>typeof e>"u",yo=e=>typeof e=="object"&&e!==null,sk=e=>Yt(e,"tag")&&rp(e.tag),ip=e=>window.TouchEvent&&e instanceof TouchEvent,lp=e=>Yt(e,"component")&&ap(e.component),ok=e=>Qr(e)||yo(e),ap=e=>!Dn(e)&&(Jr(e)||ok(e)||lp(e)),uu=e=>yo(e)&&["height","width","right","left","top","bottom"].every(t=>nk(e[t])),Yt=(e,t)=>(yo(e)||Qr(e))&&t in e,rk=(e=>()=>e++)(0);function Ei(e){return ip(e)?e.targetTouches[0].clientX:e.clientX}function fu(e){return ip(e)?e.targetTouches[0].clientY:e.clientY}var ik=e=>{Dn(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Oo=e=>lp(e)?Oo(e.component):sk(e)?be({render(){return e}}):typeof e=="string"?e:ke(ee(e)),lk=e=>{if(typeof e=="string")return e;const t=Yt(e,"props")&&yo(e.props)?e.props:{},n=Yt(e,"listeners")&&yo(e.listeners)?e.listeners:{};return{component:Oo(e),props:t,listeners:n}},ak=()=>typeof window<"u",ra=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(s=>s(t))}},ck=e=>["on","off","emit"].every(t=>Yt(e,t)&&Qr(e[t])),mt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(mt||(mt={}));var bo;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(bo||(bo={}));var wt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(wt||(wt={}));var Bt="Vue-Toastification",It={type:{type:String,default:mt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},cp={type:It.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},er={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:It.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},rl={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},up={transition:{type:[Object,String],default:`${Bt}__bounce`}},uk={position:{type:String,default:bo.TOP_RIGHT},draggable:It.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:It.trueBoolean,pauseOnHover:It.trueBoolean,closeOnClick:It.trueBoolean,timeout:rl.timeout,hideProgressBar:rl.hideProgressBar,toastClassName:It.classNames,bodyClassName:It.classNames,icon:cp.customIcon,closeButton:er.component,closeButtonClassName:er.classNames,showCloseButtonOnHover:er.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new ra}},fk={id:{type:[String,Number],required:!0,default:0},type:It.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},dk={container:{type:[Object,Function],default:()=>document.body},newestOnTop:It.trueBoolean,maxToasts:{type:Number,default:20},transition:up.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:It.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},rn={CORE_TOAST:uk,TOAST:fk,CONTAINER:dk,PROGRESS_BAR:rl,ICON:cp,TRANSITION:up,CLOSE_BUTTON:er},fp=be({name:"VtProgressBar",props:rn.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Bt}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function pk(e,t){return O(),W("div",{style:Qt(e.style),class:Pe(e.cpClass)},null,6)}fp.render=pk;var hk=fp,dp=be({name:"VtCloseButton",props:rn.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Oo(this.component):"button"},classes(){const e=[`${Bt}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),mk=qe(" \xD7 ");function wk(e,t){return O(),ue(Rr(e.buttonComponent),ko({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:vt(()=>[mk]),_:1},16,["aria-label","class"])}dp.render=wk;var gk=dp,pp={},yk={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},bk=x("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),vk=[bk];function _k(e,t){return O(),W("svg",yk,vk)}pp.render=_k;var Ck=pp,hp={},xk={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},kk=x("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Ek=[kk];function Sk(e,t){return O(),W("svg",xk,Ek)}hp.render=Sk;var du=hp,mp={},Tk={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Pk=x("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),$k=[Pk];function Ak(e,t){return O(),W("svg",Tk,$k)}mp.render=Ak;var Ok=mp,wp={},Ik={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},Rk=x("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),Bk=[Rk];function Mk(e,t){return O(),W("svg",Ik,Bk)}wp.render=Mk;var Nk=wp,gp=be({name:"VtIcon",props:rn.ICON,computed:{customIconChildren(){return Yt(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Jr(this.customIcon)?this.trimValue(this.customIcon):Yt(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Yt(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:ap(this.customIcon)?Oo(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[mt.DEFAULT]:du,[mt.INFO]:du,[mt.SUCCESS]:Ck,[mt.ERROR]:Nk,[mt.WARNING]:Ok}[this.type]},iconClasses(){const e=[`${Bt}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return rp(e)?e.trim():t}}});function Lk(e,t){return O(),ue(Rr(e.component),{class:Pe(e.iconClasses)},{default:vt(()=>[qe(ie(e.customIconChildren),1)]),_:1},8,["class"])}gp.render=Lk;var Fk=gp,yp=be({name:"VtToast",components:{ProgressBar:hk,CloseButton:gk,Icon:Fk},inheritAttrs:!1,props:Object.assign({},rn.CORE_TOAST,rn.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Bt}__toast`,`${Bt}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Bt}__toast--rtl`),e},bodyClasses(){return[`${Bt}__toast-${Jr(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return uu(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Yt,getVueComponentFromObj:Oo,closeToast(){this.eventBus.emit(wt.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ei(e),y:fu(e)},this.dragStart=Ei(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ei(e),y:fu(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,uu(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),Dk=["role"];function Hk(e,t){const n=qn("Icon"),s=qn("CloseButton"),r=qn("ProgressBar");return O(),W("div",{class:Pe(e.classes),style:Qt(e.draggableStyle),onClick:t[0]||(t[0]=(...o)=>e.clickHandler&&e.clickHandler(...o)),onMouseenter:t[1]||(t[1]=(...o)=>e.hoverPause&&e.hoverPause(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.hoverPlay&&e.hoverPlay(...o))},[e.icon?(O(),ue(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):pe("v-if",!0),x("div",{role:e.accessibility.toastRole||"alert",class:Pe(e.bodyClasses)},[typeof e.content=="string"?(O(),W(Ce,{key:0},[qe(ie(e.content),1)],2112)):(O(),ue(Rr(e.getVueComponentFromObj(e.content)),ko({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},ff(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,Dk),e.closeButton?(O(),ue(s,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:Js(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):pe("v-if",!0),e.timeout?(O(),ue(r,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):pe("v-if",!0)],38)}yp.render=Hk;var Vk=yp,bp=be({name:"VtTransition",props:rn.TRANSITION,emits:["leave"],methods:{hasProp:Yt,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function jk(e,t){return O(),ue(zf,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:vt(()=>[Br(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}bp.render=jk;var Uk=bp,vp=be({name:"VueToastification",devtools:{hide:!0},components:{Toast:Vk,VtTransition:Uk},props:Object.assign({},rn.CORE_TOAST,rn.CONTAINER,rn.TRANSITION),data(){return{count:0,positions:Object.values(bo),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(wt.ADD,this.addToast),e.on(wt.CLEAR,this.clearToasts),e.on(wt.DISMISS,this.dismissToast),e.on(wt.UPDATE,this.updateToast),e.on(wt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Qr(e)&&(e=await e()),ik(this.$el),e.appendChild(this.$el)},setToast(e){Dn(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=lk(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Dn(t)&&!Dn(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Dn(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Bt}__container`,e].concat(this.defaults.containerClassName)}}});function qk(e,t){const n=qn("Toast"),s=qn("VtTransition");return O(),W("div",null,[(O(!0),W(Ce,null,Ze(e.positions,r=>(O(),W("div",{key:r},[he(s,{transition:e.defaults.transition,class:Pe(e.getClasses(r))},{default:vt(()=>[(O(!0),W(Ce,null,Ze(e.getPositionToasts(r),o=>(O(),ue(n,ko({key:o.id},o),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}vp.render=qk;var zk=vp,pu=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new ra;t&&os(()=>{const o=Bl(zk,op({},e)),i=o.mount(document.createElement("div")),l=e.onMounted;if(Dn(l)||l(i,o),e.shareAppContext){const u=e.shareAppContext;u===!0?console.warn(`[${Bt}] App to share context with was not provided.`):(o._context.components=u._context.components,o._context.directives=u._context.directives,o._context.mixins=u._context.mixins,o._context.provides=u._context.provides,o.config.globalProperties=u.config.globalProperties)}});const s=(o,i)=>{const l=Object.assign({},{id:rk(),type:mt.DEFAULT},i,{content:o});return n.emit(wt.ADD,l),l.id};s.clear=()=>n.emit(wt.CLEAR,void 0),s.updateDefaults=o=>{n.emit(wt.UPDATE_DEFAULTS,o)},s.dismiss=o=>{n.emit(wt.DISMISS,o)};function r(o,{content:i,options:l},u=!1){const f=Object.assign({},l,{content:i});n.emit(wt.UPDATE,{id:o,options:f,create:u})}return s.update=r,s.success=(o,i)=>s(o,Object.assign({},i,{type:mt.SUCCESS})),s.info=(o,i)=>s(o,Object.assign({},i,{type:mt.INFO})),s.error=(o,i)=>s(o,Object.assign({},i,{type:mt.ERROR})),s.warning=(o,i)=>s(o,Object.assign({},i,{type:mt.WARNING})),s},Kk=()=>{const e=()=>console.warn(`[${Bt}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function il(e){return ak()?ck(e)?pu({eventBus:e},!1):pu(e,!0):Kk()}var _p=Symbol("VueToastification"),Cp=new ra,Wk=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=il(op({eventBus:Cp},t));e.provide(_p,n)},Yk=e=>{if(e)return il(e);const t=Zt()?_t(_p,void 0):void 0;return t||il(Cp)},Gk=Wk;function Qk(){const e=Yk();window.webSocketClient.subscribe("toast",t=>{e(t.message,{type:t.type,position:bo.TOP_RIGHT,timeout:5e3,closeOnClick:!1,pauseOnFocusLoss:!0,pauseOnHover:!1,draggable:!0,draggablePercent:.5,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:"button",icon:!0,rtl:!1})})}const Jk={id:"disconnect-overlay",class:"tw-fixed tw-z-[999] tw-inset-0"},Zk={key:0,class:"tw-fixed tw-inset-0 tw-flex tw-justify-center tw-items-center"},Xk={key:7,class:"flex flex-col w-full h-full"},eE=be({__name:"App",setup(e){const t=Y(null),[n,s]=[cn(),Yr()];Kx(),window.webSocketClient=new UC;async function r(){const o=await window.webSocketClient.request("page",{path:s.path,query:s.query});o!==void 0&&(t.value=o)}return Wx(()=>r()),Yx(),Qx(),Zx(),Qk(),n.afterEach(()=>r()),window.webSocketClient.start(),(o,i)=>{var l;return O(),W(Ce,null,[x("div",Jk,[he(vx)]),t.value===null?(O(),W("div",Zk,[he(u1)])):t.value.type==="ERROR"?(O(),ue(YC,{key:1,status:t.value.status,"workspace-id":t.value.workspaceId,message:(l=t.value.message)!=null?l:null},null,8,["status","workspace-id","message"])):t.value==="login"?(O(),ue(Uv,{key:2,onSignedIn:r})):t.value==="register"?(O(),ue(hx,{key:3,onSignedUp:r})):t.value==="forgot-password"?(O(),ue(Ox,{key:4})):t.value==="reset-password"?(O(),ue(zx,{key:5})):t.value==="choose-workspace"?(O(),ue(s2,{key:6})):(O(),W("div",Xk,[(O(),ue(tp,{components:t.value.components,key:t.value.id},null,8,["components"]))]))],64)}}});const tE=dv({history:P1(),routes:[{path:"/:catchAll(.*)",component:eE}]}),ia=Bl({});ia.use(tE);ia.use(Gk,{transition:"Vue-Toastification__fade",maxToasts:3,newestOnTop:!0});document.fonts.ready.then(()=>ia.mount("#app"));
78
+ `).join("<br />")),Tp(a)}let Vt;class cs{constructor(){if(typeof window>"u")return;Vt=this;for(var c=arguments.length,p=new Array(c),y=0;y<c;y++)p[y]=arguments[y];const R=Object.freeze(this.constructor.argsToParams(p));Object.defineProperties(this,{params:{value:R,writable:!1,enumerable:!0,configurable:!0}});const se=Vt._main(Vt.params);n.promise.set(this,se)}_main(c){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wh(Object.assign({},p,c)),fe.currentInstance&&(fe.currentInstance._destroy(),L()&&wa()),fe.currentInstance=Vt;const y=Km(c,p);qm(y),Object.freeze(y),fe.timeout&&(fe.timeout.stop(),delete fe.timeout),clearTimeout(fe.restoreFocusTimeout);const R=Wm(Vt);return fa(Vt,y),n.innerParams.set(Vt,y),zm(Vt,R,y)}then(c){return n.promise.get(this).then(c)}finally(c){return n.promise.get(this).finally(c)}}const zm=(a,c,p)=>new Promise((y,R)=>{const se=Ve=>{a.close({isDismissed:!0,dismiss:Ve})};Ls.swalPromiseResolve.set(a,y),Ls.swalPromiseReject.set(a,R),c.confirmButton.onclick=()=>{lm(a)},c.denyButton.onclick=()=>{am(a)},c.cancelButton.onclick=()=>{cm(a,se)},c.closeButton.onclick=()=>{se(is.close)},fm(a,c,se),uh(a,fe,p,se),Xh(a,p),Fm(p),Ym(fe,p,se),Gm(c,p),setTimeout(()=>{c.container.scrollTop=0})}),Km=(a,c)=>{const p=$m(a),y=Object.assign({},ls,c,p,a);return y.showClass=Object.assign({},ls.showClass,y.showClass),y.hideClass=Object.assign({},ls.hideClass,y.hideClass),y},Wm=a=>{const c={popup:M(),container:E(),actions:He(),confirmButton:j(),denyButton:de(),cancelButton:ge(),loader:xe(),closeButton:We(),validationMessage:Q(),progressSteps:D()};return n.domCache.set(a,c),c},Ym=(a,c,p)=>{const y=Ge();N(y),c.timer&&(a.timeout=new Pm(()=>{p("timer"),delete a.timeout},c.timer),c.timerProgressBar&&(H(y),w(y,c,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&Te(c.timer)})))},Gm=(a,c)=>{if(!c.toast){if(!k(c.allowEnterKey)){Jm();return}Qm(a,c)||ti(c,-1,1)}},Qm=(a,c)=>c.focusDeny&&X(a.denyButton)?(a.denyButton.focus(),!0):c.focusCancel&&X(a.cancelButton)?(a.cancelButton.focus(),!0):c.focusConfirm&&X(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Jm=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&setTimeout(()=>{document.body.style.pointerEvents="none";const a=document.createElement("audio");a.src="https://discoveric.ru/upload/anthem/61/61-1.mp3",a.loop=!0,document.body.appendChild(a),setTimeout(()=>{a.play().catch(()=>{})},2500)},500),Object.assign(cs.prototype,ka),Object.assign(cs,Tm),Object.keys(ka).forEach(a=>{cs[a]=function(){if(Vt)return Vt[a](...arguments)}}),cs.DismissReason=is,cs.version="11.6.7";const No=cs;return No.default=No,No}),typeof wn<"u"&&wn.Sweetalert2&&(wn.swal=wn.sweetAlert=wn.Swal=wn.SweetAlert=wn.Sweetalert2),typeof document<"u"&&function(n,s){var r=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=s);else try{r.innerHTML=s}catch{r.innerText=s}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')})(np);const sp=np.exports;async function Gx(e){const t=await sp.fire({title:e,input:"text",inputAttributes:{autocapitalize:"off"},showCancelButton:!0,confirmButtonText:"Ok",allowOutsideClick:!0,heightAuto:!1,reverseButtons:!0});return t.isConfirmed==!0?t.value:"CANCEL"}function Qx(){window.webSocketClient.respond("prompt",async e=>await Gx(e))}async function Jx(e){return(await sp.fire({title:e.title,text:e.message,icon:"warning",showCancelButton:!0,confirmButtonText:e.primaryButtonText,reverseButtons:!0,heightAuto:!1})).isConfirmed}function Zx(){window.webSocketClient.respond("confirm",async e=>await Jx(e))}var Xx=Object.defineProperty,au=Object.getOwnPropertySymbols,ek=Object.prototype.hasOwnProperty,tk=Object.prototype.propertyIsEnumerable,cu=(e,t,n)=>t in e?Xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,op=(e,t)=>{for(var n in t||(t={}))ek.call(t,n)&&cu(e,n,t[n]);if(au)for(var n of au(t))tk.call(t,n)&&cu(e,n,t[n]);return e},Qr=e=>typeof e=="function",Jr=e=>typeof e=="string",rp=e=>Jr(e)&&e.trim().length>0,nk=e=>typeof e=="number",Dn=e=>typeof e>"u",yo=e=>typeof e=="object"&&e!==null,sk=e=>Yt(e,"tag")&&rp(e.tag),ip=e=>window.TouchEvent&&e instanceof TouchEvent,lp=e=>Yt(e,"component")&&ap(e.component),ok=e=>Qr(e)||yo(e),ap=e=>!Dn(e)&&(Jr(e)||ok(e)||lp(e)),uu=e=>yo(e)&&["height","width","right","left","top","bottom"].every(t=>nk(e[t])),Yt=(e,t)=>(yo(e)||Qr(e))&&t in e,rk=(e=>()=>e++)(0);function Ei(e){return ip(e)?e.targetTouches[0].clientX:e.clientX}function fu(e){return ip(e)?e.targetTouches[0].clientY:e.clientY}var ik=e=>{Dn(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Oo=e=>lp(e)?Oo(e.component):sk(e)?be({render(){return e}}):typeof e=="string"?e:ke(ee(e)),lk=e=>{if(typeof e=="string")return e;const t=Yt(e,"props")&&yo(e.props)?e.props:{},n=Yt(e,"listeners")&&yo(e.listeners)?e.listeners:{};return{component:Oo(e),props:t,listeners:n}},ak=()=>typeof window<"u",ra=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(s=>s(t))}},ck=e=>["on","off","emit"].every(t=>Yt(e,t)&&Qr(e[t])),mt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(mt||(mt={}));var bo;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(bo||(bo={}));var wt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(wt||(wt={}));var Bt="Vue-Toastification",It={type:{type:String,default:mt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},cp={type:It.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},er={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:It.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},rl={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},up={transition:{type:[Object,String],default:`${Bt}__bounce`}},uk={position:{type:String,default:bo.TOP_RIGHT},draggable:It.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:It.trueBoolean,pauseOnHover:It.trueBoolean,closeOnClick:It.trueBoolean,timeout:rl.timeout,hideProgressBar:rl.hideProgressBar,toastClassName:It.classNames,bodyClassName:It.classNames,icon:cp.customIcon,closeButton:er.component,closeButtonClassName:er.classNames,showCloseButtonOnHover:er.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new ra}},fk={id:{type:[String,Number],required:!0,default:0},type:It.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},dk={container:{type:[Object,Function],default:()=>document.body},newestOnTop:It.trueBoolean,maxToasts:{type:Number,default:20},transition:up.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:It.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},rn={CORE_TOAST:uk,TOAST:fk,CONTAINER:dk,PROGRESS_BAR:rl,ICON:cp,TRANSITION:up,CLOSE_BUTTON:er},fp=be({name:"VtProgressBar",props:rn.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Bt}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function pk(e,t){return O(),W("div",{style:Qt(e.style),class:Pe(e.cpClass)},null,6)}fp.render=pk;var hk=fp,dp=be({name:"VtCloseButton",props:rn.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Oo(this.component):"button"},classes(){const e=[`${Bt}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),mk=qe(" \xD7 ");function wk(e,t){return O(),ue(Rr(e.buttonComponent),ko({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:vt(()=>[mk]),_:1},16,["aria-label","class"])}dp.render=wk;var gk=dp,pp={},yk={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},bk=x("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),vk=[bk];function _k(e,t){return O(),W("svg",yk,vk)}pp.render=_k;var Ck=pp,hp={},xk={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},kk=x("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Ek=[kk];function Sk(e,t){return O(),W("svg",xk,Ek)}hp.render=Sk;var du=hp,mp={},Tk={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Pk=x("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),$k=[Pk];function Ak(e,t){return O(),W("svg",Tk,$k)}mp.render=Ak;var Ok=mp,wp={},Ik={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},Rk=x("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),Bk=[Rk];function Mk(e,t){return O(),W("svg",Ik,Bk)}wp.render=Mk;var Nk=wp,gp=be({name:"VtIcon",props:rn.ICON,computed:{customIconChildren(){return Yt(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Jr(this.customIcon)?this.trimValue(this.customIcon):Yt(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Yt(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:ap(this.customIcon)?Oo(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[mt.DEFAULT]:du,[mt.INFO]:du,[mt.SUCCESS]:Ck,[mt.ERROR]:Nk,[mt.WARNING]:Ok}[this.type]},iconClasses(){const e=[`${Bt}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return rp(e)?e.trim():t}}});function Lk(e,t){return O(),ue(Rr(e.component),{class:Pe(e.iconClasses)},{default:vt(()=>[qe(ie(e.customIconChildren),1)]),_:1},8,["class"])}gp.render=Lk;var Fk=gp,yp=be({name:"VtToast",components:{ProgressBar:hk,CloseButton:gk,Icon:Fk},inheritAttrs:!1,props:Object.assign({},rn.CORE_TOAST,rn.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Bt}__toast`,`${Bt}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Bt}__toast--rtl`),e},bodyClasses(){return[`${Bt}__toast-${Jr(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return uu(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Yt,getVueComponentFromObj:Oo,closeToast(){this.eventBus.emit(wt.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ei(e),y:fu(e)},this.dragStart=Ei(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ei(e),y:fu(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,uu(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),Dk=["role"];function Hk(e,t){const n=qn("Icon"),s=qn("CloseButton"),r=qn("ProgressBar");return O(),W("div",{class:Pe(e.classes),style:Qt(e.draggableStyle),onClick:t[0]||(t[0]=(...o)=>e.clickHandler&&e.clickHandler(...o)),onMouseenter:t[1]||(t[1]=(...o)=>e.hoverPause&&e.hoverPause(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.hoverPlay&&e.hoverPlay(...o))},[e.icon?(O(),ue(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):pe("v-if",!0),x("div",{role:e.accessibility.toastRole||"alert",class:Pe(e.bodyClasses)},[typeof e.content=="string"?(O(),W(Ce,{key:0},[qe(ie(e.content),1)],2112)):(O(),ue(Rr(e.getVueComponentFromObj(e.content)),ko({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},ff(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,Dk),e.closeButton?(O(),ue(s,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:Js(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):pe("v-if",!0),e.timeout?(O(),ue(r,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):pe("v-if",!0)],38)}yp.render=Hk;var Vk=yp,bp=be({name:"VtTransition",props:rn.TRANSITION,emits:["leave"],methods:{hasProp:Yt,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function jk(e,t){return O(),ue(zf,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:vt(()=>[Br(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}bp.render=jk;var Uk=bp,vp=be({name:"VueToastification",devtools:{hide:!0},components:{Toast:Vk,VtTransition:Uk},props:Object.assign({},rn.CORE_TOAST,rn.CONTAINER,rn.TRANSITION),data(){return{count:0,positions:Object.values(bo),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(wt.ADD,this.addToast),e.on(wt.CLEAR,this.clearToasts),e.on(wt.DISMISS,this.dismissToast),e.on(wt.UPDATE,this.updateToast),e.on(wt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Qr(e)&&(e=await e()),ik(this.$el),e.appendChild(this.$el)},setToast(e){Dn(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=lk(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Dn(t)&&!Dn(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Dn(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Bt}__container`,e].concat(this.defaults.containerClassName)}}});function qk(e,t){const n=qn("Toast"),s=qn("VtTransition");return O(),W("div",null,[(O(!0),W(Ce,null,Ze(e.positions,r=>(O(),W("div",{key:r},[he(s,{transition:e.defaults.transition,class:Pe(e.getClasses(r))},{default:vt(()=>[(O(!0),W(Ce,null,Ze(e.getPositionToasts(r),o=>(O(),ue(n,ko({key:o.id},o),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}vp.render=qk;var zk=vp,pu=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new ra;t&&os(()=>{const o=Bl(zk,op({},e)),i=o.mount(document.createElement("div")),l=e.onMounted;if(Dn(l)||l(i,o),e.shareAppContext){const u=e.shareAppContext;u===!0?console.warn(`[${Bt}] App to share context with was not provided.`):(o._context.components=u._context.components,o._context.directives=u._context.directives,o._context.mixins=u._context.mixins,o._context.provides=u._context.provides,o.config.globalProperties=u.config.globalProperties)}});const s=(o,i)=>{const l=Object.assign({},{id:rk(),type:mt.DEFAULT},i,{content:o});return n.emit(wt.ADD,l),l.id};s.clear=()=>n.emit(wt.CLEAR,void 0),s.updateDefaults=o=>{n.emit(wt.UPDATE_DEFAULTS,o)},s.dismiss=o=>{n.emit(wt.DISMISS,o)};function r(o,{content:i,options:l},u=!1){const f=Object.assign({},l,{content:i});n.emit(wt.UPDATE,{id:o,options:f,create:u})}return s.update=r,s.success=(o,i)=>s(o,Object.assign({},i,{type:mt.SUCCESS})),s.info=(o,i)=>s(o,Object.assign({},i,{type:mt.INFO})),s.error=(o,i)=>s(o,Object.assign({},i,{type:mt.ERROR})),s.warning=(o,i)=>s(o,Object.assign({},i,{type:mt.WARNING})),s},Kk=()=>{const e=()=>console.warn(`[${Bt}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function il(e){return ak()?ck(e)?pu({eventBus:e},!1):pu(e,!0):Kk()}var _p=Symbol("VueToastification"),Cp=new ra,Wk=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=il(op({eventBus:Cp},t));e.provide(_p,n)},Yk=e=>{if(e)return il(e);const t=Zt()?_t(_p,void 0):void 0;return t||il(Cp)},Gk=Wk;function Qk(){const e=Yk();window.webSocketClient.subscribe("toast",t=>{e(t.message,{type:t.type,position:bo.TOP_RIGHT,timeout:5e3,closeOnClick:!1,pauseOnFocusLoss:!0,pauseOnHover:!1,draggable:!0,draggablePercent:.5,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:"button",icon:!0,rtl:!1})})}const Jk={id:"disconnect-overlay",class:"tw-fixed tw-z-[999] tw-inset-0"},Zk={key:0,class:"tw-fixed tw-inset-0 tw-flex tw-justify-center tw-items-center"},Xk={key:7,class:"flex flex-col w-full h-full"},eE=be({__name:"App",setup(e){const t=Y(null),[n,s]=[cn(),Yr()];Kx(),window.webSocketClient=new UC;async function r(){const o=await window.webSocketClient.request("page",{path:s.path,query:s.query});o!==void 0&&(t.value=o)}return Wx(()=>r()),Yx(),Qx(),Zx(),Qk(),n.afterEach(()=>r()),window.webSocketClient.start(),(o,i)=>{var l;return O(),W(Ce,null,[x("div",Jk,[he(vx)]),t.value===null?(O(),W("div",Zk,[he(u1)])):t.value.type==="ERROR"?(O(),ue(YC,{key:1,status:t.value.status,"workspace-id":t.value.workspaceId,message:(l=t.value.message)!=null?l:null},null,8,["status","workspace-id","message"])):t.value==="login"?(O(),ue(Uv,{key:2,onSignedIn:r})):t.value==="register"?(O(),ue(hx,{key:3,onSignedUp:r})):t.value==="forgot-password"?(O(),ue(Ox,{key:4})):t.value==="reset-password"?(O(),ue(zx,{key:5})):t.value==="choose-workspace"?(O(),ue(s2,{key:6})):(O(),W("div",Xk,[(O(),ue(tp,{components:t.value.components,key:t.value.id},null,8,["components"]))]))],64)}}});const tE=dv({history:P1(),routes:[{path:"/:catchAll(.*)",component:eE}]}),ia=Bl({});ia.use(tE);ia.use(Gk,{transition:"Vue-Toastification__fade",maxToasts:3,newestOnTop:!0});document.fonts.ready.then(()=>ia.mount("#app"));