@data-fair/app-calendar 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{aF as Le,aG as Me,q as X,r as V,U as j,aD as ve,e as B,a as H,aH as je,c as P,n as me,aj as W,aI as xe,w as he,aJ as Be,aK as qe,ab as oe,a6 as Fe,aL as Ee,z,aM as Ye,s as G,R as Ue,o as Ge,f as Ne,a7 as Xe,a8 as Ke,ac as Je,O as Qe,af as Ze,X as et,aN as tt,v as nt,x as ot,Y as rt,Q as at,al as it,_ as st,ag as lt,aa as ct,A as ut,B as I,T as ft,ae as dt,a3 as vt,a5 as mt,a4 as ht,F as gt,L as yt}from"./index-CAAiDM5V.js";import{p as Se,k as ae,l as ie,n as Oe,o as pe,q as wt,r as bt}from"./router-y7A7WVJP.js";class ${constructor(t){let{x:n,y:o,width:a,height:r}=t;this.x=n,this.y=o,this.width=a,this.height=r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Pe(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function xt(e){return Array.isArray(e)?new $({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Et(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),o=n.transform;if(o){let a,r,s,i,c;if(o.startsWith("matrix3d("))a=o.slice(9,-1).split(/, /),r=+a[0],s=+a[5],i=+a[12],c=+a[13];else if(o.startsWith("matrix("))a=o.slice(7,-1).split(/, /),r=+a[0],s=+a[3],i=+a[4],c=+a[5];else return new $(t);const f=n.transformOrigin,l=t.x-i-(1-r)*parseFloat(f),g=t.y-c-(1-s)*parseFloat(f.slice(f.indexOf(" ")+1)),x=r?t.width/r:e.offsetWidth+1,w=s?t.height/s:e.offsetHeight+1;return new $({x:l,y:g,width:x,height:w})}else return new $(t)}function St(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let o;try{o=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof o.finished>"u"&&(o.finished=new Promise(a=>{o.onfinish=()=>{a(o)}})),o}const Z=new WeakMap;function Ot(e,t){Object.keys(t).forEach(n=>{if(Le(n)){const o=Me(n),a=Z.get(e);if(t[n]==null)a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))});else if(!a||![...a].some(r=>r[0]===o&&r[1]===t[n])){e.addEventListener(o,t[n]);const r=a||new Set;r.add([o,t[n]]),Z.has(e)||Z.set(e,r)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function pt(e,t){Object.keys(t).forEach(n=>{if(Le(n)){const o=Me(n),a=Z.get(e);a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))})}else e.removeAttribute(n)})}function _e(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Pt="cubic-bezier(0.4, 0, 0.2, 1)",sn="cubic-bezier(0.0, 0, 0.2, 1)",ln="cubic-bezier(0.4, 0, 1, 1)";function Ct(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?At(e):ge(e))return e;e=e.parentElement}return document.scrollingElement}function te(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(ge(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function ge(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function At(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function Rt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function se(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Tt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ce(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:o}=e,a=o==="left"?0:o==="center"?t.width/2:o==="right"?t.width:o,r=n==="top"?0:n==="bottom"?t.height:n;return se({x:a,y:r},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:o}=e,a=n==="left"?0:n==="right"?t.width:n,r=o==="top"?0:o==="center"?t.height/2:o==="bottom"?t.height:o;return se({x:a,y:r},t)}return se({x:t.width/2,y:t.height/2},t)}const We={static:Mt,connected:Ft},kt=X({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in We},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Lt(e,t){const n=V({}),o=V();j&&ve(()=>!!(t.isActive.value&&e.locationStrategy),r=>{var s,i;B(()=>e.locationStrategy,r),H(()=>{window.removeEventListener("resize",a),o.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(s=e.locationStrategy(t,e,n))==null?void 0:s.updateLocation:o.value=(i=We[e.locationStrategy](t,e,n))==null?void 0:i.updateLocation});function a(r){var s;(s=o.value)==null||s.call(o,r)}return{contentStyles:n,updateLocation:o}}function Mt(){}function Bt(e,t){const n=Et(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Ft(e,t,n){(Array.isArray(e.target.value)||Rt(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:r}=je(()=>{const v=Se(t.location,e.isRtl.value),d=t.origin==="overlap"?v:t.origin==="auto"?ae(v):Se(t.origin,e.isRtl.value);return v.side===d.side&&v.align===ie(d).align?{preferredAnchor:Oe(v),preferredOrigin:Oe(d)}:{preferredAnchor:v,preferredOrigin:d}}),[s,i,c,f]=["minWidth","minHeight","maxWidth","maxHeight"].map(v=>P(()=>{const d=parseFloat(t[v]);return isNaN(d)?1/0:d})),l=P(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const v=t.offset.split(" ").map(parseFloat);return v.length<2&&v.push(0),v}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let g=!1;const x=new ResizeObserver(()=>{g&&w()});B([e.target,e.contentEl],(v,d)=>{let[C,A]=v,[S,E]=d;S&&!Array.isArray(S)&&x.unobserve(S),C&&!Array.isArray(C)&&x.observe(C),E&&x.unobserve(E),A&&x.observe(A)},{immediate:!0}),H(()=>{x.disconnect()});function w(){if(g=!1,requestAnimationFrame(()=>g=!0),!e.target.value||!e.contentEl.value)return;const v=xt(e.target.value),d=Bt(e.contentEl.value,e.isRtl.value),C=te(e.contentEl.value),A=12;C.length||(C.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=C.reduce((O,b)=>{const m=b.getBoundingClientRect(),y=new $({x:b===document.documentElement?0:m.x,y:b===document.documentElement?0:m.y,width:b.clientWidth,height:b.clientHeight});return O?new $({x:Math.max(O.left,y.left),y:Math.max(O.top,y.top),width:Math.min(O.right,y.right)-Math.max(O.left,y.left),height:Math.min(O.bottom,y.bottom)-Math.max(O.top,y.top)}):y},void 0);S.x+=A,S.y+=A,S.width-=A*2,S.height-=A*2;let E={anchor:a.value,origin:r.value};function T(O){const b=new $(d),m=Ce(O.anchor,v),y=Ce(O.origin,b);let{x:N,y:_}=Tt(m,y);switch(O.anchor.side){case"top":_-=l.value[0];break;case"bottom":_+=l.value[0];break;case"left":N-=l.value[0];break;case"right":N+=l.value[0];break}switch(O.anchor.align){case"top":_-=l.value[1];break;case"bottom":_+=l.value[1];break;case"left":N-=l.value[1];break;case"right":N+=l.value[1];break}return b.x+=N,b.y+=_,b.width=Math.min(b.width,c.value),b.height=Math.min(b.height,f.value),{overflows:Pe(b,S),x:N,y:_}}let L=0,F=0;const p={x:0,y:0},u={x:!1,y:!1};let k=-1;for(;!(k++>10);){const{x:O,y:b,overflows:m}=T(E);L+=O,F+=b,d.x+=O,d.y+=b;{const y=pe(E.anchor),N=m.x.before||m.x.after,_=m.y.before||m.y.after;let q=!1;if(["x","y"].forEach(R=>{if(R==="x"&&N&&!u.x||R==="y"&&_&&!u.y){const D={anchor:{...E.anchor},origin:{...E.origin}},Y=R==="x"?y==="y"?ie:ae:y==="y"?ae:ie;D.anchor=Y(D.anchor),D.origin=Y(D.origin);const{overflows:U}=T(D);(U[R].before<=m[R].before&&U[R].after<=m[R].after||U[R].before+U[R].after<(m[R].before+m[R].after)/2)&&(E=D,q=u[R]=!0)}}),q)continue}m.x.before&&(L+=m.x.before,d.x+=m.x.before),m.x.after&&(L-=m.x.after,d.x-=m.x.after),m.y.before&&(F+=m.y.before,d.y+=m.y.before),m.y.after&&(F-=m.y.after,d.y-=m.y.after);{const y=Pe(d,S);p.x=S.width-y.x.before-y.x.after,p.y=S.height-y.y.before-y.y.after,L+=y.x.before,d.x+=y.x.before,F+=y.y.before,d.y+=y.y.before}break}const re=pe(E.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${E.anchor.side} ${E.anchor.align}`,transformOrigin:`${E.origin.side} ${E.origin.align}`,top:W(le(F)),left:e.isRtl.value?void 0:W(le(L)),right:e.isRtl.value?W(le(-L)):void 0,minWidth:W(re==="y"?Math.min(s.value,v.width):s.value),maxWidth:W(Ae(xe(p.x,s.value===1/0?0:s.value,c.value))),maxHeight:W(Ae(xe(p.y,i.value===1/0?0:i.value,f.value)))}),{available:p,contentBox:d}}return B(()=>[a.value,r.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>w()),me(()=>{const v=w();if(!v)return;const{available:d,contentBox:C}=v;C.height>d.y&&requestAnimationFrame(()=>{w(),requestAnimationFrame(()=>{w()})})}),{updateLocation:w}}function le(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ae(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let fe=!0;const ne=[];function Nt(e){!fe||ne.length?(ne.push(e),de()):(fe=!1,e(),de())}let Re=-1;function de(){cancelAnimationFrame(Re),Re=requestAnimationFrame(()=>{const e=ne.shift();e&&e(),ne.length?de():fe=!0})}const ee={none:null,close:Ht,block:Dt,reposition:It},_t=X({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in ee}},"VOverlay-scroll-strategies");function Wt(e,t){if(!j)return;let n;he(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Be(),await new Promise(o=>setTimeout(o)),n.active&&n.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(o=ee[e.scrollStrategy])==null||o.call(ee,t,e,n)}))}),H(()=>{n==null||n.stop()})}function Ht(e){function t(n){e.isActive.value=!1}He(e.targetEl.value??e.contentEl.value,t)}function Dt(e,t){var s;const n=(s=e.root.value)==null?void 0:s.offsetParent,o=[...new Set([...te(e.targetEl.value,t.contained?n:void 0),...te(e.contentEl.value,t.contained?n:void 0)])].filter(i=>!i.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,r=(i=>ge(i)&&i)(n||document.documentElement);r&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((i,c)=>{i.style.setProperty("--v-body-scroll-x",W(-i.scrollLeft)),i.style.setProperty("--v-body-scroll-y",W(-i.scrollTop)),i!==document.documentElement&&i.style.setProperty("--v-scrollbar-offset",W(a)),i.classList.add("v-overlay-scroll-blocked")}),H(()=>{o.forEach((i,c)=>{const f=parseFloat(i.style.getPropertyValue("--v-body-scroll-x")),l=parseFloat(i.style.getPropertyValue("--v-body-scroll-y")),g=i.style.scrollBehavior;i.style.scrollBehavior="auto",i.style.removeProperty("--v-body-scroll-x"),i.style.removeProperty("--v-body-scroll-y"),i.style.removeProperty("--v-scrollbar-offset"),i.classList.remove("v-overlay-scroll-blocked"),i.scrollLeft=-f,i.scrollTop=-l,i.style.scrollBehavior=g}),r&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function It(e,t,n){let o=!1,a=-1,r=-1;function s(i){Nt(()=>{var l,g;const c=performance.now();(g=(l=e.updateLocation).value)==null||g.call(l,i),o=(performance.now()-c)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?i=>i():requestIdleCallback)(()=>{n.run(()=>{He(e.targetEl.value??e.contentEl.value,i=>{o?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{s(i)})})):s(i)})})}),H(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(a)})}function He(e,t){const n=[document,...te(e)];n.forEach(o=>{o.addEventListener("scroll",t,{passive:!0})}),H(()=>{n.forEach(o=>{o.removeEventListener("scroll",t)})})}const Vt=Symbol.for("vuetify:v-menu"),zt=X({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function $t(e,t){let n=()=>{};function o(s){n==null||n();const i=Number(s?e.openDelay:e.closeDelay);return new Promise(c=>{n=qe(i,()=>{t==null||t(s),c(s)})})}function a(){return o(!0)}function r(){return o(!1)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:r}}const jt=X({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...zt()},"VOverlay-activator");function qt(e,t){let{isActive:n,isTop:o,contentEl:a}=t;const r=oe("useActivator"),s=V();let i=!1,c=!1,f=!0;const l=P(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),g=P(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!l.value),{runOpenDelay:x,runCloseDelay:w}=$t(e,u=>{u===(e.openOnHover&&i||l.value&&c)&&!(e.openOnHover&&n.value&&!o.value)&&(n.value!==u&&(f=!0),n.value=u)}),v=V(),d={onClick:u=>{u.stopPropagation(),s.value=u.currentTarget||u.target,n.value||(v.value=[u.clientX,u.clientY]),n.value=!n.value},onMouseenter:u=>{var k;(k=u.sourceCapabilities)!=null&&k.firesTouchEvents||(i=!0,s.value=u.currentTarget||u.target,x())},onMouseleave:u=>{i=!1,w()},onFocus:u=>{Ye(u.target,":focus-visible")!==!1&&(c=!0,u.stopPropagation(),s.value=u.currentTarget||u.target,x())},onBlur:u=>{c=!1,u.stopPropagation(),w()}},C=P(()=>{const u={};return g.value&&(u.onClick=d.onClick),e.openOnHover&&(u.onMouseenter=d.onMouseenter,u.onMouseleave=d.onMouseleave),l.value&&(u.onFocus=d.onFocus,u.onBlur=d.onBlur),u}),A=P(()=>{const u={};if(e.openOnHover&&(u.onMouseenter=()=>{i=!0,x()},u.onMouseleave=()=>{i=!1,w()}),l.value&&(u.onFocusin=()=>{c=!0,x()},u.onFocusout=()=>{c=!1,w()}),e.closeOnContentClick){const k=Fe(Vt,null);u.onClick=()=>{n.value=!1,k==null||k.closeParents()}}return u}),S=P(()=>{const u={};return e.openOnHover&&(u.onMouseenter=()=>{f&&(i=!0,f=!1,x())},u.onMouseleave=()=>{i=!1,w()}),u});B(o,u=>{var k;u&&(e.openOnHover&&!i&&(!l.value||!c)||l.value&&!c&&(!e.openOnHover||!i))&&!((k=a.value)!=null&&k.contains(document.activeElement))&&(n.value=!1)}),B(n,u=>{u||setTimeout(()=>{v.value=void 0})},{flush:"post"});const E=Ee();he(()=>{E.value&&me(()=>{s.value=E.el})});const T=Ee(),L=P(()=>e.target==="cursor"&&v.value?v.value:T.value?T.el:De(e.target,r)||s.value),F=P(()=>Array.isArray(L.value)?void 0:L.value);let p;return B(()=>!!e.activator,u=>{u&&j?(p=Be(),p.run(()=>{Yt(e,r,{activatorEl:s,activatorEvents:C})})):p&&p.stop()},{flush:"post",immediate:!0}),H(()=>{p==null||p.stop()}),{activatorEl:s,activatorRef:E,target:L,targetEl:F,targetRef:T,activatorEvents:C,contentEvents:A,scrimEvents:S}}function Yt(e,t,n){let{activatorEl:o,activatorEvents:a}=n;B(()=>e.activator,(c,f)=>{if(f&&c!==f){const l=i(f);l&&s(l)}c&&me(()=>r())},{immediate:!0}),B(()=>e.activatorProps,()=>{r()}),H(()=>{s()});function r(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&Ot(c,z(a.value,f))}function s(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&pt(c,z(a.value,f))}function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const f=De(c,t);return o.value=(f==null?void 0:f.nodeType)===Node.ELEMENT_NODE?f:void 0,o.value}}function De(e,t){var o,a;if(!e)return;let n;if(e==="parent"){let r=(a=(o=t==null?void 0:t.proxy)==null?void 0:o.$el)==null?void 0:a.parentNode;for(;r!=null&&r.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function Ut(){if(!j)return G(!1);const{ssr:e}=Ue();if(e){const t=G(!1);return Ge(()=>{t.value=!0}),t}else return G(!0)}const Gt=X({eager:Boolean},"lazy");function Xt(e,t){const n=G(!1),o=P(()=>n.value||e.eager||t.value);B(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:o,onAfterLeave:a}}function Kt(){const t=oe("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Te=Symbol.for("vuetify:stack"),J=Ne([]);function Jt(e,t,n){const o=oe("useStack"),a=!n,r=Fe(Te,void 0),s=Ne({activeChildren:new Set});Xe(Te,s);const i=G(+t.value);ve(e,()=>{var g;const l=(g=J.at(-1))==null?void 0:g[1];i.value=l?l+10:+t.value,a&&J.push([o.uid,i.value]),r==null||r.activeChildren.add(o.uid),H(()=>{if(a){const x=Ke(J).findIndex(w=>w[0]===o.uid);J.splice(x,1)}r==null||r.activeChildren.delete(o.uid)})});const c=G(!0);a&&he(()=>{var g;const l=((g=J.at(-1))==null?void 0:g[0])===o.uid;setTimeout(()=>c.value=l)});const f=P(()=>!s.activeChildren.size);return{globalTop:Je(c),localTop:f,stackStyles:P(()=>({zIndex:i.value}))}}function Qt(e){return{teleportTarget:P(()=>{const n=e();if(n===!0||!j)return;const o=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(o==null)return;let a=[...o.children].find(r=>r.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",o.appendChild(a)),a})}}function Zt(){return!0}function Ie(e,t,n){if(!e||Ve(e,n)===!1)return!1;const o=_e(t);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(r=>r==null?void 0:r.contains(e.target))}function Ve(e,t){return(typeof t.value=="object"&&t.value.closeConditional||Zt)(e)}function en(e,t,n){const o=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&Ie(e,t,n)&&setTimeout(()=>{Ve(e,n)&&o&&o(e)},0)}function ke(e,t){const n=_e(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const tn={mounted(e,t){const n=a=>en(a,e,t),o=a=>{e._clickOutside.lastMousedownWasOutside=Ie(a,e,t)};ke(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:o}},beforeUnmount(e,t){e._clickOutside&&(ke(e,n=>{var r;if(!n||!((r=e._clickOutside)!=null&&r[t.instance.$.uid]))return;const{onClick:o,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",o,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function nn(e){const{modelValue:t,color:n,...o}=e;return I(yt,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&I("div",z({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const on=X({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...jt(),...Qe(),...Ze(),...Gt(),...kt(),..._t(),...et(),...tt()},"VOverlay"),cn=nt()({name:"VOverlay",directives:{ClickOutside:tn},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...on()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:o,emit:a}=t;const r=oe("VOverlay"),s=V(),i=V(),c=V(),f=ot(e,"modelValue"),l=P({get:()=>f.value,set:h=>{h&&e.disabled||(f.value=h)}}),{themeClasses:g}=rt(e),{rtlClasses:x,isRtl:w}=at(),{hasContent:v,onAfterLeave:d}=Xt(e,l),C=it(P(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:A,localTop:S,stackStyles:E}=Jt(l,st(e,"zIndex"),e._disableGlobalStack),{activatorEl:T,activatorRef:L,target:F,targetEl:p,targetRef:u,activatorEvents:k,contentEvents:re,scrimEvents:O}=qt(e,{isActive:l,isTop:S,contentEl:c}),{teleportTarget:b}=Qt(()=>{var K,we,be;const h=e.attach||e.contained;if(h)return h;const M=((K=T==null?void 0:T.value)==null?void 0:K.getRootNode())||((be=(we=r.proxy)==null?void 0:we.$el)==null?void 0:be.getRootNode());return M instanceof ShadowRoot?M:!1}),{dimensionStyles:m}=lt(e),y=Ut(),{scopeId:N}=Kt();B(()=>e.disabled,h=>{h&&(l.value=!1)});const{contentStyles:_,updateLocation:q}=Lt(e,{isRtl:w,contentEl:c,target:F,isActive:l});Wt(e,{root:s,contentEl:c,targetEl:p,isActive:l,updateLocation:q});function R(h){a("click:outside",h),e.persistent?Q():l.value=!1}function D(h){return l.value&&A.value&&(!e.scrim||h.target===i.value||h instanceof MouseEvent&&h.shadowTarget===i.value)}j&&B(l,h=>{h?window.addEventListener("keydown",Y):window.removeEventListener("keydown",Y)},{immediate:!0}),ct(()=>{j&&window.removeEventListener("keydown",Y)});function Y(h){var M,K;h.key==="Escape"&&A.value&&(e.persistent?Q():(l.value=!1,(M=c.value)!=null&&M.contains(document.activeElement)&&((K=T.value)==null||K.focus())))}const U=wt();ve(()=>e.closeOnBack,()=>{bt(U,h=>{A.value&&l.value?(h(!1),e.persistent?Q():l.value=!1):h()})});const ye=V();B(()=>l.value&&(e.absolute||e.contained)&&b.value==null,h=>{if(h){const M=Ct(s.value);M&&M!==document.scrollingElement&&(ye.value=M.scrollTop)}});function Q(){e.noClickAnimation||c.value&&St(c.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Pt})}function ze(){a("afterEnter")}function $e(){d(),a("afterLeave")}return ut(()=>{var h;return I(gt,null,[(h=n.activator)==null?void 0:h.call(n,{isActive:l.value,targetRef:u,props:z({ref:L},k.value,e.activatorProps)}),y.value&&v.value&&I(ft,{disabled:!b.value,to:b.value},{default:()=>[I("div",z({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":l.value,"v-overlay--contained":e.contained},g.value,x.value,e.class],style:[E.value,{"--v-overlay-opacity":e.opacity,top:W(ye.value)},e.style],ref:s},N,o),[I(nn,z({color:C,modelValue:l.value&&!!e.scrim,ref:i},O.value),null),I(dt,{appear:!0,persisted:!0,transition:e.transition,target:F.value,onAfterEnter:ze,onAfterLeave:$e},{default:()=>{var M;return[vt(I("div",z({ref:c,class:["v-overlay__content",e.contentClass],style:[m.value,_.value]},re.value,e.contentProps),[(M=n.default)==null?void 0:M.call(n,{isActive:l})]),[[mt,l.value],[ht("click-outside"),{handler:R,closeConditional:D,include:()=>[T.value]}]])]}})])]})])}),{activatorEl:T,scrimEl:i,target:F,animateClick:Q,contentEl:c,globalTop:A,localTop:S,updateLocation:q}}}),ce=Symbol("Forwarded refs");function ue(e,t){let n=e;for(;n;){const o=Reflect.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function un(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e[ce]=n,new Proxy(e,{get(a,r){if(Reflect.has(a,r))return Reflect.get(a,r);if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,r)){const i=Reflect.get(s.value,r);return typeof i=="function"?i.bind(s.value):i}}},has(a,r){if(Reflect.has(a,r))return!0;if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,r))return!0;return!1},set(a,r,s){if(Reflect.has(a,r))return Reflect.set(a,r,s);if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,r))return Reflect.set(i.value,r,s);return!1},getOwnPropertyDescriptor(a,r){var i;const s=Reflect.getOwnPropertyDescriptor(a,r);if(s)return s;if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const c of n){if(!c.value)continue;const f=ue(c.value,r)??("_"in c.value?ue((i=c.value._)==null?void 0:i.setupState,r):void 0);if(f)return f}for(const c of n){const f=c.value&&c.value[ce];if(!f)continue;const l=f.slice();for(;l.length;){const g=l.shift(),x=ue(g.value,r);if(x)return x;const w=g.value&&g.value[ce];w&&l.push(...w)}}}}})}export{cn as V,St as a,ln as b,Vt as c,sn as d,Gt as e,un as f,xt as g,Xt as h,Ct as i,on as m,Et as n,Pt as s,Kt as u};
1
+ import{aF as Le,aG as Me,q as X,r as V,U as j,aD as ve,e as B,a as H,aH as je,c as P,n as me,aj as W,aI as xe,w as he,aJ as Be,aK as qe,ab as oe,a6 as Fe,aL as Ee,z,aM as Ye,s as G,R as Ue,o as Ge,f as Ne,a7 as Xe,a8 as Ke,ac as Je,O as Qe,af as Ze,X as et,aN as tt,v as nt,x as ot,Y as rt,Q as at,al as it,_ as st,ag as lt,aa as ct,A as ut,B as I,T as ft,ae as dt,a3 as vt,a5 as mt,a4 as ht,F as gt,L as yt}from"./index-BOM4rIEv.js";import{p as Se,k as ae,l as ie,n as Oe,o as pe,q as wt,r as bt}from"./router-tttAuCuM.js";class ${constructor(t){let{x:n,y:o,width:a,height:r}=t;this.x=n,this.y=o,this.width=a,this.height=r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Pe(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function xt(e){return Array.isArray(e)?new $({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Et(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),o=n.transform;if(o){let a,r,s,i,c;if(o.startsWith("matrix3d("))a=o.slice(9,-1).split(/, /),r=+a[0],s=+a[5],i=+a[12],c=+a[13];else if(o.startsWith("matrix("))a=o.slice(7,-1).split(/, /),r=+a[0],s=+a[3],i=+a[4],c=+a[5];else return new $(t);const f=n.transformOrigin,l=t.x-i-(1-r)*parseFloat(f),g=t.y-c-(1-s)*parseFloat(f.slice(f.indexOf(" ")+1)),x=r?t.width/r:e.offsetWidth+1,w=s?t.height/s:e.offsetHeight+1;return new $({x:l,y:g,width:x,height:w})}else return new $(t)}function St(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let o;try{o=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof o.finished>"u"&&(o.finished=new Promise(a=>{o.onfinish=()=>{a(o)}})),o}const Z=new WeakMap;function Ot(e,t){Object.keys(t).forEach(n=>{if(Le(n)){const o=Me(n),a=Z.get(e);if(t[n]==null)a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))});else if(!a||![...a].some(r=>r[0]===o&&r[1]===t[n])){e.addEventListener(o,t[n]);const r=a||new Set;r.add([o,t[n]]),Z.has(e)||Z.set(e,r)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function pt(e,t){Object.keys(t).forEach(n=>{if(Le(n)){const o=Me(n),a=Z.get(e);a==null||a.forEach(r=>{const[s,i]=r;s===o&&(e.removeEventListener(o,i),a.delete(r))})}else e.removeAttribute(n)})}function _e(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Pt="cubic-bezier(0.4, 0, 0.2, 1)",sn="cubic-bezier(0.0, 0, 0.2, 1)",ln="cubic-bezier(0.4, 0, 1, 1)";function Ct(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?At(e):ge(e))return e;e=e.parentElement}return document.scrollingElement}function te(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(ge(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function ge(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function At(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function Rt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function se(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Tt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ce(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:o}=e,a=o==="left"?0:o==="center"?t.width/2:o==="right"?t.width:o,r=n==="top"?0:n==="bottom"?t.height:n;return se({x:a,y:r},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:o}=e,a=n==="left"?0:n==="right"?t.width:n,r=o==="top"?0:o==="center"?t.height/2:o==="bottom"?t.height:o;return se({x:a,y:r},t)}return se({x:t.width/2,y:t.height/2},t)}const We={static:Mt,connected:Ft},kt=X({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in We},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Lt(e,t){const n=V({}),o=V();j&&ve(()=>!!(t.isActive.value&&e.locationStrategy),r=>{var s,i;B(()=>e.locationStrategy,r),H(()=>{window.removeEventListener("resize",a),o.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(s=e.locationStrategy(t,e,n))==null?void 0:s.updateLocation:o.value=(i=We[e.locationStrategy](t,e,n))==null?void 0:i.updateLocation});function a(r){var s;(s=o.value)==null||s.call(o,r)}return{contentStyles:n,updateLocation:o}}function Mt(){}function Bt(e,t){const n=Et(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Ft(e,t,n){(Array.isArray(e.target.value)||Rt(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:r}=je(()=>{const v=Se(t.location,e.isRtl.value),d=t.origin==="overlap"?v:t.origin==="auto"?ae(v):Se(t.origin,e.isRtl.value);return v.side===d.side&&v.align===ie(d).align?{preferredAnchor:Oe(v),preferredOrigin:Oe(d)}:{preferredAnchor:v,preferredOrigin:d}}),[s,i,c,f]=["minWidth","minHeight","maxWidth","maxHeight"].map(v=>P(()=>{const d=parseFloat(t[v]);return isNaN(d)?1/0:d})),l=P(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const v=t.offset.split(" ").map(parseFloat);return v.length<2&&v.push(0),v}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let g=!1;const x=new ResizeObserver(()=>{g&&w()});B([e.target,e.contentEl],(v,d)=>{let[C,A]=v,[S,E]=d;S&&!Array.isArray(S)&&x.unobserve(S),C&&!Array.isArray(C)&&x.observe(C),E&&x.unobserve(E),A&&x.observe(A)},{immediate:!0}),H(()=>{x.disconnect()});function w(){if(g=!1,requestAnimationFrame(()=>g=!0),!e.target.value||!e.contentEl.value)return;const v=xt(e.target.value),d=Bt(e.contentEl.value,e.isRtl.value),C=te(e.contentEl.value),A=12;C.length||(C.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=C.reduce((O,b)=>{const m=b.getBoundingClientRect(),y=new $({x:b===document.documentElement?0:m.x,y:b===document.documentElement?0:m.y,width:b.clientWidth,height:b.clientHeight});return O?new $({x:Math.max(O.left,y.left),y:Math.max(O.top,y.top),width:Math.min(O.right,y.right)-Math.max(O.left,y.left),height:Math.min(O.bottom,y.bottom)-Math.max(O.top,y.top)}):y},void 0);S.x+=A,S.y+=A,S.width-=A*2,S.height-=A*2;let E={anchor:a.value,origin:r.value};function T(O){const b=new $(d),m=Ce(O.anchor,v),y=Ce(O.origin,b);let{x:N,y:_}=Tt(m,y);switch(O.anchor.side){case"top":_-=l.value[0];break;case"bottom":_+=l.value[0];break;case"left":N-=l.value[0];break;case"right":N+=l.value[0];break}switch(O.anchor.align){case"top":_-=l.value[1];break;case"bottom":_+=l.value[1];break;case"left":N-=l.value[1];break;case"right":N+=l.value[1];break}return b.x+=N,b.y+=_,b.width=Math.min(b.width,c.value),b.height=Math.min(b.height,f.value),{overflows:Pe(b,S),x:N,y:_}}let L=0,F=0;const p={x:0,y:0},u={x:!1,y:!1};let k=-1;for(;!(k++>10);){const{x:O,y:b,overflows:m}=T(E);L+=O,F+=b,d.x+=O,d.y+=b;{const y=pe(E.anchor),N=m.x.before||m.x.after,_=m.y.before||m.y.after;let q=!1;if(["x","y"].forEach(R=>{if(R==="x"&&N&&!u.x||R==="y"&&_&&!u.y){const D={anchor:{...E.anchor},origin:{...E.origin}},Y=R==="x"?y==="y"?ie:ae:y==="y"?ae:ie;D.anchor=Y(D.anchor),D.origin=Y(D.origin);const{overflows:U}=T(D);(U[R].before<=m[R].before&&U[R].after<=m[R].after||U[R].before+U[R].after<(m[R].before+m[R].after)/2)&&(E=D,q=u[R]=!0)}}),q)continue}m.x.before&&(L+=m.x.before,d.x+=m.x.before),m.x.after&&(L-=m.x.after,d.x-=m.x.after),m.y.before&&(F+=m.y.before,d.y+=m.y.before),m.y.after&&(F-=m.y.after,d.y-=m.y.after);{const y=Pe(d,S);p.x=S.width-y.x.before-y.x.after,p.y=S.height-y.y.before-y.y.after,L+=y.x.before,d.x+=y.x.before,F+=y.y.before,d.y+=y.y.before}break}const re=pe(E.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${E.anchor.side} ${E.anchor.align}`,transformOrigin:`${E.origin.side} ${E.origin.align}`,top:W(le(F)),left:e.isRtl.value?void 0:W(le(L)),right:e.isRtl.value?W(le(-L)):void 0,minWidth:W(re==="y"?Math.min(s.value,v.width):s.value),maxWidth:W(Ae(xe(p.x,s.value===1/0?0:s.value,c.value))),maxHeight:W(Ae(xe(p.y,i.value===1/0?0:i.value,f.value)))}),{available:p,contentBox:d}}return B(()=>[a.value,r.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>w()),me(()=>{const v=w();if(!v)return;const{available:d,contentBox:C}=v;C.height>d.y&&requestAnimationFrame(()=>{w(),requestAnimationFrame(()=>{w()})})}),{updateLocation:w}}function le(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ae(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let fe=!0;const ne=[];function Nt(e){!fe||ne.length?(ne.push(e),de()):(fe=!1,e(),de())}let Re=-1;function de(){cancelAnimationFrame(Re),Re=requestAnimationFrame(()=>{const e=ne.shift();e&&e(),ne.length?de():fe=!0})}const ee={none:null,close:Ht,block:Dt,reposition:It},_t=X({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in ee}},"VOverlay-scroll-strategies");function Wt(e,t){if(!j)return;let n;he(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Be(),await new Promise(o=>setTimeout(o)),n.active&&n.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(o=ee[e.scrollStrategy])==null||o.call(ee,t,e,n)}))}),H(()=>{n==null||n.stop()})}function Ht(e){function t(n){e.isActive.value=!1}He(e.targetEl.value??e.contentEl.value,t)}function Dt(e,t){var s;const n=(s=e.root.value)==null?void 0:s.offsetParent,o=[...new Set([...te(e.targetEl.value,t.contained?n:void 0),...te(e.contentEl.value,t.contained?n:void 0)])].filter(i=>!i.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,r=(i=>ge(i)&&i)(n||document.documentElement);r&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((i,c)=>{i.style.setProperty("--v-body-scroll-x",W(-i.scrollLeft)),i.style.setProperty("--v-body-scroll-y",W(-i.scrollTop)),i!==document.documentElement&&i.style.setProperty("--v-scrollbar-offset",W(a)),i.classList.add("v-overlay-scroll-blocked")}),H(()=>{o.forEach((i,c)=>{const f=parseFloat(i.style.getPropertyValue("--v-body-scroll-x")),l=parseFloat(i.style.getPropertyValue("--v-body-scroll-y")),g=i.style.scrollBehavior;i.style.scrollBehavior="auto",i.style.removeProperty("--v-body-scroll-x"),i.style.removeProperty("--v-body-scroll-y"),i.style.removeProperty("--v-scrollbar-offset"),i.classList.remove("v-overlay-scroll-blocked"),i.scrollLeft=-f,i.scrollTop=-l,i.style.scrollBehavior=g}),r&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function It(e,t,n){let o=!1,a=-1,r=-1;function s(i){Nt(()=>{var l,g;const c=performance.now();(g=(l=e.updateLocation).value)==null||g.call(l,i),o=(performance.now()-c)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?i=>i():requestIdleCallback)(()=>{n.run(()=>{He(e.targetEl.value??e.contentEl.value,i=>{o?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{s(i)})})):s(i)})})}),H(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(a)})}function He(e,t){const n=[document,...te(e)];n.forEach(o=>{o.addEventListener("scroll",t,{passive:!0})}),H(()=>{n.forEach(o=>{o.removeEventListener("scroll",t)})})}const Vt=Symbol.for("vuetify:v-menu"),zt=X({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function $t(e,t){let n=()=>{};function o(s){n==null||n();const i=Number(s?e.openDelay:e.closeDelay);return new Promise(c=>{n=qe(i,()=>{t==null||t(s),c(s)})})}function a(){return o(!0)}function r(){return o(!1)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:r}}const jt=X({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...zt()},"VOverlay-activator");function qt(e,t){let{isActive:n,isTop:o,contentEl:a}=t;const r=oe("useActivator"),s=V();let i=!1,c=!1,f=!0;const l=P(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),g=P(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!l.value),{runOpenDelay:x,runCloseDelay:w}=$t(e,u=>{u===(e.openOnHover&&i||l.value&&c)&&!(e.openOnHover&&n.value&&!o.value)&&(n.value!==u&&(f=!0),n.value=u)}),v=V(),d={onClick:u=>{u.stopPropagation(),s.value=u.currentTarget||u.target,n.value||(v.value=[u.clientX,u.clientY]),n.value=!n.value},onMouseenter:u=>{var k;(k=u.sourceCapabilities)!=null&&k.firesTouchEvents||(i=!0,s.value=u.currentTarget||u.target,x())},onMouseleave:u=>{i=!1,w()},onFocus:u=>{Ye(u.target,":focus-visible")!==!1&&(c=!0,u.stopPropagation(),s.value=u.currentTarget||u.target,x())},onBlur:u=>{c=!1,u.stopPropagation(),w()}},C=P(()=>{const u={};return g.value&&(u.onClick=d.onClick),e.openOnHover&&(u.onMouseenter=d.onMouseenter,u.onMouseleave=d.onMouseleave),l.value&&(u.onFocus=d.onFocus,u.onBlur=d.onBlur),u}),A=P(()=>{const u={};if(e.openOnHover&&(u.onMouseenter=()=>{i=!0,x()},u.onMouseleave=()=>{i=!1,w()}),l.value&&(u.onFocusin=()=>{c=!0,x()},u.onFocusout=()=>{c=!1,w()}),e.closeOnContentClick){const k=Fe(Vt,null);u.onClick=()=>{n.value=!1,k==null||k.closeParents()}}return u}),S=P(()=>{const u={};return e.openOnHover&&(u.onMouseenter=()=>{f&&(i=!0,f=!1,x())},u.onMouseleave=()=>{i=!1,w()}),u});B(o,u=>{var k;u&&(e.openOnHover&&!i&&(!l.value||!c)||l.value&&!c&&(!e.openOnHover||!i))&&!((k=a.value)!=null&&k.contains(document.activeElement))&&(n.value=!1)}),B(n,u=>{u||setTimeout(()=>{v.value=void 0})},{flush:"post"});const E=Ee();he(()=>{E.value&&me(()=>{s.value=E.el})});const T=Ee(),L=P(()=>e.target==="cursor"&&v.value?v.value:T.value?T.el:De(e.target,r)||s.value),F=P(()=>Array.isArray(L.value)?void 0:L.value);let p;return B(()=>!!e.activator,u=>{u&&j?(p=Be(),p.run(()=>{Yt(e,r,{activatorEl:s,activatorEvents:C})})):p&&p.stop()},{flush:"post",immediate:!0}),H(()=>{p==null||p.stop()}),{activatorEl:s,activatorRef:E,target:L,targetEl:F,targetRef:T,activatorEvents:C,contentEvents:A,scrimEvents:S}}function Yt(e,t,n){let{activatorEl:o,activatorEvents:a}=n;B(()=>e.activator,(c,f)=>{if(f&&c!==f){const l=i(f);l&&s(l)}c&&me(()=>r())},{immediate:!0}),B(()=>e.activatorProps,()=>{r()}),H(()=>{s()});function r(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&Ot(c,z(a.value,f))}function s(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&pt(c,z(a.value,f))}function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const f=De(c,t);return o.value=(f==null?void 0:f.nodeType)===Node.ELEMENT_NODE?f:void 0,o.value}}function De(e,t){var o,a;if(!e)return;let n;if(e==="parent"){let r=(a=(o=t==null?void 0:t.proxy)==null?void 0:o.$el)==null?void 0:a.parentNode;for(;r!=null&&r.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function Ut(){if(!j)return G(!1);const{ssr:e}=Ue();if(e){const t=G(!1);return Ge(()=>{t.value=!0}),t}else return G(!0)}const Gt=X({eager:Boolean},"lazy");function Xt(e,t){const n=G(!1),o=P(()=>n.value||e.eager||t.value);B(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:o,onAfterLeave:a}}function Kt(){const t=oe("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Te=Symbol.for("vuetify:stack"),J=Ne([]);function Jt(e,t,n){const o=oe("useStack"),a=!n,r=Fe(Te,void 0),s=Ne({activeChildren:new Set});Xe(Te,s);const i=G(+t.value);ve(e,()=>{var g;const l=(g=J.at(-1))==null?void 0:g[1];i.value=l?l+10:+t.value,a&&J.push([o.uid,i.value]),r==null||r.activeChildren.add(o.uid),H(()=>{if(a){const x=Ke(J).findIndex(w=>w[0]===o.uid);J.splice(x,1)}r==null||r.activeChildren.delete(o.uid)})});const c=G(!0);a&&he(()=>{var g;const l=((g=J.at(-1))==null?void 0:g[0])===o.uid;setTimeout(()=>c.value=l)});const f=P(()=>!s.activeChildren.size);return{globalTop:Je(c),localTop:f,stackStyles:P(()=>({zIndex:i.value}))}}function Qt(e){return{teleportTarget:P(()=>{const n=e();if(n===!0||!j)return;const o=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(o==null)return;let a=[...o.children].find(r=>r.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",o.appendChild(a)),a})}}function Zt(){return!0}function Ie(e,t,n){if(!e||Ve(e,n)===!1)return!1;const o=_e(t);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(r=>r==null?void 0:r.contains(e.target))}function Ve(e,t){return(typeof t.value=="object"&&t.value.closeConditional||Zt)(e)}function en(e,t,n){const o=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&Ie(e,t,n)&&setTimeout(()=>{Ve(e,n)&&o&&o(e)},0)}function ke(e,t){const n=_e(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const tn={mounted(e,t){const n=a=>en(a,e,t),o=a=>{e._clickOutside.lastMousedownWasOutside=Ie(a,e,t)};ke(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:o}},beforeUnmount(e,t){e._clickOutside&&(ke(e,n=>{var r;if(!n||!((r=e._clickOutside)!=null&&r[t.instance.$.uid]))return;const{onClick:o,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",o,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function nn(e){const{modelValue:t,color:n,...o}=e;return I(yt,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&I("div",z({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const on=X({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...jt(),...Qe(),...Ze(),...Gt(),...kt(),..._t(),...et(),...tt()},"VOverlay"),cn=nt()({name:"VOverlay",directives:{ClickOutside:tn},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...on()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:o,emit:a}=t;const r=oe("VOverlay"),s=V(),i=V(),c=V(),f=ot(e,"modelValue"),l=P({get:()=>f.value,set:h=>{h&&e.disabled||(f.value=h)}}),{themeClasses:g}=rt(e),{rtlClasses:x,isRtl:w}=at(),{hasContent:v,onAfterLeave:d}=Xt(e,l),C=it(P(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:A,localTop:S,stackStyles:E}=Jt(l,st(e,"zIndex"),e._disableGlobalStack),{activatorEl:T,activatorRef:L,target:F,targetEl:p,targetRef:u,activatorEvents:k,contentEvents:re,scrimEvents:O}=qt(e,{isActive:l,isTop:S,contentEl:c}),{teleportTarget:b}=Qt(()=>{var K,we,be;const h=e.attach||e.contained;if(h)return h;const M=((K=T==null?void 0:T.value)==null?void 0:K.getRootNode())||((be=(we=r.proxy)==null?void 0:we.$el)==null?void 0:be.getRootNode());return M instanceof ShadowRoot?M:!1}),{dimensionStyles:m}=lt(e),y=Ut(),{scopeId:N}=Kt();B(()=>e.disabled,h=>{h&&(l.value=!1)});const{contentStyles:_,updateLocation:q}=Lt(e,{isRtl:w,contentEl:c,target:F,isActive:l});Wt(e,{root:s,contentEl:c,targetEl:p,isActive:l,updateLocation:q});function R(h){a("click:outside",h),e.persistent?Q():l.value=!1}function D(h){return l.value&&A.value&&(!e.scrim||h.target===i.value||h instanceof MouseEvent&&h.shadowTarget===i.value)}j&&B(l,h=>{h?window.addEventListener("keydown",Y):window.removeEventListener("keydown",Y)},{immediate:!0}),ct(()=>{j&&window.removeEventListener("keydown",Y)});function Y(h){var M,K;h.key==="Escape"&&A.value&&(e.persistent?Q():(l.value=!1,(M=c.value)!=null&&M.contains(document.activeElement)&&((K=T.value)==null||K.focus())))}const U=wt();ve(()=>e.closeOnBack,()=>{bt(U,h=>{A.value&&l.value?(h(!1),e.persistent?Q():l.value=!1):h()})});const ye=V();B(()=>l.value&&(e.absolute||e.contained)&&b.value==null,h=>{if(h){const M=Ct(s.value);M&&M!==document.scrollingElement&&(ye.value=M.scrollTop)}});function Q(){e.noClickAnimation||c.value&&St(c.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Pt})}function ze(){a("afterEnter")}function $e(){d(),a("afterLeave")}return ut(()=>{var h;return I(gt,null,[(h=n.activator)==null?void 0:h.call(n,{isActive:l.value,targetRef:u,props:z({ref:L},k.value,e.activatorProps)}),y.value&&v.value&&I(ft,{disabled:!b.value,to:b.value},{default:()=>[I("div",z({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":l.value,"v-overlay--contained":e.contained},g.value,x.value,e.class],style:[E.value,{"--v-overlay-opacity":e.opacity,top:W(ye.value)},e.style],ref:s},N,o),[I(nn,z({color:C,modelValue:l.value&&!!e.scrim,ref:i},O.value),null),I(dt,{appear:!0,persisted:!0,transition:e.transition,target:F.value,onAfterEnter:ze,onAfterLeave:$e},{default:()=>{var M;return[vt(I("div",z({ref:c,class:["v-overlay__content",e.contentClass],style:[m.value,_.value]},re.value,e.contentProps),[(M=n.default)==null?void 0:M.call(n,{isActive:l})]),[[mt,l.value],[ht("click-outside"),{handler:R,closeConditional:D,include:()=>[T.value]}]])]}})])]})])}),{activatorEl:T,scrimEl:i,target:F,animateClick:Q,contentEl:c,globalTop:A,localTop:S,updateLocation:q}}}),ce=Symbol("Forwarded refs");function ue(e,t){let n=e;for(;n;){const o=Reflect.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function un(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e[ce]=n,new Proxy(e,{get(a,r){if(Reflect.has(a,r))return Reflect.get(a,r);if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,r)){const i=Reflect.get(s.value,r);return typeof i=="function"?i.bind(s.value):i}}},has(a,r){if(Reflect.has(a,r))return!0;if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,r))return!0;return!1},set(a,r,s){if(Reflect.has(a,r))return Reflect.set(a,r,s);if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,r))return Reflect.set(i.value,r,s);return!1},getOwnPropertyDescriptor(a,r){var i;const s=Reflect.getOwnPropertyDescriptor(a,r);if(s)return s;if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const c of n){if(!c.value)continue;const f=ue(c.value,r)??("_"in c.value?ue((i=c.value._)==null?void 0:i.setupState,r):void 0);if(f)return f}for(const c of n){const f=c.value&&c.value[ce];if(!f)continue;const l=f.slice();for(;l.length;){const g=l.shift(),x=ue(g.value,r);if(x)return x;const w=g.value&&g.value[ce];w&&l.push(...w)}}}}})}export{cn as V,St as a,ln as b,Vt as c,sn as d,Gt as e,un as f,xt as g,Xt as h,Ct as i,on as m,Et as n,Pt as s,Kt as u};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Calendar-BsQFzwvu.js","assets/router-y7A7WVJP.js","assets/router-CHMEvzOu.css","assets/VAlert-BkqvCS8E.js","assets/VAlert-DtQVqRRQ.css","assets/forwardRefs-D80iGZSJ.js","assets/forwardRefs-DzLVmH92.css","assets/Calendar-CKqw8p8r.css","assets/SnackBar-CWzJEdF1.js","assets/SnackBar-CBM_qob3.css","assets/ContribsDataset-Ct7_qv3J.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Calendar-D_V1RP5A.js","assets/router-tttAuCuM.js","assets/router-CHMEvzOu.css","assets/VAlert-CqpVRIR5.js","assets/VAlert-DtQVqRRQ.css","assets/forwardRefs-Ba3A_63W.js","assets/forwardRefs-DzLVmH92.css","assets/Calendar-CKqw8p8r.css","assets/SnackBar-CT3CE0g-.js","assets/SnackBar-CBM_qob3.css","assets/ContribsDataset-Bd_MSVBR.js"])))=>i.map(i=>d[i]);
2
2
  (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
3
3
  * @vue/shared v3.4.38
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -24,4 +24,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
24
24
  * Copyright(c) 2012-2014 Roman Shtylman
25
25
  * Copyright(c) 2015 Douglas Christopher Wilson
26
26
  * MIT Licensed
27
- */var bl=hh,ii=gh,dh=Object.prototype.toString,Dn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function hh(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},s=r.decode||mh,o=0;o<e.length;){var i=e.indexOf("=",o);if(i===-1)break;var a=e.indexOf(";",o);if(a===-1)a=e.length;else if(a<i){o=e.lastIndexOf(";",i-1)+1;continue}var c=e.slice(o,i).trim();if(n[c]===void 0){var u=e.slice(i+1,a).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),n[c]=bh(u,s)}o=a+1}return n}function gh(e,t,n){var r=n||{},s=r.encode||ph;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Dn.test(e))throw new TypeError("argument name is invalid");var o=s(t);if(o&&!Dn.test(o))throw new TypeError("argument val is invalid");var i=e+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Dn.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!Dn.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){var c=r.expires;if(!yh(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+c.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.partitioned&&(i+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function mh(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function ph(e){return encodeURIComponent(e)}function yh(e){return dh.call(e)==="[object Date]"||e instanceof Date}function bh(e,t){try{return t(e)}catch{return e}}function vh(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function wh(e){return typeof e=="string"?bl(e):typeof e=="object"&&e!==null?e:{}}function Ar(e,t={}){const n=Ch(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Ch(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class vl{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=bl(document.cookie),this._checkChanges(s)};const r=typeof document>"u"?"":document.cookie;this.cookies=wh(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=vh()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Ar(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ar(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Ar(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const s=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ii(t,s,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ii(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function _h(e){const t=new vl(e?e.headers.cookie:null);return(n,{doNotParse:r=!1,autoUpdateDependencies:s=!1}={})=>wl(n,{doNotParse:r,autoUpdateDependencies:s},t)}function wl(e,{doNotParse:t=!1,autoUpdateDependencies:n=!1}={},r=new vl){const s=n?[...e||[]]:e;let o=r.getAll({doNotParse:!0});const i=Fe(0),a=()=>{const c=r.getAll({doNotParse:!0});Sh(s||null,c,o)&&i.value++,o=c};return r.addChangeListener(a),fh(()=>{r.removeChangeListener(a)}),{get:(...c)=>(n&&s&&!s.includes(c[0])&&s.push(c[0]),i.value,r.get(c[0],{doNotParse:t,...c[1]})),getAll:(...c)=>(i.value,r.getAll({doNotParse:t,...c[0]})),set:(...c)=>r.set(...c),remove:(...c)=>r.remove(...c),addChangeListener:(...c)=>r.addChangeListener(...c),removeChangeListener:(...c)=>r.removeChangeListener(...c)}}function Sh(e,t,n){if(!e)return!0;for(const r of e)if(t[r]!==n[r])return!0;return!1}const Eh=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Th=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Ah=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fh(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Oh(e);return}return t}function Oh(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function xh(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Ah.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Eh.test(e)||Th.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fh)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Dh=/#/g,kh=/&/g,Ph=/\//g,Mh=/=/g,$s=/\+/g,Ih=/%5e/gi,Rh=/%60/gi,Lh=/%7c/gi,$h=/%20/gi;function Nh(e){return encodeURI(""+e).replace(Lh,"|")}function ts(e){return Nh(typeof e=="string"?e:JSON.stringify(e)).replace($s,"%2B").replace($h,"+").replace(Dh,"%23").replace(kh,"%26").replace(Rh,"`").replace(Ih,"^").replace(Ph,"%2F")}function Fr(e){return ts(e).replace(Mh,"%3D")}function Cl(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function jh(e){return Cl(e.replace($s," "))}function Bh(e){return Cl(e.replace($s," "))}function Hh(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=jh(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Bh(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function Vh(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Fr(e)}=${ts(n)}`).join("&"):`${Fr(e)}=${ts(t)}`:Fr(e)}function Uh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Vh(t,e[t])).filter(Boolean).join("&")}const Wh=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Kh=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,zh=/^([/\\]\s*){2,}[^/\\]/,Gh=/^\.?\//;function _l(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Wh.test(e):Kh.test(e)||(t.acceptRelative?zh.test(e):!1)}function Yh(e="",t){return e.endsWith("/")}function qh(e="",t){return(Yh(e)?e.slice(0,-1):e)||"/"}function Jh(e="",t){return e.endsWith("/")?e:e+"/"}function Zh(e,t){if(Xh(t)||_l(e))return e;const n=qh(t);return e.startsWith(n)?e:tg(n,e)}function Qh(e,t){const n=ng(e),r={...Hh(n.search),...t};return n.search=Uh(r),rg(n)}function Xh(e){return!e||e==="/"}function eg(e){return e&&e!=="/"}function tg(e,...t){let n=e||"";for(const r of t.filter(s=>eg(s)))if(n){const s=r.replace(Gh,"");n=Jh(n)+s}else n=r;return n}const Sl=Symbol.for("ufo:protocolRelative");function ng(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!_l(e,{acceptRelative:!0}))return ai(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:l}=ai(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:c,search:u,hash:l,[Sl]:!r}}function ai(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function rg(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Sl]?(e.protocol||"")+"//":"")+s+o+t+n+r}class sg extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function og(e){var c,u,l,f,d;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",n=((l=e.request)==null?void 0:l.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new sg(i,e.error?{cause:e.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return e[m]}});for(const[m,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return e.response&&e.response[p]}});return a}const ig=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function li(e="GET"){return ig.has(e.toUpperCase())}function ag(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const lg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),cg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function ug(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return cg.test(t)?"json":lg.has(t)||t.startsWith("text/")?"text":"blob"}function fg(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[s,o]of new n((e==null?void 0:e.headers)||{}))r.headers.set(s,o)}return r}const dg=new Set([408,409,425,429,500,502,503,504]),hg=new Set([101,204,205,304]);function El(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let l;typeof a.options.retry=="number"?l=a.options.retry:l=li(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):dg.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(m=>setTimeout(m,d)),o(a.request,{...a.options,retry:l-1})}}const u=og(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(c,u={}){var m;const l={request:c,options:fg(u,e.defaults,n),response:void 0,error:void 0};l.options.method=(m=l.options.method)==null?void 0:m.toUpperCase(),l.options.onRequest&&await l.options.onRequest(l),typeof l.request=="string"&&(l.options.baseURL&&(l.request=Zh(l.request,l.options.baseURL)),(l.options.query||l.options.params)&&(l.request=Qh(l.request,{...l.options.params,...l.options.query}))),l.options.body&&li(l.options.method)&&(ag(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new n(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let f;if(!l.options.signal&&l.options.timeout){const p=new r;f=setTimeout(()=>p.abort(),l.options.timeout),l.options.signal=p.signal}try{l.response=await t(l.request,l.options)}catch(p){return l.error=p,l.options.onRequestError&&await l.options.onRequestError(l),await s(l)}finally{f&&clearTimeout(f)}if(l.response.body&&!hg.has(l.response.status)&&l.options.method!=="HEAD"){const p=(l.options.parseResponse?"json":l.options.responseType)||ug(l.response.headers.get("content-type")||"");switch(p){case"json":{const y=await l.response.text(),A=l.options.parseResponse||xh;l.response._data=A(y);break}case"stream":{l.response._data=l.response.body;break}default:l.response._data=await l.response[p]()}}return l.options.onResponse&&await l.options.onResponse(l),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await l.options.onResponseError(l),await s(l)):l.response},i=async function(c,u){return(await o(c,u))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={})=>El({...e,defaults:{...e.defaults,...a}}),i}const Ns=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),gg=Ns.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),mg=Ns.Headers,pg=Ns.AbortController,Tl=El({fetch:gg,Headers:mg,AbortController:pg});class qt extends Error{}qt.prototype.name="InvalidTokenError";function yg(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function bg(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return yg(t)}catch{return atob(t)}}function vg(e,t){if(typeof e!="string")throw new qt("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new qt(`Invalid token specified: missing part #${n+1}`);let s;try{s=bg(r)}catch(o){throw new qt(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new qt(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}var sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function op(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var ns={exports:{}},Or,ci;function Cg(){if(ci)return Or;ci=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*7,o=r*365.25;Or=function(l,f){f=f||{};var d=typeof l;if(d==="string"&&l.length>0)return i(l);if(d==="number"&&isFinite(l))return f.long?c(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(f){var d=parseFloat(f[1]),m=(f[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"weeks":case"week":case"w":return d*s;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(l){var f=Math.abs(l);return f>=r?Math.round(l/r)+"d":f>=n?Math.round(l/n)+"h":f>=t?Math.round(l/t)+"m":f>=e?Math.round(l/e)+"s":l+"ms"}function c(l){var f=Math.abs(l);return f>=r?u(l,f,r,"day"):f>=n?u(l,f,n,"hour"):f>=t?u(l,f,t,"minute"):f>=e?u(l,f,e,"second"):l+" ms"}function u(l,f,d,m){var p=f>=d*1.5;return Math.round(l/d)+" "+m+(p?"s":"")}return Or}function _g(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=s,n.enabled=i,n.humanize=Cg(),n.destroy=u,Object.keys(e).forEach(l=>{n[l]=e[l]}),n.names=[],n.skips=[],n.formatters={};function t(l){let f=0;for(let d=0;d<l.length;d++)f=(f<<5)-f+l.charCodeAt(d),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=t;function n(l){let f,d=null,m,p;function y(...A){if(!y.enabled)return;const P=y,w=Number(new Date),F=w-(f||w);P.diff=F,P.prev=f,P.curr=w,f=w,A[0]=n.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let R=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(S,W)=>{if(S==="%%")return"%";R++;const V=n.formatters[W];if(typeof V=="function"){const I=A[R];S=V.call(P,I),A.splice(R,1),R--}return S}),n.formatArgs.call(P,A),(P.log||n.log).apply(P,A)}return y.namespace=l,y.useColors=n.useColors(),y.color=n.selectColor(l),y.extend=r,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==n.namespaces&&(m=n.namespaces,p=n.enabled(l)),p),set:A=>{d=A}}),typeof n.init=="function"&&n.init(y),y}function r(l,f){const d=n(this.namespace+(typeof f>"u"?":":f)+l);return d.log=this.log,d}function s(l){n.save(l),n.namespaces=l,n.names=[],n.skips=[];let f;const d=(typeof l=="string"?l:"").split(/[\s,]+/),m=d.length;for(f=0;f<m;f++)d[f]&&(l=d[f].replace(/\*/g,".*?"),l[0]==="-"?n.skips.push(new RegExp("^"+l.slice(1)+"$")):n.names.push(new RegExp("^"+l+"$")))}function o(){const l=[...n.names.map(a),...n.skips.map(a).map(f=>"-"+f)].join(",");return n.enable(""),l}function i(l){if(l[l.length-1]==="*")return!0;let f,d;for(f=0,d=n.skips.length;f<d;f++)if(n.skips[f].test(l))return!1;for(f=0,d=n.names.length;f<d;f++)if(n.names[f].test(l))return!0;return!1}function a(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function c(l){return l instanceof Error?l.stack||l.message:l}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Sg=_g;(function(e,t){var n={};t.formatArgs=s,t.save=o,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;u.splice(1,0,l,"color: inherit");let f=0,d=0;u[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(f++,m==="%c"&&(d=f))}),u.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function o(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=Sg(t);const{formatters:c}=e.exports;c.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(ns,ns.exports);var Eg=ns.exports;const Al=wg(Eg),xt=Al("session");xt.log=console.log.bind(console);const Tg=e=>{if(!e)return;const t=vg(e);if(!t)return;const n=Math.ceil(Date.now().valueOf()/1e3);if(typeof t.exp<"u"&&t.exp<n){console.error(`token expired: ${t.exp}<${n}, ${JSON.stringify(t)}`);return}return typeof t.nbf<"u"&&t.nbf>n&&console.warn(`token not yet valid: ${t.nbf}>${n}, ${JSON.stringify(t)}`),t},Fl=()=>{try{return window.top?window.top.location:window.location}catch{return window.location}},mt=e=>{const t=Fl();if(t==null)throw new TypeError("session.goTo was called without access to the window object or its location");e?t.href=e:t.reload()},Ag={directoryUrl:"/simple-directory"},Fg=async e=>{const t={...Ag,...e};xt(`init directoryUrl=${t.directoryUrl}`);const n=!!t.req;n&&xt("run in SSR context");const r=(e==null?void 0:e.customFetch)??Tl,s=Z(()=>{var F;if(n)return;(F=t.route)==null||F.fullPath;const w=Fl();return xt("update location based on route change",w),w}),o=ze({}),i=(e==null?void 0:e.cookies)??(t.req?_h(t.req):wl)(["id_token","id_token_org"],{doNotParse:!0}),a=()=>{const w=i.get("theme_dark");o.dark=w==="1"||w==="true";const F=i.get("i18n_lang");F?o.lang=F:delete o.lang;const R=i.get("id_token"),D=Tg(R);if(!D){delete o.user,delete o.organization,delete o.account,delete o.accountRole;return}for(const V of D.organizations)V.department||(delete V.department,delete V.departmentName);o.user=D;const S=i.get("id_token_org"),W=i.get("id_token_dep");S?W?o.organization=o.user.organizations.find(V=>V.id===S&&V.department===W):o.organization=o.user.organizations.find(V=>V.id===S):delete o.organization,o.organization?(o.account={type:"organization",id:o.organization.id,name:o.organization.name,department:o.organization.department,departmentName:o.organization.departmentName},o.accountRole=o.organization.role):(o.account={type:"user",id:o.user.id,name:o.user.name},o.accountRole="admin")};if(a(),xt("initial state",o),!n){const w=F=>{F.key==="sd-session"&&a()};window.addEventListener("storage",w),le(()=>o.account,(F,R)=>{((F==null?void 0:F.type)!==(R==null?void 0:R.type)||(F==null?void 0:F.id)!==(R==null?void 0:R.id)||(F==null?void 0:F.department)!==(R==null?void 0:R.department))&&mt(null)}),le(()=>o.lang,()=>{mt(null)}),le(()=>o.dark,()=>{mt(null)}),le(o,F=>{n||window.localStorage.setItem("sd-session",JSON.stringify(F)),xt("state changed",F)})}const c=(w,F={},R=!0)=>{if(w&&o.user&&R)return w;!w&&s.value&&(w=s.value.href);let D=`${t.directoryUrl}/login?redirect=${encodeURIComponent(w??"")}`;return Object.keys(F).filter(S=>![null,void 0,""].includes(F[S])).forEach(S=>{D+=`&${S}=${encodeURIComponent(F[S])}`}),D},u=(w,F={},R)=>{mt(c(w,F,R))},l=async w=>{await r(`${t.directoryUrl}/api/auth`,{method:"DELETE"}),i.remove("id_token"),i.remove("id_token_org"),i.remove("id_token_dep"),mt(w??t.logoutRedirectUrl??null)},f=(w,F)=>{w?i.set("id_token_org",w,{path:"/"}):i.remove("id_token_org"),F?i.set("id_token_dep",F,{path:"/"}):i.remove("id_token_dep"),a()},d=async(w,F)=>{if(w){const R={adminMode:"true"};o.user!=null&&(R.email=o.user.email);const D=c(F,R,!0);mt(D)}else await r(`${t.directoryUrl}/api/auth/adminmode`,{method:"DELETE"}),mt(F??null)},m=async w=>{w?await r(`${t.directoryUrl}/api/auth/asadmin`,{method:"POST",body:w}):await r(`${t.directoryUrl}/api/auth/asadmin`,{method:"DELETE"}),a()},p=async()=>{o.user!=null&&(await r(`${t.directoryUrl}/api/users/${o.user.id}`,{method:"PATCH",body:{plannedDeletion:null}}),a())},y=w=>{i.set("theme_dark",`${w}`,{maxAge:31536e3,path:"/"}),a()},A=w=>{i.set("i18n_lang",w,{maxAge:31536e3,path:"/"}),a()},P=async()=>{o.user!=null&&(window.localStorage.setItem("sd-keepalive",`${new Date().getTime()}`),await r(`${t.directoryUrl}/api/auth/keepalive`,{method:"POST"}),a())};if(!n&&window.top===window.self){const w=window.localStorage.getItem("sd-keepalive");(!w||new Date().getTime()-Number(w)>1e4)&&await P()}return{state:o,loginUrl:c,login:u,logout:l,switchOrganization:f,setAdminMode:d,asAdmin:m,cancelDeletion:p,keepalive:P,switchDark:y,switchLang:A,topLocation:s,options:t}},Ol=Symbol("session");async function Og(e){const t=await Fg(e);return{install(n){n.provide(Ol,t)}}}function ip(){const e=_e(Ol);if(!e)throw new Error("useSession requires using the plugin createSession");return e}const xg={badge:"Badge",open:"Ouvrir",close:"Fermer",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} selected",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Today"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"}},ui={primary:"#1E88E5",secondary:"#42A5F5",accent:"#FF9800",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#E91E63",admin:"#E53935"},Dg={primary:"#2196F3",success:"#00E676"},kg=(e,t=!1)=>{const n=e!=null&&e.dark?e.dark==="true":t,r={};for(const a of["primary","secondary"])e!=null&&e[a]&&(r[a]=e[a]);const s={...ui,...r},o={...ui,...Dg,...r};return{ssr:!1,locale:{locale:"fr",messages:{fr:xg,en:sl}},theme:{defaultTheme:n?"dark":"light",themes:{light:{dark:!1,colors:s},dark:{dark:!0,colors:o}}}}},Pg="modulepreload",Mg=function(e){return"https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.0/dist/"+e},fi={},xr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(a=>{if(a=Mg(a),a in fi)return;fi[a]=!0;const c=a.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${u}`))return;const l=document.createElement("link");if(l.rel=c?"stylesheet":Pg,c||(l.as="script",l.crossOrigin=""),l.href=a,i&&l.setAttribute("nonce",i),document.head.appendChild(l),c)return new Promise((f,d)=>{l.addEventListener("load",f),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ig="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.0/dist/undraw_building_websites_i78t.png",Qe=Al("reactive-search-params");Qe.log=console.log.bind(console);const Dr=(e,t)=>{const n=new Set(Object.keys(e));for(const r of Object.keys(t)){const s=t[r];if(typeof s=="string"&&(e[r]=s,n.delete(r)),Array.isArray(s)){const o=s[s.length-1];typeof o=="string"&&(e[r]=o,n.delete(r))}}for(const r of n)delete e[r]};function Rg(e){if(!e)try{e=__unctx__.get("nuxt-app").use().$router,Qe("using nuxt 3 router implicitly")}catch{}const t=ze({});if(e)Qe("initialize reactive search params based on vue router"),le(e.currentRoute,n=>{Qe("route.query changed",n.query),Dr(t,n.query)},{immediate:!0}),le(t,()=>{Qe("state changed",t),e==null||e.replace({query:t})});else{Qe("initialize reactive search params based on window.location.search"),window.addEventListener("popstate",()=>{Qe("update state based on window.location.search",window.location.search),Dr(t,Object.fromEntries(new URLSearchParams(window.location.search)))}),Dr(t,Object.fromEntries(new URLSearchParams(window.location.search)));const n=()=>{Qe("update url based on state",t);const r=new URLSearchParams("");for(const i of Object.keys(t)){const a=t[i];a!=null&&a!==""&&r.set(i,a)}const s=r.toString(),o=s.length>0?"?"+s:"";o!==window.location.search&&window.history.replaceState(window.history.state,window.document.title,window.location.pathname+o)};le(t,()=>{n()})}return t}const Jt=Rg();function Lg(){var w,F,R,D,S,W,V,I,B,z;const e=window.APPLICATION,t=e.configuration;if(!t)throw new Error("Il n'y a pas de configuration définie");const n=(w=t.datasets)==null?void 0:w[0];if(!n)throw new Error("Veuillez sélectionner la source de données des évènements");const r=((F=t.labelField)==null?void 0:F.key)||((R=n.schema.find(v=>v["x-refersTo"]==="http://www.w3.org/2000/01/rdf-schema#label"))==null?void 0:R.key);if(!r)throw new Error("Veuillez remplir le champ libellé ou bien assignez le concept Libellé à l'une de vos colonnes");const s=((D=t.descriptionField)==null?void 0:D.key)||((S=n.schema.find(v=>v["x-refersTo"]==="http://schema.org/description"))==null?void 0:S.key),o=(W=n.schema.find(v=>v["x-refersTo"]==="https://schema.org/startDate"))==null?void 0:W.key,i=(V=n.schema.find(v=>v["x-refersTo"]==="https://schema.org/endDate"))==null?void 0:V.key,a=(I=n.schema.find(v=>v["x-refersTo"]==="http://schema.org/Date"))==null?void 0:I.key;if((!o||!i)&&!a)throw new Error("Veuillez ajouter un concept de type Date à vos données");const c=!n.attachmentsAsImage&&n.schema.find(v=>v["x-refersTo"]==="http://schema.org/DigitalDocument"),u=(B=n.schema.find(v=>v["x-refersTo"]==="http://schema.org/image"))==null?void 0:B.key,l=n.schema.find(v=>v["x-refersTo"]==="https://schema.org/WebPage"),f=n.schema.reduce((v,j)=>(v[j.key]=j,v),{}),d=t.color;if(d.type==="multicolor"&&!t.color.field)throw new Error("Veuillez remplir le champ : colonne de catégorie");const m=n.userPermissions||[],p=m.includes("readLines")&&m.includes("createLine")&&m.includes("updateLine")&&m.includes("patchLine")&&m.includes("deleteLine")&&(!Jt.role||Jt.role==="admin"),y=((z=t.datasets)==null?void 0:z[1])||t.contribsDataset,A=y&&y.userPermissions.includes("readOwnLines")&&y.userPermissions.includes("createOwnLine")&&y.userPermissions.includes("updateOwnLine")&&y.userPermissions.includes("patchOwnLine")&&y.userPermissions.includes("deleteOwnLine")&&(!Jt.role||Jt.role==="contrib");if(t.crowdSourcing){if(!y)throw new Error("Veuillez sélectionner une source de données pour les contributions");const v=["_owner","_ownerName","start","end","operation","target_id","payload","status"].filter(j=>!y.schema.map(q=>q.key).includes(j));if(v.length)throw new Error("Champs manquants dans le jeu de données des contributions : "+v.join(", "))}let P="simple";return n.isRest&&(p?P="admin":t.crowdSourcing&&A&&(P="contrib")),{application:e,config:t,mainDataset:n,contribsDataset:y,startDateField:o,dateField:a,endDateField:i,labelField:r,descriptionField:s,attachmentField:c,linkField:l,imageField:u,fields:f,isAdmin:p,color:d,layout:P}}const $g=He({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Ng(e){return{dimensionStyles:Z(()=>{const n={},r=pt(e.height),s=pt(e.maxHeight),o=pt(e.maxWidth),i=pt(e.minHeight),a=pt(e.minWidth),c=pt(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),o!=null&&(n.maxWidth=o),i!=null&&(n.minHeight=i),a!=null&&(n.minWidth=a),c!=null&&(n.width=c),n})}}function jg(e){return{aspectStyles:Z(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const xl=He({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Qa(),...$g()},"VResponsive"),di=Rs()({name:"VResponsive",props:xl(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=jg(e),{dimensionStyles:s}=Ng(e);return rl(()=>{var o;return H("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[H("div",{class:"v-responsive__sizer",style:r.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&H("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function Dl(e){return kf(()=>{const t=[],n={};if(e.value.background)if(Jr(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&qf(e.value.background)){const r=Be(e.value.background);if(r.a==null||r.a===1){const s=Za(r);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Jr(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function ap(e,t){const n=Z(()=>({text:ae(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Dl(n);return{textColorClasses:r,textColorStyles:s}}function Bg(e,t){const n=Z(()=>({background:ae(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Dl(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const Hg=He({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Vg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xa();return{roundedClasses:Z(()=>{const r=ae(e)?e.value:e.rounded,s=ae(e)?e.value:e.tile,o=[];if(r===!0||r==="")o.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))o.push(`rounded-${i}`);else(s||r===!1)&&o.push("rounded-0");return o})}}const Ug=He({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),kn=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:o,...i}=e,{component:a=o?cf:Ps,...c}=typeof r=="object"?r:{};return ks(a,ir(typeof r=="string"?{name:s?"":r}:c,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:o}).filter(u=>{let[l,f]=u;return f!==void 0})),i),n)};function Wg(e,t){if(!ja)return;const n=t.modifiers||{},r=t.value,{handler:s,options:o}=typeof r=="object"?r:{handler:r,options:{}},i=new IntersectionObserver(function(){var f;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const l=a.some(d=>d.isIntersecting);s&&(!n.quiet||u.init)&&(!n.once||l||u.init)&&s(l,a,c),l&&n.once?kl(e,t):u.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:i},i.observe(e)}function kl(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Kg={mounted:Wg,unmounted:kl},zg=He({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...xl(),...Qa(),...Hg(),...Ug()},"VImg"),Gg=Rs()({name:"VImg",directives:{intersect:Kg},props:zg(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:o}=Bg(Sc(e,"color")),{roundedClasses:i}=Vg(e),a=Ye("VImg"),c=xe(""),u=Fe(),l=xe(e.eager?"loading":"idle"),f=xe(),d=xe(),m=Z(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),p=Z(()=>m.value.aspect||f.value/d.value||0);le(()=>e.src,()=>{y(l.value!=="idle")}),le(p,(v,j)=>{!v&&j&&u.value&&R(u.value)}),vs(()=>y());function y(v){if(!(e.eager&&v)&&!(ja&&!v&&!e.eager)){if(l.value="loading",m.value.lazySrc){const j=new Image;j.src=m.value.lazySrc,R(j,null)}m.value.src&&ys(()=>{var j;n("loadstart",((j=u.value)==null?void 0:j.currentSrc)||m.value.src),setTimeout(()=>{var q;if(!a.isUnmounted)if((q=u.value)!=null&&q.complete){if(u.value.naturalWidth||P(),l.value==="error")return;p.value||R(u.value,null),l.value==="loading"&&A()}else p.value||R(u.value),w()})})}}function A(){var v;a.isUnmounted||(w(),R(u.value),l.value="loaded",n("load",((v=u.value)==null?void 0:v.currentSrc)||m.value.src))}function P(){var v;a.isUnmounted||(l.value="error",n("error",((v=u.value)==null?void 0:v.currentSrc)||m.value.src))}function w(){const v=u.value;v&&(c.value=v.currentSrc||v.src)}let F=-1;Cs(()=>{clearTimeout(F)});function R(v){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const q=()=>{if(clearTimeout(F),a.isUnmounted)return;const{naturalHeight:pe,naturalWidth:ee}=v;pe||ee?(f.value=ee,d.value=pe):!v.complete&&l.value==="loading"&&j!=null?F=window.setTimeout(q,j):(v.currentSrc.endsWith(".svg")||v.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,d.value=1)};q()}const D=Z(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),S=()=>{var q;if(!m.value.src||l.value==="idle")return null;const v=H("img",{class:["v-img__img",D.value],style:{objectPosition:e.position},src:m.value.src,srcset:m.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:A,onError:P},null),j=(q=r.sources)==null?void 0:q.call(r);return H(kn,{transition:e.transition,appear:!0},{default:()=>[to(j?H("picture",{class:"v-img__picture"},[j,v]):v,[[Gu,l.value==="loaded"]])]})},W=()=>H(kn,{transition:e.transition},{default:()=>[m.value.lazySrc&&l.value!=="loaded"&&H("img",{class:["v-img__img","v-img__img--preload",D.value],style:{objectPosition:e.position},src:m.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),V=()=>r.placeholder?H(kn,{transition:e.transition,appear:!0},{default:()=>[(l.value==="loading"||l.value==="error"&&!r.error)&&H("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?H(kn,{transition:e.transition,appear:!0},{default:()=>[l.value==="error"&&H("div",{class:"v-img__error"},[r.error()])]}):null,B=()=>e.gradient?H("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,z=xe(!1);{const v=le(p,j=>{j&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{z.value=!0})}),v())})}return rl(()=>{const v=di.filterProps(e);return to(H(di,ir({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!z.value},s.value,i.value,e.class],style:[{width:pt(e.width==="auto"?f.value:e.width)},o.value,e.style]},v,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>H(ue,null,[H(S,null,null),H(W,null,null),H(B,null,null),H(V,null,null),H(I,null,null)]),default:r.default}),[[jc("intersect"),{handler:y,options:e.options},null,{once:!0}]])}),{currentSrc:c,image:u,state:l,naturalWidth:f,naturalHeight:d}}}),Yg=xs("h1",{class:"text-center"}," Configuration incomplète ",-1),qg={__name:"App",setup(e){const t=window.APPLICATION.configuration;let n;try{const{config:i,mainDataset:a}=Lg();if(i.crowdSourcing){const c=[a];i.contribsDataset&&c.push(i.contribsDataset),(i.datasets||[]).map(u=>u.id).join("-")!==c.map(u=>u.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"datasets",value:c}},"*")}}catch(i){console.log(i),n=i.message,Tl(window.APPLICATION.href+"/error",{body:{message:i.message||i},method:"POST"})}const r=gr(()=>xr(()=>import("./Calendar-BsQFzwvu.js").then(i=>i.C),__vite__mapDeps([0,1,2,3,4,5,6,7]))),s=gr(()=>xr(()=>import("./SnackBar-CWzJEdF1.js"),__vite__mapDeps([8,1,2,5,6,9]))),o=gr(()=>xr(()=>import("./ContribsDataset-Ct7_qv3J.js"),__vite__mapDeps([10,1,2,3,4])));return(i,a)=>Ae(n)?(Rt(),Hn(Gg,{key:1,src:Ig,style:{height:"80%"}},{default:Yi(()=>[Yg,Ae(t).crowdSourcing&&!Ae(t).contribsDataset?(Rt(),Hn(Ae(o),{key:0})):Du("",!0)]),_:1})):(Rt(),Au(ue,{key:0},[H(Ae(r)),H(Ae(s))],64))}};async function Jg(){var n,r;const e=kg(Jt);e.defaults={global:{variant:((r=(n=window.APPLICATION)==null?void 0:n.configuration)==null?void 0:r.formVariant)||"underlined"}};const t=vf(qg);t.use(yl(e)),t.use(await Og({})),t.mount("#app")}Jg();export{km as $,rl as A,H as B,Rt as C,Hn as D,Yi as E,ue as F,xu as G,Du as H,xs as I,Kl as J,cf as K,Ps as L,Pe as M,oh as N,Qa as O,Zm as P,dd as Q,Qm as R,Xm as S,im as T,Ce as U,Pf as V,Ef as W,tp as X,np as Y,zm as Z,Sc as _,Ei as a,Xg as a$,Hg as a0,cd as a1,Vg as a2,to as a3,jc as a4,Gu as a5,_e as a6,nr as a7,Y as a8,Em as a9,xr as aA,cm as aB,rp as aC,_f as aD,Va as aE,Cm as aF,Dm as aG,kf as aH,Wa as aI,zl as aJ,Lm as aK,Nm as aL,Rm as aM,Ug as aN,fn as aO,Xa as aP,ta as aQ,An as aR,xm as aS,ep as aT,Df as aU,or as aV,ym as aW,Jm as aX,Dl as aY,Hi as aZ,ja as a_,Cs as aa,Ye as ab,Li as ac,mn as ad,kn as ae,$g as af,Ng as ag,Bm as ah,ap as ai,pt as aj,mm as ak,Bg as al,If as am,Au as an,Gg as ao,em as ap,$m as aq,kc as ar,Mf as as,Qg as at,hm as au,pm as av,ip as aw,Zn as ax,lm as ay,gr as az,Et as b,Pm as b0,vm as b1,op as b2,Al as b3,Qn as b4,Gm as b5,rm as b6,Tf as b7,mc as b8,vs as b9,gm as bA,Vm as bB,Be as bC,Qf as bD,Km as bE,Tm as bF,Rf as bG,jm as bH,Im as bI,_m as bJ,fm as bK,dm as bL,Fm as bM,om as bN,wm as ba,Kg as bb,Sm as bc,ot as bd,Mm as be,tm as bf,Zg as bg,Ou as bh,um as bi,Am as bj,Ha as bk,bm as bl,sm as bm,am as bn,nm as bo,Ym as bp,qm as bq,Om as br,Wm as bs,Sr as bt,St as bu,Hm as bv,Zf as bw,Ya as bx,Um as by,_s as bz,Z as c,Xi as d,le as e,ze as f,Si as g,ks as h,ae as i,Lg as j,Jt as k,Tl as l,sp as m,ys as n,ws as o,wg as p,He as q,Fe as r,xe as s,Af as t,Ae as u,Rs as v,rr as w,od as x,tl as y,ir as z};
27
+ */var bl=hh,ii=gh,dh=Object.prototype.toString,Dn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function hh(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},s=r.decode||mh,o=0;o<e.length;){var i=e.indexOf("=",o);if(i===-1)break;var a=e.indexOf(";",o);if(a===-1)a=e.length;else if(a<i){o=e.lastIndexOf(";",i-1)+1;continue}var c=e.slice(o,i).trim();if(n[c]===void 0){var u=e.slice(i+1,a).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),n[c]=bh(u,s)}o=a+1}return n}function gh(e,t,n){var r=n||{},s=r.encode||ph;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Dn.test(e))throw new TypeError("argument name is invalid");var o=s(t);if(o&&!Dn.test(o))throw new TypeError("argument val is invalid");var i=e+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Dn.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!Dn.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){var c=r.expires;if(!yh(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+c.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.partitioned&&(i+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function mh(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function ph(e){return encodeURIComponent(e)}function yh(e){return dh.call(e)==="[object Date]"||e instanceof Date}function bh(e,t){try{return t(e)}catch{return e}}function vh(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function wh(e){return typeof e=="string"?bl(e):typeof e=="object"&&e!==null?e:{}}function Ar(e,t={}){const n=Ch(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Ch(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class vl{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=bl(document.cookie),this._checkChanges(s)};const r=typeof document>"u"?"":document.cookie;this.cookies=wh(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=vh()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Ar(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Ar(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Ar(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const s=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ii(t,s,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ii(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function _h(e){const t=new vl(e?e.headers.cookie:null);return(n,{doNotParse:r=!1,autoUpdateDependencies:s=!1}={})=>wl(n,{doNotParse:r,autoUpdateDependencies:s},t)}function wl(e,{doNotParse:t=!1,autoUpdateDependencies:n=!1}={},r=new vl){const s=n?[...e||[]]:e;let o=r.getAll({doNotParse:!0});const i=Fe(0),a=()=>{const c=r.getAll({doNotParse:!0});Sh(s||null,c,o)&&i.value++,o=c};return r.addChangeListener(a),fh(()=>{r.removeChangeListener(a)}),{get:(...c)=>(n&&s&&!s.includes(c[0])&&s.push(c[0]),i.value,r.get(c[0],{doNotParse:t,...c[1]})),getAll:(...c)=>(i.value,r.getAll({doNotParse:t,...c[0]})),set:(...c)=>r.set(...c),remove:(...c)=>r.remove(...c),addChangeListener:(...c)=>r.addChangeListener(...c),removeChangeListener:(...c)=>r.removeChangeListener(...c)}}function Sh(e,t,n){if(!e)return!0;for(const r of e)if(t[r]!==n[r])return!0;return!1}const Eh=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Th=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Ah=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fh(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Oh(e);return}return t}function Oh(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function xh(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Ah.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Eh.test(e)||Th.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fh)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Dh=/#/g,kh=/&/g,Ph=/\//g,Mh=/=/g,$s=/\+/g,Ih=/%5e/gi,Rh=/%60/gi,Lh=/%7c/gi,$h=/%20/gi;function Nh(e){return encodeURI(""+e).replace(Lh,"|")}function ts(e){return Nh(typeof e=="string"?e:JSON.stringify(e)).replace($s,"%2B").replace($h,"+").replace(Dh,"%23").replace(kh,"%26").replace(Rh,"`").replace(Ih,"^").replace(Ph,"%2F")}function Fr(e){return ts(e).replace(Mh,"%3D")}function Cl(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function jh(e){return Cl(e.replace($s," "))}function Bh(e){return Cl(e.replace($s," "))}function Hh(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=jh(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Bh(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function Vh(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Fr(e)}=${ts(n)}`).join("&"):`${Fr(e)}=${ts(t)}`:Fr(e)}function Uh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Vh(t,e[t])).filter(Boolean).join("&")}const Wh=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Kh=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,zh=/^([/\\]\s*){2,}[^/\\]/,Gh=/^\.?\//;function _l(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Wh.test(e):Kh.test(e)||(t.acceptRelative?zh.test(e):!1)}function Yh(e="",t){return e.endsWith("/")}function qh(e="",t){return(Yh(e)?e.slice(0,-1):e)||"/"}function Jh(e="",t){return e.endsWith("/")?e:e+"/"}function Zh(e,t){if(Xh(t)||_l(e))return e;const n=qh(t);return e.startsWith(n)?e:tg(n,e)}function Qh(e,t){const n=ng(e),r={...Hh(n.search),...t};return n.search=Uh(r),rg(n)}function Xh(e){return!e||e==="/"}function eg(e){return e&&e!=="/"}function tg(e,...t){let n=e||"";for(const r of t.filter(s=>eg(s)))if(n){const s=r.replace(Gh,"");n=Jh(n)+s}else n=r;return n}const Sl=Symbol.for("ufo:protocolRelative");function ng(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!_l(e,{acceptRelative:!0}))return ai(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:l}=ai(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:c,search:u,hash:l,[Sl]:!r}}function ai(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function rg(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Sl]?(e.protocol||"")+"//":"")+s+o+t+n+r}class sg extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function og(e){var c,u,l,f,d;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",n=((l=e.request)==null?void 0:l.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new sg(i,e.error?{cause:e.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return e[m]}});for(const[m,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return e.response&&e.response[p]}});return a}const ig=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function li(e="GET"){return ig.has(e.toUpperCase())}function ag(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const lg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),cg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function ug(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return cg.test(t)?"json":lg.has(t)||t.startsWith("text/")?"text":"blob"}function fg(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[s,o]of new n((e==null?void 0:e.headers)||{}))r.headers.set(s,o)}return r}const dg=new Set([408,409,425,429,500,502,503,504]),hg=new Set([101,204,205,304]);function El(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let l;typeof a.options.retry=="number"?l=a.options.retry:l=li(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):dg.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(m=>setTimeout(m,d)),o(a.request,{...a.options,retry:l-1})}}const u=og(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(c,u={}){var m;const l={request:c,options:fg(u,e.defaults,n),response:void 0,error:void 0};l.options.method=(m=l.options.method)==null?void 0:m.toUpperCase(),l.options.onRequest&&await l.options.onRequest(l),typeof l.request=="string"&&(l.options.baseURL&&(l.request=Zh(l.request,l.options.baseURL)),(l.options.query||l.options.params)&&(l.request=Qh(l.request,{...l.options.params,...l.options.query}))),l.options.body&&li(l.options.method)&&(ag(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new n(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let f;if(!l.options.signal&&l.options.timeout){const p=new r;f=setTimeout(()=>p.abort(),l.options.timeout),l.options.signal=p.signal}try{l.response=await t(l.request,l.options)}catch(p){return l.error=p,l.options.onRequestError&&await l.options.onRequestError(l),await s(l)}finally{f&&clearTimeout(f)}if(l.response.body&&!hg.has(l.response.status)&&l.options.method!=="HEAD"){const p=(l.options.parseResponse?"json":l.options.responseType)||ug(l.response.headers.get("content-type")||"");switch(p){case"json":{const y=await l.response.text(),A=l.options.parseResponse||xh;l.response._data=A(y);break}case"stream":{l.response._data=l.response.body;break}default:l.response._data=await l.response[p]()}}return l.options.onResponse&&await l.options.onResponse(l),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await l.options.onResponseError(l),await s(l)):l.response},i=async function(c,u){return(await o(c,u))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={})=>El({...e,defaults:{...e.defaults,...a}}),i}const Ns=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),gg=Ns.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),mg=Ns.Headers,pg=Ns.AbortController,Tl=El({fetch:gg,Headers:mg,AbortController:pg});class qt extends Error{}qt.prototype.name="InvalidTokenError";function yg(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function bg(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return yg(t)}catch{return atob(t)}}function vg(e,t){if(typeof e!="string")throw new qt("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new qt(`Invalid token specified: missing part #${n+1}`);let s;try{s=bg(r)}catch(o){throw new qt(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new qt(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}var sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function op(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var ns={exports:{}},Or,ci;function Cg(){if(ci)return Or;ci=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*7,o=r*365.25;Or=function(l,f){f=f||{};var d=typeof l;if(d==="string"&&l.length>0)return i(l);if(d==="number"&&isFinite(l))return f.long?c(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(f){var d=parseFloat(f[1]),m=(f[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"weeks":case"week":case"w":return d*s;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(l){var f=Math.abs(l);return f>=r?Math.round(l/r)+"d":f>=n?Math.round(l/n)+"h":f>=t?Math.round(l/t)+"m":f>=e?Math.round(l/e)+"s":l+"ms"}function c(l){var f=Math.abs(l);return f>=r?u(l,f,r,"day"):f>=n?u(l,f,n,"hour"):f>=t?u(l,f,t,"minute"):f>=e?u(l,f,e,"second"):l+" ms"}function u(l,f,d,m){var p=f>=d*1.5;return Math.round(l/d)+" "+m+(p?"s":"")}return Or}function _g(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=s,n.enabled=i,n.humanize=Cg(),n.destroy=u,Object.keys(e).forEach(l=>{n[l]=e[l]}),n.names=[],n.skips=[],n.formatters={};function t(l){let f=0;for(let d=0;d<l.length;d++)f=(f<<5)-f+l.charCodeAt(d),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=t;function n(l){let f,d=null,m,p;function y(...A){if(!y.enabled)return;const P=y,w=Number(new Date),F=w-(f||w);P.diff=F,P.prev=f,P.curr=w,f=w,A[0]=n.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let R=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(S,W)=>{if(S==="%%")return"%";R++;const V=n.formatters[W];if(typeof V=="function"){const I=A[R];S=V.call(P,I),A.splice(R,1),R--}return S}),n.formatArgs.call(P,A),(P.log||n.log).apply(P,A)}return y.namespace=l,y.useColors=n.useColors(),y.color=n.selectColor(l),y.extend=r,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==n.namespaces&&(m=n.namespaces,p=n.enabled(l)),p),set:A=>{d=A}}),typeof n.init=="function"&&n.init(y),y}function r(l,f){const d=n(this.namespace+(typeof f>"u"?":":f)+l);return d.log=this.log,d}function s(l){n.save(l),n.namespaces=l,n.names=[],n.skips=[];let f;const d=(typeof l=="string"?l:"").split(/[\s,]+/),m=d.length;for(f=0;f<m;f++)d[f]&&(l=d[f].replace(/\*/g,".*?"),l[0]==="-"?n.skips.push(new RegExp("^"+l.slice(1)+"$")):n.names.push(new RegExp("^"+l+"$")))}function o(){const l=[...n.names.map(a),...n.skips.map(a).map(f=>"-"+f)].join(",");return n.enable(""),l}function i(l){if(l[l.length-1]==="*")return!0;let f,d;for(f=0,d=n.skips.length;f<d;f++)if(n.skips[f].test(l))return!1;for(f=0,d=n.names.length;f<d;f++)if(n.names[f].test(l))return!0;return!1}function a(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function c(l){return l instanceof Error?l.stack||l.message:l}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Sg=_g;(function(e,t){var n={};t.formatArgs=s,t.save=o,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;u.splice(1,0,l,"color: inherit");let f=0,d=0;u[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(f++,m==="%c"&&(d=f))}),u.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function o(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=Sg(t);const{formatters:c}=e.exports;c.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(ns,ns.exports);var Eg=ns.exports;const Al=wg(Eg),xt=Al("session");xt.log=console.log.bind(console);const Tg=e=>{if(!e)return;const t=vg(e);if(!t)return;const n=Math.ceil(Date.now().valueOf()/1e3);if(typeof t.exp<"u"&&t.exp<n){console.error(`token expired: ${t.exp}<${n}, ${JSON.stringify(t)}`);return}return typeof t.nbf<"u"&&t.nbf>n&&console.warn(`token not yet valid: ${t.nbf}>${n}, ${JSON.stringify(t)}`),t},Fl=()=>{try{return window.top?window.top.location:window.location}catch{return window.location}},mt=e=>{const t=Fl();if(t==null)throw new TypeError("session.goTo was called without access to the window object or its location");e?t.href=e:t.reload()},Ag={directoryUrl:"/simple-directory"},Fg=async e=>{const t={...Ag,...e};xt(`init directoryUrl=${t.directoryUrl}`);const n=!!t.req;n&&xt("run in SSR context");const r=(e==null?void 0:e.customFetch)??Tl,s=Z(()=>{var F;if(n)return;(F=t.route)==null||F.fullPath;const w=Fl();return xt("update location based on route change",w),w}),o=ze({}),i=(e==null?void 0:e.cookies)??(t.req?_h(t.req):wl)(["id_token","id_token_org"],{doNotParse:!0}),a=()=>{const w=i.get("theme_dark");o.dark=w==="1"||w==="true";const F=i.get("i18n_lang");F?o.lang=F:delete o.lang;const R=i.get("id_token"),D=Tg(R);if(!D){delete o.user,delete o.organization,delete o.account,delete o.accountRole;return}for(const V of D.organizations)V.department||(delete V.department,delete V.departmentName);o.user=D;const S=i.get("id_token_org"),W=i.get("id_token_dep");S?W?o.organization=o.user.organizations.find(V=>V.id===S&&V.department===W):o.organization=o.user.organizations.find(V=>V.id===S):delete o.organization,o.organization?(o.account={type:"organization",id:o.organization.id,name:o.organization.name,department:o.organization.department,departmentName:o.organization.departmentName},o.accountRole=o.organization.role):(o.account={type:"user",id:o.user.id,name:o.user.name},o.accountRole="admin")};if(a(),xt("initial state",o),!n){const w=F=>{F.key==="sd-session"&&a()};window.addEventListener("storage",w),le(()=>o.account,(F,R)=>{((F==null?void 0:F.type)!==(R==null?void 0:R.type)||(F==null?void 0:F.id)!==(R==null?void 0:R.id)||(F==null?void 0:F.department)!==(R==null?void 0:R.department))&&mt(null)}),le(()=>o.lang,()=>{mt(null)}),le(()=>o.dark,()=>{mt(null)}),le(o,F=>{n||window.localStorage.setItem("sd-session",JSON.stringify(F)),xt("state changed",F)})}const c=(w,F={},R=!0)=>{if(w&&o.user&&R)return w;!w&&s.value&&(w=s.value.href);let D=`${t.directoryUrl}/login?redirect=${encodeURIComponent(w??"")}`;return Object.keys(F).filter(S=>![null,void 0,""].includes(F[S])).forEach(S=>{D+=`&${S}=${encodeURIComponent(F[S])}`}),D},u=(w,F={},R)=>{mt(c(w,F,R))},l=async w=>{await r(`${t.directoryUrl}/api/auth`,{method:"DELETE"}),i.remove("id_token"),i.remove("id_token_org"),i.remove("id_token_dep"),mt(w??t.logoutRedirectUrl??null)},f=(w,F)=>{w?i.set("id_token_org",w,{path:"/"}):i.remove("id_token_org"),F?i.set("id_token_dep",F,{path:"/"}):i.remove("id_token_dep"),a()},d=async(w,F)=>{if(w){const R={adminMode:"true"};o.user!=null&&(R.email=o.user.email);const D=c(F,R,!0);mt(D)}else await r(`${t.directoryUrl}/api/auth/adminmode`,{method:"DELETE"}),mt(F??null)},m=async w=>{w?await r(`${t.directoryUrl}/api/auth/asadmin`,{method:"POST",body:w}):await r(`${t.directoryUrl}/api/auth/asadmin`,{method:"DELETE"}),a()},p=async()=>{o.user!=null&&(await r(`${t.directoryUrl}/api/users/${o.user.id}`,{method:"PATCH",body:{plannedDeletion:null}}),a())},y=w=>{i.set("theme_dark",`${w}`,{maxAge:31536e3,path:"/"}),a()},A=w=>{i.set("i18n_lang",w,{maxAge:31536e3,path:"/"}),a()},P=async()=>{o.user!=null&&(window.localStorage.setItem("sd-keepalive",`${new Date().getTime()}`),await r(`${t.directoryUrl}/api/auth/keepalive`,{method:"POST"}),a())};if(!n&&window.top===window.self){const w=window.localStorage.getItem("sd-keepalive");(!w||new Date().getTime()-Number(w)>1e4)&&await P()}return{state:o,loginUrl:c,login:u,logout:l,switchOrganization:f,setAdminMode:d,asAdmin:m,cancelDeletion:p,keepalive:P,switchDark:y,switchLang:A,topLocation:s,options:t}},Ol=Symbol("session");async function Og(e){const t=await Fg(e);return{install(n){n.provide(Ol,t)}}}function ip(){const e=_e(Ol);if(!e)throw new Error("useSession requires using the plugin createSession");return e}const xg={badge:"Badge",open:"Ouvrir",close:"Fermer",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} selected",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Today"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"}},ui={primary:"#1E88E5",secondary:"#42A5F5",accent:"#FF9800",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#E91E63",admin:"#E53935"},Dg={primary:"#2196F3",success:"#00E676"},kg=(e,t=!1)=>{const n=e!=null&&e.dark?e.dark==="true":t,r={};for(const a of["primary","secondary"])e!=null&&e[a]&&(r[a]=e[a]);const s={...ui,...r},o={...ui,...Dg,...r};return{ssr:!1,locale:{locale:"fr",messages:{fr:xg,en:sl}},theme:{defaultTheme:n?"dark":"light",themes:{light:{dark:!1,colors:s},dark:{dark:!0,colors:o}}}}},Pg="modulepreload",Mg=function(e){return"https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.2/dist/"+e},fi={},xr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(a=>{if(a=Mg(a),a in fi)return;fi[a]=!0;const c=a.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${u}`))return;const l=document.createElement("link");if(l.rel=c?"stylesheet":Pg,c||(l.as="script",l.crossOrigin=""),l.href=a,i&&l.setAttribute("nonce",i),document.head.appendChild(l),c)return new Promise((f,d)=>{l.addEventListener("load",f),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ig="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.2/dist/undraw_building_websites_i78t.png",Qe=Al("reactive-search-params");Qe.log=console.log.bind(console);const Dr=(e,t)=>{const n=new Set(Object.keys(e));for(const r of Object.keys(t)){const s=t[r];if(typeof s=="string"&&(e[r]=s,n.delete(r)),Array.isArray(s)){const o=s[s.length-1];typeof o=="string"&&(e[r]=o,n.delete(r))}}for(const r of n)delete e[r]};function Rg(e){if(!e)try{e=__unctx__.get("nuxt-app").use().$router,Qe("using nuxt 3 router implicitly")}catch{}const t=ze({});if(e)Qe("initialize reactive search params based on vue router"),le(e.currentRoute,n=>{Qe("route.query changed",n.query),Dr(t,n.query)},{immediate:!0}),le(t,()=>{Qe("state changed",t),e==null||e.replace({query:t})});else{Qe("initialize reactive search params based on window.location.search"),window.addEventListener("popstate",()=>{Qe("update state based on window.location.search",window.location.search),Dr(t,Object.fromEntries(new URLSearchParams(window.location.search)))}),Dr(t,Object.fromEntries(new URLSearchParams(window.location.search)));const n=()=>{Qe("update url based on state",t);const r=new URLSearchParams("");for(const i of Object.keys(t)){const a=t[i];a!=null&&a!==""&&r.set(i,a)}const s=r.toString(),o=s.length>0?"?"+s:"";o!==window.location.search&&window.history.replaceState(window.history.state,window.document.title,window.location.pathname+o)};le(t,()=>{n()})}return t}const Jt=Rg();function Lg(){var w,F,R,D,S,W,V,I,B,z;const e=window.APPLICATION,t=e.configuration;if(!t)throw new Error("Il n'y a pas de configuration définie");const n=(w=t.datasets)==null?void 0:w[0];if(!n)throw new Error("Veuillez sélectionner la source de données des évènements");const r=((F=t.labelField)==null?void 0:F.key)||((R=n.schema.find(v=>v["x-refersTo"]==="http://www.w3.org/2000/01/rdf-schema#label"))==null?void 0:R.key);if(!r)throw new Error("Veuillez remplir le champ libellé ou bien assignez le concept Libellé à l'une de vos colonnes");const s=((D=t.descriptionField)==null?void 0:D.key)||((S=n.schema.find(v=>v["x-refersTo"]==="http://schema.org/description"))==null?void 0:S.key),o=(W=n.schema.find(v=>v["x-refersTo"]==="https://schema.org/startDate"))==null?void 0:W.key,i=(V=n.schema.find(v=>v["x-refersTo"]==="https://schema.org/endDate"))==null?void 0:V.key,a=(I=n.schema.find(v=>v["x-refersTo"]==="http://schema.org/Date"))==null?void 0:I.key;if((!o||!i)&&!a)throw new Error("Veuillez ajouter un concept de type Date à vos données");const c=!n.attachmentsAsImage&&n.schema.find(v=>v["x-refersTo"]==="http://schema.org/DigitalDocument"),u=(B=n.schema.find(v=>v["x-refersTo"]==="http://schema.org/image"))==null?void 0:B.key,l=n.schema.find(v=>v["x-refersTo"]==="https://schema.org/WebPage"),f=n.schema.reduce((v,j)=>(v[j.key]=j,v),{}),d=t.color;if((d==null?void 0:d.type)==="multicolor"&&!t.color.field)throw new Error("Veuillez remplir le champ : colonne de catégorie");const m=n.userPermissions||[],p=m.includes("readLines")&&m.includes("createLine")&&m.includes("updateLine")&&m.includes("patchLine")&&m.includes("deleteLine")&&(!Jt.role||Jt.role==="admin"),y=((z=t.datasets)==null?void 0:z[1])||t.contribsDataset,A=y&&y.userPermissions.includes("readOwnLines")&&y.userPermissions.includes("createOwnLine")&&y.userPermissions.includes("updateOwnLine")&&y.userPermissions.includes("patchOwnLine")&&y.userPermissions.includes("deleteOwnLine")&&(!Jt.role||Jt.role==="contrib");if(t.crowdSourcing){if(!y)throw new Error("Veuillez sélectionner une source de données pour les contributions",{cause:"noContribsDataset"});const v=["_owner","_ownerName","start","end","operation","target_id","payload","status"].filter(j=>!y.schema.map(q=>q.key).includes(j));if(v.length)throw new Error("Champs manquants dans le jeu de données des contributions : "+v.join(", "))}let P="simple";return n.isRest&&(p?P="admin":t.crowdSourcing&&A&&(P="contrib")),{application:e,config:t,mainDataset:n,contribsDataset:y,startDateField:o,dateField:a,endDateField:i,labelField:r,descriptionField:s,attachmentField:c,linkField:l,imageField:u,fields:f,isAdmin:p,color:d,layout:P}}const $g=He({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Ng(e){return{dimensionStyles:Z(()=>{const n={},r=pt(e.height),s=pt(e.maxHeight),o=pt(e.maxWidth),i=pt(e.minHeight),a=pt(e.minWidth),c=pt(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),o!=null&&(n.maxWidth=o),i!=null&&(n.minHeight=i),a!=null&&(n.minWidth=a),c!=null&&(n.width=c),n})}}function jg(e){return{aspectStyles:Z(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const xl=He({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Qa(),...$g()},"VResponsive"),di=Rs()({name:"VResponsive",props:xl(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=jg(e),{dimensionStyles:s}=Ng(e);return rl(()=>{var o;return H("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[H("div",{class:"v-responsive__sizer",style:r.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&H("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function Dl(e){return kf(()=>{const t=[],n={};if(e.value.background)if(Jr(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&qf(e.value.background)){const r=Be(e.value.background);if(r.a==null||r.a===1){const s=Za(r);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(Jr(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function ap(e,t){const n=Z(()=>({text:ae(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Dl(n);return{textColorClasses:r,textColorStyles:s}}function Bg(e,t){const n=Z(()=>({background:ae(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Dl(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const Hg=He({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Vg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xa();return{roundedClasses:Z(()=>{const r=ae(e)?e.value:e.rounded,s=ae(e)?e.value:e.tile,o=[];if(r===!0||r==="")o.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))o.push(`rounded-${i}`);else(s||r===!1)&&o.push("rounded-0");return o})}}const Ug=He({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),kn=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:o,...i}=e,{component:a=o?cf:Ps,...c}=typeof r=="object"?r:{};return ks(a,ir(typeof r=="string"?{name:s?"":r}:c,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:o}).filter(u=>{let[l,f]=u;return f!==void 0})),i),n)};function Wg(e,t){if(!ja)return;const n=t.modifiers||{},r=t.value,{handler:s,options:o}=typeof r=="object"?r:{handler:r,options:{}},i=new IntersectionObserver(function(){var f;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const l=a.some(d=>d.isIntersecting);s&&(!n.quiet||u.init)&&(!n.once||l||u.init)&&s(l,a,c),l&&n.once?kl(e,t):u.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:i},i.observe(e)}function kl(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Kg={mounted:Wg,unmounted:kl},zg=He({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...xl(),...Qa(),...Hg(),...Ug()},"VImg"),Gg=Rs()({name:"VImg",directives:{intersect:Kg},props:zg(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:o}=Bg(Sc(e,"color")),{roundedClasses:i}=Vg(e),a=Ye("VImg"),c=xe(""),u=Fe(),l=xe(e.eager?"loading":"idle"),f=xe(),d=xe(),m=Z(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),p=Z(()=>m.value.aspect||f.value/d.value||0);le(()=>e.src,()=>{y(l.value!=="idle")}),le(p,(v,j)=>{!v&&j&&u.value&&R(u.value)}),vs(()=>y());function y(v){if(!(e.eager&&v)&&!(ja&&!v&&!e.eager)){if(l.value="loading",m.value.lazySrc){const j=new Image;j.src=m.value.lazySrc,R(j,null)}m.value.src&&ys(()=>{var j;n("loadstart",((j=u.value)==null?void 0:j.currentSrc)||m.value.src),setTimeout(()=>{var q;if(!a.isUnmounted)if((q=u.value)!=null&&q.complete){if(u.value.naturalWidth||P(),l.value==="error")return;p.value||R(u.value,null),l.value==="loading"&&A()}else p.value||R(u.value),w()})})}}function A(){var v;a.isUnmounted||(w(),R(u.value),l.value="loaded",n("load",((v=u.value)==null?void 0:v.currentSrc)||m.value.src))}function P(){var v;a.isUnmounted||(l.value="error",n("error",((v=u.value)==null?void 0:v.currentSrc)||m.value.src))}function w(){const v=u.value;v&&(c.value=v.currentSrc||v.src)}let F=-1;Cs(()=>{clearTimeout(F)});function R(v){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const q=()=>{if(clearTimeout(F),a.isUnmounted)return;const{naturalHeight:pe,naturalWidth:ee}=v;pe||ee?(f.value=ee,d.value=pe):!v.complete&&l.value==="loading"&&j!=null?F=window.setTimeout(q,j):(v.currentSrc.endsWith(".svg")||v.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,d.value=1)};q()}const D=Z(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),S=()=>{var q;if(!m.value.src||l.value==="idle")return null;const v=H("img",{class:["v-img__img",D.value],style:{objectPosition:e.position},src:m.value.src,srcset:m.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:A,onError:P},null),j=(q=r.sources)==null?void 0:q.call(r);return H(kn,{transition:e.transition,appear:!0},{default:()=>[to(j?H("picture",{class:"v-img__picture"},[j,v]):v,[[Gu,l.value==="loaded"]])]})},W=()=>H(kn,{transition:e.transition},{default:()=>[m.value.lazySrc&&l.value!=="loaded"&&H("img",{class:["v-img__img","v-img__img--preload",D.value],style:{objectPosition:e.position},src:m.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),V=()=>r.placeholder?H(kn,{transition:e.transition,appear:!0},{default:()=>[(l.value==="loading"||l.value==="error"&&!r.error)&&H("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?H(kn,{transition:e.transition,appear:!0},{default:()=>[l.value==="error"&&H("div",{class:"v-img__error"},[r.error()])]}):null,B=()=>e.gradient?H("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,z=xe(!1);{const v=le(p,j=>{j&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{z.value=!0})}),v())})}return rl(()=>{const v=di.filterProps(e);return to(H(di,ir({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!z.value},s.value,i.value,e.class],style:[{width:pt(e.width==="auto"?f.value:e.width)},o.value,e.style]},v,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>H(ue,null,[H(S,null,null),H(W,null,null),H(B,null,null),H(V,null,null),H(I,null,null)]),default:r.default}),[[jc("intersect"),{handler:y,options:e.options},null,{once:!0}]])}),{currentSrc:c,image:u,state:l,naturalWidth:f,naturalHeight:d}}}),Yg=xs("h1",{class:"text-center"}," Configuration incomplète ",-1),qg={__name:"App",setup(e){const t=window.APPLICATION.configuration;let n;try{const{config:i,mainDataset:a}=Lg();if(i.crowdSourcing){const c=[a];i.contribsDataset&&c.push(i.contribsDataset),(i.datasets||[]).map(u=>u.id).join("-")!==c.map(u=>u.id).join("-")&&window.parent.postMessage({type:"set-config",content:{field:"datasets",value:c}},"*")}}catch(i){n=i.message,i.cause!=="noContribsDataset"&&Tl(window.APPLICATION.href+"/error",{body:{message:i.message||i},method:"POST"})}const r=gr(()=>xr(()=>import("./Calendar-D_V1RP5A.js").then(i=>i.C),__vite__mapDeps([0,1,2,3,4,5,6,7]))),s=gr(()=>xr(()=>import("./SnackBar-CT3CE0g-.js"),__vite__mapDeps([8,1,2,5,6,9]))),o=gr(()=>xr(()=>import("./ContribsDataset-Bd_MSVBR.js"),__vite__mapDeps([10,1,2,3,4])));return(i,a)=>Ae(n)?(Rt(),Hn(Gg,{key:1,src:Ig,style:{height:"80%"}},{default:Yi(()=>[Yg,Ae(t).crowdSourcing&&!Ae(t).contribsDataset?(Rt(),Hn(Ae(o),{key:0})):Du("",!0)]),_:1})):(Rt(),Au(ue,{key:0},[H(Ae(r)),H(Ae(s))],64))}};async function Jg(){var n,r;const e=kg(Jt);e.defaults={global:{variant:((r=(n=window.APPLICATION)==null?void 0:n.configuration)==null?void 0:r.formVariant)||"underlined"}};const t=vf(qg);t.use(yl(e)),t.use(await Og({})),t.mount("#app")}Jg();export{km as $,rl as A,H as B,Rt as C,Hn as D,Yi as E,ue as F,xu as G,Du as H,xs as I,Kl as J,cf as K,Ps as L,Pe as M,oh as N,Qa as O,Zm as P,dd as Q,Qm as R,Xm as S,im as T,Ce as U,Pf as V,Ef as W,tp as X,np as Y,zm as Z,Sc as _,Ei as a,Xg as a$,Hg as a0,cd as a1,Vg as a2,to as a3,jc as a4,Gu as a5,_e as a6,nr as a7,Y as a8,Em as a9,xr as aA,cm as aB,rp as aC,_f as aD,Va as aE,Cm as aF,Dm as aG,kf as aH,Wa as aI,zl as aJ,Lm as aK,Nm as aL,Rm as aM,Ug as aN,fn as aO,Xa as aP,ta as aQ,An as aR,xm as aS,ep as aT,Df as aU,or as aV,ym as aW,Jm as aX,Dl as aY,Hi as aZ,ja as a_,Cs as aa,Ye as ab,Li as ac,mn as ad,kn as ae,$g as af,Ng as ag,Bm as ah,ap as ai,pt as aj,mm as ak,Bg as al,If as am,Au as an,Gg as ao,em as ap,$m as aq,kc as ar,Mf as as,Qg as at,hm as au,pm as av,ip as aw,Zn as ax,lm as ay,gr as az,Et as b,Pm as b0,vm as b1,op as b2,Al as b3,Qn as b4,Gm as b5,rm as b6,Tf as b7,mc as b8,vs as b9,gm as bA,Vm as bB,Be as bC,Qf as bD,Km as bE,Tm as bF,Rf as bG,jm as bH,Im as bI,_m as bJ,fm as bK,dm as bL,Fm as bM,om as bN,wm as ba,Kg as bb,Sm as bc,ot as bd,Mm as be,tm as bf,Zg as bg,Ou as bh,um as bi,Am as bj,Ha as bk,bm as bl,sm as bm,am as bn,nm as bo,Ym as bp,qm as bq,Om as br,Wm as bs,Sr as bt,St as bu,Hm as bv,Zf as bw,Ya as bx,Um as by,_s as bz,Z as c,Xi as d,le as e,ze as f,Si as g,ks as h,ae as i,Lg as j,Jt as k,Tl as l,sp as m,ys as n,ws as o,wg as p,He as q,Fe as r,xe as s,Af as t,Ae as u,Rs as v,rr as w,od as x,tl as y,ir as z};
@@ -1 +1 @@
1
- import{aS as w,r as O,q as v,B as c,F as K,aP as M,c as i,u as N,aY as ee,v as q,aZ as te,Z as ae,s as ne,a_ as se,aa as oe,e as le,Q as X,O as re,a0 as ie,X as ue,x as ce,Y as de,ai as fe,al as _,a2 as ve,aI as E,U as j,A as ge,aj as d,L as me,a$ as be,b0 as F,_ as I,W as he,ab as U,n as ye,a as Ce}from"./index-CAAiDM5V.js";const Y=["top","bottom"],ke=["start","end","left","right"];function Se(e,t){let[a,n]=e.split(" ");return n||(n=w(Y,a)?"start":w(ke,a)?"top":"center"),{side:A(a,t),align:A(n,t)}}function A(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Te(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function $e(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Ne(e){return{side:e.align,align:e.side}}function Ee(e){return w(Y,e.side)?"y":"x"}const Fe=O(!1),Ie=O(""),pe=v({tag:{type:String,default:"div"}},"tag"),Pe=["elevated","flat","tonal","outlined","text","plain"];function Ae(e,t){return c(K,null,[e&&c("span",{key:"overlay",class:`${t}__overlay`},null),c("span",{key:"underlay",class:`${t}__underlay`},null)])}const De=v({color:String,variant:{type:String,default:"elevated",validator:e=>Pe.includes(e)}},"variant");function Me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M();const a=i(()=>{const{variant:s}=N(e);return`${t}--variant-${s}`}),{colorClasses:n,colorStyles:u}=ee(i(()=>{const{variant:s,color:l}=N(e);return{[["elevated","flat"].includes(s)?"background":"text"]:l}}));return{colorClasses:n,colorStyles:u,variantClasses:a}}const xe=v({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),qe=q(!1)({name:"VDefaultsProvider",props:xe(),setup(e,t){let{slots:a}=t;const{defaults:n,disabled:u,reset:s,root:l,scoped:r}=te(e);return ae(n,{reset:s,root:l,scoped:r,disabled:u}),()=>{var o;return(o=a.default)==null?void 0:o.call(a)}}});function Be(e,t){const a=O(),n=ne(!1);if(se){const u=new IntersectionObserver(s=>{n.value=!!s.find(l=>l.isIntersecting)},t);oe(()=>{u.disconnect()}),le(a,(s,l)=>{l&&(u.unobserve(l),n.value=!1),s&&u.observe(s)},{flush:"post"})}return{intersectionRef:a,isIntersecting:n}}const D={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Re=v({location:String},"location");function _e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2?arguments[2]:void 0;const{isRtl:n}=X();return{locationStyles:i(()=>{if(!e.location)return{};const{side:s,align:l}=Se(e.location.split(" ").length>1?e.location:`${e.location} center`,n.value);function r(g){return a?a(g):0}const o={};return s!=="center"&&(t?o[D[s]]=`calc(100% - ${r(s)}px)`:o[s]=0),l!=="center"?t?o[D[l]]=`calc(100% - ${r(l)}px)`:o[l]=0:(s==="center"?o.top=o.left="50%":o[{top:"left",bottom:"left",left:"top",right:"top"}[s]]="50%",o.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[s]),o})}}const Ve=v({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...re(),...Re({location:"top"}),...ie(),...pe(),...ue()},"VProgressLinear"),Xe=q()({name:"VProgressLinear",props:Ve(),emits:{"update:modelValue":e=>!0},setup(e,t){var $;let{slots:a}=t;const n=ce(e,"modelValue"),{isRtl:u,rtlClasses:s}=X(),{themeClasses:l}=de(e),{locationStyles:r}=_e(e),{textColorClasses:o,textColorStyles:g}=fe(e,"color"),{backgroundColorClasses:h,backgroundColorStyles:f}=_(i(()=>e.bgColor||e.color)),{backgroundColorClasses:y,backgroundColorStyles:C}=_(i(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:L,backgroundColorStyles:T}=_(e,"color"),{roundedClasses:z}=ve(e),{intersectionRef:p,isIntersecting:W}=Be(),P=i(()=>parseFloat(e.max)),m=i(()=>parseFloat(e.height)),x=i(()=>E(parseFloat(e.bufferValue)/P.value*100,0,100)),B=i(()=>E(parseFloat(n.value)/P.value*100,0,100)),k=i(()=>u.value!==e.reverse),Z=i(()=>e.indeterminate?"fade-transition":"slide-x-transition"),S=j&&(($=window.matchMedia)==null?void 0:$.call(window,"(forced-colors: active)").matches);function Q(b){if(!p.value)return;const{left:G,right:H,width:R}=p.value.getBoundingClientRect(),J=k.value?R-b.clientX+(H-R):b.clientX-G;n.value=Math.round(J/R*P.value)}return ge(()=>c(e.tag,{ref:p,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&W.value,"v-progress-linear--reverse":k.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},z.value,l.value,s.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?d(m.value):0,"--v-progress-linear-height":d(m.value),...e.absolute?r.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:B.value,onClick:e.clickable&&Q},{default:()=>[e.stream&&c("div",{key:"stream",class:["v-progress-linear__stream",o.value],style:{...g.value,[k.value?"left":"right"]:d(-m.value),borderTop:`${d(m.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${d(m.value/4)})`,width:d(100-x.value,"%"),"--v-progress-linear-stream-to":d(m.value*(k.value?1:-1))}},null),c("div",{class:["v-progress-linear__background",S?void 0:h.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),c("div",{class:["v-progress-linear__buffer",S?void 0:y.value],style:[C.value,{opacity:parseFloat(e.bufferOpacity),width:d(x.value,"%")}]},null),c(me,{name:Z.value},{default:()=>[e.indeterminate?c("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(b=>c("div",{key:b,class:["v-progress-linear__indeterminate",b,S?void 0:L.value],style:T.value},null))]):c("div",{class:["v-progress-linear__determinate",S?void 0:L.value],style:[T.value,{width:d(B.value,"%")}]},null)]}),a.default&&c("div",{class:"v-progress-linear__content"},[a.default({value:B.value,buffer:x.value})])]})),{}}}),we=["static","relative","fixed","absolute","sticky"],je=v({position:{type:String,validator:e=>we.includes(e)}},"position");function Ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M();return{positionClasses:i(()=>e.position?`${t}--${e.position}`:void 0)}}function Oe(){const e=U("useRoute");return i(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function Ye(){var e,t;return(t=(e=U("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function ze(e,t){var g,h;const a=be("RouterLink"),n=i(()=>!!(e.href||e.to)),u=i(()=>(n==null?void 0:n.value)||F(t,"click")||F(e,"click"));if(typeof a=="string"||!("useLink"in a))return{isLink:n,isClickable:u,href:I(e,"href")};const s=i(()=>({...e,to:I(()=>e.to||"")})),l=a.useLink(s.value),r=i(()=>e.to?l:void 0),o=Oe();return{isLink:n,isClickable:u,route:(g=r.value)==null?void 0:g.route,navigate:(h=r.value)==null?void 0:h.navigate,isActive:i(()=>{var f,y,C;return r.value?e.exact?o.value?((C=r.value.isExactActive)==null?void 0:C.value)&&he(r.value.route.value.query,o.value.query):((y=r.value.isExactActive)==null?void 0:y.value)??!1:((f=r.value.isActive)==null?void 0:f.value)??!1:!1}),href:i(()=>{var f;return e.to?(f=r.value)==null?void 0:f.route.value.href:e.href})}}const We=v({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let V=!1;function Ze(e,t){let a=!1,n,u;j&&(ye(()=>{window.addEventListener("popstate",s),n=e==null?void 0:e.beforeEach((l,r,o)=>{V?a?t(o):o():setTimeout(()=>a?t(o):o()),V=!0}),u=e==null?void 0:e.afterEach(()=>{V=!1})}),Ce(()=>{window.removeEventListener("popstate",s),n==null||n(),u==null||u()}));function s(l){var r;(r=l.state)!=null&&r.replaced||(a=!0,setTimeout(()=>a=!1))}}export{qe as V,De as a,We as b,ze as c,Fe as d,Ie as e,Re as f,Ae as g,je as h,Ue as i,Xe as j,Te as k,$e as l,pe as m,Ne as n,Ee as o,Se as p,Ye as q,Ze as r,Be as s,_e as t,Me as u};
1
+ import{aS as w,r as O,q as v,B as c,F as K,aP as M,c as i,u as N,aY as ee,v as q,aZ as te,Z as ae,s as ne,a_ as se,aa as oe,e as le,Q as X,O as re,a0 as ie,X as ue,x as ce,Y as de,ai as fe,al as _,a2 as ve,aI as E,U as j,A as ge,aj as d,L as me,a$ as be,b0 as F,_ as I,W as he,ab as U,n as ye,a as Ce}from"./index-BOM4rIEv.js";const Y=["top","bottom"],ke=["start","end","left","right"];function Se(e,t){let[a,n]=e.split(" ");return n||(n=w(Y,a)?"start":w(ke,a)?"top":"center"),{side:A(a,t),align:A(n,t)}}function A(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Te(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function $e(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Ne(e){return{side:e.align,align:e.side}}function Ee(e){return w(Y,e.side)?"y":"x"}const Fe=O(!1),Ie=O(""),pe=v({tag:{type:String,default:"div"}},"tag"),Pe=["elevated","flat","tonal","outlined","text","plain"];function Ae(e,t){return c(K,null,[e&&c("span",{key:"overlay",class:`${t}__overlay`},null),c("span",{key:"underlay",class:`${t}__underlay`},null)])}const De=v({color:String,variant:{type:String,default:"elevated",validator:e=>Pe.includes(e)}},"variant");function Me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M();const a=i(()=>{const{variant:s}=N(e);return`${t}--variant-${s}`}),{colorClasses:n,colorStyles:u}=ee(i(()=>{const{variant:s,color:l}=N(e);return{[["elevated","flat"].includes(s)?"background":"text"]:l}}));return{colorClasses:n,colorStyles:u,variantClasses:a}}const xe=v({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),qe=q(!1)({name:"VDefaultsProvider",props:xe(),setup(e,t){let{slots:a}=t;const{defaults:n,disabled:u,reset:s,root:l,scoped:r}=te(e);return ae(n,{reset:s,root:l,scoped:r,disabled:u}),()=>{var o;return(o=a.default)==null?void 0:o.call(a)}}});function Be(e,t){const a=O(),n=ne(!1);if(se){const u=new IntersectionObserver(s=>{n.value=!!s.find(l=>l.isIntersecting)},t);oe(()=>{u.disconnect()}),le(a,(s,l)=>{l&&(u.unobserve(l),n.value=!1),s&&u.observe(s)},{flush:"post"})}return{intersectionRef:a,isIntersecting:n}}const D={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Re=v({location:String},"location");function _e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2?arguments[2]:void 0;const{isRtl:n}=X();return{locationStyles:i(()=>{if(!e.location)return{};const{side:s,align:l}=Se(e.location.split(" ").length>1?e.location:`${e.location} center`,n.value);function r(g){return a?a(g):0}const o={};return s!=="center"&&(t?o[D[s]]=`calc(100% - ${r(s)}px)`:o[s]=0),l!=="center"?t?o[D[l]]=`calc(100% - ${r(l)}px)`:o[l]=0:(s==="center"?o.top=o.left="50%":o[{top:"left",bottom:"left",left:"top",right:"top"}[s]]="50%",o.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[s]),o})}}const Ve=v({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...re(),...Re({location:"top"}),...ie(),...pe(),...ue()},"VProgressLinear"),Xe=q()({name:"VProgressLinear",props:Ve(),emits:{"update:modelValue":e=>!0},setup(e,t){var $;let{slots:a}=t;const n=ce(e,"modelValue"),{isRtl:u,rtlClasses:s}=X(),{themeClasses:l}=de(e),{locationStyles:r}=_e(e),{textColorClasses:o,textColorStyles:g}=fe(e,"color"),{backgroundColorClasses:h,backgroundColorStyles:f}=_(i(()=>e.bgColor||e.color)),{backgroundColorClasses:y,backgroundColorStyles:C}=_(i(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:L,backgroundColorStyles:T}=_(e,"color"),{roundedClasses:z}=ve(e),{intersectionRef:p,isIntersecting:W}=Be(),P=i(()=>parseFloat(e.max)),m=i(()=>parseFloat(e.height)),x=i(()=>E(parseFloat(e.bufferValue)/P.value*100,0,100)),B=i(()=>E(parseFloat(n.value)/P.value*100,0,100)),k=i(()=>u.value!==e.reverse),Z=i(()=>e.indeterminate?"fade-transition":"slide-x-transition"),S=j&&(($=window.matchMedia)==null?void 0:$.call(window,"(forced-colors: active)").matches);function Q(b){if(!p.value)return;const{left:G,right:H,width:R}=p.value.getBoundingClientRect(),J=k.value?R-b.clientX+(H-R):b.clientX-G;n.value=Math.round(J/R*P.value)}return ge(()=>c(e.tag,{ref:p,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&W.value,"v-progress-linear--reverse":k.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},z.value,l.value,s.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?d(m.value):0,"--v-progress-linear-height":d(m.value),...e.absolute?r.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:B.value,onClick:e.clickable&&Q},{default:()=>[e.stream&&c("div",{key:"stream",class:["v-progress-linear__stream",o.value],style:{...g.value,[k.value?"left":"right"]:d(-m.value),borderTop:`${d(m.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${d(m.value/4)})`,width:d(100-x.value,"%"),"--v-progress-linear-stream-to":d(m.value*(k.value?1:-1))}},null),c("div",{class:["v-progress-linear__background",S?void 0:h.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),c("div",{class:["v-progress-linear__buffer",S?void 0:y.value],style:[C.value,{opacity:parseFloat(e.bufferOpacity),width:d(x.value,"%")}]},null),c(me,{name:Z.value},{default:()=>[e.indeterminate?c("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(b=>c("div",{key:b,class:["v-progress-linear__indeterminate",b,S?void 0:L.value],style:T.value},null))]):c("div",{class:["v-progress-linear__determinate",S?void 0:L.value],style:[T.value,{width:d(B.value,"%")}]},null)]}),a.default&&c("div",{class:"v-progress-linear__content"},[a.default({value:B.value,buffer:x.value})])]})),{}}}),we=["static","relative","fixed","absolute","sticky"],je=v({position:{type:String,validator:e=>we.includes(e)}},"position");function Ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M();return{positionClasses:i(()=>e.position?`${t}--${e.position}`:void 0)}}function Oe(){const e=U("useRoute");return i(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function Ye(){var e,t;return(t=(e=U("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function ze(e,t){var g,h;const a=be("RouterLink"),n=i(()=>!!(e.href||e.to)),u=i(()=>(n==null?void 0:n.value)||F(t,"click")||F(e,"click"));if(typeof a=="string"||!("useLink"in a))return{isLink:n,isClickable:u,href:I(e,"href")};const s=i(()=>({...e,to:I(()=>e.to||"")})),l=a.useLink(s.value),r=i(()=>e.to?l:void 0),o=Oe();return{isLink:n,isClickable:u,route:(g=r.value)==null?void 0:g.route,navigate:(h=r.value)==null?void 0:h.navigate,isActive:i(()=>{var f,y,C;return r.value?e.exact?o.value?((C=r.value.isExactActive)==null?void 0:C.value)&&he(r.value.route.value.query,o.value.query):((y=r.value.isExactActive)==null?void 0:y.value)??!1:((f=r.value.isActive)==null?void 0:f.value)??!1:!1}),href:i(()=>{var f;return e.to?(f=r.value)==null?void 0:f.route.value.href:e.href})}}const We=v({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let V=!1;function Ze(e,t){let a=!1,n,u;j&&(ye(()=>{window.addEventListener("popstate",s),n=e==null?void 0:e.beforeEach((l,r,o)=>{V?a?t(o):o():setTimeout(()=>a?t(o):o()),V=!0}),u=e==null?void 0:e.afterEach(()=>{V=!1})}),Ce(()=>{window.removeEventListener("popstate",s),n==null||n(),u==null||u()}));function s(l){var r;(r=l.state)!=null&&r.replaced||(a=!0,setTimeout(()=>a=!1))}}export{qe as V,De as a,We as b,ze as c,Fe as d,Ie as e,Re as f,Ae as g,je as h,Ue as i,Xe as j,Te as k,$e as l,pe as m,Ne as n,Ee as o,Se as p,Ye as q,Ze as r,Be as s,_e as t,Me as u};
@@ -322,7 +322,7 @@
322
322
  "title": "Jeu de données des contributions externes",
323
323
  "x-if": "crowdSourcing",
324
324
  "type": "object",
325
- "x-fromUrl": "api/v1/datasets?rest=true&q={q}&select=title,schema,timePeriod,userPermissions&{context.datasetFilter}&short-concept=startDate,endDate&size=100",
325
+ "x-fromUrl": "api/v1/datasets?rest=true&q={q}&select=title,schema,userPermissions&{context.datasetFilter}&short-concept=startDate,endDate&size=100",
326
326
  "x-itemsProp": "results",
327
327
  "x-itemTitle": "title",
328
328
  "x-itemKey": "href",
@@ -331,7 +331,6 @@
331
331
  "href": { "type": "string" },
332
332
  "title": { "type": "string" },
333
333
  "schema": { "type": "array" },
334
- "timePeriod": { "type": "object" },
335
334
  "userPermissions": { "type": "array" }
336
335
  }
337
336
  }
package/dist/index.html CHANGED
@@ -17,8 +17,8 @@
17
17
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.x/css/materialdesignicons.min.css" />
18
18
  <!-- Capture a global variable defined by data-fair's reverse proxy. -->
19
19
  <script type="text/javascript">window.APPLICATION=%APPLICATION%;</script>
20
- <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.0/dist/assets/index-CAAiDM5V.js"></script>
21
- <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.0/dist/assets/index-CJongqRm.css">
20
+ <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.2/dist/assets/index-BOM4rIEv.js"></script>
21
+ <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.0.2/dist/assets/index-CJongqRm.css">
22
22
  </head>
23
23
  <body>
24
24
  <div id="app"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/app-calendar",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "APP_URL=http://localhost:3000/app/ df-dev-server",