mirror of
https://gh.wpcy.net/https://github.com/LJPc-solutions/freescout-calendar-module.git
synced 2026-07-16 10:23:07 +08:00
17 lines
76 KiB
JavaScript
17 lines
76 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/**
|
||
* @vue/shared v3.4.23
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function Ln(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const G={},rt=[],me=()=>{},Jo=()=>!1,Qt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Dn=e=>e.startsWith("onUpdate:"),re=Object.assign,Kn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Yo=Object.prototype.hasOwnProperty,H=(e,t)=>Yo.call(e,t),R=Array.isArray,it=e=>Tt(e)==="[object Map]",dt=e=>Tt(e)==="[object Set]",hs=e=>Tt(e)==="[object Date]",k=e=>typeof e=="function",te=e=>typeof e=="string",Me=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",Gs=e=>(J(e)||k(e))&&k(e.then)&&k(e.catch),Js=Object.prototype.toString,Tt=e=>Js.call(e),Xo=e=>Tt(e).slice(8,-1),Ys=e=>Tt(e)==="[object Object]",Bn=e=>te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vt=Ln(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),en=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zo=/-(\w)/g,ut=en(e=>e.replace(Zo,(t,n)=>n?n.toUpperCase():"")),Qo=/\B([A-Z])/g,ht=en(e=>e.replace(Qo,"-$1").toLowerCase()),Xs=en(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=en(e=>e?`on${Xs(e)}`:""),De=(e,t)=>!Object.is(e,t),Lt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Zs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ps;const Qs=()=>ps||(ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=te(s)?sl(s):tn(s);if(o)for(const l in o)t[l]=o[l]}return t}else if(te(e)||J(e))return e}const el=/;(?![^(]*\))/g,tl=/:([^]+)/,nl=/\/\*[^]*?\*\//g;function sl(e){const t={};return e.replace(nl,"").split(el).forEach(n=>{if(n){const s=n.split(tl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function nn(e){let t="";if(te(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const s=nn(e[n]);s&&(t+=s+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ol="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ll=Ln(ol);function eo(e){return!!e||e===""}function rl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=nt(e[s],t[s]);return n}function nt(e,t){if(e===t)return!0;let n=hs(e),s=hs(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Me(e),s=Me(t),n||s)return e===t;if(n=R(e),s=R(t),n||s)return n&&s?rl(e,t):!1;if(n=J(e),s=J(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,l=Object.keys(t).length;if(o!==l)return!1;for(const r in e){const i=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(i&&!u||!i&&u||!nt(e[r],t[r]))return!1}}return String(e)===String(t)}function Wn(e,t){return e.findIndex(n=>nt(n,t))}const y=e=>te(e)?e:e==null?"":R(e)||J(e)&&(e.toString===Js||!k(e.toString))?JSON.stringify(e,to,2):String(e),to=(e,t)=>t&&t.__v_isRef?to(e,t.value):it(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],l)=>(n[bn(s,l)+" =>"]=o,n),{})}:dt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>bn(n))}:Me(t)?bn(t):J(t)&&!R(t)&&!Ys(t)?String(t):t,bn=(e,t="")=>{var n;return Me(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.4.23
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let be;class il{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function cl(e,t=be){t&&t.active&&t.effects.push(e)}function ul(){return be}let Qe;class qn{constructor(t,n,s,o){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,cl(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Be();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(al(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),We()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=He,n=Qe;try{return He=!0,Qe=this,this._runnings++,_s(this),this.fn()}finally{ms(this),this._runnings--,Qe=n,He=t}}stop(){var t;this.active&&(_s(this),ms(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function al(e){return e.value}function _s(e){e._trackId++,e._depsLength=0}function ms(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)no(e.deps[t],e);e.deps.length=e._depsLength}}function no(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let He=!0,Tn=0;const so=[];function Be(){so.push(He),He=!1}function We(){const e=so.pop();He=e===void 0?!0:e}function zn(){Tn++}function Gn(){for(Tn--;!Tn&&On.length;)On.shift()()}function oo(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&no(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const On=[];function lo(e,t,n){zn();for(const s of e.keys()){let o;s._dirtyLevel<t&&(o??(o=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(o??(o=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&On.push(s.scheduler)))}Gn()}const ro=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},An=new WeakMap,et=Symbol(""),Pn=Symbol("");function fe(e,t,n){if(He&&Qe){let s=An.get(e);s||An.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=ro(()=>s.delete(n))),oo(Qe,o)}}function Ue(e,t,n,s,o,l){const r=An.get(e);if(!r)return;let i=[];if(t==="clear")i=[...r.values()];else if(n==="length"&&R(e)){const u=Number(s);r.forEach((d,_)=>{(_==="length"||!Me(_)&&_>=u)&&i.push(d)})}else switch(n!==void 0&&i.push(r.get(n)),t){case"add":R(e)?Bn(n)&&i.push(r.get("length")):(i.push(r.get(et)),it(e)&&i.push(r.get(Pn)));break;case"delete":R(e)||(i.push(r.get(et)),it(e)&&i.push(r.get(Pn)));break;case"set":it(e)&&i.push(r.get(et));break}zn();for(const u of i)u&&lo(u,4);Gn()}const fl=Ln("__proto__,__v_isRef,__isVue"),io=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Me)),gs=dl();function dl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=K(this);for(let l=0,r=this.length;l<r;l++)fe(s,"get",l+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(K)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Be(),zn();const s=K(this)[t].apply(this,n);return Gn(),We(),s}}),e}function hl(e){Me(e)||(e=String(e));const t=K(this);return fe(t,"has",e),t.hasOwnProperty(e)}class co{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return s===(o?l?Sl:ho:l?fo:ao).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=R(t);if(!o){if(r&&H(gs,n))return Reflect.get(gs,n,s);if(n==="hasOwnProperty")return hl}const i=Reflect.get(t,n,s);return(Me(n)?io.has(n):fl(n))||(o||fe(t,"get",n),l)?i:de(i)?r&&Bn(n)?i:i.value:J(i)?o?po(i):Xn(i):i}}class uo extends co{constructor(t=!1){super(!1,t)}set(t,n,s,o){let l=t[n];if(!this._isShallow){const u=Ct(l);if(!Gt(s)&&!Ct(s)&&(l=K(l),s=K(s)),!R(t)&&de(l)&&!de(s))return u?!1:(l.value=s,!0)}const r=R(t)&&Bn(n)?Number(n)<t.length:H(t,n),i=Reflect.set(t,n,s,o);return t===K(o)&&(r?De(s,l)&&Ue(t,"set",n,s):Ue(t,"add",n,s)),i}deleteProperty(t,n){const s=H(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Ue(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Me(n)||!io.has(n))&&fe(t,"has",n),s}ownKeys(t){return fe(t,"iterate",R(t)?"length":et),Reflect.ownKeys(t)}}class pl extends co{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _l=new uo,ml=new pl,gl=new uo(!0),Jn=e=>e,sn=e=>Reflect.getPrototypeOf(e);function Rt(e,t,n=!1,s=!1){e=e.__v_raw;const o=K(e),l=K(t);n||(De(t,l)&&fe(o,"get",t),fe(o,"get",l));const{has:r}=sn(o),i=s?Jn:n?Qn:Et;if(r.call(o,t))return i(e.get(t));if(r.call(o,l))return i(e.get(l));e!==o&&e.get(t)}function Vt(e,t=!1){const n=this.__v_raw,s=K(n),o=K(e);return t||(De(e,o)&&fe(s,"has",e),fe(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function jt(e,t=!1){return e=e.__v_raw,!t&&fe(K(e),"iterate",et),Reflect.get(e,"size",e)}function vs(e){e=K(e);const t=K(this);return sn(t).has.call(t,e)||(t.add(e),Ue(t,"add",e,e)),this}function bs(e,t){t=K(t);const n=K(this),{has:s,get:o}=sn(n);let l=s.call(n,e);l||(e=K(e),l=s.call(n,e));const r=o.call(n,e);return n.set(e,t),l?De(t,r)&&Ue(n,"set",e,t):Ue(n,"add",e,t),this}function ys(e){const t=K(this),{has:n,get:s}=sn(t);let o=n.call(t,e);o||(e=K(e),o=n.call(t,e)),s&&s.call(t,e);const l=t.delete(e);return o&&Ue(t,"delete",e,void 0),l}function ws(){const e=K(this),t=e.size!==0,n=e.clear();return t&&Ue(e,"clear",void 0,void 0),n}function kt(e,t){return function(s,o){const l=this,r=l.__v_raw,i=K(r),u=t?Jn:e?Qn:Et;return!e&&fe(i,"iterate",et),r.forEach((d,_)=>s.call(o,u(d),u(_),l))}}function Nt(e,t,n){return function(...s){const o=this.__v_raw,l=K(o),r=it(l),i=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,d=o[e](...s),_=n?Jn:t?Qn:Et;return!t&&fe(l,"iterate",u?Pn:et),{next(){const{value:C,done:p}=d.next();return p?{value:C,done:p}:{value:i?[_(C[0]),_(C[1])]:_(C),done:p}},[Symbol.iterator](){return this}}}}function Re(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vl(){const e={get(l){return Rt(this,l)},get size(){return jt(this)},has:Vt,add:vs,set:bs,delete:ys,clear:ws,forEach:kt(!1,!1)},t={get(l){return Rt(this,l,!1,!0)},get size(){return jt(this)},has:Vt,add:vs,set:bs,delete:ys,clear:ws,forEach:kt(!1,!0)},n={get(l){return Rt(this,l,!0)},get size(){return jt(this,!0)},has(l){return Vt.call(this,l,!0)},add:Re("add"),set:Re("set"),delete:Re("delete"),clear:Re("clear"),forEach:kt(!0,!1)},s={get(l){return Rt(this,l,!0,!0)},get size(){return jt(this,!0)},has(l){return Vt.call(this,l,!0)},add:Re("add"),set:Re("set"),delete:Re("delete"),clear:Re("clear"),forEach:kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Nt(l,!1,!1),n[l]=Nt(l,!0,!1),t[l]=Nt(l,!1,!0),s[l]=Nt(l,!0,!0)}),[e,n,t,s]}const[bl,yl,wl,xl]=vl();function Yn(e,t){const n=t?e?xl:wl:e?yl:bl;return(s,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(H(n,o)&&o in s?n:s,o,l)}const Cl={get:Yn(!1,!1)},El={get:Yn(!1,!0)},$l={get:Yn(!0,!1)},ao=new WeakMap,fo=new WeakMap,ho=new WeakMap,Sl=new WeakMap;function Il(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tl(e){return e.__v_skip||!Object.isExtensible(e)?0:Il(Xo(e))}function Xn(e){return Ct(e)?e:Zn(e,!1,_l,Cl,ao)}function Ol(e){return Zn(e,!1,gl,El,fo)}function po(e){return Zn(e,!0,ml,$l,ho)}function Zn(e,t,n,s,o){if(!J(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const r=Tl(e);if(r===0)return e;const i=new Proxy(e,r===2?s:n);return o.set(e,i),i}function bt(e){return Ct(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ct(e){return!!(e&&e.__v_isReadonly)}function Gt(e){return!!(e&&e.__v_isShallow)}function _o(e){return e?!!e.__v_raw:!1}function K(e){const t=e&&e.__v_raw;return t?K(t):e}function Al(e){return Object.isExtensible(e)&&Zs(e,"__v_skip",!0),e}const Et=e=>J(e)?Xn(e):e,Qn=e=>J(e)?po(e):e;class mo{constructor(t,n,s,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new qn(()=>t(this._value),()=>Dt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=K(this);return(!t._cacheable||t.effect.dirty)&&De(t._value,t._value=t.effect.run())&&Dt(t,4),go(t),t.effect._dirtyLevel>=2&&Dt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Pl(e,t,n=!1){let s,o;const l=k(e);return l?(s=e,o=me):(s=e.get,o=e.set),new mo(s,o,l||!o,n)}function go(e){var t;He&&Qe&&(e=K(e),oo(Qe,(t=e.dep)!=null?t:e.dep=ro(()=>e.dep=void 0,e instanceof mo?e:void 0)))}function Dt(e,t=4,n){e=K(e);const s=e.dep;s&&lo(s,t)}function de(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return Ul(e,!1)}function Ul(e,t){return de(e)?e:new Ml(e,t)}class Ml{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:K(t),this._value=n?t:Et(t)}get value(){return go(this),this._value}set value(t){const n=this.__v_isShallow||Gt(t)||Ct(t);t=n?t:K(t),De(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Et(t),Dt(this,4))}}function v(e){return de(e)?e.value:e}const Fl={get:(e,t,n)=>v(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return de(o)&&!de(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function vo(e){return bt(e)?e:new Proxy(e,Fl)}/**
|
||
* @vue/runtime-core v3.4.23
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Le(e,t,n,s){try{return s?e(...s):e()}catch(o){on(o,t,n)}}function we(e,t,n,s){if(k(e)){const o=Le(e,t,n,s);return o&&Gs(o)&&o.catch(l=>{on(l,t,n)}),o}if(R(e)){const o=[];for(let l=0;l<e.length;l++)o.push(we(e[l],t,n,s));return o}}function on(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let l=t.parent;const r=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const d=l.ec;if(d){for(let _=0;_<d.length;_++)if(d[_](e,r,i)===!1)return}l=l.parent}const u=t.appContext.config.errorHandler;if(u){Be(),Le(u,null,10,[e,r,i]),We();return}}Rl(e,n,o,s)}function Rl(e,t,n,s=!0){console.error(e)}let $t=!1,Un=!1;const le=[];let Ie=0;const ct=[];let Ve=null,Xe=0;const bo=Promise.resolve();let es=null;function yo(e){const t=es||bo;return e?t.then(this?e.bind(this):e):t}function Vl(e){let t=Ie+1,n=le.length;for(;t<n;){const s=t+n>>>1,o=le[s],l=St(o);l<e||l===e&&o.pre?t=s+1:n=s}return t}function ts(e){(!le.length||!le.includes(e,$t&&e.allowRecurse?Ie+1:Ie))&&(e.id==null?le.push(e):le.splice(Vl(e.id),0,e),wo())}function wo(){!$t&&!Un&&(Un=!0,es=bo.then(Co))}function jl(e){const t=le.indexOf(e);t>Ie&&le.splice(t,1)}function kl(e){R(e)?ct.push(...e):(!Ve||!Ve.includes(e,e.allowRecurse?Xe+1:Xe))&&ct.push(e),wo()}function xs(e,t,n=$t?Ie+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function xo(e){if(ct.length){const t=[...new Set(ct)].sort((n,s)=>St(n)-St(s));if(ct.length=0,Ve){Ve.push(...t);return}for(Ve=t,Xe=0;Xe<Ve.length;Xe++)Ve[Xe]();Ve=null,Xe=0}}const St=e=>e.id==null?1/0:e.id,Nl=(e,t)=>{const n=St(e)-St(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Co(e){Un=!1,$t=!0,le.sort(Nl);try{for(Ie=0;Ie<le.length;Ie++){const t=le[Ie];t&&t.active!==!1&&Le(t,null,14)}}finally{Ie=0,le.length=0,xo(),$t=!1,es=null,(le.length||ct.length)&&Co()}}function Hl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||G;let o=n;const l=t.startsWith("update:"),r=l&&t.slice(7);if(r&&r in s){const _=`${r==="modelValue"?"model":r}Modifiers`,{number:C,trim:p}=s[_]||G;p&&(o=n.map(F=>te(F)?F.trim():F)),C&&(o=n.map(zt))}let i,u=s[i=vn(t)]||s[i=vn(ut(t))];!u&&l&&(u=s[i=vn(ht(t))]),u&&we(u,e,6,o);const d=s[i+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,we(d,e,6,o)}}function Eo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const l=e.emits;let r={},i=!1;if(!k(e)){const u=d=>{const _=Eo(d,t,!0);_&&(i=!0,re(r,_))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!i?(J(e)&&s.set(e,null),null):(R(l)?l.forEach(u=>r[u]=null):re(r,l),J(e)&&s.set(e,r),r)}function ln(e,t){return!e||!Qt(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,ht(t))||H(e,t))}let pe=null,rn=null;function Jt(e){const t=pe;return pe=e,rn=e&&e.type.__scopeId||null,t}function Ll(e){rn=e}function Dl(){rn=null}function Kl(e,t=pe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Us(-1);const l=Jt(t);let r;try{r=e(...o)}finally{Jt(l),s._d&&Us(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function yn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:l,propsOptions:[r],slots:i,attrs:u,emit:d,render:_,renderCache:C,data:p,setupState:F,ctx:$,inheritAttrs:j}=e;let O,E;const P=Jt(e);try{if(n.shapeFlag&4){const X=o||s,ee=X;O=Se(_.call(ee,X,C,l,F,p,$)),E=u}else{const X=t;O=Se(X.length>1?X(l,{attrs:u,slots:i,emit:d}):X(l,null)),E=t.props?u:Bl(u)}}catch(X){xt.length=0,on(X,e,1),O=Te(st)}let I=O;if(E&&j!==!1){const X=Object.keys(E),{shapeFlag:ee}=I;X.length&&ee&7&&(r&&X.some(Dn)&&(E=Wl(E,r)),I=at(I,E))}return n.dirs&&(I=at(I),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(I.transition=n.transition),O=I,Jt(P),O}const Bl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Qt(n))&&((t||(t={}))[n]=e[n]);return t},Wl=(e,t)=>{const n={};for(const s in e)(!Dn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ql(e,t,n){const{props:s,children:o,component:l}=e,{props:r,children:i,patchFlag:u}=t,d=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Cs(s,r,d):!!r;if(u&8){const _=t.dynamicProps;for(let C=0;C<_.length;C++){const p=_[C];if(r[p]!==s[p]&&!ln(d,p))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===r?!1:s?r?Cs(s,r,d):!0:!!r;return!1}function Cs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const l=s[o];if(t[l]!==e[l]&&!ln(n,l))return!0}return!1}function zl({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Gl=Symbol.for("v-ndc"),Jl=e=>e.__isSuspense;function Yl(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):kl(e)}const Xl=Symbol.for("v-scx"),Zl=()=>Bt(Xl),Ht={};function wn(e,t,n){return $o(e,t,n)}function $o(e,t,{immediate:n,deep:s,flush:o,once:l,onTrack:r,onTrigger:i}=G){if(t&&l){const L=t;t=(...Oe)=>{L(...Oe),ee()}}const u=ue,d=L=>s===!0?L:Ze(L,s===!1?1:void 0);let _,C=!1,p=!1;if(de(e)?(_=()=>e.value,C=Gt(e)):bt(e)?(_=()=>d(e),C=!0):R(e)?(p=!0,C=e.some(L=>bt(L)||Gt(L)),_=()=>e.map(L=>{if(de(L))return L.value;if(bt(L))return d(L);if(k(L))return Le(L,u,2)})):k(e)?t?_=()=>Le(e,u,2):_=()=>(F&&F(),we(e,u,3,[$])):_=me,t&&s){const L=_;_=()=>Ze(L())}let F,$=L=>{F=I.onStop=()=>{Le(L,u,4),F=I.onStop=void 0}},j;if(fn)if($=me,t?n&&we(t,u,3,[_(),p?[]:void 0,$]):_(),o==="sync"){const L=Zl();j=L.__watcherHandles||(L.__watcherHandles=[])}else return me;let O=p?new Array(e.length).fill(Ht):Ht;const E=()=>{if(!(!I.active||!I.dirty))if(t){const L=I.run();(s||C||(p?L.some((Oe,xe)=>De(Oe,O[xe])):De(L,O)))&&(F&&F(),we(t,u,3,[L,O===Ht?void 0:p&&O[0]===Ht?[]:O,$]),O=L)}else I.run()};E.allowRecurse=!!t;let P;o==="sync"?P=E:o==="post"?P=()=>ae(E,u&&u.suspense):(E.pre=!0,u&&(E.id=u.uid),P=()=>ts(E));const I=new qn(_,me,P),X=ul(),ee=()=>{I.stop(),X&&Kn(X.effects,I)};return t?n?E():O=I.run():o==="post"?ae(I.run.bind(I),u&&u.suspense):I.run(),j&&j.push(ee),ee}function Ql(e,t,n){const s=this.proxy,o=te(e)?e.includes(".")?So(s,e):()=>s[e]:e.bind(s,s);let l;k(t)?l=t:(l=t.handler,n=t);const r=Ot(this),i=$o(o,l.bind(s),n);return r(),i}function So(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Ze(e,t,n=0,s){if(!J(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),de(e))Ze(e.value,t,n,s);else if(R(e))for(let o=0;o<e.length;o++)Ze(e[o],t,n,s);else if(dt(e)||it(e))e.forEach(o=>{Ze(o,t,n,s)});else if(Ys(e))for(const o in e)Ze(e[o],t,n,s);return e}function q(e,t){if(pe===null)return e;const n=dn(pe)||pe.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,r,i,u=G]=t[o];l&&(k(l)&&(l={mounted:l,updated:l}),l.deep&&Ze(r),s.push({dir:l,instance:n,value:r,oldValue:void 0,arg:i,modifiers:u}))}return e}function Je(e,t,n,s){const o=e.dirs,l=t&&t.dirs;for(let r=0;r<o.length;r++){const i=o[r];l&&(i.oldValue=l[r].value);let u=i.dir[s];u&&(Be(),we(u,n,8,[e.el,i,e,t]),We())}}const Kt=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function er(e,t){To(e,"a",t)}function tr(e,t){To(e,"da",t)}function To(e,t,n=ue){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(cn(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Io(o.parent.vnode)&&nr(s,t,n,o),o=o.parent}}function nr(e,t,n,s){const o=cn(t,e,s,!0);Oo(()=>{Kn(s[t],o)},n)}function cn(e,t,n=ue,s=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Be();const i=Ot(n),u=we(t,n,e,r);return i(),We(),u});return s?o.unshift(l):o.push(l),l}}const Fe=e=>(t,n=ue)=>(!fn||e==="sp")&&cn(e,(...s)=>t(...s),n),sr=Fe("bm"),un=Fe("m"),or=Fe("bu"),lr=Fe("u"),rr=Fe("bum"),Oo=Fe("um"),ir=Fe("sp"),cr=Fe("rtg"),ur=Fe("rtc");function ar(e,t=ue){cn("ec",e,t)}function ns(e,t,n,s){let o;const l=n&&n[s];if(R(e)||te(e)){o=new Array(e.length);for(let r=0,i=e.length;r<i;r++)o[r]=t(e[r],r,void 0,l&&l[r])}else if(typeof e=="number"){o=new Array(e);for(let r=0;r<e;r++)o[r]=t(r+1,r,void 0,l&&l[r])}else if(J(e))if(e[Symbol.iterator])o=Array.from(e,(r,i)=>t(r,i,void 0,l&&l[i]));else{const r=Object.keys(e);o=new Array(r.length);for(let i=0,u=r.length;i<u;i++){const d=r[i];o[i]=t(e[d],d,i,l&&l[i])}}else o=[];return n&&(n[s]=o),o}const Mn=e=>e?Ko(e)?dn(e)||e.proxy:Mn(e.parent):null,yt=re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mn(e.parent),$root:e=>Mn(e.root),$emit:e=>e.emit,$options:e=>ss(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ts(e.update)}),$nextTick:e=>e.n||(e.n=yo.bind(e.proxy)),$watch:e=>Ql.bind(e)}),xn=(e,t)=>e!==G&&!e.__isScriptSetup&&H(e,t),fr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:l,accessCache:r,type:i,appContext:u}=e;let d;if(t[0]!=="$"){const F=r[t];if(F!==void 0)switch(F){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(xn(s,t))return r[t]=1,s[t];if(o!==G&&H(o,t))return r[t]=2,o[t];if((d=e.propsOptions[0])&&H(d,t))return r[t]=3,l[t];if(n!==G&&H(n,t))return r[t]=4,n[t];Fn&&(r[t]=0)}}const _=yt[t];let C,p;if(_)return t==="$attrs"&&fe(e.attrs,"get",""),_(e);if((C=i.__cssModules)&&(C=C[t]))return C;if(n!==G&&H(n,t))return r[t]=4,n[t];if(p=u.config.globalProperties,H(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:l}=e;return xn(o,t)?(o[t]=n,!0):s!==G&&H(s,t)?(s[t]=n,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:l}},r){let i;return!!n[r]||e!==G&&H(e,r)||xn(t,r)||(i=l[0])&&H(i,r)||H(s,r)||H(yt,r)||H(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Es(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fn=!0;function dr(e){const t=ss(e),n=e.proxy,s=e.ctx;Fn=!1,t.beforeCreate&&$s(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:r,watch:i,provide:u,inject:d,created:_,beforeMount:C,mounted:p,beforeUpdate:F,updated:$,activated:j,deactivated:O,beforeDestroy:E,beforeUnmount:P,destroyed:I,unmounted:X,render:ee,renderTracked:L,renderTriggered:Oe,errorCaptured:xe,serverPrefetch:hn,expose:qe,inheritAttrs:pt,components:Pt,directives:Ut,filters:pn}=t;if(d&&hr(d,s,null),r)for(const Z in r){const z=r[Z];k(z)&&(s[Z]=z.bind(n))}if(o){const Z=o.call(n,n);J(Z)&&(e.data=Xn(Z))}if(Fn=!0,l)for(const Z in l){const z=l[Z],ze=k(z)?z.bind(n,n):k(z.get)?z.get.bind(n,n):me,Mt=!k(z)&&k(z.set)?z.set.bind(n):me,Ge=Wo({get:ze,set:Mt});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:Ce=>Ge.value=Ce})}if(i)for(const Z in i)Ao(i[Z],s,n,Z);if(u){const Z=k(u)?u.call(n):u;Reflect.ownKeys(Z).forEach(z=>{br(z,Z[z])})}_&&$s(_,e,"c");function ie(Z,z){R(z)?z.forEach(ze=>Z(ze.bind(n))):z&&Z(z.bind(n))}if(ie(sr,C),ie(un,p),ie(or,F),ie(lr,$),ie(er,j),ie(tr,O),ie(ar,xe),ie(ur,L),ie(cr,Oe),ie(rr,P),ie(Oo,X),ie(ir,hn),R(qe))if(qe.length){const Z=e.exposed||(e.exposed={});qe.forEach(z=>{Object.defineProperty(Z,z,{get:()=>n[z],set:ze=>n[z]=ze})})}else e.exposed||(e.exposed={});ee&&e.render===me&&(e.render=ee),pt!=null&&(e.inheritAttrs=pt),Pt&&(e.components=Pt),Ut&&(e.directives=Ut)}function hr(e,t,n=me){R(e)&&(e=Rn(e));for(const s in e){const o=e[s];let l;J(o)?"default"in o?l=Bt(o.from||s,o.default,!0):l=Bt(o.from||s):l=Bt(o),de(l)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[s]=l}}function $s(e,t,n){we(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ao(e,t,n,s){const o=s.includes(".")?So(n,s):()=>n[s];if(te(e)){const l=t[e];k(l)&&wn(o,l)}else if(k(e))wn(o,e.bind(n));else if(J(e))if(R(e))e.forEach(l=>Ao(l,t,n,s));else{const l=k(e.handler)?e.handler.bind(n):t[e.handler];k(l)&&wn(o,l,e)}}function ss(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,i=l.get(t);let u;return i?u=i:!o.length&&!n&&!s?u=t:(u={},o.length&&o.forEach(d=>Yt(u,d,r,!0)),Yt(u,t,r)),J(t)&&l.set(t,u),u}function Yt(e,t,n,s=!1){const{mixins:o,extends:l}=t;l&&Yt(e,l,n,!0),o&&o.forEach(r=>Yt(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=pr[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const pr={data:Ss,props:Is,emits:Is,methods:gt,computed:gt,beforeCreate:ce,created:ce,beforeMount:ce,mounted:ce,beforeUpdate:ce,updated:ce,beforeDestroy:ce,beforeUnmount:ce,destroyed:ce,unmounted:ce,activated:ce,deactivated:ce,errorCaptured:ce,serverPrefetch:ce,components:gt,directives:gt,watch:mr,provide:Ss,inject:_r};function Ss(e,t){return t?e?function(){return re(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function _r(e,t){return gt(Rn(e),Rn(t))}function Rn(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ce(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?re(Object.create(null),e,t):t}function Is(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:re(Object.create(null),Es(e),Es(t??{})):t}function mr(e,t){if(!e)return t;if(!t)return e;const n=re(Object.create(null),e);for(const s in t)n[s]=ce(e[s],t[s]);return n}function Po(){return{app:null,config:{isNativeTag:Jo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let gr=0;function vr(e,t){return function(s,o=null){k(s)||(s=re({},s)),o!=null&&!J(o)&&(o=null);const l=Po(),r=new WeakSet;let i=!1;const u=l.app={_uid:gr++,_component:s,_props:o,_container:null,_context:l,_instance:null,version:Kr,get config(){return l.config},set config(d){},use(d,..._){return r.has(d)||(d&&k(d.install)?(r.add(d),d.install(u,..._)):k(d)&&(r.add(d),d(u,..._))),u},mixin(d){return l.mixins.includes(d)||l.mixins.push(d),u},component(d,_){return _?(l.components[d]=_,u):l.components[d]},directive(d,_){return _?(l.directives[d]=_,u):l.directives[d]},mount(d,_,C){if(!i){const p=Te(s,o);return p.appContext=l,C===!0?C="svg":C===!1&&(C=void 0),_&&t?t(p,d):e(p,d,C),i=!0,u._container=d,d.__vue_app__=u,dn(p.component)||p.component.proxy}},unmount(){i&&(e(null,u._container),delete u._container.__vue_app__)},provide(d,_){return l.provides[d]=_,u},runWithContext(d){const _=wt;wt=u;try{return d()}finally{wt=_}}};return u}}let wt=null;function br(e,t){if(ue){let n=ue.provides;const s=ue.parent&&ue.parent.provides;s===n&&(n=ue.provides=Object.create(s)),n[e]=t}}function Bt(e,t,n=!1){const s=ue||pe;if(s||wt){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:wt._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&k(t)?t.call(s&&s.proxy):t}}const Uo=Object.create(null),Vn=()=>Object.create(Uo),Mo=e=>Object.getPrototypeOf(e)===Uo;function yr(e,t,n,s=!1){const o={},l=Vn();e.propsDefaults=Object.create(null),Fo(e,t,o,l);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:Ol(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function wr(e,t,n,s){const{props:o,attrs:l,vnode:{patchFlag:r}}=e,i=K(o),[u]=e.propsOptions;let d=!1;if((s||r>0)&&!(r&16)){if(r&8){const _=e.vnode.dynamicProps;for(let C=0;C<_.length;C++){let p=_[C];if(ln(e.emitsOptions,p))continue;const F=t[p];if(u)if(H(l,p))F!==l[p]&&(l[p]=F,d=!0);else{const $=ut(p);o[$]=jn(u,i,$,F,e,!1)}else F!==l[p]&&(l[p]=F,d=!0)}}}else{Fo(e,t,o,l)&&(d=!0);let _;for(const C in i)(!t||!H(t,C)&&((_=ht(C))===C||!H(t,_)))&&(u?n&&(n[C]!==void 0||n[_]!==void 0)&&(o[C]=jn(u,i,C,void 0,e,!0)):delete o[C]);if(l!==i)for(const C in l)(!t||!H(t,C))&&(delete l[C],d=!0)}d&&Ue(e.attrs,"set","")}function Fo(e,t,n,s){const[o,l]=e.propsOptions;let r=!1,i;if(t)for(let u in t){if(vt(u))continue;const d=t[u];let _;o&&H(o,_=ut(u))?!l||!l.includes(_)?n[_]=d:(i||(i={}))[_]=d:ln(e.emitsOptions,u)||(!(u in s)||d!==s[u])&&(s[u]=d,r=!0)}if(l){const u=K(n),d=i||G;for(let _=0;_<l.length;_++){const C=l[_];n[C]=jn(o,u,C,d[C],e,!H(d,C))}}return r}function jn(e,t,n,s,o,l){const r=e[n];if(r!=null){const i=H(r,"default");if(i&&s===void 0){const u=r.default;if(r.type!==Function&&!r.skipFactory&&k(u)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const _=Ot(o);s=d[n]=u.call(null,t),_()}}else s=u}r[0]&&(l&&!i?s=!1:r[1]&&(s===""||s===ht(n))&&(s=!0))}return s}function Ro(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const l=e.props,r={},i=[];let u=!1;if(!k(e)){const _=C=>{u=!0;const[p,F]=Ro(C,t,!0);re(r,p),F&&i.push(...F)};!n&&t.mixins.length&&t.mixins.forEach(_),e.extends&&_(e.extends),e.mixins&&e.mixins.forEach(_)}if(!l&&!u)return J(e)&&s.set(e,rt),rt;if(R(l))for(let _=0;_<l.length;_++){const C=ut(l[_]);Ts(C)&&(r[C]=G)}else if(l)for(const _ in l){const C=ut(_);if(Ts(C)){const p=l[_],F=r[C]=R(p)||k(p)?{type:p}:re({},p);if(F){const $=Ps(Boolean,F.type),j=Ps(String,F.type);F[0]=$>-1,F[1]=j<0||$<j,($>-1||H(F,"default"))&&i.push(C)}}}const d=[r,i];return J(e)&&s.set(e,d),d}function Ts(e){return e[0]!=="$"&&!vt(e)}function Os(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function As(e,t){return Os(e)===Os(t)}function Ps(e,t){return R(t)?t.findIndex(n=>As(n,e)):k(t)&&As(t,e)?0:-1}const Vo=e=>e[0]==="_"||e==="$stable",os=e=>R(e)?e.map(Se):[Se(e)],xr=(e,t,n)=>{if(t._n)return t;const s=Kl((...o)=>os(t(...o)),n);return s._c=!1,s},jo=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Vo(o))continue;const l=e[o];if(k(l))t[o]=xr(o,l,s);else if(l!=null){const r=os(l);t[o]=()=>r}}},ko=(e,t)=>{const n=os(t);e.slots.default=()=>n},Cr=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=K(t),Zs(e.slots,"_",n)):jo(t,e.slots=Vn())}else e.slots=Vn(),t&&ko(e,t)},Er=(e,t,n)=>{const{vnode:s,slots:o}=e;let l=!0,r=G;if(s.shapeFlag&32){const i=t._;i?n&&i===1?l=!1:(re(o,t),!n&&i===1&&delete o._):(l=!t.$stable,jo(t,o)),r=t}else t&&(ko(e,t),r={default:1});if(l)for(const i in o)!Vo(i)&&r[i]==null&&delete o[i]};function kn(e,t,n,s,o=!1){if(R(e)){e.forEach((p,F)=>kn(p,t&&(R(t)?t[F]:t),n,s,o));return}if(Kt(s)&&!o)return;const l=s.shapeFlag&4?dn(s.component)||s.component.proxy:s.el,r=o?null:l,{i,r:u}=e,d=t&&t.r,_=i.refs===G?i.refs={}:i.refs,C=i.setupState;if(d!=null&&d!==u&&(te(d)?(_[d]=null,H(C,d)&&(C[d]=null)):de(d)&&(d.value=null)),k(u))Le(u,i,12,[r,_]);else{const p=te(u),F=de(u);if(p||F){const $=()=>{if(e.f){const j=p?H(C,u)?C[u]:_[u]:u.value;o?R(j)&&Kn(j,l):R(j)?j.includes(l)||j.push(l):p?(_[u]=[l],H(C,u)&&(C[u]=_[u])):(u.value=[l],e.k&&(_[e.k]=u.value))}else p?(_[u]=r,H(C,u)&&(C[u]=r)):F&&(u.value=r,e.k&&(_[e.k]=r))};r?($.id=-1,ae($,n)):$()}}}const ae=Yl;function $r(e){return Sr(e)}function Sr(e,t){const n=Qs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:l,createElement:r,createText:i,createComment:u,setText:d,setElementText:_,parentNode:C,nextSibling:p,setScopeId:F=me,insertStaticContent:$}=e,j=(c,f,h,m=null,g=null,x=null,T=void 0,w=null,S=!!f.dynamicChildren)=>{if(c===f)return;c&&!mt(c,f)&&(m=Ft(c),Ce(c,g,x,!0),c=null),f.patchFlag===-2&&(S=!1,f.dynamicChildren=null);const{type:b,ref:A,shapeFlag:M}=f;switch(b){case an:O(c,f,h,m);break;case st:E(c,f,h,m);break;case En:c==null&&P(f,h,m,T);break;case se:Pt(c,f,h,m,g,x,T,w,S);break;default:M&1?ee(c,f,h,m,g,x,T,w,S):M&6?Ut(c,f,h,m,g,x,T,w,S):(M&64||M&128)&&b.process(c,f,h,m,g,x,T,w,S,ot)}A!=null&&g&&kn(A,c&&c.ref,x,f||c,!f)},O=(c,f,h,m)=>{if(c==null)s(f.el=i(f.children),h,m);else{const g=f.el=c.el;f.children!==c.children&&d(g,f.children)}},E=(c,f,h,m)=>{c==null?s(f.el=u(f.children||""),h,m):f.el=c.el},P=(c,f,h,m)=>{[c.el,c.anchor]=$(c.children,f,h,m,c.el,c.anchor)},I=({el:c,anchor:f},h,m)=>{let g;for(;c&&c!==f;)g=p(c),s(c,h,m),c=g;s(f,h,m)},X=({el:c,anchor:f})=>{let h;for(;c&&c!==f;)h=p(c),o(c),c=h;o(f)},ee=(c,f,h,m,g,x,T,w,S)=>{f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),c==null?L(f,h,m,g,x,T,w,S):hn(c,f,g,x,T,w,S)},L=(c,f,h,m,g,x,T,w)=>{let S,b;const{props:A,shapeFlag:M,transition:U,dirs:V}=c;if(S=c.el=r(c.type,x,A&&A.is,A),M&8?_(S,c.children):M&16&&xe(c.children,S,null,m,g,Cn(c,x),T,w),V&&Je(c,null,m,"created"),Oe(S,c,c.scopeId,T,m),A){for(const B in A)B!=="value"&&!vt(B)&&l(S,B,null,A[B],x,c.children,m,g,Ae);"value"in A&&l(S,"value",null,A.value,x),(b=A.onVnodeBeforeMount)&&$e(b,m,c)}V&&Je(c,null,m,"beforeMount");const N=Ir(g,U);N&&U.beforeEnter(S),s(S,f,h),((b=A&&A.onVnodeMounted)||N||V)&&ae(()=>{b&&$e(b,m,c),N&&U.enter(S),V&&Je(c,null,m,"mounted")},g)},Oe=(c,f,h,m,g)=>{if(h&&F(c,h),m)for(let x=0;x<m.length;x++)F(c,m[x]);if(g){let x=g.subTree;if(f===x){const T=g.vnode;Oe(c,T,T.scopeId,T.slotScopeIds,g.parent)}}},xe=(c,f,h,m,g,x,T,w,S=0)=>{for(let b=S;b<c.length;b++){const A=c[b]=w?je(c[b]):Se(c[b]);j(null,A,f,h,m,g,x,T,w)}},hn=(c,f,h,m,g,x,T)=>{const w=f.el=c.el;let{patchFlag:S,dynamicChildren:b,dirs:A}=f;S|=c.patchFlag&16;const M=c.props||G,U=f.props||G;let V;if(h&&Ye(h,!1),(V=U.onVnodeBeforeUpdate)&&$e(V,h,f,c),A&&Je(f,c,h,"beforeUpdate"),h&&Ye(h,!0),b?qe(c.dynamicChildren,b,w,h,m,Cn(f,g),x):T||z(c,f,w,null,h,m,Cn(f,g),x,!1),S>0){if(S&16)pt(w,f,M,U,h,m,g);else if(S&2&&M.class!==U.class&&l(w,"class",null,U.class,g),S&4&&l(w,"style",M.style,U.style,g),S&8){const N=f.dynamicProps;for(let B=0;B<N.length;B++){const Y=N[B],ne=M[Y],ve=U[Y];(ve!==ne||Y==="value")&&l(w,Y,ne,ve,g,c.children,h,m,Ae)}}S&1&&c.children!==f.children&&_(w,f.children)}else!T&&b==null&&pt(w,f,M,U,h,m,g);((V=U.onVnodeUpdated)||A)&&ae(()=>{V&&$e(V,h,f,c),A&&Je(f,c,h,"updated")},m)},qe=(c,f,h,m,g,x,T)=>{for(let w=0;w<f.length;w++){const S=c[w],b=f[w],A=S.el&&(S.type===se||!mt(S,b)||S.shapeFlag&70)?C(S.el):h;j(S,b,A,null,m,g,x,T,!0)}},pt=(c,f,h,m,g,x,T)=>{if(h!==m){if(h!==G)for(const w in h)!vt(w)&&!(w in m)&&l(c,w,h[w],null,T,f.children,g,x,Ae);for(const w in m){if(vt(w))continue;const S=m[w],b=h[w];S!==b&&w!=="value"&&l(c,w,b,S,T,f.children,g,x,Ae)}"value"in m&&l(c,"value",h.value,m.value,T)}},Pt=(c,f,h,m,g,x,T,w,S)=>{const b=f.el=c?c.el:i(""),A=f.anchor=c?c.anchor:i("");let{patchFlag:M,dynamicChildren:U,slotScopeIds:V}=f;V&&(w=w?w.concat(V):V),c==null?(s(b,h,m),s(A,h,m),xe(f.children||[],h,A,g,x,T,w,S)):M>0&&M&64&&U&&c.dynamicChildren?(qe(c.dynamicChildren,U,h,g,x,T,w),(f.key!=null||g&&f===g.subTree)&&No(c,f,!0)):z(c,f,h,A,g,x,T,w,S)},Ut=(c,f,h,m,g,x,T,w,S)=>{f.slotScopeIds=w,c==null?f.shapeFlag&512?g.ctx.activate(f,h,m,T,S):pn(f,h,m,g,x,T,S):is(c,f,S)},pn=(c,f,h,m,g,x,T)=>{const w=c.component=jr(c,m,g);if(Io(c)&&(w.ctx.renderer=ot),kr(w),w.asyncDep){if(g&&g.registerDep(w,ie),!c.el){const S=w.subTree=Te(st);E(null,S,f,h)}}else ie(w,c,f,h,g,x,T)},is=(c,f,h)=>{const m=f.component=c.component;if(ql(c,f,h))if(m.asyncDep&&!m.asyncResolved){Z(m,f,h);return}else m.next=f,jl(m.update),m.effect.dirty=!0,m.update();else f.el=c.el,m.vnode=f},ie=(c,f,h,m,g,x,T)=>{const w=()=>{if(c.isMounted){let{next:A,bu:M,u:U,parent:V,vnode:N}=c;{const lt=Ho(c);if(lt){A&&(A.el=N.el,Z(c,A,T)),lt.asyncDep.then(()=>{c.isUnmounted||w()});return}}let B=A,Y;Ye(c,!1),A?(A.el=N.el,Z(c,A,T)):A=N,M&&Lt(M),(Y=A.props&&A.props.onVnodeBeforeUpdate)&&$e(Y,V,A,N),Ye(c,!0);const ne=yn(c),ve=c.subTree;c.subTree=ne,j(ve,ne,C(ve.el),Ft(ve),c,g,x),A.el=ne.el,B===null&&zl(c,ne.el),U&&ae(U,g),(Y=A.props&&A.props.onVnodeUpdated)&&ae(()=>$e(Y,V,A,N),g)}else{let A;const{el:M,props:U}=f,{bm:V,m:N,parent:B}=c,Y=Kt(f);if(Ye(c,!1),V&&Lt(V),!Y&&(A=U&&U.onVnodeBeforeMount)&&$e(A,B,f),Ye(c,!0),M&&gn){const ne=()=>{c.subTree=yn(c),gn(M,c.subTree,c,g,null)};Y?f.type.__asyncLoader().then(()=>!c.isUnmounted&&ne()):ne()}else{const ne=c.subTree=yn(c);j(null,ne,h,m,c,g,x),f.el=ne.el}if(N&&ae(N,g),!Y&&(A=U&&U.onVnodeMounted)){const ne=f;ae(()=>$e(A,B,ne),g)}(f.shapeFlag&256||B&&Kt(B.vnode)&&B.vnode.shapeFlag&256)&&c.a&&ae(c.a,g),c.isMounted=!0,f=h=m=null}},S=c.effect=new qn(w,me,()=>ts(b),c.scope),b=c.update=()=>{S.dirty&&S.run()};b.id=c.uid,Ye(c,!0),b()},Z=(c,f,h)=>{f.component=c;const m=c.vnode.props;c.vnode=f,c.next=null,wr(c,f.props,m,h),Er(c,f.children,h),Be(),xs(c),We()},z=(c,f,h,m,g,x,T,w,S=!1)=>{const b=c&&c.children,A=c?c.shapeFlag:0,M=f.children,{patchFlag:U,shapeFlag:V}=f;if(U>0){if(U&128){Mt(b,M,h,m,g,x,T,w,S);return}else if(U&256){ze(b,M,h,m,g,x,T,w,S);return}}V&8?(A&16&&Ae(b,g,x),M!==b&&_(h,M)):A&16?V&16?Mt(b,M,h,m,g,x,T,w,S):Ae(b,g,x,!0):(A&8&&_(h,""),V&16&&xe(M,h,m,g,x,T,w,S))},ze=(c,f,h,m,g,x,T,w,S)=>{c=c||rt,f=f||rt;const b=c.length,A=f.length,M=Math.min(b,A);let U;for(U=0;U<M;U++){const V=f[U]=S?je(f[U]):Se(f[U]);j(c[U],V,h,null,g,x,T,w,S)}b>A?Ae(c,g,x,!0,!1,M):xe(f,h,m,g,x,T,w,S,M)},Mt=(c,f,h,m,g,x,T,w,S)=>{let b=0;const A=f.length;let M=c.length-1,U=A-1;for(;b<=M&&b<=U;){const V=c[b],N=f[b]=S?je(f[b]):Se(f[b]);if(mt(V,N))j(V,N,h,null,g,x,T,w,S);else break;b++}for(;b<=M&&b<=U;){const V=c[M],N=f[U]=S?je(f[U]):Se(f[U]);if(mt(V,N))j(V,N,h,null,g,x,T,w,S);else break;M--,U--}if(b>M){if(b<=U){const V=U+1,N=V<A?f[V].el:m;for(;b<=U;)j(null,f[b]=S?je(f[b]):Se(f[b]),h,N,g,x,T,w,S),b++}}else if(b>U)for(;b<=M;)Ce(c[b],g,x,!0),b++;else{const V=b,N=b,B=new Map;for(b=N;b<=U;b++){const he=f[b]=S?je(f[b]):Se(f[b]);he.key!=null&&B.set(he.key,b)}let Y,ne=0;const ve=U-N+1;let lt=!1,as=0;const _t=new Array(ve);for(b=0;b<ve;b++)_t[b]=0;for(b=V;b<=M;b++){const he=c[b];if(ne>=ve){Ce(he,g,x,!0);continue}let Ee;if(he.key!=null)Ee=B.get(he.key);else for(Y=N;Y<=U;Y++)if(_t[Y-N]===0&&mt(he,f[Y])){Ee=Y;break}Ee===void 0?Ce(he,g,x,!0):(_t[Ee-N]=b+1,Ee>=as?as=Ee:lt=!0,j(he,f[Ee],h,null,g,x,T,w,S),ne++)}const fs=lt?Tr(_t):rt;for(Y=fs.length-1,b=ve-1;b>=0;b--){const he=N+b,Ee=f[he],ds=he+1<A?f[he+1].el:m;_t[b]===0?j(null,Ee,h,ds,g,x,T,w,S):lt&&(Y<0||b!==fs[Y]?Ge(Ee,h,ds,2):Y--)}}},Ge=(c,f,h,m,g=null)=>{const{el:x,type:T,transition:w,children:S,shapeFlag:b}=c;if(b&6){Ge(c.component.subTree,f,h,m);return}if(b&128){c.suspense.move(f,h,m);return}if(b&64){T.move(c,f,h,ot);return}if(T===se){s(x,f,h);for(let M=0;M<S.length;M++)Ge(S[M],f,h,m);s(c.anchor,f,h);return}if(T===En){I(c,f,h);return}if(m!==2&&b&1&&w)if(m===0)w.beforeEnter(x),s(x,f,h),ae(()=>w.enter(x),g);else{const{leave:M,delayLeave:U,afterLeave:V}=w,N=()=>s(x,f,h),B=()=>{M(x,()=>{N(),V&&V()})};U?U(x,N,B):B()}else s(x,f,h)},Ce=(c,f,h,m=!1,g=!1)=>{const{type:x,props:T,ref:w,children:S,dynamicChildren:b,shapeFlag:A,patchFlag:M,dirs:U}=c;if(w!=null&&kn(w,null,h,c,!0),A&256){f.ctx.deactivate(c);return}const V=A&1&&U,N=!Kt(c);let B;if(N&&(B=T&&T.onVnodeBeforeUnmount)&&$e(B,f,c),A&6)Go(c.component,h,m);else{if(A&128){c.suspense.unmount(h,m);return}V&&Je(c,null,f,"beforeUnmount"),A&64?c.type.remove(c,f,h,g,ot,m):b&&(x!==se||M>0&&M&64)?Ae(b,f,h,!1,!0):(x===se&&M&384||!g&&A&16)&&Ae(S,f,h),m&&cs(c)}(N&&(B=T&&T.onVnodeUnmounted)||V)&&ae(()=>{B&&$e(B,f,c),V&&Je(c,null,f,"unmounted")},h)},cs=c=>{const{type:f,el:h,anchor:m,transition:g}=c;if(f===se){zo(h,m);return}if(f===En){X(c);return}const x=()=>{o(h),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(c.shapeFlag&1&&g&&!g.persisted){const{leave:T,delayLeave:w}=g,S=()=>T(h,x);w?w(c.el,x,S):S()}else x()},zo=(c,f)=>{let h;for(;c!==f;)h=p(c),o(c),c=h;o(f)},Go=(c,f,h)=>{const{bum:m,scope:g,update:x,subTree:T,um:w}=c;m&&Lt(m),g.stop(),x&&(x.active=!1,Ce(T,c,f,h)),w&&ae(w,f),ae(()=>{c.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ae=(c,f,h,m=!1,g=!1,x=0)=>{for(let T=x;T<c.length;T++)Ce(c[T],f,h,m,g)},Ft=c=>c.shapeFlag&6?Ft(c.component.subTree):c.shapeFlag&128?c.suspense.next():p(c.anchor||c.el);let _n=!1;const us=(c,f,h)=>{c==null?f._vnode&&Ce(f._vnode,null,null,!0):j(f._vnode||null,c,f,null,null,null,h),_n||(_n=!0,xs(),xo(),_n=!1),f._vnode=c},ot={p:j,um:Ce,m:Ge,r:cs,mt:pn,mc:xe,pc:z,pbc:qe,n:Ft,o:e};let mn,gn;return t&&([mn,gn]=t(ot)),{render:us,hydrate:mn,createApp:vr(us,mn)}}function Cn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ye({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ir(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function No(e,t,n=!1){const s=e.children,o=t.children;if(R(s)&&R(o))for(let l=0;l<s.length;l++){const r=s[l];let i=o[l];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[l]=je(o[l]),i.el=r.el),n||No(r,i)),i.type===an&&(i.el=r.el)}}function Tr(e){const t=e.slice(),n=[0];let s,o,l,r,i;const u=e.length;for(s=0;s<u;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(l=0,r=n.length-1;l<r;)i=l+r>>1,e[n[i]]<d?l=i+1:r=i;d<e[n[l]]&&(l>0&&(t[s]=n[l-1]),n[l]=s)}}for(l=n.length,r=n[l-1];l-- >0;)n[l]=r,r=t[r];return n}function Ho(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ho(t)}const Or=e=>e.__isTeleport,se=Symbol.for("v-fgt"),an=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),xt=[];let ye=null;function D(e=!1){xt.push(ye=e?null:[])}function Ar(){xt.pop(),ye=xt[xt.length-1]||null}let It=1;function Us(e){It+=e}function Lo(e){return e.dynamicChildren=It>0?ye||rt:null,Ar(),It>0&&ye&&ye.push(e),e}function W(e,t,n,s,o,l){return Lo(a(e,t,n,s,o,l,!0))}function Nn(e,t,n,s,o){return Lo(Te(e,t,n,s,o,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function mt(e,t){return e.type===t.type&&e.key===t.key}const Do=({key:e})=>e??null,Wt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?te(e)||de(e)||k(e)?{i:pe,r:e,k:t,f:!!n}:e:null);function a(e,t=null,n=null,s=0,o=null,l=e===se?0:1,r=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Do(t),ref:t&&Wt(t),scopeId:rn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:pe};return i?(ls(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=te(n)?8:16),It>0&&!r&&ye&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&ye.push(u),u}const Te=Ur;function Ur(e,t=null,n=null,s=0,o=null,l=!1){if((!e||e===Gl)&&(e=st),Pr(e)){const i=at(e,t,!0);return n&&ls(i,n),It>0&&!l&&ye&&(i.shapeFlag&6?ye[ye.indexOf(e)]=i:ye.push(i)),i.patchFlag|=-2,i}if(Dr(e)&&(e=e.__vccOpts),t){t=Mr(t);let{class:i,style:u}=t;i&&!te(i)&&(t.class=nn(i)),J(u)&&(_o(u)&&!R(u)&&(u=re({},u)),t.style=tn(u))}const r=te(e)?1:Jl(e)?128:Or(e)?64:J(e)?4:k(e)?2:0;return a(e,t,n,s,o,r,l,!0)}function Mr(e){return e?_o(e)||Mo(e)?re({},e):e:null}function at(e,t,n=!1){const{props:s,ref:o,patchFlag:l,children:r}=e,i=t?Fr(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Do(i),ref:t&&t.ref?n&&o?R(o)?o.concat(Wt(t)):[o,Wt(t)]:Wt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function tt(e=" ",t=0){return Te(an,null,e,t)}function oe(e="",t=!1){return t?(D(),Nn(st,null,e)):Te(st,null,e)}function Se(e){return e==null||typeof e=="boolean"?Te(st):R(e)?Te(se,null,e.slice()):typeof e=="object"?je(e):Te(an,null,String(e))}function je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function ls(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ls(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Mo(t)?t._ctx=pe:o===3&&pe&&(pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else k(t)?(t={default:t,_ctx:pe},n=32):(t=String(t),s&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fr(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=nn([t.class,s.class]));else if(o==="style")t.style=tn([t.style,s.style]);else if(Qt(o)){const l=t[o],r=s[o];r&&l!==r&&!(R(l)&&l.includes(r))&&(t[o]=l?[].concat(l,r):r)}else o!==""&&(t[o]=s[o])}return t}function $e(e,t,n,s=null){we(e,t,7,[n,s])}const Rr=Po();let Vr=0;function jr(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Rr,l={uid:Vr++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new il(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ro(s,o),emitsOptions:Eo(s,o),emit:null,emitted:null,propsDefaults:G,inheritAttrs:s.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=Hl.bind(null,l),e.ce&&e.ce(l),l}let ue=null,Xt,Hn;{const e=Qs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),l=>{o.length>1?o.forEach(r=>r(l)):o[0](l)}};Xt=t("__VUE_INSTANCE_SETTERS__",n=>ue=n),Hn=t("__VUE_SSR_SETTERS__",n=>fn=n)}const Ot=e=>{const t=ue;return Xt(e),e.scope.on(),()=>{e.scope.off(),Xt(t)}},Ms=()=>{ue&&ue.scope.off(),Xt(null)};function Ko(e){return e.vnode.shapeFlag&4}let fn=!1;function kr(e,t=!1){t&&Hn(t);const{props:n,children:s}=e.vnode,o=Ko(e);yr(e,n,o,t),Cr(e,s);const l=o?Nr(e,t):void 0;return t&&Hn(!1),l}function Nr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fr);const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Lr(e):null,l=Ot(e);Be();const r=Le(s,e,0,[e.props,o]);if(We(),l(),Gs(r)){if(r.then(Ms,Ms),t)return r.then(i=>{Fs(e,i,t)}).catch(i=>{on(i,e,0)});e.asyncDep=r}else Fs(e,r,t)}else Bo(e,t)}function Fs(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:J(t)&&(e.setupState=vo(t)),Bo(e,n)}let Rs;function Bo(e,t,n){const s=e.type;if(!e.render){if(!t&&Rs&&!s.render){const o=s.template||ss(e).template;if(o){const{isCustomElement:l,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:u}=s,d=re(re({isCustomElement:l,delimiters:i},r),u);s.render=Rs(o,d)}}e.render=s.render||me}{const o=Ot(e);Be();try{dr(e)}finally{We(),o()}}}const Hr={get(e,t){return fe(e,"get",""),e[t]}};function Lr(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hr),slots:e.slots,emit:e.emit,expose:t}}function dn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vo(Al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yt)return yt[n](e)},has(t,n){return n in t||n in yt}}))}function Dr(e){return k(e)&&"__vccOpts"in e}const Wo=(e,t)=>Pl(e,t,fn),Kr="3.4.23";/**
|
||
* @vue/runtime-dom v3.4.23
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const Br="http://www.w3.org/2000/svg",Wr="http://www.w3.org/1998/Math/MathML",ke=typeof document<"u"?document:null,Vs=ke&&ke.createElement("template"),qr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?ke.createElementNS(Br,e):t==="mathml"?ke.createElementNS(Wr,e):ke.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ke.createTextNode(e),createComment:e=>ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Vs.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const i=Vs.content;if(s==="svg"||s==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zr=Symbol("_vtc");function Gr(e,t,n){const s=e[zr];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const js=Symbol("_vod"),Jr=Symbol("_vsh"),Yr=Symbol(""),Xr=/(^|;)\s*display\s*:/;function Zr(e,t,n){const s=e.style,o=te(n);let l=!1;if(n&&!o){if(t)if(te(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&qt(s,i,"")}else for(const r in t)n[r]==null&&qt(s,r,"");for(const r in n)r==="display"&&(l=!0),qt(s,r,n[r])}else if(o){if(t!==n){const r=s[Yr];r&&(n+=";"+r),s.cssText=n,l=Xr.test(n)}}else t&&e.removeAttribute("style");js in e&&(e[js]=l?s.display:"",e[Jr]&&(s.display="none"))}const ks=/\s*!important$/;function qt(e,t,n){if(R(n))n.forEach(s=>qt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Qr(e,t);ks.test(n)?e.setProperty(ht(s),n.replace(ks,""),"important"):e[s]=n}}const Ns=["Webkit","Moz","ms"],$n={};function Qr(e,t){const n=$n[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return $n[t]=s;s=Xs(s);for(let o=0;o<Ns.length;o++){const l=Ns[o]+s;if(l in e)return $n[t]=l}return t}const Hs="http://www.w3.org/1999/xlink";function ei(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hs,t.slice(6,t.length)):e.setAttributeNS(Hs,t,n);else{const l=ll(t);n==null||l&&!eo(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function ti(e,t,n,s,o,l,r){if(t==="innerHTML"||t==="textContent"){s&&r(s,o,l),e[t]=n??"";return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const d=i==="OPTION"?e.getAttribute("value")||"":e.value,_=n??"";(d!==_||!("_value"in e))&&(e.value=_),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=eo(n):n==null&&d==="string"?(n="",u=!0):d==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function Pe(e,t,n,s){e.addEventListener(t,n,s)}function ni(e,t,n,s){e.removeEventListener(t,n,s)}const Ls=Symbol("_vei");function si(e,t,n,s,o=null){const l=e[Ls]||(e[Ls]={}),r=l[t];if(s&&r)r.value=s;else{const[i,u]=oi(t);if(s){const d=l[t]=ii(s,o);Pe(e,i,d,u)}else r&&(ni(e,i,r,u),l[t]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;function oi(e){let t;if(Ds.test(e)){t={};let s;for(;s=e.match(Ds);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ht(e.slice(2)),t]}let Sn=0;const li=Promise.resolve(),ri=()=>Sn||(li.then(()=>Sn=0),Sn=Date.now());function ii(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(ci(s,n.value),t,5,[s])};return n.value=e,n.attached=ri(),n}function ci(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ui=(e,t,n,s,o,l,r,i,u)=>{const d=o==="svg";t==="class"?Gr(e,s,d):t==="style"?Zr(e,n,s):Qt(t)?Dn(t)||si(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ai(e,t,s,d))?ti(e,t,s,l,r,i,u):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ei(e,t,s,d))};function ai(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ks(t)&&k(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ks(t)&&te(n)?!1:t in e}const Ke=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Lt(t,n):t};function fi(e){e.target.composing=!0}function Bs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ge=Symbol("_assign"),_e={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[ge]=Ke(o);const l=s||o.props&&o.props.type==="number";Pe(e,t?"change":"input",r=>{if(r.target.composing)return;let i=e.value;n&&(i=i.trim()),l&&(i=zt(i)),e[ge](i)}),n&&Pe(e,"change",()=>{e.value=e.value.trim()}),t||(Pe(e,"compositionstart",fi),Pe(e,"compositionend",Bs),Pe(e,"change",Bs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},l){if(e[ge]=Ke(l),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?zt(e.value):e.value,i=t??"";r!==i&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===i)||(e.value=i))}},Ne={deep:!0,created(e,t,n){e[ge]=Ke(n),Pe(e,"change",()=>{const s=e._modelValue,o=ft(e),l=e.checked,r=e[ge];if(R(s)){const i=Wn(s,o),u=i!==-1;if(l&&!u)r(s.concat(o));else if(!l&&u){const d=[...s];d.splice(i,1),r(d)}}else if(dt(s)){const i=new Set(s);l?i.add(o):i.delete(o),r(i)}else r(qo(e,l))})},mounted:Ws,beforeUpdate(e,t,n){e[ge]=Ke(n),Ws(e,t,n)}};function Ws(e,{value:t,oldValue:n},s){e._modelValue=t,R(t)?e.checked=Wn(t,s.props.value)>-1:dt(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=nt(t,qo(e,!0)))}const In={created(e,{value:t},n){e.checked=nt(t,n.props.value),e[ge]=Ke(n),Pe(e,"change",()=>{e[ge](ft(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[ge]=Ke(s),t!==n&&(e.checked=nt(t,s.props.value))}},Zt={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const o=dt(t);Pe(e,"change",()=>{const l=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?zt(ft(r)):ft(r));e[ge](e.multiple?o?new Set(l):l:l[0]),e._assigning=!0,yo(()=>{e._assigning=!1})}),e[ge]=Ke(s)},mounted(e,{value:t,modifiers:{number:n}}){qs(e,t)},beforeUpdate(e,t,n){e[ge]=Ke(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||qs(e,t)}};function qs(e,t,n){const s=e.multiple,o=R(t);if(!(s&&!o&&!dt(t))){for(let l=0,r=e.options.length;l<r;l++){const i=e.options[l],u=ft(i);if(s)if(o){const d=typeof u;d==="string"||d==="number"?i.selected=t.some(_=>String(_)===String(u)):i.selected=Wn(t,u)>-1}else i.selected=t.has(u);else if(nt(ft(i),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ft(e){return"_value"in e?e._value:e.value}function qo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const di=re({patchProp:ui},qr);let zs;function hi(){return zs||(zs=$r(di))}const pi=(...e)=>{const t=hi().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=mi(s);if(!o)return;const l=t._component;!k(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,_i(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function _i(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function mi(e){return te(e)?document.querySelector(e):e}const rs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},gi={class:"menu"},vi={class:"list-group"},bi=["onClick"],yi={__name:"Menu",props:{calendars:Array},emits:["select-calendar","add-new-calendar"],setup(e,{emit:t}){const n=window.ljpccalendarmoduletranslations,s=t,o=r=>{s("select-calendar",r)},l=()=>{s("add-new-calendar")};return(r,i)=>(D(),W("div",gi,[a("ul",vi,[(D(!0),W(se,null,ns(e.calendars,u=>(D(),W("li",{class:nn(["list-group-item",{active:u.isActive}]),role:"button",key:u.id,onClick:d=>o(u.id)},[u.color?(D(),W("span",{key:0,class:"badge badge-pill bg-dark text-white",style:tn({background:u.color})}," ",4)):oe("",!0),tt(" "+y(u.name),1)],10,bi))),128)),a("li",{class:"list-group-item list-group-item-info",role:"button",onClick:l},y(v(n).newCalendar),1)])]))}},wi=rs(yi,[["__scopeId","data-v-0b40eb83"]]),xi={class:"form-group"},Ci={for:"calendarName"},Ei=["placeholder"],$i={class:"form-group"},Si={for:"colorPicker"},Ii={class:"swatches"},Ti=a("hr",null,null,-1),Oi={class:"form-group"},Ai={class:"form-check"},Pi={class:"form-check-label",for:"normal"},Ui={class:"form-check"},Mi={class:"form-check-label",for:"ics"},Fi={class:"form-check"},Ri={class:"form-check-label",for:"caldav"},Vi={class:"alert alert-warning"},ji=a("hr",null,null,-1),ki={class:"form-group"},Ni={for:"icsUrl"},Hi=["placeholder"],Li={class:"form-group"},Di={for:"syncFrequency"},Ki={value:"1 minute"},Bi={value:"5 minutes"},Wi={value:"15 minutes"},qi={value:"30 minutes"},zi={value:"1 hour"},Gi={value:"2 hours"},Ji={value:"6 hours"},Yi={value:"12 hours"},Xi={value:"daily"},Zi=a("hr",null,null,-1),Qi={class:"form-group"},ec={for:"caldavUrl"},tc=["placeholder"],nc={class:"form-group"},sc={for:"caldavUsername"},oc=["placeholder"],lc={class:"form-group"},rc={for:"caldavPassword"},ic=["placeholder"],cc={class:"form-group"},uc={for:"syncFrequency"},ac={value:"1 minute"},fc={value:"5 minutes"},dc={value:"15 minutes"},hc={value:"30 minutes"},pc={value:"1 hour"},_c={value:"2 hours"},mc={value:"6 hours"},gc={value:"12 hours"},vc={value:"daily"},bc=a("hr",null,null,-1),yc={class:"form-group"},wc={class:"table"},xc={key:0},Cc={key:1},Ec=["onUpdate:modelValue"],$c=["onUpdate:modelValue"],Sc={key:0},Ic=["onUpdate:modelValue"],Tc={key:1},Oc=["onUpdate:modelValue"],Ac={key:2,type:"submit",class:"btn btn-primary"},Pc={key:3},Uc={__name:"NewCalendar",emits:["save"],setup(e,{emit:t}){const n=Q({}),s=t,o=Q(""),l=Q("#3498db"),r=Q("normal"),i=Q(""),u=Q("5 minutes"),d=Q(""),_=Q(""),C=Q(""),p=window.ljpccalendarmoduletranslations,F=Q(!1),$=async j=>{j.preventDefault(),F.value=!0;const E={_token:window.ljpccalendarmodule.csrf??"",name:o.value,color:l.value,type:r.value,custom_fields:{},permissions:n.value};r.value==="ics"&&(E.url=i.value,E.refresh=u.value),r.value==="caldav"&&(E.url=d.value,E.username=_.value,E.password=C.value,E.refresh=u.value);try{(await fetch(laroute.route("ljpccalendarmodule.api.calendar.new"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)})).status===200?(showFloatingAlert("success",p.calendarHasBeenSaved),s("save")):(showFloatingAlert("error",p.errorSavingCalendar),console.error(data))}catch(P){showFloatingAlert("error",p.errorSavingCalendar),console.error(P)}finally{F.value=!1}};return un(()=>{fetch(laroute.route("ljpccalendarmodule.api.users")).then(j=>j.json()).then(j=>{j.results.forEach(O=>{O&&O.id&&(n.value[O.id]={userTeam:O.text,showInDashboard:!0,showInCalendar:!0,createItems:!0,editItems:!0})})}).catch(j=>console.error(j))}),(j,O)=>(D(),W("div",null,[a("h1",null,y(v(p).newCalendar),1),a("form",{onSubmit:$},[a("div",xi,[a("label",Ci,[a("strong",null,y(v(p).calendarName)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"calendarName",placeholder:v(p).enterCalendarName,"onUpdate:modelValue":O[0]||(O[0]=E=>o.value=E)},null,8,Ei),[[_e,o.value]])]),a("div",$i,[a("label",Si,[a("strong",null,y(v(p).calendarColor)+":",1)]),q(a("input",{type:"color",class:"form-control",id:"colorPicker",placeholder:"#3498db","onUpdate:modelValue":O[1]||(O[1]=E=>l.value=E)},null,512),[[_e,l.value]]),a("div",Ii,[a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[2]||(O[2]=E=>l.value="#3498db"),style:{"background-color":"#3498db"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[3]||(O[3]=E=>l.value="#e74c3c"),style:{"background-color":"#e74c3c"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[4]||(O[4]=E=>l.value="#e67e22"),style:{"background-color":"#e67e22"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[5]||(O[5]=E=>l.value="#1abc9c"),style:{"background-color":"#1abc9c"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[6]||(O[6]=E=>l.value="#9b59b6"),style:{"background-color":"#9b59b6"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[7]||(O[7]=E=>l.value="#2ecc71"),style:{"background-color":"#2ecc71"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[8]||(O[8]=E=>l.value="#f1c40f"),style:{"background-color":"#f1c40f"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[9]||(O[9]=E=>l.value="#833471"),style:{"background-color":"#833471"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:O[10]||(O[10]=E=>l.value="#9980FA"),style:{"background-color":"#9980FA"}})])]),Ti,a("div",Oi,[a("label",null,[a("strong",null,y(v(p).calendarType)+":",1)]),a("div",Ai,[q(a("input",{class:"form-check-input",type:"radio","onUpdate:modelValue":O[11]||(O[11]=E=>r.value=E),id:"normal",value:"normal"},null,512),[[In,r.value]]),a("label",Pi,[tt(y(v(p).normal)+" ",1),a("small",null,y(v(p).normalDescription),1)])]),a("div",Ui,[q(a("input",{class:"form-check-input",type:"radio","onUpdate:modelValue":O[12]||(O[12]=E=>r.value=E),id:"ics",value:"ics"},null,512),[[In,r.value]]),a("label",Mi,[tt(y(v(p).ics)+" ",1),a("small",null,y(v(p).icsDescription),1)])]),a("div",Fi,[q(a("input",{class:"form-check-input",type:"radio","onUpdate:modelValue":O[13]||(O[13]=E=>r.value=E),id:"caldav",value:"caldav"},null,512),[[In,r.value]]),a("label",Ri,[tt(y(v(p).caldav)+" ",1),a("small",null,y(v(p).caldavDescription),1)])]),a("div",Vi,y(v(p).calendarTypeWarning),1)]),r.value==="ics"?(D(),W(se,{key:0},[ji,a("div",ki,[a("label",Ni,[a("strong",null,y(v(p).icsUrl)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"icsUrl",placeholder:v(p).enterIcsUrl,"onUpdate:modelValue":O[14]||(O[14]=E=>i.value=E)},null,8,Hi),[[_e,i.value]])]),a("div",Li,[a("label",Di,[a("strong",null,y(v(p).syncFrequency)+":",1)]),q(a("select",{class:"form-control",id:"syncFrequency","onUpdate:modelValue":O[15]||(O[15]=E=>u.value=E)},[a("option",Ki,y(v(p).everyMinute),1),a("option",Bi,y(v(p).every5Minutes),1),a("option",Wi,y(v(p).every15Minutes),1),a("option",qi,y(v(p).every30Minutes),1),a("option",zi,y(v(p).everyHour),1),a("option",Gi,y(v(p).every2Hours),1),a("option",Ji,y(v(p).every6Hours),1),a("option",Yi,y(v(p).every12Hours),1),a("option",Xi,y(v(p).everyDay),1)],512),[[Zt,u.value]])])],64)):oe("",!0),r.value==="caldav"?(D(),W(se,{key:1},[Zi,a("div",Qi,[a("label",ec,[a("strong",null,y(v(p).caldavUrl)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"caldavUrl","onUpdate:modelValue":O[16]||(O[16]=E=>d.value=E),placeholder:v(p).enterCaldavUrl},null,8,tc),[[_e,d.value]])]),a("div",nc,[a("label",sc,[a("strong",null,y(v(p).caldavUsername)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"caldavUsername","onUpdate:modelValue":O[17]||(O[17]=E=>_.value=E),placeholder:v(p).enterCaldavUsername},null,8,oc),[[_e,_.value]])]),a("div",lc,[a("label",rc,[a("strong",null,y(v(p).caldavPassword)+":",1)]),q(a("input",{type:"password",class:"form-control",id:"caldavPassword","onUpdate:modelValue":O[18]||(O[18]=E=>C.value=E),placeholder:v(p).enterCaldavPassword},null,8,ic),[[_e,C.value]])]),a("div",cc,[a("label",uc,[a("strong",null,y(v(p).syncFrequency)+":",1)]),q(a("select",{class:"form-control",id:"syncFrequency","onUpdate:modelValue":O[19]||(O[19]=E=>u.value=E)},[a("option",ac,y(v(p).everyMinute),1),a("option",fc,y(v(p).every5Minutes),1),a("option",dc,y(v(p).every15Minutes),1),a("option",hc,y(v(p).every30Minutes),1),a("option",pc,y(v(p).everyHour),1),a("option",_c,y(v(p).every2Hours),1),a("option",mc,y(v(p).every6Hours),1),a("option",gc,y(v(p).every12Hours),1),a("option",vc,y(v(p).everyDay),1)],512),[[Zt,u.value]])])],64)):oe("",!0),bc,a("div",yc,[a("label",null,[a("strong",null,y(v(p).permissions)+":",1)]),a("table",wc,[a("thead",null,[a("tr",null,[a("th",null,y(v(p).userTeam),1),a("th",null,y(v(p).showInDashboardWidget),1),a("th",null,y(v(p).showInCalendar),1),r.value!=="ics"?(D(),W("th",xc,y(v(p).createEvents),1)):oe("",!0),r.value!=="ics"?(D(),W("th",Cc,y(v(p).editEvents),1)):oe("",!0)])]),a("tbody",null,[(D(!0),W(se,null,ns(n.value,(E,P)=>(D(),W("tr",{key:P},[a("td",null,y(E.userTeam),1),a("td",null,[q(a("input",{type:"checkbox","onUpdate:modelValue":I=>E.showInDashboard=I},null,8,Ec),[[Ne,E.showInDashboard]])]),a("td",null,[q(a("input",{type:"checkbox","onUpdate:modelValue":I=>E.showInCalendar=I},null,8,$c),[[Ne,E.showInCalendar]])]),r.value!=="ics"?(D(),W("td",Sc,[q(a("input",{type:"checkbox","onUpdate:modelValue":I=>E.createItems=I},null,8,Ic),[[Ne,E.createItems]])])):oe("",!0),r.value!=="ics"?(D(),W("td",Tc,[q(a("input",{type:"checkbox","onUpdate:modelValue":I=>E.editItems=I},null,8,Oc),[[Ne,E.editItems]])])):oe("",!0)]))),128))])])]),F.value?(D(),W("span",Pc,y(v(p).creating),1)):(D(),W("button",Ac,y(v(p).createCalendar),1))],32)]))}},At=e=>(Ll("data-v-5f77aae0"),e=e(),Dl(),e),Mc={class:"form-group"},Fc={for:"calendarName"},Rc=["placeholder"],Vc={class:"form-group"},jc={for:"colorPicker"},kc={class:"swatches"},Nc=At(()=>a("hr",null,null,-1)),Hc={class:"form-group"},Lc=At(()=>a("hr",null,null,-1)),Dc={class:"form-group"},Kc={for:"icsUrl"},Bc=["placeholder"],Wc={class:"form-group"},qc={for:"syncFrequency"},zc={value:"1 minute"},Gc={value:"5 minutes"},Jc={value:"15 minutes"},Yc={value:"30 minutes"},Xc={value:"1 hour"},Zc={value:"2 hours"},Qc={value:"6 hours"},eu={value:"12 hours"},tu={value:"daily"},nu=At(()=>a("hr",null,null,-1)),su={class:"form-group"},ou={for:"caldavUrl"},lu=["placeholder"],ru={class:"form-group"},iu={for:"caldavUsername"},cu=["placeholder"],uu={class:"form-group"},au={for:"caldavPassword"},fu=["placeholder"],du={class:"form-group"},hu={for:"syncFrequency"},pu={value:"1 minute"},_u={value:"5 minutes"},mu={value:"15 minutes"},gu={value:"30 minutes"},vu={value:"1 hour"},bu={value:"2 hours"},yu={value:"6 hours"},wu={value:"12 hours"},xu={value:"daily"},Cu=At(()=>a("hr",null,null,-1)),Eu={class:"form-group"},$u={class:"table"},Su={key:0},Iu={key:1},Tu=["onUpdate:modelValue"],Ou=["onUpdate:modelValue"],Au={key:0},Pu=["onUpdate:modelValue"],Uu={key:1},Mu=["onUpdate:modelValue"],Fu=At(()=>a("hr",null,null,-1)),Ru={class:"form-group"},Vu={class:"form-group"},ju=["href"],ku={class:"form-group"},Nu=["href"],Hu={style:{display:"flex",gap:"5px"}},Lu={key:0,type:"submit",class:"btn btn-primary"},Du={key:1},Ku={__name:"CalendarSettings",props:{calendar:Object},emits:["save"],setup(e,{emit:t}){const n=e,s=t,o=Q({}),l=Q(""),r=Q("#3498db"),i=Q("normal"),u=Q(""),d=Q("5 minutes"),_=Q(""),C=Q(""),p=Q(""),F=Q(!1),$=window.ljpccalendarmoduletranslations,j=async E=>{E.preventDefault(),F.value=!0;const I={_token:window.ljpccalendarmodule.csrf??"",name:l.value,color:r.value,custom_fields:{},permissions:o.value};i.value==="ics"&&(I.url=u.value,I.refresh=d.value),i.value==="caldav"&&(I.url=_.value,I.username=C.value,I.password=p.value,I.refresh=d.value);try{(await fetch(laroute.route("ljpccalendarmodule.api.calendar.update",{id:n.calendar.id})+"?_method=PUT",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(I)})).status===200?(showFloatingAlert("success",$.calendarHasBeenSaved),s("save")):(showFloatingAlert("error",$.errorSavingCalendar),console.error(data))}catch(X){showFloatingAlert("error",$.errorSavingCalendar),console.error(X)}finally{F.value=!1}},O=async()=>{if(confirm($.confirmDeleteCalendar))try{(await fetch(laroute.route("ljpccalendarmodule.api.calendar.delete",{id:n.calendar.id})+"?_method=DELETE",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({_token:window.ljpccalendarmodule.csrf??""})})).status===200?(showFloatingAlert("success",$.calendarHasBeenDeleted),s("save")):(showFloatingAlert("error",$.errorDeletingCalendar),console.error(data))}catch(E){showFloatingAlert("error",$.errorDeletingCalendar),console.error(E)}finally{F.value=!1}};return un(()=>{l.value=n.calendar.name,r.value=n.calendar.color,i.value=n.calendar.type,n.calendar.custom_fields&&(u.value=n.calendar.custom_fields.url,d.value=n.calendar.custom_fields.refresh),n.calendar.type==="caldav"&&n.calendar.custom_fields&&(_.value=n.calendar.custom_fields.url,C.value=n.calendar.custom_fields.username,p.value=n.calendar.custom_fields.password),o.value=n.calendar.permissions,fetch(laroute.route("ljpccalendarmodule.api.users")).then(E=>E.json()).then(E=>{E.results.forEach(P=>{o.value.hasOwnProperty(P.id)?o.value[P.id].userTeam=P.text:o.value[P.id]={userTeam:P.text,showInDashboard:!0,showInCalendar:!0,createItems:!0,editItems:!0}})}).catch(E=>console.error(E))}),(E,P)=>(D(),W("div",null,[a("h1",null,y(l.value),1),a("form",{onSubmit:j},[a("div",Mc,[a("label",Fc,[a("strong",null,y(v($).calendarName)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"calendarName",placeholder:v($).enterCalendarName,"onUpdate:modelValue":P[0]||(P[0]=I=>l.value=I)},null,8,Rc),[[_e,l.value]])]),a("div",Vc,[a("label",jc,[a("strong",null,y(v($).calendarColor)+":",1)]),q(a("input",{type:"color",class:"form-control",id:"colorPicker",placeholder:"#3498db","onUpdate:modelValue":P[1]||(P[1]=I=>r.value=I)},null,512),[[_e,r.value]]),a("div",kc,[a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[2]||(P[2]=I=>r.value="#3498db"),style:{"background-color":"#3498db"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[3]||(P[3]=I=>r.value="#e74c3c"),style:{"background-color":"#e74c3c"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[4]||(P[4]=I=>r.value="#e67e22"),style:{"background-color":"#e67e22"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[5]||(P[5]=I=>r.value="#1abc9c"),style:{"background-color":"#1abc9c"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[6]||(P[6]=I=>r.value="#9b59b6"),style:{"background-color":"#9b59b6"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[7]||(P[7]=I=>r.value="#2ecc71"),style:{"background-color":"#2ecc71"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[8]||(P[8]=I=>r.value="#f1c40f"),style:{"background-color":"#f1c40f"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[9]||(P[9]=I=>r.value="#833471"),style:{"background-color":"#833471"}}),a("button",{type:"button",class:"btn btn-sm swatch",onClick:P[10]||(P[10]=I=>r.value="#9980FA"),style:{"background-color":"#9980FA"}})])]),Nc,a("div",Hc,[a("label",null,[a("strong",null,y(v($).calendarType)+":",1)]),a("div",null,y(i.value==="normal"?v($).normal:i.value==="ics"?v($).ics:v($).caldav),1)]),i.value==="ics"?(D(),W(se,{key:0},[Lc,a("div",Dc,[a("label",Kc,[a("strong",null,y(v($).icsUrl)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"icsUrl",placeholder:v($).enterIcsUrl,"onUpdate:modelValue":P[11]||(P[11]=I=>u.value=I)},null,8,Bc),[[_e,u.value]])]),a("div",Wc,[a("label",qc,[a("strong",null,y(v($).syncFrequency)+":",1)]),q(a("select",{class:"form-control",id:"syncFrequency","onUpdate:modelValue":P[12]||(P[12]=I=>d.value=I)},[a("option",zc,y(v($).everyMinute),1),a("option",Gc,y(v($).every5Minutes),1),a("option",Jc,y(v($).every15Minutes),1),a("option",Yc,y(v($).every30Minutes),1),a("option",Xc,y(v($).everyHour),1),a("option",Zc,y(v($).every2Hours),1),a("option",Qc,y(v($).every6Hours),1),a("option",eu,y(v($).every12Hours),1),a("option",tu,y(v($).everyDay),1)],512),[[Zt,d.value]])])],64)):oe("",!0),i.value==="caldav"?(D(),W(se,{key:1},[nu,a("div",su,[a("label",ou,[a("strong",null,y(v($).caldavUrl)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"caldavUrl","onUpdate:modelValue":P[13]||(P[13]=I=>_.value=I),placeholder:v($).enterCaldavUrl},null,8,lu),[[_e,_.value]])]),a("div",ru,[a("label",iu,[a("strong",null,y(v($).caldavUsername)+":",1)]),q(a("input",{type:"text",class:"form-control",id:"caldavUsername","onUpdate:modelValue":P[14]||(P[14]=I=>C.value=I),placeholder:v($).enterCaldavUsername},null,8,cu),[[_e,C.value]])]),a("div",uu,[a("label",au,[a("strong",null,y(v($).caldavPassword)+":",1)]),q(a("input",{type:"password",class:"form-control",id:"caldavPassword","onUpdate:modelValue":P[15]||(P[15]=I=>p.value=I),placeholder:v($).enterCaldavPassword},null,8,fu),[[_e,p.value]])]),a("div",du,[a("label",hu,[a("strong",null,y(v($).syncFrequency)+":",1)]),q(a("select",{class:"form-control",id:"syncFrequency","onUpdate:modelValue":P[16]||(P[16]=I=>d.value=I)},[a("option",pu,y(v($).everyMinute),1),a("option",_u,y(v($).every5Minutes),1),a("option",mu,y(v($).every15Minutes),1),a("option",gu,y(v($).every30Minutes),1),a("option",vu,y(v($).everyHour),1),a("option",bu,y(v($).every2Hours),1),a("option",yu,y(v($).every6Hours),1),a("option",wu,y(v($).every12Hours),1),a("option",xu,y(v($).everyDay),1)],512),[[Zt,d.value]])])],64)):oe("",!0),Cu,a("div",Eu,[a("label",null,[a("strong",null,y(v($).permissions)+":",1)]),a("table",$u,[a("thead",null,[a("tr",null,[a("th",null,y(v($).userTeam),1),a("th",null,y(v($).showInDashboardWidget),1),a("th",null,y(v($).showInCalendar),1),i.value!=="ics"?(D(),W("th",Su,y(v($).createEvents),1)):oe("",!0),i.value!=="ics"?(D(),W("th",Iu,y(v($).editEvents),1)):oe("",!0)])]),a("tbody",null,[(D(!0),W(se,null,ns(o.value,(I,X)=>(D(),W("tr",{key:X},[a("td",null,y(I.userTeam),1),a("td",null,[q(a("input",{type:"checkbox","onUpdate:modelValue":ee=>I.showInDashboard=ee},null,8,Tu),[[Ne,I.showInDashboard]])]),a("td",null,[q(a("input",{type:"checkbox","onUpdate:modelValue":ee=>I.showInCalendar=ee},null,8,Ou),[[Ne,I.showInCalendar]])]),i.value!=="ics"?(D(),W("td",Au,[q(a("input",{type:"checkbox","onUpdate:modelValue":ee=>I.createItems=ee},null,8,Pu),[[Ne,I.createItems]])])):oe("",!0),i.value!=="ics"?(D(),W("td",Uu,[q(a("input",{type:"checkbox","onUpdate:modelValue":ee=>I.editItems=ee},null,8,Mu),[[Ne,I.editItems]])])):oe("",!0)]))),128))])])]),Fu,a("div",Ru,[a("label",null,[a("strong",null,y(v($).export)+":",1)])]),a("div",Vu,[tt(y(v($).allDetails)+": ",1),a("a",{href:n.calendar.ics_url},y(n.calendar.ics_url),9,ju)]),a("div",ku,[tt(y(v($).onlyFreeBusy)+": ",1),a("a",{href:n.calendar.obfuscated_ics_url},y(n.calendar.obfuscated_ics_url),9,Nu)]),a("div",Hu,[F.value?(D(),W("span",Du,y(v($).saving),1)):(D(),W("button",Lu,y(v($).save),1)),a("button",{type:"button",onClick:O,class:"btn btn-danger"},y(v($).deleteCalendar),1)])],32)]))}},Bu=rs(Ku,[["__scopeId","data-v-5f77aae0"]]),Wu={class:"container"},qu={class:"row"},zu={class:"col-sm-3"},Gu={class:"col-sm-8"},Ju={key:0},Yu={__name:"App",setup(e){const t=Q("intro"),n=Q([]);Q(!1);const s=window.ljpccalendarmoduletranslations,o=Wo(()=>n.value.length===0?null:n.value.find(u=>u.isActive===!0)),l=u=>{t.value="edit",n.value.forEach(d=>{d.isActive=d.id===u})},r=()=>{t.value="new",n.value.forEach(u=>{u.isActive=!1})},i=async()=>{try{const u=await fetch(laroute.route("ljpccalendarmodule.api.calendars.all"),{method:"GET",headers:{"Content-Type":"application/json"}});n.value=await u.json(),t.value="intro"}catch(u){console.error(u)}};return un(async()=>{await i()}),(u,d)=>(D(),W("div",Wu,[a("div",qu,[a("div",zu,[Te(wi,{calendars:n.value,onSelectCalendar:l,onAddNewCalendar:r},null,8,["calendars"])]),a("div",Gu,[t.value==="intro"?(D(),W("p",Ju,y(v(s).welcomeMessage),1)):oe("",!0),t.value==="new"?(D(),Nn(Uc,{key:1,onSave:i})):oe("",!0),t.value==="edit"&&o.value?(D(),Nn(Bu,{calendar:o.value,key:"calendar"+o.value.id,onSave:i},null,8,["calendar"])):oe("",!0)])])]))}},Xu=rs(Yu,[["__scopeId","data-v-f6b226b9"]]),Zu=()=>{pi(Xu).mount("#calendar-settings-app")};document.addEventListener("DOMContentLoaded",function(){let e=0;const t=()=>{window.ljpccalendarmoduletranslations?(clearTimeout(e),Zu()):e=setTimeout(t,20)};t()});
|